/* «Канал» — сайт и кабинет, оформление v3 (design/Сайт v3, Кабинет v3, 28.09.2026).
   Тёмная тема, лаймовый акцент, кремовые врезки. Панель владельца живёт на
   kanal.css и этого файла не касается.
   Шрифт — Golos Text (локально). JetBrains Mono из макета НЕ подключаем:
   владелец исключил его как примету «ИИ-дизайна»; ключ и ссылка набраны
   тем же Golos с табличными цифрами. */

@import url("../fonts/golos.css");

:root {
  --page: #0F1012;
  --deep: #08090A;
  --surface: #17181B;
  --hover: #1E2024;
  --line: #202226;
  --line-2: #2A2C31;
  --line-3: #3A3C42;
  --ink: #F2F0EA;
  --ink-2: #A8A69E;
  --ink-3: #86847C;
  --ink-4: #5E5D57;
  --lime: #D7F75B;
  --lime-hover: #E3FB82;
  --lime-ink: #111204;
  --warn: #FF9E4A;
  --cream: #F2F0EA;
  --cream-ink: #111204;
  --cream-2: #55544E;
  --scrim: rgba(8, 9, 10, .78);
  --gutter: clamp(16px, 4vw, 48px);
  --shell: 1200px;
  --radius: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--page); }
body {
  margin: 0; min-height: 100vh; background: var(--page); color: var(--ink);
  font-family: 'Golos Text', 'Helvetica Neue', sans-serif; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
img { max-width: 100%; }
a {
  color: var(--ink); text-decoration: underline; text-decoration-color: rgba(242, 240, 234, .35);
  text-underline-offset: 3px; transition: color .15s ease, text-decoration-color .15s ease;
}
a:hover { color: var(--lime); text-decoration-color: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
::selection { background: var(--lime); color: var(--lime-ink); }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- каркас ---------------------------------------------------------------- */
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.shell-narrow { max-width: 1100px; }
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(15, 16, 18, .86); backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.top.is-stuck { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 12px 28px; min-height: 68px; }
.brand { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.where { font-size: 15px; color: var(--ink-3); }
.nav { display: flex; gap: 24px; font-size: 15px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } }
/* на телефоне шапка кабинета — только нужное: бренд и кнопки, с переносом */
@media (max-width: 560px) {
  .top-in { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; min-height: 60px; }
  .top-in .where, .top-in .lvl { display: none; }
}
.push { margin-left: auto; }

.sec { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.sec-rule { border-top: 1px solid var(--line); }
.sec-cream { background: var(--cream); color: var(--cream-ink); }
.sec-cream .text, .sec-cream .lead { color: var(--cream-2); }
.sec-cream a { color: var(--cream-ink); text-decoration-color: rgba(17, 18, 4, .35); }

.foot { border-top: 1px solid var(--line); padding-top: 40px; padding-bottom: 44px;
        display: flex; flex-wrap: wrap; gap: 28px 56px; font-size: 15px; }
.foot .col { display: flex; flex-direction: column; gap: 8px; flex: 0 1 180px; }
.foot .col-main { flex: 1 1 220px; gap: 6px; }
.foot .head { color: var(--ink-3); }

/* --- типографика ----------------------------------------------------------- */
.h-hero { font-size: clamp(44px, 7.4vw, 88px); line-height: .96; font-weight: 600;
          letter-spacing: -0.045em; text-wrap: balance; max-width: 11ch; }
.h-page { font-size: clamp(36px, 5.2vw, 60px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; text-wrap: balance; }
.h-sec { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.h-block { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.h-item { font-size: 18px; line-height: 1.3; font-weight: 600; }
.lead { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; max-width: 42ch; }
.text { font-size: 17px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.text-ink { color: var(--ink); }
.note { font-size: 15px; line-height: 1.55; color: var(--ink-3); text-wrap: pretty; }
.small { font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.label { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; }
.measure { max-width: 58ch; }
.accent { color: var(--lime); }
.warn { color: var(--warn); }

/* --- кнопки ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: var(--radius);
  border: 1px solid var(--line-3); background: transparent; color: var(--ink);
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .08s ease;
}
.btn:hover { background: var(--hover); color: var(--ink); }
.btn:active:not([disabled]) { transform: translateY(1px); }
/* btn-primary — то же, что btn-lime: так главную кнопку зовут шаблоны и тесты */
.btn-lime, .btn-primary { border: 0; background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover, .btn-primary:hover { background: var(--lime-hover); color: var(--lime-ink); }
.btn-install { min-height: 42px; padding: 0 14px; font-size: 14px; font-weight: 500; }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 17px; }
.btn-sm { min-height: 42px; padding: 0 14px; font-size: 14px; font-weight: 500; }
.btn-block { width: 100%; }
.btn .sub { font-weight: 500; opacity: .6; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-text {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px;
  border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; font-weight: 500;
  cursor: pointer; text-decoration: underline; text-decoration-color: rgba(242, 240, 234, .35);
  text-underline-offset: 4px; transition: color .15s ease;
}
.btn-text:hover { color: var(--lime); }
.linkbtn { border: 0; background: transparent; padding: 4px 0; font: inherit; font-size: 15px;
           color: var(--ink-2); cursor: pointer; transition: color .15s ease; }
.linkbtn:hover { color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.app-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.app-btns .btn { flex: 1 1 auto; }

/* кнопка, пока ждём ответа (kanal.js) */
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"] [data-label], .btn[aria-busy="true"].no-label { animation: k-blink 1.1s ease-in-out infinite; }

/* --- состояние: точка с пульсом ------------------------------------------- */
.dot { position: relative; width: 8px; height: 8px; flex: none; display: inline-block; }
.dot::before, .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--tone, var(--lime)); }
.dot.is-live::before { animation: k-ping 2.4s ease-out infinite; }
.tone-ok { --tone: var(--lime); }
.tone-warn { --tone: var(--warn); }
.tone-off { --tone: var(--ink-3); }
.tone-bad { --tone: var(--warn); }
.tag { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--tone, var(--lime)); }
.statusline { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }

/* --- поля ------------------------------------------------------------------ */
.field {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: var(--radius);
  border: 1px solid var(--line-3); background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 16px; transition: border-color .15s ease;
}
.field::placeholder { color: var(--ink-4); }
.field:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.field-key {
  min-height: 58px; padding: 0 16px; font-size: clamp(16px, 2.2vw, 19px); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums;
}
.field-key::placeholder { letter-spacing: .06em; }
.field.is-warn { border-color: var(--warn); }
.field-msg { display: block; margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--warn);
             animation: k-appear .2s var(--ease) both; }
.field-row { display: flex; flex-wrap: wrap; gap: 8px; }
.field-row .field { flex: 1 1 200px; }

/* --- выбор срока/тарифа: плашки и переключатель ------------------------- */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius); border: 1px solid var(--line-2); }
.seg button, .seg a {
  border: 0; border-radius: 7px; padding: 9px 14px; background: transparent; color: var(--ink-2);
  font-family: inherit; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.seg button:hover { color: var(--ink); }
.seg [aria-selected="true"], .seg [aria-pressed="true"] { background: var(--cream); color: var(--cream-ink); }

.choices { display: flex; flex-direction: column; gap: 6px; }
.choices-row { flex-direction: row; flex-wrap: wrap; }
.choices-row .choice { flex: 1 1 140px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice .box {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 16px;
  border-radius: var(--radius); border: 1px solid var(--line-2); background: transparent;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice .box::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--ink-4); transition: border .15s ease;
}
.choice .name { flex: 1 1 auto; min-width: 0; font-size: 16px; font-weight: 500; }
.choice .name small { display: block; font-size: 13px; font-weight: 400; color: var(--ink-3); }
.choice .price { flex: none; white-space: nowrap; font-size: 16px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.choice:hover .box { background: var(--hover); }
.choice input:checked + .box { border-color: var(--lime); background: var(--hover); }
.choice input:checked + .box::before { border: 5px solid var(--lime); }
.choice input:checked + .box .price { color: var(--ink); }
.choice input:focus-visible + .box { outline: 2px solid var(--lime); outline-offset: 2px; }

/* --- строки с чертой сверху (списки, вопросы, точки) --------------------- */
.rule-list { border-bottom: 1px solid var(--line-2); }
.rule-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; padding: 20px 0; border-top: 1px solid var(--line-2); }
.rule-row.tight { padding: 14px 0; gap: 4px 16px; }
.rule-row .main { flex: 1 1 260px; min-width: 0; font-size: clamp(18px, 2vw, 22px); font-weight: 500; }
.rule-row .side { flex: 0 1 300px; font-size: 16px; color: var(--ink-2); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 40px; }
.feature { padding-top: 18px; border-top: 1px solid var(--line-2); }
.feature p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.step3 { display: flex; flex-direction: column; gap: 14px; }
.step3 .n { font-size: 56px; line-height: 1; font-weight: 500; letter-spacing: -0.04em; }
.step3 p { font-size: 16px; line-height: 1.55; color: var(--cream-2); }

.keychip { align-self: flex-start; padding: 8px 12px; border-radius: 6px; background: var(--cream-ink); color: var(--cream);
           font-size: 14px; font-weight: 500; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

.strike { display: flex; flex-direction: column; border-bottom: 1px solid var(--line-2); }
.strike span { padding: 12px 0; border-top: 1px solid var(--line-2); font-size: 19px;
               text-decoration: line-through; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }

/* --- герой ----------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
        gap: 48px 56px; align-items: center;
        padding-top: clamp(24px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); }
.phone-card {
  width: 100%; max-width: 440px; margin: 0 auto; height: clamp(380px, 46vw, 540px);
  padding-top: clamp(28px, 4vw, 48px); border-radius: 16px; background: var(--lime);
  display: flex; justify-content: center; overflow: hidden;
}
.phone-card .frame { width: 62%; max-width: 270px; align-self: flex-start; padding: 7px 7px 0;
                     border-radius: 34px 34px 0 0; background: var(--lime-ink); }
.phone-card img { display: block; width: 100%; border-radius: 28px 28px 0 0; }
.hero figcaption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--ink-3); }
.promo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 22px;
         padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line-2); font-size: 15px; color: var(--ink-2); }
.promo b { color: var(--ink); font-weight: 600; }
.promo .code { color: var(--lime); font-weight: 600; letter-spacing: .06em; }

/* --- цены ------------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1px;
         background: var(--line-2); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.plan { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 6px; background: var(--page); }
.plan-hi { background: var(--surface); }
.plan .price { display: flex; align-items: baseline; gap: 8px; margin-top: 28px; }
.plan .price b { font-size: clamp(48px, 6vw, 64px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.plan .total { font-size: 14px; color: var(--ink-3); margin-bottom: 24px; min-height: 21px; }
.plan .btn { margin-top: auto; }

/* --- вопросы: <details data-animate>, раскрытие скриптом ------------------ */
.faq { border-bottom: 1px solid var(--line-2); }
.faq details { border-top: 1px solid var(--line-2); }
.faq summary {
  display: flex; align-items: center; gap: 16px; padding: 20px 0; list-style: none; cursor: pointer;
  font-size: 18px; font-weight: 500; transition: color .15s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--lime); }
.faq summary span { flex: 1 1 auto; }
.faq summary svg { flex: none; transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 40px 22px 0; max-width: 62ch; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* --- врезки и пометки ----------------------------------------------------- */
.callout { border-left: 2px solid var(--warn); padding: 4px 0 4px 16px; font-size: 16px; line-height: 1.55; color: var(--ink); }
.callout-box { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px 18px; }
.stub-tag { font-size: 14px; color: var(--warn); }
.stub { color: inherit; }
.panel { border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); padding: clamp(20px, 3vw, 28px); }

/* --- кабинет: секции «заголовок слева — дело справа» -------------------- */
.split { display: flex; flex-wrap: wrap; gap: 16px 48px; padding: 32px 0; border-top: 1px solid var(--line-2); scroll-margin-top: 80px; }
.split-hot { border-top: 2px solid var(--warn); }
.split > .aside { flex: 1 1 220px; max-width: 300px; }
.split > .aside p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.split > .body { flex: 3 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.split-hot .h-block { color: var(--warn); }

.state { padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); }
.state-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-top: 18px; }
.state-title { font-size: clamp(38px, 5.8vw, 68px); line-height: .98; font-weight: 600; letter-spacing: -0.045em; text-wrap: balance; }
.state-text { margin-top: 18px; max-width: 50ch; font-size: 17px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.meta { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px 32px; }
.meta > div { padding-top: 14px; border-top: 1px solid var(--line-2); }
.meta .k { display: block; font-size: 14px; color: var(--ink-3); margin-bottom: 4px; }
.meta .v { display: block; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { margin-top: 10px; height: 3px; background: var(--line-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--tone, var(--lime)); transform-origin: left;
         animation: k-grow .9s var(--ease) both .2s; }
.lvl { font-size: 13px; color: var(--ink-3); }

.linkline {
  flex: 1 1 220px; min-width: 0; padding: 13px 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-2); font-size: 14px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums;
}
.qr { flex: none; width: 168px; height: 168px; padding: 10px; border-radius: 8px; background: var(--cream); }
.qr svg { display: block; width: 100%; height: 100%; }
.qr-sm { width: 152px; height: 152px; }
.qr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.qr-toggle summary { list-style: none; width: fit-content; }
.qr-toggle summary::-webkit-details-marker { display: none; }
.qr-toggle .qr-row { padding-top: 12px; }

.dev { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.dev .who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dev .nm { font-size: 16px; font-weight: 500; }
.dev form { flex: none; }
.dev .when { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dev .off { color: var(--ink-4); }

.country { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.country .nm { flex: 0 0 140px; font-size: 18px; font-weight: 600; }
.country .lines { flex: 1 1 220px; min-width: 0; font-size: 15px; color: var(--ink-2); }
.country .lines b { color: var(--ink); font-weight: 500; }
.country .st { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--tone, var(--lime)); }
.country .st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.pay-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.pay-row .d { flex: 0 0 140px; font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pay-row .w { flex: 1 1 200px; font-size: 16px; }
.pay-row .s { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }

.cab-links { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 28px; border-top: 1px solid var(--line-2); font-size: 15px; }

.demobar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
           padding: 8px var(--gutter); background: var(--deep); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.demobar a { padding: 5px 10px; border-radius: 4px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.demobar a:hover { color: var(--ink); }
.demobar a[aria-current="page"] { background: var(--cream); color: var(--cream-ink); }

/* --- лист продления -------------------------------------------------------- */
.sheet-scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim);
               display: flex; align-items: flex-end; justify-content: center; padding: 16px;
               opacity: 0; transition: opacity .22s ease; }
.sheet-scrim.is-open { opacity: 1; }
.sheet {
  width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; overflow-x: hidden;
  padding: 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  transform: translateY(28px); transition: transform .3s var(--ease);
}
.sheet-scrim.is-open .sheet { transform: none; }
@media (min-width: 641px) {
  .sheet-scrim { align-items: center; }
  .sheet { transform: translateY(10px) scale(.97); }
}
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sheet-head h2 { font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; }
.sheet-sum { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px;
             margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); }

/* --- установка: шаги ------------------------------------------------------ */
.isteps { list-style: none; padding: 0; display: flex; flex-direction: column; }
.istep { display: flex; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line-2); }
.istep .n { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-3);
            display: flex; align-items: center; justify-content: center; font-weight: 600; transition: background-color .2s ease, color .2s ease; }
.istep > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.istep.is-done .n { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.istep.is-next .n { outline: 2px solid var(--lime); outline-offset: 2px; }

/* --- ключ на экране ------------------------------------------------------- */
.keybox { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 20px; border-radius: 14px;
          background: var(--surface); border: 1px solid var(--line-2); }
.t-key { flex: 1 1 100%; font-size: clamp(22px, 3.4vw, 32px); font-weight: 600; letter-spacing: .1em;
         font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* --- нет сети -------------------------------------------------------------- */
.offline { position: sticky; top: 0; z-index: 50; background: var(--warn); color: var(--lime-ink);
           font-size: 15px; line-height: 22px; padding: 10px 16px; text-align: center;
           animation: k-appear .2s var(--ease) both; }

/* --- движение --------------------------------------------------------------
   Переходы между страницами, появление блоков при прокрутке (только главная и
   только если скрипт отметил <html class="js-reveal">: без скрипта ничего не
   прячется), отклик на нажатие, раскрытия, лист. «Уменьшить движение» — в конце. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 160ms ease-out both k-fade-out; }
::view-transition-new(root) { animation: 260ms var(--ease) both k-rise-in; }
.top { view-transition-name: k-top; }
::view-transition-group(k-top) { animation-duration: 0s; }

@keyframes k-fade-out { to { opacity: 0; } }
@keyframes k-rise-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes k-appear { from { opacity: 0; transform: translateY(-3px); } }
@keyframes k-blink { 50% { opacity: .35; } }
@keyframes k-ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes k-grow { from { transform: scaleX(0); } }
@keyframes k-up { from { opacity: 0; transform: translateY(18px); } }

/* вход на страницу: заголовок, текст и кнопки поднимаются по очереди */
.enter > * { animation: k-up .7s var(--ease) both; }
.enter > :nth-child(2) { animation-delay: .07s; }
.enter > :nth-child(3) { animation-delay: .14s; }
.enter > :nth-child(4) { animation-delay: .21s; }
.enter > :nth-child(5) { animation-delay: .28s; }
.enter > :nth-child(n+6) { animation-delay: .32s; }

/* появление при прокрутке */
.js-reveal [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

.is-flash { animation: k-appear .18s var(--ease) both; }
.reveal { animation: k-appear .2s var(--ease) both; }
.plan .price b.is-swap, .plan .total.is-swap { animation: k-appear .25s var(--ease) both; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
section[id] { scroll-margin-top: 80px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; animation-delay: 0s !important; transition-delay: 0s !important;
  }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
  .dot.is-live::before { animation: none; opacity: 0; }
  .btn:active:not([disabled]) { transform: none; }
}
