/* Планета Кукол — мастерская авторских кукол.
   Без внешних шрифтов, иконок и CDN: всё локальное. */

:root {
  --bg: #FBF7F1;
  --surface: #FFFFFF;
  --ink: #2B2320;
  --muted: #7A6A5F;
  --line: #EADFD2;
  --brand: #B0543A;
  --brand-dark: #8A3F2B;
  --brand-soft: #F7E9E2;
  --sage: #7C8F6A;
  --gold: #C9A227;
  --dark: #241D1A;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1180px;
  --r: 16px;
  --shadow: 0 1px 2px rgba(43, 35, 32, .05), 0 10px 30px rgba(43, 35, 32, .07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.68 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 4.4vw, 54px); }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- topbar ---------- */

.topbar {
  background: var(--dark);
  color: #D8C9BC;
  font-size: 13px;
  letter-spacing: .02em;
}
.topbar .container {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; min-height: 38px; text-align: center; flex-wrap: wrap;
}
.topbar b { color: #fff; font-weight: 600; }
.topbar .dot { opacity: .45; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 247, 241, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 30px; min-height: 78px; }

.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #E9B9A6, var(--brand) 62%);
  display: grid; place-items: center;
  color: #fff; font-family: var(--serif); font-size: 19px;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.35);
}
.logo-text { font-family: var(--serif); font-size: 21px; line-height: 1.05; }
.logo-text small {
  display: block; font-family: var(--sans); font-size: 10.5px;
  letter-spacing: .17em; text-transform: uppercase; color: var(--muted);
  margin-top: 3px;
}

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a { color: #453A33; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav a.active { color: var(--brand); border-bottom-color: var(--brand); }

.header-side { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 600; font-size: 15.5px; color: var(--ink); white-space: nowrap; }
.header-phone small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); text-align: right; letter-spacing: .04em; }
.login-link {
  font-size: 14px; color: var(--brand); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 16px; background: #fff; white-space: nowrap;
}
.login-link:hover { border-color: var(--brand); text-decoration: none; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  align-items: center; justify-content: center; padding: 0;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); position: relative; display: block; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- hero ---------- */

.hero { padding: 64px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero p.lead { font-size: 18px; color: #574A42; max-width: 33em; margin-bottom: 28px; }
.eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-soft);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 20px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 13.5px; color: var(--muted); margin-top: 18px; }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%; border-radius: 200px 200px var(--r) var(--r);
  box-shadow: var(--shadow);
}
.hero-badge {
  position: absolute; left: -18px; bottom: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; box-shadow: var(--shadow); font-size: 13px; line-height: 1.35;
}
.hero-badge b { display: block; font-family: var(--serif); font-size: 22px; color: var(--brand); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: .16s ease; font-family: var(--sans);
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-ghost { background: transparent; border-color: #D8C8BA; color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------- sections ---------- */

.section { padding: 74px 0; }
.section.tint { background: #F5EDE3; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--dark); color: #E7DCD1; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark p { color: #C9BBAE; }

.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 16.5px; margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--r); box-shadow: var(--shadow); }

/* ---------- product grid ---------- */

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: #5C4F46;
  border-radius: 999px; padding: 9px 18px; font-size: 14px; cursor: pointer;
  font-family: var(--sans); transition: .15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column; transition: .2s ease;
}
.product:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-media { background: #F5EDE3; }
.product-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.product-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-tag {
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sage); font-weight: 600; margin-bottom: 7px;
}
.product h3 { font-size: 21px; margin-bottom: 4px; }
.product .spec { font-size: 13.5px; color: var(--muted); margin: 0 0 16px; }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.price small { font-family: var(--sans); font-size: 12px; color: var(--muted); display: block; line-height: 1.1; }
.order-btn {
  border: 1px solid var(--brand); background: transparent; color: var(--brand);
  border-radius: 999px; padding: 9px 18px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; font-family: var(--sans); transition: .15s;
}
.order-btn:hover { background: var(--brand); color: #fff; }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
.step { position: relative; padding: 30px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.step::before {
  counter-increment: s; content: counter(s);
  font-family: var(--serif); font-size: 40px; color: var(--brand-soft);
  position: absolute; top: 10px; right: 20px; line-height: 1;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- reviews ---------- */

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px; }
.review p { font-size: 15px; color: #4C4038; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center;
  font-family: var(--serif); font-size: 16px;
}
.review-author b { display: block; font-size: 14px; }
.review-author span { font-size: 12.5px; color: var(--muted); }

/* ---------- cta ---------- */

.cta {
  background: linear-gradient(120deg, #8A3F2B 0%, #B0543A 70%);
  border-radius: 24px; padding: 52px 48px; color: #FBEFE8;
  display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: #F3DCD1; margin: 0; max-width: 34em; }
.cta .btn { background: #fff; color: var(--brand-dark); }
.cta .btn:hover { background: #FBEFE8; }

/* ---------- footer ---------- */

.site-footer { background: var(--dark); color: #A99889; padding: 58px 0 30px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 38px; }
.site-footer h4 {
  font-family: var(--sans); color: #fff; font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; margin-bottom: 16px; font-weight: 600;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #C6B5A6; }
.site-footer a:hover { color: #fff; }
.site-footer .logo-text { color: #fff; }
.site-footer .logo-text small { color: #8A7A6C; }
.footer-bottom {
  margin-top: 42px; padding-top: 22px; border-top: 1px solid #3A302B;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: #877768;
}

/* ---------- forms ---------- */

.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #4E423A; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid #DCCFC2; border-radius: 11px;
  font: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(176, 84, 58, .13);
}
.field textarea { min-height: 116px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--muted); margin: 0; }
.form-note a { text-decoration: underline; }

/* ---------- auth ---------- */

.auth { padding: 64px 0 88px; }
.auth-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  overflow: hidden; box-shadow: var(--shadow);
}
.auth-art { background: #F5EDE3; display: flex; align-items: center; justify-content: center; padding: 34px; }
.auth-art img { border-radius: 160px 160px 14px 14px; max-width: 340px; }
.auth-form { padding: 52px 48px; }
.auth-form h1 { font-size: 32px; margin-bottom: 8px; }
.auth-form > p { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; }
.auth-links { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; flex-wrap: wrap; }

.auth-error {
  background: #FBEAE4; border: 1px solid #EFC9B8; color: #A33F24;
  border-radius: 11px; padding: 12px 15px; font-size: 14px; margin: 0;
}
.auth-error.shake { animation: shake .38s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

.checkbox { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #4E423A; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--brand); }

/* ---------- prose ---------- */

.prose { max-width: 820px; }
.prose h2 { margin-top: 40px; font-size: 25px; }
.prose h3 { margin-top: 28px; font-size: 19px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .updated { font-size: 13.5px; color: var(--muted); }

/* ---------- misc ---------- */

.lead-sm { color: var(--muted); font-size: 15.5px; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-label {
  font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 4px;
}
.error-page { min-height: 58vh; display: grid; place-items: center; text-align: center; padding: 70px 0; }
.error-code { font-family: var(--serif); font-size: clamp(78px, 13vw, 140px); color: #EBDCCD; line-height: 1; }

/* ---------- modal ---------- */

.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 22px;
  background: rgba(36, 29, 26, .55);
}
.modal.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 20px; padding: 34px 32px;
  width: 100%; max-width: 460px; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,.25);
}
.modal-close {
  position: absolute; top: 14px; right: 16px; border: 0; background: none;
  font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px;
}
.modal h2 { font-size: 24px; margin-bottom: 6px; }
.modal .modal-sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid, .split, .auth-grid { grid-template-columns: 1fr; gap: 34px; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .steps, .reviews { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav, .header-side { display: none; }
  .nav-toggle { display: flex; }
  .auth-art { display: none; }
  .auth-form { padding: 38px 26px; }
  .site-header.open .nav {
    display: block; position: absolute; top: 78px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 22px; box-shadow: 0 14px 26px rgba(43,35,32,.08);
  }
  .site-header.open .nav ul { flex-direction: column; gap: 2px; }
  .site-header.open .nav a { display: block; padding: 12px 0; }
  .header-inner { position: relative; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .hero { padding: 40px 0 44px; }
  .products { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta { padding: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-badge { left: 0; bottom: 12px; }
}
