/* СтомаЛюкс — редакционный редизайн. Светлая тёплая бумага, чернила, глубокая хвоя, терракота. */
:root {
  --paper: #f4f3ed;
  --surface: #ffffff;
  --ink: #131715;
  --muted: #5f6863;
  --line: #e3e1d5;
  --wine: #7a1f2b;
  --wine-deep: #47101b;
  --pine: #1d4a38;
  --pine-deep: #10291f;
  --sage: #e7eee6;
  --accent: #7a1f2b;
  --star: #7a1f2b;
  --danger: #b3261e;
  --radius: 28px;
  --radius-s: 20px;
  --shadow: 0 24px 60px rgba(19, 23, 21, 0.14);
  --shadow-s: 0 10px 30px rgba(19, 23, 21, 0.09);
  --trust: #10291f;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --max: 1400px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px; line-height: 24px;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Кикер [ 01 · секция ] ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; line-height: 16px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.kicker::before { content: ""; width: 32px; height: 2px; background: var(--accent); flex: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 32px; border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
  white-space: nowrap;
}
.btn:active { border-color: var(--wine); color: var(--wine); }
.btn .arr { font-weight: 400; display: inline-block; transition: transform 0.5s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
/* Главный CTA — единственный залитый элемент на странице (иерархия как в премиальных референсах) */
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--wine); border-color: var(--wine); color: #fff; }
.btn-dark:active { background: var(--wine-deep); border-color: var(--wine-deep); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sage); border-color: var(--sage); color: var(--ink); }
.btn-sm { padding: 12px 24px; font-size: 14px; }

/* ---------- Топбар ---------- */
.topbar { border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .lic { color: var(--muted); }
.eye-btn {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 0;
  border-bottom: 1px dashed var(--muted);
}

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(244, 243, 237, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.4s; }
.header.scrolled { border-color: var(--line); }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: 0.08em; }
.logo-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--pine-deep); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.nav-links { display: flex; gap: 4px; font-size: 14px; font-weight: 600; }
.nav-links a { text-decoration: none; opacity: 0.7; padding: 8px 16px; border-radius: 999px; border: 1px solid transparent; }
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; background: var(--sage); border-color: var(--line); }
.nav-cta { display: flex; align-items: center; gap: 24px; }
.nav-phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform 0.5s var(--ease); }
.mobile-menu { display: none; }

/* ---------- HERO ---------- */
.hero { padding: 48px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: end; }
.hero-copy { padding-bottom: 64px; }
.hero h1 {
  font-size: clamp(48px, 6vw, 104px); line-height: 0.98; font-weight: 800;
  text-transform: uppercase; margin: 24px 0;
}
.hero h1 .thin { display: block; font-weight: 300; }
.hero h1 .wine { color: var(--wine); }
.hero-sub { font-size: 18px; line-height: 28px; color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-media { position: relative; margin-bottom: 64px; }
.hero-slide { position: relative; }
.hero-slide img {
  width: 100%; height: 600px; object-fit: cover; border-radius: var(--radius);
  background: var(--sage); opacity: 1; transition: opacity 0.6s var(--ease);
}
.hero-slide img.fade { opacity: 0; }
.hero-cap {
  position: absolute; left: 24px; bottom: 24px; right: 24px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; color: #fff;
}
.hero-cap .t { font-size: 14px; font-weight: 600; text-shadow: 0 1px 12px rgba(0,0,0,0.5); }
.hero-cap .t span { display: block; opacity: 0.8; font-weight: 400; }
.hero-nav { display: flex; align-items: center; gap: 12px; }
.hero-nav .num { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-shadow: 0 1px 12px rgba(0,0,0,0.5); }
.circle-btn {
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.9); color: var(--ink); cursor: pointer; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color 0.5s var(--ease);
}
.circle-btn:hover { background: #fff; }
/* Факты под фото: гарантия и режим, без наложений поверх картинки */
.hero-facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 32px; }
.hero-fact { padding: 20px 32px 0 0; }
.hero-fact + .hero-fact { border-left: 1px solid var(--line); padding-left: 32px; }
.hero-fact b { display: block; font-size: 16px; margin-bottom: 2px; }
.hero-fact span { font-size: 14px; color: var(--muted); }

/* ---------- Строка доверия ---------- */
.trust-bar { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.trust-bar span { display: inline-flex; align-items: center; gap: 8px; }
.trust-bar .rich-dot, .trust-bar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pine); flex: none; }

/* ---------- Полоса статистики (вшита в hero, без плашки) ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 40px 40px 48px 0; border-left: 1px solid var(--line); padding-left: 40px; }
.stat-cell:first-child { border-left: none; padding-left: 0; }
.stat-cell b { display: block; font-size: clamp(48px, 4.5vw, 72px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-cell span { color: var(--muted); font-size: 14px; }

/* ---------- Секции ---------- */
section.block { padding: 120px 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 64px; }
.sec-head h2 { font-size: clamp(32px, 4vw, 64px); line-height: 1; font-weight: 800; text-transform: uppercase; margin-top: 24px; }
.sec-head h2 .thin { font-weight: 300; }
.sec-head p { color: var(--muted); font-size: 18px; line-height: 28px; max-width: 440px; justify-self: end; }

/* ---------- Тэглайн ---------- */
.tagline { padding: 120px 0; }
.tagline p { font-size: clamp(28px, 3.4vw, 56px); line-height: 1.1; font-weight: 800; text-transform: uppercase; max-width: 1100px; text-align: left; }
.tagline .w { color: #c9c7b8; transition: color 0.7s var(--ease); }
.tagline .w.on { color: var(--ink); }
.tagline .w.hl.on { color: var(--wine); }

/* ---------- Услуги гридом ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-s); padding: 32px;
  text-decoration: none; display: flex; flex-direction: column; gap: 16px; min-height: 300px;
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.svc-card:hover { border-color: var(--ink); box-shadow: var(--shadow-s); }
.svc-top { display: flex; justify-content: space-between; align-items: center; }
.svc-go {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.svc-card:hover .svc-go { border-color: var(--wine); color: var(--wine); }
.svc-card h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.1; font-weight: 800; text-transform: uppercase; }
.svc-ico { width: 72px; height: 72px; border-radius: 20px; background: var(--sage); color: var(--pine); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.svc-ico svg { width: 34px; height: 34px; }
.svc-card p { color: var(--muted); font-size: 15px; line-height: 22px; flex: 1; }
.svc-price { font-size: 20px; font-weight: 800; color: var(--wine); border-top: 1px solid var(--line); padding-top: 16px; font-variant-numeric: tabular-nums; }

/* ---------- Светлый блок клиники ---------- */
.clinic-sec { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.dark-grid img { width: 100%; height: 560px; object-fit: cover; border-radius: var(--radius); }
.dark-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 48px; border-top: 1px solid var(--line); }
.dark-item { padding: 32px 32px 32px 0; border-bottom: 1px solid var(--line); }
.dark-item:nth-child(even) { border-left: 1px solid var(--line); padding-left: 32px; }
.dark-item .n { font-size: 14px; font-weight: 700; letter-spacing: 0.16em; color: var(--accent); }
.dark-item h3 { font-size: clamp(16px, 2vw, 20px); margin: 12px 0 8px; }
.dark-item p { color: var(--muted); font-size: 14px; }
.license-line { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.license-line a { color: var(--wine); font-weight: 700; }

/* ---------- Карточка доверия (глубокий акцент на светлой странице) ---------- */
.trust-card { margin-top: 24px; background: var(--trust); color: #e8efe9; border-radius: var(--radius-s); padding: 32px; display: grid; gap: 16px; }
.trust-card .kicker { color: #9db6a8; }
.trust-card .kicker::before { background: #7ba085; }
.trust-card h3 { color: #fff; font-size: clamp(18px, 2vw, 22px); text-transform: uppercase; letter-spacing: -0.01em; }
.trust-card p { font-size: 14px; line-height: 22px; color: #b9cdc1; }
.trust-card .trust-meta { display: grid; gap: 6px; font-size: 13px; color: #9db6a8; font-variant-numeric: tabular-nums; }
.trust-card .btn { justify-self: start; }

/* ---------- Врачи ---------- */
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.doc-card { text-decoration: none; display: block; }
.doc-ph { overflow: hidden; border-radius: var(--radius); background: var(--sage); transition: box-shadow 0.5s var(--ease); }
.doc-ph img { width: 100%; height: 440px; object-fit: cover; }
.doc-card:hover .doc-ph { box-shadow: var(--shadow); }
.doc-meta { display: flex; gap: 16px; padding-top: 24px; }
.doc-meta .n { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); }
.doc-meta h3 { font-size: 20px; margin-bottom: 4px; }
.doc-spec { color: var(--pine); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.doc-sub { color: var(--muted); font-size: 14px; }
.photo-note { margin-top: 32px; color: var(--muted); font-size: 14px; }

/* ---------- Цены ---------- */
.price-rows { border-top: 1px solid var(--line); }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.price-row .dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-6px); }
.price-row b:last-child { white-space: nowrap; font-size: 20px; color: var(--wine); font-variant-numeric: tabular-nums; }
.price-includes { margin-top: 32px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--muted); }
.price-includes b { color: var(--ink); font-weight: 700; }
.price-includes span { display: inline-flex; align-items: center; gap: 8px; }
.price-includes .tick { color: var(--pine); font-weight: 800; }
.price-cta { display: flex; gap: 16px; margin-top: 48px; flex-wrap: wrap; }
.price-note { margin-top: 24px; color: var(--muted); font-size: 14px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 20px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); background: var(--sage); }
.price-table td:last-child, .price-table th:last-child { text-align: right; font-weight: 800; white-space: nowrap; color: var(--wine); }
.price-box { border-top: 2px solid var(--ink); margin-bottom: 48px; }
.price-box h3 { font-size: clamp(18px, 2.4vw, 24px); text-transform: uppercase; padding: 24px 0 8px; }

/* ---------- Шаги ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { border-top: 2px solid var(--ink); padding-top: 24px; }
.step .n { font-size: 64px; line-height: 1; font-weight: 300; color: var(--line); }
.step h3 { font-size: 20px; text-transform: uppercase; margin: 16px 0 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- Отзывы ---------- */
.big-quote { font-size: clamp(24px, 3vw, 44px); line-height: 1.15; font-weight: 800; text-transform: uppercase; max-width: 1000px; margin-bottom: 64px; }
.big-quote .q { color: var(--accent); }
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.review-card { background: transparent; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.stars { color: var(--star); letter-spacing: 4px; }
.review-card p { font-size: 18px; line-height: 28px; flex: 1; }
.review-author { display: flex; align-items: center; gap: 16px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--pine); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 18px; }
.review-author b { display: block; }
.review-author span { font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 900px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font-family: inherit; font-size: clamp(18px, 2vw, 24px); font-weight: 700; color: var(--ink); text-align: left; }
.faq-q:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.faq-q .plus { flex: none; font-weight: 300; font-size: 32px; line-height: 1; transition: color 0.5s var(--ease); }
.faq-item.open .plus { color: var(--wine); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.7s var(--ease); }
.faq-a p { padding: 0 0 28px; color: var(--muted); max-width: 700px; font-size: 18px; line-height: 28px; }

/* ---------- Вопросы + запись ---------- */
.qa-grid { display: grid; grid-template-columns: 1fr 480px; gap: 64px; align-items: start; }
.qa-side { position: sticky; top: 96px; display: grid; gap: 32px; }
.qa-contact { border-top: 2px solid var(--ink); padding-top: 24px; display: grid; gap: 4px; }
.qa-contact a { font-size: 32px; line-height: 40px; font-weight: 800; text-decoration: none; letter-spacing: -0.02em; }
.qa-contact a:hover { color: var(--wine); }
.qa-contact span { color: var(--muted); }
.form-card { background: var(--paper); border: 1px solid var(--line); color: var(--ink); border-radius: var(--radius); padding: 40px; }
.form-card h3 { font-size: 24px; margin-bottom: 4px; }
.form-card .form-sub { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.form-card label { display: block; font-size: 14px; font-weight: 700; margin: 16px 0 8px; }
.form-card input, .form-card select {
  width: 100%; padding: 16px; border-radius: 12px; border: 1px solid var(--line);
  font-family: inherit; font-size: 16px; background: #fff; color: var(--ink);
}
.form-card input:focus, .form-card select:focus { outline: 2px solid var(--pine); border-color: var(--pine); }
.form-card input.invalid { border-color: var(--danger); }
.field-error { font-size: 14px; color: var(--danger); margin-top: 4px; min-height: 20px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--muted); margin: 16px 0 24px; font-weight: 400; }
.consent input { width: 20px; height: 20px; margin-top: 0; flex: none; accent-color: var(--wine); }
.consent a { color: var(--wine); }
.form-ok { display: none; background: var(--sage); border: 1px solid var(--pine); border-radius: 12px; padding: 16px; margin-top: 16px; font-size: 14px; }
.form-ok.show { display: block; }
.contra-note { font-size: 12px; line-height: 16px; color: var(--muted); margin-top: 12px; }

/* ---------- Контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.contact-line { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); font-size: 18px; }
.contact-line:last-of-type { border-bottom: 1px solid var(--line); }
.contact-line .k { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact-line a { text-decoration: none; font-weight: 700; }
.contact-line a:hover { color: var(--wine); }
.map-box { border-radius: var(--radius); overflow: hidden; min-height: 480px; background: var(--sage); }
.map-box iframe { width: 100%; height: 100%; min-height: 480px; border: 0; display: block; }

/* ---------- Надзор / документы ---------- */
.supervise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.supervise-card { border-top: 2px solid var(--ink); padding-top: 24px; font-size: 16px; }
.supervise-card h3 { font-size: 20px; margin-bottom: 12px; text-transform: uppercase; }
.supervise-card p { color: var(--muted); margin-bottom: 4px; }
.supervise-card a { color: var(--wine); font-weight: 700; text-decoration: none; }
.doc-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.doc-row { display: flex; align-items: center; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.doc-row .n { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); flex: none; width: 48px; }
.doc-row .grow { flex: 1; }
.doc-row b { display: block; font-size: 18px; margin-bottom: 2px; }
.doc-row span { font-size: 14px; color: var(--muted); }
.doc-row a { color: var(--wine); }
.prose { max-width: 860px; }
.prose h2 { font-size: clamp(24px, 3vw, 40px); text-transform: uppercase; margin: 64px 0 16px; }
.prose h3 { font-size: 20px; margin: 32px 0 8px; }
.prose p, .prose li { color: #3c4542; margin-bottom: 8px; font-size: 18px; line-height: 28px; }
.prose ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.prose a { color: var(--wine); }

/* ---------- Внутренний hero ---------- */
.page-hero { padding: 80px 0 64px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 96px); line-height: 0.98; font-weight: 800; text-transform: uppercase; margin-top: 24px; max-width: 1100px; }
.page-hero h1 .thin { font-weight: 300; }
.page-hero p { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 640px; }

/* ---------- Подвал ---------- */
.footer { background: var(--paper); color: var(--muted); margin-top: 0; border-top: 2px solid var(--ink); }
.footer .container { padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; }
.footer h3 { color: var(--ink); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 20px; }
.footer ul { display: grid; gap: 12px; font-size: 16px; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--wine); }
.footer-req { border-top: 1px solid var(--line); padding: 24px 0; font-size: 14px; }
.footer-contra { border-top: 1px solid var(--line); padding: 20px 0; font-weight: 800; color: var(--ink); letter-spacing: 0.06em; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0 32px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }

/* ---------- Cookie ---------- */
.mobile-cta { display: none; }
.cookie {
  position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 150;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 20px 28px; display: none; align-items: center; gap: 20px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.cookie.show { display: flex; }
.cookie p { flex: 1; min-width: 240px; font-size: 14px; }
.cookie a { color: var(--wine); font-weight: 700; }
.cookie .row { display: flex; gap: 12px; }

/* ---------- Версия для слабовидящих ---------- */
body.a11y { --muted: #2f3835; --line: #a9a79a; font-size: 19px; line-height: 30px; }
body.a11y img { filter: grayscale(1) contrast(1.15); }
body.a11y .clinic-sec, body.a11y .form-card, body.a11y .svc-card, body.a11y .price-includes { background: #fff; }
body.a11y a { text-decoration: underline; }
body.a11y .btn, body.a11y input, body.a11y select { border-width: 2px; }
body.a11y .reveal { opacity: 1; transform: none; }

/* ---------- Анимации ---------- */
.reveal { opacity: 0; transform: translateY(48px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Каскад появления сеток */
.stagger > *:nth-child(2) { transition-delay: 0.08s; }
.stagger > *:nth-child(3) { transition-delay: 0.16s; }
.stagger > *:nth-child(4) { transition-delay: 0.24s; }
.stagger > *:nth-child(5) { transition-delay: 0.32s; }
.stagger > *:nth-child(6) { transition-delay: 0.4s; }

/* Вход hero при загрузке */
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise 1s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-media { animation: rise 1.1s var(--ease) 0.15s both; }

/* Прогресс скролла */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--wine); transform-origin: 0 50%; transform: scaleX(0); z-index: 200; }

/* ---------- Уважение к системным настройкам ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .tagline .w { color: var(--ink); }
  .tagline .w.hl { color: var(--wine); }
  .scroll-progress { display: none; }
  .btn:hover .arr { transform: none; }
}

.page-404 { text-align: center; padding: 120px 0; }
.page-404 .code { font-size: clamp(80px, 14vw, 200px); font-weight: 800; color: var(--wine); line-height: 1; font-variant-numeric: tabular-nums; }
.page-404 h1 { font-size: clamp(28px, 4vw, 48px); text-transform: uppercase; font-weight: 800; margin-top: 8px; }
.page-404-sub { color: var(--muted); max-width: 520px; margin: 16px auto 32px; }
.page-404-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.page-404-tel { margin-top: 32px; color: var(--muted); }
.page-404-tel a { color: var(--pine); font-weight: 700; }

/* ---------- Адаптив ---------- */
/* Навигация уходит в бургер раньше, чтобы шапка не разъезжалась на ноутбуках */
@media (max-width: 1320px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .mobile-menu { display: block; background: var(--paper); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height 0.7s var(--ease); }
  .mobile-menu.open { max-height: 560px; }
  .mobile-menu nav { display: grid; padding: 8px 40px 32px; }
  .mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 18px; }
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { padding-bottom: 0; }
  .hero-slide img { height: 440px; border-radius: var(--radius); }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-fact + .hero-fact { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 4px; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head p { justify-self: start; }
  .dark-grid { grid-template-columns: 1fr; }
  .dark-grid img { height: 380px; }
  .qa-grid { grid-template-columns: 1fr; }
  .qa-side { position: static; }
  .docs-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: 1fr; }
  .supervise-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(3) { border-left: none; padding-left: 0; }
  .stat-cell { padding-top: 24px; padding-bottom: 24px; }
}

@media (max-width: 680px) {
  .container { padding: 0 20px; }
  section.block { padding: 80px 0; }
  .nav-phone { display: none; }
  .topbar-left .addr, .topbar .lic { display: none; }
  .hero h1 { font-size: 44px; }
  .hero-slide img { height: 320px; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card { min-height: 0; }
  .clinic-sec { border-left: none; border-right: none; }
  .dark-list { grid-template-columns: 1fr; }
  .dark-item:nth-child(even) { border-left: none; padding-left: 0; }
  .docs-grid, .reviews-grid, .steps-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-line { grid-template-columns: 1fr; gap: 4px; }
  .cookie { left: 12px; right: 12px; bottom: 88px; }
  .stat-cell b { font-size: 36px; }
  .mobile-cta {
    display: flex; gap: 12px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 140;
    background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
    padding: 8px; box-shadow: var(--shadow);
  }
  .mobile-cta .btn { flex: 1; }
  .footer .container { padding-bottom: 96px; }
  .trust-card { padding: 24px 20px; }
  .price-includes { padding: 20px; }
  .trust-bar { gap: 6px 18px; }
}
