/* Xelosa — сайт.
   Палитра из логотипа: ночной синий, орбита, жёлтая планета.
   Жёлтый — на главной кнопке, выделенной строке файла и фокусе. */

@font-face { font-family: "Onest"; font-weight: 400; font-display: swap;
  src: url(/static/fonts/onest-cyrillic-400-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap;
  src: url(/static/fonts/onest-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap;
  src: url(/static/fonts/onest-cyrillic-600-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap;
  src: url(/static/fonts/onest-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2122, U+2212; }
@font-face { font-family: "Onest"; font-weight: 800; font-display: swap;
  src: url(/static/fonts/onest-cyrillic-800-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-weight: 800; font-display: swap;
  src: url(/static/fonts/onest-latin-800-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+20BD, U+2122, U+2212; }

:root {
  --paper: #eef1f6;
  --sheet: #ffffff;
  --ink: #0b122f;
  --ink-2: #1b2550;
  --blue: #4a80ea;
  --sun: #ffd166;
  --muted: #59627a;
  --rule: #cdd3de;
  --grid: #e3e7ee;
  --ok: #1e7b4e;
  --err: #b3261e;
  --radius: 8px;
  --gutter: 16px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink); overflow-x: clip;
  font: 400 17px/1.55 "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--sheet);
  padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ── Шапка ──────────────────────────────────────────── */
.top { display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px var(--gutter); max-width: var(--wrap); margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit;
  text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.brand img { display: block; border-radius: 50%; }
.top-dark .brand img { width: 42px; height: 42px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.nav { display: flex; gap: 12px 28px; align-items: center; flex-wrap: wrap;
  justify-content: flex-end; }
.nav-main, .nav-act { display: flex; align-items: center; gap: 22px; }
.nav-act { gap: 10px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.nav-main a { opacity: .85; }
.nav-main a:hover, .nav-main a[aria-current] { opacity: 1; text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-main a[aria-current] { text-decoration-color: var(--sun); }
.nav .nav-order, .nav .nav-cab { border-radius: 999px; padding: 7px 16px; }
.nav .nav-order { background: var(--sun); color: var(--ink); }
.nav .nav-order:hover { background: #ffdc85; }
.nav .nav-cab { border: 1.5px solid currentColor; padding: 5.5px 14px; }
.nav .nav-cab:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.tg-icon { width: 18px; height: 18px; flex: none; }
.top-dark { color: #fff; }
.top-dark .nav-cab:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 1020px) {
  .top { flex-wrap: wrap; row-gap: 12px; }
  .nav { width: 100%; justify-content: space-between; }
}
@media (max-width: 700px) {
  /* Телефон: логотип и кнопки — первой строкой, разделы — лентой под ними */
  .top { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
  .nav { display: contents; }
  .nav-act { justify-content: flex-end; }
  .nav-main { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; gap: 18px;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px;
    scrollbar-width: none; }
  .nav-main::-webkit-scrollbar { display: none; }
  .nav a { font-size: 14px; }
  .nav .nav-order, .nav .nav-cab { padding: 6px 12px; }
  .brand span { font-size: 19px; }
}

/* ── Подвал ─────────────────────────────────────────── */
.foot { margin-top: 88px; background: var(--ink); color: #c9d0e3; font-size: 14px; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 36px var(--gutter) 44px;
  display: grid; gap: 14px 40px; }
@media (min-width: 800px) { .foot-in { grid-template-columns: auto 1fr auto; align-items: start; }
  .foot-docs { grid-column: 1 / -1; } }
.foot p { margin: 0; }
.foot a { color: #fff; }
.foot .brand { color: #fff; font-size: 18px; }
.foot-docs a { color: #c9d0e3; margin-right: 18px; }
.tg-link { display: inline-flex; align-items: center; gap: 8px; }

/* ── Колонки ────────────────────────────────────────── */
main { margin: 0 auto; padding: 0 var(--gutter); }
main.wide { max-width: var(--wrap); }
main.narrow { max-width: 720px; padding-top: 24px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-weight: 800; font-size: clamp(34px, 5.2vw, 58px); letter-spacing: -0.025em;
  line-height: 1.04; }
main.narrow h1 { font-size: clamp(28px, 4.5vw, 40px); }
h2 { font-weight: 800; font-size: clamp(24px, 3vw, 34px); }
h3 { font-weight: 600; font-size: 19px; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 19px; max-width: 46ch; }
main.narrow .lead { max-width: 60ch; }
.small { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }
.opt { font-weight: 400; color: var(--muted); font-size: 14px; }
section { margin-top: 72px; }
main.narrow section { margin-top: 44px; }

/* ── Главная: тёмный первый экран ──────────────────── */
.hero-wrap { position: relative; color: #fff; background: var(--ink);
  margin-inline: calc(50% - 50vw); padding: 0 max(var(--gutter), calc(50vw - var(--wrap) / 2 + var(--gutter)));
  padding-bottom: 28px; overflow: hidden; isolation: isolate; }
/* Сетка таблицы на фоне — гаснет к краям */
.hero-wrap::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 35%, #000 20%, transparent 75%); }
.hero-wrap::after { content: ""; position: absolute; z-index: -1; width: 720px; height: 720px;
  right: -200px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,128,234,.28), transparent 65%); }
.hero-wrap .top { padding-inline: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px;
  margin-top: 20px; align-items: center; }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px;
    margin-top: 40px; }
}
.hero h1 { color: #fff; }
.hero .lead { color: #d7dcea; }
.hero .small { color: #9aa4c2; }
.hero label { color: #d7dcea; }
.hero input { border-color: transparent; }
.hero .estimate { color: #8fe0b0; }
.estimate:empty { display: none; }
.hero .small { margin-top: 4px; }
.quick { display: grid; gap: 12px; margin: 30px 0 12px; max-width: 540px; }
@media (min-width: 600px) {
  .quick { grid-template-columns: 1fr 1fr; }
  .quick .btn, .quick .estimate { grid-column: 1 / -1; }
}

/* Появление первого экрана — один раз */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero-text > :nth-child(2) { animation-delay: .08s; }
  .hero-text > :nth-child(3) { animation-delay: .16s; }
  .hero-text > :nth-child(4) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}

/* ── Пример файла на орбите ─────────────────────────── */
.sheet-stage { position: relative; padding: 36px 0; }
.orbit { position: absolute; left: -12%; top: -18%; width: 124%; height: 136%;
  overflow: visible; pointer-events: none; }
.orbit ellipse { fill: none; stroke: var(--blue); stroke-width: 2.5; opacity: .75; }
.orbit circle { fill: var(--sun); }
.orbit .planet-static { display: none; }
@media (prefers-reduced-motion: reduce) {
  .orbit .planet { display: none; }
  .orbit .planet-static { display: inline; }
}
.sheet { position: relative; margin: 0; background: var(--sheet); color: var(--ink);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.08); }
.sheet-bar { display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid var(--rule); font-size: 14px;
  font-weight: 600; background: #f7f9fc; }
.sheet-bar > span:first-child::before { content: ""; display: inline-block; width: 10px;
  height: 10px; border-radius: 2px; background: #1f7a45; margin-right: 8px; }
.sheet-bar > span:last-child { color: var(--muted); font-weight: 400; }
.sheet-scroll { overflow-x: auto; }
.sheet table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 13.5px; }
.sheet th, .sheet td { border: 1px solid var(--grid); padding: 9px 8px; text-align: left;
  white-space: nowrap; }
.sheet thead th { background: #f5f7fa; font-weight: 600; vertical-align: bottom; }
.sheet .col { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.sheet .rn { width: 36px; text-align: center; color: var(--muted); font-weight: 400;
  background: #f5f7fa; }
.sheet tr.marked td { background: linear-gradient(var(--sun), var(--sun))
  no-repeat left / 100% 100%; }
.sheet figcaption { padding: 12px 14px; font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--rule); }
/* Строки «приходят» по одной, потом маркер выделяет одну из них */
@media (prefers-reduced-motion: no-preference) {
  .sheet tbody tr { animation: row-in .55s cubic-bezier(.2,.7,.2,1) both;
    animation-delay: calc(.45s + var(--i) * .16s); }
  @keyframes row-in { from { opacity: 0; transform: translateY(-8px); } }
  .sheet tr.marked td { animation: mark .8s cubic-bezier(.3,.7,.3,1) 1.5s both; }
  .sheet tr.marked td:nth-child(3) { animation-delay: 1.62s; }
  .sheet tr.marked td:nth-child(4) { animation-delay: 1.74s; }
  .sheet tr.marked td:nth-child(5) { animation-delay: 1.86s; }
  @keyframes mark { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
}

/* ── Бегущая строка ниш ─────────────────────────────── */
.ticker { margin-top: 48px; display: flex; align-items: center; gap: 20px;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; }
.ticker-label { margin: 0; flex: none; font-weight: 600; color: var(--sun); font-size: 15px; }
.ticker-track { display: flex; overflow: hidden; flex: 1; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px;
  padding-right: 28px; flex: none; }
.ticker li { white-space: nowrap; color: #c9d0e3; font-size: 15px; }
.ticker li::before { content: ""; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--blue); margin-right: 10px; vertical-align: middle; }
@media (prefers-reduced-motion: no-preference) {
  .ticker ul { animation: ticker 45s linear infinite; }
  .ticker-track:hover ul { animation-play-state: paused; }
  @keyframes ticker { to { transform: translateX(-100%); } }
}
@media (max-width: 640px) { .ticker { flex-direction: column; align-items: stretch; gap: 10px; } }

/* ── Появление разделов при прокрутке ───────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ── Шаги ───────────────────────────────────────────── */
.steps ol { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 28px;
  counter-reset: step; }
@media (min-width: 800px) { .steps ol { grid-template-columns: repeat(3, 1fr); gap: 36px; } }
.steps li { counter-increment: step; position: relative; padding-top: 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff;
  font-weight: 800; font-size: 19px; margin-bottom: 16px; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--paper); }
.steps li:last-child::before { background: var(--sun); color: var(--ink); }
@media (min-width: 800px) {
  .steps li::after { content: ""; position: absolute; left: 44px; right: -36px; top: 43px;
    border-top: 2px dashed var(--rule); }
  .steps li:last-child::after { display: none; }
}

/* ── Тарифы ─────────────────────────────────────────── */
.table-scroll { overflow-x: auto; margin: 24px 0 12px; background: var(--sheet);
  border-radius: 12px; box-shadow: 0 1px 0 var(--rule), 0 20px 40px -30px rgba(11,18,47,.4); }
.tariffs { border-collapse: collapse; width: 100%; min-width: 560px; }
.tariffs th, .tariffs td { padding: 14px 16px; text-align: left;
  border-bottom: 1px solid var(--grid); }
.tariffs tbody tr:last-child th, .tariffs tbody tr:last-child td { border-bottom: 0; }
.tariffs thead th { font-size: 20px; font-weight: 800; padding-top: 20px; }
.tariffs thead th::after { content: ""; display: block; width: 28px; height: 4px;
  border-radius: 2px; background: var(--blue); margin-top: 8px; }
.tariffs tbody th { font-weight: 400; color: var(--muted); width: 32%; }
.tariffs tbody tr:hover { background: #f7f9fc; }
.tariffs td strong { font-weight: 800; font-size: 19px; }
@media (max-width: 600px) {
  .tariffs { min-width: 480px; font-size: 15px; }
  .tariffs th, .tariffs td { padding: 10px 8px; }
  .tariffs thead th { font-size: 17px; }
}

/* ── Telegram ───────────────────────────────────────── */
.tg-band { display: grid; gap: 20px; align-items: center; background: var(--ink);
  color: #fff; border-radius: 16px; padding: 30px 28px; position: relative; overflow: hidden; }
.tg-band::after { content: ""; position: absolute; width: 360px; height: 140px; right: -60px;
  top: -40px; border: 2px solid var(--blue); border-radius: 50%; transform: rotate(-14deg);
  opacity: .6; }
.tg-band h2 { color: #fff; margin-bottom: .3em; }
.tg-band p { color: #c9d0e3; margin: 0; }
.tg-band .btn { position: relative; z-index: 1; display: inline-flex; align-items: center;
  gap: 8px; justify-self: start; }
@media (min-width: 800px) { .tg-band { grid-template-columns: 1fr auto; padding: 36px 40px; } }

/* ── Вопросы ────────────────────────────────────────── */
.faq details { border-bottom: 1px solid var(--rule); max-width: 780px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 18px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1;
  color: var(--blue); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: -4px; }

/* ── Формы ──────────────────────────────────────────── */
.form { display: grid; gap: 18px; margin: 20px 0; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
legend { font-weight: 800; font-size: 20px; padding: 0; margin-bottom: 10px; }
.field { display: grid; gap: 6px; }
.field .small { margin: 0; }
label { font-weight: 600; font-size: 15px; }
input[type=text], input[type=email], input[type=search], input[type=password],
input:not([type]),
select, textarea {
  font: inherit; color: var(--ink); background: var(--sheet); width: 100%;
  border: 1px solid #9aa5b8; border-radius: var(--radius); padding: 11px 12px;
  min-height: 46px; }
textarea { min-height: 0; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 0; box-shadow: 0 0 0 5px var(--sun); }
input[type=file] { font: inherit; font-size: 15px; }
.checks { display: grid; gap: 8px; }
.checks label, .consent { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; margin: 2px 0 0;
  accent-color: var(--ink); flex: none; }
.row2 { display: grid; gap: 14px; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }
.seg { display: grid; gap: 10px; padding-bottom: 14px; border-bottom: 1px dashed var(--rule); }
@media (min-width: 600px) { .seg { grid-template-columns: 1fr 1.3fr; } }
.tariff { display: flex; gap: 10px; align-items: flex-start; font-weight: 400;
  padding: 12px; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--sheet); }
.tariff:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tariff strong { display: block; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.btn { font: inherit; font-weight: 600; font-size: 17px; cursor: pointer;
  display: inline-block; text-align: center; text-decoration: none;
  background: var(--ink); color: #fff; border: 2px solid var(--ink);
  border-radius: var(--radius); padding: 12px 22px; min-height: 48px; }
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); text-decoration: none; }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--sheet); color: var(--ink); }
.link { font: inherit; background: none; border: 0; padding: 0; color: var(--ink);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.chip { font: inherit; font-size: 14px; cursor: pointer; background: var(--sheet);
  border: 1px solid var(--rule); border-radius: 999px; padding: 4px 12px; margin: 2px 4px 2px 0;
  color: var(--ink); }
.chip:hover { border-color: var(--ink); }
.inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0; }
.inline .small { margin: 0; }
.estimate { min-height: 1.5em; margin: 0; font-size: 15px; color: var(--ok); }

.alert { border-left: 4px solid var(--err); background: #fbeceb; padding: 12px 16px;
  margin: 16px 0; border-radius: 0 var(--radius) var(--radius) 0; }
.alert p { margin: 0 0 4px; font-weight: 600; color: var(--err); }
.alert ul { margin: 0; padding-left: 20px; }
.notice { border-left: 4px solid var(--ok); background: #e7f3ec; padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0; }
.notice-info { border-left-color: var(--blue); background: #e8effc; }
.notice + .alert, .notice { margin: 16px 0; }
.result { font-size: 15px; }
.help { border-top: 2px solid var(--ink); padding-top: 20px; }

/* ── Кабинет ────────────────────────────────────────── */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 20px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.pay { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 16px 18px; margin: 16px 0; }
.pay p:last-child { margin-bottom: 0; }
.list { border-collapse: collapse; width: 100%; margin-bottom: 16px; }
.list th, .list td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); }
.list th { font-weight: 600; font-size: 14px; color: var(--muted); }

/* ── Документы ──────────────────────────────────────── */
.legal h2 { font-size: 21px; margin-top: 1.6em; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: .5em; max-width: 68ch; }

.btn-sun { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.btn-sun:hover { background: #ffdc85; border-color: #ffdc85; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
  .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(11,18,47,.5); }
  .btn:active { transform: none; }
}


/* ── Внутренние страницы ────────────────────────────── */
.page-head { padding-bottom: 44px; }
.page-head::after { width: 520px; height: 520px; top: -240px; right: -160px; }
.page-head-in { margin-top: 28px; max-width: 760px; }
.page-head h1 { color: #fff; font-size: clamp(32px, 4.6vw, 52px); }
.page-head .lead { color: #d7dcea; max-width: 56ch; margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .page-head-in > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .page-head-in > :nth-child(2) { animation-delay: .08s; }
}

.split { display: grid; gap: 16px 48px; }
@media (min-width: 880px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
.prose p { max-width: 62ch; }

.pipeline ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px;
  counter-reset: pipe; }
@media (min-width: 900px) { .pipeline ol { grid-template-columns: repeat(5, 1fr); gap: 0; } }
.pipeline li { counter-increment: pipe; position: relative; padding: 0 18px 0 0; }
.pipeline li::before { content: counter(pipe); display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff;
  font-weight: 800; margin-bottom: 14px; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--paper); }
.pipeline li:last-child::before { background: var(--sun); color: var(--ink); }
@media (min-width: 900px) {
  .pipeline li::after { content: ""; position: absolute; left: 40px; right: 0; top: 19px;
    border-top: 2px dashed var(--rule); }
  .pipeline li:last-child::after { display: none; }
}
.pipeline p { font-size: 15.5px; color: #2f3956; }

.cols-list { list-style: none; margin: 0; padding: 0; background: var(--sheet);
  border-radius: 12px; box-shadow: 0 1px 0 var(--rule); }
.cols-list li { display: grid; gap: 2px 16px; padding: 12px 18px;
  border-bottom: 1px solid var(--grid); }
.cols-list li:last-child { border-bottom: 0; }
@media (min-width: 600px) { .cols-list li { grid-template-columns: 1fr 1.2fr; } }
.cols-list span { color: var(--muted); font-size: 15px; }

.rules-grid { display: grid; gap: 14px; margin-top: 20px; }
@media (min-width: 640px) { .rules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .rules-grid { grid-template-columns: repeat(3, 1fr); } }
.rules-grid > div { background: var(--sheet); border-radius: 12px; padding: 18px 20px;
  border-top: 3px solid var(--blue); }
.rules-grid h3 { margin-bottom: .35em; }
.rules-grid p { margin: 0; color: #2f3956; font-size: 15.5px; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px;
  height: 18px; border-radius: 50%; background: var(--sun); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 5px;
  height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.cta-band { display: grid; gap: 18px; align-items: center; background: var(--ink); color: #fff;
  border-radius: 16px; padding: 30px 28px; }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { color: #c9d0e3; margin: 0; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; padding: 36px 40px; } }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.niche-tools { display: grid; gap: 8px; max-width: 560px; margin-top: 44px; }
.niche-tools .small { margin: 0; }
.niche-grid { columns: 260px; column-gap: 32px; margin-top: 28px; }
.niche-grid .ng { break-inside: avoid; margin-bottom: 18px; }
.niche-grid h3 { color: var(--blue); font-size: 15px; margin-bottom: 6px; }
.niche-grid ul { list-style: none; margin: 0; padding: 0; }
.niche-grid li { padding: 3px 0; }
.niche-grid a { text-decoration: none; }
.niche-grid a:hover { text-decoration: underline; }
.niche-empty { column-span: all; }
.help { margin-top: 24px; max-width: 640px; }

.order-wrap { margin-top: 40px; }
.order-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .order-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 56px; align-items: start; } }
.order-grid .form { margin-top: 0; }
.order-side { background: var(--sheet); border-radius: 12px; padding: 22px 24px; }
.order-side h2 { font-size: 22px; }
.order-side h3 { margin-top: 1.2em; }
.done-box { background: var(--sheet); border-radius: 12px; padding: 28px; max-width: 640px;
  border-top: 4px solid var(--sun); }

/* Ссылки в бегущей строке и пояснение под тарифами */
.ticker li a { color: inherit; text-decoration: none; }
.ticker li a:hover { color: #fff; text-decoration: underline; }
.full-note { font-size: 15px; color: var(--muted); margin: 0 0 8px; }
.full-note::before { content: ""; display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--sun); margin-right: 8px; vertical-align: middle; }

/* ── 404: планета сошла с орбиты ────────────────────── */
.nf { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.nf-in { flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 24px 0 64px; }
.nf-art { width: min(520px, 100%); height: auto; overflow: visible; margin-bottom: 8px; }
.nf-orbit { fill: none; stroke: var(--blue); stroke-width: 3; opacity: .8; }
.nf-code { fill: #fff; font: 800 132px/1 "Onest", system-ui, sans-serif; letter-spacing: -6px; }
.nf-planet circle { fill: var(--sun); }
.nf h1 { color: #fff; font-size: clamp(30px, 4.6vw, 46px); }
.nf .lead { color: #d7dcea; margin-inline: auto; max-width: 46ch; }
.nf-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.nf-help { color: #9aa4c2; max-width: 52ch; margin: 28px auto 0; }
.nf-help a { color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  /* Планета медленно уплывает и возвращается — одно движение на странице */
  .nf-planet { animation: drift 6s ease-in-out infinite alternate; transform-origin: 452px 58px; }
  @keyframes drift { from { transform: translate(0, 0); } to { transform: translate(26px, -14px); } }
  .nf-in > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .nf-in > :nth-child(2) { animation-delay: .06s; }
  .nf-in > :nth-child(3) { animation-delay: .12s; }
  .nf-in > :nth-child(4) { animation-delay: .18s; }
}

/* ── Вход и регистрация ─────────────────────────────── */
.auth { max-width: 440px; margin: 8px auto 40px; }
.auth h1 { font-size: clamp(28px, 4.5vw, 36px); }
.auth .lead { font-size: 17px; }
.auth .form { margin-bottom: 14px; }
.auth .btn { width: 100%; }
.auth .alt { margin: 10px 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.auth .alt .small { margin: 0; }
.pw { position: relative; }
.pw input { padding-right: 104px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
  background: var(--paper); border: 0; border-radius: 6px; padding: 7px 10px; }
.pw-eye:hover { background: var(--grid); }
.pw-eye:focus-visible { outline: 2px solid var(--ink); }
.who { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 10px 14px; margin: 0 0 8px; }
.who span { font-weight: 600; overflow-wrap: anywhere; }
.who a { font-size: 14px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px;
  margin: 18px 0 8px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.code-in { font-size: 30px !important; font-weight: 800; letter-spacing: .32em;
  text-align: center; font-variant-numeric: tabular-nums; padding: 12px 8px !important; }
.code-in::placeholder { color: var(--grid); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
#security .form { max-width: 440px; }

/* ── Фильтры и объём ────────────────────────────────── */
.flt-level { font-size: 14px; font-weight: 600; color: var(--muted); margin: 6px 0 -4px; }
.checks.flt label span .small { display: block; margin-top: 2px; }
.volume { padding: 12px 14px; border: 1px dashed var(--rule); border-radius: var(--radius); }
.vol-row { display: grid; grid-template-columns: 1fr 120px; gap: 12px; align-items: center; }
.vol-row input[type=range] { width: 100%; accent-color: var(--ink); }
input[type=number] { font: inherit; color: var(--ink); background: var(--sheet); width: 100%;
  border: 1px solid #9aa5b8; border-radius: var(--radius); padding: 11px 12px; min-height: 46px; }

/* ── Заказать: три варианта ─────────────────────────── */
.choose { margin-top: -28px; position: relative; z-index: 1; }
.choose-grid { display: grid; gap: 14px; }
@media (min-width: 860px) { .choose-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.choice { display: flex; flex-direction: column; gap: 10px; background: var(--sheet);
  color: var(--ink); text-decoration: none; border-radius: 14px; padding: 22px 22px 20px;
  border: 2px solid transparent; box-shadow: 0 1px 0 var(--rule), 0 18px 36px -28px rgba(11,18,47,.45);
  transition: border-color .15s ease, transform .15s ease; }
.choice:hover { border-color: var(--rule); text-decoration: none; }
.choice[aria-current="true"] { border-color: var(--ink); }
.choice h2 { font-size: 24px; margin: 0; }
.choice p { margin: 0; color: #2f3956; }
.choice .ticks { gap: 6px; font-size: 15px; margin: 4px 0 6px; }
.choice-go { margin-top: auto; font-weight: 700; color: var(--blue); }
.choice[aria-current="true"] .choice-go { color: var(--ink); }
.choice[aria-current="true"] .choice-go::before { content: ""; display: inline-block; width: 9px;
  height: 9px; border-radius: 50%; background: var(--sun); margin-right: 8px;
  box-shadow: 0 0 0 2px var(--ink); vertical-align: 1px; }
@media (prefers-reduced-motion: no-preference) { .choice:hover { transform: translateY(-2px); } }
.panel { margin-top: 48px; scroll-margin-top: 16px; }
.panel > .lead { margin-bottom: 20px; }

/* Таблица тарифов: «Отдел продаж» подсвечен, строки с пояснением */
.compare { min-width: 760px; }
.compare .hl { background: #fff8e1; }
.compare thead th.hl::after { background: var(--sun); }
.compare tbody th .sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px;
  font-weight: 400; }
.compare tbody th { color: var(--ink); font-weight: 600; font-size: 15px; }
.compare tr.for td { font-size: 14px; color: #2f3956; }
.compare .yes { display: inline-grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 800; font-size: 14px; }
.compare .no { color: var(--rule); font-weight: 800; }
.compare tr.go td { padding-top: 6px; padding-bottom: 20px; }
.compare tr.go .btn { width: 100%; font-size: 15px; padding: 10px 12px; min-height: 44px; }
.compare tbody tr.go:hover { background: transparent; }

.personal { display: grid; gap: 18px 40px; margin-top: 22px; background: var(--ink); color: #fff;
  border-radius: 16px; padding: 26px 26px; scroll-margin-top: 16px; }
@media (min-width: 900px) { .personal { grid-template-columns: 1fr 1fr; padding: 30px 36px; align-items: center; } }
.personal h3 { color: #fff; font-size: 22px; }
.personal p { color: #c9d0e3; margin: 0; }
.personal .volume { border-color: rgba(255,255,255,.25); display: grid; gap: 10px; padding: 16px; }
.personal label { color: #fff; }
.personal .vol-row input[type=range] { accent-color: var(--sun); }
.personal .vol-price { color: #fff; font-weight: 700; font-size: 18px; }

/* Разовая покупка: итог сбоку и прилипает при прокрутке */
.sum { border-top: 4px solid var(--sun); }
@media (min-width: 900px) { .sum { position: sticky; top: 16px; } }
.sum h3 { margin: 0 0 8px; }
.sum-line { margin: 0; color: #2f3956; }
.sum-disc { margin: 4px 0 0; color: var(--ok); font-weight: 600; }
.sum-total { font-size: 34px; font-weight: 800; margin: 8px 0 12px; letter-spacing: -0.02em; }

/* Индивидуальный заказ */
.tz pre { white-space: pre-wrap; background: var(--sheet); border: 1px solid var(--rule);
  border-radius: 12px; padding: 16px 18px; font: 15px/1.6 inherit; font-family: inherit; margin: 0; }
.tz details { margin-top: 14px; }
.tz summary { cursor: pointer; font-weight: 600; }
.tz details pre { margin-top: 10px; background: #fff8e1; border-color: #f3e2a8; }
.steps-list { padding-left: 22px; display: grid; gap: 8px; }
.split h3 + .ticks, .split h3 + .steps-list { margin-top: 10px; }
.split h3 { margin-top: 18px; }
.sum-inline { margin: 0; font-size: 18px; }
.sum-inline strong { font-size: 22px; }
@media (min-width: 900px) { .sum-inline { display: none; } }
#personal + .small { margin-top: 14px; }

/* hidden всегда прячет, даже у блоков с display: grid */
[hidden] { display: none !important; }
