/* =========================================================================
   ОРИЕНТИР — вариант C, концепция «Поляна»
   Полностью самостоятельная таблица стилей, base.css не подключается.
   Природа и тишина: прохладный туманно-каменный фон с зелёным подтоном,
   олива как основной цвет. Первый экран — без фото, только текст и тихий
   знак «дыхание» (расходящиеся круги, как на воде). Фото — широкими
   спокойными полосами ниже. Круги вместо линий-тропы — воздушнее и современнее.
   ========================================================================= */

/* ---------- Шрифты: самохостed, кириллица+латиница ---------------------- */
@font-face{ font-family:"C Glade Heading"; font-style:normal; font-weight:500; font-display:swap;
  src:url("../fonts/c-glade-jost-500-cyrillic.woff2") format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face{ font-family:"C Glade Heading"; font-style:normal; font-weight:500; font-display:swap;
  src:url("../fonts/c-glade-jost-500-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family:"C Glade Heading"; font-style:normal; font-weight:600; font-display:swap;
  src:url("../fonts/c-glade-jost-600-cyrillic.woff2") format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face{ font-family:"C Glade Heading"; font-style:normal; font-weight:600; font-display:swap;
  src:url("../fonts/c-glade-jost-600-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family:"C Glade Heading"; font-style:normal; font-weight:700; font-display:swap;
  src:url("../fonts/c-glade-jost-700-cyrillic.woff2") format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face{ font-family:"C Glade Heading"; font-style:normal; font-weight:700; font-display:swap;
  src:url("../fonts/c-glade-jost-700-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

@font-face{ font-family:"C Glade Body"; font-style:normal; font-weight:400; font-display:swap;
  src:url("../fonts/c-glade-ptsans-400-cyrillic.woff2") format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face{ font-family:"C Glade Body"; font-style:normal; font-weight:400; font-display:swap;
  src:url("../fonts/c-glade-ptsans-400-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face{ font-family:"C Glade Body"; font-style:normal; font-weight:700; font-display:swap;
  src:url("../fonts/c-glade-ptsans-700-cyrillic.woff2") format("woff2");
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face{ font-family:"C Glade Body"; font-style:normal; font-weight:700; font-display:swap;
  src:url("../fonts/c-glade-ptsans-700-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- Токены ------------------------------------------------------ */
:root{
  --bg:#F1F3EE;
  --bg-alt:#E4E9DF;
  --olive:#5E6E4B;
  --olive-hover:#4C5A3D;
  --pine:#2E3B2A;
  --pine-2:#253322;
  --stone:#A9AE9E;
  --sand:#C9A876;
  --text:#232821;
  --text-muted:#5A6154;
  --line:#D3D8CA;
  --white:#FFFFFF;
  --on-dark:#F0EEE5;
  --on-dark-muted:#BFC6B7;

  --font-head:"C Glade Heading", Arial, sans-serif;
  --font-body:"C Glade Body", Arial, sans-serif;

  --radius-m:16px;
  --radius-full:999px;

  --container:1180px;
  --space-1:.5rem; --space-2:1rem; --space-3:1.5rem; --space-4:2.25rem; --space-5:3.5rem; --space-6:5.5rem;

  --shadow-card:0 20px 44px -28px rgba(35,40,33,.24);
}

/* ---------- Reset --------------------------------------------------------*/
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}
body{ margin:0; background:var(--bg); color:var(--text); font-family:var(--font-body); font-size:17px; line-height:1.65; -webkit-font-smoothing:antialiased; }
img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3,h4{ font-family:var(--font-head); font-weight:500; line-height:1.2; margin:0 0 .6em; letter-spacing:-.005em; }
h1{ font-size:clamp(2rem, 1.4rem + 2.4vw, 3.2rem); font-weight:600; }
h2{ font-size:clamp(1.45rem, 1.2rem + 1.1vw, 2.05rem); font-weight:600; }
h3{ font-size:1.15rem; font-weight:600; }
p{ margin:0 0 1em; }
.container{ max-width:var(--container); margin:0 auto; padding:0 var(--space-2); }
@media (min-width:640px){ .container{ padding:0 var(--space-3); } }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible{
  outline:3px solid var(--pine); outline-offset:2px; border-radius:4px;
}
.on-dark :focus-visible, .apply-block :focus-visible, .scroll-offer :focus-visible{ outline-color:var(--on-dark); }

/* Мягкая подсветка при тапе на тач-устройствах (вместо системной серой/синей вспышки) */
a, button, summary{ -webkit-tap-highlight-color: rgba(94,110,75,.15); }

.skip-link{ position:absolute; left:-999px; top:auto; background:var(--pine); color:var(--on-dark); padding:.8em 1.2em; font-weight:600; z-index:1000; border-radius:0 0 var(--radius-m) 0; }
.skip-link:focus{ left:0; top:0; }

.eyebrow{ display:inline-block; font-family:var(--font-head); font-weight:600; font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; color:var(--olive); margin-bottom:.9em; }
.on-dark .eyebrow{ color:var(--stone); }

/* Мини-«дыхание» перед рубрикой — повторяющийся фирменный мотив (эхо hero-знака) */
.eyebrow-ring{ display:inline-flex; align-items:center; gap:.5em; }
.eyebrow-ring svg{ width:20px; height:20px; flex-shrink:0; overflow:visible; }
.eyebrow-ring .ring{ fill:none; stroke:var(--olive); stroke-width:1.3; }
.eyebrow-ring .dot{ fill:var(--olive); stroke:none; }
.on-dark .eyebrow-ring .ring{ stroke:var(--stone); }
.on-dark .eyebrow-ring .dot{ fill:var(--stone); }
.lead{ font-size:1.1rem; color:var(--text-muted); max-width:54ch; }
.footnote{ font-size:.9rem; color:var(--text-muted); }
.text-muted{ color:var(--text-muted); }
.mt-lg{ margin-top:var(--space-4); }
.section-head{ max-width:62ch; margin:0 0 var(--space-4); }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head p{ color:var(--text-muted); }
section{ padding:var(--space-6) 0; }
.section-alt{ background:var(--bg-alt); }

/* ---------- Кнопки -------------------------------------------------------*/
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:.5em; font-family:var(--font-head); font-weight:600; font-size:1rem; padding:.9em 1.7em; min-height:44px; border-radius:var(--radius-full); border:1.5px solid transparent; text-decoration:none; cursor:pointer; transition:transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn:hover{ transform:translateY(-1px); }
.btn:active{ transform:scale(.97); }
.btn-primary{ background:var(--olive); color:#fff; }
.btn-primary:hover{ background:var(--olive-hover); }
.btn-outline{ background:transparent; border-color:var(--olive); color:var(--pine); }
.btn-outline:hover{ background:var(--bg-alt); }
.on-dark .btn-outline{ color:var(--on-dark); border-color:var(--on-dark-muted); }
.on-dark .btn-outline:hover{ background:rgba(255,255,255,.08); }
.btn-block{ width:100%; }
.btn:disabled{ opacity:.55; cursor:not-allowed; transform:none; }

/* ---------- Decor: волнистый шов между bg/bg-alt секциями ----------------*/
.section-seam{ display:block; width:100%; height:22px; margin-top:-1px; position:relative; z-index:1; }
.section-seam.to-alt path{ fill:var(--bg-alt); }
.section-seam.to-base path{ fill:var(--bg); }

/* ---------- Decor: едва заметное зерно на тёмных (pine) секциях ----------*/
.topbar, .relatives-block, .apply-block, .site-footer{ position:relative; }
.topbar::before, .relatives-block::before, .apply-block::before, .site-footer::before{
  content:""; position:absolute; inset:0; opacity:.06; mix-blend-mode:overlay; pointer-events:none; z-index:0;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.topbar > .container, .relatives-block > .container, .apply-block > .container, .site-footer > .container{ position:relative; z-index:1; }

/* ---------- Topbar / header ----------------------------------------------*/
.topbar{ background:var(--pine); color:var(--on-dark-muted); font-size:.85rem; }
.topbar-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:.4em 1.2em; padding:.5em 0; }
.topbar .anon-note{ color:var(--stone); font-weight:600; }
.social-icons{ display:flex; gap:.6em; margin-left:auto; }
.social-icons a{ display:flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:var(--radius-full); border:1px solid rgba(255,255,255,.18); color:var(--on-dark-muted); }
.social-icons svg{ width:16px; height:16px; fill:none; stroke:currentColor; }
.social-icons a:hover{ border-color:var(--stone); color:var(--on-dark); }

.site-header{ background:var(--white); border-bottom:1px solid var(--line); }
.site-header .container{ display:flex; align-items:center; gap:var(--space-3); min-height:72px; }
.brand{ font-family:var(--font-head); font-weight:700; font-size:1.25rem; text-decoration:none; color:var(--pine); flex-shrink:0; }
.header-phone{ margin-left:auto; font-family:var(--font-head); font-weight:600; text-decoration:none; color:var(--pine); white-space:nowrap; flex-shrink:0; }
.header-phone:hover{ color:var(--olive); }

.burger{ display:none; width:44px; height:44px; margin-left:auto; border:1px solid var(--line); border-radius:var(--radius-m); background:var(--white); position:relative; cursor:pointer; flex-shrink:0; }
.burger span, .burger::before, .burger::after{ content:""; position:absolute; left:11px; right:11px; height:2px; background:var(--text); }
.burger span{ top:21px; } .burger::before{ top:15px; } .burger::after{ top:27px; }

.main-nav ul{ list-style:none; display:flex; align-items:center; gap:var(--space-3); margin:0; padding:0; }
.main-nav a{ position:relative; text-decoration:none; color:var(--text); font-weight:500; font-size:.96rem; padding:.4em 0; }
.main-nav a::after{ content:""; position:absolute; left:50%; right:50%; bottom:0; height:2px; background:var(--olive); transition:left .22s ease, right .22s ease; }
.main-nav a:hover::after, .main-nav a:active::after, .main-nav a[aria-current="page"]::after{ left:0; right:0; }
.main-nav a:hover, .main-nav a:active, .main-nav a[aria-current="page"]{ color:var(--pine); }

.nav-panel-head{ display:none; }
.nav-icon{ display:none; }

.nav-dropdown{ position:relative; }
.nav-dropdown summary{ position:relative; list-style:none; cursor:pointer; font-weight:500; color:var(--text); padding:.4em 0; min-height:44px; display:flex; align-items:center; gap:.35em; }
.nav-dropdown summary::-webkit-details-marker{ display:none; }
.nav-dropdown summary::after{ content:""; width:7px; height:7px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); margin-top:-4px; }
.nav-dropdown summary::before{ content:""; position:absolute; left:50%; right:50%; bottom:0; height:2px; background:var(--olive); transition:left .22s ease, right .22s ease; }
.nav-dropdown summary:hover::before, .nav-dropdown summary:active::before, .nav-dropdown[open] summary::before{ left:0; right:0; }
.nav-dropdown summary:hover, .nav-dropdown summary:active, .nav-dropdown[open] summary{ color:var(--pine); }
.nav-dropdown[open] summary::after{ transform:rotate(-135deg); margin-top:2px; }
.nav-dropdown ul{ list-style:none; margin:0; padding:.5em; display:grid; gap:.15em; }
@media (min-width:961px){
  .nav-dropdown ul{ position:absolute; top:100%; left:0; margin-top:.6em; background:var(--white); border:1px solid var(--line); border-radius:var(--radius-m); box-shadow:var(--shadow-card); min-width:200px; z-index:20; }
  .nav-dropdown ul a{ display:block; padding:.6em .8em; border-radius:8px; border:none; }
  .nav-dropdown ul a:hover, .nav-dropdown ul a:active{ background:var(--bg-alt); }
  .nav-dropdown ul a::after{ display:none; }
}
@media (max-width:400px){
  .site-header .container{ flex-wrap:wrap; row-gap:.5em; }
  .header-phone{ margin-left:0; order:3; flex-basis:100%; }
}
@media (max-width:960px){
  .burger{ display:block; }
  .main-nav{ position:fixed; inset:0 0 0 auto; width:min(320px,86vw); height:100vh; background:linear-gradient(175deg, var(--white) 0%, var(--bg-alt) 100%); transform:translateX(100%); transition:transform .25s ease; padding:calc(var(--space-3) + 60px) var(--space-3) var(--space-3); overflow-y:auto; z-index:40; }
  .main-nav.is-open{ transform:translateX(0); box-shadow:-20px 0 40px rgba(35,40,33,.2); }
  .main-nav ul{ flex-direction:column; align-items:stretch; gap:0; }
  .main-nav li{ border-bottom:1px solid var(--line); }
  .main-nav a{ display:flex; align-items:center; padding:.9em 0; min-height:44px; }
  .nav-dropdown summary{ display:flex; align-items:center; }
  .nav-dropdown ul{ padding-left:.5em; }
  .main-nav a::after{ display:none; }
  .main-nav a:hover, .main-nav a:active, .main-nav a[aria-current="page"]{ color:var(--pine); padding-left:.35em; transition:padding-left .18s ease, color .15s ease; }

  .nav-panel-head{ display:flex; align-items:center; gap:.5em; margin:0 0 var(--space-2); padding-bottom:var(--space-2); border-bottom:1px solid var(--line); font-family:var(--font-head); font-weight:600; font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; color:var(--olive); }
  .nav-panel-head svg{ width:20px; height:20px; flex-shrink:0; }
  .nav-panel-head .ring{ fill:none; stroke:var(--olive); stroke-width:1.3; }
  .nav-panel-head .dot{ fill:var(--olive); stroke:none; }

  .nav-icon{ display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; margin-right:.65em; flex-shrink:0; color:var(--olive); opacity:0; transform:translateX(-6px); transition:opacity .3s ease, transform .3s ease; }
  .nav-icon svg{ width:100%; height:100%; stroke:currentColor; fill:none; }
  .main-nav.is-open .nav-icon{ opacity:1; transform:translateX(0); }
  .main-nav li:nth-child(1) .nav-icon{ transition-delay:.04s; }
  .main-nav li:nth-child(2) .nav-icon{ transition-delay:.09s; }
  .main-nav li:nth-child(3) .nav-icon{ transition-delay:.14s; }
  .main-nav li:nth-child(4) .nav-icon{ transition-delay:.19s; }
  .main-nav li:nth-child(5) .nav-icon{ transition-delay:.24s; }
  .main-nav li:nth-child(6) .nav-icon{ transition-delay:.29s; }
  .nav-dropdown ul li:nth-child(1) .nav-icon{ transition-delay:.06s; }
  .nav-dropdown ul li:nth-child(2) .nav-icon{ transition-delay:.11s; }
  .nav-dropdown ul li:nth-child(3) .nav-icon{ transition-delay:.16s; }
}

/* ---------- Hero: без фото — текст по центру + тихий знак «дыхание» ------*/
.hero{ padding:var(--space-6) 0 var(--space-5); background:var(--bg); text-align:center; }
.hero .container{ max-width:44rem; }
.breath-mark{ display:flex; align-items:center; justify-content:center; margin:0 auto var(--space-3); width:72px; height:72px; position:relative; }
.breath-mark svg{ width:100%; height:100%; }
.breath-dot{ fill:var(--olive); }
.breath-ring{ fill:none; stroke:var(--olive); stroke-width:1.4; transform-origin:center; opacity:0; animation:breath-ripple 4.5s ease-out infinite; }
.breath-ring:nth-child(2){ animation-delay:1.5s; }
.breath-ring:nth-child(3){ animation-delay:3s; }
@keyframes breath-ripple{ 0%{ transform:scale(.35); opacity:.6; } 100%{ transform:scale(1.15); opacity:0; } }
@media (prefers-reduced-motion: reduce){ .breath-ring{ animation:none; opacity:.5; transform:scale(1); } }
.hero-copy .eyebrow{ display:block; }
.hero-copy .lead{ margin:0 auto var(--space-3); }
.hero-actions{ display:flex; flex-wrap:wrap; justify-content:center; gap:.9em; margin:var(--space-3) 0; }
.hero-phone-note{ color:var(--text-muted); font-size:.96rem; }
.hero-phone-note a{ color:var(--pine); font-weight:700; text-decoration:underline; text-underline-offset:3px; }

/* ---------- Opening band: большая фотография «уступает место» ещё двум --
   по мере прокрутки, честно привязано к позиции скролла через --side-fr
   (0 → 1, выставляется инлайн-скриптом внизу страницы). flex-grow принимает
   безразмерное число из custom property напрямую — в отличие от `fr` в
   grid, это работает надёжно без calc()-трюков. */
.opening-band{ --side-fr:1; padding:0; display:flex; gap:8px; aspect-ratio:21/9; overflow:hidden; }
.opening-band .ph{ height:100%; min-width:0; flex-basis:0; flex-shrink:0; overflow:hidden; border-radius:var(--radius-m); }
.opening-band .ph img{ width:100%; height:100%; object-fit:cover; display:block; }
.opening-band .ph-main{ flex-grow:1.6; }
.opening-band .ph-side{ flex-grow:var(--side-fr); opacity:var(--side-fr); transition:flex-grow .12s linear, opacity .12s linear; }
@media (max-width:720px){
  .opening-band{ aspect-ratio:auto; display:grid; grid-template-columns:1fr 1fr; gap:4px; }
  .opening-band .ph{ height:auto; aspect-ratio:4/3; border-radius:0; }
  .opening-band .ph-main{ grid-column:1 / -1; }
  .opening-band .ph-side{ opacity:1; }
}
@media (prefers-reduced-motion: reduce){
  .opening-band .ph-side{ transition:none; }
}

/* ---------- Directions: строки с кольцевым номером -----------------------*/
.directions-section{ background:var(--bg); }
.route-list{ border-top:1px solid var(--line); }
.route-item{ display:grid; grid-template-columns:56px 1fr auto; align-items:center; gap:var(--space-3); padding:var(--space-3) 0; border-bottom:1px solid var(--line); text-decoration:none; color:var(--text); transition:background-color .15s ease; }
.route-item:hover, .route-item:focus-visible, .route-item:active{ background:var(--bg-alt); }
.route-node{ position:relative; display:flex; align-items:center; justify-content:center; width:48px; height:48px; border-radius:var(--radius-full); border:1.5px solid var(--olive); color:var(--pine); font-family:var(--font-head); font-weight:600; font-size:.95rem; flex-shrink:0; }
.route-item h3{ position:relative; margin:0 0 .25em; padding-left:0; transition:padding-left .2s ease; }
.route-item h3::before{ content:""; position:absolute; left:-14px; top:.5em; width:7px; height:7px; margin-top:-3.5px; border-radius:50%; background:var(--olive); opacity:0; transform:scale(0); transition:opacity .2s ease, transform .2s ease; }
.route-item:hover h3, .route-item:focus-visible h3, .route-item:active h3{ padding-left:14px; }
.route-item:hover h3::before, .route-item:focus-visible h3::before, .route-item:active h3::before{ opacity:1; transform:scale(1); }
.route-item p{ margin:0; color:var(--text-muted); max-width:56ch; }
.route-arrow{ color:var(--text-muted); font-size:1.3rem; transition:transform .15s ease, color .15s ease; }
.route-item:hover .route-arrow, .route-item:focus-visible .route-arrow, .route-item:active .route-arrow{ color:var(--pine); transform:translateX(3px); }
@media (max-width:640px){
  .route-item{ grid-template-columns:40px 1fr; }
  .route-node{ width:36px; height:36px; font-size:.82rem; }
  .route-arrow{ display:none; }
  .route-item p{ max-width:none; }
}

/* ---------- Process: текстовые остановки с кольцевыми номерами -----------*/
.process-section{ background:var(--bg-alt); }
.process-route{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-3); }
.process-stop{ text-align:center; background:var(--white); border:1.5px solid var(--line); border-radius:var(--radius-m); padding:var(--space-4) var(--space-3); transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.process-stop:hover, .process-stop:active{ border-color:var(--olive); box-shadow:0 20px 34px -22px rgba(35,40,33,.3); transform:translateY(-2px); }
.process-node{ position:relative; display:flex; align-items:center; justify-content:center; width:56px; height:56px; margin:0 auto var(--space-2); border-radius:var(--radius-full); border:1.5px solid var(--olive); color:var(--pine); font-family:var(--font-head); font-weight:600; }
.process-stop h3{ margin-bottom:.4em; }
.process-stop p{ color:var(--text-muted); margin:0 auto; max-width:34ch; }
@media (max-width:820px){
  .process-route{ grid-template-columns:1fr; gap:var(--space-4); }
}

/* ---------- Trust: компактные бейджи волной -------------------------------*/
.trust-section{ background:var(--bg); }
.trust-badges{ display:flex; flex-wrap:wrap; gap:.9em; }
.trust-badge{ display:flex; align-items:flex-start; gap:.7em; background:var(--white); border:1px solid var(--line); border-radius:var(--radius-m); padding:1.1em 1.3em; flex:1 1 280px; box-shadow:var(--shadow-card); transition:background-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.trust-badge:hover, .trust-badge:active{ background:var(--bg-alt); transform:translateY(-3px); box-shadow:0 22px 38px -20px rgba(35,40,33,.34); }

/* Уголковая мини-плашка на карточке */
.badge-corner{ position:relative; overflow:visible; }
.badge-corner-tag{ position:absolute; top:-12px; right:-10px; background:var(--sand); color:var(--pine); font-family:var(--font-head); font-weight:700; font-size:.72rem; letter-spacing:.03em; padding:.35em .8em; border-radius:var(--radius-full); transform:rotate(-7deg); box-shadow:0 6px 14px -6px rgba(35,40,33,.4); z-index:2; }
.trust-badge-mark{ flex-shrink:0; width:36px; height:36px; border-radius:var(--radius-full); background:var(--bg-alt); color:var(--olive); display:flex; align-items:center; justify-content:center; }
.trust-badge-mark svg{ width:18px; height:18px; stroke:currentColor; fill:none; }
.trust-badge h3{ font-size:1rem; margin:0 0 .3em; }
.trust-badge p{ margin:0; font-size:.92rem; color:var(--text-muted); }

/* ---------- Life: широкие фото-полосы -------------------------------------*/
.life-section{ padding:0; background:var(--bg-alt); }
.life-section .life-head{ padding:var(--space-5) var(--space-2) var(--space-3); max-width:var(--container); margin:0 auto; }
@media (min-width:640px){ .life-section .life-head{ padding-left:var(--space-3); padding-right:var(--space-3); } }
.life-section .life-head p{ color:var(--text-muted); }
.life-bands{ display:grid; grid-template-columns:1fr 1fr; }
.life-bands .ph[data-reveal-delay="2"]{ transition-delay:.6s; }
.life-bands .ph{ aspect-ratio:1/1; overflow:hidden; }
.life-bands .ph img{ width:100%; height:100%; object-fit:cover; }
@media (max-width:720px){ .life-bands{ grid-template-columns:1fr; } .life-bands .ph{ aspect-ratio:4/3; } }

/* ---------- Program: кольца, без соединяющей линии -------------------------*/
.program-section{ background:var(--bg); }
.program-road{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-4); margin-top:var(--space-4); }
.program-stop{ text-align:center; }
.program-ring{ position:relative; display:flex; align-items:center; justify-content:center; width:20px; height:20px; margin:0 auto var(--space-2); border-radius:var(--radius-full); border:2px solid var(--sand); background:var(--bg); animation:halo-breathe 3.2s ease-in-out infinite; }
@keyframes halo-breathe{ 0%,100%{ box-shadow:0 0 0 6px var(--bg-alt); } 50%{ box-shadow:0 0 0 9px var(--bg-alt); } }
@media (prefers-reduced-motion: reduce){ .program-ring{ animation:none; box-shadow:0 0 0 6px var(--bg-alt); } }
.program-stop h3{ margin-bottom:.4em; }
.program-stop p{ color:var(--text-muted); margin:0 auto; max-width:34ch; }
@media (max-width:820px){ .program-road{ grid-template-columns:1fr; gap:var(--space-4); } }

/* ---------- Decor: тихая пульсация вокруг кружков-маркеров ---------------*/
.route-node::after, .process-node::after{
  content:""; position:absolute; inset:-2px; border-radius:50%; border:1.5px solid var(--olive);
  opacity:0; animation:marker-pulse 2.8s ease-out infinite; pointer-events:none;
}
@keyframes marker-pulse{ 0%{ transform:scale(1); opacity:.45; } 100%{ transform:scale(1.3); opacity:0; } }
@media (prefers-reduced-motion: reduce){
  .route-node::after, .process-node::after{ animation:none; display:none; }
}

/* ---------- Doctors preview ---------------------------------------------------*/
.doctors-preview-section{ background:var(--bg-alt); }
.doctor-grid{ display:grid; gap:var(--space-3); grid-template-columns:repeat(2,1fr); }
.doctor-card{ display:flex; gap:var(--space-2); align-items:flex-start; background:var(--white); border:1px solid var(--line); border-radius:var(--radius-m); padding:var(--space-3); box-shadow:var(--shadow-card); transition:background-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.doctor-card:hover, .doctor-card:active{ background:var(--bg-alt); transform:translateY(-3px); box-shadow:0 22px 38px -20px rgba(35,40,33,.34); }
.doctor-card .ph{ width:72px; height:72px; border-radius:var(--radius-full); overflow:hidden; flex-shrink:0; background:linear-gradient(155deg, var(--stone), var(--olive)); display:flex; align-items:center; justify-content:center; color:#fff; }
.doctor-card .ph svg{ width:30px; height:30px; stroke:#fff; fill:none; }
.doctor-role{ display:block; color:var(--olive); font-weight:600; font-size:.9rem; margin:.15em 0 .5em; }
@media (max-width:640px){ .doctor-grid{ grid-template-columns:1fr; } }

/* ---------- Relatives: полноширинное тёмное полотно + круглое фото ----------*/
.relatives-block{ background:var(--pine); color:var(--on-dark); }
.relatives-block .container{ display:grid; grid-template-columns:auto 1fr; gap:var(--space-4); align-items:center; }
.relatives-block .ph{ width:190px; height:190px; border-radius:var(--radius-full); overflow:hidden; border:3px solid rgba(255,255,255,.14); flex-shrink:0; }
.relatives-block .ph img{ width:100%; height:100%; object-fit:cover; }
.relatives-block h2{ margin-bottom:.5em; }
.relatives-block p{ color:var(--on-dark-muted); max-width:60ch; }
.relatives-block .footnote{ color:var(--on-dark-muted); }
@media (max-width:640px){
  .relatives-block .container{ grid-template-columns:1fr; text-align:center; }
  .relatives-block .ph{ margin:0 auto; width:140px; height:140px; }
}

/* ---------- FAQ ------------------------------------------------------------------*/
.faq-section{ background:var(--bg); }
.faq-list{ display:grid; gap:.7em; max-width:52rem; margin:0 auto; }
.faq-item{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius-m); padding:.2em 1.2em; }
.faq-item summary{ cursor:pointer; list-style:none; font-family:var(--font-head); font-weight:600; padding:1em 2em 1em 0; position:relative; min-height:44px; display:flex; align-items:center; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:"+"; position:absolute; right:0; top:50%; transform:translateY(-50%); width:28px; height:28px; border-radius:var(--radius-full); background:var(--bg-alt); color:var(--pine); display:flex; align-items:center; justify-content:center; font-size:1.1rem; }
.faq-item[open] summary::after{ content:"–"; background:var(--olive); color:#fff; }
.faq-item p{ color:var(--text-muted); }
.faq-item p:last-child{ margin-bottom:1em; }
.faq-item a{ color:var(--pine); text-decoration:underline; }

/* ---------- Apply block (форма, тёмная секция) --------------------------------*/
.apply-block{ background:var(--pine); color:var(--on-dark); }
.apply-block .section-head{ max-width:44rem; }
.apply-block .section-head p{ color:var(--on-dark-muted); }
.on-dark h1,.on-dark h2,.on-dark h3,.on-dark h4{ color:var(--on-dark); }

.form-grid{ display:grid; gap:1.1em; max-width:640px; }
.field label, fieldset.field legend{ display:block; font-weight:600; font-size:.9rem; margin-bottom:.4em; color:var(--on-dark); }
.field input{ width:100%; min-height:48px; border-radius:10px; border:1.5px solid rgba(255,255,255,.2); background:var(--pine-2); color:var(--on-dark); padding:0 1em; font-size:1rem; font-family:var(--font-body); }
.field input::placeholder{ color:var(--on-dark-muted); }
.field input:focus-visible{ outline:3px solid var(--stone); outline-offset:1px; }
fieldset.field{ border:none; padding:0; margin:0; }
.radio-row{ display:flex; flex-wrap:wrap; gap:1.4em; }
.radio-option{ display:flex; align-items:center; gap:.5em; font-weight:400; color:var(--on-dark-muted); min-height:44px; }
.radio-option input{ width:20px; height:20px; accent-color:var(--stone); }
.consent-row{ display:flex; align-items:flex-start; gap:.7em; font-size:.88rem; color:var(--on-dark-muted); }
.consent-row input{ width:20px; height:20px; flex-shrink:0; margin-top:.2em; accent-color:var(--stone); }
.consent-row a{ color:var(--on-dark); text-decoration:underline; }
.captcha-slot{ border:1px dashed rgba(255,255,255,.2); border-radius:10px; padding:1em; font-size:.82rem; color:var(--on-dark-muted); }
.form-status{ min-height:1.4em; font-size:.9rem; margin:.6em 0 0; }
.form-status[data-state="success"]{ color:#A7D6A9; }
.form-status[data-state="error"]{ color:#E7AA95; }

/* ---------- Footer -----------------------------------------------------------------*/
.site-footer{ background:var(--pine); color:var(--on-dark-muted); padding:var(--space-5) 0 var(--space-4); }
.footer-top{ display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:var(--space-4); }
.site-footer .brand{ color:var(--on-dark); margin-bottom:.5em; display:block; }
.site-footer address{ font-style:normal; line-height:1.8; }
.site-footer a{ color:var(--on-dark-muted); text-decoration:none; }
.site-footer a:hover{ color:var(--stone); }
.footer-heading{ font-family:var(--font-head); font-weight:600; color:var(--on-dark); margin:0 0 .8em; font-size:.95rem; }
.footer-links{ list-style:none; margin:0; padding:0; display:grid; gap:.5em; }
.footer-links a{ position:relative; display:inline-block; }
.footer-links a::after{ content:""; position:absolute; left:50%; right:50%; bottom:-2px; height:1px; background:var(--stone); transition:left .2s ease, right .2s ease; }
.footer-links a:hover::after, .footer-links a:active::after{ left:0; right:0; }
.footer-links a:hover, .footer-links a:active{ color:var(--stone); }
.footer-contra{ margin-top:var(--space-4); padding-top:var(--space-3); border-top:1px solid rgba(255,255,255,.12); font-size:.85rem; color:var(--on-dark-muted); max-width:70ch; }
@media (max-width:720px){ .footer-top{ grid-template-columns:1fr; gap:var(--space-3); } }

/* ---------- Sticky mobile CTA bar ---------------------------------------------------*/
.sticky-cta-bar{ display:none; position:fixed; left:0; right:0; bottom:0; z-index:50; background:var(--pine); border-top:1px solid rgba(255,255,255,.1); box-shadow:0 -10px 28px -14px rgba(35,40,33,.45); padding:env(safe-area-inset-bottom,0) 0 0; }
@media (max-width:720px){ .sticky-cta-bar{ display:flex; } body{ padding-bottom:calc(64px + env(safe-area-inset-bottom, 0px)); } }
.sticky-cta-bar a{ flex:1; display:flex; align-items:center; justify-content:center; gap:.5em; min-height:56px; text-decoration:none; font-weight:600; font-family:var(--font-head); font-size:.92rem; }
.sticky-cta-bar a:first-child{ background:var(--stone); color:var(--pine); }
.sticky-cta-bar a:last-child{ color:var(--on-dark); }
.sticky-cta-bar svg{ width:18px; height:18px; stroke:currentColor; fill:none; }

/* ---------- Scroll offer -------------------------------------------------------------*/
.scroll-offer-backdrop{ position:fixed; inset:0; z-index:55; background:transparent; visibility:hidden; pointer-events:none; }
.scroll-offer-backdrop.is-visible{ visibility:visible; pointer-events:auto; }
.scroll-offer{ position:fixed; right:var(--space-2); bottom:var(--space-2); z-index:60; width:min(360px, calc(100vw - 2 * var(--space-2))); max-height:calc(100vh - 2 * var(--space-2)); overflow-y:auto; background:var(--pine); color:var(--on-dark); border:1px solid rgba(255,255,255,.12); border-radius:var(--radius-m); box-shadow:0 24px 60px -20px rgba(35,40,33,.5); padding:var(--space-3); transform:translateY(24px) scale(.98); opacity:0; pointer-events:none; transition:transform .25s ease, opacity .25s ease; }
.scroll-offer.is-visible{ transform:translateY(0) scale(1); opacity:1; pointer-events:auto; }
.scroll-offer-close{ position:absolute; top:.6em; right:.6em; width:32px; height:32px; border-radius:var(--radius-full); border:none; background:var(--pine-2); color:var(--on-dark); font-size:1.1rem; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.scroll-offer .form-grid{ margin-top:var(--space-2); }
.scroll-offer-head p{ color:var(--on-dark-muted); font-size:.92rem; }
@media (max-width:480px){
  .scroll-offer-backdrop.is-visible{ background:rgba(46,59,42,.32); }
  .scroll-offer{
    left:var(--space-1); right:var(--space-1);
    bottom:calc(64px + var(--space-1) + env(safe-area-inset-bottom, 0px));
    width:auto;
    max-height:min(70vh, 540px);
    padding:var(--space-2) var(--space-2) calc(var(--space-2) + 6px);
  }
  .scroll-offer-head h2{ font-size:1.25rem; }
}

.scroll-offer-tab{ position:fixed; right:0; bottom:calc(96px + var(--space-2)); z-index:55; display:flex; align-items:center; gap:6px; padding:12px 16px; background:var(--pine); color:var(--on-dark); font-weight:600; font-size:.85rem; border-radius:var(--radius-m) 0 0 var(--radius-m); box-shadow:-4px 6px 18px rgba(35,40,33,.35); transform:translateX(100%); opacity:0; pointer-events:none; transition:transform .25s ease, opacity .25s ease; }
.scroll-offer-tab.is-visible{ transform:translateX(0); opacity:1; pointer-events:auto; }
.scroll-offer-tab:hover, .scroll-offer-tab:active, .scroll-offer-tab:focus-visible{ background:var(--pine-2); }
@media (max-width:720px){ .scroll-offer-tab{ bottom:calc(96px + 64px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- Scroll reveal: «дыхание» — медленнее и мягче, чем A и B ---------------
   Дублирует базовые правила reveal.js (base.css не подключается): элементы
   прячутся только через .reveal-on [data-reveal]:not(.is-revealed), без JS
   или при reduced-motion всё видно сразу (класс reveal-on не появляется). */
.reveal-on [data-reveal]{ transition:opacity 1.1s cubic-bezier(.22,.61,.36,1), transform 1.1s cubic-bezier(.22,.61,.36,1); }
.reveal-on [data-reveal]:not(.is-revealed){ opacity:0; transform:translateY(20px); }
.reveal-on [data-reveal="photo"]{ transition-duration:1.3s; }
.reveal-on [data-reveal="photo"]:not(.is-revealed){ opacity:0; transform:scale(1.03); }
.reveal-on [data-reveal="photo"].is-revealed{ transform:none; }
.reveal-on [data-reveal="ring"]{ transition-duration:1s; }
.reveal-on [data-reveal="ring"]:not(.is-revealed){ opacity:0; transform:scale(.4); }
.reveal-on [data-reveal="ring"].is-revealed{ transform:scale(1); }
[data-reveal-delay="1"]{ transition-delay:.12s; }
[data-reveal-delay="2"]{ transition-delay:.24s; }
[data-reveal-delay="3"]{ transition-delay:.36s; }
[data-reveal-delay="4"]{ transition-delay:.48s; }
@media print{ [data-reveal]{ opacity:1 !important; transform:none !important; } }

/* ---------- Прочее -------------------------------------------------------------------*/
.breadcrumbs{ font-size:.85rem; color:var(--text-muted); margin-bottom:var(--space-3); }
.breadcrumbs a{ color:var(--text-muted); text-decoration:underline; }
.breadcrumbs .sep{ margin:0 .5em; }
.page-hero{ padding:var(--space-5) 0 var(--space-4); }
.page-hero h1{ max-width:36ch; }
.page-toc{ margin-top:var(--space-4); padding-top:var(--space-3); border-top:1px solid var(--line); }
.page-toc-title{ display:block; font-size:.8rem; text-transform:uppercase; letter-spacing:.06em; color:var(--olive); margin-bottom:.6em; }
.page-toc ul{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:.5em 1.3em; }
.page-toc a{ color:var(--text-muted); text-decoration:underline; text-underline-offset:3px; font-size:.92rem; }
.page-toc a:hover{ color:var(--pine); }
.cta-section{ background:var(--bg-alt); text-align:center; }
.reviewed-by{ display:flex; align-items:center; gap:1em; margin-top:var(--space-4); padding-top:var(--space-3); border-top:1px solid var(--line); }
.reviewed-by .ph{ width:56px; height:56px; border-radius:var(--radius-full); overflow:hidden; flex-shrink:0; background:linear-gradient(155deg, var(--stone), var(--olive)); display:flex; align-items:center; justify-content:center; }
.reviewed-by .ph span{ display:none; }
.reviewed-by-text{ margin:0; font-size:.92rem; color:var(--text-muted); }
.reviewed-by-text strong{ display:block; color:var(--text); }

@media (max-width:480px){ .radio-row{ flex-direction:column; gap:.8em; } .btn{ width:100%; } }
