@import url('/css/fonts.css');

/* ============================================================
   ПАРУС — дизайн-система 2.0
   Форм-язык: большие скруглённые панели-блоки на светлом
   градиенте, коллаж из вырезанных объектов, гигантская тонкая
   типографика, один мятный акцент из логотипа.
   ============================================================ */

:root {
  /* Бренд (из логотипа) */
  --brand:      #10386b;
  --azure:      #4e93c8;
  --mint:       #a8cbb0;

  /* Рабочая палитра — снята с фирменной акварели start.PNG */
  --paper:      #faf8f4;   /* бумага акварели — основной фон */
  --paper-2:    #ffffff;   /* карточки, чуть светлее бумаги */
  --ink:        #16324c;   /* глубокий сине-чёрный */
  --ink-2:      #4a5c72;
  --ink-3:      #8a97a8;
  --navy:       #10386b;   /* логотипный синий */
  --panel:      #2f5793;   /* синяя панель */
  --panel-2:    #1e3c74;
  --deep:       #0d2444;   /* тёмная панель */
  --sea:        #4e93c8;   /* морской голубой */
  --foam:       #a8cbb0;   /* морская пена из логотипа */
  --foam-soft:  #e9f2ea;
  --gold:       #2e6ea6;   /* морской акцент вместо золота */
  --gold-2:     #9fd8c0;
  --gold-soft:  #e9f4ee;
  --accent:     var(--gold);
  --accent-ink: #2a1c06;
  --mist:       #eef2f6;
  --line:       #e7e3da;
  --line-2:     #d6d0c4;
  --err:        #b8453c;
  --warn:       #a67716;

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --r-s:  14px;
  --r-m:  22px;
  --r-l:  32px;
  --r-xl: clamp(26px, 3.4vw, 56px);
  --r-pill: 999px;

  --shell: 1440px;
  --pad: clamp(1rem, 0.5rem + 2.2vw, 2.75rem);

  --sh-s: 0 1px 2px rgba(70, 55, 30, 0.04), 0 3px 12px rgba(70, 55, 30, 0.05);
  --sh-m: 0 2px 6px rgba(70, 55, 30, 0.05), 0 12px 34px rgba(70, 55, 30, 0.09);
  --sh-l: 0 6px 14px rgba(70, 55, 30, 0.06), 0 28px 72px rgba(70, 55, 30, 0.14);
  --sh-glow: 0 18px 50px rgba(66, 114, 189, 0.35);

  --e: cubic-bezier(0.22, 1, 0.36, 1);
  --e-io: cubic-bezier(0.65, 0, 0.35, 1);
  --t: 0.52s var(--e);
  --t-fast: 0.2s var(--e);

  --header-h: 74px;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video, picture { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: 3px; transition: color var(--t-fast); }
a:hover { color: var(--azure); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Каркас ---------- */
.wrap { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.wrap-narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -130%); z-index: 300;
  background: var(--deep); color: #fff; padding: 0.8rem 1.6rem; border-radius: 0 0 var(--r-m) var(--r-m);
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

/* ---------- Панель — главный элемент вёрстки ---------- */
.panel {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
}
.panel--blue { background: linear-gradient(148deg, var(--panel) 0%, var(--panel-2) 100%); color: #fff; }
.panel--deep { background: var(--deep); color: rgba(255, 255, 255, 0.86); }
.panel--paper { background: var(--paper-2); box-shadow: var(--sh-s); }
.panel--mint { background: var(--foam); }
.panel--blue h1, .panel--blue h2, .panel--blue h3, .panel--deep h1, .panel--deep h2, .panel--deep h3 { color: #fff; }
.panel--blue a, .panel--deep a { color: #fff; }
.panel__pad { padding: clamp(1.5rem, 1rem + 3vw, 4.5rem); }

/* Мягкое световое пятно внутри синей панели */
.panel--blue::before {
  content: ''; position: absolute; inset: -30% -10% auto auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 62%);
  pointer-events: none; z-index: -1;
}

/* ---------- Типографика ---------- */
.mega {
  font-size: clamp(2.7rem, 8.4vw, 7.5rem);
  font-weight: 200; line-height: 0.94; letter-spacing: -0.042em;
}
.big { font-size: clamp(2rem, 5vw, 4rem); font-weight: 250; line-height: 1.03; letter-spacing: -0.035em; }
.h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4rem); font-weight: 250; line-height: 1.05; letter-spacing: -0.035em; }
.h2 { font-size: clamp(1.65rem, 1.15rem + 2.2vw, 2.9rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); font-weight: 700; letter-spacing: -0.015em; }
.h4 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3rem); line-height: 1.55; color: var(--ink-2); font-weight: 400; }
.panel--blue .lead, .panel--deep .lead { color: rgba(255, 255, 255, 0.74); }
.small { font-size: 0.9063rem; }
.muted { color: var(--ink-3); }
.accent-word { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 1.15rem;
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.panel--blue .eyebrow, .panel--deep .eyebrow { color: rgba(255, 255, 255, 0.7); }
.eyebrow--center { justify-content: center; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.95rem 1.7rem; border-radius: var(--r-pill); border: 1.5px solid transparent;
  font-weight: 700; font-size: 0.9375rem; text-decoration: none; cursor: pointer; line-height: 1.2;
  white-space: nowrap; overflow: hidden;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t), transform var(--t-fast);
}
.btn > * { position: relative; z-index: 1; }
.btn::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: currentColor; opacity: 0; transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.45s var(--e), opacity 0.3s;
}
.btn:hover::after { opacity: 0.1; transform: scaleY(1); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgba(48, 67, 133, 0.28); }
.btn--primary:hover { color: #fff; box-shadow: 0 14px 34px rgba(48, 67, 133, 0.36); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px rgba(138, 226, 180, 0.45); }
.btn--accent:hover { color: var(--accent-ink); box-shadow: 0 16px 40px rgba(138, 226, 180, 0.6); }
.btn--light { background: var(--paper-2); color: var(--deep); box-shadow: var(--sh-m); }
.btn--light:hover { color: var(--deep); }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--onDark { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.3); backdrop-filter: blur(6px); }
.btn--onDark:hover { color: #fff; border-color: rgba(255, 255, 255, 0.65); }
.btn--sm { padding: 0.6rem 1.2rem; font-size: 0.875rem; }
.btn--lg { padding: 1.1rem 2.2rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* Кнопка-пилюля со стрелкой в кружке — как на референсе */
.btn--arrow { padding-right: 0.45rem; gap: 0.9rem; }
.btn--arrow .btn__dot {
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; flex: none; transition: transform var(--t);
}
.btn--arrow:hover .btn__dot { transform: rotate(45deg); }
.btn--arrow .btn__dot svg { width: 15px; height: 15px; }

/* ---------- Вращающийся бейдж ---------- */
.badge-rot {
  position: relative; width: clamp(104px, 11vw, 148px); aspect-ratio: 1; display: grid; place-items: center;
  text-decoration: none; flex: none;
}
.badge-rot__disc { position: absolute; inset: 0; border-radius: 50%; background: var(--accent); transition: transform var(--t); }
.badge-rot:hover .badge-rot__disc { transform: scale(1.07); }
.badge-rot__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge-rot__ring text { font-size: 8.4px; font-weight: 800; letter-spacing: 0.12em; fill: var(--accent-ink); text-transform: uppercase; }
.badge-rot__arrow { position: relative; z-index: 1; color: var(--accent-ink); transition: transform var(--t); }
.badge-rot__arrow svg { width: 26px; height: 26px; }
.badge-rot:hover .badge-rot__arrow { transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Карточка с волнистым краем («зуб») ---------- */
.tooth-card {
  background: var(--paper-2); color: var(--ink); padding: 1.5rem 1.6rem;
  -webkit-mask-image: var(--tooth-mask); mask-image: var(--tooth-mask);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
:root {
  --tooth-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,20 C0,9 9,0 20,0 C60,0 62,11 100,11 C138,11 140,0 180,0 C191,0 200,9 200,20 L200,100 C200,111 191,120 180,120 C140,120 138,109 100,109 C62,109 60,120 20,120 C9,120 0,111 0,100 Z' fill='%23000'/%3E%3C/svg%3E");
}

/* ---------- Стопка аватаров ---------- */
.avatars { display: flex; align-items: center; }
.avatars img, .avatars span {
  width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; object-position: center top;
  margin-left: -14px; transition: transform var(--t);
}
.avatars > *:first-child { margin-left: 0; }
.avatars:hover img { transform: translateY(-4px); }
.avatars span {
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  font-size: 0.8125rem; font-weight: 800; border-color: #fff;
}

/* ---------- Бегущая строка ---------- */
.marquee { overflow: hidden; padding-block: clamp(0.9rem, 2vw, 1.4rem); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; width: max-content; animation: slide 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); padding-right: clamp(1.5rem, 3vw, 3rem); }
.marquee__item {
  display: inline-flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem);
  font-size: clamp(1.1rem, 2.4vw, 2rem); font-weight: 250; letter-spacing: -0.02em; white-space: nowrap;
  color: var(--ink); text-decoration: none;
}
.marquee__item::after { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
a.marquee__item:hover { color: var(--brand); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Шапка ---------- */
.topbar { font-size: 0.8125rem; color: var(--ink-2); padding-block: 0.6rem; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; min-height: 34px; }
.topbar__group { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 0.4rem; }
.topbar__item svg { width: 14px; height: 14px; opacity: 0.5; flex: none; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--brand); }
.topbar__a11y {
  display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 0.3rem 0.9rem; cursor: pointer; color: inherit; font-size: 0.8125rem; font-weight: 700;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.topbar__a11y:hover { background: var(--paper-2); border-color: var(--brand); color: var(--brand); }
@media (max-width: 900px) { .topbar__hide-sm { display: none; } }

.header { position: sticky; top: 0.75rem; z-index: 90; padding-inline: var(--pad); margin-bottom: 0.75rem; }
.header__in {
  max-width: var(--shell); margin-inline: auto;
  display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h);
  padding: 0.5rem 0.5rem 0.5rem 1.25rem; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.78); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--sh-s);
  transition: box-shadow var(--t), background var(--t);
}
.header--scrolled .header__in { box-shadow: var(--sh-m); background: rgba(255, 255, 255, 0.92); }

.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: 40px; height: 40px; object-fit: contain; flex: none; transition: transform var(--t); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.08); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; color: var(--deep); }
.brand__sub { font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 0.1rem; margin-left: auto; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.55rem 0.85rem; border-radius: var(--r-pill);
  font-size: 0.9375rem; font-weight: 600; color: var(--ink); text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__link:hover, .nav__item:focus-within > .nav__link { background: var(--mist); color: var(--brand); }
.nav__link[aria-current] { background: var(--foam); color: var(--brand); }
.nav__chev { width: 11px; height: 11px; opacity: 0.4; transition: transform var(--t-fast); }
.nav__item:hover .nav__chev, .nav__item:focus-within .nav__chev { transform: rotate(180deg); }
.nav__drop {
  position: absolute; top: calc(100% + 12px); left: 50%; min-width: 320px; max-width: 400px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--sh-l);
  padding: 0.55rem; opacity: 0; visibility: hidden; transform: translate(-50%, -8px) scale(0.97);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.nav__drop a {
  display: block; padding: 0.65rem 0.85rem; border-radius: var(--r-s); text-decoration: none;
  color: var(--ink); font-size: 0.9375rem; font-weight: 600; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.nav__drop a:hover { background: var(--mist); color: var(--brand); transform: translateX(4px); }
.nav__drop a span { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--ink-3); margin-top: 0.15rem; line-height: 1.4; }
.header__actions { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.header__phone { font-weight: 700; font-size: 0.9375rem; color: var(--deep); text-decoration: none; white-space: nowrap; padding-inline: 0.4rem; }
.header__phone:hover { color: var(--brand); }
@media (max-width: 1200px) { .nav, .header__phone { display: none; } }
@media (max-width: 560px) { .header__actions { display: none; } }

.burger {
  display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: var(--deep);
  border-radius: 50%; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; flex: none;
}
.burger span { display: block; width: 17px; height: 2px; background: var(--paper-2); border-radius: 2px; transition: transform var(--t), opacity var(--t-fast); }
@media (max-width: 1200px) { .burger { display: flex; } }
body.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Мобильное меню ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 95; background: linear-gradient(160deg, #eaf6ee, #e2f0fb);
  overflow-y: auto; padding-bottom: 6rem; visibility: hidden;
  clip-path: circle(0% at calc(100% - 46px) 46px); transition: clip-path 0.6s var(--e), visibility 0.6s;
}
body.menu-open .drawer { visibility: visible; clip-path: circle(150% at calc(100% - 46px) 46px); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.drawer__close { width: 48px; height: 48px; border: 0; background: var(--deep); color: #fff; border-radius: 50%; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.drawer__nav { padding: 0.5rem 0 2rem; }
.drawer__group { border-bottom: 1px solid rgba(8, 24, 46, 0.1); }
.drawer__top {
  display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0;
  padding: 1.05rem 0; font-size: clamp(1.25rem, 5vw, 1.75rem); font-weight: 300; letter-spacing: -0.03em;
  text-align: left; cursor: pointer; color: var(--ink); text-decoration: none;
}
.drawer__top svg { width: 18px; height: 18px; opacity: 0.4; transition: transform var(--t); flex: none; }
.drawer__group[data-open='true'] .drawer__top svg { transform: rotate(180deg); }
.drawer__sub { display: none; padding: 0 0 1rem; }
.drawer__group[data-open='true'] .drawer__sub { display: block; }
.drawer__sub a { display: block; padding: 0.55rem 0 0.55rem 1rem; border-left: 2px solid var(--line-2); color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.drawer__sub a:hover { color: var(--brand); border-color: var(--accent); }
.drawer__cta { display: grid; gap: 0.7rem; padding-top: 1.75rem; }

/* ---------- Секции ---------- */
.section { padding-block: clamp(2.5rem, 1.5rem + 4.5vw, 6rem); }
.section--tight { padding-block: clamp(1.75rem, 1rem + 3vw, 3.5rem); }
.section__head { max-width: 780px; margin-bottom: clamp(1.75rem, 1rem + 2.4vw, 3.25rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head .lead { margin-top: 1rem; }
.section__head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.75rem, 1rem + 2.4vw, 3.25rem); }
.section__head-row .section__head { margin-bottom: 0; }

/* Тёмная секция превращается в панель */
.section--dark { padding-inline: var(--pad); }
.section--dark > .wrap {
  background: var(--deep); color: rgba(255, 255, 255, 0.86); border-radius: var(--r-xl);
  padding: clamp(2rem, 1.4rem + 3.5vw, 4.5rem) clamp(1.25rem, 1rem + 2.5vw, 3.5rem);
  max-width: var(--shell);
}
.section--dark h2, .section--dark h3, .section--dark .h2, .section--dark .h3 { color: #fff; }
.section--dark .lead { color: rgba(255, 255, 255, 0.7); }
.section--dark .eyebrow { color: rgba(255, 255, 255, 0.65); }
.section--dark a { color: #fff; }

/* ---------- Общая строка действий (страницы услуг, врачей, 404) ---------- */
.hero__actions { display: flex; gap: 0.85rem; flex-wrap: wrap; align-items: center; }

/* ---------- Бенто-сетка ---------- */
.bento { display: grid; gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem); grid-template-columns: repeat(6, 1fr); }
.bento > * { grid-column: span 6; }
@media (min-width: 720px) {
  .bento > * { grid-column: span 3; }
  .bento .b-wide { grid-column: span 6; }
}
@media (min-width: 1080px) {
  .bento > * { grid-column: span 2; }
  .bento .b-wide { grid-column: span 4; }
  .bento .b-full { grid-column: span 6; }
  .bento .b-tall { grid-row: span 2; }
}

/* ---------- Карточка услуги (вырезка на цветной плашке) ---------- */
/* ---------- Карточка услуги: акварельная иллюстрация + белая плашка ----------
   Текст никогда не лежит на изображении (концепт от 19.08.2026).
   Картинка абсолютная внутри своей зоны — иначе она задаёт высоту строки
   грид-контейнера и «выдавливает» подпись за пределы карточки. */
.svc {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-l); text-decoration: none; color: var(--ink);
  background: var(--paper-2); border: 1px solid var(--line);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--sh-l); color: var(--ink); }
.svc__media {
  position: relative; overflow: hidden; background: #fdf6ee; /* цвет бумаги иллюстраций */
  aspect-ratio: 4 / 3; flex: none;
}
.svc__media picture { position: absolute; inset: 0; display: block; }
.svc__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: none;
  transition: transform 0.7s var(--e);
}
.svc:hover .svc__media img { transform: scale(1.045); }
.svc__body {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; gap: 0.55rem;
  padding: 1.35rem 1.5rem 1.5rem;
}
.svc__title { display: block; font-size: 1.3125rem; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.2; color: var(--navy); }
.svc__text { display: block; flex: 1; font-size: 0.9375rem; color: var(--ink-2); line-height: 1.55; }
.svc__more {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; color: var(--sea); text-transform: uppercase;
}
.svc__more svg { display: none; }
.svc__more::after { content: ''; width: 16px; height: 1px; background: currentColor; transition: width var(--t); }
.svc:hover .svc__more::after { width: 28px; }

/* Широкая карточка: иллюстрация слева, текст справа */
.svc--row { display: grid; grid-template-columns: minmax(0, 42%) 1fr; min-height: 268px; }
/* В широкой карточке рисунок показывается целиком (contain), а не кадрируется:
   у горизонтальной полосы пропорции далеки от исходных 4:3, и cover срезал бы сюжет.
   Фон совпадает с бумагой иллюстрации, поэтому поля незаметны. */
.svc--row .svc__media { aspect-ratio: auto; height: 100%; }
.svc--row .svc__media img { object-fit: contain; object-position: center; padding: 0.75rem; }
.svc--row .svc__body { justify-content: center; padding: 1.75rem 2.125rem; gap: 0.6rem; }
.svc--row .svc__title { font-size: clamp(1.375rem, 2vw, 1.625rem); font-weight: 500; letter-spacing: -0.025em; }
.svc--row .svc__text { flex: none; font-size: 1rem; max-width: 52ch; }

@media (max-width: 720px) {
  .svc__media { aspect-ratio: 16 / 10; }
  .svc--row { grid-template-columns: 1fr; min-height: 0; }
  .svc--row .svc__media { aspect-ratio: 16 / 10; }
  .svc--row .svc__body { padding: 1.35rem 1.5rem 1.5rem; }
}

/* ---------- Обычные карточки ---------- */
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: clamp(1.35rem, 1rem + 1vw, 2rem);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--sh-m); border-color: transparent; }
.card__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--foam); color: #2a7a55; margin-bottom: 1.15rem; }
.card__icon svg { width: 25px; height: 25px; }
.card__icon--azure { background: #e2f4fd; color: #0180b6; }
.card__icon--foam { background: var(--foam); color: #2a7a55; }
.card__icon--sand { background: #f6f0e2; color: #96762f; }
.card__title { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 0.55rem; }
.card__text { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.6; }
.section--dark .card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
.section--dark .card__text { color: rgba(255, 255, 255, 0.72); }

/* ---------- Карточка врача ---------- */
.doc-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--r-l); text-decoration: none; color: inherit;
  background: linear-gradient(165deg, var(--gold-soft), var(--foam-soft)); transition: transform var(--t), box-shadow var(--t);
}
.doc-card:hover { transform: translateY(-5px); box-shadow: var(--sh-l); color: inherit; }
.doc-card__media { display: block; aspect-ratio: 3 / 4; overflow: hidden; }
.doc-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.7s var(--e); }
.doc-card:hover .doc-card__media img { transform: scale(1.05); }
.doc-card__body {
  position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(14px); border-radius: var(--r-m);
  transition: transform var(--t);
}
.doc-card:hover .doc-card__body { transform: translateY(-4px); }
.doc-card__name { display: block; font-size: 1rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 0.2rem; }
.doc-card__role { display: block; font-size: 0.8125rem; color: var(--brand); font-weight: 600; }
.doc-card__meta { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 700; color: var(--ink-3); margin-top: 0.5rem; text-transform: uppercase; letter-spacing: 0.06em; }
.doc-card__meta svg { width: 13px; height: 13px; }

/* ---------- Крупные цифры ---------- */
.stat { text-align: left; }
.stat__num { font-size: clamp(2.6rem, 6vw, 4.75rem); font-weight: 200; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.section--dark .stat__num, .panel--blue .stat__num { color: #fff; }
.stat__num i { font-style: normal; color: var(--accent); }
.stat__label { font-size: 0.9375rem; color: var(--ink-2); margin-top: 0.65rem; line-height: 1.45; max-width: 26ch; }
.section--dark .stat__label, .panel--blue .stat__label { color: rgba(255, 255, 255, 0.7); }

/* ---------- Липкие шаги ---------- */
.sticky-steps { display: grid; gap: 3rem; }
@media (min-width: 1000px) { .sticky-steps { grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: start; } }
/* Липкой колонка делается только в двухколоночной раскладке (от 1000px):
   в одноколоночной мобильной версии она «прилипала» и карточки шагов
   проезжали прямо под текстом. */
.sticky-steps__aside { align-self: start; }
@media (min-width: 1000px) { .sticky-steps__aside { position: sticky; top: 120px; } }
/* Отступ сверху обязателен: счётчик — крупная цифра с line-height 0.9,
   без него абзац-лид на мобильном подъезжает к нему вплотную. */
.sticky-steps__counter { margin-top: clamp(1rem, 3vw, 1.75rem); font-size: clamp(4rem, 12vw, 9rem); font-weight: 200; line-height: 0.9; letter-spacing: -0.06em; color: var(--accent); }
.sticky-steps__list { display: grid; gap: clamp(0.75rem, 2vw, 1.25rem); }
.step {
  position: relative; padding: clamp(1.35rem, 1rem + 1.6vw, 2.25rem); border-radius: var(--r-l);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.step[data-active='true'] { background: rgba(138, 226, 180, 0.14); border-color: rgba(138, 226, 180, 0.45); }
.step__n { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 0.75rem; }
.step__t { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem); font-weight: 400; letter-spacing: -0.025em; margin-bottom: 0.5rem; color: #fff; }
.step__d { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.7); line-height: 1.6; }
/* Шаги на светлом фоне */
.steps--light .step { background: var(--paper-2); border-color: var(--line); }
.steps--light .step__t { color: var(--ink); }
.steps--light .step__d { color: var(--ink-2); }
.steps--light .step__n { color: var(--brand); }
.steps { display: grid; gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem); grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

/* ---------- Сетки ---------- */
.grid { display: grid; gap: clamp(0.85rem, 0.5rem + 1.2vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
.stack { display: grid; gap: clamp(1.15rem, 0.8rem + 1.2vw, 2rem); }
.stack--lg { gap: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem); }
.with-aside { display: grid; grid-template-columns: 1fr; gap: clamp(1.75rem, 1.2rem + 2vw, 3.25rem); }
@media (min-width: 1000px) { .with-aside { grid-template-columns: minmax(0, 1fr) 330px; } .with-aside--left { grid-template-columns: 250px minmax(0, 1fr); } }

/* ---------- Прайс ---------- */
.price-table { border-radius: var(--r-l); overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.price-table__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem clamp(1.15rem, 1rem + 1vw, 1.75rem); background: var(--mist); border-bottom: 1px solid var(--line); }
.price-table__head h3 { font-size: 1.0625rem; font-weight: 700; }
.price-row {
  display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1.5rem; align-items: baseline;
  padding: 1rem clamp(1.15rem, 1rem + 1vw, 1.75rem); border-bottom: 1px solid var(--line);
  transition: background var(--t-fast);
}
.price-row:last-child { border-bottom: 0; }
.price-row:hover { background: var(--foam); }
.price-row__name { font-size: 0.9375rem; }
.price-row__unit { display: block; font-size: 0.8125rem; color: var(--ink-3); margin-top: 0.15rem; }
.price-row__val { font-weight: 800; font-size: 1rem; white-space: nowrap; color: var(--deep); letter-spacing: -0.02em; }
.price-row__val--tbd { font-weight: 600; font-size: 0.875rem; color: var(--ink-3); }

/* ---------- Аккордеон ---------- */
.acc { border-radius: var(--r-l); overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__item:last-child { border-bottom: 0; }
.acc__btn {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem; width: 100%;
  padding: 1.3rem clamp(1.15rem, 1rem + 1vw, 1.9rem); background: none; border: 0; cursor: pointer;
  text-align: left; font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem); font-weight: 600; color: var(--ink);
  line-height: 1.4; letter-spacing: -0.015em; transition: background var(--t-fast), color var(--t-fast);
}
.acc__btn:hover { background: var(--mist); color: var(--brand); }
.acc__btn[aria-expanded='true'] { color: var(--brand); }
.acc__ico { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--foam); position: relative; margin-top: 1px; transition: background var(--t), transform var(--t); }
.acc__ico::before, .acc__ico::after { content: ''; position: absolute; background: #2a7a55; border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.acc__ico::before { top: 12px; left: 7px; width: 12px; height: 2px; }
.acc__ico::after { top: 7px; left: 12px; width: 2px; height: 12px; }
.acc__btn[aria-expanded='true'] .acc__ico { background: var(--accent); transform: rotate(180deg); }
.acc__btn[aria-expanded='true'] .acc__ico::after { transform: scaleY(0); opacity: 0; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--e); }
.acc__btn[aria-expanded='true'] + .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel-in { padding: 0 clamp(1.15rem, 1rem + 1vw, 1.9rem) 1.5rem; color: var(--ink-2); font-size: 0.9688rem; line-height: 1.7; max-width: 78ch; }

/* ---------- Списки ---------- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.ticks li { position: relative; padding-left: 2rem; font-size: 0.9688rem; line-height: 1.6; margin: 0; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306301c' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ticks--2 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 0.8rem 2rem; }
.dots { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.dots li { position: relative; padding-left: 1.35rem; font-size: 0.9688rem; line-height: 1.6; margin: 0; color: var(--ink-2); }
.dots li::before { content: ''; position: absolute; left: 0.2rem; top: 0.66em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.section--dark .dots li { color: rgba(255, 255, 255, 0.75); }
.numbered { counter-reset: n; list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.numbered li { counter-increment: n; position: relative; padding-left: 2.5rem; font-size: 0.9688rem; line-height: 1.6; margin: 0; }
.numbered li::before {
  content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 0.1em;
  font-size: 0.75rem; font-weight: 800; color: var(--brand); letter-spacing: 0.06em;
  background: var(--foam); width: 30px; height: 22px; border-radius: var(--r-pill); display: grid; place-items: center;
}

/* ---------- Выноски ---------- */
.note {
  display: flex; gap: 0.85rem; padding: 1.15rem 1.35rem; border-radius: var(--r-m);
  background: var(--foam); border: 1px solid rgba(138, 226, 180, 0.5);
  font-size: 0.9375rem; line-height: 1.6; color: var(--ink);
}
.note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: #2a7a55; }
.note--warn { background: #fdf6e6; border-color: #eeddb0; }
.note--warn svg { color: var(--warn); }
.note--draft { background: #fdf0ee; border-color: #f2cfc9; }
.note--draft svg { color: var(--err); }
.note a { font-weight: 700; }
.section--dark .note { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.85); }

/* ---------- Хлебные крошки ---------- */
.crumbs { padding-block: 0.75rem 0.25rem; font-size: 0.8125rem; color: var(--ink-3); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem 0.55rem; padding: 0; margin: 0; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: 0.55rem; }
.crumbs li + li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }

/* ---------- Шапка страницы ---------- */
.page-head { padding-inline: var(--pad); margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
.page-head__panel {
  max-width: var(--shell); margin-inline: auto; border-radius: var(--r-xl);
  background: linear-gradient(150deg, var(--panel), var(--panel-2)); color: #fff;
  padding: clamp(1.75rem, 1.2rem + 3.5vw, 4rem); position: relative; overflow: hidden; isolation: isolate;
}
.page-head__panel::before {
  content: ''; position: absolute; width: 60%; aspect-ratio: 1; right: -14%; top: -46%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 62%); z-index: -1;
}
.page-head__in { max-width: 820px; }
.page-head .h1 { margin-bottom: 1rem; color: #fff; }
.page-head .lead { color: rgba(255, 255, 255, 0.76); }
.page-head .eyebrow { color: rgba(255, 255, 255, 0.7); }

/* ---------- Реквизиты ---------- */
.facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--paper); }
.fact-row { display: grid; grid-template-columns: minmax(170px, 250px) 1fr; gap: 0.3rem 1.5rem; padding: 0.9rem clamp(1rem, 0.8rem + 1vw, 1.5rem); border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.fact-row:last-child { border-bottom: 0; }
.fact-row dt { color: var(--ink-3); }
.fact-row dd { margin: 0; font-weight: 700; }
@media (max-width: 640px) { .fact-row { grid-template-columns: 1fr; } }
.section--dark .facts { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.13); }
.section--dark .fact-row { border-color: rgba(255, 255, 255, 0.1); }
.section--dark .fact-row dt { color: rgba(255, 255, 255, 0.55); }
.section--dark .fact-row dd { color: #fff; }

/* ---------- Документы ---------- */
.doc-list { display: grid; gap: 0.6rem; }
.doc-item {
  display: flex; align-items: center; gap: 1rem; padding: 0.95rem 1.2rem; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; color: inherit;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.doc-item:hover { transform: translateX(5px); box-shadow: var(--sh-s); border-color: var(--accent); color: inherit; }
.doc-item__ext {
  flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-size: 0.625rem; font-weight: 800; letter-spacing: 0.05em; background: var(--mist); color: var(--brand);
}
.doc-item__ext[data-ext='pdf'] { background: #fdece9; color: #c4453c; }
.doc-item__ext[data-ext='doc'], .doc-item__ext[data-ext='docx'] { background: #e2f4fd; color: #0180b6; }
.doc-item__ext[data-ext='odt'], .doc-item__ext[data-ext='rtf'] { background: var(--foam); color: #2a7a55; }
.doc-item__body { flex: 1; min-width: 0; }
.doc-item__title { display: block; font-size: 0.9375rem; font-weight: 600; line-height: 1.45; }
.doc-item__meta { display: block; font-size: 0.8125rem; color: var(--ink-3); margin-top: 0.15rem; }
.doc-item__dl { flex: none; color: var(--ink-3); transition: color var(--t-fast), transform var(--t-fast); }
.doc-item__dl svg { width: 19px; height: 19px; }
.doc-item:hover .doc-item__dl { color: var(--brand); transform: translateY(2px); }

/* ---------- Статьи ---------- */
.post-card {
  display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-l); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform var(--t), box-shadow var(--t);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--sh-l); color: inherit; }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--e); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body { padding: 1.35rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; gap: 0.85rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.7rem; }
.post-card__title { display: block; font-size: 1.125rem; font-weight: 700; line-height: 1.32; letter-spacing: -0.02em; margin-bottom: 0.55rem; }
.post-card__excerpt { display: block; font-size: 0.9063rem; color: var(--ink-2); line-height: 1.6; flex: 1; }

.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.4rem, 1.15rem + 1.1vw, 2rem); font-weight: 400; letter-spacing: -0.03em; margin: 2.75rem 0 1rem; }
.prose h3 { font-size: 1.1875rem; margin: 2rem 0 0.7rem; }
.prose p { margin-bottom: 1.1em; color: var(--ink-2); }
.prose > *:first-child { margin-top: 0; }
.prose ul, .prose ol { color: var(--ink-2); margin-bottom: 1.4em; }
.prose .note { margin: 2rem 0; }
.prose img { border-radius: var(--r-l); margin: 2rem 0; }

/* Прогресс чтения */
.reading-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); width: 0; z-index: 200; transition: width 0.1s linear; }

/* ---------- Формы ---------- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field > label { font-size: 0.8125rem; font-weight: 700; color: var(--ink-2); letter-spacing: 0.01em; }
.field .req { color: var(--err); }
.input, .select, .textarea {
  width: 100%; padding: 0.9rem 1.15rem; border: 1.5px solid var(--line-2); border-radius: var(--r-s);
  background: var(--paper-2); font-size: 0.9688rem; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--azure); box-shadow: 0 0 0 4px rgba(1, 160, 226, 0.14); }
.input[aria-invalid='true'], .textarea[aria-invalid='true'] { border-color: var(--err); }
.textarea { min-height: 118px; resize: vertical; }
.field__err { font-size: 0.8125rem; color: var(--err); display: none; }
.field__err[data-show='true'] { display: block; }
.check { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.8125rem; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.form__status { padding: 0.95rem 1.2rem; border-radius: var(--r-m); font-size: 0.9375rem; display: none; }
.form__status[data-state='ok'] { display: block; background: var(--foam); border: 1px solid var(--accent); color: #1f5c39; }
.form__status[data-state='err'] { display: block; background: #fdf0ee; border: 1px solid #f2cfc9; color: #93332c; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1rem; }

/* ---------- Модальное окно ---------- */
.modal { position: fixed; inset: 0; z-index: 220; display: none; padding: 1rem; overflow-y: auto; }
.modal[data-open='true'] { display: grid; place-items: center; }
.modal__back { position: fixed; inset: 0; background: rgba(6, 25, 55, 0.55); backdrop-filter: blur(6px); animation: fade 0.3s; }
@keyframes fade { from { opacity: 0; } }
.modal__box {
  position: relative; width: 100%; max-width: 540px; background: var(--paper-2); border-radius: var(--r-xl);
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); box-shadow: var(--sh-l); margin-block: auto;
  animation: modalIn 0.5s var(--e);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(28px) scale(0.96); } }
.modal__close { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border: 0; background: var(--mist); border-radius: 50%; cursor: pointer; font-size: 1.3rem; line-height: 1; color: var(--ink-2); transition: background var(--t-fast), transform var(--t-fast); }
.modal__close:hover { background: var(--line); transform: rotate(90deg); }
.modal__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 300; letter-spacing: -0.03em; margin-bottom: 0.5rem; padding-right: 2.5rem; }
.modal__sub { font-size: 0.9375rem; color: var(--ink-2); margin-bottom: 1.5rem; }
body.modal-open, body.menu-open { overflow: hidden; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-xl); isolation: isolate;
  background: linear-gradient(140deg, var(--panel), var(--deep)); color: #fff;
}
.cta::before {
  content: ''; position: absolute; width: 70%; aspect-ratio: 1; left: -18%; bottom: -60%;
  background: radial-gradient(circle, rgba(232, 200, 138, 0.42), transparent 62%); z-index: -1;
}
.cta__in { position: relative; z-index: 1; padding: clamp(2rem, 1.4rem + 3vw, 3.75rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta__text { max-width: 620px; }
.cta__title { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.75rem); font-weight: 250; letter-spacing: -0.035em; line-height: 1.1; color: #fff; margin-bottom: 0.8rem; }
.cta__sub { color: rgba(255, 255, 255, 0.76); font-size: 1rem; line-height: 1.6; }
.cta__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 1rem; }
.contact-card { padding: 1.5rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-l); transition: transform var(--t), box-shadow var(--t); }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--sh-m); }
.contact-card__label { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; margin-bottom: 0.65rem; }
.contact-card__value { font-size: 1.0625rem; font-weight: 700; line-height: 1.4; letter-spacing: -0.015em; }
.contact-card__value a { text-decoration: none; }
.contact-card__note { font-size: 0.875rem; color: var(--ink-3); margin-top: 0.45rem; line-height: 1.5; }
.map-frame { border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: var(--mist); aspect-ratio: 16 / 10; min-height: 320px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Расписание ---------- */
.schedule { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--paper); }
.schedule__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 1.2rem; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.schedule__row:last-child { border-bottom: 0; }
.schedule__row--off { color: var(--ink-3); background: var(--mist); }
.schedule__row b { font-weight: 700; }
.section--dark .schedule { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.13); }
.section--dark .schedule__row { border-color: rgba(255, 255, 255, 0.1); }
.section--dark .schedule__row--off { background: rgba(255, 255, 255, 0.03); color: rgba(255, 255, 255, 0.45); }

/* ---------- Плитки ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0.85rem; }
.tile {
  display: flex; align-items: flex-start; gap: 0.9rem; padding: 1.35rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-l); text-decoration: none; color: inherit;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--sh-m); border-color: var(--accent); color: inherit; }
.tile__ico { flex: none; width: 42px; height: 42px; border-radius: 13px; background: var(--foam); color: #2a7a55; display: grid; place-items: center; }
.tile__ico svg { width: 21px; height: 21px; }
.tile > span:last-child { display: block; }
.tile__t { display: block; font-size: 0.9688rem; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 0.25rem; }
.tile__d { display: block; font-size: 0.8438rem; color: var(--ink-2); line-height: 1.5; }
.section--dark .tile { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
.section--dark .tile__d { color: rgba(255, 255, 255, 0.7); }
.section--dark .tile__ico { background: rgba(138, 226, 180, 0.2); color: var(--accent); }

/* ---------- Разное ---------- */
.media-frame { border-radius: var(--r-xl); overflow: hidden; background: var(--mist); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 0.9rem; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--r-l); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform var(--t); }
.gallery figure:hover img { transform: scale(1.02); }
.gallery figcaption { font-size: 0.8125rem; color: var(--ink-3); margin-top: 0.55rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.95rem; border-radius: var(--r-pill);
  background: var(--paper-2); border: 1px solid var(--line); font-size: 0.8125rem; font-weight: 700; color: var(--ink-2); text-decoration: none;
  transition: border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
a.chip:hover { border-color: var(--accent); color: var(--brand); transform: translateY(-2px); }
.chip svg { width: 14px; height: 14px; }
.section--dark .chip, .panel--blue .chip { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.88); }
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.25rem 0.7rem; border-radius: var(--r-pill); font-size: 0.75rem; font-weight: 800; background: var(--accent); color: var(--accent-ink); }
.badge--warn { background: #fdf3dd; color: #8a5e0a; }
.empty { text-align: center; padding: clamp(2.25rem, 1.6rem + 3vw, 4rem) 1.5rem; border: 1.5px dashed var(--line-2); border-radius: var(--r-l); background: rgba(255, 255, 255, 0.5); }
.empty__icon { width: 56px; height: 56px; margin: 0 auto 1.15rem; border-radius: 50%; background: var(--foam); display: grid; place-items: center; color: #2a7a55; }
.empty h3 { margin-bottom: 0.55rem; }
.empty p { color: var(--ink-2); max-width: 46ch; margin-inline: auto; }
.toc { position: sticky; top: 120px; align-self: start; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.3rem; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 0.4rem 0 0.4rem 1rem; margin-left: -2px; border-left: 2px solid transparent; font-size: 0.875rem; color: var(--ink-2); text-decoration: none; transition: color var(--t-fast), border-color var(--t-fast); }
.toc a:hover { color: var(--brand); border-color: var(--accent); }

/* ---------- Поиск ---------- */
.search-box { display: flex; gap: 0.6rem; }
.search-box .input { flex: 1; }
.search-result { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.search-result:last-child { border-bottom: 0; }
.search-result h3 { font-size: 1.0625rem; margin-bottom: 0.3rem; }
.search-result h3 a { text-decoration: none; }
.search-result__url { font-size: 0.8125rem; color: var(--ink-3); margin-bottom: 0.35rem; }
.search-result p { font-size: 0.9063rem; color: var(--ink-2); margin: 0; }
mark { background: var(--accent); color: var(--accent-ink); padding: 0 3px; border-radius: 3px; }

/* ---------- Подвал ---------- */
.footer { margin-top: clamp(2rem, 1.5rem + 3vw, 4rem); padding-inline: var(--pad); padding-bottom: var(--pad); }
.footer__panel {
  max-width: var(--shell); margin-inline: auto; background: var(--deep); color: rgba(255, 255, 255, 0.66);
  border-radius: var(--r-xl); padding: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(1.25rem, 1rem + 2.5vw, 3.5rem);
  font-size: 0.9375rem; position: relative; overflow: hidden; isolation: isolate;
}
.footer__panel::before {
  content: ''; position: absolute; width: 60%; aspect-ratio: 1; right: -16%; bottom: -46%;
  background: radial-gradient(circle, rgba(232, 200, 138, 0.16), transparent 62%); z-index: -1;
}
.footer a { color: rgba(255, 255, 255, 0.66); text-decoration: none; transition: color var(--t-fast); }
.footer a:hover { color: var(--accent); }
.footer__top { display: grid; grid-template-columns: minmax(250px, 1.25fr) repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 2.25rem 2rem; padding-bottom: 2.75rem; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: rgba(255, 255, 255, 0.4); }
.footer__slogan { color: var(--accent); margin: 1.15rem 0; font-size: 1.15rem; line-height: 1.35; font-weight: 300; letter-spacing: -0.025em; max-width: 22ch; }
.footer__contacts { display: grid; gap: 0.5rem; }
.footer__contacts strong { color: #fff; font-weight: 700; font-size: 1.05rem; }
.footer__col h4 { font-size: 0.6875rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255, 255, 255, 0.38); margin-bottom: 1rem; font-weight: 800; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer__col li { margin: 0; font-size: 0.9063rem; line-height: 1.4; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-block: 1.6rem; display: flex; justify-content: space-between; gap: 1.25rem 2rem; flex-wrap: wrap; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.45); }
.footer__legal-links { display: flex; gap: 1.15rem; flex-wrap: wrap; }
.footer__disclaimer { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.5rem; font-size: 0.75rem; line-height: 1.6; color: rgba(255, 255, 255, 0.38); }

/* ---------- Мобильная панель звонка ---------- */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none; gap: 0.5rem; padding: 0.6rem var(--pad) calc(0.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.callbar .btn { flex: 1; padding-block: 0.85rem; }
@media (max-width: 760px) { .callbar { display: flex; } body { padding-bottom: 78px; } }

/* ============================================================
   ДВИЖЕНИЕ
   ============================================================ */

/* Появление при прокрутке */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--e), transform 0.75s var(--e);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal='left']  { transform: translateX(-32px); }
[data-reveal='right'] { transform: translateX(32px); }
[data-reveal='scale'] { transform: scale(0.94); }
[data-reveal='none']  { transform: none; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Заголовок построчно */
.split-line { display: block; overflow: hidden; }
.split-line > span {
  display: block;
  transform: translateY(104%);
  transition: transform 0.9s var(--e);
  transition-delay: var(--d, 0ms);
}
.is-in .split-line > span, .split-line.is-in > span { transform: none; }

/* Свой курсор (только на устройствах с точным указателем) */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; top: 0; left: 0; width: 34px; height: 34px; border-radius: 50%;
    border: 1.5px solid rgba(48, 67, 133, 0.5); pointer-events: none; z-index: 400;
    transform: translate(-50%, -50%); transition: width 0.3s var(--e), height 0.3s var(--e), background 0.3s, border-color 0.3s, opacity 0.3s;
    mix-blend-mode: multiply;
  }
  .cursor-dot {
    display: block; position: fixed; top: 0; left: 0; width: 5px; height: 5px; border-radius: 50%;
    background: var(--brand); pointer-events: none; z-index: 401; transform: translate(-50%, -50%);
  }
  body.cursor-hot .cursor { width: 64px; height: 64px; background: rgba(138, 226, 180, 0.28); border-color: transparent; mix-blend-mode: normal; }
  body.cursor-hot .cursor-dot { opacity: 0; }
  body.cursor-hidden .cursor, body.cursor-hidden .cursor-dot { opacity: 0; }
}

/* Магнитная кнопка */
.magnetic { will-change: transform; }

/* Наклон карточки */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* Параллакс-слои */
[data-par] { will-change: transform; }

/* Плавающая анимация коллажа */
@keyframes float-a { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(1.4deg); } }
@keyframes float-b { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-11px) rotate(-2deg); } }
.float-a { animation: float-a 7s ease-in-out infinite; }
.float-b { animation: float-b 9s ease-in-out infinite; }

/* Подчёркивание ссылок в тексте */
.prose p a, .card__text a, .note a {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat;
  text-decoration: none; transition: background-size var(--t);
}
.prose p a:hover, .card__text a:hover, .note a:hover { background-size: 100% 100%; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .split-line > span { transform: none !important; }
  .float-a, .float-b, .badge-rot__ring, .marquee__track { animation: none !important; }
  .cursor, .cursor-dot { display: none !important; }
}

/* ============================================================
   ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ
   ============================================================ */
.vi-panel { position: sticky; top: 0; z-index: 250; background: #000; color: #fff; border-bottom: 3px solid #ff0; padding: 0.9rem 0; display: none; }
html[data-vi='on'] .vi-panel { display: block; }
.vi-panel__in { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 2rem; }
.vi-group { display: flex; align-items: center; gap: 0.5rem; }
.vi-group__label { font-size: 0.8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }
.vi-btn { min-width: 40px; padding: 0.38rem 0.85rem; border: 2px solid #fff; background: transparent; color: #fff; font-weight: 800; cursor: pointer; border-radius: 4px; font-size: 0.9375rem; }
.vi-btn[aria-pressed='true'] { background: #ff0; color: #000; border-color: #ff0; }
.vi-btn--sw-white { background: var(--paper-2); color: #000; }
.vi-btn--sw-black { background: #000; color: #fff; }
.vi-btn--sw-blue { background: #9dd1ff; color: #063462; }
.vi-off { margin-left: auto; background: #ff0; color: #000; border-color: #ff0; }

/* В спец-версии выключаем всю декорацию */
html[data-vi='on'] .topbar, html[data-vi='on'] .callbar, html[data-vi='on'] .cursor,
html[data-vi='on'] .cursor-dot, html[data-vi='on'] .badge-rot, html[data-vi='on'] .marquee,
html[data-vi='on'] .reading-bar { display: none !important; }
html[data-vi='on'] .hero-art__frame { border-radius: 0; box-shadow: none; }
html[data-vi='on'] .hero-art__plate { margin-top: 1rem; border-radius: 0; box-shadow: none; }
html[data-vi='on'] body { padding-bottom: 0; background: var(--paper-2); }
html[data-vi='on'] .header { position: static; }
html[data-vi='on'] .header__in { backdrop-filter: none; background: var(--paper-2); border-radius: 0; }
html[data-vi='on'] [data-reveal] { opacity: 1 !important; transform: none !important; }
html[data-vi='on'] .split-line > span { transform: none !important; }
html[data-vi='on'] .float-a, html[data-vi='on'] .float-b { animation: none !important; }
html[data-vi='on'] .panel, html[data-vi='on'] .hero__panel, html[data-vi='on'] .page-head__panel,
html[data-vi='on'] .footer__panel, html[data-vi='on'] .cta, html[data-vi='on'] .section--dark > .wrap { border-radius: 0; }

html[data-vi-size='m'] { font-size: 125%; }
html[data-vi-size='l'] { font-size: 155%; }
html[data-vi-spacing='mid'] body { line-height: 2; letter-spacing: 0.06em; word-spacing: 0.16em; }
html[data-vi-spacing='big'] body { line-height: 2.4; letter-spacing: 0.12em; word-spacing: 0.3em; }
html[data-vi-img='off'] img:not(.brand__mark), html[data-vi-img='off'] .svc__media,
html[data-vi-img='off'] .post-card__media, html[data-vi-img='off'] .doc-card__media,
html[data-vi-img='off'] .media-frame, html[data-vi-img='off'] .gallery, html[data-vi-img='off'] .hero__art { display: none !important; }
html[data-vi-font='serif'] body, html[data-vi-font='serif'] .mega, html[data-vi-font='serif'] .h1, html[data-vi-font='serif'] .h2 { font-family: Georgia, 'Times New Roman', serif; }

html[data-vi-theme='black'] {
  --ink: #fff; --ink-2: #fff; --ink-3: #ddd; --paper: #000; --paper-2: #000; --mist: #111;
  --foam: #ff0; --foam-soft: #000; --line: #fff; --line-2: #fff; --brand: #ff0; --azure: #ff0; --navy: #ff0;
  --sea: #ff0; --gold: #ff0; --gold-2: #ff0; --gold-soft: #000; --accent: #ff0; --accent-ink: #000;
  --deep: #000; --panel: #000; --panel-2: #000; --err: #ff0; --warn: #ff0;
}
html[data-vi-theme='blue'] {
  --ink: #063462; --ink-2: #063462; --ink-3: #0a4a86; --paper: #9dd1ff; --paper-2: #9dd1ff; --mist: #8ac4f7;
  --foam: #063462; --foam-soft: #b8ddff; --line: #063462; --line-2: #063462; --brand: #063462; --azure: #063462;
  --navy: #063462; --sea: #063462; --gold: #063462; --gold-2: #063462; --gold-soft: #b8ddff;
  --accent: #063462; --accent-ink: #9dd1ff; --deep: #9dd1ff; --panel: #9dd1ff; --panel-2: #9dd1ff;
}
html[data-vi-theme='black'] body { background: #000; color: #fff; }
html[data-vi-theme='blue'] body { background: #9dd1ff; color: #063462; }
html[data-vi-theme='black'] .hero__panel, html[data-vi-theme='black'] .page-head__panel,
html[data-vi-theme='black'] .footer__panel, html[data-vi-theme='black'] .cta,
html[data-vi-theme='black'] .section--dark > .wrap { background: #000 !important; color: #fff; border: 2px solid #fff; }
html[data-vi-theme='blue'] .hero__panel, html[data-vi-theme='blue'] .page-head__panel,
html[data-vi-theme='blue'] .footer__panel, html[data-vi-theme='blue'] .cta,
html[data-vi-theme='blue'] .section--dark > .wrap { background: #9dd1ff !important; color: #063462; border: 2px solid #063462; }
html[data-vi-theme='black'] .footer, html[data-vi-theme='black'] .footer a, html[data-vi-theme='black'] .hero__text,
html[data-vi-theme='black'] .cta__sub, html[data-vi-theme='black'] .lead, html[data-vi-theme='black'] .step__d,
html[data-vi-theme='black'] .footer__col h4, html[data-vi-theme='black'] .footer__slogan { color: #fff !important; }
html[data-vi-theme='blue'] .footer, html[data-vi-theme='blue'] .footer a, html[data-vi-theme='blue'] .hero__text,
html[data-vi-theme='blue'] .cta__sub, html[data-vi-theme='blue'] .lead, html[data-vi-theme='blue'] .step__d,
html[data-vi-theme='blue'] .footer__col h4, html[data-vi-theme='blue'] .footer__slogan { color: #063462 !important; }
html[data-vi-theme] .card, html[data-vi-theme] .svc, html[data-vi-theme] .doc-item, html[data-vi-theme] .tile,
html[data-vi-theme] .step, html[data-vi-theme] .acc, html[data-vi-theme] .facts, html[data-vi-theme] .price-table,
html[data-vi-theme] .schedule, html[data-vi-theme] .contact-card, html[data-vi-theme] .post-card, html[data-vi-theme] .doc-card {
  background: var(--paper) !important; border: 2px solid var(--line) !important; color: var(--ink);
}
html[data-vi-theme] .btn { border: 2px solid currentColor; box-shadow: none; }
html[data-vi-theme='black'] .btn--primary, html[data-vi-theme='black'] .btn--accent, html[data-vi-theme='black'] .btn--light { background: #ff0; color: #000; }
html[data-vi-theme='blue'] .btn--primary, html[data-vi-theme='blue'] .btn--accent, html[data-vi-theme='blue'] .btn--light { background: #063462; color: #9dd1ff; }
html[data-vi-theme] .svc__media { filter: none; }
html[data-vi-theme] .doc-card__body { background: var(--paper); backdrop-filter: none; }

/* ---------- Печать ---------- */
@media print {
  .topbar, .header, .drawer, .callbar, .vi-panel, .cta, .modal, .marquee, .badge-rot,
  .footer__legal-links, .btn, .cursor, .cursor-dot, .reading-bar, .hero__art { display: none !important; }
  body { padding: 0; font-size: 11pt; color: #000; background: var(--paper-2); }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
  .section { padding-block: 1rem; }
  .panel, .hero__panel, .page-head__panel, .footer__panel, .section--dark > .wrap { background: #fff !important; color: #000 !important; border: 1px solid #999; border-radius: 0; }
  .panel *, .hero__panel *, .page-head__panel *, .footer__panel *, .section--dark * { color: #000 !important; }
  .card, .doc-item, .acc { break-inside: avoid; border-color: #999; }
  .acc__panel { grid-template-rows: 1fr !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* --- Вырезки: корректная геометрия внутри <picture> --- */
.hero__copy { position: relative; z-index: 2; }
.hero__tooth img, .hero__boat img, .hero__wave img { width: 100%; height: auto; }

/* --- Светлые секции получают собственную панель, как тёмные --- */
.section--soft, .section--mist { padding-inline: var(--pad); }
.section--soft > .wrap, .section--mist > .wrap {
  max-width: var(--shell); border-radius: var(--r-xl);
  padding: clamp(2rem, 1.4rem + 3.5vw, 4.5rem) clamp(1.25rem, 1rem + 2.5vw, 3.5rem);
}
.section--soft > .wrap { background: rgba(255, 255, 255, 0.55); }
.section--mist > .wrap { background: rgba(255, 255, 255, 0.78); }
html[data-vi='on'] .section--soft > .wrap, html[data-vi='on'] .section--mist > .wrap { background: none; border-radius: 0; padding-inline: 0; }

/* --- Герой страницы услуги --- */
.svc-hero__art { display: grid; place-items: center; padding: 0.5rem; }
.svc-hero__art picture {
  display: block; width: min(100%, 460px); aspect-ratio: 4 / 3; position: relative;
  border-radius: var(--r-l); overflow: hidden; background: #f6f1e7;
  box-shadow: 0 24px 60px rgba(6, 25, 55, 0.35);
}
.svc-hero__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }

/* ============================================================
   ПРЕМИАЛЬНЫЙ СЛОЙ
   ============================================================ */

/* --- Зерно бумаги: акварель лежит на фактуре, а не на плоской заливке --- */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.42; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
html[data-vi='on'] body::before, html[data-vi-theme] body::before { display: none; }
@media print { body::before { display: none; } }

/* --- Золотая кнопка --- */
.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 8px 26px rgba(46, 110, 166, 0.4); }
.btn--gold:hover { color: #fff; box-shadow: 0 14px 38px rgba(46, 110, 166, 0.52); }
.btn--gold .btn__dot { background: rgba(255, 255, 255, 0.22); color: #fff; }
.btn--accent { background: var(--gold); color: #fff; box-shadow: 0 8px 26px rgba(46, 110, 166, 0.4); }
.btn--accent:hover { color: #fff; }
.btn--accent .btn__dot { background: rgba(255, 255, 255, 0.22) !important; color: #fff; }
.btn--primary { background: var(--navy); box-shadow: 0 8px 24px rgba(30, 60, 116, 0.26); }
.btn--primary:hover { box-shadow: 0 14px 34px rgba(30, 60, 116, 0.34); }

/* --- Золотые детали --- */
.eyebrow { color: var(--gold); }
.eyebrow::before { background: var(--gold); }
.badge-rot__disc { background: var(--gold); }
.badge-rot__ring text { fill: #fff; }
.badge-rot__arrow { color: #fff; }
.accent-word { color: var(--gold-2); }
.stat__num i { color: var(--gold); }
.dots li::before { background: var(--gold); }
.ticks li::before {
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b6b57' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.numbered li::before { background: var(--gold-soft); color: #2b6b57; }
.badge { background: var(--gold); color: #fff; }
.acc__ico { background: var(--gold-soft); }
.acc__ico::before, .acc__ico::after { background: #2b6b57; }
.acc__btn[aria-expanded='true'] .acc__ico { background: var(--gold); }
.acc__btn[aria-expanded='true'] .acc__ico::before, .acc__btn[aria-expanded='true'] .acc__ico::after { background: #fff; }
.card__icon { background: var(--gold-soft); color: #2b6b57; }
.card__icon--azure { background: #e7f0f8; color: #2c6b9e; }
.card__icon--foam { background: var(--foam-soft); color: #43775a; }
.card__icon--sand { background: var(--gold-soft); color: #2b6b57; }
.tile__ico { background: var(--gold-soft); color: #2b6b57; }
.empty__icon { background: var(--gold-soft); color: #2b6b57; }
.step__n { color: var(--gold-2); }
.step[data-active='true'] { background: rgba(46, 110, 166, 0.16); border-color: rgba(232, 200, 138, 0.5); }
.sticky-steps__counter { color: var(--gold-2); }
.footer__slogan { color: var(--gold-2); }
.reading-bar { background: var(--gold); }
mark { background: var(--gold-2); color: var(--accent-ink); }
.note { background: var(--gold-soft); border-color: rgba(46, 110, 166, 0.32); }
.note svg { color: #2b6b57; }
.form__status[data-state='ok'] { background: var(--foam-soft); border-color: var(--foam); color: #2f5c40; }
.prose p a, .card__text a, .note a { background-image: linear-gradient(var(--gold-2), var(--gold-2)); }
a.chip:hover { border-color: var(--gold); color: var(--navy); }
.tile:hover, .doc-item:hover { border-color: var(--gold); }
.price-row:hover { background: var(--gold-soft); }
::selection { background: var(--gold-2); color: var(--accent-ink); }
.cursor { border-color: rgba(46, 110, 166, 0.6); }
.cursor-dot { background: var(--gold); }
body.cursor-hot .cursor { background: rgba(46, 110, 166, 0.24); }

/* Светлые секции — тонкие бумажные пластины с золотой волосяной рамкой */
.section--soft > .wrap { background: var(--paper-2); border: 1px solid var(--line); }
.section--mist > .wrap { background: var(--paper-2); border: 1px solid var(--line); }

/* ============================================================
   ПЕРВЫЙ ЭКРАН — фирменная акварель
   ============================================================ */
.hero-art { padding-inline: var(--pad); padding-top: 0.25rem; }
.hero-art__panel { max-width: var(--shell); margin-inline: auto; position: relative; }
.hero-art__frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: var(--sh-l); background: var(--paper-2);
}
.hero-art__frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}
.hero-art__img { width: 100%; }
.hero-art__img img { width: 100%; height: auto; display: block; }

/* Плашка с действиями — как подпись под картиной в раме */
.hero-art__plate {
  position: relative; z-index: 2; margin: -3.25rem auto 0; width: min(100%, 880px);
  background: var(--paper-2); border: 1px solid var(--line-2); border-radius: var(--r-l);
  box-shadow: var(--sh-l); padding: 1.5rem clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; flex-wrap: wrap;
}
.hero-art__plate::before {
  content: ''; position: absolute; left: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); right: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); border-radius: 2px;
}
.hero-art__meta { display: grid; gap: 0.3rem; }
.hero-art__meta b { font-size: 1rem; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
.hero-art__meta span { font-size: 0.875rem; color: var(--ink-2); }
.hero-art__actions { display: flex; align-items: center; gap: 0.85rem 1.25rem; flex-wrap: wrap; }
.hero-art__phone {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem); font-weight: 700; letter-spacing: -0.02em;
  color: var(--navy); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.hero-art__phone svg { width: 18px; height: 18px; color: var(--gold); }
.hero-art__phone:hover { color: var(--gold); }
.hero-art__badge { position: absolute; right: clamp(1rem, 3vw, 2.5rem); top: clamp(1rem, 3vw, 2.5rem); z-index: 3; }

@media (max-width: 900px) {
  /* На узком экране кадрируем акварель на логотип и название */
  .hero-art__frame { aspect-ratio: 4 / 5; }
  .hero-art__img, .hero-art__img img { height: 100%; object-fit: cover; object-position: 26% center; }
  .hero-art__plate { margin-top: -2rem; text-align: center; justify-content: center; }
  .hero-art__meta { justify-items: center; }
  .hero-art__actions { justify-content: center; width: 100%; }
  .hero-art__badge { right: 0.75rem; top: 0.75rem; }
}
@media (max-width: 560px) {
  .hero-art__frame { aspect-ratio: 3 / 4; }
  .hero-art__badge { display: none; }
  .hero-art__actions .btn { width: 100%; }
}
.hero-art__h1 { font-size: clamp(1.05rem, 0.98rem + 0.45vw, 1.3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }

/* ============================================================
   ГЕРОЙ «ЖИВАЯ АКВАРЕЛЬ» — видеофон + текст поверх
   Сценарий: фон дышит → приплывает парусник → логотип →
   заголовок → подзаголовок → кнопки → контакты.
   ============================================================ */
.hero-sea { padding: 0.25rem var(--pad) 0; }
.hero-sea__panel {
  position: relative;
  max-width: var(--shell);
  margin-inline: auto;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--paper-2) url('/img/gen/hero-sea-1200.jpg') center 78% / cover no-repeat;
  box-shadow: var(--sh-l);
  height: min(calc(100svh - 15rem), 720px);
  min-height: 480px;
  display: grid;
}
.hero-sea__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 78%;
  border: 0;
}
.hero-sea__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 34, 62, 0.22) 0%, rgba(10, 34, 62, 0) 30%, rgba(10, 34, 62, 0.34) 66%, rgba(8, 27, 50, 0.72) 100%),
    linear-gradient(100deg, rgba(9, 32, 60, 0.58) 0%, rgba(9, 32, 60, 0.24) 44%, rgba(9, 32, 60, 0) 72%);
}
.hero-sea__inner {
  position: relative;
  align-self: end;
  display: grid;
  justify-items: start;
  gap: clamp(0.7rem, 1.4vh, 1.1rem);
  padding: clamp(1.5rem, 3.4vw, 3.25rem);
  max-width: 54rem;
}
.hero-sea__logo {
  width: clamp(64px, 7vw, 92px); height: auto;
  filter: drop-shadow(0 10px 26px rgba(6, 24, 46, 0.45));
}
.hero-sea__h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 300;
  color: #fff;
  text-shadow: 0 2px 30px rgba(6, 24, 46, 0.45);
}
.hero-sea__sub {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 16px rgba(6, 24, 46, 0.5);
}
.hero-sea__cta { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 0.35rem; }
.btn--glass {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }
.hero-sea__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.88);
}
.hero-sea__meta a { display: inline-flex; align-items: center; gap: 0.45rem; color: #fff; font-weight: 600; }
.hero-sea__meta svg { width: 17px; height: 17px; }

/* --- Сценарное появление (после того, как парусник вошёл в кадр) --- */
.hero-sea__logo,
.hero-sea__h1,
.hero-sea__sub,
.hero-sea__cta,
.hero-sea__meta {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 0.95s var(--e) forwards;
}
.hero-sea__logo { animation-delay: 2.6s; transform: translateY(0) scale(0.86); }
.hero-sea__h1   { animation-delay: 3.25s; }
.hero-sea__sub  { animation-delay: 3.75s; }
.hero-sea__cta  { animation-delay: 4.15s; }
.hero-sea__meta { animation-delay: 4.5s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero-sea__logo, .hero-sea__h1, .hero-sea__sub, .hero-sea__cta, .hero-sea__meta {
    animation: none; opacity: 1; transform: none;
  }
  .hero-sea__video { display: none; }
}

@media (max-width: 860px) {
  .hero-sea__panel {
    height: min(calc(100svh - 11rem), 680px);
    background-image: url('/img/gen/hero-sea-v-768.jpg');
  }
  .hero-sea__inner {
    max-width: none; gap: 0.9rem;
    padding: clamp(1.5rem, 6vw, 2.25rem);
    /* нижняя панель «Позвонить / Записаться» не должна перекрывать контакты */
    padding-bottom: calc(clamp(1.5rem, 6vw, 2.25rem) + 3.5rem);
  }
  .hero-sea__cta { width: 100%; }
  .hero-sea__cta .btn { flex: 1 1 100%; justify-content: center; }
  .hero-sea__meta { font-size: 0.875rem; gap: 0.35rem 1rem; }
}

/* Версия для слабовидящих: без видео и без анимаций */
html[data-vi='on'] .hero-sea__panel { min-height: 0; border-radius: 0; box-shadow: none; background: none; }
html[data-vi='on'] .hero-sea__video,
html[data-vi='on'] .hero-sea__veil { display: none; }
html[data-vi='on'] .hero-sea__inner { max-width: none; padding: 1.25rem 0; }
html[data-vi='on'] .hero-sea__h1,
html[data-vi='on'] .hero-sea__sub,
html[data-vi='on'] .hero-sea__meta,
html[data-vi='on'] .hero-sea__meta a { color: inherit; text-shadow: none; }
html[data-vi='on'] .hero-sea__logo,
html[data-vi='on'] .hero-sea__h1,
html[data-vi='on'] .hero-sea__sub,
html[data-vi='on'] .hero-sea__cta,
html[data-vi='on'] .hero-sea__meta { animation: none; opacity: 1; transform: none; }


