/* ==========================================================
   Семья 21 века — главная страница
   1. Токены  2. База  3. Компоненты  4. Секции
   5. Подвал и служебное  6. Анимации  7. Адаптив
   ========================================================== */

/* ---------- 1. Токены ---------- */
:root {
  --blue: #008ecc;          /* цвет логотипа — лебеди */
  --blue-deep: #006a9c;
  --blue-soft: #5cc0ec;
  --ink: #0b2a42;           /* ночная вода, основной текст */
  --ink-2: #123a59;
  --muted: #4d6577;
  --ice: #e4f3fb;
  --mist: #f5fafd;          /* фон страницы */
  --white: #ffffff;
  --line: #cfe3ef;
  --yolk: #ffc94d;          /* тёплый акцент главных действий */
  --yolk-deep: #f2b01e;
  --peach: #ffe6d3;
  --peach-ink: #b8501c;
  --mint: #d5f3e8;
  --mint-ink: #12805a;
  --lilac: #e8e4fb;
  --lilac-ink: #5b48c2;
  --danger: #c4361f;

  --font-display: "Nunito", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1: clamp(1.12rem, 1.06rem + 0.3vw, 1.28rem);
  --step-2: clamp(1.3rem, 1.16rem + 0.7vw, 1.7rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.1rem, 1.5rem + 3vw, 4.1rem);

  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 32px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 84px;

  --shadow-soft: 0 18px 50px -24px rgba(11, 42, 66, .35);
  --shadow-lift: 0 30px 60px -28px rgba(11, 42, 66, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  color: var(--ink); background: var(--mist); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--yolk); color: var(--ink); }

/* ---------- Полосы прокрутки в стиле сайта (везде: страница, окно записи, меню, списки, поля) ---------- */
/* Chrome, Edge, Safari: тонкая округлая «капсула» в фирменном голубом, дорожка прозрачная */
*::-webkit-scrollbar { width: 12px; height: 12px; background: transparent; }
*::-webkit-scrollbar-track { background: transparent; margin: 22px 0; }            /* отступ, чтобы не упираться в скруглённые углы окон */
*::-webkit-scrollbar-track:horizontal { margin: 0 22px; }
*::-webkit-scrollbar-thumb {
  background: var(--blue-soft); border-radius: 999px;
  border: 3px solid transparent; background-clip: padding-box; min-height: 48px; min-width: 48px;
  transition: background-color .2s;
}
*::-webkit-scrollbar-thumb:hover { background: var(--blue); background-clip: padding-box; }
*::-webkit-scrollbar-thumb:active { background: var(--blue-deep); background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }
/* страница целиком: дорожка без отступов и в цвет фона */
html::-webkit-scrollbar { width: 14px; background: var(--mist); }
html::-webkit-scrollbar-track { margin: 0; background: var(--mist); border-left: 1px solid var(--line); }
html::-webkit-scrollbar-thumb { border-width: 3px; }
/* Firefox */
@supports (-moz-appearance: none) {
  * { scrollbar-width: thin; scrollbar-color: var(--blue-soft) transparent; }
  html { scrollbar-color: var(--blue-soft) var(--mist); }
}
:focus-visible { outline: 3px solid var(--yolk); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.ico { width: 20px; height: 20px; flex: none; }
.ico--sm { width: 14px; height: 14px; }
.ico--lg { width: 32px; height: 32px; }

.h2 { font-family: var(--font-display); font-size: var(--step-3); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.h3 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; letter-spacing: -0.01em; }
.h4 { font-size: var(--step-1); font-weight: 700; line-height: 1.3; }
.h5 { font-size: var(--step-0); font-weight: 700; }

.section { padding-block: var(--section); position: relative; }
.section__head { margin-bottom: clamp(32px, 4vw, 56px); }
.section__head--split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; }
.section__lead { color: var(--muted); font-size: var(--step-1); line-height: 1.55; max-width: 60ch; margin: 0; }
.fineprint { color: var(--muted); font-size: var(--step--1); max-width: 75ch; margin-top: 20px; }

/* ---------- 3. Компоненты ---------- */
.btn {
  --bg: var(--blue); --fg: #fff; --bd: transparent;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s, transform .3s var(--spring), border-color .25s, box-shadow .25s;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(0, 106, 156, .6); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary:hover { --bg: var(--blue-deep); }
.btn--ghost { --bg: rgba(255,255,255,.6); --fg: var(--ink); --bd: var(--line); }
.btn--ghost:hover { --bd: var(--blue); --fg: var(--blue-deep); --bg: #fff; box-shadow: none; }
.btn--white { --bg: #fff; --fg: var(--ink); }
.btn--white:hover { --bg: var(--yolk); box-shadow: 0 14px 28px -14px rgba(0,0,0,.4); }
.btn--yolk { --bg: var(--yolk); --fg: var(--ink); }
.btn--yolk:hover { --bg: var(--yolk-deep); box-shadow: 0 14px 28px -14px rgba(242, 176, 30, .8); }
.btn--sm { padding: 10px 18px; font-size: var(--step--1); }
.btn--lg { padding: 18px 30px; }
/* блик, пробегающий по главной кнопке */
.btn--shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 4.5s 2s var(--ease) infinite;
}
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.round-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center;
  color: var(--ink); transition: .25s var(--ease);
}
.round-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.round-btn:disabled { opacity: .35; pointer-events: none; }

.checks { list-style: none; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008ecc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Запасной фон для фото */
.has-fallback { background: linear-gradient(150deg, var(--ice), #bfe3f5) !important; position: relative; }
.has-fallback::after { content: ""; position: absolute; inset: 0; background: url("../img/logo-white.png") center/38% no-repeat; opacity: .9; pointer-events: none; }

/* Подсветка, которая следует за курсором */
[data-spot] { position: relative; }
[data-spot]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 142, 204, .12), transparent 60%);
}
[data-spot]:hover::before { opacity: 1; }

/* Индикатор прокрутки */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--yolk)); }

/* ---------- Верхняя строка ---------- */
.topbar { background: var(--ink); color: #cfe2ee; font-size: var(--step--1); }
.topbar__inner { display: flex; align-items: center; gap: 28px; min-height: 40px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: 8px; }
.topbar__address { margin-right: auto !important; }
.topbar__address .ico { width: 16px; height: 16px; color: var(--blue-soft); }
.topbar__social { list-style: none; display: flex; gap: 4px; }
.topbar__social a { display: grid; place-items: center; width: 32px; height: 32px; color: #cfe2ee; border-radius: 50%; transition: .2s; }
.topbar__social a:hover { color: #fff; background: rgba(255,255,255,.12); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #8aa4b6; position: relative; }
.is-open .status-dot { background: #52d68a; }
.is-open .status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #52d68a; animation: ping 1.8s var(--ease) infinite; }
@keyframes tickerRun { to { transform: translateX(-50%); } }
@keyframes ping { to { transform: scale(3); opacity: 0; } }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: #f5fafd;
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -20px rgba(11,42,66,.35); background: #fff; }
.header > .container { max-width: 1480px; }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand__logo { width: 54px; height: auto; transition: transform .6s var(--spring); }
.brand:hover .brand__logo { transform: rotate(-8deg) scale(1.08); }
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand__sub { color: var(--muted); font-size: .82rem; }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border: 0; background: none; border-radius: 10px;
  font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--blue-deep); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--blue-deep); }
.nav__drop {
  list-style: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-soft);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: top left; transition: .22s var(--ease);
}
.nav__drop a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; transition: .2s; }
.nav__drop a:hover { background: var(--ice); color: var(--blue-deep); padding-left: 18px; }
.nav__item--drop .ico--sm { transition: transform .25s; }
.nav__item--drop:hover .nav__drop, .nav__item--drop:focus-within .nav__drop, .nav__item--drop.is-open .nav__drop { opacity: 1; visibility: visible; transform: none; }
.nav__item--drop:hover .ico--sm, .nav__item--drop.is-open .ico--sm { transform: rotate(180deg); }
.nav__phone-mobile { display: none; }
.nav__head { display: none; }

.header__actions { display: flex; align-items: center; gap: 18px; flex: none; }
.header__phone { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.header__phone-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ice); color: var(--blue); flex: none; transition: background-color .25s, color .25s; }
.header__phone-ico .ico { width: 18px; height: 18px; }
.header__phone-num { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1; }
.header__phone:hover { color: var(--blue-deep); }
.header__phone:hover .header__phone-ico { background: var(--blue); color: #fff; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--ice); border-radius: 12px; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- 4. Секции ---------- */

/* HERO */
.hero { position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(72px, 9vw, 120px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; opacity: .7; background: radial-gradient(closest-side, var(--c, #bfe6f8), transparent); will-change: transform; animation: float 18s ease-in-out infinite alternate; }
.blob--1 { width: 520px; height: 520px; --c: #bfe6f8; right: -120px; top: -140px; }
.blob--2 { width: 380px; height: 380px; --c: #ffe9c2; left: 30%; bottom: -200px; animation-duration: 22s; }
.blob--3 { width: 300px; height: 300px; --c: #dff5ec; left: -120px; top: 30%; animation-duration: 26s; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.08); } 100% { transform: translate(-30px, 20px) scale(.95); } }

.hero__swanline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__swanline path {
  fill: none; stroke: var(--blue); stroke-width: 1.4; opacity: .35;
  stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: draw 2.6s .3s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__grid { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }

.hero__today {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 6px; margin-bottom: 28px;
  box-shadow: 0 10px 24px -18px rgba(11,42,66,.5); font-size: var(--step--1);
}
.hero__today-label { background: var(--ink); color: #fff; border-radius: 999px; padding: 5px 12px; font-weight: 700; }
.ticker { position: relative; display: inline-block; height: 1.5em; overflow: hidden; min-width: 15em; font-weight: 700; color: var(--blue-deep); padding-right: 8px; }
.ticker span { position: absolute; left: 0; top: 0; white-space: nowrap; transform: translateY(110%); opacity: 0; transition: transform .55s var(--ease), opacity .55s; }
.ticker-marquee { display: none; }
.ticker span.is-current { transform: none; opacity: 1; }
.ticker span.is-leaving { transform: translateY(-110%); opacity: 0; }
html:not(.js) .ticker span:first-child { transform: none; opacity: 1; }

.hero__title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-4); letter-spacing: -0.035em; line-height: 1.06; margin-bottom: 28px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line:last-child > span {
  background: linear-gradient(90deg, var(--blue), #34b4ea 40%, var(--blue-deep) 80%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 8s ease-in-out infinite;
}
@keyframes shimmer { 50% { background-position: 100% 0; } }
.js .hero__title .line > span { transform: translateY(105%); animation: rise .95s var(--ease) forwards; }
.js .hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.js .hero__title .line:nth-child(3) > span { animation: rise .95s .24s var(--ease) forwards, shimmer 8s 1.5s ease-in-out infinite; }
@keyframes rise { to { transform: none; } }

.hero__lead { font-size: var(--step-1); color: var(--muted); max-width: 54ch; margin-bottom: 32px; }
.js .hero__lead, .js .hero__cta, .js .hero__today { opacity: 0; animation: fadeUp .8s var(--ease) forwards; }
.js .hero__today { animation-delay: .05s; }
.js .hero__lead { animation-delay: .45s; }
.js .hero__cta { animation-delay: .6s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: relative; justify-self: end; width: min(100%, 460px); }
.js .hero__visual { opacity: 0; animation: popIn 1.1s .3s var(--ease) forwards; }
@keyframes popIn { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }
.hero__visual > * { transition: transform .4s var(--ease); }
.arch {
  margin: 0; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius-l) var(--radius-l);
  overflow: hidden; background: var(--ice); box-shadow: var(--shadow-lift); position: relative;
}
.arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.bubble {
  position: absolute; margin: 0; width: 34%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; left: -18%; top: 16%;
  border: 6px solid #fff; box-shadow: var(--shadow-soft); background: var(--ice);
}
.bubble img { width: 100%; height: 100%; object-fit: cover; }
.badge-round {
  position: absolute; right: -6%; bottom: 18%; width: 124px; height: 124px; border-radius: 50%; background: #fff;
  box-shadow: var(--shadow-soft); display: grid; place-items: center;
}
.badge-round img { width: 46px; }
.badge-round__text { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); animation: spin 22s linear infinite; }
.badge-round__text text { font-size: 10.4px; font-weight: 700; letter-spacing: .08em; fill: var(--blue-deep); font-family: var(--font-body); }
@keyframes spin { to { transform: rotate(360deg); } }

.note {
  position: absolute; background: #fff; border-radius: var(--radius-m); box-shadow: var(--shadow-soft);
  padding: 14px 18px; display: flex; gap: 12px; align-items: center; font-size: .88rem; line-height: 1.35;
}
.note p { margin: 0; color: var(--muted); }
.note strong { display: block; color: var(--ink); }
.note__ico { width: 40px; height: 40px; border-radius: 12px; background: var(--yolk); color: var(--ink); display: grid; place-items: center; flex: none; }
.note--call { left: -26%; bottom: 6%; max-width: 280px; }
.note--call .note__ico { animation: ring 3.5s 2s ease-in-out infinite; }
@keyframes ring { 0%, 85%, 100% { transform: rotate(0); } 88% { transform: rotate(-14deg); } 91% { transform: rotate(12deg); } 94% { transform: rotate(-8deg); } 97% { transform: rotate(6deg); } }
.note--temp { right: -8%; top: 6%; padding: 10px 16px; color: var(--muted); font-size: .78rem; }
.note--temp .ico { color: var(--danger); width: 24px; height: 24px; }
.note__big { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--blue); line-height: 1.1; }
.js .note--call, .js .note--temp, .js .bubble, .js .badge-round { animation: bob 6s ease-in-out infinite; }
.js .note--temp { animation-delay: -2s; }
.js .bubble { animation-delay: -4s; animation-duration: 7s; }
.js .badge-round { animation-delay: -1s; animation-duration: 8s; }
@keyframes bob { 50% { translate: 0 -10px; } }

.hero__scroll { position: absolute; left: 50%; bottom: 24px; width: 28px; height: 44px; border: 2px solid var(--line); border-radius: 20px; margin-left: -14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--blue); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Бегущая лента */
.marquee { background: var(--blue); color: #fff; overflow: hidden; padding-block: 18px; transform: rotate(-1.2deg); margin: -12px -20px 0; position: relative; z-index: 2; box-shadow: 0 20px 40px -26px rgba(0,106,156,.8); }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, .9rem + .6vw, 1.4rem); white-space: nowrap; }
.marquee i { width: 30px; height: 28px; flex: none; background: url("../img/logo-white.png") center/contain no-repeat; opacity: .85; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Цифры */
.stats { padding-block: clamp(56px, 7vw, 96px) clamp(16px, 3vw, 32px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 8px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { margin: 0 0 8px; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 1.8rem + 2.6vw, 4rem); line-height: 1; color: var(--blue); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: .45em; margin-left: 4px; letter-spacing: 0; color: var(--blue-deep); }
.stat__label { margin: 0; color: var(--muted); font-size: var(--step--1); max-width: 22ch; line-height: 1.45; }

/* Плитки «С чем вы сегодня» */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(220px, auto); gap: 18px; perspective: 1200px; }
.tile {
  --tile-bg: #fff; --tile-ink: var(--ink); --tile-accent: var(--blue);
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 26px; border-radius: var(--radius-l); background: var(--tile-bg); color: var(--tile-ink); text-decoration: none;
  transform-style: preserve-3d; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  isolation: isolate;
}
.tile:hover { color: var(--tile-ink); box-shadow: var(--shadow-lift); }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.55), transparent 60%);
}
.tile:hover::before { opacity: 1; }
.tile__ico {
  margin-bottom: auto; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(255,255,255,.75); color: var(--tile-accent); transition: transform .5s var(--spring);
}
.tile__ico .ico { width: 26px; height: 26px; }
.tile:hover .tile__ico { transform: rotate(-10deg) scale(1.1); }
.tile__ico + .tile__title { margin-top: 28px; }
.tile--photo .tile__body .tile__ico { margin-bottom: 18px; }
.tile--photo .tile__body { margin-top: auto; }
.tile__title { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.01em; max-width: 18ch; }
.tile__text { font-size: var(--step--1); opacity: .8; max-width: 36ch; }
.tile__price {
  align-self: flex-start; margin-top: 10px; font-weight: 800; font-size: var(--step--1); padding: 6px 14px 6px 14px; border-radius: 999px;
  background: var(--tile-ink); color: var(--tile-bg); display: inline-flex; align-items: center; gap: 8px; transition: gap .3s var(--ease), padding .3s;
}
.tile__price::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; }
.tile:hover .tile__price { gap: 14px; padding-right: 18px; }
.tile--big { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile--peach { --tile-bg: var(--peach); --tile-ink: #5a2a12; --tile-accent: var(--peach-ink); }
.tile--mint { --tile-bg: var(--mint); --tile-ink: #0d4a35; --tile-accent: var(--mint-ink); }
.tile--lilac { --tile-bg: var(--lilac); --tile-ink: #2e2470; --tile-accent: var(--lilac-ink); }
.tile--ink { --tile-bg: var(--ink); --tile-ink: #fff; --tile-accent: var(--yolk); }
.tile--ink .tile__ico { background: rgba(255,255,255,.1); }
.tile--ink .tile__price { background: var(--yolk); color: var(--ink); }
.tile--blue { --tile-bg: var(--blue); --tile-ink: #fff; --tile-accent: var(--blue); }
.tile--blue .tile__ico { background: #fff; }
.tile--blue .tile__price { background: #fff; color: var(--blue-deep); }
.tile__swans { position: absolute; right: -30px; bottom: -40px; width: 200px; opacity: .1; z-index: -1; transition: transform .8s var(--ease); }
.tile:hover .tile__swans { transform: rotate(-8deg) scale(1.1); }
.tile--photo { --tile-ink: #fff; --tile-bg: var(--ink); background: var(--ink); min-height: 460px; }
.tile--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.tile--photo:hover > img { transform: scale(1.06); }
.tile--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,42,66,0) 30%, rgba(11,42,66,.88)); }
.tile--photo .tile__body { display: flex; flex-direction: column; gap: 6px; }
.tile--photo .tile__price { background: var(--yolk); color: var(--ink); }
.tile--photo .tile__ico { color: var(--blue); background: #fff; }

/* Подбор врача */
.finder { background: #fff; overflow: hidden; }
.finder::before { content: ""; position: absolute; right: -200px; top: 10%; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, var(--ice), transparent 70%); pointer-events: none; }
.finder__head { max-width: 760px; margin-bottom: 40px; }
.finder__head .h2 { margin-bottom: 16px; }
.finder__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: start; position: relative; }
.finder__panel { background: var(--mist); border-radius: var(--radius-l); padding: 26px; border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 20px); }
.finder__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sym {
  border: 1px solid var(--line); background: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: var(--step--1);
  display: inline-flex; align-items: center; gap: 8px; transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--spring);
}
.sym::before { content: "+"; font-weight: 800; color: var(--blue); transition: transform .3s var(--ease); width: .8em; text-align: center; }
.sym:hover { border-color: var(--blue); transform: translateY(-2px); }
.sym[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sym[aria-pressed="true"]::before { content: "✓"; color: var(--yolk); }
.finder__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.finder__count { margin: 0; color: var(--muted); font-size: var(--step--1); }
.finder__reset { border: 0; background: none; color: var(--blue-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.docboard { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.doc {
  position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 4px 16px; align-items: center; padding: 18px;
  border-radius: var(--radius-m); border: 1px solid var(--line); background: #fff; text-align: left; overflow: hidden;
  transition: opacity .35s, transform .45s var(--spring), border-color .3s, box-shadow .3s, background-color .3s;
}
.doc__ico { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 16px; background: var(--ice); color: var(--blue); display: grid; place-items: center; transition: .35s var(--ease); }
.doc__ico .ico { width: 26px; height: 26px; }
.doc__name { font-weight: 800; font-size: var(--step-0); line-height: 1.25; }
.doc__note { grid-column: 2; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.doc:hover { border-color: var(--blue); box-shadow: var(--shadow-soft); }
.docboard.has-filter .doc { opacity: .35; transform: scale(.97); }
.docboard.has-filter .doc.is-match { opacity: 1; transform: none; border-color: var(--blue); box-shadow: 0 20px 40px -24px rgba(0,142,204,.6); background: linear-gradient(135deg, #fff, var(--ice)); }
.doc.is-match .doc__ico { background: var(--blue); color: #fff; }
.docboard.has-filter .doc.is-match { padding-top: 40px; }
.doc.is-match::after { content: attr(data-score); position: absolute; top: 12px; left: 86px; background: var(--yolk); color: var(--ink); font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.doc.is-top { animation: pulseCard 1.2s var(--ease); }
@keyframes pulseCard { 30% { transform: scale(1.04); } }
.finder__result {
  margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--ink); color: #fff; border-radius: var(--radius-l); padding: 26px 30px; animation: fadeUp .5s var(--ease);
}
.finder__result[hidden] { display: none; }
.finder__result-title { margin: 0 0 4px; font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); }
.finder__result-text { margin: 0; color: #b9d0de; max-width: 70ch; }

/* Первый год */
.year { background: linear-gradient(180deg, var(--mist), var(--ice)); overflow: hidden; }
.year__intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: 40px; }
.year__intro .h2 { margin-bottom: 16px; }
.age-calc { background: #fff; border-radius: var(--radius-m); padding: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.age-calc label { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 10px; }
.age-calc label .ico { color: var(--blue); }
.age-calc__row { display: flex; gap: 10px; }
.age-calc input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--mist); }
.age-calc input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,142,204,.15); }
.age-calc__out { margin: 12px 0 0; color: var(--muted); font-size: var(--step--1); min-height: 1.4em; }
.age-calc__out strong { color: var(--ink); }

.plan-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 28px; }
.plan-switch button { position: relative; z-index: 1; border: 0; background: none; padding: 10px 26px; border-radius: 999px; display: grid; text-align: center; line-height: 1.2; font-weight: 700; color: var(--muted); transition: color .25s; }
.plan-switch button small { font-weight: 500; font-size: .78rem; }
.plan-switch button[aria-selected="true"] { color: #fff; }
.plan-switch__pill { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 999px; background: var(--ink); transition: transform .45s var(--spring); }
.plan-switch[data-active="lux"] .plan-switch__pill { transform: translateX(100%); background: var(--blue); }

.timeline { position: relative; background: #fff; border-radius: var(--radius-l); padding: clamp(20px, 3vw, 40px); box-shadow: var(--shadow-lift); margin-bottom: 48px; }
.timeline__track { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-bottom: 32px; padding-top: 22px; }
.timeline__track::before { content: ""; position: absolute; left: 4%; right: 4%; top: 44px; height: 4px; border-radius: 4px; background: var(--ice); }
.timeline__progress { position: absolute; left: 4%; top: 44px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--blue-soft), var(--blue)); transition: width .55s var(--ease); }
.month { position: relative; z-index: 1; border: 0; background: none; display: grid; justify-items: center; gap: 8px; padding: 0; color: var(--muted); font-size: .78rem; font-weight: 600; }
.month__dot {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line);
  font-family: var(--font-display); font-weight: 800; font-size: .95rem; color: var(--ink); transition: .35s var(--spring);
}
.month.has-exams .month__dot { border-color: var(--blue); border-style: dashed; }
.month.is-past .month__dot { background: var(--ice); border-color: var(--blue); border-style: solid; }
.month[aria-selected="true"] .month__dot { background: var(--blue); border-color: var(--blue); color: #fff; transform: scale(1.18); box-shadow: 0 0 0 6px rgba(0,142,204,.15); }
.month[aria-selected="true"] { color: var(--ink); }
.month:hover .month__dot { border-color: var(--blue); transform: translateY(-3px); }
.month[aria-selected="true"]:hover .month__dot { transform: scale(1.18); }
.month__now { position: absolute; top: -24px; font-size: .7rem; background: var(--yolk); color: var(--ink); padding: 2px 8px; border-radius: 999px; white-space: nowrap; font-weight: 800; animation: bob 2.4s ease-in-out infinite; }

.timeline__panel { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 32px; align-items: start; min-height: 200px; }
.panel__month { position: relative; font-family: var(--font-display); font-weight: 800; font-size: clamp(3.4rem, 7vw, 5.4rem); line-height: .9; color: var(--blue); letter-spacing: -0.05em; }
.panel__month small { display: block; font-size: 1rem; color: var(--muted); letter-spacing: 0; margin-top: 10px; font-weight: 500; }
.panel__bar { margin-top: 16px; height: 8px; border-radius: 8px; background: var(--ice); overflow: hidden; width: 160px; }
.panel__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--yolk), var(--blue)); border-radius: 8px; transition: width .6s var(--ease); }
.panel__block h3 { font-size: var(--step--1); color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.panel__visit { font-size: var(--step-1); font-weight: 700; margin-bottom: 14px; display: flex; gap: 10px; }
.panel__visit .ico { color: var(--blue); margin-top: 3px; }
.panel__tip { color: var(--muted); margin: 0; padding: 14px 16px; background: var(--mist); border-radius: var(--radius-s); border-left: 3px solid var(--yolk); }
.panel__empty { color: var(--muted); margin: 0; }
.panel-in > * { animation: fadeUp .45s var(--ease) both; }
.panel-in > *:nth-child(2) { animation-delay: .06s; }
.panel-in > *:nth-child(3) { animation-delay: .12s; }
.timeline__nav { position: absolute; right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 40px); display: flex; gap: 8px; }
.timeline__nav [data-month-prev] .ico { transform: rotate(90deg); }
.timeline__nav [data-month-next] .ico { transform: rotate(-90deg); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(24px, 3vw, 40px); display: grid; gap: 24px; align-content: start; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.plan .btn { justify-self: start; }
.plan--lux { background: radial-gradient(120% 120% at 100% 0, var(--ink-2), var(--ink) 60%); color: #fff; border-color: var(--ink); }
.plan--lux::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(92, 192, 236, .18), transparent 60%); }
.plan--lux .checks li::before { background-color: rgba(255,255,255,.12); }
.plan--lux .plan__price small { color: #a9c3d4; }
.plan__tag { position: absolute; top: 20px; right: 20px; display: inline-flex; align-items: center; gap: 6px; background: var(--yolk); color: var(--ink); font-weight: 800; font-size: .78rem; padding: 5px 12px; border-radius: 999px; }
.plan--lux .plan__head { padding-top: 24px; }
.plan__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.plan__price { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); }
.plan__price small { font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--muted); display: block; text-align: right; }

/* Как приезжает врач */
.visit__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.visit__copy .h2 { margin-bottom: 16px; }
.visit__copy .section__lead { margin-bottom: 36px; }
.visit__steps { list-style: none; position: relative; display: grid; gap: 8px; margin-bottom: 36px; counter-reset: v; }
.visit__steps::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--line); }
.visit__steps::after { content: ""; position: absolute; left: 27px; top: 28px; width: 2px; height: calc((100% - 56px) * var(--p, 0)); background: var(--blue); transition: height .2s linear; }
.vstep { position: relative; z-index: 1; display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; padding: 10px 0; counter-increment: v; }
.vstep__ico {
  position: relative; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid var(--line); color: var(--muted);
  display: grid; place-items: center; transition: .5s var(--spring);
}
.vstep__ico::after { content: counter(v); position: absolute; top: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.vstep .h4 { margin: 6px 0 4px; }
.vstep p { margin: 0; color: var(--muted); }
.vstep.is-on .vstep__ico { background: var(--blue); border-color: var(--blue); color: #fff; transform: scale(1.06); box-shadow: 0 0 0 8px rgba(0,142,204,.12); }
.visit__photo { margin: 0; position: relative; }
.visit__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-l) 999px var(--radius-l) var(--radius-l); box-shadow: var(--shadow-lift); }
.visit__chip { position: absolute; left: -24px; bottom: 36px; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 999px; padding: 12px 20px; box-shadow: var(--shadow-soft); font-weight: 700; font-size: var(--step--1); }
.visit__chip .ico { color: var(--blue); }

/* ЛОР-центр */
.lor { background: var(--blue); color: #fff; overflow: hidden; padding-block: calc(var(--section) + 40px); }
.wave-top, .wave-bottom { position: absolute; left: 0; width: 100%; height: 60px; fill: var(--mist); }
.wave-top { top: -1px; }
.wave-bottom { bottom: -1px; }
.lor::before { content: ""; position: absolute; right: -120px; top: 40px; width: 560px; height: 540px; background: url("../img/logo-white.png") center/contain no-repeat; opacity: .08; animation: float 20s ease-in-out infinite alternate; }
.lor__inner { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.lor__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: rgba(255,255,255,.16); margin-bottom: 20px; }
.lor__copy .h2 { margin-bottom: 16px; }
.lor__copy p { font-size: var(--step-1); max-width: 52ch; color: #e8f6fd; }
.lor__docs { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.lor__docs li { display: flex; align-items: center; gap: 14px; color: #d4ecf8; font-size: var(--step--1); transition: transform .3s var(--ease); }
.lor__docs li:hover { transform: translateX(6px); }
.lor__docs strong { display: block; color: #fff; font-size: var(--step-0); }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blue-deep); font-family: var(--font-display); font-weight: 800; font-size: .9rem; flex: none; }
.lor__prices { margin: 0; background: rgba(11, 42, 66, .25); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-l); padding: 32px; display: grid; gap: 20px; }
.lor__prices div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 16px; }
.lor__prices dt { color: #e8f6fd; }
.lor__prices dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); white-space: nowrap; }

/* Вакцины */
.vac-tools { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-bottom: 24px; }
.search { flex: 1 1 320px; position: relative; display: flex; align-items: center; }
.search .ico { position: absolute; left: 18px; color: var(--muted); transition: color .2s; }
.search input { width: 100%; padding: 16px 18px 16px 50px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: var(--step-0); transition: .2s; }
.search input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 5px rgba(0, 142, 204, .15); }
.search:focus-within .ico { color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: var(--step--1); transition: .25s var(--ease); }
.chip:hover { border-color: var(--blue); transform: translateY(-2px); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.vac-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.vac-table { background: #fff; border-radius: var(--radius-m); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-soft); }
.vac-row { display: grid; grid-template-columns: 1.1fr 1.4fr 110px; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); align-items: center; transition: background-color .2s; }
.vac-row:not(.vac-row--head):hover { background: var(--mist); }
[data-vac-list] .vac-row { animation: fadeUp .35s var(--ease) both; }
.vac-row--head { background: var(--ice); font-size: var(--step--1); font-weight: 700; color: var(--muted); }
.vac-row__name { font-weight: 700; }
.vac-row__from { color: var(--muted); font-size: var(--step--1); line-height: 1.45; }
.vac-row__price { font-weight: 800; text-align: right; white-space: nowrap; }
.vac-row__price.is-ask { font-weight: 600; color: var(--blue-deep); font-size: var(--step--1); }
.vac-row mark { background: #fff0c4; color: inherit; border-radius: 3px; padding: 0 1px; }
.vac-empty { padding: 24px 22px; margin: 0; color: var(--muted); }
.vac-more { width: 100%; border: 0; border-top: 1px solid var(--line); background: var(--mist); padding: 16px; font-weight: 700; color: var(--blue-deep); transition: .2s; }
.vac-more:hover { background: var(--ice); }
.vac-more[hidden] { display: none; }
.vac-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.vac-aside__photo { margin: 0 0 24px; aspect-ratio: 4 / 3; border-radius: var(--radius-m); overflow: hidden; }
.vac-aside__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.vac-aside__photo:hover img { transform: scale(1.05); }
.vac-aside .h3 { margin-bottom: 18px; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }

/* Услуги дома */
.home { background: #fff; }
.home__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.home__body .h2 { margin-bottom: 16px; }
.home__body .section__lead { margin-bottom: 32px; }
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; background: var(--ice); border-radius: 999px; margin-bottom: 20px; }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 10px 22px; border-radius: 999px; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; justify-content: center; transition: color .25s; }
.seg button .ico { width: 18px; height: 18px; }
.seg button[aria-selected="true"] { color: var(--ink); }
.seg__pill { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); background: #fff; border-radius: 999px; box-shadow: 0 4px 14px -6px rgba(11,42,66,.3); transition: transform .45s var(--spring); }
.seg[data-active="home"] .seg__pill { transform: translateX(100%); }
.prices { width: 100%; border-collapse: collapse; }
.prices th { text-align: left; font-size: var(--step--1); color: var(--muted); font-weight: 600; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.prices th:last-child, .prices td:last-child { text-align: right; }
.prices td { padding: 14px 0; border-bottom: 1px dashed var(--line); transition: color .3s; }
.prices tbody tr { animation: fadeUp .35s var(--ease) both; }
.prices td:last-child { font-weight: 800; white-space: nowrap; padding-left: 16px; }
.prices tr.is-off td { color: #9bb0bf; }
.prices tr.is-off td:last-child { font-weight: 500; font-size: var(--step--1); }
.home__photo { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.home__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-l) var(--radius-l) var(--radius-l) 999px; box-shadow: var(--shadow-lift); }
.home__photo figcaption { margin-top: 14px; color: var(--muted); font-size: var(--step--1); }

/* Справки — билеты */
.papers { background: var(--ice); }
.papers .h2 { margin-bottom: 40px; max-width: 22ch; }
.papers__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ticket {
  --t-bg: #fff; --t-ink: var(--blue-deep);
  position: relative; padding: 28px 28px 24px; border-radius: var(--radius-m); background: var(--t-bg);
  display: flex; flex-direction: column; gap: 10px; transition: transform .35s var(--ease), box-shadow .35s;
}
.ticket:hover { box-shadow: var(--shadow-lift); }
.ticket__ico { width: 48px; height: 48px; border-radius: 14px; background: var(--ice); color: var(--t-ink); display: grid; place-items: center; margin-bottom: 6px; }
.ticket p { color: var(--muted); font-size: var(--step--1); margin: 0 0 18px; }
.ticket__price {
  margin-top: auto; padding-top: 16px; border-top: 2px dashed rgba(11,42,66,.13);
  font-family: var(--font-display); font-weight: 800; color: var(--t-ink); font-size: var(--step-1);
}
.ticket--mint { --t-bg: var(--mint); --t-ink: var(--mint-ink); }
.ticket--mint .ticket__ico { background: rgba(255,255,255,.7); }
.ticket--peach { --t-bg: var(--peach); --t-ink: var(--peach-ink); }
.ticket--peach .ticket__ico { background: rgba(255,255,255,.7); }

/* Памятка */
.guide__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.guide__intro .h2 { margin-bottom: 16px; }
.alert { margin-top: 32px; display: flex; gap: 16px; padding: 24px; border-radius: var(--radius-m); background: #fff5f2; border: 1px solid #f6cdc2; }
.alert__ico { width: 56px; height: 56px; border-radius: 16px; background: #fff; display: grid; place-items: center; color: var(--danger); flex: none; animation: ring 5s 3s ease-in-out infinite; }
.alert .h4 { margin-bottom: 10px; font-size: var(--step-0); }
.alert a { color: var(--danger); font-weight: 800; }
.alert ul { padding-left: 18px; display: grid; gap: 4px; color: #5a2a20; font-size: var(--step--1); }
.accordion { display: grid; gap: 12px; }
.accordion details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); transition: border-color .3s, box-shadow .3s; }
.accordion details[open] { border-color: var(--blue); box-shadow: var(--shadow-soft); }
.accordion summary { list-style: none; cursor: pointer; padding: 18px 60px 18px 18px; position: relative; font-weight: 700; font-size: var(--step-0); line-height: 1.35; display: flex; align-items: center; gap: 14px; }
.accordion summary::-webkit-details-marker { display: none; }
.acc-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--ice); color: var(--blue); display: grid; place-items: center; flex: none; transition: .3s var(--ease); }
details[open] .acc-ico { background: var(--blue); color: #fff; }
.accordion summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2a42' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .35s var(--spring), background-color .3s;
}
.accordion details[open] summary::after { transform: rotate(135deg); background-color: var(--yolk); }
.accordion summary:hover { color: var(--blue-deep); }
.accordion__body { padding: 0 24px 22px 76px; color: var(--muted); }
.accordion__body p:last-child { margin-bottom: 0; }
details[open] .accordion__body { animation: fadeUp .35s var(--ease); }
.disclaimer { margin-top: 48px; color: var(--muted); font-size: var(--step--1); }

/* Новости */
.news { background: #fff; }
.news__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-item {
  position: relative; overflow: hidden; display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: var(--radius-m); background: var(--mist);
  text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: border-color .3s, background-color .3s, transform .35s var(--ease), box-shadow .35s;
}
.news-item:hover { color: var(--ink); border-color: var(--blue); background: #fff; transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.news-item p { color: var(--muted); margin: 0; font-size: var(--step--1); }
.news-item__tag { justify-self: start; font-size: .78rem; font-weight: 700; color: var(--blue-deep); background: var(--ice); padding: 4px 10px; border-radius: 999px; }
.news-item__more { margin-top: 10px; font-weight: 700; color: var(--blue-deep); font-size: var(--step--1); display: inline-flex; align-items: center; gap: 6px; }
.news-item__more::after { content: ""; width: 0; height: 2px; background: currentColor; transition: width .3s var(--ease); }
.news-item:hover .news-item__more::after { width: 24px; }

/* Запись */
.booking { background: var(--ink); color: #fff; overflow: hidden; }
.booking__bg { position: absolute; inset: 0; pointer-events: none; }
.blob--4 { width: 520px; height: 520px; --c: var(--blue); opacity: .35; left: -160px; top: -160px; }
.blob--5 { width: 420px; height: 420px; --c: var(--yolk); opacity: .14; right: -100px; bottom: -160px; animation-duration: 24s; }
.booking__inner { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.booking__logo { width: 88px; margin-bottom: 28px; animation: bob 6s ease-in-out infinite; }
.booking__copy .h2 { margin-bottom: 20px; }
.booking__copy p { color: #b9d0de; font-size: var(--step-1); }
.booking__copy a { color: #fff; font-weight: 700; }

.form { display: grid; gap: 16px; background: #fff; color: var(--ink); padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-l); box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 700; font-size: var(--step--1); }
.field em { font-style: normal; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--mist); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,142,204,.15); background: #fff; }
.field.is-invalid input { border-color: var(--danger); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.consent { position: relative; display: flex; gap: 12px; align-items: flex-start; font-size: var(--step--1); color: var(--muted); line-height: 1.5; cursor: pointer; padding: 14px 16px; border-radius: 14px; background: var(--mist); border: 1px solid var(--line); transition: border-color .2s, background-color .2s; }
.consent:hover { border-color: var(--blue); }
.consent input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; left: 16px; top: 15px; cursor: pointer; }
.consent__box { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; border: 2px solid #9fbfd3; background: #fff; display: grid; place-items: center; color: #fff; transition: background-color .2s, border-color .2s, transform .3s var(--spring); }
.consent__box .ico { width: 14px; height: 14px; opacity: 0; transform: scale(.4); transition: .3s var(--spring); }
.consent input:checked + .consent__box { background: var(--blue); border-color: var(--blue); transform: scale(1.06); }
.consent input:checked + .consent__box .ico { opacity: 1; transform: none; }
.consent input:focus-visible + .consent__box { outline: 3px solid var(--yolk); outline-offset: 2px; }
.consent:has(input:checked) { background: var(--ice); border-color: rgba(0,142,204,.35); }
.consent.is-invalid { border-color: var(--danger); background: #fff5f2; animation: shake .4s; }
.consent.is-invalid .consent__box { border-color: var(--danger); }
.consent a { font-weight: 600; }
.form__submit { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; }
.form__hint { margin: 0; color: var(--muted); font-size: var(--step--1); transition: opacity .3s; }
.form.is-ready .form__hint { opacity: 0; }
.form [data-submit][aria-disabled="true"] { opacity: .55; box-shadow: none; transform: none; cursor: not-allowed; }

.form__msg { margin: 0; font-weight: 600; min-height: 1.4em; }
.form__msg.is-ok { color: #13804a; }
.form__msg.is-err { color: var(--danger); }
/* повторная заявка (лимит): спокойный голубой, не красный — человек ничего не нарушил */
.form__msg.is-limit { color: var(--ink); background: var(--ice); border: 1.5px solid #b9def2; border-radius: 14px; padding: 10px 14px; font-weight: 600; }
.form__msg a { color: inherit; white-space: nowrap; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* Контакты */
.contacts__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: stretch; }
.contacts__info .h2 { margin-bottom: 28px; }
.contacts__list { margin: 0 0 28px; display: grid; gap: 18px; }
.contacts__list div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; }
.contacts__list dt { color: var(--muted); font-size: var(--step--1); padding-top: 2px; display: flex; gap: 8px; align-items: center; align-self: start; }
.contacts__list dt .ico { width: 18px; height: 18px; color: var(--blue); }
.contacts__list dd { margin: 0; font-weight: 600; }
.contacts__list a { color: var(--ink); text-decoration: none; }
.contacts__list a:hover { color: var(--blue-deep); }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contacts__map { border-radius: var(--radius-l); overflow: hidden; min-height: 440px; background: var(--ice); box-shadow: var(--shadow-lift); }
.contacts__map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }


/* ---------- Новые блоки ---------- */
.age-calc__photo { margin: -22px -22px 18px; height: 150px; overflow: hidden; border-radius: var(--radius-m) var(--radius-m) 0 0; background: var(--ice); position: relative; }
.age-calc__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.age-calc:hover .age-calc__photo img { transform: scale(1.05); }

.papers__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px 56px; align-items: center; margin-bottom: 40px; }
.papers__head .h2 { margin-bottom: 16px; max-width: 22ch; }
.papers__photo { margin: 0; aspect-ratio: 16 / 9; border-radius: var(--radius-l) var(--radius-l) var(--radius-l) 120px; overflow: hidden; box-shadow: var(--shadow-soft); background: #fff; }
.papers__photo img { width: 100%; height: 100%; object-fit: cover; }

.guide__photo { margin: 28px 0 0; max-width: 380px; aspect-ratio: 4 / 5; border-radius: 120px var(--radius-l) var(--radius-l) var(--radius-l); overflow: hidden; background: var(--ice); }
.guide__photo img { width: 100%; height: 100%; object-fit: cover; }


/* Календарь детских болезней */
.seasons { background: linear-gradient(180deg, var(--ice), var(--mist) 70%); overflow: hidden; }
.seasons__grid { display: grid; grid-template-columns: minmax(300px, 460px) 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.wheel { position: sticky; top: calc(var(--header-h) + 24px); }
.wheel__box { position: relative; width: 100%; aspect-ratio: 1; }
.wheel__svg { width: 100%; height: 100%; display: block; overflow: visible; touch-action: pan-y; }
.wsec { cursor: pointer; outline: none; }
.wsec path { stroke: #fff; stroke-width: 3; transition: fill .35s var(--ease), transform .45s var(--spring), filter .3s; transform-origin: 200px 200px; }
.wsec text { font-family: var(--font-body); font-size: 15px; font-weight: 700; fill: var(--ink); pointer-events: none; transition: fill .3s; }
.wsec[data-load="1"] path { fill: #eef7fc; }
.wsec[data-load="2"] path { fill: #d6edf8; }
.wsec[data-load="3"] path { fill: #b2dcf1; }
.wsec[data-load="4"] path { fill: #7cc5e9; }
.wsec[data-load="5"] path { fill: #45ace0; }
.wsec[data-load="5"] text, .wsec[data-load="4"] text { fill: #08324d; }
.wsec:hover path { filter: brightness(1.04) drop-shadow(0 6px 10px rgba(11,42,66,.15)); }
.wsec:focus-visible path { stroke: var(--yolk); stroke-width: 4; }
.wsec[aria-selected="true"] path { fill: var(--ink); filter: drop-shadow(0 12px 18px rgba(11,42,66,.35)); }
.wsec[aria-selected="true"] text { fill: #fff; }
.wsec__now { fill: var(--yolk); stroke: #fff; stroke-width: 3; }
.wheel__ring { fill: #fff; filter: drop-shadow(0 18px 30px rgba(11,42,66,.18)); }
.wheel__center { position: absolute; inset: 29%; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: 4px; pointer-events: none; }
.wheel__season { font-size: .78rem; font-weight: 700; color: var(--blue-deep); background: var(--ice); border-radius: 999px; padding: 3px 10px; justify-self: center; }
.wheel__month { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem); line-height: 1.1; color: var(--ink); }
.wheel__now { font-size: .8rem; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.wheel__now.is-now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yolk); }
.wheel__month.is-anim { animation: fadeUp .4s var(--ease); }
.wheel__controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 20px; }
.wheel__today { border: 0; background: none; font-weight: 700; font-size: var(--step--1); color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; padding: 8px; }
.wheel__today[hidden] { display: none; }
.wheel__legend { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 14px; font-size: .78rem; color: var(--muted); }
.wheel__legend span { margin: 0 6px; }
.wheel__legend i { width: 22px; height: 10px; border-radius: 4px; }
.wheel__legend i:nth-of-type(1) { background: #eef7fc; box-shadow: inset 0 0 0 1px var(--line); }
.wheel__legend i:nth-of-type(2) { background: #d6edf8; }
.wheel__legend i:nth-of-type(3) { background: #b2dcf1; }
.wheel__legend i:nth-of-type(4) { background: #7cc5e9; }
.wheel__legend i:nth-of-type(5) { background: #45ace0; }

.sp { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(24px, 3.5vw, 44px); box-shadow: var(--shadow-soft); min-height: 560px; }
.sp__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.sp__head .h3 { font-size: var(--step-3); }
.sp__load { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step--1); font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--ice); color: var(--blue-deep); }
.sp__load::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sp__load[data-level="hi"] { background: #fff1ec; color: #b8401c; }
.sp__load[data-level="mid"] { background: #fff6dc; color: #946200; }
.sp__load[data-level="lo"] { background: var(--mint); color: var(--mint-ink); }
.sp__intro { font-size: var(--step-1); line-height: 1.55; margin: 0 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); max-width: 62ch; }
.sp__block { margin-bottom: 26px; }
.sp__label { font-weight: 800; font-size: var(--step--1); color: var(--ink); margin: 0 0 12px; }
.sp__label span { font-weight: 500; color: var(--muted); margin-left: 8px; }
.sp__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dz { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: var(--step--1); transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--spring); animation: fadeUp .4s var(--ease) both; }
.dz:hover { border-color: var(--blue); transform: translateY(-2px); }
.dz[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.dz-card { margin-top: 14px; padding: 18px 20px; border-radius: var(--radius-m); background: var(--mist); border: 1px solid var(--line); display: grid; gap: 10px; animation: fadeUp .35s var(--ease); }
.dz-card h4 { margin: 0; font-size: var(--step-1); font-weight: 800; }
.dz-card p { margin: 0; color: #2b4659; font-size: var(--step--1); line-height: 1.6; }
.dz-card p strong { color: var(--ink); }
.dz-card__vac { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; padding: 6px 12px; border-radius: 999px; background: var(--mint); color: var(--mint-ink); font-weight: 700; font-size: .82rem; text-decoration: none; }
.dz-card__vac:hover { color: var(--mint-ink); filter: brightness(.97); }
.dz-card__vac .ico { width: 16px; height: 16px; }
.sp__tips { list-style: none; display: grid; gap: 12px; }
.sp__tips li { position: relative; padding-left: 32px; line-height: 1.55; animation: fadeUp .4s var(--ease) both; }
.sp__tips li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008ecc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center/14px no-repeat; }
.sp__cta { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }

@media (max-width: 1024px) {
  .seasons__grid { grid-template-columns: 1fr; }
  .wheel { position: static; max-width: 440px; margin-inline: auto; width: 100%; }
  .sp { min-height: 0; }
}
@media (max-width: 720px) {
  .wsec text { font-size: 17px; }
  .sp__head .h3 { font-size: var(--step-2); }
  .sp__label span { display: block; margin: 2px 0 0; }
  .sp__cta .btn { flex: 1 1 auto; }
}

/* Информация для пациентов */
.info { background: #fff; }
.info__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px 56px; align-items: center; margin-bottom: 40px; }
.info__head .h2 { margin-bottom: 16px; }
.info__photo { margin: 0; aspect-ratio: 16 / 9; border-radius: 120px var(--radius-l) var(--radius-l) var(--radius-l); overflow: hidden; background: var(--ice); box-shadow: var(--shadow-soft); }
.info__photo img { width: 100%; height: 100%; object-fit: cover; }
.info__box { display: grid; grid-template-columns: 300px 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--mist); overflow: hidden; box-shadow: var(--shadow-soft); }
.info__tabs { position: relative; display: grid; align-content: start; gap: 4px; padding: 16px; background: var(--ink); }
.info__tabs button {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: none; color: #b9d0de;
  padding: 14px 16px; border-radius: 14px; font-weight: 700; transition: color .25s;
}
.info__tabs button:hover { color: #fff; }
.info__tabs button[aria-selected="true"] { color: var(--ink); }
.info__tabs button .ico { flex: none; }
.info__tabs-pill { position: absolute; left: 16px; right: 16px; top: 0; height: 0; border-radius: 14px; background: var(--yolk); transition: transform .45s var(--spring), height .3s; }
.info__panels { padding: clamp(24px, 3.5vw, 44px); background: #fff; min-height: 380px; }
.info__panel { animation: fadeUp .4s var(--ease); }
.info__panel[hidden] { display: none; }
.info__intro { font-size: var(--step-1); font-weight: 600; margin-bottom: 20px; }
.checks--2col { grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.info__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.info__cols .h4 { margin-bottom: 16px; }
.req { margin: 0 0 28px; display: grid; gap: 0; }
.req div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.req dt { color: var(--muted); font-size: var(--step--1); }
.req dd { margin: 0; font-weight: 600; }
.info__links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.doc-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--mist); transition: border-color .25s, transform .3s var(--ease), background-color .25s; }
.doc-link .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #fff; color: var(--blue); flex: none; }
.doc-link span { display: grid; font-size: var(--step--1); color: var(--muted); line-height: 1.35; }
.doc-link strong { color: var(--ink); font-size: var(--step-0); }
.doc-link:hover { border-color: var(--blue); background: #fff; transform: translateY(-2px); color: var(--ink); }
.tax { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
.tax__num { display: grid; gap: 6px; padding: 24px; border-radius: var(--radius-m); background: var(--mint); color: #0d4a35; font-size: var(--step--1); font-weight: 600; text-align: center; }
.tax__num span { font-family: var(--font-display); font-weight: 900; font-size: 3.4rem; line-height: 1; color: var(--mint-ink); }
.tax .h4 { margin-bottom: 10px; }
.tax p { color: var(--muted); }
.head-card { display: flex; gap: 24px; align-items: flex-start; }
.head-card__ico { flex: none; width: 72px; height: 72px; border-radius: 22px; background: var(--ice); color: var(--blue); display: grid; place-items: center; }
.head-card .h3 { margin-bottom: 4px; }
.head-card__name { font-weight: 700; color: var(--ink) !important; margin-bottom: 12px; }
.req dd small { display: inline; color: var(--muted); font-weight: 500; font-size: .85em; }
.req dd br + small { display: block; margin-top: 2px; }
.head-card__time { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); color: var(--blue-deep); background: #fff3d6; border-radius: 12px; padding: 4px 14px; margin-bottom: 14px; }
.head-card p { color: var(--muted); max-width: 62ch; }
.orgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.org { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius-m); background: var(--mist); border: 1px solid var(--line); font-size: var(--step--1); }
.org .h5 { line-height: 1.35; margin-bottom: 6px; }
.org p { margin: 0; color: var(--muted); }
.org p a { color: var(--ink); font-weight: 700; text-decoration: none; }
.org__link { margin-top: auto; padding-top: 10px; font-weight: 700; word-break: break-all; }

/* Филиалы */
.branches { margin: 0 0 28px; padding: 20px 22px; border-radius: var(--radius-m); background: #fff; border: 1px solid var(--line); }
.branches .h4 { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.branches .h4::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--yolk); box-shadow: 0 0 0 4px #fff3d6; }
.branches__list { list-style: none; display: grid; gap: 10px; }
.branches__list li { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; font-size: var(--step--1); padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.branches__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.branches__list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.branches__list a:hover { color: var(--blue-deep); }

/* ---------- 5. Подвал и служебное ---------- */
.warning-band { background: var(--ink-2); color: #cfe2ee; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(.78rem, .7rem + .5vw, 1.05rem); letter-spacing: .04em; padding-block: 18px; line-height: 1.4; }

.footer { position: relative; overflow: hidden; background: #071d2e; color: #9fb7c7; font-size: var(--step--1); padding-top: 96px; isolation: isolate; }
.footer__wave { position: absolute; top: -1px; left: 0; width: 100%; height: 48px; fill: var(--ink-2); }
.footer__swans { position: absolute; z-index: -1; right: -80px; bottom: -60px; width: 420px; opacity: .04; pointer-events: none; }
.footer a { color: #cfe2ee; text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer small { color: #7f9aad; font-size: .85em; }

.footer__cta {
  display: grid; grid-template-columns: 1fr auto auto; gap: 24px 40px; align-items: center;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px); border-radius: var(--radius-l);
  background: linear-gradient(120deg, var(--blue-deep), var(--blue) 60%, #31b2e8); color: #fff; margin-bottom: 64px;
  box-shadow: 0 30px 60px -30px rgba(0, 142, 204, .7); position: relative; overflow: hidden;
}
.footer__cta-title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); margin: 0 0 6px; color: #fff; }
.footer__cta-text p:last-child { margin: 0; color: #e3f4fc; font-size: var(--step-0); }
.footer .footer__cta-phone { display: grid; gap: 8px; color: #fff; text-decoration: none; white-space: nowrap; }
.footer__cta-label { font-size: .82rem; font-weight: 600; color: #d6eefa; line-height: 1.2; }
.footer__cta-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.1rem); line-height: 1; letter-spacing: -0.01em; }
.footer .footer__cta-phone:hover .footer__cta-num { color: var(--yolk); }
.footer__cta .btn { position: relative; z-index: 1; }

.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; gap: 40px 32px; padding-bottom: 48px; }
.footer__logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer__logo img { width: 52px; }
.footer__logo span { display: grid; line-height: 1.15; color: #9fb7c7; }
.footer__logo strong { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 1.1rem; }
.footer__about { max-width: 34ch; margin-bottom: 20px; line-height: 1.6; }
.footer__h { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: var(--step-0); margin-bottom: 18px; }
.footer__nav { display: grid; gap: 11px; align-content: start; }
.footer__nav a { position: relative; justify-self: start; transition: color .2s, transform .25s var(--ease); }
.footer__nav a:hover { transform: translateX(4px); }
.footer__nav a::before { content: ""; position: absolute; left: -12px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--yolk); opacity: 0; transition: opacity .2s; }
.footer__nav a:hover::before { opacity: 1; }
.footer__contacts { display: grid; gap: 14px; align-content: start; }
.footer__line { display: flex; gap: 12px; margin: 0; line-height: 1.5; }
.footer__line .ico { color: var(--blue-soft); margin-top: 2px; width: 18px; height: 18px; }
.footer__social { display: flex; gap: 8px; }
.footer__social a { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); transition: .3s var(--spring); }
.footer__social a:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-3px); }

.footer__legal { border-top: 1px solid rgba(255,255,255,.1); padding-block: 24px; display: grid; gap: 8px; font-size: .8rem; color: #7f9aad; line-height: 1.6; }
.footer__legal p { margin: 0; max-width: 120ch; }
.footer__legal a { color: #a9c3d4; text-decoration: underline; text-decoration-color: rgba(169,195,212,.4); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px 28px; }
.footer__bottom p { margin: 0; }
.footer__bottom-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__copy { display: flex; flex-direction: column; gap: 6px; }
.footer .footer__dev { font-size: .82rem; color: #8fa9bb; text-decoration: none; width: fit-content; transition: color .2s; }
.footer .footer__dev:hover, .footer .footer__dev:focus-visible { color: var(--yolk, #ffc94d); text-decoration: underline; text-underline-offset: 3px; }
.footer .linklike { color: #cfe2ee; }
.footer .linklike:hover { color: #fff; }

.linklike { border: 0; background: none; padding: 0; font: inherit; color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.todo { background: rgba(255, 201, 77, .22); color: inherit; border-radius: 4px; padding: 0 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; outline: 1px dashed rgba(242,176,30,.8); }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: var(--ink);
  display: grid; place-items: center; box-shadow: var(--shadow-soft); opacity: 0; visibility: hidden; transform: translateY(16px); transition: .35s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ink); color: #fff; }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; }

.fab-call { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--yolk); color: var(--ink); place-items: center; box-shadow: 0 12px 30px -8px rgba(11,42,66,.5); }
.fab-call::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--yolk); animation: ping 2.2s var(--ease) infinite; z-index: -1; }
.fab-call .ico { width: 26px; height: 26px; }

.modal { width: min(560px, calc(100% - 32px)); border: 0; border-radius: var(--radius-l); padding: clamp(24px, 4vw, 40px); color: var(--ink); background: #fff; box-shadow: 0 40px 80px -30px rgba(11,42,66,.6); }
.modal::backdrop { background: rgba(7, 29, 46, .55); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .4s var(--spring); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.95); } }
.modal__logo { width: 48px; margin-bottom: 14px; }
.modal .h3 { margin-bottom: 8px; padding-right: 40px; }
.modal__lead { color: var(--muted); }
.modal__close { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ice); display: grid; place-items: center; transition: .3s var(--spring); }
.modal__close:hover { transform: rotate(90deg); background: var(--yolk); }
.modal .form { padding: 0; box-shadow: none; }

.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 70; width: min(460px, calc(100% - 40px)); display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px; box-shadow: 0 30px 60px -24px rgba(11,42,66,.45);
  font-size: var(--step--1); animation: cookieIn .6s var(--spring);
}
@keyframes cookieIn { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.cookie[hidden] { display: none; }
.cookie__ico { flex: none; width: 48px; height: 48px; border-radius: 16px; background: #fff3d6; color: #a86b00; display: grid; place-items: center; }
.cookie__ico .ico { width: 26px; height: 26px; animation: bob 3s ease-in-out infinite; }
.cookie__title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-0); margin-bottom: 6px; }
.cookie__text { margin: 0 0 14px; color: var(--muted); line-height: 1.5; }
.cookie__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cookie__actions .linklike { font-weight: 700; font-size: var(--step--1); }
.cookie-modal { width: min(600px, calc(100% - 32px)); }
.cookie-opts { list-style: none; display: grid; gap: 12px; margin: 22px 0 26px; }
.cookie-opt { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 18px; border-radius: var(--radius-s); background: var(--mist); border: 1px solid var(--line); }
.cookie-opt .h5 { margin-bottom: 4px; }
.cookie-opt p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.cookie-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.switch { position: relative; flex: none; width: 52px; height: 30px; cursor: pointer; margin-top: 2px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch__track { position: absolute; inset: 0; border-radius: 999px; background: #c5d7e3; transition: background-color .25s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(11,42,66,.25); transition: transform .35s var(--spring); }
.switch input:checked + .switch__track { background: var(--blue); }
.switch input:checked + .switch__track::after { transform: translateX(22px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--yolk); outline-offset: 2px; }
.switch.is-locked { cursor: not-allowed; opacity: .7; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: var(--step--1); box-shadow: var(--shadow-lift); animation: fadeUp .4s var(--ease); }
.toast[hidden] { display: none; }


/* ---------- 6. Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .tile.reveal.is-in { transition: opacity .8s var(--ease), transform .35s var(--ease), box-shadow .35s; transition-delay: var(--d, 0s), 0s, 0s; }

/* ---------- 7. Адаптив ---------- */
@media (max-width: 1700px) {
  .header__phone-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header__phone-ico { width: 44px; height: 44px; }
}
@media (max-width: 1440px) {
  .header__inner { gap: 16px; }
  .nav__link { padding-inline: 10px; }
}
@media (max-width: 1320px) {
  .nav__link { padding: 10px 9px; font-size: .92rem; }
  .nav__link::after { left: 9px; right: 9px; }
}

@media (max-width: 1220px) {
  :root { --header-h: 72px; }
  .burger { display: block; }
  .header__actions { margin-left: auto; }
  /* Мобильное меню. Скрипт переносит .nav из шапки прямо в <body>, поэтому оно не зависит
     от «липкой» шапки и её слоя: всегда поверх страницы, кнопок и баннеров. */
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000; width: 100%; max-width: 100vw; margin: 0;
    background: var(--mist); padding: 0 var(--gutter) calc(96px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s var(--ease), visibility 0s linear .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .2s var(--ease), visibility 0s; }
  .nav__head {
    position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    height: var(--header-h); margin: 0 calc(var(--gutter) * -1) 8px; padding: 0 var(--gutter);
    background: var(--mist); border-bottom: 1px solid var(--line);
  }
  .nav__head .brand { min-width: 0; flex: 0 1 auto; }
  .nav__close { position: relative; flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--ice); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .nav__close span { position: absolute; left: 12px; right: 12px; top: 21px; height: 2px; border-radius: 2px; background: var(--ink); }
  .nav__close span:nth-child(1) { transform: rotate(45deg); }
  .nav__close span:nth-child(2) { transform: rotate(-45deg); }
  .nav__close:active { background: var(--blue-soft); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; padding: 18px 4px; font-size: 1.1rem; border-radius: 0; white-space: normal; text-align: left; }
  .nav__link::after { display: none; }
  .nav__drop { position: static; min-width: 0; box-shadow: none; border: 0; padding: 0 0 12px 8px; background: none; display: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nav__item--drop:hover .nav__drop, .nav__item--drop:focus-within .nav__drop { display: none; }
  .nav__item--drop.is-open .nav__drop { display: block; }
  .nav__item--drop:hover .ico--sm { transform: none; }
  .nav__item--drop.is-open .ico--sm { transform: rotate(180deg); }
  .nav__drop a { padding: 12px 14px; }
  .nav__drop a:hover { padding-left: 14px; }
  .nav__phone-mobile { display: inline-block; margin-top: 28px; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--ink); text-decoration: none; }
  body.menu-open { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
  /* пока меню открыто — ничего плавающего поверх него */
  body.menu-open .to-top, body.menu-open .fab-call, body.menu-open .cookie, body.menu-open .scroll-progress, body.menu-open .toast { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
}

@media (max-width: 1024px) {
  .info__box { grid-template-columns: 1fr; }
  .info__tabs { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .info__tabs::-webkit-scrollbar { display: none; }
  .info__tabs button { flex: none; white-space: nowrap; }
  .info__tabs button[aria-selected="true"] { background: var(--yolk); }
  .info__tabs-pill { display: none; }
  .info__head, .papers__head { grid-template-columns: 1fr; }
  .orgs { grid-template-columns: 1fr 1fr; }
  .footer__cta { grid-template-columns: 1fr auto; }
  .footer__cta-text { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .topbar__address { display: none !important; }
  .topbar__inner { justify-content: space-between; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; width: min(78%, 400px); margin-top: 24px; }
  .hero__scroll { display: none; }
  .section__head--split, .year__intro, .lor__inner, .vac-layout, .home__grid, .guide__grid, .booking__inner, .contacts__grid, .finder__grid, .visit__grid { grid-template-columns: 1fr; }
  .finder__panel, .vac-aside, .home__photo { position: static; }
  .home__photo, .visit__photo { max-width: 480px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--photo { min-height: 380px; }
  .timeline__panel { grid-template-columns: 1fr 1fr; }
  .panel__month { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
  .panel__month small { margin: 0; }
  .panel__bar { display: none; }
  .papers__list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .checks--2col, .info__cols, .info__links, .orgs, .tax { grid-template-columns: 1fr; }
  .req div { grid-template-columns: 1fr; gap: 2px; }
  .head-card { flex-direction: column; }
  .info__panels { min-height: 0; }
  .footer { padding-top: 72px; }
  .footer__cta { grid-template-columns: 1fr; text-align: left; margin-bottom: 48px; }
  .footer__cta .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__contacts { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; padding-bottom: 96px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 16px; }
  .cookie__ico { display: none; }
  .form__submit .btn { width: 100%; }
  .topbar__status { font-size: .78rem; }
  .brand__logo { width: 44px; }
  .brand__name { font-size: 1rem; }
  .header__actions .btn { display: none; }
  .hero__today { display: flex; flex-wrap: nowrap; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; border-radius: 999px; gap: 8px; }
  .hero__today-label { flex: none; white-space: nowrap; }
  .hero__today .ticker { display: none; }
  .ticker-marquee {
    display: block; position: relative; height: 1.5em; flex: 1 1 0; width: 0; min-width: 0; max-width: 100%; overflow: hidden; font-weight: 700; color: var(--blue-deep); line-height: 1.5;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 18px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 18px), transparent 100%);
  }
  .ticker-marquee__track { position: absolute; left: 0; top: 0; display: flex; width: max-content; animation: tickerRun var(--run, 30s) linear infinite; will-change: transform; }
  .ticker-marquee__track span { flex: none; white-space: nowrap; padding-right: 22px; position: relative; }
  .ticker-marquee__track span::after { content: ""; position: absolute; right: 8px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--blue); opacity: .6; }
  .hero__cta .btn { width: 100%; }
  .hero__visual { width: 74%; }
  .note--temp { right: -14%; }
  .note--call { left: -12%; right: -12%; bottom: -24px; max-width: none; }
  .bubble { left: -14%; width: 36%; }
  .badge-round { width: 96px; height: 96px; right: -14%; bottom: 26%; }
  .badge-round__text text { font-size: 10px; }
  .badge-round img { width: 34px; }
  .marquee { padding-block: 14px; }
  .stat { padding: 0 14px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile, .tile--big, .tile--wide { grid-column: auto; grid-row: auto; min-height: 220px; }
  .tile--photo { min-height: 360px; }
  .docboard { grid-template-columns: 1fr; }
  .plan-switch { display: grid; width: 100%; }
  .plan-switch button { padding: 10px 8px; }
  .timeline__track { display: flex; overflow-x: auto; gap: 14px; padding: 30px 4px 10px; scroll-snap-type: x mandatory; margin-inline: -4px; scrollbar-width: none; }
  .timeline__track::-webkit-scrollbar { display: none; }
  .timeline__track::before, .timeline__progress { display: none; }
  .month { scroll-snap-align: center; flex: none; }
  .timeline__panel { grid-template-columns: 1fr; gap: 20px; padding-bottom: 64px; }
  .plans { grid-template-columns: 1fr; }
  .plan__price small { text-align: left; }
  .visit__chip { left: 12px; right: 12px; bottom: 16px; justify-content: center; }
  .vac-row { grid-template-columns: 1fr auto; padding: 14px 16px; gap: 4px 12px; }
  .vac-row--head { display: none; }
  .vac-row__from { grid-column: 1; grid-row: 2; }
  .vac-row__price { grid-row: 1 / 3; grid-column: 2; }
  .papers__list { grid-template-columns: 1fr; }
  .news__list { grid-template-columns: 1fr; }
  .accordion__body { padding: 0 18px 20px 18px; }
  .form__row { grid-template-columns: 1fr; }
  .contacts__list div { grid-template-columns: 1fr; gap: 2px; }
  .fab-call { display: grid; }
  .to-top { right: 16px; bottom: 88px; width: 46px; height: 46px; }
  .lor__prices { padding: 24px; }
}

@media (hover: none) {
  .tile { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-marquee__track { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__swanline path { stroke-dashoffset: 0; }
  .js .hero__title .line > span, .js .hero__lead, .js .hero__cta, .js .hero__today, .js .hero__visual { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

@media print {
  .topbar, .header, .fab-call, .to-top, .cookie, .booking, .contacts__map, .hero__visual, .marquee, .scroll-progress { display: none !important; }
  body { background: #fff; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Узкие экраны: защита от переполнения ---------- */
.year__intro > *, .two-col > *, .contacts__grid > *, .vac-layout > *, .home__grid > *, .guide__grid > *,
.booking__inner > *, .seasons__grid > *, .finder__grid > *, .visit__grid > *, .lor__inner > *, .info__head > *,
.papers__head > *, .page-hero__inner > *, .section__head--split > * { min-width: 0; }
h1, h2, h3, .h2, .h3 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
  .age-calc__row { flex-wrap: wrap; }
  .age-calc__row input { flex: 1 1 180px; }
  .age-calc__row .btn { flex: 1 1 auto; }
}
@media (max-width: 380px) {
  .header__inner { gap: 10px; }
  .header__actions { gap: 8px; }
  .brand { gap: 8px; }
  .brand__logo { width: 38px; }
  .brand__name { font-size: .92rem; }
  .brand__sub { font-size: .72rem; }
  .header__phone-ico { width: 40px; height: 40px; }
  .burger { width: 40px; height: 40px; }
  .burger span { left: 10px; right: 10px; }
  .burger span:nth-child(1) { top: 13px; } .burger span:nth-child(2) { top: 19px; } .burger span:nth-child(3) { top: 25px; }
  .burger[aria-expanded="true"] span:nth-child(1), .burger[aria-expanded="true"] span:nth-child(3) { top: 19px; }
  .container { padding-inline: 14px; }
}
.info__box > *, .accordion, .accordion details, .info__panel, .req div > * { min-width: 0; }
.req dd, .accordion summary, .org__link, .doc-link span { overflow-wrap: anywhere; }
.field.is-invalid textarea, .field.is-invalid select { border-color: var(--danger); animation: shake .4s; }

/* ==========================================================
   Узкие экраны: ничего не выходит за край
   ========================================================== */
/* Элементы сеток и флекс-строк по умолчанию не сжимаются уже своего содержимого
   (min-width: auto) — одна длинная строка растягивала всю колонку за экран.
   На планшетах и телефонах снимаем это ограничение (кнопки не трогаем). */
@media (max-width: 1024px) {
  :where(body *:not(.btn)) { min-width: 0; }
  .hero__grid, .section__head--split, .year__intro, .lor__inner, .vac-layout, .home__grid, .guide__grid, .booking__inner,
  .contacts__grid, .finder__grid, .visit__grid, .info__box, .info__head, .papers__head, .seasons__grid { grid-template-columns: minmax(0, 1fr); }
}
.hero__grid > *, .hero__copy, .hero__today, .topbar__inner > *, .header__inner > *, .footer__grid > *, .footer__cta > *,
.bento > *, .plans > *, .docboard > *, .stats__grid > *, .timeline__panel > *, .news__list > *, .papers__list > *, .form__row > * { min-width: 0; }
img, svg, video, iframe, canvas { max-width: 100%; }
.hero__lead, .section__head p, p, li, dd, dt, td, th, a { overflow-wrap: break-word; }
.btn { max-width: 100%; }
@media (max-width: 720px) {
  .btn { white-space: normal; text-align: center; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { width: 100%; max-width: 100%; min-width: 0; }
  .hero__lead { max-width: 100%; }
  .hero__visual { max-width: 100%; }
  .topbar__inner { gap: 12px; }
  .topbar__status { flex: 1 1 auto; min-width: 0; line-height: 1.3; padding-block: 6px; }
  .topbar__social { flex: none; }
  .contacts__map, .contacts__map iframe { max-width: 100%; }
}

/* ==========================================================
   Меню, которыми управляет панель /adma (ЯрКомпани CMS)
   ========================================================== */
/* --- дополнительные меню: полоса ссылок --- */
.xmenu { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 3; }
.xmenu__in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-block: 10px; min-width: 0; }
.xmenu__title { margin: 0; font-weight: 800; font-size: var(--step--1); color: var(--muted); }
.xmenu__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; min-width: 0; }
.xmenu__list a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: var(--step--1); text-decoration: none; overflow-wrap: anywhere; transition: border-color .2s, background-color .2s, color .2s; }
.xmenu__list a:hover, .xmenu__list a[aria-current="page"] { border-color: var(--blue); background: var(--ice); color: var(--blue-deep); }
.xmenu--foot { background: transparent; border: 0; border-top: 1px solid rgba(255,255,255,.1); }
.xmenu--foot .xmenu__title { color: #9fb7c7; }
.xmenu--foot .xmenu__list a { background: transparent; border-color: rgba(255,255,255,.18); color: #cfe2ee; }
.xmenu--foot .xmenu__list a:hover, .xmenu--foot .xmenu__list a[aria-current="page"] { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
@media (max-width: 720px) { .xmenu--foot .xmenu__in { padding-bottom: 88px; } }

@media (min-width: 1221px) {
  /* --- плавающая боковая панель --- */
  .xmenu--side { position: fixed; top: 50%; transform: translateY(-50%); z-index: 45; background: none; border: 0; max-width: 210px; }
  .xmenu--left { left: 12px; } .xmenu--right { right: 12px; }
  .xmenu--side .xmenu__in { flex-direction: column; align-items: stretch; padding: 12px; margin: 0; max-width: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-soft); }
  .xmenu--side .xmenu__list { flex-direction: column; gap: 4px; }
  .xmenu--side .xmenu__list a { width: 100%; border-radius: 10px; border-color: transparent; background: none; }

  /* --- главное меню слева или справа --- */
  body[data-menu="left"] { padding-left: 264px; }
  body[data-menu="right"] { padding-right: 264px; }
  body[data-menu="left"] .nav, body[data-menu="right"] .nav { position: fixed; top: 0; bottom: 0; width: 264px; margin: 0; padding: 28px 14px; background: #fff; z-index: 55; box-shadow: 0 0 40px -24px rgba(11,42,66,.5); }
  body[data-menu="left"] .nav { left: 0; border-right: 1px solid var(--line); }
  body[data-menu="right"] .nav { right: 0; border-left: 1px solid var(--line); }
  body[data-menu="left"] .nav__list, body[data-menu="right"] .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  body[data-menu="left"] .nav__link, body[data-menu="right"] .nav__link { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: 1rem; white-space: normal; text-align: left; }
  body[data-menu="left"] .nav__link::after, body[data-menu="right"] .nav__link::after { display: none; }
  body[data-menu="left"] .nav__link:hover, body[data-menu="right"] .nav__link:hover,
  body[data-menu="left"] .nav__link.is-active, body[data-menu="right"] .nav__link.is-active { background: var(--ice); }
  body[data-menu="left"] .nav__drop { top: 0; left: calc(100% + 8px); transform-origin: top left; }
  body[data-menu="right"] .nav__drop { top: 0; left: auto; right: calc(100% + 8px); transform-origin: top right; }
  body[data-menu="left"] .nav__drop::before, body[data-menu="right"] .nav__drop::before { content: ""; position: absolute; top: 0; bottom: 0; width: 12px; }
  body[data-menu="left"] .nav__drop::before { right: 100%; } body[data-menu="right"] .nav__drop::before { left: 100%; }
  body[data-menu="left"] .nav__item--drop .ico--sm, body[data-menu="left"] .nav__item--drop:hover .ico--sm { transform: rotate(-90deg); }
  body[data-menu="right"] .nav__item--drop .ico--sm, body[data-menu="right"] .nav__item--drop:hover .ico--sm { transform: rotate(90deg); }
  body[data-menu="left"] .header__actions, body[data-menu="right"] .header__actions, body[data-menu="bottom"] .header__actions { margin-left: auto; }
  body[data-menu="left"] .cookie { left: 284px; }
  body[data-menu="left"] .xmenu--left { left: 276px; }
  body[data-menu="right"] .xmenu--right { right: 276px; }
  body[data-menu="right"] .to-top { right: 288px; }

  /* --- главное меню внизу, закреплённой полосой --- */
  body[data-menu="bottom"] { padding-bottom: 64px; }
  body[data-menu="bottom"] .nav { position: fixed; left: 0; right: 0; bottom: 0; height: 64px; margin: 0; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: center; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -22px rgba(11,42,66,.5); z-index: 55; }
  body[data-menu="bottom"] .nav__drop { top: auto; bottom: calc(100% + 6px); transform-origin: bottom left; }
  body[data-menu="bottom"] .nav__drop::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
  body[data-menu="bottom"] .nav__item--drop .ico--sm { transform: rotate(180deg); }
  body[data-menu="bottom"] .nav__item--drop:hover .ico--sm, body[data-menu="bottom"] .nav__item--drop.is-open .ico--sm { transform: none; }
  body[data-menu="bottom"] .to-top { bottom: 88px; }
  body[data-menu="bottom"] .cookie { bottom: 84px; }
}
@media print { .xmenu { display: none !important; } }
