@import url("vendor/sobirator/browser/sait.css");
/* Орион‑С · второй сайт. Палитра и шрифты — из прототипа «Стеклянная траектория». */
:root {
  --ink: #1a2a43; --muted: #5f6d80; --line: #dce3e7; --paper: #f8faf9; --white: #fff;
  --indigo: #314b78; --deep: #192944; --sage: #ccddd2; --sage-dark: #3f6a5f; --peach: #f2d4c3; --glow: #9fd3c3;
  --body: 'Manrope', system-ui, sans-serif; --display: 'Prata', Georgia, serif;
  --radius: 22px; --shadow: 0 24px 60px -28px rgba(25, 41, 68, .35);
  --spring: cubic-bezier(.2, .9, .25, 1.15); --ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: clamp(15px, .45vw + 9px, 21px); } /* 22.10: шрифт растёт с экраном (Сергей: «на ПК всё мелкое») — 375→15px, 1920→17.6px, 2560→20.5px */
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body); overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: italic; color: var(--sage-dark); }
.eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--sage-dark); text-transform: uppercase; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 18px; }
h1 { font-size: clamp(36px, 6.2vw, 74px); }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: 23px; }
.skip { position: fixed; top: -100px; left: 16px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 90; border-radius: 10px; }
.skip:focus { top: 16px; }

/* ── шапка ─────────────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 9px; letter-spacing: .08em; font-size: 13px; font-weight: 700; min-height: 44px; }
.brand-mark { color: var(--sage-dark); font-size: 28px; line-height: 1; display: inline-block; animation: turn 14s linear infinite; }

/* ── кнопки ────────────────────────────────────────────── */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; font-weight: 700; font-size: 15px; transition: transform .35s var(--spring), box-shadow .35s, background .3s; }
.button span { transition: transform .35s var(--spring); }
.button:hover span { transform: translateX(4px); }
.button.primary { background: var(--deep); color: #fff; box-shadow: 0 14px 30px -14px rgba(25, 41, 68, .7); }
.button.primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -16px rgba(25, 41, 68, .75); }
.button.ghost { background: transparent; border: 1px solid rgba(25, 41, 68, .25); color: var(--ink); }
.button.ghost:hover { border-color: var(--deep); }
.text-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; min-height: 44px; }
.text-link span { transition: transform .3s var(--spring); }
.text-link:hover span { transform: translateY(3px); }

/* ── первый экран ──────────────────────────────────────── */
.hero { position: relative; min-height: min(760px, calc(100svh - 72px)); display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; overflow: hidden; background: radial-gradient(120% 90% at 85% 20%, #e3efe9 0%, #eef2f0 45%, var(--paper) 100%); }
.hero-copy { padding: clamp(40px, 7vw, 96px) 5.6vw; position: relative; z-index: 3; }
.hero h1 .word { display: inline-block; opacity: 0; transform: translateY(28px) rotate(1.5deg); animation: rise .9s var(--ease) forwards; }
.hero-lead { max-width: 32rem; font-size: 1.125rem; color: var(--muted); margin: 0 0 30px; opacity: 0; animation: rise .9s .55s var(--ease) forwards; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; opacity: 0; animation: rise .9s .7s var(--ease) forwards; }
.hero-visual { position: relative; height: 100%; min-height: 520px; }
.hero-image { position: absolute; inset: 0; background: center/cover no-repeat; transition: opacity .8s var(--ease), transform 1.2s var(--ease); animation: float 12s ease-in-out infinite alternate; mask-image: linear-gradient(90deg, transparent 0%, #000 22%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%); }
.hero[data-visual="trajectory"] .hero-image { background-image: url("assets/trajectory.jpg"); }
.hero[data-visual="space"] .hero-image { background-image: url("assets/group-space.jpg"); }
.hero[data-visual="paper"] .hero-image { background-image: url("assets/paper-route.jpg"); }
.orbits { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.orbits .ring { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; transform-origin: 50% 50%; transform-box: view-box; }
.orbits .ring.r1 { animation: turn 60s linear infinite; }
.orbits .ring.r2 { animation: turn 90s linear infinite reverse; stroke-dasharray: 4 10; }
.orbits .ring.r3 { animation: turn 120s linear infinite; stroke: rgba(159, 211, 195, .7); }
.orbits .satellite { transform-origin: 50% 50%; transform-box: view-box; }
.orbits .s1 { animation: turn 18s linear infinite; }
.orbits .s2 { animation: turn 27s linear infinite reverse; }
.orbits .s3 { animation: turn 41s linear infinite; }
.orbits circle.dot { fill: #fff; filter: drop-shadow(0 0 6px var(--glow)) drop-shadow(0 0 14px var(--glow)); }
.visual-switcher { position: absolute; right: 5.6vw; bottom: 26px; z-index: 4; display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 8px 14px; border-radius: 999px; font-size: 12px; color: var(--muted); }
.visual-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; background: var(--sage); box-shadow: 0 0 0 1px var(--line); padding: 0; position: relative; }
.visual-dot::before { content: ""; position: absolute; inset: -13px; }
.visual-dot[data-visual-choice="space"] { background: var(--peach); }
.visual-dot[data-visual-choice="paper"] { background: #cbd6d0; }
.visual-dot.active { box-shadow: 0 0 0 2px var(--deep); }

.intro-strip { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; padding: 28px 5.6vw; background: var(--deep); color: #fff; }
.intro-strip p { margin: 0; font-family: var(--display); font-size: clamp(20px, 2.4vw, 28px); }
.intro-strip span { color: var(--sage); }

/* ── секции ────────────────────────────────────────────── */
.section { padding: clamp(40px, 3vw, 56px) clamp(16px, 3.5vw, 90px) clamp(28px, 2vw, 40px); } /* 22.10: отступы не раздуваются на широком экране, содержимому ≥ 93 % ширины */
.section-heading { max-width: 46rem; margin-bottom: 32px; }
/* Шесть направлений — ровными рядами: 3×2 на компьютере, 2×3 на планшете, столбиком на телефоне.
   auto-fit давал 5+1: шестая карточка висела одна, справа и снизу — пустота. */
.direction-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .direction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .direction-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 22.10: на широком мониторе шесть направлений в один ряд и встречи по пять — больше карточек, а не шире поля */
@media (min-width: 1800px) { .direction-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* Карточка направления — как карточка встречи: картинка с сайта центра сверху, текст ниже.
   Цветные блоки без картинок читались как «шесть непонятных плиток» (Сергей, 03.10). */
.direction-card { position: relative; display: flex; flex-direction: column; min-height: 0; padding: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); color: var(--ink); text-align: left; text-decoration: none; font: inherit; cursor: pointer; transition: transform .4s var(--spring), box-shadow .4s; }
.direction-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.direction-card:focus-visible { outline: 3px solid var(--sage-dark); outline-offset: 3px; }
.direction-cover { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--sage); }
.direction-cover-empty { background: linear-gradient(135deg, var(--sage), var(--peach)); }
.direction-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; gap: 6px; }
.direction-card h3 { margin: 0 0 4px; font-size: 1.375rem; overflow-wrap: anywhere; hyphens: auto; line-height: 1.2; }
@media (min-width: 1800px) { .direction-card h3 { font-size: 1.1rem; overflow-wrap: anywhere; hyphens: auto; } } /* 22.10: в ряду из шести длинные заголовки переносятся, а не режутся */
.direction-text { color: var(--muted); font-size: 1rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.direction-more { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--sage-dark); }
.card-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.card-link { background: none; border: 0; padding: 0; font-weight: 700; min-height: 44px; display: inline-flex; gap: 8px; align-items: center; }
.card-link span { transition: transform .3s var(--spring); }
.card-link:hover span { transform: translateX(4px); }
.card-official { font-size: 13px; opacity: .75; min-height: 44px; display: inline-flex; align-items: center; }
.card-official:hover { opacity: 1; text-decoration: underline; }

.booking-teaser { display: grid; grid-template-columns: minmax(260px, .8fr) 1.2fr; gap: clamp(24px, 3vw, 56px); align-items: center; background: linear-gradient(135deg, #fff 0%, #eef5f1 100%); border-radius: 32px; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); }
.slot-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.booking-teaser .slot-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } /* 22.10: плашки времени заполняют колонку, а не жмутся вправо */
.slot-chip { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 12px 16px; min-height: 52px; text-align: left; transition: transform .3s var(--spring), border-color .3s, background .3s; }
.slot-chip b { display: block; font-size: 1rem; }
.slot-chip small { color: var(--muted); font-size: .8rem; }
.slot-chip:hover { transform: translateY(-2px); border-color: var(--sage-dark); }
.slot-chip.selected { background: var(--deep); color: #fff; border-color: var(--deep); }
.slot-chip.selected small { color: var(--sage); }
.muted { color: var(--muted); }

.events-grid, .article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
/* Встречи — ровными рядами, как направления: на главной их шесть, auto-fit давал 5+1 на широком экране. */
.events-grid { grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .events-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1800px) { .events-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } } /* 22.10: десять встреч в два ряда по пять на широком мониторе */
/* Карточка встречи — ссылка на её страницу: картинка с сайта центра во всю ширину, текст ниже. */
.event-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: transform .4s var(--spring), box-shadow .4s; }
.event-cover { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #e6f0eb; }
.event-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.event-more { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--sage-dark); }
.event-card:focus-visible { outline: 3px solid var(--sage-dark); outline-offset: 3px; }
.event-actions { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-card .kind { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-dark); background: #e6f0eb; border-radius: 999px; padding: 4px 10px; margin-bottom: 14px; }
.event-card h3 { font-size: 24px; line-height: 1.2; margin-bottom: 8px; }
.event-meta { color: var(--muted); font-weight: 600; margin: 0 0 10px; }
#events .event-card p:not(.event-meta) { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .45s var(--spring), box-shadow .45s; }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.article-card img { aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1s var(--ease); }
.article-card:hover img { transform: scale(1.04); }
.article-card-mark { aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 56px; color: var(--sage-dark); background: #eef3f0; }
.article-card .eyebrow, .article-card h2, .article-card p { padding: 0 22px; }
.article-card .eyebrow { padding-top: 20px; margin-bottom: 6px; }
.article-card h2 { font-size: 24px; margin-bottom: 8px; }
.article-card p { color: var(--muted); margin: 0 0 22px; }
.section-more { margin-top: 26px; }

.approach { display: grid; grid-template-columns: 0.9fr 1fr 1fr; gap: 36px; align-items: center; background: var(--deep); color: #fff; }
.approach-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 980px) { .approach { grid-template-columns: 1fr; } .approach-photo { aspect-ratio: 16 / 9; } }
.approach-quote { font-family: var(--display); font-size: clamp(26px, 3.4vw, 42px); line-height: 1.25; }
.approach .eyebrow { color: var(--sage); }
.approach .text-link { color: var(--sage); background: none; border: 0; padding: 0; }

/* ── статьи ────────────────────────────────────────────── */
.article-shell { padding: clamp(40px, 7vw, 90px) 5.6vw; }
.article { max-width: 760px; margin: 0 auto; }
.article .lead { font-size: 20px; color: var(--muted); }
.article-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin: 28px 0; }
.article-body { font-size: 18px; }
.article-body h2 { font-size: 30px; margin-top: 40px; }
.article-body blockquote { margin: 30px 0; padding: 18px 26px; border-left: 3px solid var(--sage-dark); background: #eef3f0; border-radius: 0 16px 16px 0; font-family: var(--display); font-size: 21px; }
.article-body figure { margin: 28px 0; }
.article-body figure img { border-radius: 16px; }
.article-body figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.article-cta { margin-top: 48px; padding: 28px; border-radius: var(--radius); background: var(--sage); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.article-cta p { margin: 0; font-family: var(--display); font-size: 22px; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--sage-dark); font-weight: 600; margin-bottom: 14px; }
.articles-page { max-width: 1180px; margin: 0 auto; }
.event-missing, .empty { color: var(--muted); }

/* ── подвал ────────────────────────────────────────────── */
/* Низ — две строки контактов и одна мелкая строка пометок; отступ снизу — под плавающую кнопку помощника. */
.site-footer { display: grid; gap: 0; padding: 10px 5.6vw 64px; border-top: 1px solid var(--line); background: #fff; font-size: 13.5px; line-height: 1.4; }
.site-footer .footer-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; margin: 0; color: var(--muted); }
.site-footer .footer-line b { color: var(--ink, inherit); }
.site-footer a { display: inline-flex; align-items: center; min-height: 32px; }
.footer-note { margin: 2px 0 0; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.footer-test { color: var(--sage-dark); font-weight: 600; }

/* ── помощник ──────────────────────────────────────────── */
.assistant-launcher { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 10px 20px 10px 12px; min-height: 56px; background: var(--deep); color: #fff; box-shadow: 0 18px 40px -16px rgba(25, 41, 68, .8); transition: transform .4s var(--spring), opacity .3s; }
.assistant-launcher:hover { transform: translateY(-3px); }
.assistant-launcher .orbit { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--glow); position: relative; animation: turn 6s linear infinite; }
.assistant-launcher .orbit::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #fff; top: -4px; left: 9px; box-shadow: 0 0 10px var(--glow); }
.assistant-launcher .orbit::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--glow); opacity: 0; animation: pulse 2.8s ease-out infinite; }
body.assistant-open .assistant-launcher { opacity: 0; pointer-events: none; transform: scale(.8); }
.assistant[data-assistant] { position: fixed; right: 22px; bottom: 22px; z-index: 70; width: min(420px, calc(100vw - 24px)); height: min(680px, calc(100svh - 40px)); display: flex; flex-direction: column; background: rgba(255, 255, 255, .94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 40px 90px -30px rgba(25, 41, 68, .55); transform-origin: bottom right; overflow: hidden; }
.assistant[hidden] { display: none; }
.assistant[data-assistant].opening { animation: pop .55s var(--spring); }
.assistant-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 20px; background: var(--deep); color: #fff; }
.assistant-head b { display: block; font-size: 15px; }
.assistant-head small { color: var(--sage); font-size: 12px; }
.assistant-head .mark { font-size: 26px; color: var(--glow); animation: turn 14s linear infinite; }
.assistant-close { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; }
.assistant-log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 88%; padding: 11px 15px; border-radius: 18px; font-size: 15px; line-height: 1.5; animation: msg .4s var(--ease); white-space: pre-line; }
.msg.bot { background: #eef3f0; border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.me { background: var(--deep); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg .sources { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.msg .sources a { color: var(--sage-dark); font-weight: 600; font-size: 14px; }
.msg.typing { display: inline-flex; gap: 5px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--sage-dark); animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
.chips { display: flex; flex-wrap: nowrap; gap: 6px; padding: 2px 14px 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; white-space: nowrap; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; min-height: 34px; font-size: 13px; font-weight: 600; transition: border-color .3s, transform .3s var(--spring); }
.chip:hover { border-color: var(--sage-dark); transform: translateY(-1px); }
.chip.main { background: var(--sage); border-color: var(--sage); }
.assistant-form { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); background: #fff; }
.assistant-form input { flex: 1; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; font-size: 16px; background: var(--paper); }
.assistant-form button { min-width: 48px; min-height: 48px; border-radius: 14px; border: 0; background: var(--deep); color: #fff; font-size: 18px; }
.assistant-foot { padding: 0 16px 12px; font-size: 11.5px; color: var(--muted); background: #fff; }
.booking-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; animation: msg .4s var(--ease); }
.booking-box h4 { margin: 0 0 10px; font: 700 14px var(--body); }
.booking-day { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin: 10px 0 6px; }
.booking-box .slot-strip { gap: 8px; }
.booking-box .slot-chip { padding: 8px 12px; min-height: 44px; border-radius: 12px; }
.booking-form { display: grid; gap: 10px; }
.booking-form input[type="text"] { min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font-size: 16px; }
.booking-form label.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.booking-form label.consent input { margin-top: 3px; width: 20px; height: 20px; flex: none; }
.booking-form .button { min-height: 48px; }
.booking-done { text-align: center; padding: 6px 4px; }
.booking-done .check { width: 54px; height: 54px; margin: 4px auto 10px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; font-size: 26px; animation: pop .6s var(--spring); }
.form-error { color: #9b3b2c; font-size: 13px; margin: 0; }

/* ── специалисты и отзывы ──────────────────────────────── */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 18px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--spring), box-shadow .4s; }
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.person-photo { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; background: var(--sage); }
.person-photo.avatar { display: grid; place-items: center; font: 400 44px var(--display); color: var(--deep); background: linear-gradient(135deg, var(--sage), var(--peach)); }
.person-body { padding: 14px 16px 18px; }
.person b { display: block; line-height: 1.3; font-size: 15px; }
.person small { display: block; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.people-note { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.approach-quote { margin: 0; }
.approach-quote blockquote { margin: 0; }
.approach-quote figcaption { margin-top: 14px; font: 600 14px var(--body); color: var(--sage); letter-spacing: .06em; }
.approach .license { color: #c9d6e6; font-size: 14px; }

/* ── появление при прокрутке ───────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.js-off .reveal { opacity: 1; transform: none; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes float { from { transform: scale(1.04) translateY(0); } to { transform: scale(1.08) translateY(-14px); } }
@keyframes pop { 0% { opacity: 0; transform: translateY(24px) scale(.92); } 100% { opacity: 1; transform: none; } }
@keyframes msg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes pulse { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 320px; order: -1; }
  .hero-image { mask-image: linear-gradient(180deg, #000 60%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
  .hero-copy { padding-top: 8px; }
  .visual-switcher { bottom: auto; top: 14px; right: 14px; }
  .visual-switcher > span { display: none; }
  .booking-teaser, .approach { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 15.5px; }
  .section, .hero-copy, .intro-strip, .article-shell, .site-footer { padding-left: 16px; padding-right: 16px; }
  .assistant[data-assistant] { right: 0; bottom: 0; width: 100vw; height: 100svh; border-radius: 0; border: 0; }
  .assistant-launcher { right: 14px; bottom: 14px; }
  /* На телефоне плавающая кнопка не спорит с главной кнопкой первого экрана. */
  body.cta-in-view .assistant-launcher { opacity: 0; pointer-events: none; transform: translateY(24px); }
  .hero-visual { min-height: 250px; }
  .hero-actions .button { width: 100%; }
  /* На телефоне специалисты в два столбца: восемь карточек на всю ширину — это три с половиной тысячи пикселей прокрутки. */
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .person-body { padding: 12px; }
  .person-body h3 { font-size: 15px; }
  .person-body p { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero h1 .word, .hero-lead, .hero-actions, .reveal { opacity: 1; transform: none; }
}

/* Голос помощника: динамик в шапке (вкл/выкл) и микрофон в строке ввода.
   Микрофон — внутри .assistant-form, поэтому селектор с ним: иначе он красится как «Отправить». */
.assistant-voice { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; }
.assistant-form .assistant-mic { flex: none; width: 48px; min-width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; transition: background .25s, color .25s; }
.assistant-voice svg, .assistant-form .assistant-mic svg { width: 20px; height: 20px; }
.assistant-voice .cross { display: none; }
.assistant-voice.off { color: var(--muted); }
.assistant-voice.off .wave { display: none; }
.assistant-voice.off .cross { display: inline; }
.assistant-form .assistant-mic.listening { background: var(--sage-dark); color: #fff; border-color: transparent; animation: mic-pulse 1.2s ease-in-out infinite; }
@keyframes mic-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(63, 106, 95, .35); } 50% { box-shadow: 0 0 0 8px rgba(63, 106, 95, 0); } }
@media (prefers-reduced-motion: reduce) { .assistant-form .assistant-mic.listening { animation: none; } }
.assistant-voice:focus-visible, .assistant-form .assistant-mic:focus-visible { outline: 3px solid var(--sage-dark); outline-offset: 2px; }

/* Ширина текста страниц из редактора: обычная / широкая / узкая. */
.article.layout-wide { max-width: 1040px; }
.article.layout-compact { max-width: 600px; }
/* Окно оплаты: открывается кнопкой из редактора, показывает страницу провайдера. */

/* Холст с сеткой — стили из Собиратора (vendor/sobirator/browser/sait.css). */
.article.layout-canvas { max-width: 1040px; }
}

.msg { font-size: .9375rem; }

/* ═══ Новый вид demo: «Маршруты» — акварельный Питер, три пути, Лапка (21.11.2026) ═══
   Высота первого экрана = окно − шапка (72px); всё внутри считается от --hu (сотая высоты), поэтому
   первый экран целиком в окне на 1512×860, 1440×900, 1920×1080. Анимации demo (rise, float, reveal) на месте. */
.hero.hero-routes { display: block; grid-template-columns: none; --hu: calc((100svh - 72px) / 100); height: calc(100svh - 72px); min-height: 520px; padding: 0; background: #e6ece7; }
.hero-routes .hero-image { position: absolute; inset: 0; background: #e6ece7 center/cover no-repeat; animation: float 14s ease-in-out infinite alternate; }
.hero-routes[data-visual="g"] .hero-image { background-image: url("assets/hero/hero-g.webp?v=3"); }
@media (max-width: 760px) { .hero-routes[data-visual="g"] .hero-image { background-image: url("assets/hero/hero-g-1600.webp?v=3"); } }
/* живая картинка (zhivaya.js) — полотно поверх того же фона, проявляется после первого кадра */
canvas.zhivaya { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
canvas.zhivaya.on { opacity: 1; }
.hero-routes:not([data-visual="g"]) canvas.zhivaya { display: none; }
/* «С» — средний (выбор Сергея 21.11, по эталону etalon-04) — основной вид; пока пилот 1600×800, чистовой — от Глаз */
.hero-routes[data-visual="s"] .hero-image { background-image: url("assets/hero/hero-s.webp?v=pilot1"); }
/* «Т» — триптих Глаз: лес · река и горы · Питер тремя листами; узкого кадра для телефона нет — там та же картинка полосой */
.hero-routes[data-visual="t"] .hero-image { background-image: url("assets/hero/hero-t.webp?v=3"); }
.hero-routes .hero-copy { position: absolute; z-index: 3; left: 6%; top: 4%; width: 48%; padding: 0; }
.hero-routes h1 { font-size: min(8.6 * var(--hu), 4.5vw); line-height: 1.02; margin: 0; color: #22392d; text-shadow: 0 0 22px #f6f8f5, 0 0 6px #f6f8f5; }
.hero-routes h1 em { color: #2f5a45; }
.hero-routes .hero-lead { max-width: 30em; margin: min(1.8 * var(--hu), 1.1vw) 0 0; font-size: min(2.15 * var(--hu), 1.25vw); line-height: 1.4; color: #4f4740; text-shadow: 0 0 10px #f6f8f5, 0 0 3px #f6f8f5; }
.hero-routes .hero-actions { margin-top: min(2.4 * var(--hu), 1.4vw); }
.hero-routes .hero-actions .button { min-height: calc(6.2 * var(--hu)); font-size: max(14px, min(1.8 * var(--hu), 1.05vw)); }
.hero-routes .text-link { text-shadow: 0 0 8px #f6f8f5; }
/* три пути: каждая карточка по центру своей трети картинки (лес · река и горы · город), верх 58%, низ 3.5% */
.route-cards { position: absolute; z-index: 3; left: 0; right: 0; top: 58%; bottom: 3.5%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.route-cards .route-card { justify-self: center; width: 70%; }
.route-card { position: relative; display: block; color: #22392d; filter: drop-shadow(0 10px 16px rgba(16, 41, 30, .22)); }
.route-card.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--spring); }
.route-card.reveal.visible { opacity: 1; transform: none; }
.route-paper { position: absolute; inset: calc(5 * var(--hu)) 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(.8 * var(--hu)); padding-top: calc(3.6 * var(--hu)); background: #e6ece7; clip-path: polygon(0 3%, 8% 0, 30% 2%, 55% 0, 80% 2%, 100% 0, 100% 84%, 86% 90%, 66% 97%, 46% 100%, 26% 96%, 9% 91%, 0 86%); transition: background-color .3s; }
.route-card:hover .route-paper { background-color: #fbfcfa; }
.route-title { font: 400 min(4.9 * var(--hu), 2.7vw)/1.02 var(--display); text-align: center; color: #22392d; }
.route-sub { font-size: max(14px, min(2.2 * var(--hu), 1.3vw)); color: #4f4740; }
.route-arrow { font: min(4 * var(--hu), 2.3vw)/1 Georgia, serif; color: #a8742a; transition: transform .35s var(--spring); }
.route-card:hover .route-arrow { transform: translateX(6px); }
.route-icon { position: absolute; z-index: 1; left: 50%; top: 0; transform: translateX(-50%); width: calc(10 * var(--hu)); height: calc(10 * var(--hu)); border-radius: 50%; display: grid; place-items: center; color: #fff; border: 3px solid #e6ece7; box-shadow: 0 4px 10px rgba(16, 41, 30, .3); transition: transform .4s var(--spring); }
.route-card:hover .route-icon { transform: translateX(-50%) translateY(-4px) rotate(-6deg); }
/* цвет карточки = цвет её части: лес зелёный, река синяя, город охра */
.r1 { --part: #1f4a35; } .r2 { --part: #2f4f6e; } .r3 { --part: #a8742a; }
.route-icon { background: var(--part); } .route-arrow { color: var(--part); }
.route-paper { border-top: 0; box-shadow: inset 0 calc(.7 * var(--hu)) 0 var(--part); }
.route-icon svg { width: 56%; height: 56%; }
/* Лапка справа у дороги, облачко раскрывается влево; выдра чуть покачивается */
/* Лапка стоит на стыке реки и города, между второй и третьей карточкой */
.lapka-spot { position: absolute; z-index: 4; left: 66.67%; top: 70%; transform: translateX(-50%); }
.lapka-fig { display: block; width: calc(19 * var(--hu)); height: calc(19 * var(--hu)); padding: 0; border: 0; background: none; cursor: pointer; animation: lapka-bob 4.5s ease-in-out infinite; }
.lapka-fig img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(16, 41, 30, .35)); }
@keyframes lapka-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-1.5deg); } }
.lapka-bubble { position: absolute; right: 6%; bottom: calc(100% + .4 * var(--hu)); white-space: nowrap; padding: .45em .95em .5em; background: #f6f8f5; color: #22392d; border: 1px solid #cbd6d0; border-radius: 18px; font: 400 max(15px, calc(2.6 * var(--hu)))/1.1 var(--display); box-shadow: 0 12px 26px -16px rgba(16, 41, 30, .6); opacity: 0; transform: translateY(8px) scale(.94); transform-origin: 100% 100%; pointer-events: none; transition: opacity .2s, transform .25s var(--spring); }
.lapka-bubble span { color: #a8742a; }
.lapka-bubble::after { content: ""; position: absolute; right: 40px; top: 100%; border: 9px solid transparent; border-top-color: #f6f8f5; border-bottom: 0; }
.lapka-bubble::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: calc(1.4 * var(--hu)); }
.lapka-spot:hover .lapka-bubble, .lapka-spot:focus-within .lapka-bubble, .lapka-spot.open .lapka-bubble { opacity: 1; transform: none; pointer-events: auto; }
/* переключатель вида — подписи 1а/1б/1в */
.hero-routes .visual-switcher { top: 2.2%; right: 2.4%; bottom: auto; }
.hero-routes .visual-dot { width: auto; min-width: 44px; height: 32px; border-radius: 999px; padding: 0 10px; background: rgba(255, 255, 255, .6); box-shadow: none; border: 1px solid #cbd6d0; font-size: 13px; font-weight: 700; color: #4f4740; }
.hero-routes .visual-dot.active { background: #22392d; color: #fff; border-color: #22392d; }
@media (max-width: 760px) {
  .hero.hero-routes { height: auto; min-height: 0; --hu: 8px; display: flex; flex-direction: column; background: #edf1ed; padding: 18px 0 20px; }
  .hero-routes .hero-image { position: relative; inset: auto; order: 2; aspect-ratio: 2 / 1; width: 100%; margin: 14px 0 4px; animation: none; }
  .hero-routes .hero-copy { position: relative; left: auto; top: auto; width: auto; padding: 0 16px; order: 1; }
  .hero-routes h1 { font-size: 34px; text-shadow: none; }
  .hero-routes .hero-lead { font-size: 15px; margin-top: 10px; text-shadow: none; }
  .hero-routes .hero-actions { display: none; }
  .route-cards { position: relative; inset: auto; order: 4; display: flex; flex-direction: column; gap: 10px; padding: 0 16px; height: auto; margin-top: 10px; }
  .route-card, .route-cards .route-card { height: 74px; width: auto; justify-self: auto; }
  .route-paper { box-shadow: inset 6px 0 0 var(--part); inset: 0 0 0 0; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 16px 0 78px; clip-path: polygon(0 4%, 6% 0, 40% 3%, 70% 0, 100% 2%, 100% 92%, 70% 100%, 35% 96%, 0 100%); }
  .route-title br { display: none; }
  .route-title { font-size: 22px; text-align: left; }
  .route-sub { font-size: 14px; margin-left: auto; }
  .route-arrow { font-size: 24px; }
  .route-icon { left: 30px; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; }
  .route-card:hover .route-icon { transform: translate(-50%, -50%); }
  .lapka-spot { position: relative; left: auto; right: auto; top: auto; transform: none; order: 3; height: 0; align-self: stretch; }
  .lapka-fig { position: absolute; right: 4vw; bottom: 4px; width: 84px; height: 84px; }
  .lapka-bubble { right: calc(4vw + 30px); bottom: 92px; font-size: 18px; }
  .hero-routes .visual-switcher { top: auto; bottom: auto; right: 12px; position: relative; order: 5; align-self: flex-end; margin: 10px 12px 0; }
  .hero-routes .visual-switcher > span { display: inline; }
}
body.hero-in-view .assistant-launcher { opacity: 0; pointer-events: none; transform: translateY(24px); }

/* ═══ Шаг 2 · бумага и акварель поверх demo: палитра из картинки, фактура, рваные края. Анимации demo не тронуты. ═══ */
:root {
  --ink: #3b3029; --muted: #5f574f; --pine: #22392d; --neva: #4f6878; --ochre: #a8742a; --line: #cbd6d0; --paper: #edf1ed; --white: #fbfcfa;
  --indigo: #2f4f6e; --deep: #173d35; --sage: #e2e9dd; --sage-dark: #2f5a45; --peach: #e6ece7; --glow: #b9d3c0;
  --shadow: 0 22px 46px -30px rgba(16, 41, 30, .5);
  --tex: url("assets/zerno.webp");
  --torn: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='20' viewBox='0 0 400 20'><path d='M0 0H400V11L392 14 380 9 366 13 350 10 338 15 322 11 306 13 290 9 276 14 262 10 248 13 232 9 218 14 204 11 188 15 174 10 160 13 146 9 130 14 116 11 100 15 86 10 72 13 58 9 44 14 30 11 16 14 0 10Z'/></svg>");
  --torn-mask: linear-gradient(#000 0 0) top/100% calc(100% - 18px) no-repeat, var(--torn) bottom/400px 20px repeat-x;
}
body { background: var(--paper) var(--tex); color: var(--ink); }
em { color: var(--sage-dark); }
.button.primary { background: var(--deep); box-shadow: 0 14px 30px -14px rgba(16, 41, 30, .6); }
.button.ghost { border-color: rgba(16, 41, 30, .25); }
.hero.hero-routes { -webkit-mask: var(--torn-mask); mask: var(--torn-mask); }
.intro-strip { background: var(--sage) var(--tex); color: var(--ink); -webkit-mask: var(--torn-mask); mask: var(--torn-mask); padding-bottom: 40px; }
.intro-strip p { font-family: var(--display); }
#directions { background: transparent; }
.direction-card, .event-card, .article-card, .slot-chip, .booking-box, .person, .otzyv { background: #fbfcfa var(--tex); border: 1px solid #cbd6d0; border-radius: 6px; box-shadow: 0 12px 26px -22px rgba(16, 41, 30, .55); }
.booking-teaser { background: var(--sand, #e6ece7) var(--tex); border-radius: 6px; }
.slot-chip.selected { background: var(--deep); }
.event-card .kind, .article-card-mark { background: var(--sage); }
.approach { background: var(--deep) var(--tex); }
.approach-photo { border-radius: 6px; }
.article-body blockquote { background: #e6ece7; border-left-color: #a8742a; }
.article-cta { background: var(--sage) var(--tex); border-radius: 6px; }
.site-footer { background: #cbd6d0 var(--tex); border-top: 0; }
.assistant[data-assistant] { background: #f6f8f5 var(--tex); border-radius: 14px; }
.assistant-head { background: var(--deep); }
.msg.bot { background: #e6ece7; }
.msg.me { background: var(--deep); }
.chip { background: #fbfcfa; } .chip.main { background: var(--sage); border-color: var(--sage); }
.assistant-form, .assistant-foot { background: #f6f8f5; }
.assistant-form input { background: #fbfcfa; }
.assistant-launcher { background: var(--deep); }
/* Шаг 3 · чат demo — от лица Лапки: аватар выдры в шапке чата и в плавающей кнопке (кольцо-орбита вокруг аватара сохранено) */
.assistant-head .lapka-ava { width: 46px; height: 46px; border-radius: 50%; background: #e6ece7; border: 2px solid #f6f8f5; flex: none; }
.assistant-launcher .orbit { width: 40px; height: 40px; border-color: var(--glow); display: grid; place-items: center; overflow: visible; }
.assistant-launcher .orbit img { width: 34px; height: 34px; border-radius: 50%; background: #e6ece7; animation: turn 6s linear infinite reverse; }
@media (max-width: 760px) { .hero.hero-routes { align-items: stretch; } .hero-routes .hero-image { mask-image: none; -webkit-mask-image: none; } }
/* телефон: кадр 16:9 от низа картинки срезает сверху только небо, и три карточки помещаются в первый экран */
@media (max-width: 760px) {
  .hero-routes .hero-image { aspect-ratio: 16 / 9; background-position: center bottom; }
}
@media (max-width: 760px) { .route-title { font-size: 20px; } }
/* телефон: переключатель вида и «Читать дальше» — область нажатия 44px */
@media (max-width: 760px) { .hero-routes .visual-dot { height: 44px; min-width: 48px; } }
@media (max-width: 760px) { .site-footer a { display: inline-flex; align-items: center; min-height: 44px; } .lapka-bubble { min-height: 44px; display: inline-flex; align-items: center; } }
@media (min-width: 761px) and (max-width: 1100px) { .lapka-fig { width: calc(13 * var(--hu)); height: calc(13 * var(--hu)); } }
/* Первый экран главной начинается от самого верха, шапка и плашка лежат на картинке (shapka.css).
   Раскладка внутри — та же, что под шапкой: всё отсчитывается от низа шапки (--hdr), --hu — сотая часть видимой высоты под ней. */
.hero.hero-routes { --hdr0: var(--hdr, 104px); --hu: calc((100svh - var(--hdr0)) / 100); height: 100svh; }
@media (min-width: 761px) {
  .hero-routes .hero-copy { top: calc(var(--hdr0) + 4 * var(--hu)); }
  .route-cards { top: calc(var(--hdr0) + 58 * var(--hu)); bottom: calc(3.5 * var(--hu)); }
  .lapka-spot { top: calc(var(--hdr0) + 70 * var(--hu)); }
  .hero-routes .visual-switcher { top: calc(var(--hdr0) + 2.2 * var(--hu)); }
}
@media (max-width: 760px) { .hero.hero-routes { height: auto; padding-top: calc(var(--hdr, 110px) + 8px); } }
/* ═══ Первая волна «красиво» (krasivo-plan.md, 21.11.2026): один сильный момент — живая картина, остальное тихое.
   Палитра из самой картины: акварельная бумага неба, хвоя, свинец Невы, охра Биржи; текст тёплый тёмно-коричневый. ═══ */
h1, h2, h3 { color: var(--pine); text-wrap: balance; }
p, li, blockquote, figcaption { text-wrap: pretty; }
.eyebrow, .event-card .kind, .booking-day { text-transform: none; letter-spacing: 0; font-size: .875rem; font-weight: 600; }
:focus-visible { outline: 2px solid var(--neva); outline-offset: 3px; }
/* Одно появление на все блоки: подъём 10 px, 550 мс, один раз */
.reveal, .route-card.reveal { opacity: 0; transform: translateY(10px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.visible, .route-card.reveal.visible { opacity: 1; transform: none; }
/* Заголовок первого экрана: строки поднимаются из-под маски (app.js splitHeadline), после — маска снята */
.hero h1 .line { display: block; padding-bottom: .14em; margin-bottom: -.14em; clip-path: inset(-.6em -.6em 0 -.6em); }
.hero h1 .line.done { clip-path: none; }
.hero h1 .line-in { display: block; transform: translateY(110%); animation: stroka .6s var(--ease) forwards; }
.hero h1 .line:nth-child(2) .line-in { animation-delay: .08s; } .hero h1 .line:nth-child(3) .line-in { animation-delay: .16s; }
/* Первый экран появляется один раз: въезжает только заголовок, подводка и кнопки стоят сразу. */
.hero-lead, .hero-actions { opacity: 1; animation: none; }
.okno-srazu .hero h1 .line-in { transform: none; animation: none; } .okno-srazu .hero h1 .line { clip-path: none; }
@keyframes stroka { to { transform: none; } }
/* Магнит (shapka.js): сдвиг отдельным свойством translate — не спорит с transform наведения и появления */
.magnit { translate: var(--mx, 0px) var(--my, 0px); transition: translate .35s var(--ease), opacity .55s var(--ease), transform .55s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .route-card.reveal { opacity: 1; transform: none; transition: none; }
  .hero h1 .line { clip-path: none; }
  .hero h1 .line-in { transform: none; animation: none; }
}
/* Телефон лёжа (≥761 px в ширину, ≤500 px в высоту): первый экран целиком — заголовок и подзаголовок
   слева, три пути строкой внизу (иконка и название), кнопку «Записаться» заменяют карточки и «Спросить помощника». */
@media (min-width: 761px) and (max-height: 500px) {
  .hero.hero-routes { min-height: 0; }
  .hero-routes .hero-copy { width: 50%; top: calc(var(--hdr0) + 2 * var(--hu)); }
  .hero-routes h1 { font-size: min(12 * var(--hu), 4.2vw); }
  .hero-routes .hero-lead { font-size: 13px; max-width: 28em; margin-top: 6px; }
  .hero-routes .hero-actions, .lapka-spot { display: none; }
  .route-cards { top: auto; bottom: 10px; height: 60px; }
  .route-cards .route-card { width: 88%; height: 60px; }
  .route-paper { inset: 0; flex-direction: row; justify-content: flex-start; gap: 8px; padding: 0 10px 0 58px; box-shadow: inset 0 4px 0 var(--part); }
  .route-icon { left: 30px; top: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; }
  .route-card:hover .route-icon { transform: translate(-50%, -50%); }
  .route-title { font-size: 17px; text-align: left; }
  .route-title br { display: none; }
  .route-sub, .route-arrow { display: none; }
}
/* Дымка бумаги под шапкой и за текстом первого экрана: днём её не видно на светлом небе, вечером (живая картина
   темнеет) держит читаемость меню, заголовка и подзаголовка. Над полотном картины, под текстом. */
.hero-routes::before { content: ""; position: absolute; z-index: 2; inset: 0 0 auto; height: calc(var(--hdr0) + 24px); background: linear-gradient(#f6f8f5d0, #f6f8f590 55%, #f6f8f500); pointer-events: none; }
.hero-routes .hero-copy::before { content: ""; position: absolute; z-index: -1; inset: -12% -14% -16% -18%; background: radial-gradient(closest-side, #f6f8f5c8, #f6f8f590 55%, #f6f8f500); pointer-events: none; }
@media (max-width: 760px) { .hero-routes::before, .hero-routes .hero-copy::before { display: none; } }
/* Блок «Запись на программу» (страницы из админки в прежнем шаблоне). */
.zapis-blok { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 24px 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 8px; background: #f6f8f5; }
.zapis-nazv { flex: 1 1 220px; margin: 0; font: 400 20px/1.3 'Prata', Georgia, serif; }

/* Типографика главной: заголовок первого экрана 1,1, подводка 1,5; «свободное время» — зазор колонок ≥ 64 px. */
.hero-routes h1 { line-height: 1.1; }
.hero-routes .hero-lead { line-height: 1.5; }
@media (min-width: 981px) { .booking-teaser { gap: 64px 72px; } }
/* Блок «Наш подход» (цитата Хаксли): две колонки — фото и цитата 44 px с межстрочным 1,2 и подписью;
   абзац о центре и лицензии — отдельной строкой под ними, не шире ~66 знаков. Не три плотные колонки впритык. */
.approach { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 72px; row-gap: 40px; }
.approach-quote { font-size: clamp(28px, 2.9vw, 44px); line-height: 1.2; }
.approach > div.reveal:last-child { grid-column: 1 / -1; max-width: 66ch; }
.approach > div.reveal:last-child p { line-height: 1.6; max-width: 60ch; }
@media (max-width: 980px) { .approach { grid-template-columns: 1fr; } }
/* Отзывы — листающийся ряд: 3 карточки на компьютере, одна и край следующей на телефоне; свайп и стрелки, по кругу. */
.otzyvy-lenta { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 24px) / 3); column-gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0; padding: 4px 2px 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
.otzyvy-lenta::-webkit-scrollbar { display: none; }
.otzyvy-lenta:focus-visible { outline: 3px solid #a8742a; outline-offset: 4px; }
.otzyv { scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 20px; }
.otzyv-kavychka { display: block; height: 30px; font: 400 56px/1 var(--display); color: var(--sage-dark, #2f5a45); }
.otzyv blockquote { margin: 0; font-size: 15.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.otzyv-dalshe { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; font: 600 14px var(--body); color: var(--sage-dark, #2f5a45); cursor: pointer; }
.otzyv figcaption { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.otzyv figcaption b { display: block; }
.otzyv figcaption span { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; }
.otzyvy-upr { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.otzyvy-strelka { width: 44px; height: 44px; border: 1px solid #cbd6d0; border-radius: 50%; background: #f6f8f5; color: #22392d; font: 20px/1 var(--body); cursor: pointer; }
.otzyvy-strelka:hover { border-color: #2f5a45; }
.otzyvy-strelka:focus-visible, .otzyvy-tochka:focus-visible { outline: 3px solid #a8742a; outline-offset: 3px; }
.otzyvy-tochki { display: flex; gap: 2px; }
.otzyvy-tochka { width: 28px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.otzyvy-tochka::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #cbd6d0; }
.otzyvy-tochka[aria-current="true"]::before { background: #22392d; }
@media (max-width: 760px) { .otzyvy-lenta { grid-auto-columns: 84%; column-gap: 14px; } .otzyvy-upr { gap: 8px; } .otzyvy-tochka { width: 14px; } }
@media (prefers-reduced-motion: reduce) { .otzyvy-lenta { scroll-behavior: auto; } }
/* Телефон боком: выдры на первом экране нет (компактная раскладка) — плавающая «Лапка» видна сразу, а не после прокрутки. */
@media (min-width: 761px) and (max-height: 500px) {
  body.hero-in-view .assistant-launcher, body.cta-in-view .assistant-launcher { opacity: 1; pointer-events: auto; transform: none; }
  .assistant-launcher { right: 12px; bottom: 12px; min-height: 48px; padding: 6px 14px 6px 6px; }
  /* карточки путей занимают нижние ~70 px первого экрана — пока он виден, Лапка стоит над ними (aka-gst.ru 23.11: закрывала «Для бизнеса») */
  body.hero-in-view .assistant-launcher { bottom: 84px; }
}
