@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; }
}

/*
 * Секция «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; }
}

/* Секция «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; }
}

/* Внутренние страницы: блог, статья, документы. Тот же лист, сетка и поля, что у главной. */

/* Шапка страницы: тёмное поле, заголовок на колонках, маскот на нижней линии. */
.doc-head { position: relative; z-index: 2; padding-block: 128px 64px; }
.doc-head .grid { align-items: end; }
.doc-title { grid-column: 1 / span 8; padding-bottom: 32px; }
.doc-title h1 { font-size: clamp(40px, 5vw, 72px); }
.doc-title.long h1 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; }
.doc-title .lead { margin-top: 20px; color: var(--fg); }
.doc-title .note { margin-top: 16px; }
.doc-back { margin-bottom: 24px; }
.doc-hero { grid-column: 9 / span 4; position: relative; justify-self: end; width: min(100%, 320px); margin-bottom: -48px; pointer-events: none; }
.doc-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)); }
.doc-hero img { position: relative; width: 100%; }

.doc-body { position: relative; padding-block: 144px 160px; }
.doc-grid { align-items: start; row-gap: 40px; }

/* Шов перед подвалом: тушь поднимается каплями, как на главной. */
.doc-seam { position: relative; height: 0; }

/* Документ: оглавление слева, текст на семи колонках, строка не шире 75 знаков. */
.doc-nav { grid-column: 1 / span 3; position: sticky; top: 88px; max-height: calc(100dvh - 112px); overflow-y: auto; scrollbar-width: thin; }
.doc-nav ol { display: grid; gap: 4px; }
.doc-nav a { display: block; padding-block: 6px; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--mute); transition: color 0.2s; }
.doc-nav a:hover { color: var(--accent); }
.doc-text { grid-column: 5 / span 7; }
.doc-text section { scroll-margin-top: 88px; }
.doc-text section + section { margin-top: 48px; }

/* Статья: текст на восьми колонках, справа призыв. */
.doc-article { grid-column: 1 / span 8; min-width: 0; }
.doc-cover { width: 100%; margin-top: 16px; border-radius: var(--r-l); }
.doc-article .prose { margin-top: 32px; }
.doc-aside { grid-column: 10 / span 3; position: sticky; top: 88px; display: grid; gap: 16px; }
.doc-aside img { width: 72%; }
.doc-aside .btn { width: 100%; padding-inline: 12px; }
.doc-more { margin-top: 96px; }
.doc-more h2 { margin-bottom: 32px; font-size: clamp(32px, 3.2vw, 44px); }

/* Длинный текст. Внутри группы плотно, перед новым разделом просторно. */
.prose { font-size: 18px; line-height: 30px; }
.prose h2 { font-size: 28px; line-height: 34px; letter-spacing: -0.025em; }
.prose h3 { margin-top: 32px; font-size: 22px; line-height: 28px; font-weight: 800; }
.prose > h2 { margin-top: 48px; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose table, .prose blockquote, .prose pre, .prose figure { margin-top: 16px; }
.prose ul { list-style: disc; padding-left: 24px; }
.prose ol { list-style: decimal; padding-left: 24px; }
.prose li + li { margin-top: 8px; }
/* Чуть темнее акцента: на светлом поле #1c74cf даёт контраст 4,35 при норме 4,5. */
.prose a { color: #1a6dc4; text-decoration: underline; text-underline-offset: 3px; }
.prose img { height: auto; border-radius: var(--r-m); }
.prose figcaption { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--mute); }
.prose blockquote { padding-left: 16px; box-shadow: inset 3px 0 0 var(--azure); color: var(--mute); }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; }
.prose th, .prose td { padding: 8px 12px; box-shadow: inset 0 0 0 0.5px var(--line); text-align: left; }
.prose pre { overflow-x: auto; padding: 16px; border-radius: var(--r-m); background: var(--ink); color: #f4f8fd; font-size: 15px; line-height: 24px; }

/* Реквизиты: подпись слева, значение справа, без линий. */
.doc-text .doc-req { margin-top: 64px; padding: 24px; border-radius: var(--r-l); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.doc-req dl { margin-top: 16px; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 24px; font-size: 16px; line-height: 24px; }
.doc-req dt { color: var(--mute); }
.doc-req dd { overflow-wrap: anywhere; }
.doc-req .link { text-decoration: none; }

@media (max-width: 960px) {
  .doc-head { padding-block: 96px 32px; }
  .doc-title { grid-column: 1 / -1; padding-bottom: 8px; }
  .doc-hero { grid-column: 1 / -1; justify-self: center; width: min(56%, 220px); margin-bottom: -16px; }
  .doc-body { padding-block: 96px 112px; }
  .doc-nav { display: none; }
  .doc-text, .doc-article, .doc-aside { grid-column: 1 / -1; }
  .doc-aside { position: static; }
  .doc-aside img { width: 40%; }
  .prose { font-size: 17px; line-height: 28px; }
  .prose h2 { font-size: 24px; line-height: 30px; }
  .doc-req dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .doc-req dd + dt { margin-top: 12px; }
}
.doc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
