/* ============================================================
   СОЦИО Пульс — боевой CSS.
   Токены — из handoff/untitled/project/socio.css (источник истины).
   Инлайн-стили прототипов перенесены в классы.
   ============================================================ */

:root {
  /* Navy — текст и тёмные поверхности */
  --navy:        #0A1430;
  --navy-soft:   #2B3A5A;
  --navy-mute:   #6A7898;

  /* Акценты брендов */
  --cobalt:      #1746E0;
  --orange:      #FF7A45;
  --orange-deep: #FF6B3D;
  --emerald:     #10B981;

  /* Тинты */
  --peach-tint:  #FFEDE4;
  --peach:       #FFD9C8;
  --sky-tint:    #E8EEFF;
  --sky:         #C9D6FF;
  --mint-tint:   #E3F3EC;
  --mint:        #A8D9C4;

  /* Поверхности */
  --paper:       #F1F4F9;
  --paper-pure:  #FAFBFD;
  --cream:       #F6F2EC;
  --white:       #FFFFFF;

  /* Линии */
  --line:        #DCE3EE;
  --line-soft:   #E8EDF4;

  /* Семантика */
  --success:     #10B981;
  --warning:     #F59E0B;
  --danger:      #EF4444;
  --ring:        rgba(255, 122, 69, .12);

  /* Шрифты */
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body:    'Onest', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Радиусы */
  --radius-sm:   12px;
  --radius-md:   20px;
  --radius-lg:   32px;
  --radius-pill: 999px;

  /* Тени */
  --shadow-sm: 0 1px 2px rgba(10, 20, 48, .04);
  --shadow-md: 0 6px 20px rgba(10, 20, 48, .06);
  --shadow-lg: 0 16px 44px rgba(10, 20, 48, .08);
  --shadow-cta: 0 8px 22px rgba(255, 122, 69, .26);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  font-family: var(--font-body);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cobalt); }
a:hover { color: var(--orange-deep); }
::selection { background: var(--peach); }
img, svg { max-width: 100%; }

.page { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 28px; padding-right: 28px; width: 100%; }

/* ---------- Типографика ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--navy-mute);
}
.eyebrow .num { color: var(--orange); }

.h1 {
  font-family: var(--font-display); hyphens: manual; overflow-wrap: break-word;
  font-weight: 700; font-size: 54px; line-height: 1.05; letter-spacing: -0.04em;
  color: var(--navy); margin: 22px 0 0;
}
.h1-inner { font-size: 46px; line-height: 1.08; letter-spacing: -0.035em; margin: 20px 0 0; }
.h2 {
  font-family: var(--font-display); hyphens: manual; overflow-wrap: break-word;
  font-weight: 600; font-size: 36px; line-height: 1.1; letter-spacing: -0.03em;
  color: var(--navy); margin: 14px 0 12px;
}
.h3 {
  font-family: var(--font-display); hyphens: auto; overflow-wrap: break-word;
  font-weight: 600; font-size: 26px; line-height: 1.18; letter-spacing: -0.025em; color: var(--navy);
}
.lead { font-family: var(--font-body); font-size: 19px; line-height: 1.6; color: var(--navy-soft); margin: 24px 0 0; max-width: 600px; }
.sub  { font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--navy-soft); max-width: 640px; margin: 0 0 36px; }

.accent {
  font-style: italic; color: var(--orange);
  background-image: linear-gradient(var(--peach), var(--peach));
  background-repeat: no-repeat; background-position: 0 92%; background-size: 100% .3em;
  padding: 0 .02em;
}

.note { font-family: var(--font-body); font-size: 12.5px; color: var(--navy-mute); margin: 16px 0 0; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px; line-height: 1;
  border-radius: var(--radius-pill); padding: 15px 28px; text-decoration: none;
  border: 0; cursor: pointer; min-height: 44px;
  transition: transform .16s cubic-bezier(.2,.7,.3,1), box-shadow .16s, background .16s, color .16s;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-cta); }
.btn-primary:hover { transform: translateY(-1px); background: var(--orange-deep); box-shadow: 0 12px 26px rgba(255,122,69,.32); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--line); color: var(--navy); }
.btn-outline:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); color: #fff; }
.btn-sm { font-size: 15px; padding: 13px 24px; }

.link-strong { font-family: var(--font-body); font-weight: 700; font-size: 15px; color: var(--navy); text-decoration: none; white-space: nowrap; }
.link-strong:hover { color: var(--orange-deep); }
.link-white { font-family: var(--font-body); font-weight: 700; font-size: 14.5px; color: #fff; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-white:hover { color: var(--peach); }

/* ---------- Карточки ---------- */
.card {
  background: var(--paper-pure); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 26px;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s;
}
.card:hover, a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-static:hover { transform: none; box-shadow: none; }
a.card { text-decoration: none; display: flex; flex-direction: column; gap: 9px; }
.card-on-pure { background: var(--paper); }

.card-num { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--orange); }
.card-title {
  font-family: var(--font-display); hyphens: auto; overflow-wrap: break-word;
  font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: var(--navy); margin: 14px 0 10px;
}
.card-title-sm { font-size: 16.5px; line-height: 1.3; margin: 0; }
.card-text { font-family: var(--font-body); font-size: 14.5px; line-height: 1.6; color: var(--navy-soft); margin: 0; }
.card-text-sm { font-size: 13.5px; line-height: 1.55; }

/* Тёмная navy-карточка с крупным «водяным» текстом */
.card-dark {
  position: relative; overflow: hidden; background: var(--navy);
  border-radius: var(--radius-md); padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.card-dark-lg { border-radius: var(--radius-lg); padding: 34px 32px 38px; }
.watermark {
  position: absolute; right: 10px; bottom: -18px;
  font-family: var(--font-display); font-weight: 700; font-size: 84px;
  color: rgba(255,255,255,.09); letter-spacing: -0.04em;
  user-select: none; pointer-events: none; white-space: nowrap;
}

/* ---------- Чипы / бейджи ---------- */
.chip {
  display: inline-flex; width: fit-content; align-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 10px; padding: 6px 12px;
}
.chip-mint  { background: var(--mint-tint);  color: var(--emerald); }
.chip-sky   { background: var(--sky-tint);   color: var(--cobalt); }
.chip-peach { background: var(--peach-tint); color: var(--orange-deep); }
.chip-warn  {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--warning); border: 1px dashed var(--warning); border-radius: 8px; padding: 6px 10px;
}

.tag-mono {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--navy-mute);
}

/* ---------- Секции ---------- */
.section { padding-top: 70px; padding-bottom: 70px; }
.band { background: var(--paper-pure); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-cream { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-first { border-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }

/* Сетки */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }

/* ---------- ЭКГ-линия ---------- */
@keyframes socioPulse { from { stroke-dashoffset: 1560; } to { stroke-dashoffset: 0; } }
.ecg { width: 100%; height: 44px; display: block; opacity: .5; }
.ecg path { stroke-dasharray: 780 780; animation: socioPulse 10s linear infinite; }

/* ---------- Хедер ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,251,253,.9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar { background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.topbar-in { padding-top: 7px; padding-bottom: 7px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-phone { font-family: var(--font-body); font-weight: 700; font-size: 13px; color: var(--navy); text-decoration: none; }
.topbar-phone:hover { color: var(--orange-deep); }
.header-in { padding-top: 12px; padding-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; color: var(--navy); line-height: 1; }
.brand-sub { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--navy-mute); line-height: 1.3; }
.brand-col { display: flex; flex-direction: column; gap: 3px; }

.nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.nav a {
  font-family: var(--font-body); font-weight: 600; font-size: 13.5px; text-decoration: none;
  border-radius: var(--radius-pill); padding: 8px 11px; white-space: nowrap;
  color: var(--navy-mute); background: transparent; transition: color .14s, background .14s;
}
.nav a:hover { color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); background: var(--paper); }

.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 14px; line-height: 1;
  border-radius: var(--radius-pill); padding: 11px 20px; min-height: 44px;
  background: var(--orange); color: #fff; text-decoration: none; box-shadow: var(--shadow-cta);
  transition: transform .16s cubic-bezier(.2,.7,.3,1), box-shadow .16s, background .16s;
  white-space: nowrap;
}
.header-cta:hover { transform: translateY(-1px); background: var(--orange-deep); box-shadow: 0 12px 26px rgba(255,122,69,.32); color: #fff; }

/* Бургер (показывается ≤900px) */
.burger {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper-pure); cursor: pointer; padding: 0; flex: none;
}
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; border-top: 1px solid var(--line-soft); background: var(--paper-pure); }
.mobile-nav.open { display: block; }
.mobile-nav-in { padding-top: 10px; padding-bottom: 18px; display: flex; flex-direction: column; }
.mobile-nav a {
  font-family: var(--font-body); font-weight: 600; font-size: 16px; color: var(--navy-soft);
  text-decoration: none; padding: 12px 4px; border-bottom: 1px solid var(--line-soft);
  min-height: 44px; display: flex; align-items: center;
}
.mobile-nav a[aria-current="page"] { color: var(--navy); }
.mobile-nav .mobile-cta { margin-top: 14px; border-bottom: 0; }

/* ---------- Футер ---------- */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); margin-top: auto; }
.footer-grid { padding-top: 56px; display: grid; grid-template-columns: minmax(0,1.4fr) repeat(3, minmax(0,1fr)); gap: 36px; }
.footer-about { display: flex; flex-direction: column; gap: 14px; min-width: 240px; }
.footer-desc { font-family: var(--font-body); font-size: 14px; line-height: 1.6; color: var(--navy-mute); margin: 0; max-width: 300px; }
.footer-phone { font-family: var(--font-body); font-weight: 700; font-size: 16px; color: var(--navy); text-decoration: none; }
.footer-phone:hover { color: var(--orange-deep); }
.footer-addr { font-family: var(--font-body); font-size: 14px; color: var(--navy-soft); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-mute); margin-bottom: 4px; }
.footer-col a { font-family: var(--font-body); font-size: 14px; color: var(--navy-soft); text-decoration: none; padding: 3px 0; }
.footer-col a:hover { color: var(--orange-deep); }
.age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--navy-soft);
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; width: fit-content; margin-top: 6px;
}
.footer-disclaimer { padding-top: 28px; }
.footer-disclaimer-in { border-top: 1px solid var(--line); padding: 22px 0 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-disclaimer-text { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--navy); }
.footer-legal { padding-top: 16px; padding-bottom: 34px; }
.footer-legal p { font-family: var(--font-body); font-size: 12.5px; line-height: 1.65; color: var(--navy-mute); margin: 0; }
.footer-legal a { color: var(--navy-soft); }

/* ---------- Формы ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--navy); }
.field .hint { font-family: var(--font-body); font-size: 12.5px; color: var(--navy-mute); }
.input, .select, .textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--navy);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 16px; width: 100%; min-height: 44px; outline: none;
  transition: border-color .14s, box-shadow .14s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px var(--ring); }
.textarea { resize: vertical; min-height: 110px; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--danger); }
.field .error { display: none; font-family: var(--font-body); font-size: 12.5px; color: var(--danger); }
.field.invalid .error { display: block; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; }
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--orange); flex: none; }
.checkbox-row label { font-family: var(--font-body); font-size: 13.5px; line-height: 1.55; color: var(--navy-soft); font-weight: 400; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status { display: none; }
.form-status.show { display: block; }

/* Чипы «Что вас беспокоит?» на форме записи */
.topic-chip {
  font-family: var(--font-body); font-weight: 600; font-size: 13px; line-height: 1;
  border-radius: var(--radius-pill); padding: 10px 16px; min-height: 38px; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); color: var(--navy-soft);
  transition: border-color .14s, background .14s, color .14s;
}
.topic-chip:hover { border-color: var(--orange); }
.topic-chip[aria-pressed="true"] { background: var(--peach-tint); border-color: var(--orange); color: var(--orange-deep); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 520px; margin: 0 auto;
  background: var(--paper-pure); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 18px 20px;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { font-family: var(--font-body); font-size: 13.5px; line-height: 1.55; color: var(--navy-soft); margin: 0 0 12px; }
.cookie-banner p a { color: var(--navy-soft); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { font-size: 14px; padding: 11px 20px; }

/* ---------- Reveal-анимации ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s cubic-bezier(.2,.7,.3,1), transform .55s cubic-bezier(.2,.7,.3,1); }
  .js [data-reveal].revealed { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Хелперы ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Ссылка «Перейти к содержанию» — видна только при переходе с клавиатуры */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  background: var(--navy); color: #fff; text-decoration: none;
  padding: 12px 20px; border-radius: var(--radius-pill);
  transition: top .16s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ============================================================
   АДАПТИВ — брейкпоинты 1180 / 900 / 640
   ============================================================ */
@media (max-width: 1180px) {
  .h1 { font-size: 46px; }
  .h2 { font-size: 32px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .hero-grid, .parents-grid, .split-grid, .booking-grid, .nav-start-grid { grid-template-columns: minmax(0,1fr) !important; gap: 32px !important; }
  .dir-row, .diag-row { grid-template-columns: minmax(0,1fr) !important; gap: 18px !important; padding: 24px !important; }
  .dir-when { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line-soft); padding-top: 16px; }
  .eco-card { grid-template-columns: minmax(0,1fr) !important; }
  .form-card { padding: 26px 22px !important; }
  .cta-title { font-size: 30px !important; }
  .nav { display: none; }
  .header-cta { display: none; }
  .burger { display: flex; }
  .h1 { font-size: 38px; }
  .h1-inner { font-size: 34px; }
  .h2 { font-size: 28px; }
  .section { padding-top: 52px; padding-bottom: 52px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .h1 { font-size: 31px; }
  .h1-inner { font-size: 28px; }
  .h2 { font-size: 24px; }
  .h3 { font-size: 21px; }
  .lead { font-size: 16.5px; }
  .sub { font-size: 15.5px; }
  .section { padding-top: 44px; padding-bottom: 44px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0,1fr); }
  .footer-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .btn { width: 100%; }
  .btn-inline { width: auto; }
  .topbar-in { justify-content: center; }
  .topbar-place { display: none; }
  .license-grid { grid-template-columns: minmax(0,1fr) !important; gap: 2px 0 !important; }
  .license-grid span:nth-child(even) { margin-bottom: 12px; }
  .doc-card { padding: 26px 22px !important; }
  .card-dark-lg { padding: 32px 24px !important; }
  .watermark { font-size: 64px !important; }
  .cta-title { font-size: 26px !important; }
  .section-head { align-items: flex-start; flex-direction: column; }
}
