@font-face {
  font-family: "hgi-stroke-rounded";
  src: url("/assets/fonts/hugeicons/hgi-stroke-rounded.woff2") format("woff2");
  font-display: swap;
}.hgi-stroke{font-family:"hgi-stroke-rounded" !important;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:relative}.hgi-stroke:after{opacity:.4;position:absolute;left:0}.hgi-stroke.hgi-absolute:before{content:"㪝"}.hgi-stroke.hgi-access:before{content:"㪟"}.hgi-stroke.hgi-activity-01:before{content:"㪤"}.hgi-stroke.hgi-add-circle:before{content:"㪬"}.hgi-stroke.hgi-ai-chat-02:before{content:"㫆"}.hgi-stroke.hgi-alert-02:before{content:"㬂"}.hgi-stroke.hgi-alpha:before{content:"㬟"}.hgi-stroke.hgi-android:before{content:"㬴"}.hgi-stroke.hgi-angle:before{content:"㬷"}.hgi-stroke.hgi-anonymous:before{content:"㬺"}.hgi-stroke.hgi-api:before{content:"㬻"}.hgi-stroke.hgi-apple:before{content:"㭄"}.hgi-stroke.hgi-arrow-left-01:before{content:"㭪"}.hgi-stroke.hgi-arrow-right-01:before{content:"㭹"}.hgi-stroke.hgi-arrow-right-02:before{content:"㭺"}.hgi-stroke.hgi-aspect-ratio:before{content:"㮛"}.hgi-stroke.hgi-at:before{content:"㮡"}.hgi-stroke.hgi-attachment:before{content:"㮫"}.hgi-stroke.hgi-attachment-01:before{content:"㮧"}.hgi-stroke.hgi-bank:before{content:"㯐"}.hgi-stroke.hgi-blur:before{content:"㱍"}.hgi-stroke.hgi-bot:before{content:"㲌"}.hgi-stroke.hgi-bridge:before{content:"㲠"}.hgi-stroke.hgi-bubble-chat:before{content:"㳅"}.hgi-stroke.hgi-calendar-03:before{content:"㳦"}.hgi-stroke.hgi-calendar-add-01:before{content:"㳨"}.hgi-stroke.hgi-call:before{content:"㴩"}.hgi-stroke.hgi-cancel-01:before{content:"㵂"}.hgi-stroke.hgi-cancel-circle:before{content:"㵅"}.hgi-stroke.hgi-canvas:before{content:"㵉"}.hgi-stroke.hgi-cells:before{content:"㵯"}.hgi-stroke.hgi-cellular-network:before{content:"㵱"}.hgi-stroke.hgi-checkmark-circle-02:before{content:"㶧"}.hgi-stroke.hgi-chip:before{content:"㶾"}.hgi-stroke.hgi-circle:before{content:"㷺"}.hgi-stroke.hgi-clip:before{content:"㸃"}.hgi-stroke.hgi-clipboard:before{content:"㸄"}.hgi-stroke.hgi-clock-01:before{content:"㸅"}.hgi-stroke.hgi-code:before{content:"㸦"}.hgi-stroke.hgi-colors:before{content:"㸵"}.hgi-stroke.hgi-computer:before{content:"㹙"}.hgi-stroke.hgi-computer-phone-sync:before{content:"㹑"}.hgi-stroke.hgi-connect:before{content:"㹣"}.hgi-stroke.hgi-console:before{content:"㹤"}.hgi-stroke.hgi-contracts:before{content:"㹭"}.hgi-stroke.hgi-cookie:before{content:"㹰"}.hgi-stroke.hgi-copy-01:before{content:"㹴"}.hgi-stroke.hgi-cos:before{content:"㹺"}.hgi-stroke.hgi-credit-card:before{content:"㺚"}.hgi-stroke.hgi-credit-card-not-accept:before{content:"㺖"}.hgi-stroke.hgi-danger:before{content:"㻗"}.hgi-stroke.hgi-database-01:before{content:"㻬"}.hgi-stroke.hgi-dead:before{content:"㻸"}.hgi-stroke.hgi-discord:before{content:"㽀"}.hgi-stroke.hgi-download-04:before{content:"㽳"}.hgi-stroke.hgi-ear:before{content:"㾣"}.hgi-stroke.hgi-ease-in-out:before{content:"㾧"}.hgi-stroke.hgi-ease-out:before{content:"㾪"}.hgi-stroke.hgi-eye:before{content:"㿦"}.hgi-stroke.hgi-file-01:before{content:"㿹"}.hgi-stroke.hgi-filter:before{content:"䀱"}.hgi-stroke.hgi-flash:before{content:"䁉"}.hgi-stroke.hgi-flow:before{content:"䁙"}.hgi-stroke.hgi-function:before{content:"䂢"}.hgi-stroke.hgi-gift:before{content:"䂵"}.hgi-stroke.hgi-git-fork:before{content:"䂹"}.hgi-stroke.hgi-global:before{content:"䃉"}.hgi-stroke.hgi-globe-02:before{content:"䃊"}.hgi-stroke.hgi-grid:before{content:"䃻"}.hgi-stroke.hgi-grid-view:before{content:"䃺"}.hgi-stroke.hgi-heading:before{content:"䄭"}.hgi-stroke.hgi-ico:before{content:"䆎"}.hgi-stroke.hgi-id:before{content:"䆒"}.hgi-stroke.hgi-image-01:before{content:"䆗"}.hgi-stroke.hgi-instagram:before{content:"䇌"}.hgi-stroke.hgi-invoice-01:before{content:"䇕"}.hgi-stroke.hgi-key-01:before{content:"䇾"}.hgi-stroke.hgi-keyboard:before{content:"䈁"}.hgi-stroke.hgi-label:before{content:"䈣"}.hgi-stroke.hgi-lamp:before{content:"䈬"}.hgi-stroke.hgi-laptop:before{content:"䈼"}.hgi-stroke.hgi-letter-spacing:before{content:"䉻"}.hgi-stroke.hgi-license:before{content:"䊃"}.hgi-stroke.hgi-line:before{content:"䊇"}.hgi-stroke.hgi-link-01:before{content:"䊉"}.hgi-stroke.hgi-link-02:before{content:"䊊"}.hgi-stroke.hgi-link-04:before{content:"䊌"}.hgi-stroke.hgi-link-square-02:before{content:"䊔"}.hgi-stroke.hgi-loading-03:before{content:"䊝"}.hgi-stroke.hgi-lock:before{content:"䋄"}.hgi-stroke.hgi-lock-password:before{content:"䋁"}.hgi-stroke.hgi-logout-01:before{content:"䋐"}.hgi-stroke.hgi-magnet:before{content:"䋭"}.hgi-stroke.hgi-mail-01:before{content:"䋮"}.hgi-stroke.hgi-mail-remove-01:before{content:"䌈"}.hgi-stroke.hgi-mask:before{content:"䌵"}.hgi-stroke.hgi-matches:before{content:"䌷"}.hgi-stroke.hgi-matrix:before{content:"䌹"}.hgi-stroke.hgi-megaphone-01:before{content:"䍕"}.hgi-stroke.hgi-meta:before{content:"䎓"}.hgi-stroke.hgi-mic-01:before{content:"䎕"}.hgi-stroke.hgi-minus-sign:before{content:"䎰"}.hgi-stroke.hgi-mirror:before{content:"䎱"}.hgi-stroke.hgi-money-receive-02:before{content:"䏐"}.hgi-stroke.hgi-more:before{content:"䐈"}.hgi-stroke.hgi-more-vertical:before{content:"䐇"}.hgi-stroke.hgi-move:before{content:"䑃"}.hgi-stroke.hgi-mute:before{content:"䑕"}.hgi-stroke.hgi-news-01:before{content:"䑬"}.hgi-stroke.hgi-next:before{content:"䑮"}.hgi-stroke.hgi-note:before{content:"䒈"}.hgi-stroke.hgi-notification-02:before{content:"䒍"}.hgi-stroke.hgi-option:before{content:"䒮"}.hgi-stroke.hgi-orange:before{content:"䒯"}.hgi-stroke.hgi-package:before{content:"䓀"}.hgi-stroke.hgi-paragraph:before{content:"䓓"}.hgi-stroke.hgi-password-validation:before{content:"䓛"}.hgi-stroke.hgi-path:before{content:"䓜"}.hgi-stroke.hgi-pause:before{content:"䓩"}.hgi-stroke.hgi-perspective:before{content:"䔌"}.hgi-stroke.hgi-pi:before{content:"䔔"}.hgi-stroke.hgi-pin:before{content:"䔣"}.hgi-stroke.hgi-pipeline:before{content:"䔥"}.hgi-stroke.hgi-plane:before{content:"䔪"}.hgi-stroke.hgi-plate:before{content:"䔯"}.hgi-stroke.hgi-play:before{content:"䔻"}.hgi-stroke.hgi-plus-sign:before{content:"䕌"}.hgi-stroke.hgi-polygon:before{content:"䕧"}.hgi-stroke.hgi-pool:before{content:"䕩"}.hgi-stroke.hgi-previous:before{content:"䖌"}.hgi-stroke.hgi-profile:before{content:"䖖"}.hgi-stroke.hgi-question:before{content:"䖷"}.hgi-stroke.hgi-quill-write-01:before{content:"䖺"}.hgi-stroke.hgi-radial:before{content:"䗏"}.hgi-stroke.hgi-radio:before{content:"䗒"}.hgi-stroke.hgi-radius:before{content:"䗔"}.hgi-stroke.hgi-react:before{content:"䗠"}.hgi-stroke.hgi-refresh:before{content:"䗬"}.hgi-stroke.hgi-register:before{content:"䗮"}.hgi-stroke.hgi-repeat:before{content:"䘁"}.hgi-stroke.hgi-ripple:before{content:"䘜"}.hgi-stroke.hgi-road:before{content:"䘤"}.hgi-stroke.hgi-rocket-01:before{content:"䘦"}.hgi-stroke.hgi-route-02:before{content:"䙉"}.hgi-stroke.hgi-router:before{content:"䙎"}.hgi-stroke.hgi-router-01:before{content:"䙌"}.hgi-stroke.hgi-ruler:before{content:"䙙"}.hgi-stroke.hgi-scroll:before{content:"䚒"}.hgi-stroke.hgi-search-01:before{content:"䚕"}.hgi-stroke.hgi-sent:before{content:"䚶"}.hgi-stroke.hgi-seo:before{content:"䚷"}.hgi-stroke.hgi-service:before{content:"䚸"}.hgi-stroke.hgi-shield-01:before{content:"䛠"}.hgi-stroke.hgi-shopping-bag-01:before{content:"䛮"}.hgi-stroke.hgi-shuffle:before{content:"䜝"}.hgi-stroke.hgi-signal:before{content:"䜯"}.hgi-stroke.hgi-signature:before{content:"䜰"}.hgi-stroke.hgi-sin:before{content:"䜵"}.hgi-stroke.hgi-skew:before{content:"䜾"}.hgi-stroke.hgi-smart-phone-01:before{content:"䝋"}.hgi-stroke.hgi-snow:before{content:"䝜"}.hgi-stroke.hgi-square-lock-02:before{content:"䟊"}.hgi-stroke.hgi-stamp:before{content:"䟝"}.hgi-stroke.hgi-star:before{content:"䟣"}.hgi-stroke.hgi-stars:before{content:"䟤"}.hgi-stroke.hgi-stop:before{content:"䟲"}.hgi-stroke.hgi-sunglasses:before{content:"䡂"}.hgi-stroke.hgi-table:before{content:"䢃"}.hgi-stroke.hgi-tags:before{content:"䢎"}.hgi-stroke.hgi-tan:before{content:"䢐"}.hgi-stroke.hgi-tap-01:before{content:"䢒"}.hgi-stroke.hgi-telegram:before{content:"䢳"}.hgi-stroke.hgi-telephone:before{content:"䢴"}.hgi-stroke.hgi-text:before{content:"䣪"}.hgi-stroke.hgi-text-wrap:before{content:"䣩"}.hgi-stroke.hgi-thread:before{content:"䣲"}.hgi-stroke.hgi-tick-02:before{content:"䤈"}.hgi-stroke.hgi-tick-double-02:before{content:"䤌"}.hgi-stroke.hgi-tiktok:before{content:"䤔"}.hgi-stroke.hgi-translate:before{content:"䥝"}.hgi-stroke.hgi-tv-01:before{content:"䦁"}.hgi-stroke.hgi-twitter:before{content:"䦉"}.hgi-stroke.hgi-unavailable:before{content:"䦜"}.hgi-stroke.hgi-unlink-02:before{content:"䦧"}.hgi-stroke.hgi-user:before{content:"䧬"}.hgi-stroke.hgi-user-add-01:before{content:"䧂"}.hgi-stroke.hgi-view:before{content:"䨃"}.hgi-stroke.hgi-view-off:before{content:"䨂"}.hgi-stroke.hgi-voice:before{content:"䨎"}.hgi-stroke.hgi-vr:before{content:"䨚"}.hgi-stroke.hgi-wallet-01:before{content:"䨡"}.hgi-stroke.hgi-wanted:before{content:"䨬"}.hgi-stroke.hgi-whatsapp:before{content:"䩐"}.hgi-stroke.hgi-wifi-01:before{content:"䩔"}.hgi-stroke.hgi-wifi-off-01:before{content:"䩦"}.hgi-stroke.hgi-youtube:before{content:"䪯"}

/*
 * Витрина и кабинет Тенёк. Собственный стиль сайта: «жидкая чернильная тень».
 * Цвета сняты с маскота: чернильное тело, белое свечение глаз, голубой город.
 * Формы — из Telegram: пузыри сообщений, кнопки под сообщением, ячейки списком.
 * Шрифт один — Medeo Sans. Все блоки стоят на одной сетке в 12 колонок,
 * размеры кратны 4. Двигаются только transform, opacity, clip-path.
 */

@font-face {
  font-family: "Medeo Sans";
  src: url("/assets/fonts/medeo-cyr.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+20BD;
}
@font-face {
  font-family: "Medeo Sans";
  src: url("/assets/fonts/medeo-lat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Маскот */
  --ink: #0a0c11;        /* тело */
  --ink-2: #151a24;      /* блик на теле */
  --ink-3: #232a38;
  --snow: #f2f6fb;       /* фон картинки */
  --white: #ffffff;
  --sky: #cfe6fa;        /* дальние дома */
  --blue: #4ba9f0;       /* диск города, свечение */
  --azure: #1c74cf;      /* заливка под белый текст, контраст 4,8 */
  --deep: #164a8c;       /* ближние дома */
  --eye: 0 0 24px rgb(75 169 240 / 0.9), 0 0 64px rgb(75 169 240 / 0.5);

  --side: 32px;
  --gap: 24px;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --bubble: 18px;
  --flow: cubic-bezier(0.16, 1, 0.3, 1);
  --settle: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring: linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1);
}

/* Роли цвета: светлая часть страницы и «тень». */
.light { --bg: var(--snow); --fg: var(--ink); --mute: #566178; --card: var(--white); --line: rgb(10 12 17 / 0.08); --accent: var(--azure); }
.dark { --bg: var(--ink); --fg: #f4f8fd; --mute: #9fadc6; --card: var(--ink-2); --line: rgb(255 255 255 / 0.1); --accent: var(--blue); }
.light, .dark { background: var(--bg); color: var(--fg); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100dvh; background: var(--snow); color: var(--ink);
  font-family: "Medeo Sans", sans-serif; font-size: 17px; line-height: 26px; font-weight: 500;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: var(--r-s); }
[hidden] { display: none !important; }

/* ——— Сетка ——— */
.wrap { max-width: 1264px; margin-inline: auto; padding-inline: var(--side); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.section { position: relative; padding-block: 128px; }
/* Каждая секция занимает экран целиком: ширина 100vw, высота не меньше 100dvh. */
.screen { position: relative; width: 100%; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding-block: 104px 72px; }
.screen > .wrap { width: 100%; }
.blue { --bg: var(--azure); --fg: #ffffff; --mute: #dcecfb; --card: rgb(255 255 255 / 0.14); --line: rgb(255 255 255 / 0.24); --accent: #ffffff; background: var(--bg); color: var(--fg); }
.c-all { grid-column: 1 / -1; }

/* ——— Текст ——— */
h1, h2 { font-weight: 800; letter-spacing: -0.035em; line-height: 1; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 84px); }
h2 { font-size: clamp(34px, 4.4vw, 64px); }
h3 { font-size: 21px; line-height: 26px; font-weight: 700; letter-spacing: -0.015em; }
.lead { font-size: 20px; line-height: 30px; color: var(--mute); max-width: 31em; }
.note { font-size: 14px; line-height: 20px; color: var(--mute); }
.nums { font-variant-numeric: tabular-nums; }
h2 + .lead { margin-top: 24px; }
.hl { color: var(--accent); }
/* Слово-маска для появления заголовков: запас снизу, чтобы не резать «у», «р», «д». */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0.04em 0.2em; margin: -0.06em -0.04em -0.2em; }
.w > span { display: inline-block; will-change: transform; }

/* ——— Кнопки: прямоугольник со скруглением 12, как главная кнопка Telegram ——— */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: var(--r-m);
  background: var(--azure); color: #fff; font-size: 17px; font-weight: 700; white-space: nowrap;
  transition: transform 0.4s var(--flow), background-color 0.2s, box-shadow 0.3s;
}
.btn:hover { background: #1868bb; box-shadow: 0 12px 32px rgb(28 116 207 / 0.35); }
.btn:active { transform: scale(0.97); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn.inky { background: var(--ink); color: #fff; }
.btn.inky:hover { background: var(--ink-3); box-shadow: 0 12px 32px rgb(10 12 17 / 0.3); }
.btn.soft { background: rgb(28 116 207 / 0.1); color: var(--azure); }
.btn.soft:hover { background: rgb(28 116 207 / 0.18); box-shadow: none; }
.dark .btn.soft { background: rgb(75 169 240 / 0.16); color: #9fd0fa; }
.btn.glowing { background: #fff; color: var(--ink); }
.btn.glowing:hover { background: #fff; box-shadow: var(--eye); }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.link { color: var(--accent); font-weight: 700; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; transition: background-size 0.4s var(--flow); }
.link:hover { background-size: 0 2px; background-position: 100% 100%; }

/* ——— Шапка ——— */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; transition: transform 0.5s var(--flow); }
.top.away { transform: translateY(-110%); }
.top .bar {
  display: flex; align-items: center; gap: 28px; height: 56px; margin-top: 12px; padding: 0 8px 0 8px;
  border-radius: var(--r-l); background: rgb(255 255 255 / 0.78); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 0 0 1px rgb(10 12 17 / 0.06), 0 8px 32px rgb(22 74 140 / 0.1); color: var(--ink);
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.ava { flex: none; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #8ecbf8, var(--blue) 60%, var(--azure)); overflow: hidden; }
.ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(1.7) translate(1%, 2%); transform-origin: 50% 36%; }
.top nav { display: flex; gap: 4px; margin-left: auto; font-size: 15px; font-weight: 600; }
.top nav a { padding: 8px 12px; border-radius: var(--r-s); color: #566178; transition: color 0.2s, background-color 0.2s; }
.top nav a:hover { color: var(--ink); background: rgb(10 12 17 / 0.05); }
.top .spacer { margin-left: auto; }

/* ——— Чат Telegram: общий для первого экрана и вопросов ——— */
.tg { display: flex; flex-direction: column; border-radius: var(--r-l); overflow: hidden; background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px rgb(10 12 17 / 0.06), 0 32px 80px rgb(22 74 140 / 0.22); }
.tg-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--white); box-shadow: 0 1px 0 rgb(10 12 17 / 0.08); position: relative; z-index: 1; }
.tg-head b { display: block; font-size: 16px; line-height: 20px; font-weight: 700; }
.tg-head small { display: block; font-size: 13px; line-height: 18px; color: var(--azure); }
.tg-body {
  position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 6px;
  min-height: 420px; max-height: 520px; padding: 16px 12px; overflow: hidden;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='360' height='140' viewBox='0 0 360 140'><path fill='%23164a8c' fill-opacity='0.16' d='M0 140V92h18V64h14v28h12V40h22v52h10V74h20v18h14V22h8v-12h4v12h8v70h12V56h24v36h10V78h18v14h16V34h20v58h12V66h16v26h14V48h22v44h10V82h14v58z'/></svg>") repeat-x 0 100%,
    linear-gradient(165deg, #dcedfb 0%, #b4d8f7 55%, #86c2f3 100%);
}
/* Сообщения прижаты вниз отступом первого, а не flex-end: иначе переполнение не видно и старые не вытесняются. */
.tg-body > :first-child { margin-top: auto; }
.msg { position: relative; max-width: 84%; padding: 8px 12px 9px; border-radius: var(--bubble); font-size: 16px; line-height: 22px; box-shadow: 0 1px 2px rgb(22 74 140 / 0.16); will-change: transform; }
.msg.in { align-self: flex-start; background: var(--white); border-bottom-left-radius: 6px; transform-origin: 0 100%; }
.msg.out { align-self: flex-end; background: var(--azure); color: #fff; border-bottom-right-radius: 6px; transform-origin: 100% 100%; }
.msg b { font-weight: 700; }
.msg .keyline { display: block; margin: 4px 0 2px; font-size: 21px; line-height: 28px; font-weight: 800; letter-spacing: 0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.msg time { float: right; margin: 6px 0 -3px 12px; font-size: 12px; line-height: 16px; opacity: 0.55; }
.kb { align-self: flex-start; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; width: 84%; }
.kb button, .kb a { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 12px; border-radius: 10px; background: rgb(22 74 140 / 0.62); color: #fff; font-size: 15px; font-weight: 700; transition: background-color 0.2s, transform 0.3s var(--flow); }
.kb button:hover, .kb a:hover { background: rgb(22 74 140 / 0.8); }
.kb button:active, .kb a:active { transform: scale(0.97); }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 14px 14px; border-radius: var(--bubble); border-bottom-left-radius: 6px; background: var(--white); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8a99b3; animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* ——— Первый экран ——— */
.hero { overflow: hidden; }
.hero .grid { align-items: center; row-gap: 48px; }
.hero .lead { margin-top: 28px; }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hero .actions + .note { margin-top: 16px; }
.hero .stage { position: relative; }
/* Диск города за маскотом и сам маскот: выглядывает из-за окна чата. */
.disc { position: absolute; z-index: 0; right: -22%; top: -6%; width: 96%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #a9d6f9, var(--blue) 55%, #2b86de); opacity: 0.28; }
.mascot { position: absolute; z-index: 1; right: 2%; top: 0; width: 62%; pointer-events: none; will-change: transform; filter: drop-shadow(0 24px 40px rgb(22 74 140 / 0.3)); }
.hero .tg { position: relative; z-index: 2; margin-top: 248px; }
.hero .tg-body { min-height: 300px; }
/* Чернильные капли: сливаются фильтром, поднимаются из лужи под окном. */
.drops { position: absolute; z-index: 1; inset: 0 -6% auto -6%; height: 300px; filter: url(#goo); pointer-events: none; }
.drops i { position: absolute; bottom: 0; border-radius: 50%; background: var(--ink); animation: drop linear infinite; will-change: transform; }
@keyframes drop { 0% { transform: translateY(0) scale(1); opacity: 0; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(-260px) scale(0.2); opacity: 0; } }

/* ——— Бегущая строка приложений ——— */
.ticker { position: relative; overflow: hidden; padding-block: 20px; }
.ticker .row { display: flex; width: max-content; gap: 34px; will-change: transform; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.ticker .row > span { display: flex; align-items: center; gap: 14px; }
.ticker .row > span::after { margin-left: 34px; content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: var(--eye); }

/* ——— Капающий край тёмной секции ——— */
.drip { position: absolute; left: 0; right: 0; height: clamp(40px, 7vw, 96px); pointer-events: none; z-index: 2; }
.drip.up { bottom: 100%; margin-bottom: -1px; transform: scaleY(-1); }
.drip.down { top: 100%; margin-top: -1px; }
.drip svg { display: block; width: 100%; height: 100%; fill: var(--ink); }

/* ——— Переключатель «в тень»: тушь заливает секцию от тумблера ——— */
.shade { --bg: var(--snow); --fg: var(--ink); --mute: #566178; --card: var(--white); --line: rgb(10 12 17 / 0.08); --accent: var(--azure);
  position: relative; overflow: hidden; background: var(--bg); color: var(--fg); transition: color 0.5s 0.15s; }
.shade.on { --fg: #f4f8fd; --mute: #9fadc6; --card: var(--ink-2); --line: rgb(255 255 255 / 0.1); --accent: var(--blue); }
.shade .flood { position: absolute; inset: 0; background: var(--ink); clip-path: circle(0 at var(--fx, 30%) var(--fy, 60%)); will-change: clip-path; }
.shade .grid { position: relative; align-items: center; row-gap: 40px; }
.shade .pose { width: 46%; margin: 8px 0 -24px auto; pointer-events: none; }
.shade .lead { transition: color 0.5s 0.15s; }
.power { margin-top: 40px; display: flex; align-items: center; gap: 14px; width: 100%; max-width: 420px; padding: 12px 16px 12px 12px; border-radius: var(--r-l); background: var(--card); box-shadow: 0 0 0 1px var(--line); text-align: left; transition: background-color 0.5s 0.15s, box-shadow 0.5s; }
.power .who { flex: 1; }
.power b { display: block; font-size: 17px; line-height: 22px; font-weight: 700; }
.power small { display: block; font-size: 14px; line-height: 20px; color: var(--mute); transition: color 0.5s; }
.shade.on .power { box-shadow: 0 0 0 1px var(--line), 0 0 48px rgb(75 169 240 / 0.35); }
.switch { flex: none; position: relative; width: 56px; height: 34px; border-radius: 999px; background: #c4cddb; transition: background-color 0.3s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgb(10 12 17 / 0.3); transition: transform 0.45s var(--settle); }
.on .switch { background: var(--blue); }
.on .switch::after { transform: translateX(22px); }

.sites { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.site { padding: 16px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: background-color 0.5s 0.15s, box-shadow 0.5s 0.15s; will-change: transform; }
.site b { display: block; margin-top: 12px; font-size: 17px; line-height: 22px; font-weight: 700; }
.site small { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--mute); }
.site small::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #1f9d61; }

/* ——— Возможности: шесть равных модулей, в каждом живой пример ——— */
.features { margin-top: 40px; row-gap: var(--gap); }
.tile { grid-column: span 4; display: flex; flex-direction: column; padding: 8px; border-radius: var(--r-l); background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.5s; will-change: transform; }
.tile:hover { box-shadow: 0 0 0 1px var(--line), 0 24px 48px rgb(22 74 140 / 0.14); }
.demo { display: flex; flex-direction: column; justify-content: center; gap: 10px; height: 116px; padding: 16px; border-radius: var(--r-s); background: var(--snow); font-size: 14px; line-height: 20px; font-weight: 600; overflow: hidden; }
.tile .txt { padding: 16px 12px 12px; }
.tile h3 { display: flex; align-items: center; gap: 10px; }
.tile p { margin-top: 8px; color: var(--mute); font-size: 16px; line-height: 24px; }
/* Дорожка: откуда — путь с бегущей точкой — куда. */
.lane { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.lane .path { position: relative; height: 2px; background: rgb(10 12 17 / 0.14); overflow: visible; }
.lane .path::after { content: ""; position: absolute; top: -4px; left: 0; width: 100%; height: 10px; background: radial-gradient(circle 5px at 5px 5px, var(--dot, var(--azure)) 96%, transparent); animation: run 1.8s linear infinite; }
.lane.direct .path::after { --dot: var(--ink); animation-duration: 1.2s; }
.lane em { font-style: normal; color: #566178; white-space: nowrap; }
@keyframes run { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(calc(100% - 10px)); opacity: 0; } }
.demo .big { font-size: 34px; line-height: 36px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.demo .bar { height: 6px; border-radius: 3px; background: rgb(10 12 17 / 0.12); overflow: hidden; }
.demo .bar i { display: block; height: 100%; border-radius: 3px; background: var(--azure); transform-origin: left; animation: load 2.4s var(--flow) infinite; }
@keyframes load { 0% { transform: scaleX(0); } 55%, 100% { transform: scaleX(1); } }

/* ——— Подключение ——— */
.steps { position: relative; display: grid; gap: 48px; padding-left: 48px; }
.steps .track { position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.steps .track i { position: absolute; inset: 0; background: var(--blue); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 12px var(--blue); }
.steps li { position: relative; }
.steps li::before { content: ""; position: absolute; left: -48px; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--mute); transition: box-shadow 0.4s, background-color 0.4s; }
.steps li.done::before { background: var(--blue); box-shadow: inset 0 0 0 2px var(--blue), 0 0 20px var(--blue); }
.steps li.track { position: absolute; }
.steps li.track::before { display: none; }
.steps p { margin-top: 10px; color: var(--mute); max-width: 30em; }
.steps h3 { font-size: 24px; line-height: 30px; }

/* Сегменты, как в Telegram: плашка под выбранным. */
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 10px; background: rgb(120 135 160 / 0.2); }
.seg button { min-height: 34px; padding: 0 16px; border-radius: 8px; font-size: 15px; font-weight: 600; white-space: nowrap; transition: background-color 0.25s, color 0.25s; }
.seg button[aria-selected="true"] { background: var(--card); color: var(--fg); box-shadow: 0 1px 4px rgb(10 12 17 / 0.16); }
.dark .seg button[aria-selected="true"] { background: var(--ink-3); }
.apps { margin-top: 56px; }

/* ——— Ячейки списком, как в настройках Telegram ——— */
.cells { border-radius: var(--r-l); background: var(--card); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.cell { position: relative; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 16px; }
.cell + .cell::before { content: ""; position: absolute; left: 16px; right: 0; top: 0; height: 1px; background: var(--line); }
.cell .grow { flex: 1; min-width: 0; }
.cell b { display: block; font-size: 17px; line-height: 22px; font-weight: 700; }
.cell small { display: block; font-size: 14px; line-height: 20px; color: var(--mute); }
.cell .end { text-align: right; white-space: nowrap; }
.cell .end b { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.applist { margin-top: 16px; }
.caption { margin: 12px 16px 0; font-size: 14px; line-height: 20px; color: var(--mute); }

/* ——— Тарифы ——— */
label.cell { cursor: pointer; transition: background-color 0.2s; }
label.cell:hover { background: rgb(28 116 207 / 0.05); }
label.cell input { position: absolute; opacity: 0; }
.radio { flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px #b3bdcd; display: grid; place-items: center; transition: background-color 0.25s, box-shadow 0.25s; }
.radio::after { content: ""; width: 10px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform 0.35s var(--settle); }
label.cell:has(input:checked) .radio { background: var(--azure); box-shadow: none; }
label.cell:has(input:checked) .radio::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
label.cell:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: -3px; }
.tag { display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: 6px; background: rgb(28 116 207 / 0.12); color: var(--azure); font-size: 13px; line-height: 20px; font-weight: 700; vertical-align: 1px; }
.checkout { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-left: 16px; }
.checkout .sum { font-size: 36px; line-height: 40px; font-weight: 800; letter-spacing: -0.035em; }
.checkout .sum small { display: block; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; color: var(--mute); }

/* ——— Вопросы: слева список, справа ответ в чате ——— */
.asks { display: grid; gap: 8px; margin-top: 40px; }
.asks button { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 10px 16px; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); font-size: 17px; font-weight: 600; text-align: left; transition: background-color 0.25s, color 0.25s, transform 0.4s var(--flow); }
.asks button:hover { transform: translateX(6px); }
.asks button[aria-pressed="true"] { background: var(--azure); color: #fff; box-shadow: none; }
.asks button::after { content: "→"; font-weight: 800; }
.faq .tg-body { min-height: 440px; max-height: 440px; }
.dark .asks button { color: var(--fg); }

/* ——— Финал ——— */
.final { position: relative; }
.final .grid { align-items: center; row-gap: 40px; }
.final h2 { font-size: clamp(48px, 8.4vw, 132px); line-height: 0.94; }
.final .btn { margin-top: 40px; }
.final .note { margin-top: 16px; }

/* ——— Подвал ——— */
.foot { padding-block: 32px 40px; font-size: 15px; row-gap: 16px; align-items: center; box-shadow: inset 0 1px 0 var(--line); }
.foot p { grid-column: 1 / span 4; color: var(--mute); }
.foot nav { grid-column: 5 / span 8; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; color: var(--mute); }
.foot a { transition: color 0.2s; }
.foot a:hover { color: var(--fg); }

/* ——— Курсор-капля: тень идёт за указателем ——— */
.blob { position: fixed; z-index: 60; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: rgb(75 169 240 / 0.45); box-shadow: 0 0 0 1.5px #fff, 0 0 16px rgb(75 169 240 / 0.8); pointer-events: none; will-change: transform; opacity: 0; }
@media (hover: none), (pointer: coarse) { .blob { display: none; } }

/* ——— Всплывающее подтверждение ——— */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translate(-50%, 96px); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--r-m); background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 16px 40px rgb(10 12 17 / 0.3); transition: transform 0.5s var(--settle); }
.toast.on { transform: translate(-50%, 0); }

/* ——— Кабинет ——— */
.cab { padding-block: 104px 96px; row-gap: var(--gap); align-items: start; }
.status { grid-column: 1 / span 5; position: sticky; top: 92px; padding: 28px; border-radius: var(--r-l); overflow: hidden; }
.status .inner { position: relative; }
.status .who { display: flex; align-items: center; gap: 12px; }
.status .who .ava { width: 48px; height: 48px; }
.status .who b { display: block; font-weight: 700; }
.status .who small { display: block; font-size: 14px; line-height: 20px; color: var(--mute); }
.status .days { margin-top: 40px; font-size: clamp(72px, 9vw, 128px); line-height: 0.9; font-weight: 800; letter-spacing: -0.05em; }
.status .unit { margin-top: 8px; font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.02em; }
.status .sub { margin-top: 8px; color: var(--mute); }
.status .btn { margin-top: 28px; width: 100%; }
.status .pose { width: 70%; margin: 20px auto -36px; }
.caption.logos { gap: 8px 10px; }
.emptybox { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--r-l); background: var(--card); box-shadow: 0 0 0 1px var(--line); color: var(--mute); }
.emptybox img { width: 112px; flex: none; }
.panel { grid-column: 7 / span 6; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.group > h3 { margin: 0 16px 12px; }
.group > h3 small { float: right; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--mute); }
.cell code { display: block; font: inherit; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.textbtn { min-height: 40px; padding: 0 4px; font-size: 15px; font-weight: 700; color: var(--azure); white-space: nowrap; transition: opacity 0.2s; }
.textbtn:hover { opacity: 0.7; }
.textbtn.danger { color: #c9353a; }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #1f9d61; vertical-align: 1px; }
.dot.off { background: #b3bdcd; }
.dot.warn { background: #d6454a; }

/* ——— Вход по ключу ——— */
.gate { min-height: 100dvh; display: grid; place-items: center; padding: 104px var(--side) 64px; position: relative; overflow: hidden; }
.gate .disc { right: auto; left: 50%; top: 4%; width: min(720px, 120vw); transform: translateX(-50%); opacity: 0.22; }
.gate .box { position: relative; z-index: 2; width: 100%; max-width: 440px; text-align: center; }
.gate h1 { font-size: clamp(36px, 5vw, 52px); }
.gate .lead { margin: 16px auto 0; font-size: 18px; line-height: 27px; }
.gate .cells { margin-top: 32px; text-align: left; }
.gate .btn { width: 100%; margin-top: 16px; }
.gate .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field { position: relative; display: block; margin-top: 12px; text-align: left; }
.field input { width: 100%; height: 56px; padding: 22px 16px 6px; border: 0; border-radius: var(--r-m); background: var(--white); color: var(--ink); font: inherit; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 1px rgb(10 12 17 / 0.1); transition: box-shadow 0.2s; }
.field input:focus { outline: 0; box-shadow: 0 0 0 2px var(--azure); }
.field span { position: absolute; left: 16px; top: 15px; color: #566178; pointer-events: none; transition: transform 0.3s var(--flow); transform-origin: left top; }
.field input:focus + span, .field input:not(:placeholder-shown) + span { transform: translateY(-9px) scale(0.78); }
.field.bad input { box-shadow: 0 0 0 2px #d6454a; }
.field em { display: none; margin: 8px 4px 0; font-style: normal; font-size: 14px; line-height: 20px; font-weight: 600; color: #c9353a; }
.field.bad em { display: block; }
.ch { display: inline-block; }
.check { cursor: pointer; }
.check input { position: absolute; opacity: 0; }
.check:has(input:checked) .radio { background: var(--azure); box-shadow: none; }
.check:has(input:checked) .radio::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: -3px; }

/* ——— Значки и логотипы ——— */
.hgi-stroke { font-size: 24px; line-height: 1; color: var(--accent); flex: none; }
.btn .hgi-stroke, .kb .hgi-stroke { color: inherit; font-size: 20px; }
/* Плашка под настоящий логотип: белая, чтобы знак читался и на свету, и в тени. */
.plate { display: inline-flex; align-items: center; justify-content: center; height: 40px; min-width: 40px; padding: 8px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgb(10 12 17 / 0.06); }
.plate img { display: block; height: 100%; width: auto; max-width: 96px; }
.plate.app { padding: 0; overflow: hidden; }
.plate.app img { max-width: none; }
/* Одноцветный знак из набора Simple Icons, окрашенный в фирменный цвет. */
.brand { display: block; width: 24px; height: 24px; background: var(--c, var(--ink)); -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ——— Маршруты: три дорожки от телефона до сайта ——— */
.routes .head { position: relative; }
.routes .pose { position: absolute; right: 0; bottom: -40px; width: 26%; pointer-events: none; }

/* ——— Цифры как инфографика ——— */
.numbers { row-gap: var(--gap); margin-top: 40px; }
.legend { margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 20px; color: var(--mute); }
.bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; height: 132px; }
.bars div { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.bars i { display: block; border-radius: var(--r-s) var(--r-s) 0 0; background: #c4d3e6; }
.bars div:last-child i { background: var(--azure); }
.bars b { margin-bottom: 6px; font-size: 17px; font-weight: 800; }
.bars span { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--mute); }

/* ——— Отзывы: общая оценка, скорость по замерам людей, сами сообщения ——— */
.rating { margin-top: 32px; }
.rating .num { display: flex; align-items: center; gap: 12px; font-size: clamp(64px, 7.4vw, 108px); line-height: 1; font-weight: 800; letter-spacing: -0.04em; }
.rating .hgi-stroke { font-size: 0.5em; color: var(--azure); }
.rating .note { margin-top: 8px; }
.speeds { margin-top: 28px; display: grid; gap: 14px; max-width: 420px; }
.speeds li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; font-size: 15px; line-height: 20px; }
.speeds b { font-weight: 700; }
.speeds .bar { grid-column: 2 / -1; height: 6px; border-radius: 3px; background: #d5dfec; overflow: hidden; }
.speeds .bar i { display: block; height: 100%; border-radius: 3px; background: var(--azure); }
.review { padding: 16px 20px; border-radius: var(--bubble); border-bottom-left-radius: 6px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgb(22 74 140 / 0.08); will-change: transform; }
.review:nth-child(2) { margin-left: 48px; }
.review header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.review header b { font-weight: 700; }
.review .stars { display: inline-flex; gap: 2px; margin-left: auto; color: var(--azure); }
.review .stars .hgi-stroke { font-size: 16px; }
.review p { margin-top: 8px; }
.review footer { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }

/* ——— Тариф: полоса цены за месяц прямо в ячейке ——— */
.cell .permonth { display: block; margin-top: 6px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.cell .permonth i { display: block; height: 100%; border-radius: 2px; background: var(--azure); }
.how .pose { width: 60%; margin-top: 32px; }
.pose.side { grid-column: 10 / span 3; justify-self: end; width: 78%; margin-block: -72px -48px; pointer-events: none; }
.plans .pose { width: 44%; margin-top: 24px; }
.faq .pose { position: absolute; right: 4%; bottom: 100%; width: 28%; margin-bottom: -16px; pointer-events: none; }
.cell .plate { flex: none; }

/* ——— Узкие экраны: та же сетка, блоки на всю ширину ——— */
@media (max-width: 960px) {
  :root { --side: 16px; --gap: 16px; }
  .top nav { display: none; }
  .top .bar { margin-top: 8px; }
  .top .bar .btn { margin-left: auto; }
  .section { padding-block: 72px; }
  .screen { padding-block: 88px 56px; }
  .shade .pose { width: 44%; margin: 16px auto -8px; }
  .routes .pose { position: static; width: 56%; margin: 0 auto 8px; }
  .how .pose, .plans .pose, .faq .pose, .pose.side { display: none; }
  .review:nth-child(2) { margin-left: 0; }
  .status, .panel, .foot p, .foot nav { grid-column: 1 / -1; }
  .hero { padding-block: 96px 56px; }
  .hero .tg { margin-top: 200px; }
  .mascot { right: 6%; width: 50%; }
  .drops { height: 240px; }
  .disc { right: -30%; top: -20%; width: 110%; }
  .lead { font-size: 18px; line-height: 27px; }
  .btn.wide-s, .checkout .btn { width: 100%; }
  .tg-body { min-height: 380px; }
  .sites { gap: 8px; }
  .site { padding: 12px; }
  .site b { font-size: 15px; line-height: 20px; }
  .site small { margin-top: 12px; font-size: 12px; line-height: 16px; gap: 6px; }
  .tile { grid-column: 1 / -1; }
  .features { margin-top: 40px; }
  .seg { display: grid; }
  .seg button { padding: 0 8px; }
  .checkout { padding-left: 0; }
  .final { padding-block: 96px 64px; }
  .foot nav { justify-content: flex-start; }
  .cab { padding-block: 84px 64px; }
  .status { position: relative; top: 0; }
  .faq .tg { margin-top: 32px; }
}

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

/* ——— Пружина и покачивание: отклик на наведение и нажатие ———
   Кнопка и строка отскакивают, значок качается на верхней точке, как на подвесе.
   Движение подтверждает, что предмет живой и его можно нажать. */
/* Значение ещё не пришло с сервера: место занято, строка не прыгает. */
[data-live]:empty { display: inline-block; min-width: 1.6em; height: 0.8em; border-radius: 4px; background: rgb(128 140 160 / 0.28); vertical-align: -0.04em; animation: live-wait 1.2s ease-in-out infinite alternate; }
@keyframes live-wait { to { opacity: 0.45; } }
@keyframes swing { 0% { rotate: 0deg; } 18% { rotate: 16deg; } 38% { rotate: -11deg; } 58% { rotate: 7deg; } 78% { rotate: -3deg; } 100% { rotate: 0deg; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn, .kb button, .kb a, .plate, .seg button, a.cell, button.cell, label.cell, .textbtn { transition: transform 0.7s var(--spring), background-color 0.2s, box-shadow 0.2s, opacity 0.2s, color 0.2s; }
  .btn:hover, .kb button:hover, .kb a:hover { transform: translateY(-3px) scale(1.03); }
  .plate:hover { transform: scale(1.1) rotate(-4deg); }
  a.cell:hover, button.cell:hover, label.cell:hover { transform: translateX(6px); }
  .textbtn:hover { transform: translateX(3px); }
  .btn:hover .hgi-stroke, .kb :is(button, a):hover .hgi-stroke, .cell:hover > .hgi-stroke, .link:hover .hgi-stroke, .swing:hover .hgi-stroke { animation: swing 0.9s ease-out; transform-origin: 50% 12%; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn:active, .kb button:active, .kb a:active { transform: scale(0.94); transition-duration: 0.12s; }
}

/* Для поисковиков и экранных дикторов: текст есть, глазу не мешает. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Упругое появление на миг выводит край блока за экран: страница от этого не должна ездить вбок. */
main { overflow-x: clip; }

.foot nav { flex-wrap: wrap; }

/*
 * Шапка — ночной город Тенька под страницей. Слой шириной в пол-экрана лежит
 * справа, под кнопкой «Меню». Страница уезжает влево листом и открывает его:
 * сдвиг влево не создаёт горизонтальной прокрутки. Маскот выходит из-за листа
 * и на наведение раздела меняет позу.
 */
@property --round { syntax: "<length>"; inherits: false; initial-value: 0px; }

:root {
  --w: 50vw;
  --fs: clamp(34px, min(4.44vw, 6.4dvh), 80px);
  --pitch: calc(var(--fs) * 1.32);
  /* Начало текста — восьмая колонка общей сетки, считая от середины экрана. */
  --start: calc((min(100vw, 1264px) - 2 * var(--side) - 11 * var(--gap)) / 12 + var(--gap) * 1.5);
  --edge: max(var(--side), calc((100vw - 1264px) / 2 + var(--side)));
  /* Маскот занимает низ под четырьмя длинными строками: дальше пункты короткие. */
  --hero: min(calc(100dvh - 96px - 4 * var(--pitch)), calc(var(--w) * 0.64));
  --hero-right: calc(var(--hero) * -0.04);
  --sheet: 0.94;
}
/* Класс поля на body перебивает простой селектор, а вокруг отъехавшего листа должна быть ночь. */
body.light { background: var(--ink); }

/* Слой */
.under { position: fixed; top: 0; right: 0; z-index: 0; width: var(--w); height: 100dvh; overflow: hidden; background: radial-gradient(100% 70% at 72% 78%, var(--deep), transparent 72%), var(--ink); }
/* Тень, которую лист бросает на город. */
.under::after { content: ""; position: absolute; inset: 0 auto 0 0; z-index: 0; width: 40px; background: linear-gradient(to right, rgb(5 7 12 / 0.6), transparent); pointer-events: none; }

.under-moon { position: absolute; right: calc(var(--hero-right) - var(--hero) * 0.07); bottom: calc(var(--hero) * 0.01 + 8px); width: calc(var(--hero) * 1.06); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 64% 40%, #8ecbf8, var(--blue) 30%, var(--azure) 56%, var(--deep) 88%); box-shadow: 0 0 96px rgb(75 169 240 / 0.45); translate: -24% 0; transition: translate 1.2s var(--flow); }
/* Светлое ядро луны смещено от текста: у края она тёмная, и синее слово на ней читается. */
/* Город — три плана под затемнением, у каждого свой слой: смещение за указателем не перерисовывает рисунок. Края с запасом на это смещение. */
.under-city { position: absolute; inset: 0 -32px; }
.city-plane { position: absolute; inset: 0; translate: var(--enter) 0; transition: translate 1.1s var(--flow); }
/* Чем ближе план, тем длиннее путь из-за листа. Ближний едет вместе с маскотом. */
.city-far { --enter: calc(var(--hero) * -0.08); }
.city-mid { --enter: calc(var(--hero) * -0.2); }
.city-near { --enter: calc(var(--hero) * -0.4); }
/* Рисунок привязан к маскоту, а не к окну: его ноги на любом экране приходятся на лужу. */
.city-plane svg, .city-plane img { position: absolute; right: calc(var(--hero-right) - var(--hero) * 0.12 + 32px); bottom: calc(8px - var(--hero) * 0.1); width: calc(var(--hero) * 2.826); max-width: none; height: auto; overflow: visible; }
/* Окна зажигаются волной от маскота: город просыпается вокруг него, задержка своя у каждого гнезда. */
.city-lit { opacity: 0; transition: opacity 0.2s; }
.menu-open .city-lit { opacity: 1; transition: opacity 0.5s var(--d, 0.4s); }
/* Тушь стекает с крыш и разливается лужей под ногами. */
.city-drip { transform-box: fill-box; transform-origin: 50% 0; scale: 1 0.7; transition: scale 0.5s var(--flow); }
.menu-open .city-drip { scale: 1 1; transition: scale 1.8s var(--flow) 0.2s; }
.city-pool { transform-box: view-box; transform-origin: 1010px 950px; scale: 0.8 1; transition: scale 0.5s var(--flow); }
.menu-open .city-pool { scale: 1 1; transition: scale 1.4s var(--flow) 0.3s; }
/* Тушь под разделами: слева почти сплошная, к правому краю уходит в сцену. Белый текст читается и поверх луны. */
.under-shade { position: absolute; inset: 0; background: linear-gradient(to right, rgb(10 12 17 / 0.98), rgb(10 12 17 / 0.93) 40%, rgb(10 12 17 / 0.66) 66%, rgb(10 12 17 / 0.2) 84%, transparent); pointer-events: none; }

.under-body { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; padding: 88px var(--edge) 32px var(--start); }
.under-nav { display: flex; flex-direction: column; align-items: flex-start; font-size: var(--fs); line-height: var(--pitch); letter-spacing: -0.035em; }
.under-nav a { display: block; overflow: hidden; white-space: nowrap; padding-right: 0.04em; color: var(--fg); transition: opacity 0.3s; }
/* Слова выезжают из-за кромки в ту же сторону, куда открывается слой. */
/* Пункт под указателем набирает толщину: сразу видно, на чём курсор. */
.under-word { position: relative; display: inline-block; vertical-align: top; font-weight: 500; transform: translateX(-108%); transition: transform 0.5s var(--flow), font-weight 0.3s var(--flow); }
/* Невидимая копия в толщине 900 держит ширину: соседние пункты не сдвигаются. */
.under-word::after { content: attr(data-label); display: block; height: 0; overflow: hidden; visibility: hidden; font-weight: 900; }
.under-nav a:hover .under-word, .under-nav a:focus-visible .under-word, .under-nav a[aria-current] .under-word { font-weight: 900; }
/* Тушь затекает в слово слева направо: видно, какой раздел под указателем. */
.under-ink { position: absolute; inset: 0; color: var(--blue); clip-path: inset(-12% 102% -12% -2%); transition: clip-path 0.6s var(--flow); }
.under-nav a:hover .under-ink, .under-nav a:focus-visible .under-ink, .under-nav a[aria-current] .under-ink { clip-path: inset(-12% -2% -12% -2%); }
.under-nav:has(a:hover, a:focus-visible) a:not(:hover, :focus-visible) { opacity: 0.5; }

.under-actions { display: grid; grid-template-columns: auto auto; gap: 8px; width: max-content; margin-top: auto; opacity: 0; translate: -24px 0; transition: opacity 0.3s, translate 0.5s var(--flow); }
.under-key { grid-column: 1 / -1; }
.under-actions .btn.soft { background: var(--ink-3); color: #f4f8fd; }
.under-actions .btn.soft:hover { background: var(--ink-2); }

/* Маскот */
.under-hero { position: absolute; right: var(--hero-right); bottom: 8px; width: var(--hero); height: var(--hero); pointer-events: none; translate: -40% 0; transition: translate 1.1s var(--flow); }
.under-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; opacity: 0; scale: 0.92; transform-origin: 50% 100%; transition: opacity 0.18s, scale 0.45s var(--settle); }
.under-hero img.on { opacity: 1; scale: 1; }
.under-hero img[data-pose="fly"] { translate: 0 -8%; }
.under-say { position: absolute; right: calc(16px - var(--hero-right)); bottom: 90%; width: max-content; max-width: min(180px, calc(var(--hero) * 0.42)); padding: 8px 12px; border-radius: var(--bubble) var(--bubble) var(--bubble) 6px; background: var(--white); color: var(--ink); font-size: 15px; line-height: 20px; font-weight: 600; box-shadow: 0 8px 24px rgb(5 7 12 / 0.35); opacity: 0; scale: 0.6; transform-origin: 0 100%; transition: opacity 0.2s, scale 0.45s var(--settle); }

/* Лунный свет на кромке: на тёмных секциях без него лист сливается с ночью. Повторяет движение листа. */
.under-rim { position: fixed; inset: 0; z-index: 2; border: 2px solid var(--blue); border-radius: 24px; -webkit-mask: linear-gradient(to left, #000 24px, transparent 200px); mask: linear-gradient(to left, #000 24px, transparent 200px); pointer-events: none; opacity: 0; transform-origin: 100% 50%; transition: transform 0.9s var(--flow), opacity 0.25s 0.5s; }

/* Прозрачная кнопка над отъехавшим листом: страница неактивна, нажатие ловит она. */
.under-back { position: fixed; inset: 0 var(--w) 0 0; z-index: 2; display: none; background: none; cursor: pointer; }

/* Страница */
.page { position: relative; z-index: 1; transition: transform 0.9s var(--flow), --round 0.9s var(--flow); }
/* Срез по границам окна: от длинной страницы остаётся лист высотой в экран. */
.lifted .page { clip-path: inset(var(--cut, 0px) 0 var(--cut-b, 0px) 0 round var(--round)); transform-origin: 100% calc(var(--cut, 0px) + var(--view, 50dvh) / 2); }
.snap .page, .snap .under-rim { transition: none; }
.page [tabindex="-1"]:focus-visible { outline: none; }

/* Открыто */
.menu-open .page { transform: translateX(calc(-1 * var(--w))) scale(var(--sheet)); --round: 24px; }
.menu-open .under-back { display: block; }
.menu-open .under-moon, .menu-open .city-plane, .menu-open .under-hero { translate: 0 0; }
.menu-open .under-word { transform: none; transition: transform 0.9s var(--flow) calc(0.1s + var(--i, 0) * 0.05s), font-weight 0.3s var(--flow); }
.menu-open .under-actions { opacity: 1; translate: 0 0; transition-delay: 0.45s; }
.menu-open .under-say { opacity: 1; scale: 1; transition-delay: 0.6s; }
.menu-open .under-rim { opacity: 1; transform: translateX(calc(-1 * var(--w))) scale(var(--sheet)); transition: transform 0.9s var(--flow), opacity 0.2s; }

/* Полоска */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 30; padding-top: 12px; pointer-events: none; transition: transform 0.9s var(--flow); }
.topbar .wrap { display: flex; align-items: center; gap: 8px; }
.topbar .wrap > * { pointer-events: auto; min-height: 44px; border-radius: var(--r-m); transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, opacity 0.3s, visibility 0.3s, transform 0.4s var(--flow); }
.topbar .logo { margin-right: auto; padding: 2px 16px 2px 4px; background: rgb(255 255 255 / 0.92); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 0 0 1px rgb(10 12 17 / 0.06), 0 8px 24px rgb(22 74 140 / 0.12); color: var(--ink); }
.topbar .logo .ava { width: 36px; height: 36px; }
.topbar .btn.soft { background: rgb(255 255 255 / 0.92); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 0 0 1px rgb(10 12 17 / 0.06), 0 8px 24px rgb(22 74 140 / 0.12); color: var(--ink); }
.topbar .btn.soft:hover { background: var(--white); }
.topbar .btn.soft .hgi-stroke { color: var(--azure); }
/* На тёмных секциях полоска темнеет, а кнопка «Меню» светлеет: чёрное на чёрном не читается. */
.topbar.on-dark .logo, .topbar.on-dark .btn.soft { background: rgb(35 42 56 / 0.88); color: #f4f8fd; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12); }
.topbar.on-dark .btn.soft:hover { background: var(--ink-3); }
.topbar.on-dark .btn.soft .hgi-stroke { color: var(--blue); }
.topbar.on-dark .btn.inky, .menu-open .topbar .btn.inky { background: var(--white); color: var(--ink); }
.topbar.on-dark .btn.inky:hover, .menu-open .topbar .btn.inky:hover { background: var(--snow); box-shadow: none; }
/* В открытом слое «Кабинет» уже есть среди кнопок: второй рядом не нужен. */
.menu-open .topbar .btn.soft { opacity: 0; visibility: hidden; }
/* Логотип принадлежит странице и уезжает вместе с ней, а не повисает поперёк кромки. */
.menu-open .topbar .logo { opacity: 0; visibility: hidden; transform: translateX(calc(-1 * var(--w))); }
.topbar.away:not(.keep) { transform: translateY(-120%); }
.menu-open .topbar { transform: none; }
.burger { display: grid; gap: 5px; width: 18px; }
.burger i { height: 2px; border-radius: 1px; background: currentColor; transition: transform 0.5s var(--flow); }
.menu-open .burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Телефон и планшет: слой шире половины, чтобы пункты читались; край листа остаётся видимым и нажимается */
@media (max-width: 960px) {
  :root {
    --w: max(50vw, min(78vw, 400px));
    --fs: clamp(28px, min(9.2vw, 4.8dvh), 44px);
    --pitch: max(44px, calc(var(--fs) * 1.3));
    --start: var(--side);
    --edge: var(--side);
    --hero: clamp(170px, calc(100dvh - 192px - 8 * var(--pitch)), calc(var(--w) * 0.95));
    --hero-right: calc(var(--hero) * -0.08);
  }
  .under-body { padding-block: 68px 12px; }
  /* Здесь сцена под разделами, а не сбоку: тушь идёт сверху вниз. */
  .under-shade { background: linear-gradient(to bottom, rgb(10 12 17 / 0.96) calc(68px + 8 * var(--pitch)), transparent calc(148px + 8 * var(--pitch))); }
  .under-actions { margin-top: 12px; }
  .under-actions .btn { min-height: 44px; padding-inline: 12px; font-size: 15px; }
  .under-say { right: 12%; bottom: 96%; max-width: none; white-space: nowrap; }
  .topbar .btn.soft { display: none; }
}

/* Низкий телефон: пузырю негде встать между кнопками и маскотом. */
@media (max-width: 960px) and (max-height: 720px) {
  .under-say { display: none; }
}

/* Низкое окно: телефон лёжа. Маскот уступает место разделам. */
@media (max-height: 520px) {
  :root { --w: max(50vw, min(78vw, 420px)); --fs: 24px; --pitch: 44px; }
  .under-hero, .under-moon, .under-city { display: none; }
  .under-shade { background: rgb(10 12 17 / 0.9); }
  .under-nav { flex-direction: row; flex-wrap: wrap; column-gap: 0.5em; }
  .under-body { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .page, .topbar, .topbar .wrap > *, .under-rim, .under-moon, .city-plane, .under-word, .under-ink, .under-actions, .under-hero, .under-hero img, .under-say, .burger i { transition: none !important; }
  /* Город стоит готовым: окна горят, тушь уже стекла. */
  .city-lit { opacity: 1; transition: none; }
  .city-drip, .city-pool { scale: 1 1; transition: none; }
}

/*
 * Первый экран по швейцарской сетке. Двенадцать колонок, базовая линия 8 px.
 * Горизонтали: верх заголовка, низ текста, верх чёрной полосы.
 * Колонки: заголовок и текст 1–7, Тенёк 8–12, цветное поле от 9-й
 * до края экрана.
 */
.hero {
  --row: 96px;
  --row: min(96px, round(down, min(6.8vw, 10.8dvh), 8px));
  --pool: 120px;
  --pool: calc(112px + mod(100dvh, 8px));
  --flood: 64dvh;
  --col: calc((min(100vw, 1264px) - 2 * var(--side) - 11 * var(--gap)) / 12);
  --col9: calc(max(0px, (100vw - 1264px) / 2) + var(--side) + (var(--col) + var(--gap)) * 8);
  --fig-h: min(calc(100dvh - var(--pool) - 96px), calc((var(--col) * 5 + var(--gap) * 4) * 1.3975));
  padding: 0; justify-content: stretch; overflow: hidden;
}

.hero-stage { position: absolute; inset: 0; }

/* Поле начинается на линии 9-й колонки и уходит за край экрана. */
.hero-field { position: absolute; z-index: 0; top: 0; right: 0; bottom: var(--pool); left: var(--col9); background: var(--blue); transform-origin: 50% 100%; will-change: transform; }

/* Чёрная полоса держит запас снизу: при прокрутке поднимается и забирает сцену. */
.hero-pool { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(var(--flood) * -1); height: calc(var(--pool) + var(--flood)); pointer-events: none; will-change: transform; }
.hero-ink { position: absolute; z-index: 1; inset: 0; background: var(--ink); }

/* Капли поднимаются только внутри цветного поля. */
.hero .drops { z-index: 0; inset: auto 0 calc(100% - 44px) calc(var(--col9) + 24px); height: 340px; }
.hero .drops::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: var(--ink); }
.hero .drops i { animation-name: hero-drop; }
@keyframes hero-drop { 0% { transform: translateY(24px) scale(1); opacity: 1; } 75% { opacity: 1; } 100% { transform: translateY(-300px) scale(0.2); opacity: 0; } }

.hero .hero-grid { position: static; width: 100%; min-height: 100dvh; padding-top: 96px; grid-template-rows: auto minmax(auto, 1fr) var(--pool); align-items: stretch; row-gap: 0; }

/* Заголовок: один кегль, контраст толщин 300 и 900, строка кратна базовой линии. */
.hero h1 { position: relative; z-index: 2; grid-column: 1 / span 8; grid-row: 1; font-size: calc(var(--row) / 0.96); line-height: var(--row); font-weight: 900; text-wrap: initial; }
.hero h1 .thin { font-weight: 300; letter-spacing: -0.03em; }

/* Вставки сидят на базовой линии и не выше прописной буквы, строку не раздвигают. */
.hero-slot { position: relative; display: inline-block; width: 0.72em; height: 0.72em; margin-left: 0.04em; overflow: hidden; vertical-align: baseline; }
.hero-slot .brand { position: absolute; inset: 0; width: 100%; height: 100%; filter: grayscale(1) opacity(0.5); transition: filter 0.6s; }
.hero-slot .brand + .brand { transform: translateY(110%); }
.hero.is-open .hero-slot .brand { filter: none; }
.hero-emoji { display: inline-block; width: 0.96em; height: auto; margin-left: 0.04em; vertical-align: baseline; }

/* Второй ряд: верх абзаца и верх чата на одной горизонтали, низ тоже. */
.hero-text { position: relative; z-index: 2; grid-column: 1 / span 6; grid-row: 2; display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; margin-block: 32px; }
.hero .lead { margin-top: 0; max-width: 30em; font-size: 20px; line-height: 28px; }
/* Три условия пробника значками: читаются до абзаца. */
.hero-perks { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 17px; line-height: 24px; font-weight: 700; }
.hero-perks li { display: flex; align-items: center; gap: 8px; }
.hero-perks .hgi-stroke { font-size: 24px; color: var(--azure); }
.hero .actions { margin-top: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.hero .actions .btn { min-height: 64px; padding-inline: 32px; font-size: 19px; }
/* Подчёркнутая ссылка остаётся строкой, а нажимается на 44 px. */
.hero .link { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 17px; line-height: 24px; background: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hero .link::after { content: ""; position: absolute; inset: -10px 0; }

/* Тенёк на колонках 8–12, стоит на чёрной полосе, развёрнут телефоном к чату. */
.hero-figure { position: relative; z-index: 1; grid-column: 8 / -1; grid-row: 1 / span 2; align-self: end; justify-self: start; height: var(--fig-h); aspect-ratio: 644 / 900; margin-bottom: -2px; transform-origin: 50% 100%; pointer-events: none; will-change: transform; }
.hero-body { position: relative; width: 100%; height: 100%; }
.hero-mascot { width: 100%; height: 100%; transform: scaleX(-1); }

/* Подписи на полосе: те же линии, что у заголовка и цветного поля. */
.hero-fact { position: relative; z-index: 4; grid-row: 3; align-self: center; display: flex; align-items: center; gap: 12px; background: none; font-size: 16px; line-height: 24px; color: var(--mute); }
.hero-fact.far { grid-column: 1 / span 7; }
.hero-fact.near { grid-column: 9 / span 4; }
.hero-fact b { font-weight: 700; color: var(--fg); }
.hero-fact .logos { flex: none; flex-wrap: nowrap; }
.hero-fact .plate { height: 32px; min-width: 32px; padding: 6px; }

/* Низкие окна ноутбуков: те же линии плотнее, чтобы сцена осталась в один экран. */
@media (max-height: 760px) and (min-width: 961px) {
  .hero { --pool: calc(80px + mod(100dvh, 8px)); }
  .hero .hero-grid { padding-top: 72px; }
  .hero-text { gap: 16px; margin-block: 16px; }
}

@media (max-width: 960px) {
  .hero .actions .btn { width: 100%; }
  .hero { --row: 56px; --row: round(down, 15vw, 8px); --fig-h: 116vw; --pool: 256px; --flood: 0px; }
  .hero-field { left: 0; top: auto; height: calc(var(--fig-h) + 32px); }
  .hero .drops { left: 8%; right: 8%; height: 220px; }
  .hero .hero-grid { position: relative; display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding-top: 88px; }
  .hero-text { margin-block: 24px; }
  .hero-figure { align-self: center; margin-top: 64px; }
  .hero-fact { flex-direction: column; align-items: flex-start; gap: 8px; align-self: stretch; }
  .hero-fact.far { margin-top: 24px; }
  .hero-fact.near { margin-top: 24px; padding-bottom: 32px; }
}

/*
 * Строка приложений: продолжение лужи с первого экрана. Значки покачиваются
 * на поверхности и отражаются в ней, волна идёт вдоль строки.
 */
/* Обрезка только по ширине: иначе капающий край снизу срезается вместе со строкой. */
.ticker { padding-block: 24px 72px; overflow-x: clip; overflow-y: visible; }
.ticker-head { position: relative; z-index: 1; }
.ticker-title { grid-column: 1 / span 8; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }

.ticker .row { margin-top: 40px; gap: 0; font-size: inherit; line-height: inherit; letter-spacing: 0; font-weight: 500; }
.ticker .row > span::after { display: none; }

.ticker .row > .ticker-app { display: grid; gap: 0; grid-template-columns: auto auto; align-items: center; column-gap: 20px; padding-right: 72px; }
.ticker-app-float { position: relative; animation: ticker-float 3.6s ease-in-out infinite; animation-delay: var(--lag); will-change: transform; }
@keyframes ticker-float { 0%, 100% { transform: translateY(-8px) rotate(-2deg); } 50% { transform: translateY(8px) rotate(2deg); } }
.ticker-app .plate { width: 104px; height: 104px; border-radius: var(--r-l); box-shadow: 0 0 0 1px var(--line), 0 0 40px rgb(75 169 240 / 0.28); }
.ticker-app .plate img { width: 100%; height: 100%; }
/* Отражение в глянцевой туши под значком. */
.ticker-app-mirror { position: absolute; left: 0; top: calc(100% + 2px); transform: scaleY(-1); opacity: 0.32; filter: blur(2px); -webkit-mask: linear-gradient(to top, #000, transparent 46%); mask: linear-gradient(to top, #000, transparent 46%); }
.ticker-app-name { display: block; font-size: clamp(28px, 3vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.ticker-app-where { display: flex; gap: 12px; margin-top: 8px; font-size: 15px; line-height: 20px; color: var(--mute); white-space: nowrap; }
.ticker-app-where span { display: inline-flex; align-items: center; gap: 4px; }
.ticker-app-where .hgi-stroke { font-size: 18px; color: var(--accent); }

/* Без движения строка стоит рядами, все шесть приложений видны. */
.ticker .row.still { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: auto; max-width: 1264px; margin-inline: auto; padding-inline: var(--side); column-gap: var(--gap); row-gap: 40px; }
.ticker .row.still > .ticker-app { justify-content: start; padding-right: 0; }
.ticker .row.still .dup, .ticker .row.still .ticker-app-mirror { display: none; }

@media (max-width: 960px) {
  .ticker { padding-block: 16px 64px; }
  .ticker-title { grid-column: 1 / -1; }
  .ticker .row { margin-top: 28px; }
  .ticker .row > .ticker-app { column-gap: 14px; padding-right: 40px; }
  .ticker-app .plate { width: 72px; height: 72px; }
  .ticker-app-where { gap: 8px; font-size: 14px; }
  .ticker .row.still { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-app-float { animation: none; }
}

/*
 * Секция «shade»: маскот стоит на ячейке с тумблером, от неё идёт провод к двум группам сайтов.
 * Цвет текста и плиток меняется с задержкой --in / --out: столько туше идти до этого места.
 * Значения задаёт js/sections/shade.js.
 */

.shade { transition: none; }
.shade.screen { padding-block: 88px 44px; }
.shade .flood { z-index: 0; }

.shade-grid { position: relative; row-gap: 32px; align-items: end; }
.shade-title { grid-column: 1 / span 6; font-size: clamp(34px, 3.9vw, 56px); line-height: 1.04; text-wrap: wrap; }
.shade-title .hl { white-space: nowrap; }
.shade-lead { grid-column: 7 / span 6; max-width: none; margin: 0; }
h2 + .shade-lead { margin-top: 0; }
.shade-stage { grid-column: 1 / span 5; position: relative; display: flex; flex-direction: column; align-self: stretch; justify-content: flex-end; }
.shade-groups { grid-column: 7 / span 6; position: relative; display: flex; flex-direction: column; gap: 24px; align-self: stretch; }

/* Смена цвета — вместе с кромкой туши. */
.shade .w, .fw, .wire-tag { transition: color 0.2s linear; }
.shade.on .w, .shade.on .fw, .shade.on .wire-tag { transition-delay: var(--in, 0s); }
.shade:not(.on) .w, .shade:not(.on) .fw, .shade:not(.on) .wire-tag { transition-delay: var(--out, 0s); }

/* ——— Маскот: три слоя одного рисунка ——— */
.rig { position: relative; z-index: 1; width: min(calc(100% + 56px), 60dvh); aspect-ratio: 884 / 900; margin: 0 -40px -36px auto; cursor: pointer; filter: saturate(0.08) contrast(0.92); transition: filter 0.5s linear 0.1s; }
.shade:not(.on) .rig { transition-delay: 0.2s; }
.shade.on .rig { filter: none; }
.rig img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.rig-base { clip-path: polygon(0% 56.1%, 23.2% 56.1%, 26.6% 63.9%, 28.3% 66.7%, 39% 67.3%, 45.8% 65.8%, 49.8% 60.6%, 57.7% 66.7%, 57.7% 76.7%, 59% 76.7%, 61.1% 72.8%, 64.1% 70.2%, 68.4% 69.8%, 70.4% 66.4%, 72.4% 61.8%, 75.1% 60.9%, 76% 65.3%, 83.7% 61.8%, 84.8% 60.6%, 89.4% 61.1%, 90.5% 66.7%, 90.5% 82.2%, 100% 84.4%, 100% 100%, 0% 100%); }
.rig-spark { clip-path: polygon(54.8% 0%, 100% 0%, 100% 84.4%, 90.5% 82.2%, 90.5% 66.7%, 89.4% 61.1%, 84.8% 60.6%, 83.7% 61.8%, 76% 65.3%, 75.1% 60.9%, 72.4% 61.8%, 70.4% 66.4%, 68.4% 69.8%, 64.1% 70.2%, 61.1% 72.8%, 59% 76.7%, 57.7% 76.7%, 57.7% 66.7%, 49.8% 60.6%, 51.5% 58.9%, 57.7% 55.6%, 67.9% 52.2%, 69.9% 50.6%, 76% 65.3%, 83.7% 61.8%, 76.2% 48.4%, 78.1% 44.4%, 72.4% 27.3%, 62.9% 27.3%, 60% 27.8%, 54.8% 27.8%); opacity: 0; transition: opacity 0.2s linear; }
.shade.on .rig-spark { opacity: 1; transition-delay: 0.14s; }
.rig-body { clip-path: polygon(0% 0%, 54.8% 0%, 54.8% 27.8%, 60% 27.8%, 62.9% 27.3%, 72.4% 27.3%, 78.1% 44.4%, 76.2% 48.4%, 83.7% 61.8%, 76% 65.3%, 69.9% 50.6%, 67.9% 52.2%, 57.7% 55.6%, 51.5% 58.9%, 45.8% 65.8%, 39% 67.3%, 28.3% 66.7%, 26.6% 63.9%, 23.2% 56.1%, 0% 56.1%); transform-origin: 82.35% 66.67%; transform: rotate(-6deg); transition: transform 0.55s var(--settle); }
.shade.on .rig-body { transform: rotate(0deg); }
@media (hover: hover) {
  .shade-stage:has(.power:hover) .rig-body, .rig:hover .rig-body { transform: rotate(-4deg); }
  .shade.on .shade-stage:has(.power:hover) .rig-body, .shade.on .rig:hover .rig-body { transform: rotate(-1.2deg); }
}

/* Реплика Тенька у рукояти: зовёт нажать. */
.shade-hint { position: absolute; z-index: 3; right: -32px; top: 16px; max-width: none; color: var(--ink); white-space: nowrap; will-change: auto; }

/* Свечение за маскотом: в туше чёрное тело читается на голубом. */
.rig-glow { position: absolute; z-index: 0; right: -40px; bottom: 40px; width: min(calc(100% + 56px), 60dvh); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgb(75 169 240 / 0.5), rgb(28 116 207 / 0.22) 44%, transparent 70%); opacity: 0; transition: opacity 0.6s linear; pointer-events: none; }
.shade.on .rig-glow { opacity: 1; transition-delay: 0.3s; }

/* ——— Ячейка с тумблером: на ней стоит маскот ——— */
.shade .power { position: relative; z-index: 2; margin-top: 0; max-width: none; min-height: 96px; padding: 16px 24px; gap: 16px; }
.shade .power b { font-size: 24px; line-height: 28px; font-weight: 800; letter-spacing: -0.02em; }
.shade .power small { font-size: 16px; line-height: 24px; }
.shade .switch { width: 88px; height: 52px; }
.shade .switch::after { top: 4px; left: 4px; width: 44px; height: 44px; }
.shade.on .switch::after { transform: translateX(36px); }

/* ——— Группы сайтов ——— */
.group { display: flex; flex-direction: column; gap: 16px; }
.group-open { flex: 1; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 16px; }
.group-head h3 { font-size: 32px; line-height: 36px; font-weight: 800; letter-spacing: -0.03em; }
.group-count { font-size: 21px; line-height: 36px; font-weight: 700; color: var(--mute); white-space: nowrap; }
.group-count b { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; color: var(--fg); }
.shade.on .group-open .group-count b { color: var(--accent); }
.group-note { display: none; flex-basis: 100%; font-size: 16px; line-height: 24px; color: var(--mute); }
.group-fine { flex-basis: 100%; font-size: 14px; line-height: 20px; color: var(--mute); text-wrap: pretty; }

.spots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px var(--gap); }
.group-open .spots { flex: 1; grid-auto-rows: 1fr; }
.group-open .spot { padding: 12px 16px; gap: 4px; }
.group-kept .spots { grid-auto-rows: 96px; }

.spot { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 96px; padding: 16px; border-radius: var(--r-m); background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px rgb(10 12 17 / 0.08); will-change: transform; }
.group-kept .spot { justify-content: center; align-items: center; }
.spot b { font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; }
.spot .plate { height: auto; min-width: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; align-self: flex-start; }
.spot .brand { width: 56px; height: 56px; }
.group-kept .spot .plate { align-self: center; height: 32px; }
.group-kept .plate img { width: 100%; max-width: 132px; height: auto; }

/* Заблокированное: пустая плитка, серый знак, замок. Включено: плитка загорается окном. */
.group-open .spot { background: transparent; color: var(--mute); box-shadow: inset 0 0 0 1px rgb(10 12 17 / 0.16); transition: background-color 0.25s linear, color 0.25s linear, box-shadow 0.25s linear; }
.group-open .spot .plate { filter: grayscale(1); opacity: 0.4; transition: filter 0.25s linear, opacity 0.25s linear; }
.group-open .spot b { text-decoration: line-through; text-decoration-thickness: 2px; }
.spot-text { display: block; }
.spot b { display: block; }
.spot small { display: block; font-size: 14px; line-height: 20px; font-weight: 500; }
.group-kept .spot { gap: 4px; }
.group-kept .spot small, .shade.on .group-open .spot small { opacity: 0.72; }
/* Обе подписи в одной ячейке, видна подпись текущего состояния. */
.spot-status { display: grid; min-height: 40px; align-content: start; }
.spot-status small { grid-area: 1 / 1; transition: visibility 0s linear; transition-delay: var(--out, 0s); }
.spot-status .now { visibility: hidden; }
.shade.on .spot-status small { transition-delay: var(--in, 0s); }
.shade.on .spot-status .now { visibility: visible; }
.shade.on .spot-status .was { visibility: hidden; }
.shade.on .group-open .spot { background: var(--white); color: var(--ink); box-shadow: 0 0 0 1px rgb(75 169 240 / 0.6), 0 0 40px rgb(75 169 240 / 0.32); transition-delay: var(--in, 0s); }
.shade.on .group-open .spot .plate { filter: none; opacity: 1; transition-delay: var(--in, 0s); }
.shade.on .group-open .spot b { text-decoration: none; }
.shade:not(.on) .group-open .spot, .shade:not(.on) .group-open .spot .plate { transition-delay: var(--out, 0s); }

.spot-state { position: absolute; top: 12px; right: 16px; width: 24px; height: 24px; }
.spot-state i { position: absolute; inset: 0; color: currentColor; transition: opacity 0.2s linear, transform 0.35s var(--settle); transition-delay: var(--out, 0s); }
.shade.on .spot-state i { transition-delay: var(--in, 0s); }
.spot-state .hgi-tick-02 { opacity: 0; transform: scale(0.4); color: var(--azure); }
.shade.on .spot-state .hgi-tick-02 { opacity: 1; transform: scale(1); }
.shade.on .spot-state .hgi-square-lock-02 { opacity: 0; }

/* ——— Провод ——— */
.wireset { position: absolute; inset: 0; pointer-events: none; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wire { fill: none; stroke-width: 3; stroke-linecap: round; }
.wire-dead { stroke: var(--mute); stroke-dasharray: 2 10; opacity: 0.7; transition: opacity 0.3s linear; }
.shade.on .wire-dead { opacity: 0; }
.wire-lit .wire { stroke: var(--blue); }
.wire-lit { clip-path: inset(-20px 100% -20px -20px); filter: drop-shadow(0 0 8px rgb(75 169 240 / 0.8)); transition: clip-path 0.6s var(--flow); }
.shade.on .wire-lit { clip-path: inset(-20px -20px -20px -20px); transition-delay: 0.3s; }
.wire-direct { stroke: var(--fg); transition: stroke 0.2s linear 0.3s; }

.wire-tag { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 6px; transform: translate(-50%, -50%); font-size: 14px; line-height: 20px; white-space: nowrap; }
.wire-tag b { font-weight: 700; }
.wire-plain { color: var(--mute); }
.wire-gate { min-height: 32px; padding: 0 10px 0 8px; border-radius: var(--r-s); background: var(--bg); color: var(--mute); box-shadow: inset 0 0 0 1px var(--mute); }
.wire-gate .hgi-stroke { font-size: 20px; color: currentColor; }
.wire-gate .hgi-global { display: none; }
.shade.on .wire-gate { background: var(--azure); color: #fff; box-shadow: none; }
.shade.on .wire-gate .hgi-global { display: block; }
.shade.on .wire-gate .hgi-square-lock-02 { display: none; }

.pulse { position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; offset-rotate: 0deg; offset-distance: 0%; opacity: 0; background: var(--fg); animation: shade-run 2.4s linear infinite; }
.pulse-up { background: #fff; box-shadow: 0 0 12px var(--blue); animation-name: none; }
.shade.on .pulse-up { animation-name: shade-run; }
@keyframes shade-run { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .pulse { display: none; }
}

/* Низкие ноутбуки: сцена ужимается вместе с окном, секция остаётся в экран. */
@media (min-width: 961px) and (max-height: 800px) {
  .shade.screen { padding-block: 72px 20px; }
  .shade-grid { row-gap: 8px; }
  .rig, .rig-glow { width: min(calc(100% + 56px), 54dvh); }
  .rig { margin-bottom: -24px; }
  .shade .power { min-height: 72px; padding-block: 8px; }
  .group-kept .spots { grid-auto-rows: 72px; }
  .group-kept .spot { min-height: 72px; padding-block: 8px; }
  .group-kept .spot .plate { height: 24px; }
  .group-open .spot { min-height: 80px; padding: 8px 12px; gap: 4px; }
  .shade-title { font-size: 44px; }
  .group-head h3 { font-size: 26px; line-height: 32px; }
  .group { gap: 12px; }
  .spot .brand { width: 32px; height: 32px; }
  .spot b { font-size: 16px; line-height: 20px; }
  .shade-lead { font-size: 18px; line-height: 26px; }
  .shade-groups { gap: 20px; }
}

/* ——— Телефон: сцена, под ней группы столбиком ——— */
@media (max-width: 960px) {
  .shade.screen { padding-block: 88px 56px; }
  .shade-grid { row-gap: 24px; }
  .shade-title, .shade-lead, .shade-stage, .shade-groups { grid-column: 1 / -1; }
  .shade-title { font-size: clamp(34px, 9vw, 52px); }
  .wireset { display: none; }
  .rig { width: min(100%, 420px); margin: 0 auto -24px; }
  .rig-glow { left: 0; right: 0; bottom: 56px; width: min(100%, 420px); margin-inline: auto; }
  .shade .power { min-height: 80px; padding: 12px 16px; }
  .shade .power b { font-size: 21px; line-height: 26px; }
  .shade .power small { font-size: 14px; line-height: 20px; }
  .shade .switch { width: 72px; height: 44px; }
  .shade .switch::after { width: 36px; height: 36px; }
  .shade.on .switch::after { transform: translateX(28px); }
  .group-head h3 { font-size: 26px; line-height: 32px; }
  .group-note { display: block; }
  .group-fine { margin-top: 4px; }
  .spots { gap: 8px; }
  .spot { min-height: 96px; padding: 12px; }
  .group-open .spots { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
  .group-kept .spots { grid-auto-rows: 88px; }
  .group-kept .spot { min-height: 88px; padding: 8px; }
  .shade-hint { right: 0; top: 0; }
  .spot b { font-size: 14px; line-height: 20px; }
  .spot .brand { width: 44px; height: 44px; }
  .spot-state { top: 12px; right: 8px; width: 20px; height: 20px; }
  .spot-state i { font-size: 20px; }
}

/*
 * Секция «numbers»: небо сверху, снизу огромная чернильная планета. Нижний край
 * шара — та же тушь, что у следующей секции, поэтому стыка не видно.
 * Три числа стоят на теле планеты под тем, что объясняют: Европа, дуга, человек.
 * Все классы с приставкой nf-: таблицы стилей секций действуют на всю страницу.
 */
[data-section="numbers"] {
  z-index: 3;            /* шар заменяет собой капающий край следующей секции */
  overflow: hidden;
  justify-content: flex-start;
  padding-block: 80px 0;
}

/* ——— Сцена ——— */
.nf-scene { position: absolute; inset: 0; cursor: pointer; }
.nf-canvas, .nf-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.nf-poster { object-fit: cover; object-position: center bottom; }
.nf-hero { position: absolute; left: 70.4%; top: 43%; height: min(41%, 448px); aspect-ratio: 643 / 900; transform: translate(-50%, -96%); pointer-events: none; will-change: transform; }
.nf-hero img { width: 100%; height: 100%; transform: scaleX(-1); }
.nf-bubble { position: absolute; left: 90%; top: 12%; padding: 8px 16px; border-radius: 18px 18px 18px 4px; background: var(--azure); color: var(--white); font-size: 15px; line-height: 20px; font-weight: 600; white-space: nowrap; }

.nf-head { position: relative; z-index: 1; pointer-events: none; }

/* ——— Числа на теле планеты ——— */
.nf-facts { position: relative; z-index: 1; margin-top: auto; padding-bottom: 24px; background: none; }
.nf-fact { position: relative; grid-column: span 4; display: flex; flex-direction: column; min-width: 0; padding-top: 12px; }
.nf-rule { position: absolute; inset: 0 0 auto; height: 1px; background: var(--line); }
.nf-fact .num { font-size: 72px; line-height: 72px; font-weight: 800; letter-spacing: -0.04em; white-space: nowrap; }
.nf-fact .num small { font-size: 0.4em; letter-spacing: -0.02em; }
.nf-say { margin-top: 4px; font-size: 16px; line-height: 24px; color: var(--mute); text-wrap: pretty; }
.nf-note { font-size: 14px; line-height: 20px; color: var(--mute); text-wrap: pretty; }

/* Легенда планеты */
.nf-legend { margin-top: 12px; }
.nf-legend p:not(.nf-note) { display: flex; align-items: center; gap: 8px; font-size: 15px; line-height: 24px; font-weight: 600; }
.nf-legend .nf-note { margin-top: 4px; }
.nf-mark { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.nf-mark-now { background: var(--blue); box-shadow: var(--eye); }
.nf-mark-off { border: 1.5px solid rgb(255 255 255 / 0.6); }

/* Заряд соединения: день — отрезок */
.nf-charge { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 16px; }
.nf-cell { display: block; height: 16px; border-radius: 4px; background: var(--ink-3); overflow: hidden; }
.nf-cell b { display: block; height: 100%; background: var(--blue); transform-origin: left; }
.nf-charge.wait .nf-cell b { transform: scaleX(0); transition: transform 0.6s var(--flow); }
.nf-charge.wait.on .nf-cell b { transform: none; }
.nf-charge.wait.on .nf-cell:nth-child(2) b { transition-delay: 0.4s; }
.nf-more { background: none; border: 1.5px dashed rgb(75 169 240 / 0.6); }
.nf-charge-say { display: grid; grid-template-columns: 1fr 1fr; column-gap: 4px; margin-top: 4px; font-size: 14px; line-height: 20px; font-weight: 600; }
.nf-go { align-self: flex-start; margin-top: 16px; }

/* Цена: полосы от нуля, разница с месячной отмечена хвостом */
.nf-bars { margin-top: 12px; }
.nf-bars p { display: grid; grid-template-columns: 64px minmax(0, 1fr) 56px; column-gap: 8px; align-items: center; height: 24px; font-size: 14px; line-height: 20px; font-weight: 600; }
.nf-bars i { position: relative; display: flex; height: 12px; }
.nf-bars b { display: block; width: calc(var(--p) / 99 * 100%); height: 100%; border-radius: 3px 0 0 3px; background: var(--deep); transform-origin: left; }
.nf-bars em { flex: 1; display: flex; align-items: center; justify-content: flex-end; height: 100%; font-style: normal; font-size: 14px; line-height: 12px; color: var(--blue); border-right: 1.5px dashed rgb(75 169 240 / 0.6); padding-right: 4px; }
.nf-bars strong { text-align: right; font-weight: 800; }
.nf-win { color: var(--white); }
.nf-win b { background: var(--blue); }
.nf-bars + .nf-note { margin-top: 8px; }

/* Невысокое окно компьютера: те же три числа, плотнее. */
@media (min-width: 961px) and (max-height: 840px) {
  [data-section="numbers"] { padding-block: 72px 0; }
  [data-section="numbers"] h2 { font-size: 44px; }
  .nf-fact .num { font-size: 56px; line-height: 56px; }
  .nf-say { font-size: 15px; line-height: 20px; }
  .nf-facts { padding-bottom: 16px; }
  .nf-legend .nf-note { display: none; }
  .nf-go { margin-top: 8px; min-height: 44px; }
}

/* Телефон: шар сверху, числа друг под другом на туши. */
@media (max-width: 960px) {
  [data-section="numbers"] { padding-block: 88px 0; background: var(--ink); }
  .nf-scene { inset: 0 0 auto; height: calc(380px + 30vw); background: var(--snow); }
  .nf-hero { height: 200px; }
  .nf-bubble { left: auto; right: 92%; top: 4%; border-radius: 18px 18px 4px 18px; }
  .nf-facts { margin-top: calc(380px + 30vw - 88px - 72px); row-gap: 40px; padding-bottom: 48px; }
  .nf-fact { grid-column: 1 / -1; }
  .nf-go { align-self: stretch; }
}

/*
 * Секция «routes»: схема трёх маршрутов от одного телефона.
 * Сцена масштабируется одной единицей --u: на компьютере ширина схемы 1200 единиц
 * (12 колонок: начало колонки n = (n − 1) · 102), на телефоне — 358.
 * Координаты узлов заданы в этих единицах и совпадают с координатами линий в SVG.
 */
.routes.screen { padding-block: 88px 48px; overflow: clip; overflow-clip-margin: 96px; }

/* ——— Заголовок: одна строка над схемой, пояснение рядом ——— */
.rt-head { align-items: end; }
.rt-title { grid-column: 1 / span 8; font-size: clamp(40px, 3.9vw, 56px); }
.rt-lead { grid-column: 9 / span 4; font-size: 18px; line-height: 26px; }
.routes h2 + .rt-lead { margin-top: 0; }

/* ——— Сцена ——— */
.rt-map { container-type: inline-size; margin-top: 24px; }
.rt-stage {
  --u: calc(100cqw / 1200);
  --t14: max(14px, calc(14 * var(--u)));
  --t18: max(16px, calc(18 * var(--u)));
  position: relative; height: calc(620 * var(--u));
}
.rt-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rt-tall { display: none; }
.rt-n { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u)); }

/* ——— Характер путей: прямая без остановок, светящаяся река, пунктир через заставу ——— */
.rt-way-direct { stroke: var(--fg); stroke-width: 2; opacity: 0.72; }
.rt-river { stroke: var(--azure); stroke-width: 150; opacity: 0.42; filter: blur(32px); }
.rt-way-europe { stroke: var(--azure); stroke-width: 14; }
.rt-way-core { stroke: var(--blue); stroke-width: 4; }
.rt-way-white { stroke: var(--sky); stroke-width: 3; stroke-dasharray: 2 11; }
.rt-way-fan { stroke: var(--blue); stroke-width: 2; opacity: 0.6; }
.rt-trunk { stroke: #fff; stroke-width: 6; }
.rt-dot-direct { fill: #fff; }
.rt-dot-head { fill: #fff; filter: drop-shadow(0 0 8px var(--blue)); }
.rt-dot-tail { fill: var(--blue); opacity: 0.7; }
.rt-dot-white { fill: var(--sky); filter: drop-shadow(0 0 6px var(--sky)); }
.rt-dot-fan { fill: var(--blue); }

/* ——— Исток: телефон ——— */
.rt-phone { --x: 0; --y: 140; --w: 180; height: calc(360 * var(--u)); padding: calc(8 * var(--u)); border-radius: calc(28 * var(--u)); background: var(--ink-3); box-shadow: 0 0 0 1px var(--line), 0 0 72px rgb(75 169 240 / 0.28); }
.rt-screen { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: calc(8 * var(--u)); height: 100%; padding: calc(16 * var(--u)); border-radius: calc(20 * var(--u)); background: linear-gradient(180deg, var(--ink-2) 40%, var(--deep)); }
.rt-screen { position: relative; overflow: hidden; }
.rt-screen::before { content: ""; position: absolute; top: calc(10 * var(--u)); left: 50%; width: calc(56 * var(--u)); height: calc(16 * var(--u)); margin-left: calc(-28 * var(--u)); border-radius: calc(8 * var(--u)); background: var(--ink); }
.rt-self { width: 100%; margin-bottom: auto; margin-top: calc(24 * var(--u)); filter: drop-shadow(0 0 16px rgb(75 169 240 / 0.5)); }
.rt-screen b { font-size: var(--t18); line-height: 1.25; font-weight: 700; }
.rt-screen small { font-size: var(--t14); line-height: 1.4; color: var(--fg); }
.rt-screen .switch { margin-block: calc(4 * var(--u)); }

/* Кнопка стоит над истоком: проверять надо на этом самом телефоне. */
.rt-try { --x: 0; --y: 44; --w: 180; }
.rt-try .btn { width: 100%; min-height: calc(80 * var(--u)); padding: 0 calc(16 * var(--u)); justify-content: flex-start; font-size: var(--t18); line-height: 1.25; text-align: left; white-space: normal; }

/* ——— Развилка и значки на путях ——— */
.rt-fork, .rt-tile { display: grid; place-items: center; border-radius: var(--r-l); }
.rt-fork { --x: 204; --y: 284; --w: 72; height: calc(72 * var(--u)); background: var(--azure); box-shadow: 0 0 48px rgb(75 169 240 / 0.6); }
.rt-fork .hgi-stroke { font-size: calc(36 * var(--u)); color: #fff; transform: rotate(90deg); }
.rt-tile { height: calc(64 * var(--u)); background: var(--ink-2); box-shadow: 0 0 0 1px var(--line); }
.rt-tile .hgi-stroke { font-size: calc(32 * var(--u)); }
.rt-t-direct { --x: 306; --y: 32; --w: 64; }
.rt-t-block { --x: 306; --y: 288; --w: 64; box-shadow: 0 0 0 1px var(--blue); }
.rt-t-white { --x: 306; --y: 520; --w: 64; }

/* ——— Подписи ——— */
.rt-text b { display: block; font-size: var(--t18); line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.rt-text small { display: block; font-size: var(--t14); line-height: 1.4; color: var(--mute); }
.rt-cap { font-size: var(--t14); line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; color: var(--mute); }
/* Подпись над линией растёт вверх: при переносе строки не наезжает на линию. */
.rt-what-direct, .rt-what-white, .rt-what-block { top: auto; bottom: calc((620 - var(--y)) * var(--u)); }
.rt-what-direct { --x: 380; --y: 56; --w: 228; }
.rt-via-direct { --x: 380; --y: 72; --w: 228; }
.rt-what-block { --x: 306; --y: 280; --w: 168; }
.rt-what-white { --x: 380; --y: 544; --w: 228; }
.rt-via-block { --x: 714; --y: 146; --w: 180; }
.rt-via-block b { font-size: max(20px, calc(24 * var(--u))); }
.rt-big { font-size: 1.75em; font-weight: 800; letter-spacing: -0.04em; color: var(--accent); }
.rt-cap-direct { --x: 612; --y: 106; --w: 588; }
.rt-cap-merge { --x: 820; --y: 436; --w: 128; }

/* ——— Концы путей ——— */
.rt-plates { --x: 612; --y: 28; --w: 588; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(24 * var(--u)); }
.rt-plates .plate { height: calc(72 * var(--u)); padding: 0 calc(16 * var(--u)); border-radius: var(--r-l); }
.rt-plates .plate img { width: 100%; height: auto; max-width: none; max-height: calc(36 * var(--u)); object-fit: contain; }
.rt-sites { --x: 1020; --y: 156; --w: 180; display: grid; row-gap: calc(12 * var(--u)); }
.rt-sites li { display: flex; align-items: center; gap: calc(12 * var(--u)); height: calc(64 * var(--u)); }
.rt-sites b { font-size: var(--t18); line-height: 1.2; font-weight: 700; }
.rt-sites .plate { width: calc(64 * var(--u)); height: calc(64 * var(--u)); min-width: 0; padding: 0; border-radius: var(--r-l); }
.rt-sites .brand { width: calc(40 * var(--u)); height: calc(40 * var(--u)); }

/* ——— 81 сервер: каждая точка — сервер, горящая — выбранный автоподбором ——— */
.rt-server { --x: 714; --y: 230; --w: 180; height: calc(180 * var(--u)); padding: calc(12 * var(--u)); border-radius: var(--r-l); background: var(--ink-2); box-shadow: 0 0 0 1px var(--blue), 0 0 64px rgb(75 169 240 / 0.35); }
.rt-matrix { position: relative; width: 100%; height: 100%; background: radial-gradient(circle at center, var(--mute) 22%, transparent 26%) 0 0 / 11.1111% 11.1111%; }
.rt-matrix i { position: absolute; left: 0; top: 0; width: 11.1111%; height: 11.1111%; border-radius: 50%; background: #fff; box-shadow: 0 0 calc(16 * var(--u)) calc(3 * var(--u)) var(--blue); transform: translate(300%, 200%); animation: rt-pick 7.2s step-end infinite; }
@keyframes rt-pick {
  0% { transform: translate(300%, 200%); }
  12.5% { transform: translate(700%, 500%); }
  25% { transform: translate(100%, 700%); }
  37.5% { transform: translate(500%, 100%); }
  50% { transform: translate(800%, 300%); }
  62.5% { transform: translate(200%, 400%); }
  75% { transform: translate(600%, 800%); }
  87.5% { transform: translate(400%, 600%); }
}

/* ——— Застава ——— */
.rt-transit { --x: 612; --y: 504; --w: 282; display: flex; align-items: center; gap: calc(12 * var(--u)); height: calc(96 * var(--u)); padding: 0 calc(16 * var(--u)); border-radius: var(--r-l); background: var(--ink-2); box-shadow: 0 0 0 1px var(--sky); }
.rt-transit .rt-tile { flex: none; width: calc(64 * var(--u)); background: var(--ink-3); box-shadow: none; border-radius: var(--r-s); }

/* ——— Маскот летит по реке: хвост на пути, кулак у серверов ——— */
.rt-nodes { position: absolute; inset: 0; }
/* Подписи всегда поверх маскота: на узких окнах хвост доходит до текста. */
.rt-what-block, .rt-what-white { z-index: 1; }
.rt-fly { --x: 404; --y: 176; --w: 336; pointer-events: none; }
.rt-fly img { width: 100%; animation: rt-hover 3.6s ease-in-out infinite alternate; filter: drop-shadow(0 0 24px rgb(75 169 240 / 0.45)); }
@keyframes rt-hover { from { transform: translate(-10px, 6px) rotate(-1.5deg); } to { transform: translate(10px, -6px) rotate(1.5deg); } }

/* Линии расходятся от телефона, маскот влетает от развилки: прокрутка ведёт глаз по схеме */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 1001px) {
    .rt-wide { animation: rt-wipe linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
    .rt-fly { animation: rt-arrive linear both; animation-timeline: view(); animation-range: entry 30% entry 100%; }
  }
}
@keyframes rt-wipe { from { clip-path: inset(-120px 100% -120px -40px); } to { clip-path: inset(-120px -40px -120px -40px); } }
@keyframes rt-arrive { from { transform: translate(-200px, 90px) scale(0.5); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .rt-pulse { display: none; }
}

/* ——— Узко: та же схема сверху вниз ——— */
@media (max-width: 1000px) {
  .routes.screen { padding-block: 88px 56px; }
  .rt-title, .rt-lead { grid-column: 1 / -1; }
  .routes h2 + .rt-lead { margin-top: 16px; }
  .rt-map { max-width: 440px; margin: 32px auto 0; }
  .rt-stage { --u: calc(100cqw / 358); height: calc(1740 * var(--u)); }
  .rt-wide { display: none; }
  .rt-tall { display: block; }
  .rt-way-europe { stroke-width: 8; }
  .rt-way-core { stroke-width: 3; }
  .rt-river { stroke-width: 88; filter: blur(20px); }

  .rt-phone { --x: 0; --y: 0; --w: 358; height: calc(88 * var(--u)); padding: calc(6 * var(--u)); border-radius: calc(22 * var(--u)); }
  .rt-screen { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: center; column-gap: calc(12 * var(--u)); row-gap: 0; padding: 0 calc(12 * var(--u)); border-radius: calc(16 * var(--u)); background: linear-gradient(90deg, var(--ink-2) 40%, var(--deep)); }
  .rt-screen::before { display: none; }
  .rt-self { grid-row: 1 / span 2; width: calc(60 * var(--u)); margin: 0; align-self: center; }
  .rt-screen b { grid-column: 2; align-self: end; }
  .rt-screen small { grid-column: 2; grid-row: 2; align-self: start; }
  .rt-screen .switch { grid-column: 3; grid-row: 1 / span 2; align-self: center; margin: 0; }

  .rt-fork { --x: 0; --y: 116; --w: 44; height: calc(44 * var(--u)); border-radius: var(--r-m); }
  .rt-fork .hgi-stroke { font-size: calc(24 * var(--u)); transform: rotate(180deg); }
  .rt-tile { height: calc(56 * var(--u)); }
  .rt-tile .hgi-stroke { font-size: calc(28 * var(--u)); }

  .rt-what-direct, .rt-what-white, .rt-what-block { top: calc(var(--y) * var(--u)); bottom: auto; }
  .rt-t-direct { --x: 56; --y: 190; --w: 56; }
  .rt-what-direct { --x: 124; --y: 190; --w: 234; }
  .rt-via-direct { --x: 124; --y: 252; --w: 234; }
  .rt-plates { --x: 56; --y: 312; --w: 302; grid-template-columns: minmax(0, 1fr); gap: calc(8 * var(--u)); }
  .rt-plates .plate { height: calc(48 * var(--u)); border-radius: var(--r-m); }
  .rt-plates .plate img { width: auto; height: calc(24 * var(--u)); }
  .rt-cap-direct { --x: 0; --y: 1624; --w: 358; }
  .rt-try { --x: 0; --y: 1680; --w: 358; }
  .rt-try .btn { min-height: calc(56 * var(--u)); justify-content: center; }

  .rt-t-white { --x: 56; --y: 530; --w: 56; }
  .rt-what-white { --x: 124; --y: 530; --w: 200; }
  .rt-transit { --x: 56; --y: 620; --w: 302; height: calc(88 * var(--u)); padding: 0 calc(12 * var(--u)); }
  .rt-transit .rt-tile { width: calc(56 * var(--u)); }
  .rt-cap-merge { --x: 56; --y: 716; --w: 264; }

  .rt-t-block { --x: 56; --y: 762; --w: 56; }
  .rt-what-block { --x: 124; --y: 762; --w: 200; }
  .rt-fly { --x: 18; --y: 846; --w: 300; }

  .rt-via-block { --x: 0; --y: 1160; --w: 166; }
  .rt-server { --x: 178; --y: 1160; --w: 180; }
  .rt-sites { --x: 0; --y: 1410; --w: 358; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(16 * var(--u)) calc(14 * var(--u)); }
  .rt-sites li { flex-direction: column; gap: calc(8 * var(--u)); height: auto; }
  .rt-sites b { font-size: var(--t14); }
}

/*
 * Секция «features». Слева список как диалоги Telegram, справа сцена во всю
 * высоту экрана. Выбранная строка вытекает прямо в сцену: это одна форма.
 * Размеры внутри сцены — в долях контейнера, чтобы те же сцены жили на телефоне.
 */
.fx { padding-block: 0; overflow: clip; }
.fx .fx-col { grid-column: 1 / span 5; position: relative; z-index: 1; padding-block: 96px 72px; }
.fx h2 { font-size: clamp(34px, 3.06vw, 44px); line-height: 1.04; }
.fx h2 + .lead { margin-top: 12px; font-size: 17px; line-height: 24px; }

/* ——— Список ——— */
.fx-list { position: relative; margin-top: 20px; }
.fx-rows { position: relative; display: grid; }
.fx-row {
  position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; column-gap: 16px;
  align-items: center; align-content: center; width: 100%; padding: 10px 0; text-align: left; color: var(--fg);
  transition: color 0.3s;
}
.fx-row .hgi-stroke { grid-row: 1 / span 2; align-self: start; margin-top: 2px; font-size: 28px; transition: color 0.3s; }
.fx-row b { font-size: 19px; line-height: 24px; font-weight: 700; letter-spacing: -0.015em; }
.fx-row small { grid-column: 2 / -1; margin-top: 2px; font-size: 15px; line-height: 20px; color: var(--mute); transition: color 0.3s; }
.fx-end { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--mute); white-space: nowrap; transition: color 0.3s; }
.fx-row:hover b { color: var(--azure); }
.fx-row[aria-pressed="true"], .fx-row[aria-pressed="true"]:hover b { color: #fff; }
.fx-row[aria-pressed="true"] .hgi-stroke, .fx-row[aria-pressed="true"] .fx-end { color: #fff; }
.fx-row[aria-pressed="true"] small { color: #fff; }

/* Язык сцены: заходит за левую линию на 16, правым краем сливается со сценой. */
.fx-tab {
  position: absolute; left: -16px; right: calc(var(--gap) * -1 - 1px); top: 0; height: var(--h, 88px);
  border-radius: var(--r-l) 0 0 var(--r-l); background: var(--azure);
  transform: translateY(var(--ty, 0px)); transition: transform 0.7s var(--flow), height 0.7s var(--flow);
}
.fx-tab::before, .fx-tab::after {
  content: ""; position: absolute; right: 0; width: 16px; height: 16px;
  background: radial-gradient(circle 16px at 0 var(--cy), transparent 96%, var(--azure));
}
.fx-tab::before { --cy: 0; bottom: 100%; }
.fx-tab::after { --cy: 100%; top: 100%; }
.fx-tab i { position: absolute; left: 16px; right: 32px; bottom: 6px; height: 2px; background: rgb(255 255 255 / 0.7); transform: scaleX(0); transform-origin: left; }

/* ——— Сцена ——— */
.fx-stage {
  position: absolute; z-index: 1; top: 0; bottom: 0; right: 0;
  left: calc(max(0px, (100% - 1264px) / 2) + var(--side) + (min(100%, 1264px) - var(--side) * 2 + var(--gap)) * 5 / 12);
  container: fxs / size; overflow: clip;
  /* Линии общей сетки внутри сцены: шаг колонки и правый край страницы. */
  --col: calc((min(100vw, 1264px) - var(--side) * 2 + var(--gap)) / 12);
  --end: calc(var(--col) * 7 - var(--gap));
  --gr: calc(100cqw - var(--end));
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='318' height='140' viewBox='0 0 318 140'><path fill='%23164a8c' d='M0 140V92h18V64h14v28h12V40h22v52h10V74h20v18h14V22h8v-12h4v12h8v70h12V56h24v36h10V78h18v14h16V34h20v58h12V66h16v26h14V48h22v44h10V82h14v58z'/></svg>") repeat-x 0 100% / 45cqw auto,
    var(--azure);
}
.fx-flood { position: absolute; inset: 0; z-index: 5; background: var(--ink); visibility: hidden; pointer-events: none; }
.sc { position: absolute; inset: 0; }
.sc-hero { position: absolute; width: auto; max-width: none; pointer-events: none; will-change: transform; }
.sc-disc { position: absolute; border-radius: 50%; background: var(--blue); }
.sc small { display: block; font-size: clamp(14px, 2cqw, 16px); line-height: 1.3; font-weight: 600; color: #fff; }

/* Реклама. Нарисованные баннеры справа срезаны: их заменяют живые. */
.sc-ads .sc-disc { left: -6cqw; bottom: 3cqh; width: 66cqh; height: 66cqh; }
.sc-ads .sc-hero {
  left: -5cqw; bottom: 3cqh; height: 76cqh;
  clip-path: polygon(0 0, 67% 0, 67% 21%, 72% 30%, 80% 38%, 81.5% 43%, 77.5% 47%, 76% 53%, 75% 57%, 70% 65%, 67% 71%, 67% 78%, 73% 80%, 73% 100%, 0 100%);
}
.ads-apps { position: absolute; right: var(--gr); top: 15cqh; width: calc(var(--col) * 2 - var(--gap)); }
.ads-marks { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.ads-marks .plate { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--r-l); }
.ads-marks .plate img { width: 100%; height: 100%; }
.ads-apps small { margin-top: 12px; }
.ads-lane { position: absolute; inset: 0; perspective: 800px; }
.ad {
  position: absolute; right: 2cqw; top: var(--y); width: 21cqw; padding: 1cqw; border-radius: 10px; background: #fff;
  transform: rotateY(-28deg) rotate(var(--r)); box-shadow: 0 16px 32px rgb(10 12 17 / 0.3);
}
.ad-pic { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 6px; background: var(--blue); }
.ad-pic.deep { background: var(--deep); }
.ad-pic.ink { background: var(--ink); }
.ad-pic.sky { background: var(--sky); }
.ad-pic .hgi-stroke { font-size: 6cqw; color: #fff; }
.ad-pic.sky .hgi-stroke { color: var(--deep); }
.ad > i { display: block; height: 0.8cqw; margin-top: 0.8cqw; border-radius: 2px; background: var(--sky); }
.ad > i:last-child { width: 60%; }
.fx-bit { position: absolute; width: 1.4cqw; height: 1.4cqw; border-radius: 2px; background: #fff; pointer-events: none; }
.fx-star { position: absolute; width: 24cqw; height: 24cqw; margin: -12cqw 0 0 -12cqw; border-radius: 50%; background: radial-gradient(circle, #fff 0 8%, rgb(207 230 250 / 0.8) 18%, transparent 62%); pointer-events: none; }

/* Белые списки */
.wl { position: absolute; left: var(--col); right: var(--gr); top: 17cqh; height: 24cqh; display: grid; grid-template-columns: calc(var(--col) - var(--gap)) 1fr; grid-template-rows: 1fr 1fr; column-gap: var(--gap); }
.wl-phone { grid-row: 1 / span 2; display: grid; place-content: center; justify-items: center; gap: 4px; border-radius: var(--r-l); background: #fff; color: var(--ink); }
.wl-phone .hgi-stroke { font-size: 7cqw; color: var(--ink); }
.wl-phone b { font-size: clamp(14px, 2.4cqw, 19px); font-weight: 800; }
.wl-wall { position: absolute; left: calc(var(--col) * 2 - 6px); top: -1cqh; bottom: -1cqh; width: 12px; border-radius: 4px; background: var(--ink); }
.wl-wall small { position: absolute; left: calc(100% + 12px); top: 0; white-space: nowrap; }
.wl-row { display: flex; align-items: center; }
.wl-track { position: relative; height: 3px; flex: 1; background: rgb(255 255 255 / 0.5); }
.wl-track::after { content: ""; position: absolute; top: -5px; left: 0; width: 100%; height: 13px; background: radial-gradient(circle 6px at 7px 6.5px, #fff 96%, transparent); animation: fx-run 1.4s linear infinite; }
.wl-row.dead .wl-track { flex: none; width: calc(var(--col) - 24px); }
.wl-stop { display: grid; place-items: center; width: 32px; height: 32px; margin-left: -6px; border-radius: 50%; background: var(--ink); }
.wl-stop .hgi-stroke { font-size: 20px; color: #fff; }
.wl-row.live .wl-track.a { flex: 0 0 calc(var(--col) * 2); }
.wl-node { display: inline-flex; align-items: center; justify-content: center; flex: none; width: calc(var(--col) - var(--gap)); height: 56px; border-radius: var(--r-m); background: #fff; color: var(--ink); font-size: clamp(14px, 2.2cqw, 18px); font-weight: 800; letter-spacing: -0.02em; }
.wl-node.ink { background: var(--ink); color: #fff; }
.sc-white .sc-hero { left: -3cqw; bottom: 3cqh; height: 50cqh; }
.wl-open { position: absolute; right: var(--gr); top: 47cqh; width: calc(var(--col) - var(--gap)); display: grid; gap: 16px; }
.wl-open::before { content: ""; position: absolute; left: calc(50% - 1.5px); bottom: 100%; width: 3px; height: 8.4cqh; background: rgb(255 255 255 / 0.5); }
.wl-open .plate { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--r-l); }
.wl-open .brand { width: 60%; height: 60%; }
@keyframes fx-run { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(calc(100% - 14px)); opacity: 0; } }

/* Банки */
.sc-banks .sc-hero { left: -2cqw; bottom: 3cqh; height: 74cqh; }
.road { position: absolute; left: calc(var(--col) * 4); right: 0; }
.road b small { display: inline; margin-left: 12px; }
.road b { display: block; margin-bottom: 8px; color: #fff; font-size: clamp(17px, 3cqw, 24px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.road.tunnel { top: 15cqh; }
.road.open { top: 56cqh; }
.road-way { overflow: clip; height: 16cqh; display: flex; align-items: center; border-radius: 8cqh 0 0 8cqh; }
.tunnel .road-way { background: var(--ink); box-shadow: inset 12px 0 24px -8px rgb(75 169 240 / 0.8); }
.open .road-way { background: #fff; }
.road-run { display: flex; gap: 3cqw; width: max-content; padding-right: 3cqw; animation: fx-road 9s linear infinite; }
.open .road-run { animation-duration: 5s; }
.road-run .plate { height: 10cqh; min-width: 10cqh; padding: 1.8cqh; border-radius: var(--r-m); box-shadow: none; }
.open .road-run .plate { background: var(--snow); }
.road-run .brand { width: 6.4cqh; height: 6.4cqh; }
@keyframes fx-road { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* Видео */
.player { position: absolute; left: var(--gap); top: 15cqh; width: calc(var(--col) * 5 - var(--gap) * 2); aspect-ratio: 16 / 9; border-radius: var(--r-l); background: var(--ink); overflow: hidden; }
.player-film { position: absolute; inset: 0; background: var(--sky); overflow: hidden; }
/* Полоса шириной 200 %, рисунок ровно в половину: сдвиг на половину возвращает тот же кадр. */
.player-film::before {
  content: ""; position: absolute; left: 0; bottom: 0; width: 200%; height: 62%; animation: fx-film 10s linear infinite;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='318' height='140' viewBox='0 0 318 140' preserveAspectRatio='none'><path fill='%23164a8c' d='M0 140V92h18V64h14v28h12V40h22v52h10V74h20v18h14V22h8v-12h4v12h8v70h12V56h24v36h10V78h18v14h16V34h20v58h12V66h16v26h14V48h22v44h10V82h14v58z'/></svg>") repeat-x 0 100% / 50% 100%;
}
@keyframes fx-film { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.player-logo { position: absolute; left: 12px; top: 12px; }
.player-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 10cqw; height: 10cqw; margin: -5cqw 0 0 -5cqw; border-radius: 50%; background: #fff; opacity: 0; }
.player-play .hgi-stroke { font-size: 5cqw; color: var(--ink); }
.player-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 6px; border-radius: 3px; background: rgb(255 255 255 / 0.25); overflow: hidden; }
.player-bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0.62); }
.reel { display: grid; place-items: center; position: absolute; right: var(--gr); top: 15cqh; width: calc(var(--col) * 2 - var(--gap)); aspect-ratio: 9 / 16; border-radius: var(--r-l); background: var(--ink); overflow: hidden; }
.reel .hgi-stroke { font-size: calc(var(--col) * 0.8); color: #fff; animation: fx-spin 1.2s linear infinite; }
@keyframes fx-spin { to { transform: rotate(360deg); } }
.sc-video .sc-hero { left: -4cqw; bottom: 2cqh; height: 58cqh; }
.video-say { position: absolute; right: var(--gr); top: 58cqh; width: calc(var(--col) * 2 - var(--gap)); font-size: calc(var(--col) * 0.36); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; color: #fff; }

/* Ключ */
.key-line { position: absolute; left: var(--gap); right: var(--gr); top: 15cqh; font-size: calc(var(--col) * 0.5); line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; color: #fff; white-space: nowrap; }
.sc-key .sc-hero { left: 0; bottom: 3cqh; height: 68cqh; }
.key-side { position: absolute; right: var(--gr); top: 32cqh; width: calc(var(--col) * 2 - var(--gap)); }
.key-stack { position: relative; display: grid; gap: 12px; }
.key-ok { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; border-radius: var(--r-l); background: #fff; color: var(--ink); font-size: clamp(15px, 2.4cqw, 19px); font-weight: 800; letter-spacing: -0.02em; text-align: center; visibility: hidden; }
.key-ok .hgi-stroke { font-size: 40px; color: var(--azure); }
.key-field { display: flex; align-items: center; gap: 12px; height: 72px; padding: 0 16px; border-radius: var(--r-m); background: var(--deep); color: #fff; font-size: clamp(14px, 2.4cqw, 19px); font-weight: 700; text-decoration: line-through; text-decoration-thickness: 2px; }
.key-field .hgi-stroke { color: #fff; font-size: 24px; }
.key-devices { display: flex; justify-content: space-between; margin-top: 24px; }
.key-devices .hgi-stroke { font-size: 44px; color: #fff; }

/* Оплата */
.sc-pay .sc-disc { left: -8cqw; bottom: 3cqh; width: 74cqh; height: 74cqh; }
.sc-pay .sc-hero { left: 0; bottom: 3cqh; height: 70cqh; }
.pay-chat { pointer-events: none; position: absolute; right: var(--gr); top: 15cqh; left: calc(var(--col) * 4); display: flex; flex-direction: column; gap: 8px; }
.pay-chat .msg { font-size: clamp(15px, 2.4cqw, 19px); line-height: 1.3; color: var(--ink); }
.pay-chat .msg.out { display: inline-flex; align-items: center; background: var(--ink); color: #fff; }
.pay-chat .msg.out .hgi-stroke { color: var(--blue); font-size: 22px; }
.pay-sum { display: block; margin-top: 2px; font-size: clamp(32px, 7.6cqw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -0.04em; }
.pay-chat .kb { width: 100%; }
.pay-chat .kb button { min-height: 8cqh; background: rgb(255 255 255 / 0.24); }
.pay-chat .kb .plate { height: 5cqh; min-width: 8cqw; padding: 0.8cqh; border-radius: 8px; }
.pay-touch { position: absolute; left: 0; top: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgb(255 255 255 / 0.5); box-shadow: 0 0 0 2px #fff; opacity: 0; pointer-events: none; }

/* Призыв стоит поверх сцены и не меняется вместе с ней. */
.fx-cta {
  position: absolute; z-index: 1; bottom: 64px; right: calc(max(0px, (100% - 1264px) / 2) + var(--side));
  width: calc((min(100%, 1264px) - var(--side) * 2 + var(--gap)) / 4 - var(--gap));
}
.fx-cta .btn { width: 100%; }
.fx-cta .note { margin-top: 8px; color: #fff; }

/* ——— Телефон: сцена прилипает сверху, список едет под ней, родная прокрутка ——— */
@media (max-width: 960px) {
  .fx { display: flex; flex-direction: column; padding-block: 0 56px; overflow: visible; }
  .fx-stage { order: -1; position: sticky; top: 0; left: auto; bottom: auto; width: 100%; height: 400px; flex: none; --col: calc(100vw / 7); --end: calc(100vw - 16px); }
  .fx .fx-col { grid-column: 1 / -1; padding-block: 32px 0; }
  .fx h2 { font-size: 34px; }
  .fx-list { margin-top: 16px; }
  .fx-tab { display: none; }
  .fx-row { margin-inline: -8px; width: calc(100% + 16px); padding: 16px 8px; min-height: 112px; border-radius: var(--r-l); transition: background-color 0.3s, color 0.3s; }
  .fx-row[aria-pressed="true"] { background: var(--azure); }
  .wl { left: 16px; right: 16px; top: 16cqh; height: 26cqh; grid-template-columns: 48px 1fr; column-gap: 8px; }
  .wl-phone .hgi-stroke { font-size: 24px; }
  .wl-wall { left: 96px; }
  .wl-wall small { display: none; }
  .wl-row.dead .wl-track { width: 38px; }
  .wl-row.live .wl-track.a { flex-basis: 64px; }
  .wl-node { width: 72px; height: 44px; }
  .wl-open { right: 16px; top: 46cqh; width: 72px; justify-items: center; gap: 8px; }
  .wl-open::before { height: 7cqh; }
  .wl-open .plate { width: 44px; border-radius: var(--r-m); }
  .ads-apps { top: 16cqh; right: 16px; width: 128px; }
  .ads-marks { gap: 8px; }
  .ads-marks .plate { border-radius: var(--r-m); }
  .road b small { display: block; margin: 2px 0 0; }
  .fx-cta { position: static; width: auto; margin: 24px var(--side) 0; }
  .fx-cta .note { color: var(--mute); }
  .key-line, .player { top: 16cqh; }
  .road.tunnel { top: 16cqh; }
  .pay-chat { top: 16cqh; left: 56cqw; }
  .key-side { top: 30cqh; right: 16px; width: 150px; }
  .key-stack { gap: 6px; }
  .key-field { height: 44px; padding: 0 12px; gap: 8px; }
  .key-field .hgi-stroke { font-size: 18px; }
  .key-ok .hgi-stroke { font-size: 28px; }
  .key-devices { margin-top: 16px; }
  .key-devices .hgi-stroke { font-size: 32px; }
  .key-line { font-size: 26px; left: 16px; right: 16px; }
  .sc-key .sc-hero { height: 62cqh; left: -4cqw; }
  .player { left: 16px; width: calc(100vw - 32px - 96px - 12px); }
  .reel { right: 16px; width: 96px; }
  .video-say { right: 16px; top: 62cqh; width: 128px; font-size: 20px; }
  .road { left: 50cqw; }
  .ad { width: 26cqw; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-tab { transition: none; }
}

/*
 * Секция «how»: правила только этой секции. Общее — в styles.css.
 * Три сцены стоят на одной линии-земле: маскот с ключом, витрина приложений,
 * экран приложения. Линия вытекает из лужи под маскотом и заполняется при прокрутке.
 * Колонки сцен 4 / 5 / 3 — ширина по содержанию, края на линиях сетки.
 */
.how.screen { padding-block: 72px 24px; }
.how-grid { position: relative; align-items: end; row-gap: 20px; }
.how-title { grid-column: 1 / span 8; font-size: clamp(34px, 3.6vw, 52px); }
.how-lead { grid-column: 9 / span 4; font-size: 18px; line-height: 26px; }

.how-steps {
  --stage: clamp(420px, calc(100dvh - 422px), 576px);
  position: relative; grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
}
.how-step { position: relative; }
.how-step-key { grid-column: 1 / span 4; }
.how-step-apps { grid-column: 5 / span 5; }
.how-step-sub { grid-column: 10 / span 3; }
.how-visual { position: relative; height: var(--stage); }

/* Линия-земля */
.how-rail { position: absolute; left: 0; right: 0; top: calc(var(--stage) + 16px); height: 2px; background: var(--line); }
.how-rail i { position: absolute; inset: 0; background: var(--blue); box-shadow: 0 0 16px var(--blue); transform-origin: 0 50%; }
.how-rail b { position: absolute; left: -8px; top: -7px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--eye); opacity: 0; }
.how-step::before {
  content: ""; position: absolute; z-index: 1; left: 0; top: calc(var(--stage) + 9px); width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 4px var(--bg), 0 0 20px 4px var(--blue);
  transition: background-color 0.4s, box-shadow 0.4s;
}
.how-text { padding-top: 40px; }
.how-text h3 { font-size: 24px; line-height: 28px; font-weight: 800; letter-spacing: -0.02em; }
.how-text p { margin-top: 6px; max-width: 26em; font-size: 16px; line-height: 22px; color: var(--mute); }

/* Первая сцена: маскот стоит на линии, лужа закрывает её начало */
.how-hero { z-index: 2; }
.how-disc {
  position: absolute; left: -12%; bottom: -8%; width: 124%; aspect-ratio: 1;
  border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--azure) 55%, transparent), transparent);
  transition: opacity 0.8s, transform 1.2s var(--flow);
}
.how-mascot {
  position: absolute; left: -32px; bottom: -20px; width: calc(100% + 64px); height: calc(100% + 20px); max-width: none;
  object-fit: contain; object-position: 0 100%;
}
.how-bubble { position: absolute; right: -12px; bottom: 96px; z-index: 3; max-width: none; color: var(--ink); font-size: 15px; line-height: 20px; transform-origin: 0 100%; box-shadow: 0 16px 40px rgb(10 12 17 / 0.5); }
.how-bubble .keyline { font-size: 17px; line-height: 24px; letter-spacing: 0.02em; }
.how-gift { display: flex; align-items: center; gap: 4px; color: var(--azure); font-weight: 700; }
.how-gift i { font-size: 16px; }

/* Вторая сцена: витрина приложений */
.how-shelf { z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.how .seg { display: grid; flex: none; background: var(--ink-2); box-shadow: 0 0 0 1px var(--line); }
.how .seg button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; }
.how .seg i { font-size: 20px; }
.how-tiles { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 5fr) minmax(0, 6fr); gap: 12px; }
.how-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-width: 0; padding: 16px; border-radius: var(--r-l); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.how-tile b span { white-space: nowrap; }
.how-tile b { display: block; font-size: 19px; line-height: 24px; font-weight: 800; letter-spacing: -0.015em; }
.how-tile small { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--mute); }
.how-tile .plate { width: var(--logo-size); height: var(--logo-size); min-width: 0; border-radius: 22%; box-shadow: none; }
.how-tile .plate, .how-app-head .plate { position: relative; }
.how-tile .plate img, .how-app-head .plate img { position: absolute; inset: 0; width: 100%; height: 100%; }
.how-marks { --logo-size: 88px; display: flex; flex-wrap: wrap; gap: 8px; }
.how-marks[data-count="2"] { --logo-size: 80px; }
.how-marks[data-count="3"], .how-marks[data-count="4"] { --logo-size: 44px; display: grid; grid-template-columns: repeat(4, var(--logo-size)); }
.how-marks > .hgi-stroke { font-size: 72px; line-height: 88px; color: var(--blue); }

.how-tile small.role { color: var(--fg); font-weight: 700; }
.how-tile.main { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 24px; background: var(--azure); box-shadow: none; color: #fff; }
.how-tile.main .how-marks { --logo-size: 136px; position: relative; flex: none; }
.how-tile.main b { font-size: 44px; line-height: 48px; font-weight: 800; letter-spacing: -0.035em; }
.how-tile.main small { margin-top: 8px; font-size: 16px; line-height: 22px; color: #fff; }
.how-tile.main em { display: block; margin-top: 4px; font-style: normal; font-size: 19px; line-height: 24px; font-weight: 700; }
.how-install { position: relative; display: block; width: 136px; height: 136px; }
.how-install .plate { position: absolute; inset: 0; }
.how-install .plate.gray { filter: grayscale(1) brightness(0.55); }
.how-tick { position: absolute; right: -8px; bottom: -8px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--azure); font-size: 24px; box-shadow: 0 0 0 4px var(--azure); }

/* Третья сцена: экран приложения. Тушь разливается от тумблера */
.how-app { z-index: 1; display: flex; flex-direction: column; border-radius: var(--r-l); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.how-app-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px; box-shadow: 0 1px 0 var(--line); }
.how-app-head .plate { width: 40px; height: 40px; border-radius: 22%; box-shadow: none; }
.how-app-head b { display: block; font-size: 17px; line-height: 22px; font-weight: 700; }
.how-app-head small { display: block; font-size: 14px; line-height: 18px; color: var(--mute); }
.how-app-body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 16px; }
.how-app .cells { flex: none; }
.how-app .cell > .hgi-stroke { font-size: 24px; color: var(--accent); }
.how-power { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.how-power .switch { transform: scale(2); }
.how-power b { font-size: 28px; line-height: 32px; font-weight: 800; letter-spacing: -0.03em; }
.how-power.on .switch { background: #fff; }
.how-power.on .switch::after { background: var(--azure); }
.how-flood { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 16px; overflow: hidden; }
.how-flood .how-power { justify-content: flex-start; padding-top: 44px; }
/* Маскот улетает в тень вместе с человеком: появляется, только когда тушь разлилась */
.how-fly { position: absolute; right: -20px; bottom: -32px; width: 58%; max-width: none; pointer-events: none; }

/* Под шагами: кнопка и главное предупреждение — ключ не вставляется в приложение */
.how-foot { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; margin-top: -4px; }
.how-go { grid-column: 1 / span 4; justify-self: start; min-height: 48px; }
.how-rule { grid-column: 5 / -1; }
.how-rule p { font-size: 16px; line-height: 22px; color: var(--mute); }
.how-rule b { font-weight: 800; color: var(--fg); }
.how-rule .note { margin-top: 4px; font-size: 14px; line-height: 20px; }

/* Состояния при прокрутке. Класс armed ставит скрипт, без него сцены стоят готовыми */
.how.armed .how-step:not(.on)::before { background: var(--ink-3); box-shadow: 0 0 0 4px var(--bg); }
.how.armed .how-disc { opacity: 0.35; transform: scale(0.88); }
.how.armed.connected .how-disc, .how.armed .how-step-key.on .how-disc { opacity: 1; transform: none; }
.how.armed .how-step-apps:not(.on) .how-tile { opacity: 0.4; }
.how .how-tile { transition: opacity 0.6s; }

@media (hover: hover) and (pointer: fine) {
  .how-tile .plate { transition: transform 0.5s var(--settle); }
  .how-tile:hover .plate { transform: scale(1.05); }
}

/* Низкий экран ноутбука: логотипы меньше, маскот в экране приложения не помещается */
@media (min-width: 961px) and (max-height: 820px) {
  .how-fly { display: none; }
  .how-flood .how-power { justify-content: center; padding-top: 0; }
  .how-marks { --logo-size: 72px; }
  .how-marks[data-count="2"] { --logo-size: 64px; }
  .how-marks[data-count="3"], .how-marks[data-count="4"] { --logo-size: 32px; }
  .how-marks > .hgi-stroke { font-size: 56px; line-height: 64px; }
  .how-tile.main .how-marks { --logo-size: 112px; }
  .how-install { width: 112px; height: 112px; }
}

@media (max-width: 960px) {
  .how.screen { padding-block: 88px 56px; }
  .how-title, .how-lead { grid-column: 1 / -1; }
  .how-foot { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 20px; margin-top: 20px; }
  .how-go { justify-self: stretch; min-height: 56px; }
  .how-steps { display: block; padding-left: 28px; }
  .how-step + .how-step { margin-top: 48px; }
  .how-step { display: flex; flex-direction: column; }
  .how-text { order: -1; padding: 0 0 20px; }
  .how-visual { height: auto; }
  .how-step::before { left: -28px; top: 6px; }
  .how-rail { left: 7px; right: auto; top: 14px; bottom: 0; width: 2px; height: auto; }
  .how-rail i { transform-origin: 50% 0; }
  .how-rail b { left: -7px; top: -8px; }
  .how-hero { height: min(112vw, 440px); }
  .how-mascot { left: -12px; bottom: 0; width: 100%; height: 100%; }
  .how-disc { left: -8%; bottom: 0; width: 104%; }
  .how-bubble { right: 0; bottom: 40px; }
  .how-tiles { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .how-tile { flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; }
  .how-marks { flex: none; }
  .how-tile.main { gap: 16px; min-height: 0; }
  .how-tile.main .how-marks { --logo-size: 88px; }
  .how-install { width: 104px; height: 104px; }
  .how-tile.main b { font-size: 32px; line-height: 36px; }
  .how-tile.main small { font-size: 14px; line-height: 20px; }
  .how-tile.main em { font-size: 17px; }
  .how-marks { --logo-size: 72px; }
  .how-marks[data-count="2"] { --logo-size: 56px; }
  .how-marks[data-count="3"], .how-marks[data-count="4"] { --logo-size: 44px; grid-template-columns: repeat(2, var(--logo-size)); }
  .how-marks > .hgi-stroke { font-size: 56px; line-height: 72px; }
  .how-app { min-height: 544px; }
  .how-fly { width: 64%; right: -16px; bottom: -32px; }
}

/* На самых узких телефонах значок устройства убирается: иначе третья вкладка вылезает за край. */
@media (max-width: 380px) {
  .how .seg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how .seg button { padding-inline: 4px; }
  .how .seg i { display: none; }
}

/*
 * Секция «plans». Схема стоит прямо на сетке: одна колонка — один месяц.
 * Полоса тарифа занимает столько колонок, сколько месяцев он длится; внутри
 * тёмная часть — плата, голубая — экономия к оплате по месяцам.
 */
.plans { --bar: 52px; --axis: 28px; overflow: hidden; padding-block: 96px 88px; }
.plans .plans-grid { row-gap: 20px; }

.plans .plans-head { grid-column: 1 / span 7; }
.plans .plans-head h2 + .lead { margin-top: 16px; max-width: 26em; }

/* ——— Схема ——— */
.plans .schema, .plans .plan-rows, .plans .plan, .plans .plan-meta, .plans .axis, .plans .plans-checkout { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; }
.plans .schema { position: relative; }

/* Линейка месяцев: правый край каждой колонки — конец месяца. */
.plans .ruler { position: absolute; left: 0; right: 0; bottom: calc(var(--axis) - 8px); height: 8px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); pointer-events: none; }
.plans .ruler i { box-shadow: 1px 0 0 rgb(10 12 17 / 0.24); }

.plans .trial { position: relative; grid-column: 1 / span 8; display: flex; align-items: center; gap: 12px; min-height: 28px; font-size: 16px; line-height: 24px; color: var(--mute); }
.plans .trial i { flex: none; width: 6px; height: 24px; border-radius: 3px; background: var(--blue); box-shadow: 0 0 12px var(--blue); }
.plans .trial b { font-weight: 700; color: var(--fg); }

.plans .plan-rows { position: relative; margin-top: 8px; row-gap: 16px; }
.plans .plan { position: relative; cursor: pointer; }
.plans .plan input { position: absolute; opacity: 0; }
.plans .plan-meta { align-items: center; min-height: 32px; padding-bottom: 4px; font-size: 16px; line-height: 24px; color: var(--mute); }
.plans .plan-title { grid-column: 1 / span 2; display: flex; align-items: center; gap: 12px; }
.plans .plan-title b { font-size: 21px; line-height: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--fg); }
.plans .plan .radio { width: 20px; height: 20px; transition: background-color 0.25s, box-shadow 0.25s; }
.plans .plan .radio::after { width: 9px; height: 5px; border-width: 0 0 2px 2px; }
.plans .plan:has(input:checked) .radio { background: var(--azure); box-shadow: none; }
.plans .plan:has(input:checked) .radio::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.plans .plan:has(input:focus-visible) .bar { outline: 3px solid var(--blue); outline-offset: 3px; }
.plans .plan-days { grid-column: 3 / span 1; white-space: nowrap; }
.plans .plan-devices { grid-column: 4 / span 3; display: flex; align-items: center; gap: 2px; white-space: nowrap; color: var(--fg); }
.plans .plan-devices .hgi-stroke { font-size: 20px; color: var(--accent); }
.plans .plan-devices span { margin-left: 8px; color: var(--mute); }
.plans .plan-rate { grid-column: 7 / span 2; white-space: nowrap; }
.plans .plan-rate b { font-weight: 700; color: var(--fg); }
.plans .plan-price, .plans .plan-save { display: none; }

/* Полоса: основание всегда видно, поверх разливается тушь выбранного тарифа. */
.plans .bar { position: relative; grid-column: 1 / span var(--cols); height: var(--bar); border-radius: var(--r-m); }
.plans .plan:hover .layer.base .paid { background: rgb(10 12 17 / 0.13); }
.plans .layer { position: absolute; inset: 0; display: flex; gap: 2px; border-radius: inherit; overflow: hidden; }
.plans .layer > span { display: flex; align-items: center; min-width: 0; padding-inline: 12px; font-size: 24px; line-height: 28px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plans .layer .paid { flex: var(--paid) 1 0; }
.plans .layer .saved { flex: var(--saved) 1 0; justify-content: flex-end; font-size: 21px; }
.plans .layer.base .paid { background: rgb(10 12 17 / 0.08); color: var(--ink); transition: background-color 0.2s; }
.plans .layer.base .saved { background: var(--sky); color: var(--deep); }
.plans .layer.ink { clip-path: polygon(0 0, -32px 0, -18px 12.5%, -8px 25%, -18px 37.5%, -32px 50%, -46px 62.5%, -56px 75%, -46px 87.5%, -32px 100%, 0 100%); transition: clip-path 1s var(--flow); }
.plans .layer.ink .paid { background: var(--ink); color: #fff; box-shadow: inset 0 2px 0 rgb(75 169 240 / 0.7); }
.plans .layer.ink .saved { background: var(--blue); color: var(--ink); }
.plans .plan:has(input:checked) .layer.ink { clip-path: polygon(0 0, calc(100% + 60px) 0, calc(100% + 74px) 12.5%, calc(100% + 84px) 25%, calc(100% + 74px) 37.5%, calc(100% + 60px) 50%, calc(100% + 46px) 62.5%, calc(100% + 36px) 75%, calc(100% + 46px) 87.5%, calc(100% + 60px) 100%, 0 100%); }
.plans .plan:has(input:checked) .bar { box-shadow: 0 12px 32px rgb(22 74 140 / 0.3); }

.plans .axis { position: relative; align-items: end; height: var(--axis); font-size: 14px; line-height: 20px; color: var(--mute); }
.plans .tick { text-align: right; white-space: nowrap; }
.plans .tick.t1 { grid-column: 1; }
.plans .tick.t6 { grid-column: 5 / span 2; }
.plans .tick.t12 { grid-column: 11 / span 2; }
.plans .legend-k { grid-column: 7 / span 4; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.plans .legend-k i { flex: none; width: 12px; height: 12px; border-radius: 3px; }
.plans .legend-k .k-paid { background: var(--ink); }
.plans .legend-k .k-save { margin-left: 12px; background: var(--blue); }

/* ——— Сцена: маскот стоит на годовой полосе ——— */
.plans .scene { position: absolute; right: 0; bottom: calc(var(--axis) + var(--bar) - 8px); width: calc((100% - 11 * var(--gap)) / 12 * 4 + 3 * var(--gap)); pointer-events: none; }
.plans .hop { transform-origin: 50% 100%; will-change: transform; }
.plans .pay-pose { width: 100%; height: auto; will-change: transform; filter: drop-shadow(0 16px 32px rgb(22 74 140 / 0.24)); transform-origin: 50% 100%; }
.plans .say.msg { position: absolute; right: calc(100% + 8px); top: 14%; width: max-content; max-width: 240px; padding: 10px 14px 12px; font-size: 15px; line-height: 20px; background: var(--white); border-bottom-left-radius: var(--bubble); border-bottom-right-radius: 6px; box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgb(22 74 140 / 0.16); transform-origin: 100% 100%; }
.plans .say b { display: block; text-wrap: balance; font-size: 19px; line-height: 24px; font-weight: 800; letter-spacing: -0.02em; }
.plans .say small { display: block; font-size: 14px; line-height: 20px; color: var(--mute); }

/* ——— Итог ——— */
.plans .plans-checkout { align-items: start; }
.plans .pay-box { grid-column: 1 / span 5; }
.plans .pay-note { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--mute); }
.plans .pay-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 64px; border-radius: var(--r-m); background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.plans .pay-strip li { position: relative; display: grid; place-items: center; }
.plans .pay-strip li + li::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--line); }
.plans .pay-strip img { width: auto; max-width: 80%; object-fit: contain; }
.plans .l-sberpay { height: 34px; }
.plans .l-mirpay { height: 40px; }
.plans .pay-strip .l-card { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 700; }
.plans .l-card .hgi-stroke { font-size: 24px; color: var(--azure); }
.plans .l-yoo { height: 20px; }
.plans .total { grid-column: 6 / span 3; text-align: right; }
.plans .total b { display: block; font-size: 44px; line-height: 44px; font-weight: 800; letter-spacing: -0.035em; }
.plans .total small { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--mute); }
.plans .plan-go { grid-column: 9 / span 4; min-height: 64px; }

/* ——— Узкий компьютер: реплика выше, над подзаголовком ——— */
@media (max-width: 1200px) {
  .plans .say.msg { top: -8%; }
  .plans .say small { display: none; }
  .plans .layer > span { padding-inline: 8px; font-size: 19px; }
}

/* ——— Телефон: полосы в процентах от ширины, цена и экономия в тексте ——— */
@media (max-width: 960px) {
  .plans { --bar: 24px; padding-block: 104px 56px; }
  .plans .plans-head { grid-column: 1 / -1; }
  .plans .schema, .plans .plan-rows, .plans .plan, .plans .plan-meta, .plans .axis, .plans .plans-checkout { display: block; }
  .plans .ruler, .plans .plan-days, .plans .legend-k { display: none; }
  .plans .scene { position: relative; right: auto; bottom: auto; width: 68%; margin: 56px 0 -8px auto; }
  .plans .say.msg { right: auto; left: -35%; top: -32px; max-width: 164px; }
  .plans .say b { font-size: 17px; line-height: 22px; }
  .plans .say small { display: none; }
  .plans .schema { display: flex; flex-direction: column; }
  .plans .scene { order: 0; }
  .plans .trial { order: 1; margin-top: 8px; align-items: flex-start; }
  .plans .plan-rows { order: 2; margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .plans .axis { order: 3; display: grid; grid-template-columns: 1fr 1fr; margin-top: 8px; height: auto; }
  .plans .tick { grid-row: 1; }
  .plans .tick.t1 { grid-column: 1; text-align: left; }
  .plans .tick.t6 { grid-column: 1; }
  .plans .tick.t12 { grid-column: 2; }
  .plans .plan { min-height: 44px; }
  .plans .plan-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; }
  .plans .plan-title { grid-column: 1; }
  .plans .plan-price { grid-column: 2; display: block; font-size: 21px; line-height: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--fg); text-align: right; }
  .plans .plan-devices { grid-column: 1; }
  .plans .plan-rate { grid-column: 2; text-align: right; }
  .plans .plan-save { grid-column: 1 / -1; display: block; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--accent); }
  .plans .bar { display: block; width: calc(var(--months) / 12 * 100%); margin-top: 8px; border-radius: var(--r-s); }
  .plans .layer > span, .plans .layer .saved { padding-inline: 0; font-size: 0; }
  .plans .plans-checkout { margin-top: 24px; }
  .plans .pay-strip { height: 56px; }
  .plans .l-sberpay { height: 24px; }
  .plans .l-mirpay { height: 30px; }
  .plans .l-card { font-size: 13px; gap: 4px; }
  .plans .l-card .hgi-stroke { font-size: 18px; }
  .plans .l-yoo { height: 14px; }
  .plans .total { margin-top: 24px; text-align: left; }
  .plans .plan-go { width: 100%; margin-top: 16px; min-height: 56px; }
}

/* Секция «faq»: сцена «Тенёк слушает» и ночной Telegram. Общее — в styles.css. */

.faq .faq-grid { align-items: stretch; }
.faq-side { grid-column: 1 / span 5; position: relative; }
.faq-side h2, .faq-side .lead { position: relative; z-index: 2; }
.faq-side .lead { margin-top: 16px; font-size: 18px; line-height: 24px; color: var(--fg); }
.faq-phone { grid-column: 6 / span 7; position: relative; z-index: 2; }

/* ——— Тенёк: стоит у окна и смотрит в него ——— */
.faq-hero {
  position: absolute; z-index: 1; right: 0; bottom: -44px;
  height: min(616px, calc(100% - 108px)); aspect-ratio: 622 / 900;
  transform-origin: 46% 96%; transition: transform 0.9s var(--flow);
}
/* Подсветка за фигурой: чёрное тело читается на чёрном поле. */
.faq-hero::before {
  content: ""; position: absolute; inset: 4% -12% 0; z-index: -1;
  background: radial-gradient(closest-side, rgb(28 116 207 / 0.62), rgb(28 116 207 / 0.22) 58%, rgb(28 116 207 / 0));
  transition: opacity 0.6s, transform 0.9s var(--flow);
}
.faq-hero img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* Картинка одна, знак вопроса вырезан в отдельный слой, чтобы двигаться отдельно. */
.faq-figure { clip-path: polygon(0 0, 66% 0, 66% 14%, 73% 14%, 73% 26%, 100% 26%, 100% 100%, 0 100%); }
.faq-mark { clip-path: polygon(66% 0, 100% 0, 100% 26%, 73% 26%, 73% 14%, 66% 14%); transform-origin: 84% 14%; transition: transform 0.6s var(--settle); }

/* Навёл на вопрос — наклонился к окну. Бот печатает — вопрос прыгает, свет ярче. */
.faq[data-state="listen"] .faq-hero, .faq[data-state="think"] .faq-hero { transform: rotate(2.4deg) translateX(8px); }
.faq[data-state="listen"] .faq-mark { transform: scale(1.12) rotate(8deg); }
.faq[data-state="think"] .faq-mark { animation: faq-mark 0.7s var(--flow) infinite alternate; }
.faq[data-state="think"] .faq-hero::before { transform: scale(1.1); }
@keyframes faq-mark { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-14px) rotate(10deg) scale(1.1); } }

/* ——— Окно: ночная тема Telegram ——— */
.faq .tg {
  position: relative; height: clamp(520px, calc(100dvh - 176px), 760px);
  background: var(--ink-2); color: var(--fg);
  box-shadow: 0 0 0 1px var(--line), 0 32px 96px rgb(28 116 207 / 0.28);
}
.faq .tg-head { flex: none; min-height: 60px; background: var(--ink-2); box-shadow: 0 1px 0 var(--line); }
.faq .tg-head > div { flex: 1; }
.faq .tg-head small { font-size: 14px; line-height: 20px; color: var(--mute); transition: color 0.2s; }
.faq[data-state="think"] .tg-head small { color: var(--blue); }
/* Сообщения растворяются под шапкой, а не обрезаются по линии. */
.faq .tg-head::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 32px; background: linear-gradient(var(--ink-2), rgb(21 26 36 / 0)); pointer-events: none; }
.faq-tool { font-size: 24px; color: var(--mute); }
.faq .tg-head .faq-tool + .faq-tool { margin-left: 4px; }

.faq .tg-body {
  min-height: 0; max-height: none; padding: 16px 20px;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='360' height='140' viewBox='0 0 360 140'><path fill='%234ba9f0' fill-opacity='0.1' d='M0 140V92h18V64h14v28h12V40h22v52h10V74h20v18h14V22h8v-12h4v12h8v70h12V56h24v36h10V78h18v14h16V34h20v58h12V66h16v26h14V48h22v44h10V82h14v58z'/></svg>") repeat-x 0 100%,
    linear-gradient(165deg, var(--ink) 0%, var(--deep) 130%);
}
.faq-day { align-self: center; margin-bottom: 4px; padding: 2px 12px; border-radius: var(--r-m); background: rgb(10 12 17 / 0.56); color: var(--fg); font-size: 14px; line-height: 20px; font-weight: 600; }

/* Пузыри с хвостиком, отметка «доставлено» и «прочитано». */
.faq .msg { max-width: 80%; box-shadow: none; }
.faq .msg.in { background: var(--ink-3); color: var(--fg); border-bottom-left-radius: 0; }
.faq .msg.out { background: var(--azure); color: #fff; border-bottom-right-radius: 0; font-weight: 600; }
.faq .msg::before { content: ""; position: absolute; bottom: 0; width: 12px; height: 16px; background: inherit; }
.faq .msg.in::before { left: -7px; clip-path: path("M12 0V16H0C4 15 7 12 7 7V0Z"); }
.faq .msg.out::before { right: -7px; clip-path: path("M0 0V16H12C8 15 5 12 5 7V0Z"); }
.faq .msg time { font-size: 14px; line-height: 16px; font-weight: 500; opacity: 1; color: var(--mute); }
.faq .msg.out time { display: inline-flex; align-items: center; gap: 4px; color: #fff; }
.faq .msg.out time::after {
  content: ""; width: 18px; height: 12px; background: currentColor;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'><path fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 6.5 4.5 10 11 2.5M8.5 9 9.500 10 16.500 2.500'/></svg>") center / contain no-repeat;
  clip-path: inset(0 6px 0 0); transition: clip-path 0.3s var(--flow);
}
.faq .msg.out.seen time::after { clip-path: inset(0); }
.faq .typing { position: relative; background: var(--ink-3); border-bottom-left-radius: 0; }
.faq .typing::before { content: ""; position: absolute; left: -7px; bottom: 0; width: 12px; height: 16px; background: inherit; clip-path: path("M12 0V16H0C4 15 7 12 7 7V0Z"); }
.faq .typing i { background: var(--blue); }
.faq-ghost { position: absolute; z-index: 5; margin: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }

/* Поле ввода: в него «печатается» вопрос под указателем. */
.faq-composer { flex: none; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 16px; background: var(--ink-2); box-shadow: 0 -1px 0 var(--line); color: var(--mute); font-size: 16px; line-height: 24px; }
.faq-composer i { flex: none; font-size: 24px; }
.faq-composer span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.faq-composer.typed { color: var(--fg); }
.faq-human { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--blue); font-size: 15px; line-height: 20px; font-weight: 700; transition: color 0.2s; }
.faq-human:hover { color: var(--fg); }
.faq-composer .faq-human i { font-size: 20px; }

/* Клавиатура ответов: клавиши с ребром снизу, как в Telegram. */
.faq .kb.faq-keys {
  flex: none; align-self: stretch; width: auto; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-columns: auto; gap: 4px; padding: 8px; background: var(--ink);
}
.faq .kb button {
  justify-content: flex-start; gap: 12px; min-height: 48px; padding: 4px 12px; border-radius: var(--r-s);
  background: var(--ink-3); color: var(--fg); text-align: left; font-size: 15px; line-height: 20px; font-weight: 600;
  box-shadow: 0 2px 0 rgb(75 169 240 / 0.28), inset 0 0 0 1px var(--line);
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.3s var(--flow), opacity 0.2s;
}
.faq .kb button:hover { background: var(--deep); transform: translateY(-2px); box-shadow: 0 4px 0 var(--blue), inset 0 0 0 1px var(--line); }
.faq .kb button:active { transform: translateY(2px); box-shadow: 0 0 0 var(--blue), inset 0 0 0 1px var(--line); }
.faq .kb button[aria-pressed="true"] { background: var(--azure); color: #fff; box-shadow: 0 2px 0 var(--deep); }
.faq .kb button span { flex: 1; min-width: 0; }
.faq .kb .hgi-stroke { flex: none; font-size: 24px; color: var(--blue); }
.faq .kb button[aria-pressed="true"] .hgi-stroke { color: #fff; }
.faq .kb .faq-state { font-size: 20px; opacity: 0; transition: opacity 0.2s; }
.faq .kb button:hover .faq-state, .faq .kb button.asked .faq-state, .faq .kb button[aria-pressed="true"] .faq-state { opacity: 1; }
.faq-keys[data-busy] button:not([aria-pressed="true"]) { opacity: 0.72; pointer-events: none; }

/* Капли туши текут от Тенька к окну: ответ идёт от него. */
.faq-drop { position: absolute; z-index: 6; left: 0; top: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 35% 30%, var(--white), var(--blue) 45%, var(--azure)); box-shadow: 0 0 16px var(--blue); }

/* Палец показывает один раз: это нажимается. */
.faq-finger { position: absolute; z-index: 6; font-size: 40px; color: #fff; pointer-events: none; filter: drop-shadow(0 4px 8px rgb(10 12 17 / 0.6)); }

@media (max-width: 900px) {
  .faq-side, .faq-phone { grid-column: 1 / -1; }
  .faq .faq-grid { row-gap: 0; }
  .faq-hero { position: relative; right: auto; bottom: auto; width: min(68%, 320px); height: auto; margin: 16px auto -8px; }
  .faq .tg { height: auto; margin-top: 0; }
  .faq .tg-body { min-height: 400px; max-height: 400px; padding: 12px 16px; }
  /* Десять клавиш лентой в два ряда: окно с ответом остаётся в одном экране, лента листается вбок и не спорит с прокруткой страницы. */
  .faq .kb.faq-keys { grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(2, 56px); grid-auto-columns: 288px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 8px; }
  .faq .kb.faq-keys::-webkit-scrollbar { display: none; }
  .faq .kb button { scroll-snap-align: start; }
  .faq .kb .faq-state { display: none; }
  .faq-composer { justify-content: center; }
  .faq-composer > i, .faq-composer > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-hero, .faq-hero::before, .faq-mark, .faq .kb button { transition: none; }
  .faq[data-state] .faq-hero, .faq[data-state] .faq-mark, .faq .kb button:hover, .faq .kb button:active { transform: none; animation: none; }
}

/* Секция «reviews»: выбор оператора, один ответ, лента. Общее — в styles.css. */

.reviews { padding-block: 96px 32px; overflow: hidden; }
.rv { align-items: stretch; row-gap: 32px; }

/* Левая часть стоит на тех же семи колонках, что и сетка страницы. */
.rv-sum { grid-column: 1 / span 7; position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; column-gap: var(--gap); min-height: clamp(640px, calc(100dvh - 128px), 772px); }
.rv-head { grid-column: 1 / -1; grid-row: 1; }
.rv-head h2 { font-size: clamp(34px, 3.9vw, 56px); }
.rv-head .note { margin-top: 12px; }

/* Выбор: две ровные строки по четыре, капля под выбранной кнопкой. */
.rv-picks { grid-column: 1 / -1; grid-row: 2; position: relative; isolation: isolate; margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rv-pick { position: relative; min-height: 56px; padding: 0 8px; font-size: 17px; line-height: 22px; font-weight: 700; white-space: nowrap; }
.rv-pick::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: background-color 0.2s; }
.rv-pick:hover::before { background: linear-gradient(rgb(28 116 207 / 0.08), rgb(28 116 207 / 0.08)) var(--card); }
.rv-pick span { position: relative; z-index: 2; transition: color 0.25s; }
.rv-pick[aria-pressed="true"] span { color: #fff; }
.rv-drop { position: absolute; left: 0; top: 0; z-index: 1; border-radius: var(--r-m); background: var(--azure); box-shadow: 0 12px 24px rgb(28 116 207 / 0.3); transition: transform 0.55s var(--settle); will-change: transform; }

/* Ответ: одно крупное число и две скорости словами. */
.rv-answer { grid-column: 1 / span 4; grid-row: 3; margin-top: 40px; display: flex; flex-direction: column; }
.rv-num { font-size: 160px; line-height: 144px; font-weight: 800; letter-spacing: -0.05em; }
.rv-line { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.rv-line .rv-stars { --star: 28px; }
.rv-line b { font-size: 17px; line-height: 28px; font-weight: 700; }
.rv-speeds { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
.rv-speed .note { display: flex; align-items: center; gap: 4px; }
.rv-speed .note .hgi-stroke { font-size: 16px; }
.rv-speed b { display: block; margin-top: 4px; font-size: 24px; line-height: 28px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.rv-answer > .note { margin-top: auto; padding-top: 24px; }

/* Звёзды: контур снизу, заливка сверху обрезается по оценке. */
.rv-stars { --star: 16px; position: relative; display: inline-block; flex: none; width: calc(var(--star) * 5 + 8px); height: var(--star); vertical-align: middle; }
.rv-stars-row { position: absolute; inset: 0; display: flex; gap: 2px; }
.rv-stars-row svg { flex: none; width: var(--star); height: var(--star); }
.rv-stars-row.base { color: rgb(28 116 207 / 0.18); }
.rv-stars-row.fill { color: var(--azure); transition: clip-path 0.7s var(--flow); }
.rv-stars svg { fill: currentColor; }

/* Маскот в полный рост стоит рядом с ответом и показывает телефон в сторону ленты. */
.rv-hello { position: absolute; right: -24px; bottom: -8px; z-index: 2; width: clamp(200px, 23vw, 332px); max-width: none; pointer-events: none; filter: drop-shadow(0 16px 24px rgb(22 74 140 / 0.24)); }

/* Цвета кружков-авторов в ленте. */
.t-blue { background: var(--blue); color: var(--ink); }
.t-azure { background: var(--azure); color: #fff; }
.t-deep { background: var(--deep); color: #fff; }
.t-ink { background: var(--ink); color: #fff; }

/* Окно Telegram держит высоту левой части, лента прокручивается внутри. */
.rv-side { grid-column: 8 / span 5; position: relative; }
.rv-side .tg { position: absolute; inset: 0; }
.rv-side .tg-head small { font-size: 14px; line-height: 20px; }

.reviews .rv-body { min-height: 0; max-height: none; padding: 0; justify-content: flex-start; }
.rv-list { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgb(22 74 140 / 0.4) transparent; }
.rv-day { align-self: center; padding: 2px 12px; border-radius: 12px; background: rgb(22 74 140 / 0.62); color: #fff; font-size: 14px; line-height: 20px; font-weight: 600; }
.rv-item { display: flex; align-items: flex-end; gap: 8px; transform-origin: 0 100%; }
.rv-face { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: 15px; font-weight: 800; }
.rv-face .hgi-stroke { font-size: 20px; color: inherit; }
.rv-bubble { flex: 1; min-width: 0; padding: 8px 12px 10px; border-radius: var(--bubble); border-bottom-left-radius: 6px; background: var(--white); box-shadow: 0 1px 2px rgb(22 74 140 / 0.16); }
.rv-bubble header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rv-bubble header b { font-size: 15px; line-height: 20px; font-weight: 700; color: var(--azure); }
.rv-bubble time { font-size: 14px; line-height: 20px; color: var(--mute); }
.rv-where { margin-top: 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 14px; line-height: 20px; color: var(--mute); }
.rv-text { margin-top: 4px; font-size: 16px; line-height: 22px; }
.rv-quote { margin-top: 8px; padding: 4px 8px 4px 11px; border-radius: 4px; box-shadow: inset 3px 0 0 var(--azure); background: rgb(28 116 207 / 0.1); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--deep); }
.rv-bubble footer { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.rv-sp { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; color: var(--mute); white-space: nowrap; }
.rv-sp .hgi-stroke { font-size: 16px; }
.rv-pips { display: inline-flex; gap: 2px; margin-left: 2px; }
.rv-pips i { width: 6px; height: 8px; border-radius: 2px; background: rgb(28 116 207 / 0.16); }
.rv-pips i.on { background: var(--azure); }
.rv-reply { align-self: flex-end; max-width: 84%; transform-origin: 100% 100%; }
.rv-reply article { padding: 8px 12px 10px; border-radius: var(--bubble); border-bottom-right-radius: 6px; background: var(--azure); color: #fff; box-shadow: 0 1px 2px rgb(22 74 140 / 0.16); }
.rv-reply b { display: block; font-size: 15px; line-height: 20px; font-weight: 700; }
.rv-reply p { margin-top: 2px; font-size: 16px; line-height: 22px; }
.rv-more { align-self: center; margin-top: 4px; }
.rv-more .btn { min-height: 44px; background: var(--white); color: var(--azure); box-shadow: 0 1px 2px rgb(22 74 140 / 0.16); }
.rv-write { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; background: var(--white); color: var(--azure); font-size: 16px; font-weight: 700; box-shadow: 0 -1px 0 var(--line); position: relative; transition: background-color 0.2s; }
.rv-write:hover { background: rgb(28 116 207 / 0.06); }
.rv-write .hgi-stroke { font-size: 20px; }

@media (max-width: 1180px) {
  .rv-num { font-size: 120px; line-height: 112px; }
  .rv-speed b { font-size: 19px; line-height: 24px; }
}

@media (max-width: 960px) {
  .reviews { padding-block: 88px 56px; }
  .rv-sum { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; min-height: 0; }
  .rv-picks { margin-top: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-pick { min-height: 52px; }
  .rv-answer { display: contents; }
  .rv-num { grid-column: 1; grid-row: 3; margin-top: 32px; align-self: end; font-size: 96px; line-height: 88px; }
  .rv-line { grid-column: 1; grid-row: 4; }
  .rv-line .rv-stars { --star: 24px; }
  .rv-hello { position: static; grid-column: 2; grid-row: 3 / span 2; justify-self: end; align-self: end; width: 176px; margin: 24px -8px 0 0; }
  .rv-speeds { grid-column: 1 / -1; grid-row: 5; margin-top: 24px; }
  .rv-speed b { font-size: 19px; line-height: 24px; }
  .rv-answer > .note { grid-column: 1 / -1; grid-row: 6; margin-top: 16px; padding-top: 0; }
  .rv-side { grid-column: 1 / -1; }
  .rv-side .tg { position: static; }
  .rv-list { overflow: visible; }
}

/* Секция «blog» и карточка статьи: общая для главной и ленты. Общее — в styles.css. */

/* Выше соседей: капающие края секции лежат поверх них. */
.bl { z-index: 3; }
.bl-grid { align-items: stretch; row-gap: 40px; }
.bl-side { grid-column: 1 / span 5; position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: clamp(560px, calc(100dvh - 176px), 720px); }
.bl-side .lead { margin-top: 16px; font-size: 18px; line-height: 24px; color: var(--fg); }
.bl-side .btn { margin-top: 32px; }
.bl-hero { position: relative; margin-top: auto; padding-top: 16px; width: min(62%, 300px); pointer-events: none; }
/* Подсветка за фигурой: чёрное тело читается на чёрном поле. */
.bl-hero::before { content: ""; position: absolute; inset: 4% -12% 0; background: radial-gradient(closest-side, rgb(28 116 207 / 0.62), rgb(28 116 207 / 0.22) 58%, rgb(28 116 207 / 0)); }
.bl-hero img { position: relative; width: 100%; }
.bl-feed { grid-column: 6 / span 7; display: flex; flex-direction: column; justify-content: center; gap: 32px; }

/* ——— Статья: обложка и текст прямо на поле, без рамки вокруг ——— */
.post { display: flex; flex-direction: column; min-width: 0; }
.post-cover { position: relative; display: block; aspect-ratio: 2 / 1; border-radius: var(--r-l); overflow: hidden; background: var(--azure); }
.post-photo { width: 100%; height: 100%; object-fit: cover; }
.post-pose { position: absolute; right: 8%; bottom: -28%; width: auto; height: 136%; max-width: none; }
.post h3 { margin-top: 20px; font-size: 24px; line-height: 30px; font-weight: 800; letter-spacing: -0.02em; }
.post p { margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--mute); }
.post time { margin-top: 12px; }
.bl .post h3 { font-size: 32px; line-height: 36px; letter-spacing: -0.03em; }
.bl .post p { font-size: 17px; line-height: 26px; }
.post-rows time { display: block; font-size: 14px; line-height: 20px; color: var(--mute); }

/* Лента: свежая статья во всю ширину, текст справа от обложки на тех же колонках. */
.post-grid { row-gap: 56px; }
.post-grid > .post { grid-column: span 4; }
.post-wide { grid-column: 1 / -1; }
.post-wide .post { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); grid-template-rows: auto auto 1fr; }
.post-wide .post-cover { grid-column: 1 / span 7; grid-row: 1 / span 3; }
.post-wide .post h3 { grid-column: 8 / span 5; margin-top: 0; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -0.035em; }
.post-wide .post p { grid-column: 8 / span 5; margin-top: 16px; font-size: 18px; line-height: 26px; }
.post-wide .post time { grid-column: 8 / span 5; margin-top: 16px; }

/* ——— Лента блога плиткой. Размер плитки задаёт автор статьи (поле tile), плотная
   раскладка закрывает дыры. Картинка на всю плитку, текст снизу на затемнении. ——— */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 176px; grid-auto-flow: row dense; gap: var(--gap); }
.bento .post { position: relative; grid-row: span 2; border-radius: var(--r-l); overflow: hidden; background: var(--azure); color: var(--white); isolation: isolate; }
.bento .post-cover { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; border-radius: 0; }
.bento .post-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 12 17 / 0) 30%, rgb(10 12 17 / 0.84)); }
.bento .post-pose { height: 110%; bottom: -16%; }
.bento-text { margin-top: auto; display: flex; flex-direction: column; padding: 24px; }
.bento .post h2 { margin-top: 0; font-size: 22px; line-height: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--white); }
.bento .post p { margin-top: 8px; font-size: 15px; line-height: 22px; color: rgb(255 255 255 / 0.8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bento .post time { margin-top: 12px; color: rgb(255 255 255 / 0.68); }
.bento .bento-small p { display: none; }
.bento .bento-wide { grid-column: span 2; }
.bento .bento-tall { grid-row: span 4; }
.bento .bento-large { grid-column: span 2; grid-row: span 4; }
.bento .bento-wide h2, .bento .bento-tall h2 { font-size: 28px; line-height: 34px; }
.bento .bento-large h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.06; letter-spacing: -0.035em; }
.bento .bento-large .bento-text { padding: 32px; max-width: 760px; }
.bento .bento-large p { -webkit-line-clamp: 3; font-size: 17px; line-height: 26px; }

/* ——— Плитка картинок внутри статьи: <div class="gallery"> с <figure class="g-wide|g-tall|g-large">. ——— */
.prose .gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; grid-auto-flow: row dense; gap: 12px; margin-top: 24px; }
.prose .gallery figure { position: relative; margin: 0; border-radius: var(--r-l); overflow: hidden; background: var(--azure); }
.prose .gallery img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.prose .gallery figcaption { position: absolute; inset: auto 0 0; padding: 8px 12px; font-size: 14px; line-height: 20px; color: var(--white); background: rgb(10 12 17 / 0.64); }
.prose .gallery .g-wide { grid-column: span 2; }
.prose .gallery .g-tall { grid-row: span 2; }
.prose .gallery .g-large { grid-column: span 2; grid-row: span 2; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .post-photo, .post-pose { transition: transform 0.8s var(--spring); }
  .post:hover .post-photo { transform: scale(1.04); }
  .post:hover .post-pose { transform: translateY(-6%) rotate(-3deg); }
}

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .bento .bento-tall { grid-row: span 3; }
  .bento .bento-large { grid-row: span 3; }
  .bl-side, .bl-feed { grid-column: 1 / -1; }
  .bl-side { min-height: 0; }
  .bl-hero { width: min(64%, 280px); margin: 24px auto 0; }
  .bl .post h3 { font-size: 24px; line-height: 30px; }
  .post-grid { row-gap: 40px; }
  .post-grid > .post { grid-column: 1 / -1; }
  .post-wide .post { display: flex; }
  .post-wide .post h3 { margin-top: 20px; font-size: 28px; }
}

@media (max-width: 600px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 132px; gap: 16px; }
  .bento .bento-wide, .bento .bento-large { grid-column: auto; }
  .bento .post { grid-row: span 2; }
  .bento .bento-tall, .bento .bento-large { grid-row: span 3; }
  .bento .bento-large h2, .bento .bento-wide h2, .bento .bento-tall h2 { font-size: 24px; line-height: 30px; }
  .bento-text, .bento .bento-large .bento-text { padding: 20px; }
  .prose .gallery { grid-auto-rows: 140px; }
}

/*
 * Секция «final» и подвал. Страница заканчивается в туши.
 * Слои снизу вверх: дальняя волна, капли, заголовок, маскот, кромка, тушь с
 * копией заголовка, призыв. Все положения считаются от --surface — уровня
 * туши, поэтому заголовок и поверхность не разъезжаются ни на одном экране.
 * Конечное положение записано в базовых правилах: без поддержки прокрутки-шкалы
 * и при просьбе убрать движение секция стоит готовой.
 */
.final {
  --h: max(100dvh, 680px);
  --fs: min(calc((min(100vw, 1264px) - 2 * var(--side)) * 0.1485), calc(var(--h) * 0.2));
  --stack: 176px;
  --tall: 1.9;
  --cross: 0.56;
  --top: calc(var(--h) - var(--stack) - var(--fs) * var(--tall));
  --surface: calc(var(--top) + var(--fs) * var(--cross));
  --tile: 720px;
  --wave-h: 44px;
  --drop: -160px;
  --rise: 46dvh;
  view-timeline: --final block;
  position: relative; isolation: isolate; display: block; overflow: hidden;
  height: var(--h); min-height: 0; padding: 0;
  background: linear-gradient(var(--azure) 40%, var(--deep) 86%);
}

.f-lay { position: absolute; inset: 0; pointer-events: none; }

/* Заголовок как графика. */
.f-word { position: absolute; z-index: 2; top: var(--top); left: var(--side); font-size: var(--fs); line-height: 0.86; font-weight: 800; letter-spacing: -0.05em; white-space: nowrap; color: #fff; }
.final h2 { font-size: var(--fs); line-height: 0.86; letter-spacing: -0.05em; }
.f-l1, .f-l2 { display: block; position: relative; will-change: transform; }
.f-ink .f-word { color: var(--blue); }

/* Волна. Плитка повторяется, поэтому сдвиг на её ширину незаметен. */
.f-back, .f-rim, .f-ink {
  --wave: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 64' preserveAspectRatio='none'><path d='M0 32C90 0 150 0 240 24S390 64 480 32 630 64 720 32V64H0Z'/></svg>");
  position: absolute; left: 0; bottom: 0; width: calc(100% + var(--tile));
  -webkit-mask: var(--wave) 0 0 / var(--tile) var(--wave-h) repeat-x, linear-gradient(#000, #000) 0 calc(var(--wave-h) - 1px) / 100% 100% no-repeat;
  mask: var(--wave) 0 0 / var(--tile) var(--wave-h) repeat-x, linear-gradient(#000, #000) 0 calc(var(--wave-h) - 1px) / 100% 100% no-repeat;
  will-change: transform;
}
.f-back { z-index: 0; top: calc(var(--surface) - 44px); background: var(--deep); opacity: 0.7; }
.f-rim { z-index: 4; top: calc(var(--surface) - 5px); background: var(--blue); }
.f-ink { z-index: 5; top: var(--surface); background: var(--ink); }
.f-stay { position: absolute; left: 0; top: calc(-1 * var(--surface)); width: calc(100% - var(--tile)); height: var(--h); will-change: transform; }

/* Капли отрываются от поверхности и сливаются с ней обратно. */
.f-goo { position: absolute; z-index: 1; left: 0; right: 0; top: calc(var(--surface) - 200px); height: 280px; filter: url(#goo); pointer-events: none; }
.f-goo b { position: absolute; left: -5%; right: -5%; bottom: 0; height: 56px; background: var(--ink); }
.f-goo i { position: absolute; bottom: 24px; border-radius: 50%; background: var(--ink); animation: f-drop 7s var(--flow) infinite; will-change: transform; }
.f-goo i:nth-of-type(1) { left: 1.5%; width: 44px; height: 44px; animation-delay: -1s; }
.f-goo i:nth-of-type(2) { left: 5.5%; width: 28px; height: 28px; animation-delay: -4.2s; animation-duration: 8s; }
.f-goo i:nth-of-type(3) { left: 93.5%; width: 36px; height: 36px; animation-delay: -2.4s; animation-duration: 6.4s; }
.f-goo i:nth-of-type(4) { left: 97%; width: 24px; height: 24px; animation-delay: -5.6s; }
.f-goo i:nth-of-type(5), .f-goo i:nth-of-type(6) { display: none; }

/* Маскот стоит в туши: ниже поверхности он скрыт. */
.f-hero { --w: calc((var(--surface) - 32px) / 0.535 * 0.823); position: absolute; z-index: 1; left: 50%; top: 12px; width: var(--w); margin-left: calc(var(--w) / -2); }
.f-bob { transform-origin: 50% 70%; transition: scale 0.7s var(--settle); animation: f-bob 6s ease-in-out infinite alternate; will-change: transform; }
/* Маскот откликается на кнопку: подаётся вперёд, когда её вот-вот нажмут. */
.final:has([data-key-action]:is(:hover, :focus-visible)) .f-bob { scale: 1.04; }
.f-hero img { width: 100%; will-change: transform; }

/* Реплика маскота: пузырь сообщения слева от него, хвост смотрит на него. */
.final .f-say { position: absolute; left: var(--side); top: max(88px, calc(var(--top) - 280px)); width: calc((100% - 2 * var(--side) - 11 * var(--gap)) / 12 * 3 + 2 * var(--gap)); max-width: none; padding: 12px 16px 14px; border-radius: var(--bubble); border-bottom-right-radius: 6px; background: var(--white); color: var(--ink); font-size: 17px; line-height: 24px; transform-origin: 100% 100%; pointer-events: auto; }

/* Призыв лежит на туши, от него расходятся круги. */
.f-end { z-index: 6; }
.f-cta { position: absolute; left: 50%; bottom: 84px; width: calc((100% - 2 * var(--side) - 11 * var(--gap)) / 12 * 4 + 3 * var(--gap)); transform: translateX(-50%); pointer-events: auto; }
.final .btn { position: relative; width: 100%; min-height: 80px; margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.015em; }
.final .btn .hgi-stroke { font-size: 28px; }
.f-ring { position: absolute; inset: 0; border-radius: var(--r-l); box-shadow: inset 0 0 0 2px var(--blue); opacity: 0; pointer-events: none; animation: f-ring 3.6s var(--flow) infinite; will-change: transform, opacity; }
.f-ring + .f-ring { animation-delay: 1.2s; }
.final .note { position: absolute; left: 0; right: 0; bottom: 40px; margin: 0; text-align: center; font-size: 16px; line-height: 24px; color: var(--mute); }

/* Постоянное движение жидкости. */
.f-rim, .f-ink { animation: f-slide 16s linear infinite; }
.f-stay { animation: f-unslide 16s linear infinite; }
.f-back { animation: f-unslide-back 26s linear infinite; }

@keyframes f-slide { to { transform: translateX(calc(-1 * var(--tile))); } }
@keyframes f-unslide { to { transform: translateX(var(--tile)); } }
@keyframes f-unslide-back { from { transform: translateX(calc(-1 * var(--tile))); } to { transform: translateX(0); } }
@keyframes f-drop { 0%, 12% { transform: translateY(0) scale(1); } 56% { transform: translateY(var(--drop)) scale(0.8); } 100% { transform: translateY(0) scale(1); } }
@keyframes f-bob { from { transform: translateY(-8px); } to { transform: translateY(12px); } }
@keyframes f-ring { 0% { transform: scale(1, 1); opacity: 0.8; } 100% { transform: scale(1.04, 1.3); opacity: 0; } }

/* Уровень туши связан с прокруткой: чем ближе конец страницы, тем выше тень. */
@supports (animation-timeline: view()) {
  @keyframes f-rise { from { translate: 0 var(--rise); } to { translate: 0 0; } }
  @keyframes f-unrise { from { translate: 0 calc(-1 * var(--rise)); } to { translate: 0 0; } }
  @keyframes f-hero-in { from { translate: 0 30%; scale: 0.86; } to { translate: 0 0; scale: 1; } }
  @keyframes f-l1-in { from { translate: -24% 0; } to { translate: 0 0; } }
  @keyframes f-l2-in { from { translate: 24% 0; } to { translate: 0 0; } }
  @keyframes f-say-in { from { scale: 0.6; opacity: 0; } to { scale: 1; opacity: 1; } }

  .f-back, .f-rim, .f-ink { animation-name: f-slide, f-rise; animation-duration: 16s, auto; animation-timing-function: linear; animation-iteration-count: infinite, 1; animation-fill-mode: none, both; animation-timeline: auto, --final; animation-range: normal, entry 10% entry 100%; }
  .f-back { animation-name: f-unslide-back, f-rise; animation-duration: 26s, auto; }
  .f-stay { animation-name: f-unslide, f-unrise; animation-duration: 16s, auto; animation-timing-function: linear; animation-iteration-count: infinite, 1; animation-fill-mode: none, both; animation-timeline: auto, --final; animation-range: normal, entry 10% entry 100%; }
  .f-goo { animation: f-rise linear both; animation-timeline: --final; animation-range: entry 10% entry 100%; }
  .f-hero { animation: f-hero-in linear both; animation-timeline: --final; animation-range: entry 20% entry 100%; transform-origin: 50% 100%; }
  .f-say { animation: f-say-in var(--settle) both; animation-timeline: --final; animation-range: entry 70% entry 100%; }
  .f-l1 { animation: f-l1-in linear both; animation-timeline: --final; animation-range: entry 0% entry 90%; }
  .f-l2 { animation: f-l2-in linear both; animation-timeline: --final; animation-range: entry 0% entry 90%; }
}

/* ——— Подвал: продолжение туши, ссылки на колонках ——— */
footer.dark .foot { position: relative; padding-block: 24px 32px; box-shadow: none; }
footer.dark .foot::before { content: ""; grid-column: 1 / -1; height: 1px; margin-bottom: 8px; background: var(--line); }
footer.dark .foot a { display: inline-flex; align-items: center; }

@media (min-width: 961px) {
  footer.dark .foot p { grid-column: 1 / span 3; }
  footer.dark .foot nav { grid-column: 4 / span 9; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
}

/* Поля уже капли: она легла бы на заголовок. */
@media (min-width: 961px) and (max-width: 1360px) {
  .f-goo i { display: none; }
}

@media (max-width: 960px) {
  .final {
    --h: max(100dvh, 780px);
    --fs: min(calc((100vw - 2 * var(--side)) * 0.1485), calc(var(--h) * 0.18));
    --stack: 244px;
    --tile: 360px;
    --wave-h: 40px;
    --drop: -56px;
  }
  .f-hero { --w: min(88%, calc(var(--h) * 0.5)); top: 64px; }
  .final .f-say { left: var(--side); right: var(--side); top: auto; bottom: 136px; width: auto; padding: 8px 12px 10px; border-radius: var(--bubble); border-bottom-left-radius: 6px; background: var(--ink-2); color: var(--fg); font-size: 16px; line-height: 22px; transform-origin: 0 100%; }
  .f-cta { left: var(--side); right: var(--side); width: auto; bottom: 60px; transform: none; }
  .final .btn { min-height: 64px; font-size: 19px; }
  .final .note { left: var(--side); right: var(--side); bottom: 24px; font-size: 14px; line-height: 20px; text-align: left; }
  .f-goo i:nth-of-type(1) { left: 76%; width: 24px; height: 24px; }
  .f-goo i:nth-of-type(2) { left: 88%; width: 16px; height: 16px; }
  .f-goo i:nth-of-type(3), .f-goo i:nth-of-type(4) { display: none; }
  footer.dark .foot nav { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 var(--gap); }
  footer.dark .foot nav a { min-height: 44px; overflow-wrap: anywhere; }
  footer.dark .foot nav a:first-child { grid-column: 1 / -1; }
  footer.dark .foot p { order: 2; }
}

/* Телефон: заголовок в четыре строки, под водой — со второй. */
@media (max-width: 600px) {
  .final {
    --fs: calc((100vw - 2 * var(--side)) * 0.215);
    --tall: 3.6;
    --cross: 1.42;
  }
  .f-m { display: block; }
}
