/* Правильно сиди — whole-design demo
   Tokens from design masters (desktop-1440.svg / mobile-390.svg) */

:root {
  --paper: #F5FAF8;
  --ink: #17323A;
  --ink-soft: #24524F;
  --teal: #006B67;
  --mint: #D9F2ED;
  --yellow: #F4C95D;
  --coral: #E06B4F;
  --dark: #102A31;
  --line: #A9D8D0;
  --white: #FFFFFF;
  --radius-card: 28px;
  --radius-card-m: 22px;
  --gutter: 80px;
  --gutter-m: 20px;
  --font: "DejaVu Sans", Arial, sans-serif;
  --header-h: 104px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
s { text-decoration: line-through; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  border-radius: 28px;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  padding: 18px 30px;
  font-size: 16px;
}
.btn-primary:hover { background: #005a56; }
.btn-primary:active { transform: scale(.98); }
.btn-sm { padding: 14px 22px; font-size: 14px; border-radius: 24px; }
.btn:focus-visible, a:focus-visible, .burger:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding: 16px 6px;
}
.link-arrow:hover { color: var(--teal); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(23, 50, 58, .08);
}
.header-inner {
  max-width: calc(1280px + 160px);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand-logo { height: 63px; width: auto; }

.main-nav { flex: 1; }
.nav-list {
  display: flex;
  gap: 46px;
}
.nav-list a {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 0;
  display: inline-block;
}
.nav-list a:hover { color: var(--teal); }

.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.city { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.phone { font-size: 18px; font-weight: 700; color: var(--ink); }
.phone:hover { color: var(--teal); }

.catalog-btn { flex-shrink: 0; }

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
}
.burger-icon,
.burger-icon::before,
.burger-icon::after {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.burger-icon::before { position: absolute; top: -8px; }
.burger-icon::after { position: absolute; top: 8px; }
.burger[aria-expanded="true"] .burger-icon { background: transparent; }
.burger[aria-expanded="true"] .burger-icon::before { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-icon::after { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  background: var(--white);
  border-top: 1px solid var(--mint);
  padding: 8px 20px 20px;
}
.mobile-menu-list { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu-list a {
  display: block;
  padding: 13px 4px;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--mint);
}
.mobile-menu-list a:hover { color: var(--teal); }
.mobile-catalog {
  margin-top: 14px;
  justify-content: center;
  border: 0 !important;
  font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--mint);
  overflow: hidden;
}
.hero-accent {
  position: absolute;
  left: 0;
  bottom: -20px;
  width: 700px;
  height: 760px;
  pointer-events: none;
}
.accent-path {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 18;
  stroke-linecap: round;
  opacity: .9;
}
.hero-accent .accent-path {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: reveal 1.6s ease .3s forwards;
}
@keyframes reveal { to { stroke-dashoffset: 0; } }

.hero-inner {
  position: relative;
  max-width: calc(1280px + 160px);
  margin: 0 auto;
  padding: 66px var(--gutter) 64px;
  display: grid;
  grid-template-columns: 1fr minmax(0, 560px);
  gap: 80px;
  align-items: center;
  min-height: 602px;
}
.eyebrow {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--teal);
  margin-bottom: 28px;
}
.hero-title {
  font-size: 62px;
  line-height: 1.07;
  font-weight: 800;
  margin-bottom: 34px;
}
.hero-sub {
  font-size: 23px;
  line-height: 1.44;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.hero-media { position: relative; margin: 0; }
.hero-img {
  width: 560px;
  max-width: 100%;
  aspect-ratio: 560 / 600;
  object-fit: cover;
  border-radius: 36px;
}
.hero-badge {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  background: var(--white);
  border-radius: 18px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.badge-eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--teal);
}
.badge-line { font-size: 16px; font-weight: 600; color: var(--ink); }

/* ---------- Stats ---------- */
.stats { padding-top: 80px; }
.stats-title { display: none; }
.stats-card {
  max-width: calc(1280px + 160px);
  margin: 0 auto;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 42px 35px;
}
.stat {
  position: relative;
  padding: 0 35px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--ink); }
.stat-label { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.stat-divider {
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

/* ---------- Section shells ---------- */
.section-title {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 800;
}
.section-sub {
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 760px;
  margin-top: 16px;
}
.section-title-light { color: var(--white); }
.section-sub-light { color: var(--mint); }
.section-sub-small { font-size: 16px; }

/* ---------- Guidance ---------- */
.guidance {
  max-width: calc(1280px + 160px);
  margin: 0 auto;
  padding: 78px var(--gutter) 88px;
}
.guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 52px;
}
.guidance-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px 28px 40px;
  overflow: hidden;
}
.g-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--teal);
}
.g-title { font-size: 30px; margin-top: 26px; }
.g-text {
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-top: 14px;
}
.g-accent {
  position: absolute;
  right: 18px;
  bottom: 12px;
  width: 96px;
  height: 126px;
  pointer-events: none;
}
.g-accent .accent-path {
  stroke-width: 8;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: reveal 1.2s ease .5s forwards;
}

/* ---------- Audience (dark) ---------- */
.audience {
  background: var(--dark);
  padding: 98px 0 110px;
}
.audience .section-title,
.audience .section-sub {
  max-width: calc(1280px + 160px);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--gutter);
}
.audience-grid {
  max-width: calc(1280px + 160px);
  margin: 52px auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px;
}
.aud-card {
  position: relative;
  border-radius: 32px;
  padding: 42px 40px;
  min-height: 440px;
  overflow: hidden;
}
.aud-card-children { background: var(--white); }
.aud-card-adults { background: var(--mint); }
.aud-eyebrow {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--teal);
}
.aud-title { font-size: 34px; line-height: 1.12; margin-top: 22px; }
.aud-text {
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin-top: 26px;
}
.aud-link {
  display: inline-block;
  margin-top: 40px;
  font-size: 17px;
  font-weight: 700;
  color: var(--teal);
}
.aud-link:hover { color: var(--teal); text-decoration: underline; }
.aud-img {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
}
.aud-card-children .aud-img { width: 240px; }
.aud-img-adult { width: 250px; object-fit: contain; }
.aud-card-adults .aud-img { top: auto; bottom: 30px; transform: none; }

/* ---------- Catalog ---------- */
.catalog {
  max-width: calc(1280px + 160px);
  margin: 0 auto;
  padding: 98px var(--gutter) 88px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 46px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 520px;
}
.product-img {
  width: 100%;
  aspect-ratio: 310 / 280;
  object-fit: contain;
  margin-bottom: 24px;
}
.product-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.price { font-size: 28px; font-weight: 800; color: var(--ink); }
.price-old { font-size: 15px; font-weight: 400; color: var(--ink-soft); }
.product-actions {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.product-more {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.product-more:hover { color: var(--teal); }
.quick-order.is-done { background: #0a7a52; }
.quick-order.is-error { background: var(--coral); }

/* ---------- Showroom + Contact ---------- */
.showroom {
  background: var(--mint);
  padding: 88px 0 88px;
}
.showroom-inner {
  max-width: calc(1280px + 160px);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 620px 1fr;
  gap: 80px;
  align-items: center;
}
.showroom-media { margin: 0; }
.showroom-img {
  width: 100%;
  aspect-ratio: 620 / 520;
  object-fit: cover;
  border-radius: 36px;
}
.eyebrow-dark {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--teal);
  margin-bottom: 20px;
}
.showroom-title { font-size: 40px; line-height: 1.1; }
.showroom-text {
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin-top: 26px;
  max-width: 520px;
}
.showroom-list { margin-top: 34px; display: flex; flex-direction: column; gap: 19px; }
.showroom-list li {
  position: relative;
  padding-left: 32px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.showroom-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
}

.contact-card {
  max-width: calc(1280px + 160px);
  margin: 64px auto 0;
  padding: 0 var(--gutter);
}
.contact-card-inner {
  background: var(--white);
  border-radius: 32px;
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 60px;
}
.contact-title { font-size: 32px; margin-bottom: 18px; }
.contact-line { font-size: 18px; font-weight: 600; line-height: 1.45; color: var(--ink-soft); }
.contact-phone {
  display: inline-block;
  font-size: 25px;
  font-weight: 800;
  color: var(--ink);
}
.contact-phone:hover { color: var(--teal); }
.contact-email {
  display: inline-block;
  margin-top: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--teal);
}
.contact-email:hover { text-decoration: underline; }
.contact-note { margin-top: 16px; font-size: 15px; color: var(--ink-soft); }
.contact-label { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.contact-order .contact-phone { margin-top: 10px; }
.call-order { margin-top: 26px; padding: 17px 30px; font-size: 15px; border-radius: 27px; }
.call-order.is-done { background: #0a7a52; }
.call-order.is-error { background: var(--coral); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--white);
  max-width: 100%;
}
.footer-inner {
  max-width: calc(1280px + 160px);
  margin: 0 auto;
  padding: 30px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand { font-size: 14px; font-weight: 700; letter-spacing: .8px; }
.footer-stage { font-size: 13px; font-weight: 500; color: var(--mint); }

/* ---------- Tablet (<=1024px) ---------- */
@media (max-width: 1024px) {
  :root { --header-h: 88px; --gutter: 48px; }
  .header-inner { gap: 18px; padding: 0 48px; justify-content: space-between; }
  .main-nav, .catalog-btn { display: none; }
  .burger { display: inline-flex; }
  .nav-list { gap: 18px; }
  .nav-list a { font-size: 15px; }
  .brand-logo { height: 52px; }
  .city { font-size: 12px; }
  .phone { font-size: 16px; }
  .catalog-btn { padding: 14px 22px; font-size: 14px; }

  .hero-inner {
    grid-template-columns: 1fr minmax(0, 460px);
    gap: 48px;
    padding: 52px 48px;
    min-height: 0;
  }
  .hero-title { font-size: 48px; }
  .hero-sub { font-size: 19px; }
  .hero-img { width: 100%; aspect-ratio: 460 / 520; }
  .hero-accent { width: 560px; height: 608px; bottom: -30px; }

  .stats { padding-top: 64px; }
  .stat-row { padding: 34px 28px; }
  .stat { padding: 0 22px; }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { padding-right: 0; }
  .stat-num { font-size: 23px; }
  .stat-label { font-size: 13px; }

  .guidance { padding: 56px 48px 64px; }
  .section-title { font-size: 34px; }
  .section-sub { font-size: 17px; }
  .guidance-grid { grid-template-columns: 1fr; gap: 24px; max-width: 640px; }
  .guidance-card { min-height: 0; }

  .audience { padding: 72px 0 80px; }
  .audience-grid { grid-template-columns: 1fr; gap: 32px; max-width: 640px; }
  .aud-card { min-height: 0; }
  .aud-img { position: static; transform: none; margin-top: 28px; width: 220px; }
  .aud-img-adult { width: 230px; }
  .aud-card-adults .aud-img { margin-top: 28px; }
  .aud-title { font-size: 30px; }

  .catalog { padding: 72px 48px 64px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
  .product-card { height: auto; }

  .showroom { padding: 64px 0; }
  .showroom-inner { grid-template-columns: 1fr; gap: 48px; padding: 0 48px; }
  .showroom-media { max-width: 620px; }
  .contact-card { padding: 0 48px; }
  .contact-card-inner { grid-template-columns: 1fr; gap: 40px; padding: 44px 40px; }
}

/* ---------- Mobile (<=640px) ---------- */
@media (max-width: 640px) {
  :root { --header-h: 82px; --gutter: 20px; --radius-card: 22px; }
  .main-nav, .header-contacts, .catalog-btn { display: none; }
  .burger { display: inline-flex; margin-left: auto; }
  .header-inner { padding: 0 20px; justify-content: space-between; }
  .brand-logo { height: 47px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 46px 20px 44px;
  }
  .hero-accent { display: none; }
  .eyebrow { font-size: 11px; letter-spacing: .5px; margin-bottom: 18px; }
  .hero-title { font-size: 35px; line-height: 1.12; margin-bottom: 22px; }
  .hero-sub { font-size: 18px; line-height: 1.44; }
  .btn-primary { padding: 16px 26px; font-size: 15px; border-radius: 27px; }
  .link-arrow { font-size: 15px; }
  .hero-img { width: 100%; aspect-ratio: 350 / 360; border-radius: 24px; }
  .hero-badge { left: 14px; right: 14px; bottom: 14px; padding: 13px 16px; border-radius: 16px; }
  .badge-eyebrow { font-size: 11px; letter-spacing: .7px; }
  .badge-line { font-size: 13px; }

  .stats { padding-top: 52px; }
  .stats-title {
    display: block;
    margin: 0 20px 18px;
    font-size: 29px;
    line-height: 1.15;
    font-weight: 800;
  }
  .stat-row {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    background: transparent;
    padding: 0;
  }
  .stat {
    background: var(--white);
    border-radius: 18px;
    padding: 20px 16px;
    gap: 5px;
  }
  .stat:first-child, .stat:last-child { padding: 20px 16px; }
  .stat-divider { display: none; }
  .stat-num { font-size: 20px; }
  .stat-label { font-size: 12px; }

  .guidance { padding: 46px 20px 52px; }
  .section-title { font-size: 29px; }
  .section-sub { font-size: 16px; }
  .section-sub-small { font-size: 13px; }
  .guidance-grid { gap: 16px; margin-top: 30px; }
  .guidance-card { padding: 24px 18px 28px; }
  .g-title { font-size: 24px; margin-top: 18px; }
  .g-text { font-size: 14px; }
  .g-accent { display: none; }

  .audience { padding: 56px 0 64px; }
  .audience-grid { gap: 22px; }
  .aud-card { border-radius: 24px; padding: 30px 20px 34px; }
  .aud-eyebrow { font-size: 12px; letter-spacing: 1px; }
  .aud-title { font-size: 27px; }
  .aud-card-adults .aud-title { font-size: 25px; }
  .aud-text { font-size: 14px; }
  .aud-link { margin-top: 28px; font-size: 14px; }
  .aud-img { width: 190px; margin: 22px auto 0; }
  .aud-img-adult { width: 135px; }

  .catalog { padding: 56px 20px 48px; }
  .catalog-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .product-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 22px;
    height: auto;
  }
  .product-img {
    width: 128px;
    aspect-ratio: 138 / 145;
    flex-shrink: 0;
    margin: 0 auto 12px;
    object-fit: contain;
    background: var(--paper);
    border-radius: 12px;
    padding: 6px;
  }
  .product-name { font-size: 14px; font-weight: 700; line-height: 1.25; }
  .product-price-row { margin-top: 8px; gap: 8px; }
  .price { font-size: 20px; }
  .price-old { font-size: 12px; }
  .product-actions { margin-top: 12px; padding-top: 0; gap: 10px; justify-content: space-between; }
  .btn-sm { padding: 12px 16px; font-size: 12px; border-radius: 21px; white-space: nowrap; }
  .product-more { font-size: 12px; }

  .showroom { padding: 52px 0 40px; }
  .showroom-inner { grid-template-columns: 1fr; gap: 30px; padding: 0 20px; }
  .showroom-img { border-radius: 24px; aspect-ratio: 350 / 300; }
  .eyebrow-dark { font-size: 11px; letter-spacing: 1px; margin-bottom: 14px; }
  .showroom-title { font-size: 29px; }
  .showroom-text { font-size: 15px; margin-top: 18px; }
  .showroom-list { margin-top: 24px; gap: 15px; }
  .showroom-list li { font-size: 14px; padding-left: 26px; }
  .showroom-list li::before { width: 10px; height: 10px; top: 3px; }

  .contact-card { margin-top: 36px; padding: 0 20px; }
  .contact-card-inner { grid-template-columns: 1fr; gap: 30px; padding: 34px 20px; border-radius: 24px; }
  .contact-title { font-size: 26px; margin-bottom: 12px; }
  .contact-line { font-size: 15px; }
  .contact-phone { font-size: 22px; }
  .contact-email { font-size: 15px; }
  .contact-note { font-size: 12px; }
  .contact-label { font-size: 13px; }
  .call-order { margin-top: 18px; padding: 15px 24px; font-size: 14px; }

  .footer-inner { padding: 20px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-brand { font-size: 11px; letter-spacing: .5px; }
  .footer-stage { font-size: 11px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-accent .accent-path,
  .g-accent .accent-path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none;
  }
  .btn, a { transition: none; }
}
