/* ============================================================
   NERONOV — OXYGEN GLOBAL STYLESHEET
   Вставьте всё содержимое этого файла в Oxygen:
   Manage → Stylesheets → + Add Stylesheet → (вставить) → Save
   Шрифт Manrope подключите в Oxygen: Manage → Settings →
   Global Styles → Fonts, или оставьте <link> в Code Block шапки.
   ============================================================ */

/* ============================================================
   НЕРОНОВ — ЛОР-хирург · Дизайн-система
   Slate + Teal · Manrope (единый шрифт)
   ============================================================ */

/* ---------- TOKENS: light (default) ---------- */
:root {
  /* neutrals */
  --bg:        #F4F6F9;
  --surface:   #FFFFFF;
  --surface-2: #F8FAFC;
  --surface-3: #EEF2F7;
  --ink:       #0F172A;
  --ink-2:     #334155;
  --ink-3:     #64748B;
  --ink-4:     #94A3B8;
  --line:      #E3E8EF;
  --line-2:    #D7DEE8;
  --success:   #10B981;

  /* accent — overridden by [data-accent] */
  --accent:        #0E63A5;
  --accent-strong: #0E63A5;
  --accent-soft:   #E2EBF5;
  --accent-ink:    #FFFFFF;
  --accent-glow:   rgba(14,99,165,0.16);

  /* elevation */
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05), 0 1px 1px rgba(15,23,42,.03);
  --shadow-md: 0 4px 14px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --shadow-lg: 0 22px 60px -22px rgba(15,23,42,.22), 0 8px 22px -14px rgba(15,23,42,.12);
  --shadow-xl: 0 40px 90px -30px rgba(15,23,42,.30);
  --ring: 0 0 0 4px var(--accent-glow);

  /* geometry */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;
  --container: 1200px;

  /* type — single typeface across the whole project */
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: var(--sans);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------- accent variants ---------- */
:root[data-accent="teal"] {
  --accent:#0E63A5; --accent-strong:#0E63A5; --accent-soft:#E2EBF5; --accent-glow:rgba(14,99,165,.16);
}
:root[data-accent="indigo"] {
  --accent:#4F5BD5; --accent-strong:#3F49B8; --accent-soft:#ECEDFB; --accent-glow:rgba(79,91,213,.16);
}
:root[data-accent="bronze"] {
  --accent:#A8783F; --accent-strong:#8C6231; --accent-soft:#F4ECE0; --accent-glow:rgba(168,120,63,.16);
}

/* ---------- TOKENS: dark ---------- */
:root[data-theme="dark"] {
  --bg:        #070B14;
  --surface:   #0E1422;
  --surface-2: #111A2B;
  --surface-3: #16213450;
  --ink:       #EDF1F7;
  --ink-2:     #B7C2D2;
  --ink-3:     #8896AB;
  --ink-4:     #5C6A82;
  --line:      #1E2A3F;
  --line-2:    #283750;
  --success:   #34D399;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 20px rgba(0,0,0,.45);
  --shadow-lg: 0 28px 70px -26px rgba(0,0,0,.7);
  --shadow-xl: 0 50px 100px -30px rgba(0,0,0,.8);
}
:root[data-theme="dark"][data-accent="teal"]   { --accent:#5AA6E6; --accent-strong:#84C1EF; --accent-soft:#0C2036; --accent-ink:#04121F; --accent-glow:rgba(90,166,230,.22); }
:root[data-theme="dark"][data-accent="indigo"] { --accent:#8B93F0; --accent-strong:#A6ACF5; --accent-soft:#161B36; --accent-ink:#0B0F26; --accent-glow:rgba(139,147,240,.22); }
:root[data-theme="dark"][data-accent="bronze"] { --accent:#D3A56B; --accent-strong:#E2BC8A; --accent-soft:#2A2114; --accent-ink:#231708; --accent-glow:rgba(211,165,107,.22); }

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }
.no-transitions, .no-transitions *, .no-transitions *::before, .no-transitions *::after { transition: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.62;
  font-weight: 450;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s var(--ease), color .4s var(--ease);
}
::selection { background: var(--accent); color: var(--accent-ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display, .h1, .h2, .h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.026em; line-height: 1.05; color: var(--ink); margin: 0; }
.display { font-size: clamp(44px, 6.4vw, 74px); font-weight: 800; line-height: 1.02; letter-spacing: -0.036em; }
.h1 { font-size: clamp(40px, 5vw, 64px); }
.h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; }
.h3 { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.14; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-strong); display: inline-flex; align-items: center; gap: 9px;
}
:root[data-theme="dark"] .eyebrow { color: var(--accent); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); font-weight: 450; }
.muted { color: var(--ink-3); }
.serif-num { font-family: var(--serif); font-feature-settings: "tnum" 1; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(52px, 6vw, 84px); position: relative; }
.section-tight { padding-block: clamp(40px, 4.5vw, 60px); }
.grid { display: grid; gap: 24px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.section-head { max-width: 720px; }
.section-head .h2 { margin-top: 16px; }
.section-head .lead { margin-top: 18px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 650; font-size: 15.5px; letter-spacing: -0.01em;
  padding: 14px 24px; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: transform .22s var(--ease), background .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 24px -10px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 16px 34px -12px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--surface-2); transform: translateY(-2px); }
.btn-soft { background: var(--accent-soft); color: var(--accent-strong); }
:root[data-theme="dark"] .btn-soft { color: var(--accent); }
.btn-soft:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.btn-lg { padding: 17px 30px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ============================================================
   SURFACES / CARDS
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.card-pad { padding: clamp(22px, 2.4vw, 32px); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.chip-accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-strong); }
:root[data-theme="dark"] .chip-accent { color: var(--accent); }

.divider { height: 1px; background: var(--line); border: 0; }

/* icon tile */
.itile {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 15px;
  background: var(--accent-soft); color: var(--accent-strong);
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
:root[data-theme="dark"] .itile { color: var(--accent); }
.itile svg { width: 25px; height: 25px; }

/* ============================================================
   IMAGE PLACEHOLDER (striped)
   ============================================================ */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(135deg, transparent 0 13px, var(--line) 13px 14px),
    var(--surface-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.ph::after {
  content: attr(data-label);
  font-family: "Manrope", monospace; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--ink-4); background: var(--surface); padding: 6px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line); position: relative; z-index: 1;
}
:root[data-theme="dark"] .ph {
  background: repeating-linear-gradient(135deg, transparent 0 13px, rgba(255,255,255,.04) 13px 14px), var(--surface-2);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom-color: var(--line); box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 9px 14px; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: color .2s, background .2s; }
.nav-link:hover { color: var(--ink); background: var(--surface-2); }
.nav-link.is-current { color: var(--accent-strong); }

/* Выпадающее подменю (второй уровень меню из админки) */
.nav-has-drop { position: relative; display: inline-flex; align-items: center; }
.nav-has-drop > .nav-link { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { transform: rotate(90deg); opacity: .5; }
.nav-drop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  display: flex; flex-direction: column; gap: 2px; min-width: 250px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav-has-drop:hover .nav-drop, .nav-has-drop:focus-within .nav-drop {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-drop-link {
  padding: 10px 12px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 550;
  color: var(--ink-2); transition: color .2s, background .2s; line-height: 1.35;
}
.nav-drop-link:hover { color: var(--accent-strong); background: var(--accent-soft); }
:root[data-theme="dark"] .nav-drop-link:hover { color: var(--accent); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 50px; height: 50px; border-radius: 12px; flex: none;
  display: grid; place-items: center; overflow: hidden;
}
.brand-mark img { width: 50px; height: 50px; display: block; }
/* В тёмной теме синий логотип делаем светлым, чтобы читался на тёмном фоне */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-mark img { filter: brightness(0) invert(1); }
}
:root[data-theme="dark"] .brand-mark img { filter: brightness(0) invert(1); }
:root[data-theme="light"] .brand-mark img { filter: none; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.1; letter-spacing: -.01em; }
.brand-sub { font-size: 11.5px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; }

/* theme toggle */
.tgl {
  width: 42px; height: 42px; border-radius: var(--r-pill); display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
  transition: background .2s, color .2s, transform .3s var(--ease), border-color .2s;
}
.tgl:hover { color: var(--ink); border-color: var(--line-2); }
.tgl svg { width: 19px; height: 19px; }

/* ============================================================
   STAT
   ============================================================ */
.stat-num { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 42px); line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.stat-num .u { color: var(--accent); }
.stat-label { font-size: 13.5px; color: var(--ink-3); line-height: 1.4; margin-top: 8px; font-weight: 500; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
/* transform-only entrance — opacity never drops, so content is always legible
   even if a host environment freezes transition clocks */
.reveal { transform: translateY(22px); transition: transform .7s var(--ease-out); }
.reveal.in { transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
.reveal[data-d="5"] { transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   ACCORDION (FAQ)
   ============================================================ */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; text-align: left; background: none; border: 0; padding: 26px 4px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--ink); }
.acc-q { font-family: var(--serif); font-size: clamp(18px, 1.7vw, 22px); font-weight: 500; letter-spacing: -.01em; }
.acc-ic { flex: none; width: 34px; height: 34px; border-radius: var(--r-pill); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-2); transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s; }
.acc-head:hover .acc-ic { border-color: var(--accent); color: var(--accent); }
.acc-item.open .acc-ic { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(45deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc-body > div { overflow: hidden; }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-body p { margin: 0 56px 28px 4px; color: var(--ink-2); font-size: 16.5px; }

/* ============================================================
   FORM
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 13.5px; font-weight: 650; color: var(--ink-2); letter-spacing: -.005em; }
.input, .textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 14px 16px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); background: var(--surface); }
.textarea { resize: vertical; min-height: 96px; }

/* choice pills */
.choice {
  padding: 13px 18px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2);
  background: var(--surface); font-weight: 600; font-size: 14.5px; color: var(--ink-2);
  transition: all .2s var(--ease); display: inline-flex; align-items: center; gap: 8px;
}
.choice:hover { border-color: var(--ink-3); color: var(--ink); }
.choice.sel { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
:root[data-theme="dark"] .choice.sel { color: var(--accent); }
.choice .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0; transition: opacity .2s; }
.choice.sel .dot { opacity: 1; }

/* progress */
.steps { display: flex; align-items: center; gap: 10px; }
.step-dot { height: 5px; border-radius: 99px; background: var(--line-2); flex: 1; transition: background .4s var(--ease); }
.step-dot.done { background: var(--accent); }

/* ============================================================
   UTIL
   ============================================================ */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hidden { display: none !important; }
.text-accent { color: var(--accent-strong); }
:root[data-theme="dark"] .text-accent { color: var(--accent); }
.noise-edge { position: relative; }

@media (max-width: 920px) {
  .nav-links { display: none; }
}


/* ===== SECTIONS ===== */

/* ============================================================
   SECTION STYLES — layouts, variants, responsive
   ============================================================ */

/* responsive visibility helpers */
[data-show-sm] { display: none !important; }
[data-show-md] { display: none !important; }
@media (max-width: 720px) {
  [data-show-sm] { display: grid !important; }
  [data-hide-sm] { display: none !important; }
}
@media (min-width: 721px) and (max-width: 920px) {
  [data-show-md] { display: inline-flex !important; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero-wrap { position: relative; padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-glow {
  position: absolute; inset: -10% -10% auto -10%; height: 620px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(620px 420px at 78% 12%, var(--accent-glow), transparent 70%),
    radial-gradient(560px 380px at 12% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 72%);
  opacity: .9;
}
.hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(28px, 4vw, 56px); }
.hero-copy { max-width: 600px; }
.hero-h1 { margin-top: 4px; }
.hero-sub { margin-top: 22px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-mini { display: flex; align-items: center; gap: 9px; margin-top: 22px; }

.hero-visual { position: relative; }
.hero-portrait { position: relative; height: 100%; }
.hero-ph { box-shadow: var(--shadow-lg); }
.hero-float, .hero-float2 { position: absolute; padding: 14px 16px; box-shadow: var(--shadow-lg); border-radius: var(--r-md); animation: floaty 6s var(--ease) infinite; }
/* Слева вверху — «24 года», карточка узкая, лицо не перекрывает */
.hero-float { left: -48px; top: 18px; }
/* Справа внизу — «Сертифицирован», карточка широкая */
.hero-float2 { right: -18px; bottom: 56px; animation-delay: -3s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .hero-float, .hero-float2 { animation: none; } }

/* hero centered variant */
.hero-centered { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hero-centered .hero-copy { max-width: 760px; }
.hero-centered .hero-sub { margin-inline: auto; }
.hero-centered .hero-cta, .hero-centered .hero-mini { justify-content: center; }
.hero-centered .hero-visual { width: 100%; margin-top: 16px; }
.hero-centered .hero-ph { min-height: 380px !important; }
.hero-centered .hero-float { left: max(2%, calc(50% - 580px)); }
.hero-centered .hero-float2 { right: max(2%, calc(50% - 580px)); }

/* stat strip */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: clamp(22px, 2.6vw, 30px) clamp(20px, 2.6vw, 34px); margin-top: 12px; box-shadow: var(--shadow-md); }
.hero-stat { padding: 6px 14px; position: relative; }
.hero-stat + .hero-stat::before { content: ''; position: absolute; left: 0; top: 14%; height: 72%; width: 1px; background: var(--line); }

/* На средних экранах не даём карточкам уехать за край окна */
@media (max-width: 1200px) {
  .hero-float  { left: -16px; }
  .hero-float2 { right: -8px; }
}
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  /* Мобильная версия: портрет под текстом, на общем фоне, как на компьютере */
  .hero-visual { display: block; width: 100%; max-width: 440px; margin: 24px auto 4px; }
  /* Фото сразу под заголовком: раскрываем .hero-copy и задаём порядок блоков */
  .container.hero { row-gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy > :nth-child(1) { order: 1; }
  .hero-copy > :nth-child(2) { order: 2; }
  .hero-visual { order: 3; }
  .hero-copy > :nth-child(n+3) { order: 4; }
  .hero-portrait { height: auto; aspect-ratio: 768 / 1016; }
  .hero-float  { left: 0; top: 44%; padding: 10px 12px; }
  .hero-float2 { right: 0; bottom: 28px; padding: 10px 12px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 14px 8px; }
}
@media (max-width: 720px) {
  .hero-cta .btn { flex: 1; min-width: 0; }
}

/* ============================================================
   TRUST
   ============================================================ */
.trust-grid { grid-template-columns: repeat(4, 1fr); }
.trust-card { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.trust-card:hover .itile { background: var(--accent); color: var(--accent-ink); transform: rotate(-4deg); }
.trust-head { display: flex; align-items: center; gap: 14px; }
.trust-head .itile { flex: none; }
.trust-title { font-family: var(--serif); font-size: 19px; font-weight: 500; margin: 0; letter-spacing: -.01em; flex: 1 1 auto; }
@media (max-width: 920px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .trust-grid { grid-template-columns: 1fr; } }

/* ============================================================
   DIRECTIONS
   ============================================================ */
.dir-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.dir-grid { grid-template-columns: repeat(4, 1fr); }
.dir-card { display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 2.2vw, 26px); height: 100%; position: relative; overflow: hidden; }
.dir-title { font-family: var(--serif); font-size: 18px; font-weight: 500; margin: 0; letter-spacing: -.01em; line-height: 1.2; }
.dir-text { font-size: 14px; margin: 6px 0 0; }
.dir-body { flex: 1; }
.dir-arrow { color: var(--ink-4); transition: transform .3s var(--ease), color .3s var(--ease); }
.dir-card:hover .dir-arrow { color: var(--accent); transform: translate(4px, -4px); }
.dir-card:hover .itile { transform: translateY(-2px); }

/* variant: soft (default) */
.dir-soft .dir-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.dir-soft .dir-card:hover .itile { background: var(--accent); color: var(--accent-ink); }

/* variant: outline — minimal, accent ring on hover */
.dir-outline .dir-card { background: transparent; }
.dir-outline .dir-card .itile { background: transparent; border: 1px solid var(--line-2); color: var(--accent-strong); }
.dir-outline .dir-card:hover { border-color: var(--accent); background: var(--surface); box-shadow: var(--shadow-md); }
.dir-outline .dir-card:hover .itile { border-color: var(--accent); background: var(--accent-soft); }

/* variant: filled — tinted, fills with accent on hover */
.dir-filled .dir-card { background: var(--surface-2); border-color: transparent; }
.dir-filled .dir-card::after { content: ''; position: absolute; inset: 0; background: var(--accent); opacity: 0; transition: opacity .3s var(--ease); z-index: 0; }
.dir-filled .dir-card > * { position: relative; z-index: 1; }
.dir-filled .dir-card:hover::after { opacity: 1; }
.dir-filled .dir-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dir-filled .dir-card:hover .dir-title, .dir-filled .dir-card:hover .dir-text, .dir-filled .dir-card:hover .dir-arrow { color: var(--accent-ink); }
.dir-filled .dir-card:hover .itile { background: rgba(255,255,255,.16); color: var(--accent-ink); }

@media (max-width: 980px) { .dir-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .dir-grid { grid-template-columns: 1fr; } }

/* ============================================================
   WHY
   ============================================================ */
.why-wrap { background: var(--surface-2); border-block: 1px solid var(--line); }
.why-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.why-aside { position: sticky; top: 100px; }
/* Лид секции «Почему выбирают доктора» — мельче общего .lead */
.why-lead { font-size: 14.5px; line-height: 1.6; }

/* Фото врача за работой — вертикальное, ограничиваем высоту */
.why-portrait { margin-top: 22px; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); }
.why-portrait img { display: block; object-position: center 50%; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; display: flex; gap: 16px; height: 100%; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.why-title { font-size: 16px; font-weight: 700; margin: 0; letter-spacing: -.01em; line-height: 1.25; }
@media (max-width: 920px) { .why-layout { grid-template-columns: 1fr; } .why-aside { position: static; } .why-portrait { display: none; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SURGERY / TIMELINE
   ============================================================ */
.surgery-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.surgery-where { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }

.tl-v { display: grid; gap: 26px; position: relative; }
.tl-v::before { content: ''; position: absolute; left: 19px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(var(--accent), var(--line)); }
.tl-v .tl-item { display: grid; grid-template-columns: 40px 1fr; gap: 22px; align-items: start; position: relative; }
.tl-v .tl-node { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); display: grid; place-items: center; z-index: 1; }
.tl-v .tl-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--accent); }

.tl-h { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tl-h .tl-item { display: block; position: relative; }
.tl-h .tl-node { display: none; }
.tl-h .tl-card { height: 100%; }
.tl-h .tl-item:not(:last-child)::after { content: ''; position: absolute; top: 38px; right: -16px; width: 14px; height: 14px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); opacity: .5; z-index: 2; }

.tl-card { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.tl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.tl-card-head { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; }
.tl-card-head .itile { flex: none; }
.tl-title { margin: 0; flex: 1 1 auto; }
.tl-step { flex: none; margin-left: auto; }
.tl-text { padding-left: 61px; }
@media (max-width: 560px) { .tl-text { padding-left: 0; } }
.tl-meta { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: 7px 12px; border-radius: var(--r-pill); }
.tl-meta svg { color: var(--accent); }

.surgery-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 48px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--accent-soft); }
@media (max-width: 760px) { .tl-h { grid-template-columns: 1fr; } .tl-h .tl-item:not(:last-child)::after { display: none; } .surgery-cta .btn { width: 100%; } }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-wrap { background: var(--surface-2); border-block: 1px solid var(--line); }
.reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.reviews-score { display: flex; align-items: center; gap: 16px; padding: 16px 22px; }
.reviews-grid { grid-template-columns: repeat(2, 1fr); }
.review-card { position: relative; display: flex; flex-direction: column; gap: 16px; height: 100%; }
.review-quote { position: absolute; top: 22px; right: 24px; color: var(--accent); opacity: .22; }
.review-text { font-family: var(--serif); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; font-weight: 400; margin: 0; color: var(--ink); letter-spacing: -.01em; }
.review-foot { display: flex; align-items: center; gap: 13px; margin-top: auto; padding-top: 8px; }
.review-ava { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }

.video-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.video-card { position: relative; aspect-ratio: 16/10; border-radius: var(--r-lg); overflow: hidden; cursor: pointer; }
.video-card .play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(6px); display: grid; place-items: center; color: var(--accent-strong); box-shadow: var(--shadow-md); transition: transform .3s var(--ease); }
.video-card:hover .play { transform: scale(1.08); }
@media (max-width: 760px) { .reviews-grid { grid-template-columns: 1fr; } .video-reviews { grid-template-columns: 1fr; } .review-ava { width: 40px; height: 40px; } }

/* ============================================================
   FACILITY
   ============================================================ */
.facility-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.facility-media { position: relative; width: 100%; max-width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-lg); }
.facility-media img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; min-height: 0 !important; }
.facility-badge { position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; box-shadow: var(--shadow-lg); }
.facility-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; margin-top: 34px; }
.facility-item { display: flex; gap: 14px; }
@media (max-width: 860px) { .facility-layout { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .facility-list { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-aside { position: sticky; top: 100px; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .faq-aside { position: static; } }

/* ============================================================
   ARTICLES
   ============================================================ */
.articles-wrap { background: var(--surface-2); border-block: 1px solid var(--line); }
.articles-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.articles-grid { grid-template-columns: repeat(3, 1fr); }
.article-card { display: flex; flex-direction: column; padding: 0; height: 100%; min-height: 200px; overflow: hidden; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
/* Пояснение под каталогом услуг */
.services-note { font-size: 14.5px; line-height: 1.55; margin: 28px 0 0; max-width: 760px; }

/* Дата обновления статьи — сигнал свежести (в т.ч. для ИИ) */
.art-updated { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }

/* Ссылка «услуга по теме» в шапке статьи — pillar-ссылка кластера */
.art-service-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px; padding: 11px 18px;
  background: var(--accent-soft); border: 1px solid var(--line);
  border-radius: var(--r-pill); text-decoration: none;
  font-size: 14.5px; color: var(--ink); transition: gap .25s var(--ease), border-color .25s;
}
.art-service-link:hover { gap: 14px; border-color: var(--accent); }
.art-service-link svg:first-child { color: var(--accent); flex: none; }
.art-service-link svg:last-child { color: var(--accent); flex: none; }
.art-service-link strong { color: var(--accent-strong, var(--accent)); font-weight: 700; }

/* Фото пациентов с врачом над отзывами — 2 в строку */
.reviews-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.reviews-photo { margin: 0; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.reviews-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .reviews-photos { grid-template-columns: 1fr; } }

/* Каталог услуг */
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service-card { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.service-card-head { display: flex; align-items: center; gap: 14px; }
.service-card-head .itile { flex: none; }
.service-card-title { font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; margin: 0; color: var(--ink); flex: 1 1 auto; }
.service-card-text { font-size: 14.5px; margin: 0; }
@media (max-width: 860px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* Пагинация на странице статей */
.articles-pager { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 48px; }
.articles-pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 15px; font-weight: 650; color: var(--ink-2);
  background: var(--surface); transition: border-color .2s, color .2s, background .2s;
}
.articles-pager .page-numbers:hover { border-color: var(--ink-3); color: var(--ink); }
.articles-pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.articles-pager .page-numbers.dots { border-color: transparent; background: transparent; }

/* Обложка статьи */
.article-cover { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.article-card:hover .article-cover img { transform: scale(1.04); }
.article-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.2vw, 26px); flex: 1; }
.article-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-strong); }
.article-title { font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.22; margin: 0; flex: 1; letter-spacing: -.01em; }
.article-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 650; color: var(--ink-2); transition: gap .25s, color .25s; }
.article-card:hover .article-link { color: var(--accent-strong); gap: 11px; }
@media (max-width: 860px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .articles-grid { grid-template-columns: 1fr; } }

/* ============================================================
   BOOKING
   ============================================================ */
.booking-card { display: grid; grid-template-columns: .92fr 1.08fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.booking-aside { padding: clamp(28px, 3.4vw, 48px); background: linear-gradient(165deg, var(--accent-soft), transparent 70%); }
.booking-contacts { display: grid; gap: 14px; margin-top: 32px; }
.booking-contact { display: flex; align-items: center; gap: 14px; }
.booking-panel { padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: center; min-height: 420px; }
.booking-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.booking-progress .steps { flex: 1; max-width: 180px; }
.booking-q { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 27px); font-weight: 500; margin: 0 0 22px; letter-spacing: -.01em; }
.booking-choices { display: grid; gap: 14px; }
.book-format { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: var(--surface); text-align: left; transition: all .2s var(--ease); }
.book-format:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.book-format.sel { border-color: var(--accent); background: var(--accent-soft); }
.book-format-arrow { margin-left: auto; color: var(--ink-4); transition: transform .25s, color .25s; }
.book-format:hover .book-format-arrow { color: var(--accent); transform: translateX(4px); }
.booking-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.booking-consent { font-size: 12px; margin: 16px 0 0; }

/* Согласия перед отправкой */
.booking-consents { display: flex; flex-direction: column; gap: 11px; margin-top: 18px; }
.consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
:root[data-theme="dark"] .consent a { color: var(--accent); }
.consent:hover { color: var(--ink); }
/* Сообщение об ошибке отправки — пустое место не занимает */
.booking-error { color: #B32D2E; font-size: 14px; margin: 14px 0 0; }
.booking-error:empty { display: none; }
:root[data-theme="dark"] .booking-error { color: #FF8A85; }
.booking-success { align-items: flex-start; gap: 14px; display: flex; flex-direction: column; }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; animation: pop .5s var(--ease-out); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.booking-recap { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 8px; }

/* inline form variant — full-width stepper, aside on top */
.booking-card.is-inline { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
.booking-card.is-inline .booking-aside { background: none; padding-bottom: 0; }
.booking-card.is-inline .booking-contacts { grid-template-columns: 1fr 1fr; }
.booking-card.is-inline .booking-panel { min-height: 0; }

@media (max-width: 860px) {
  .booking-card { grid-template-columns: 1fr; }
  .booking-card.is-inline .booking-contacts { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding-top: clamp(40px, 5vw, 64px); padding-bottom: 40px; border-top: 1px solid var(--line); }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(28px, 3.4vw, 48px); background: var(--ink); color: var(--surface); border: 0; }
:root[data-theme="dark"] .footer-cta { background: var(--surface-2); border: 1px solid var(--line); }
.footer-cta .h2, .footer-cta .lead { color: var(--surface); }
:root[data-theme="dark"] .footer-cta .h2 { color: var(--ink); }
:root[data-theme="dark"] .footer-cta .lead { color: var(--ink-2); }
.footer-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-cta .btn-ghost { color: var(--surface); border-color: rgba(255,255,255,.24); }
.footer-cta .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
:root[data-theme="dark"] .footer-cta .btn-ghost { color: var(--ink); border-color: var(--line-2); }

.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding-block: clamp(40px, 5vw, 64px); }
.footer-cert { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; color: var(--ink-3); max-width: 380px; }
.footer-links, .footer-contacts { display: flex; flex-direction: column; gap: 12px; }
.footer-h { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 4px; }
.footer-link { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink-2); transition: color .2s; }
a.footer-link:hover { color: var(--accent-strong); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
/* Ссылка на согласие — неброская, в тон остальному тексту подвала */
.footer-legal { font-size: 12.5px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.footer-legal:hover { color: var(--accent-strong); }
:root[data-theme="dark"] .footer-legal:hover { color: var(--accent); }
@media (max-width: 760px) { .footer-main { grid-template-columns: 1fr; gap: 32px; } .footer-cta-btns .btn { flex: 1; } }


/* ============================================================
   OXYGEN VANILLA ADD-ONS (иконки через спрайт + состояния без React)
   ============================================================ */

/* icon sprite defaults */
svg[data-i] { display: inline-block; vertical-align: middle; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Страховка от «раздутых» иконок: svg с атрибутами width/height
   не должен растягиваться на всю ширину контейнера. */
svg[data-i] { max-width: 40px; max-height: 40px; }
.itile svg[data-i] { width: 25px; height: 25px; }

/* Иконки из унаследованного контента (Elementor): у них только viewBox,
   без width/height — браузер растягивает их на всю ширину блока.
   Ограничиваем размером строки. */
.art-body svg:not([data-i]),
.page-body svg:not([data-i]) {
  width: 22px; height: 22px; display: inline-block; vertical-align: middle;
  color: var(--accent-strong);
}
/* Абзац, начинающийся с иконки: прижимаем к следующему за ним
   блоку — иначе иконка висит отдельной строкой в стороне от текста,
   к которому относится. :only-child не подходит: Elementor оставил
   в абзаце табуляции, они считаются текстовыми узлами. */
.art-body p:has(> svg:not([data-i]):first-child) { margin: 22px 0 -10px; }
.art-body p:has(> svg:not([data-i]):first-child) + ul { margin-top: 6px; }
.art-body a svg:not([data-i]),
.page-body a svg:not([data-i]) { margin-inline-start: 6px; }

/* Картинки в теле статьи: не шире колонки, пропорции сохраняются */
.art-body img {
  max-width: 100%; height: auto; display: block;
  margin: 24px auto; border-radius: var(--r-md);
}
.art-body figure { margin: 24px 0; }
.art-body figcaption { font-size: 14px; color: var(--ink-3); text-align: center; margin-top: 8px; }
.facility-badge svg[data-i], .hero-mini svg[data-i] { color: var(--accent-strong); }
:root[data-theme="dark"] .facility-badge svg[data-i], :root[data-theme="dark"] .hero-mini svg[data-i] { color: var(--accent); }

/* multi-step booking — show only active step */
.booking-step { display: none; }
.booking-step.is-active { display: block; }
.booking-step.booking-success.is-active { display: flex; }

/* mobile menu panel */
[data-mobile-menu][hidden] { display: none !important; }


/* ============================================================
   PATENTS
   ============================================================ */
.patents-wrap { background: var(--surface-2); border-block: 1px solid var(--line); }
.patents-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.patents-count { display: flex; align-items: center; gap: 16px; padding: 16px 22px; }
/* 6 в ряд — карточки вдвое меньше прежних */
.patents-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
.patent-card { overflow: hidden; display: flex; flex-direction: column; height: 100%; padding: 0; }
.patent-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
/* Пропорция листа А4 — скан виден целиком, без обрезки */
.patent-doc { position: relative; aspect-ratio: 745 / 1050; background: var(--surface-3); }
.patent-doc img { object-fit: contain !important; }
.patent-doc .ph { border-radius: 0; border: 0; height: 100%; }
.patent-stamp { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 8.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-strong); background: var(--surface); border: 1px solid var(--line); padding: 4px 7px; border-radius: 99px; box-shadow: var(--shadow-sm); }
/* В узких карточках штамп не помещается — прячем, номер есть в подписи */
@media (max-width: 1400px) { .patent-stamp { display: none; } }
:root[data-theme="dark"] .patent-stamp { color: var(--accent); }
.patent-meta { display: flex; flex-direction: column; gap: 4px; padding: 10px 11px 13px; }
.patent-num { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-strong); }
:root[data-theme="dark"] .patent-num { color: var(--accent); }
.patent-title { font-size: 11.5px; font-weight: 700; line-height: 1.28; letter-spacing: -.01em; color: var(--ink); }
@media (max-width: 1100px) { .patents-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px)  { .patents-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px)  {
  /* На мобильном скрываем сканы патентов: они мелкие, плохо
     читаются и грузят трафик. Остаётся номер и название —
     компактный текстовый список в 2 колонки. Картинка через
     display:none браузером не загружается. */
  .patents-grid { grid-template-columns: repeat(2, 1fr); }
  .patent-doc { display: none; }
  .patent-card { padding: 14px 12px; justify-content: center; }
  .patent-meta { padding: 0; }
}


/* ============================================================
   MOBILE REFINEMENTS  (≤640 / ≤460)
   ============================================================ */
@media (max-width: 640px) {
  .section { padding-block: 56px; }
  .section-tight { padding-block: 44px; }
  .container { padding-inline: 18px; }

  /* tighter heading rhythm */
  .section-head .lead { margin-top: 14px; }

  /* hero */
  .hero { padding-block: 18px 8px; gap: 26px; }
  .hero-sub { margin-top: 18px; }
  .hero-cta { margin-top: 26px; gap: 10px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 6px; padding: 18px; }
  .hero-stat { padding: 8px 10px; }
  .hero-stat + .hero-stat::before { display: none; }
  .stat-num { font-size: 26px; }

  /* buttons full-width where they head a CTA row */
  .surgery-cta .btn, .footer-cta-btns .btn, .svc-cta-btns .btn,
  .booking-aside .btn, .price-card .btn { width: 100%; }

  /* timeline a touch tighter */
  .tl-v { gap: 18px; }
  .tl-v .tl-item { grid-template-columns: 34px 1fr; gap: 16px; }
  .tl-v .tl-node { width: 34px; height: 34px; }

  /* reviews / cards */
  .reviews-head, .dir-head, .articles-head, .surgery-top, .patents-head { gap: 18px; }
  .review-text { font-size: 17px; }

  /* footer */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* faq question size */
  .acc-q { font-size: 17px; }
  .acc-head { padding: 20px 2px; }
  .acc-body p { margin-right: 8px; }
}

/* Шапка: на компьютере «Неронов Роман Витальевич», на мобильном «Неронов Роман» */
.brand-name { white-space: nowrap; }
@media (max-width: 920px) {
  .brand-name-full { display: none; }
}

@media (max-width: 400px) {
  .container { padding-inline: 15px; }
  .display { font-size: 36px; }
  .nav-inner { gap: 12px; }
  .brand-sub { display: none; }
}
