/* Golos Text (OFL) — локальные файлы, без внешнего CDN */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/golos-text-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/golos-text-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/golos-text-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/golos-text-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* ============================================================
   Кабинет нейрологопедии — дизайн-система
   Тёплая, спокойная, профессиональная. Один файл на весь сайт.
   ============================================================ */

:root {
  /* Палитра */
  --bg: #fbf6ef;
  --bg-soft: #f4ece1;
  --bg-tint: #efe6d9;
  --card: #ffffff;
  --ink: #23201d;
  --ink-soft: #4c453e;
  --muted: #7a6f65;
  --brand: #1f4b43;
  --brand-dark: #163a34;
  --brand-soft: #e4efeb;
  --accent: #c97b4a;
  --accent-dark: #a95f33;
  --accent-soft: #f6e7d9;
  --line: #e8ddcf;
  --line-strong: #d9cbb9;
  --danger: #a8443a;
  --ok: #2f6b45;

  /* Типографика */
  --font-body: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Форма */
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(46, 36, 26, .05);
  --shadow: 0 14px 40px rgba(46, 36, 26, .10);
  --shadow-lg: 0 30px 80px rgba(46, 36, 26, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

.container { width: min(1140px, 100% - 48px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 10px; padding: 8px 16px;
  background: var(--brand); color: #fff; border-radius: 10px; z-index: 200;
}
.skip-link:focus { left: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 100;
  background: rgba(251, 246, 239, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px; flex: 0 0 auto;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.15rem; color: #fff;
  background: linear-gradient(145deg, var(--brand), #2f6b5e 70%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: .98rem; font-weight: 600; letter-spacing: .01em; }
.brand-text span { font-size: .76rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink-soft); font-size: .95rem; font-weight: 700; }
.nav a:hover { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-pill);
  border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .97rem;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(31, 75, 67, .22); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(201, 123, 74, .25); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn.mini { padding: 8px 16px; font-size: .86rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 64px) 0 clamp(40px, 5vw, 64px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -20%; height: 90%;
  background: radial-gradient(60% 60% at 30% 20%, rgba(201, 123, 74, .12), transparent 70%),
              radial-gradient(50% 50% at 85% 10%, rgba(31, 75, 67, .10), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark);
  background: var(--accent-soft); border: 1px solid #eed8c4;
  padding: 8px 12px; border-radius: var(--radius-pill); margin-bottom: 24px;
}
.hero h1 { margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }
.hero-note { color: var(--muted); font-size: .92rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; max-width: 560px; }
.stat { border-top: 1px solid var(--line-strong); padding-top: 12px; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--brand); }
.stat span { font-size: .84rem; color: var(--muted); }

.hero-visual { position: relative; min-height: 380px; display: grid; place-items: center; }
.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 24px 48px rgba(70, 50, 30, .12)); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 6vw, 64px) 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 64ch; margin-bottom: 32px; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }
.section-head.center { margin-inline: auto; text-align: center; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .5em; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: .98rem; }

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .icon-badge { flex: 0 0 auto; }

.icon-badge {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid #d5e6df;
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge.accent { background: var(--accent-soft); color: var(--accent-dark); border-color: #eed8c4; }

/* ---------- Steps / timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.timeline .step {
  counter-increment: step; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px; box-shadow: var(--shadow-sm);
}
.timeline .step::before {
  content: counter(step, decimal-leading-zero);
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; margin-bottom: 12px;
  font-family: var(--font-display); font-size: 1rem; color: var(--brand);
  background: var(--brand-soft); border: 1px solid #d5e6df;
}
.timeline .step h3 { font-size: 1.05rem; }
.timeline .step p { font-size: .93rem; color: var(--ink-soft); margin: 0; }

/* ---------- Services ---------- */
.service-card { display: flex; flex-direction: column; gap: 12px; }
.service-card h3 { margin: 0; }
.service-card p { margin: 0; }

/* ---------- Specialist ---------- */
.specialist { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.specialist-visual {
  border-radius: var(--radius); min-height: 340px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 25% 25%, rgba(201, 123, 74, .18), transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(31, 75, 67, .16), transparent 55%),
    var(--bg-tint);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.specialist-visual svg { width: 78%; height: auto; }
.quote {
  margin: 24px 0 0; padding: 16px 24px; border-left: 3px solid var(--accent);
  background: var(--card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display); font-size: 1.12rem; color: var(--ink-soft);
}

/* ---------- Prices ---------- */
.price-list { display: grid; gap: 12px; }
.price-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 24px;
}
.price-row .price-name b { display: block; font-weight: 600; }
.price-row .price-name span { font-size: .88rem; color: var(--muted); }
.price-row .price-value { font-family: var(--font-display); font-size: 1.3rem; color: var(--brand); white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; max-width: 860px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 24px; transition: border-color .16s ease;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Contacts ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; }
.contact-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact-line:last-child { border-bottom: 0; }
.contact-line .label { color: var(--muted); min-width: 118px; font-size: .9rem; }
.contact-line a { font-weight: 600; }
.contact-cta { margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.site-footer p, .site-footer a { color: var(--muted); font-size: .9rem; }
.site-footer a:hover { color: var(--brand); }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .82rem; color: var(--muted); }

/* ---------- Inner pages / forms ---------- */
.page-narrow { width: min(780px, 100% - 40px); margin-inline: auto; }
.page-head { padding: clamp(32px, 5vw, 48px) 0 8px; }
.page-head p { color: var(--ink-soft); max-width: 64ch; }
.page-head .eyebrow { margin-bottom: 16px; }

form { display: grid; gap: 16px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-family: var(--font-display); font-size: 1.25rem; padding: 0; margin-bottom: 12px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .93rem; }
.field .hint { font-size: .82rem; color: var(--muted); }
.input, textarea, select {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .16s ease, box-shadow .16s ease;
}
.input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(31, 75, 67, .12);
}
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; }
.check input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--brand); }
.check-terms { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 16px; }
.check-terms a { text-decoration: underline; }
.checks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.checks-grid .check { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 12px; }
.form-message { border-radius: var(--radius-sm); padding: 12px 16px; display: none; font-size: .94rem; }
.form-message.error { display: block; background: #fbeeec; color: var(--danger); border: 1px solid #efc9c3; }
.form-message.success { display: block; background: var(--brand-soft); color: var(--brand-dark); border: 1px solid #cfe3dc; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- Calculator ---------- */
.calc-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: start; }
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.calc-result-main { font-family: var(--font-display); font-size: clamp(1.8rem, 3.2vw, 2.4rem); color: var(--brand-dark); line-height: 1.15; }
.calc-result-sub { color: var(--ink-soft); font-size: .95rem; margin-top: 4px; }
.calc-metrics { display: grid; gap: 2px; margin: 16px 0; }
.metric { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.metric:last-child { border-bottom: 0; }
.bar { height: 10px; border-radius: var(--radius-pill); background: var(--bg-soft); overflow: hidden; margin: 12px 0 4px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #4b8b7c); border-radius: var(--radius-pill); transition: width .3s ease; }
.calc-note { font-size: .84rem; color: var(--muted); }

/* ---------- Admin ---------- */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }

/* ---------- Utilities ---------- */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 300px; max-width: 520px; margin-inline: auto; }
  .specialist, .contact-grid, .calc-grid, .footer-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .timeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  /* MOBILE-HEADER-STATIC: шапка не закрепляется на телефоне */
  .site-header { position: static !important; top: auto !important; }
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .grid-3, .grid-2, .grid-4, .timeline, .calc-inputs, .checks-grid, .hero-stats { grid-template-columns: 1fr; }
  .price-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .container { width: min(1140px, 100% - 32px); }
}

/* ---------- Печать ---------- */
@media print {
  .site-header, .site-footer, .hero-actions, .mobile-cta, .nav { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .card, .section-alt, .calc-card { box-shadow: none; border-color: #ccc; }
  .section { padding: 18pt 0; page-break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
