/* getmtproto.com — токены и стили. Единственное место стилей: инлайн-style запрещён CSP. */
:root {
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-56: 56px;
  --space-72: 72px;
  --space-88: 88px;
  --tap: 44px;
  --container: 1200px;
  --gutter: clamp(16px, 3vw, 40px);
  --dur-fast: .15s;
  --dur-base: .25s;
  --dur-slow: .4s;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --font-sans: 'Fira Sans Condensed', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --bg: #111316;
  --panel: #181B1F;
  --panel-head: #15181B;
  --line: #262A30;
  --line-soft: #1F2328;
  --line-strong: #3A4047;
  --text: #E7EAEE;
  --text-2: #C9CED4;
  --muted: #9AA1A9;
  --muted-2: #8A9199;
  --signal: #C6F24E;
  --signal-hover: #DDFA86;
  --signal-dim: #2E3A12;
  --warn: #F2A93B;
  --danger: #FF6B6B;
  --r: 4px;
  /* оттенки, которых нет в tokens.css, но они есть в макетах */
  --white: #fff;
  --signal-bg: #1A2010;
  --line-menu: #30353C;
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 16px; line-height: 1.4; }
img, svg { max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
h1, h2 { font-weight: 700; text-transform: uppercase; }
h1 { font-size: 32px; line-height: 34px; }
h2 { font-size: 22px; line-height: 26px; }
a { color: var(--signal); }
a:hover { color: var(--signal-hover); }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
[hidden] { display: none !important; }
:disabled, [aria-disabled="true"] { opacity: .5; pointer-events: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
/* Скрыта обрезкой, а не left:-9999px: в RTL такой сдвиг давал горизонтальную прокрутку на 10 000 px. */
.skip { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; overflow: visible; clip-path: none; inset-inline-start: 8px; top: 8px; z-index: 20; padding: 8px 12px; background: var(--signal); color: var(--bg); }
.tone-ok { color: var(--signal); }
.tone-warn { color: var(--warn); }
.tone-na { color: var(--muted); }
.tone-bad { color: var(--danger); }
.m-only { display: inline-flex; }
.d-only { display: none; }
.note { font: 12px/18px var(--font-mono); color: var(--muted); }
.mlabel { font: 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mono-link { font: 13px var(--font-mono); }
.prose { font-size: 17px; line-height: 25px; color: var(--text-2); }
.lead { font-size: 17px; line-height: 25px; color: var(--text-2); max-width: 720px; }
.narrow > * { max-width: 720px; }
.prose + .card { margin-top: 10px; }
.more { display: inline-flex; align-items: center; min-height: var(--tap); font: 12px var(--font-mono); }

/* ---------- шапка ---------- */
.hdr { position: relative; border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px 32px; }
.logo { display: flex; align-items: center; gap: 8px; min-height: var(--tap); color: var(--text); text-decoration: none; font: 700 15px var(--font-mono); letter-spacing: -.02em; }
.logo:hover { color: var(--text); }
.logo__mark { flex: none; color: var(--signal); }
.logo__t span { color: var(--muted); }
.nav-d { display: none; }
.hdr__r { display: flex; align-items: center; gap: 4px; }
.online { display: none; align-items: center; gap: 8px; font: 12px var(--font-mono); color: var(--muted); }
.online__t { color: var(--signal); }
/* переключатель языков: есть только у страниц с другими вышедшими версиями */
.langs { position: relative; }
.langs summary { list-style: none; display: grid; place-items: center; min-width: var(--tap); height: var(--tap); font: 12px var(--font-mono); color: var(--muted); cursor: pointer; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { color: var(--text); }
.langs__list { position: absolute; inset-inline-end: 0; top: 100%; z-index: 11; min-width: 180px; margin: 0; padding: 4px 0; list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.langs__list a { display: flex; align-items: center; min-height: var(--tap); padding: 0 16px; color: var(--text); text-decoration: none; font-size: 16px; }
.langs__list a:hover { color: var(--signal); }
.flag { flex: none; width: 16px; height: 12px; margin-inline-end: 10px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(127, 127, 127, .3); }
.langs__list a[aria-current] { color: var(--signal); }
.menu summary { list-style: none; display: grid; place-items: center; width: var(--tap); height: var(--tap); border: 1px solid var(--line-menu); border-radius: var(--r); color: var(--text); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--signal); color: var(--signal); }
.menu__list { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; display: flex; flex-direction: column; padding: 8px var(--gutter); background: var(--panel); border-bottom: 1px solid var(--line); }
.menu__list a { display: flex; align-items: center; min-height: var(--tap); color: var(--text); text-decoration: none; font-size: 18px; }
.menu__list a + a { border-top: 1px solid var(--line-soft); }

.dot { position: relative; flex: none; width: 8px; height: 8px; }
.dot i { position: absolute; inset: 0; border-radius: 999px; background: var(--signal); }

.crumbs { padding-top: 12px; padding-bottom: 0; font: 12px var(--font-mono); color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

/* ---------- кнопки ---------- */
.btn-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 76px; padding: 0 20px; border: 0; border-radius: var(--r); background: var(--signal); color: var(--bg); font: 700 22px/1 var(--font-sans); letter-spacing: .01em; text-transform: uppercase; text-align: left; text-decoration: none; }
.btn-main:hover { background: var(--signal-hover); color: var(--bg); }
.btn-main svg { flex: none; }
.btn-main--m { height: 72px; font-size: 21px; }
.btn-main--s { height: 64px; padding: 0 18px; font-size: 19px; margin-top: 14px; }
.btn-line { height: 48px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r); background: transparent; color: var(--text); font: 13px var(--font-mono); }
.btn-line:hover { border-color: var(--signal); }
.btn-cta { display: flex; align-items: center; justify-content: center; height: 56px; margin-top: 10px; border: 1px solid var(--signal); border-radius: var(--r); color: var(--signal); text-decoration: none; font-size: 17px; font-weight: 600; text-transform: uppercase; }
.btn-cta:hover { background: var(--signal-dim); color: var(--signal-hover); }
.btn-cta--inline { display: inline-flex; padding: 0 28px; }
.bot-note { margin-top: 8px; font: 12px/18px var(--font-mono); color: var(--muted); }

/* ---------- блок прокси ---------- */
.connect__idle { display: flex; flex-direction: column; gap: 8px; }
.connect__mt { display: grid; grid-template-columns: 1fr; gap: 8px; }
.connect__mt--qr { grid-template-columns: 1fr 1fr; }
.connect__mt .btn-main { grid-column: 1 / -1; }
.connect__web { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.btn-web { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 52px; padding: 0 16px; border: 1px solid var(--signal); border-radius: var(--r); background: var(--signal-bg); color: var(--signal); font: 600 17px var(--font-sans); text-align: left; text-transform: uppercase; }
@media (max-width: 899px) {
  .btn-web { font-size: 15px; padding: 0 12px; }
  .connect .btn-line { padding: 0 10px; font-size: 12px; }
}
.btn-web small { padding: 2px 6px; border: 1px solid var(--signal-dim); border-radius: 2px; font: 11px var(--font-mono); color: var(--muted); }
.btn-web:hover { background: var(--signal-dim); }
.connect__web .btn-line { height: 52px; }
.connect__hint { max-width: 620px; font-size: 14px; line-height: 20px; color: var(--muted); }
.connect__cfg { display: none; font: 12px/18px var(--font-mono); color: var(--muted); }
[data-unconfigured] .connect__cfg { display: block; }

.next { border: 1px solid var(--signal); border-radius: var(--r); }
.next__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--signal-dim); font: 12px var(--font-mono); color: var(--signal); }
.next__back { height: 32px; padding: 0 8px; border: 0; background: transparent; color: var(--muted); font: 12px var(--font-mono); text-decoration: underline; text-underline-offset: 4px; }
.next__back:hover { color: var(--text); }
.next__links { display: grid; }
.next__a { display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 14px; color: var(--text); text-decoration: none; }
.next__a:hover { background: var(--panel); color: var(--text); }
.next__a + .next__a { border-top: 1px solid var(--line); }
.next__gt { font-family: var(--font-mono); color: var(--signal); }
.next__t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.next__t b { font-size: 17px; font-weight: 600; }
.next__t small { font-size: 14px; color: var(--muted); }
.next__chev { flex: none; color: var(--signal); }

.qr-panel { display: flex; align-items: center; gap: 16px; margin-top: 8px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.qr-panel .qr { flex: none; width: 150px; height: 150px; }
.qr-panel .qr svg { width: 130px; height: 130px; }
.qr { align-self: center; display: grid; place-items: center; width: 200px; height: 200px; background: var(--white); border-radius: var(--r); }
.qr svg { display: block; width: 172px; height: 172px; }
.qr-panel p { font-size: 15px; line-height: 21px; color: var(--text-2); }
.qr-panel__link { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font: 11px/18px var(--font-mono); color: var(--muted); word-break: break-all; }

/* ---------- первый экран ---------- */
.hero { padding-top: 18px; padding-bottom: 24px; }
.hero__main { display: flex; flex-direction: column; gap: 16px; }
.hero__dev { display: none; }
.hero h1 { font-size: 34px; line-height: 36px; letter-spacing: -.01em; }
.hero__status { display: flex; align-items: center; gap: 8px; font: 12px var(--font-mono); }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); }
.metric { padding: 12px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric--d { display: none; }
.metric__v { font: 500 40px/44px var(--font-mono); letter-spacing: -.04em; color: var(--white); }
.metric__u { font-size: 16px; letter-spacing: 0; color: var(--muted); }
.metric__l { font-size: 13px; color: var(--muted); }

/* ---------- секции ---------- */
.sec { border-top: 1px solid var(--line); padding: 22px 0 24px; }
.sec h2 { margin-bottom: 12px; }
.sec__h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 12px; }
.sec__h h2 { margin: 0; }
.board__meta { font: 11px var(--font-mono); color: var(--muted); }
.board__meta a { color: var(--signal); }

.split { display: flex; flex-direction: column; gap: 24px; }
.split h2 { margin-bottom: 12px; }
.split--faq h2 { margin-bottom: 0; }

/* ---------- табло ---------- */
.row { display: grid; grid-template-columns: minmax(0, 1fr) 64px 72px 44px; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-family: var(--font-mono); }
.row--h { padding: 6px 0; font-size: 10px; letter-spacing: .06em; color: var(--muted-2); border-bottom-color: var(--line); }
.row .c-op { display: none; }
.c-ping { text-align: right; font-size: 18px; }
.row--h .c-ping { font-size: inherit; }
.srv__code { font-size: 14px; color: var(--white); }
.srv__sub { display: none; font-size: 12px; color: var(--muted); }
.srv__ops { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; font-size: 10px; color: var(--muted); }
.spark { display: block; width: 72px; height: 24px; }
.spark polyline { stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.btn-row { display: grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r); background: transparent; font: 13px var(--font-mono); }
.btn-row:hover { border-color: currentColor; }
.btn-row__t { display: none; }
.board .next { margin-top: 12px; }

/* ---------- бесплатный и личный прокси рядом ---------- */
.choice { display: grid; border: 1px solid var(--line); border-radius: var(--r); }
.choice__c { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.choice__c + .choice__c { border-top: 1px solid var(--line); }
.choice__c--paid { background: var(--panel); }
.choice__c h3 { font-size: 22px; line-height: 26px; font-weight: 700; text-transform: uppercase; }
.choice__c .btn-cta { margin-top: auto; }
.choice__p { font-size: 16px; line-height: 22px; color: var(--text-2); }
.spec { margin: 0; font-size: 16px; line-height: 22px; }
.spec div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.spec dt { font: 12px/22px var(--font-mono); color: var(--muted); }
.spec dd { color: var(--text); }

/* ---------- канал со свежими прокси ---------- */
.chan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.chan p { flex: 1 1 360px; font-size: 16px; line-height: 22px; color: var(--text-2); }
.chan p b { color: var(--text); font-weight: 600; }
.chan__btn { display: inline-flex; align-items: center; min-height: var(--tap); font: 13px var(--font-mono); }

/* ---------- причины, плитки, вопросы ---------- */
.reasons { display: flex; flex-direction: column; gap: 8px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.card__tag { font-size: 17px; font-weight: 600; color: var(--text); }
.card__tag + p { color: var(--text-2); }
.card p { font-size: 16px; line-height: 22px; }
.card--notice { gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tile { display: flex; flex-direction: column; gap: 2px; min-height: var(--tap); padding: 14px; background: var(--bg); color: var(--text); text-decoration: none; }
.tile:hover { background: var(--panel); color: var(--text); }
.tile b { font-size: 17px; font-weight: 600; }
.tile span { font: 11px var(--font-mono); color: var(--muted); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; font-size: 16px; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "[+]"; flex: none; font-family: var(--font-mono); color: var(--signal); }
.faq details[open] summary::after { content: "[\2212]"; }
.faq p { padding-bottom: 16px; max-width: 720px; font-size: 16px; line-height: 23px; color: var(--text-2); }

/* ---------- внутренние страницы ---------- */
.phero, .dhero, .ophero { display: flex; flex-direction: column; gap: 16px; padding-top: 14px; padding-bottom: 24px; }
.badge { align-self: flex-start; padding: 4px 8px; border: 1px solid var(--signal); border-radius: var(--r); font: 11px var(--font-mono); color: var(--signal); }
.steps { display: flex; flex-direction: column; gap: 28px; margin: 14px 0 0; padding: 0; list-style: none; }
/* телефон: шаги листаются вбок, следующий экран выглядывает справа */
@media (max-width: 899px) {
  .steps { flex-direction: row; gap: 14px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .steps > .step { flex: 0 0 82%; scroll-snap-align: start; flex-direction: column; gap: 6px; }
  .steps--desktop > .step { flex-basis: 92%; }
}
.step { display: flex; gap: 12px; }
.step > div { flex: 1; min-width: 0; }
.step__n { flex: none; width: 32px; font: 22px var(--font-mono); color: var(--signal); }
.step p { margin-bottom: 8px; font-size: 17px; line-height: 23px; }
.shot { margin-top: 14px; }

/* ---------- переключатель устройств (радиокнопки, без JS) ---------- */
.sec__lead { margin-bottom: 18px; }
.sw__r { position: absolute; opacity: 0; pointer-events: none; }
.sw__tabs { display: inline-flex; gap: 0; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; }
.sw__tabs label { display: grid; place-items: center; min-height: var(--tap); padding: 0 18px; font: 14px var(--font-mono); color: var(--text-2); cursor: pointer; }
.sw__tabs label + label { border-left: 1px solid var(--line-strong); }
.sw__tabs label:hover { color: var(--text); background: var(--panel); }
.sw__p { display: none; padding-top: 8px; }
#how-ios:checked ~ .sw__p--ios, #how-android:checked ~ .sw__p--android, #how-desktop:checked ~ .sw__p--desktop { display: block; }
#how-ios:checked ~ .sw__tabs [for="how-ios"], #how-android:checked ~ .sw__tabs [for="how-android"], #how-desktop:checked ~ .sw__tabs [for="how-desktop"] { background: var(--signal); color: var(--bg); font-weight: 700; }
#how-ios:focus-visible ~ .sw__tabs [for="how-ios"], #how-android:focus-visible ~ .sw__tabs [for="how-android"], #how-desktop:focus-visible ~ .sw__tabs [for="how-desktop"] { outline: 2px solid var(--signal); outline-offset: -4px; }
.sw__p .more { margin-top: 12px; }

/* ---------- «Не подключается?»: симптом → что делать ---------- */
.trouble { display: flex; flex-direction: column; gap: 20px; }
.diag { margin: 0; border-top: 1px solid var(--line); }
.diag div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.diag dt { font-size: 18px; font-weight: 600; line-height: 24px; }
.diag dd { margin-top: 4px; font-size: 16px; line-height: 23px; color: var(--text-2); }
.trouble__img { display: block; width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); }
.digest__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; border-bottom: 1px solid var(--line); }

/* ---------- экраны Telegram в рамке устройства (src/pages/mockups.ts) ----------
   Экран свёрстан в точках устройства и уменьшается через zoom. Цвета внутри — Telegram, не сайта. */
.dev { --tg-blue: #007AFF; margin: 0 auto; zoom: .62; }
.dev--ios, .dev--android { width: 414px; padding: 12px; background: #0B0C0E; border-radius: 58px; box-shadow: 0 0 0 2px #2B2F35, 0 0 0 3px #4A5058, 0 30px 60px rgba(0, 0, 0, .45); }
.dev--android { width: 400px; padding: 10px; border-radius: 42px; }
.dev__scr { position: relative; height: 700px; overflow: hidden; border-radius: 46px; background: #fff; }
.dev--android .dev__scr { border-radius: 32px; }
.dev--ios .dev__scr::before { content: ""; position: absolute; top: 11px; left: 50%; z-index: 6; width: 122px; height: 35px; margin-left: -61px; border-radius: 20px; background: #000; }
.dev--android .dev__scr::before { content: ""; position: absolute; top: 9px; left: 50%; z-index: 6; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #000; }
.dev__home { position: absolute; bottom: 8px; left: 50%; z-index: 6; width: 136px; height: 5px; margin-left: -68px; border-radius: 3px; background: #111; }
.dev__nav { position: absolute; bottom: 8px; left: 50%; z-index: 6; width: 110px; height: 4px; margin-left: -55px; border-radius: 2px; background: #333; }
.dev--hero { zoom: .8; }
.dev--set .dev__scr { background: #EFEFF4; }
.dev--android.dev--set .dev__scr { background: #F0F0F0; }

.tg { position: relative; color: #000; font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Roboto, sans-serif; font-size: 17px; line-height: 1.25; letter-spacing: -.01em; text-align: left; }
.tg b { font-weight: 600; }
.tg--android { color: #222; font-family: Roboto, "Segoe UI", -apple-system, sans-serif; letter-spacing: 0; }
.tg--android b { font-weight: 500; }
.tg--pc { display: flex; height: 440px; overflow: hidden; background: #fff; color: #222; font-family: "Segoe UI", -apple-system, Roboto, sans-serif; font-size: 14px; letter-spacing: 0; }
.tg svg { display: block; flex: none; }
.tg-ok { color: #007AFF; }
.tg--android .tg-ok { color: #3390EC; }

/* строка состояния */
.tg-sb { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 16px 32px 0 40px; font-size: 16px; }
.tg-sb--and { height: 34px; padding: 4px 22px 0; font-size: 14px; }
.tg-sb__r { display: flex; align-items: center; gap: 6px; }
.tg-sb__pct { font-size: 13px; font-weight: 500; }

/* список чатов */
.tg-list { background: #fff; }
.tg-row { display: flex; align-items: center; gap: 12px; height: 78px; padding: 0 16px 0 12px; }
.tg-row__t { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; align-self: stretch; border-bottom: 1px solid #E5E5EA; }
.tg-row__t span { overflow: hidden; color: #8E8E93; font-size: 15px; white-space: nowrap; text-overflow: ellipsis; }
.tg-row__time { align-self: flex-start; margin-top: 14px; color: #8E8E93; font-size: 14px; }
.tg-ava { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: #fff; font-size: 24px; font-weight: 600; background: linear-gradient(#72D5FD, #2A9EF1); }
.tg-ava--a2 { background: linear-gradient(#FF885E, #FF516A); }
.tg-ava--a3 { background: linear-gradient(#A0DE7E, #54CB68); }
.tg-ava--a4 { background: linear-gradient(#E0A2F3, #D669ED); }
.tg-ava--a5 { background: linear-gradient(#53EDD6, #28C9B7); }
.tg-ava--a6 { background: linear-gradient(#FFCD6A, #FFA85C); }
.tg-ava--bot { justify-self: end; width: 38px; height: 38px; object-fit: cover; }
.tg--android .tg-row { height: 72px; gap: 16px; padding: 0 16px; }
.tg--android .tg-ava { width: 54px; height: 54px; font-size: 21px; }
.tg--android .tg-row__t { border-bottom: 0; }
.tg--android .tg-row__t span { color: #8A8A8A; }
.tg--pc .tg-row { height: 62px; gap: 10px; padding: 0 12px; }
.tg--pc .tg-ava { width: 46px; height: 46px; font-size: 18px; }
.tg--pc .tg-row__t { border-bottom: 0; }
.tg--pc .tg-row__t span { font-size: 13.5px; color: #999; }
.tg--pc .tg-row__time { margin-top: 12px; font-size: 12px; }
.tg-dim, .pc-dim { position: absolute; inset: 0; z-index: 3; background: rgba(0, 0, 0, .42); }

/* iOS */
.ios-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 44px; padding: 0 16px; background: #F7F7F7; border-bottom: 1px solid #D1D1D6; }
.ios-nav b { font-size: 17px; }
.ios-nav > :last-child { justify-self: end; }
.ios-link { display: flex; align-items: center; gap: 5px; color: #007AFF; }
.ios-search { display: flex; align-items: center; gap: 6px; height: 36px; margin: 8px 16px; padding: 0 10px; border-radius: 10px; background: #E9E9EB; color: #8E8E93; }
.ios-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 8px 16px 40px; border-radius: 14px 14px 0 0; background: #EFEFF4; }
.ios-sheet__grab { display: block; width: 36px; height: 5px; margin: 0 auto 4px; border-radius: 3px; background: #C7C7CC; }
.ios-sheet__h { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 46px; margin-bottom: 8px; }
.ios-sheet__x { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #E3E3E8; color: #8E8E93; }
.ios-group { overflow: hidden; border-radius: 10px; background: #fff; }
.dev--set .ios-group { margin: 0 16px 24px; }
.ios-group--top { margin-top: 18px !important; }
.ios-kv, .ios-cell { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; padding: 0 16px; }
.ios-kv + .ios-kv, .ios-cell + .ios-cell { border-top: 1px solid #E5E5EA; }
.ios-kv b { overflow: hidden; color: #8E8E93; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
.ios-foot { padding: 8px 16px 18px; color: #6D6D72; font-size: 13px; line-height: 1.35; }
.dev--set .ios-foot { margin-top: -16px; padding: 0 32px; }
.ios-btn { display: flex; align-items: center; justify-content: center; height: 50px; border-radius: 12px; background: #007AFF; color: #fff; font-weight: 600; }
.ios-head { padding: 0 32px 7px; color: #6D6D72; font-size: 13px; text-transform: uppercase; }
.ios-sw { position: relative; flex: none; width: 51px; height: 31px; border-radius: 16px; background: #E9E9EA; }
.ios-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .2); }
.ios-sw--on { background: #34C759; }
.ios-sw--on::after { left: 22px; }
.ios-cell--add { justify-content: flex-start; gap: 14px; color: #007AFF; }
.ios-cell--px { justify-content: flex-start; gap: 14px; padding-top: 9px; padding-bottom: 9px; }
.ios-cell--px b, .ios-cell--px small { display: block; }
.ios-cell--px b { font-weight: 500; }
.ios-cell--px small { margin-top: 2px; font-size: 14px; }
.ios-chk { width: 22px; color: #007AFF; }
.ios-nav--chat { height: 52px; }
.ios-chat__t { display: flex; flex-direction: column; align-items: center; }
.ios-chat__t small { color: #8E8E93; font-size: 13px; }
.ios-input { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px 34px; background: #F7F7F7; border-top: 1px solid #D1D1D6; color: #8E8E93; }
.ios-input__menu { padding: 7px 12px; border-radius: 16px; background: #007AFF; color: #fff; font-size: 15px; font-weight: 600; }
.ios-input__f { flex: 1; display: flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid #D1D1D6; border-radius: 18px; background: #fff; color: #A3A3A8; }

/* чат с ботом */
.dev--chat .dev__scr { background: linear-gradient(160deg, #DCE8B8, #A3C79C 55%, #CFDEA6); }
.dev--chat .tg-sb { background: #F7F7F7; }
.tg-wall { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px; }
.tg-day { align-self: center; padding: 3px 9px; border-radius: 10px; background: rgba(0, 0, 0, .2); color: #fff; font-size: 13px; font-weight: 600; }
.tg-msg { max-width: 84%; padding: 7px 12px 8px; border-radius: 18px; font-size: 16.5px; line-height: 1.32; }
.tg-msg__m { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 8px 0 -4px 10px; color: #8E8E93; font-size: 12px; }
.tg-msg--out { align-self: flex-end; border-bottom-right-radius: 6px; background: #E1FFC7; }
.tg-msg--out .tg-msg__m { color: #4FAE4E; }
.tg-msg--in { align-self: flex-start; border-bottom-left-radius: 6px; background: #fff; }
.tg-kb { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 84%; }
.tg-kb span { display: grid; place-items: center; height: 42px; border-radius: 12px; background: rgba(48, 84, 40, .38); color: #fff; font-size: 15px; font-weight: 600; }
.tg-kb .tg-kb__w { grid-column: 1 / -1; }

/* Android */
.and-bar { display: flex; align-items: center; gap: 24px; height: 56px; padding: 0 18px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.and-bar b { flex: 1; font-size: 20px; }
.and-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 22px 22px 36px; border-radius: 18px 18px 0 0; background: #fff; }
.and-sheet__h { display: block; margin-bottom: 10px; font-size: 20px; }
.and-kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 16px; }
.and-kv b { overflow: hidden; color: #8A8A8A; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
.and-sheet__p { margin: 10px 0 18px; color: #8A8A8A; font-size: 14px; line-height: 1.4; }
.and-btn { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 8px; background: #3390EC; color: #fff; font-size: 16px; font-weight: 500; }
.and-cell { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 22px; background: #fff; font-size: 16px; }
.and-sec { padding: 16px 22px 4px; background: #fff; color: #3390EC; font-size: 15px; font-weight: 500; }
.and-gap { height: 12px; }
.and-sw { position: relative; flex: none; width: 36px; height: 14px; border-radius: 7px; background: #B0B5BA; }
.and-sw::after { content: ""; position: absolute; top: -3px; left: -2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.and-sw--on { background: #A6CFF5; }
.and-sw--on::after { left: 18px; background: #3390EC; }
.and-cell--add { justify-content: flex-start; gap: 28px; color: #3390EC; }
.and-cell--px { justify-content: flex-start; gap: 26px; padding-top: 10px; padding-bottom: 10px; }
.and-cell--px b, .and-cell--px small { display: block; }
.and-cell--px b { font-weight: 400; }
.and-cell--px small { margin-top: 2px; font-size: 14px; }
.and-rd { flex: none; width: 20px; height: 20px; border: 2px solid #8A8A8A; border-radius: 50%; }
.and-rd--on { border-color: #3390EC; background: #3390EC; box-shadow: inset 0 0 0 4px #fff; }
.and-note { padding: 12px 22px; color: #8A8A8A; font-size: 14px; line-height: 1.4; }

/* Telegram Desktop */
.win { width: 760px; overflow: hidden; border: 1px solid #3A4047; border-radius: 10px; background: #fff; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.win__bar { display: flex; align-items: center; height: 32px; padding-left: 14px; background: #fff; border-bottom: 1px solid #E7E7E7; color: #6F7A85; font: 13px "Segoe UI", -apple-system, Roboto, sans-serif; }
.win__bar > span { flex: 1; }
.win__bar i { display: grid; place-items: center; width: 46px; height: 32px; font-style: normal; }
.win__bar i::before { content: "\2013"; }
.win__bar i + i::before { content: "\25A1"; }
.win__bar .win__x::before { content: "\2715"; }
.pc-side { position: relative; display: flex; flex-direction: column; width: 300px; border-right: 1px solid #E7E7E7; }
.pc-side__s { display: flex; align-items: center; gap: 14px; padding: 10px 14px; color: #999; }
.pc-search { flex: 1; display: flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 17px; background: #F1F1F1; }
.pc-side__st { margin-top: auto; padding: 10px 14px; border-top: 1px solid #EEE; color: #999; font-size: 13px; }
.pc-chat { flex: 1; display: grid; place-items: center; background: linear-gradient(160deg, #DCE8B8, #A3C79C 55%, #CFDEA6); }
.pc-chat__hint { padding: 4px 12px; border-radius: 14px; background: rgba(0, 0, 0, .2); color: #fff; font-size: 13px; }
.pc-box { position: absolute; top: 50%; left: 50%; z-index: 4; width: 380px; padding: 22px 24px 12px; border-radius: 10px; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); transform: translate(-50%, -50%); }
.pc-box__h { display: block; margin-bottom: 12px; font-size: 18px; }
.pc-kv { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.pc-kv b { color: #999; font-weight: 400; }
.pc-box p { margin: 10px 0 6px; color: #999; font-size: 13px; line-height: 1.4; }
.pc-box__btns { display: flex; justify-content: flex-end; gap: 4px; margin-top: 8px; }
.pc-box__btns span { padding: 9px 12px; color: #168ACD; font-weight: 600; text-transform: uppercase; }
.pc-box__btns--split { justify-content: space-between; }
.pc-radio { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.pc-radio i { width: 18px; height: 18px; border: 2px solid #ADB5BD; border-radius: 50%; }
.pc-radio--on i { border-color: #40A7E3; background: #40A7E3; box-shadow: inset 0 0 0 3px #fff; }
.pc-proxy { display: flex; align-items: center; gap: 12px; margin: 8px 0 4px; padding: 10px 12px; border-radius: 8px; background: #F2F7FB; }
.pc-proxy__dot { width: 10px; height: 10px; border-radius: 50%; background: #40A7E3; }
.pc-proxy b, .pc-proxy small { display: block; }
.pc-proxy small { color: #40A7E3; font-size: 13px; }

/* браузер с этой страницей (шаг 1) */
.dev--site .dev__scr { background: var(--bg); color: var(--text); }
.dev--site .tg-sb { color: #fff; }
.dev--site .dev__home { background: #fff; }
.dev--site .dev__nav { background: #ccc; }
.br-addr { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 12px; background: #2C2C2E; color: #fff; font: 16px -apple-system, "SF Pro Text", Roboto, sans-serif; }
.br-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px 34px; background: #1C1C1E; }
.br-bottom .br-addr { display: flex; }
.br-top { padding: 8px 12px; background: #202124; }
.br-top .br-addr { display: flex; justify-content: flex-start; height: 42px; border-radius: 21px; background: #303134; color: #E8EAED; font-size: 15px; }
.win--br { background: var(--bg); }
.win__bar--br { height: 44px; padding-left: 10px; background: #DEE1E6; border: 0; }
.win__bar--br .br-addr { flex: 0 1 360px; justify-content: flex-start; height: 30px; margin-right: auto; border-radius: 15px; background: #fff; color: #202124; font-size: 13px; }
.win__body--site { height: 430px; }
.ws { display: flex; flex-direction: column; padding: 22px 22px 0; color: var(--text); font-family: var(--font-sans); letter-spacing: 0; }
.win__body--site .ws { max-width: 460px; padding: 28px 36px; }
.ws__logo { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 700 18px var(--font-mono); }
.ws__logo b { margin-left: -8px; color: var(--text); }
.ws__chip { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--signal); color: var(--bg); font-size: 12px; }
.ws__h { margin: 34px 0 22px; font-size: 34px; font-weight: 700; line-height: 1.02; text-transform: uppercase; }
.ws__btn { display: flex; align-items: center; justify-content: space-between; height: 66px; padding: 0 18px; border-radius: 4px; background: var(--signal); color: var(--bg); font-size: 20px; font-weight: 700; text-transform: uppercase; }
.ws__line { display: flex; align-items: center; justify-content: center; height: 50px; margin-top: 8px; border: 1px solid var(--line-strong); border-radius: 4px; font: 15px var(--font-mono); }
.ws__line--web { border-color: var(--signal); color: var(--signal); }

@media (min-width: 640px) {
  .dev--pc { zoom: .62; }
}
@media (max-width: 639px) {
  .dev--pc { zoom: .42; }
}
.cover { display: block; width: 100%; height: auto; margin-top: 4px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }

/* ---------- длинные тексты ---------- */
.article h2 { margin: 28px 0 10px; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin: 18px 0 6px; font-size: 18px; line-height: 24px; font-weight: 600; }
.article p { margin-bottom: 12px; font-size: 17px; line-height: 25px; color: var(--text-2); }
.article p a, .article li a, .faq p a { text-underline-offset: 3px; }
.article code, .code-inline { padding: 1px 5px; background: var(--panel); border: 1px solid var(--line); border-radius: 2px; font: 14px var(--font-mono); color: var(--text); }
.list { margin: 0 0 14px; padding: 0; padding-inline-start: 22px; font-size: 17px; line-height: 25px; color: var(--text-2); }
.list li { margin-bottom: 6px; padding-inline-start: 4px; }
.list:not(.list--n) { list-style: none; padding-inline-start: 0; }
.list:not(.list--n) li { position: relative; padding-inline-start: 22px; }
.list:not(.list--n) li::before { content: ">"; position: absolute; inset-inline-start: 0; font-family: var(--font-mono); color: var(--signal); }
[dir="rtl"] .list:not(.list--n) li::before { content: "<"; }
.list--n li::marker { font-family: var(--font-mono); color: var(--signal); }
.article .card { margin: 14px 0; }
.rel { margin: 0 0 8px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rel li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: var(--tap); border-bottom: 1px solid var(--line-soft); font-size: 17px; }
.rel a { color: var(--text); text-decoration: none; }
.rel a:hover { color: var(--signal); }
.rel span { font: 12px var(--font-mono); color: var(--muted); }
.byline { font: 12px var(--font-mono); color: var(--muted); }
.byline a { color: var(--muted); }
.phero .digest__head { border: 1px solid var(--line); border-radius: var(--r); }

.chips { display: flex; gap: 6px; padding-top: 14px; overflow-x: auto; }
.chip { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--text); text-decoration: none; font: 13px var(--font-mono); }
.chip:hover { border-color: var(--signal); color: var(--text); }
.chip[aria-current="page"] { background: var(--signal); border-color: var(--signal); color: var(--bg); font-weight: 700; }
.panel { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); }
.panel__head { display: flex; justify-content: space-between; font: 11px var(--font-mono); color: var(--muted); text-transform: uppercase; }
.panel__v { font: 500 48px/50px var(--font-mono); letter-spacing: -.04em; color: var(--white); }
.panel__of { color: var(--muted); }
.bars { display: block; width: 100%; height: 60px; }
.bar-ok { fill: var(--signal); }
.bar-slow { fill: var(--warn); }
.panel__axis { display: flex; justify-content: space-between; font: 10px var(--font-mono); color: var(--muted-2); }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) 56px 110px; gap: 8px; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line-soft); font: 14px var(--font-mono); }
.srow .r { text-align: right; font-size: 17px; }
.srow--h { min-height: 0; padding: 8px 0; font-size: 10px; letter-spacing: .06em; color: var(--muted-2); border-bottom-color: var(--line); }
.srow--h .r { font-size: inherit; }
.srows { max-width: 720px; }

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.compare__c { display: flex; flex-direction: column; gap: 12px; padding: 14px; font-size: 15px; line-height: 21px; color: var(--text-2); }
.compare__c--on { background: var(--panel); color: var(--text); }
.compare__c + .compare__c { border-left: 1px solid var(--line); }
.arrows { margin: 0; padding: 0; list-style: none; font-size: 17px; line-height: 24px; }
.arrows li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.arrows li:last-child { border-bottom: 0; }
.arrows span { font-family: var(--font-mono); color: var(--signal); }
.arrows + .note { margin-top: 12px; }

.code { padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); font: 13px/22px var(--font-mono); word-break: break-all; }
.parts { display: grid; grid-template-columns: 72px 1fr; gap: 10px 12px; margin-top: 12px; font-size: 16px; line-height: 22px; }
.parts dt { font: 13px var(--font-mono); color: var(--signal); }
.parts dd { color: var(--text-2); }
.modes { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.mode { display: flex; gap: 14px; padding: 14px; background: var(--bg); }
.mode__k { flex: none; width: 48px; font: 15px var(--font-mono); }
.mode b { font-size: 17px; font-weight: 600; }
.mode p { font-size: 15px; line-height: 21px; color: var(--muted); }
.vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vs__c { padding: 14px; border: 1px solid var(--line); border-radius: var(--r); }
.vs__c .mlabel { margin-bottom: 8px; font-size: 11px; }
.vs__c p { font-size: 15px; line-height: 21px; color: var(--text-2); }

.tl { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.tl li { display: flex; gap: 14px; padding-bottom: 18px; }
.tl li:last-child { padding-bottom: 0; }
.tl__n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--signal); border-radius: var(--r); font: 12px var(--font-mono); color: var(--signal); }
.tl b { font-size: 17px; font-weight: 600; }
.tl p { font-size: 15px; line-height: 21px; color: var(--muted); }
.states { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.state { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px; background: var(--bg); }
.state span:first-child { font: 13px var(--font-mono); }
.state span:last-child { font-size: 15px; line-height: 21px; color: var(--text-2); }
.metrics-dl { display: flex; flex-direction: column; gap: 16px; }
.metrics-dl dt { font: 13px var(--font-mono); color: var(--signal); }
.metrics-dl dd { margin-top: 4px; font-size: 16px; line-height: 23px; color: var(--text-2); }

.feed { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; padding-bottom: 24px; }
.digest { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.digest__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--panel); font: 12px var(--font-mono); }
.digest--lead { border-color: var(--signal); }
.digest--lead .digest__head, .digest--open .digest__head { background: var(--signal-bg); }
.digest--open { border-color: var(--signal); }
.digest__body { display: flex; flex-direction: column; gap: 8px; padding: 14px; }
.digest__body h2 { margin: 0; font-size: 18px; line-height: 23px; font-weight: 600; text-transform: none; }
.digest--lead .digest__body h2 { font-size: 20px; line-height: 25px; }
.digest__body h2 a { color: var(--text); text-decoration: none; }
.digest__body h2 a:hover { color: var(--signal); }
.digest__body > p { font-size: 15px; line-height: 21px; color: var(--muted); }
.digest--open h1 { font-size: 28px; line-height: 32px; }
.digest--open .prose { color: var(--text-2); }
.otiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.otile { display: grid; place-items: center; height: 26px; border-radius: 2px; background: var(--signal); color: var(--bg); font: 700 9px var(--font-mono); }
.otile--slow { background: var(--warn); }

/* ---------- /en ---------- */
.hero--en .lead { color: var(--text-2); }
.en-status { color: var(--signal); }

/* ---------- подвал ---------- */
.ftr { margin-top: 20px; border-top: 1px solid var(--line); }
.ftr__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-top: 10px; padding-bottom: 18px; font: 11px var(--font-mono); color: var(--muted-2); }
.ftr__nav { display: flex; flex-wrap: wrap; gap: 0 16px; }
.ftr__nav a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--muted-2); text-decoration: none; }
.ftr__nav a:hover { color: var(--text); }

/* ---------- движение: только transform/opacity и только при no-preference ---------- */
@media (prefers-reduced-motion: no-preference) {
  .dot i:first-child { animation: pulse 1.8s ease-out infinite; }
  @keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
  .btn-main, .btn-line, .btn-cta, .btn-row, .next__a, .tile, .chip, .next__back { transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast); }
  .btn-main:active, .btn-line:active, .btn-cta:active, .btn-row:active, .chip:active { transform: scale(.97); }
}

/* ---------- ≥ 640 ---------- */
@media (min-width: 640px) {
  .feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .digest--lead { grid-column: 1 / -1; }
}

/* ---------- ≥ 900: десктоп ---------- */
@media (min-width: 900px) {
  h1 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1; }
  h2 { font-size: 32px; line-height: 36px; }
  .m-only { display: none; }
  .d-only { display: inline; }
  .prose, .lead { font-size: 17px; line-height: 23px; }
  .sec { padding: 48px 0; }
  .sec h2, .split h2 { margin-bottom: 18px; }
  .sec__h { align-items: baseline; margin-bottom: 18px; }
  .board__meta { font-size: 12px; }

  .hdr__in { flex-wrap: wrap; min-height: 68px; }
  .logo { font-size: 17px; }
  .nav-d { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 16px; }
  .nav-d a { padding: 10px 0; color: var(--text); text-decoration: none; }
  .nav-d a:hover { color: var(--signal); }
  .menu { display: none; }
  .online { display: flex; margin-right: 14px; }
  .crumbs { padding-top: 20px; }

  .btn-main { height: 80px; padding: 0 24px; font-size: 26px; }
  .btn-main--m { height: 72px; font-size: 21px; }
  .btn-main--s { height: 64px; font-size: 19px; }
  .btn-cta { display: inline-flex; height: 56px; margin-top: 10px; padding: 0 28px; font-size: 18px; }

  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px 56px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
  .hero--en { grid-template-columns: minmax(0, 1fr); }
  .hero__main { gap: 20px; }
  .hero__dev { display: block; }
  .hero h1 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1; }
  .hero__status { display: none; }
  .hero--en .hero__status { display: flex; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric { padding: 16px; }
  .metric--d { display: block; }
  .metric__v { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.1; }
  .metric__l { font-size: 14px; }
  .connect--hero .connect__idle { max-width: 640px; }
  .connect--hero .connect__mt--qr { grid-template-columns: 1fr 1fr; }
  .connect--hero .btn-web { height: 56px; font-size: 18px; }
  .connect--hero .connect__web .btn-line { height: 56px; padding: 0 22px; }
  .hero__note { font-size: 13px; line-height: 1.4; }

  .next__head { padding: 10px 16px; font-size: 13px; }
  .next__links { grid-template-columns: 1fr 1fr; }
  .next__a { padding: 18px 16px; }
  .next__a + .next__a { border-top: 0; border-left: 1px solid var(--line); }
  .next__t b { font-size: 19px; }
  .next__t small { font-size: 15px; }
  .next__chev { display: none; }
  .dhero .next__links, .ophero .next__links { grid-template-columns: 1fr; }
  .dhero .next__a + .next__a, .ophero .next__a + .next__a { border-left: 0; border-top: 1px solid var(--line); }

  .choice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice__c { padding: 28px; }
  .choice__c + .choice__c { border-top: 0; border-left: 1px solid var(--line); }
  .choice .next__links { grid-template-columns: 1fr; }
  .choice .next__a + .next__a { border-left: 0; border-top: 1px solid var(--line); }

  /* табло */
  .board__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
  .board__tbl { min-width: 900px; }
  .row { grid-template-columns: 1.2fr .8fr repeat(5, .7fr) 1.2fr 120px; gap: 12px; padding: 12px 18px; font-size: 14px; }
  .row:last-child { border-bottom: 0; }
  .row--h { background: var(--panel-head); font-size: 11px; padding: 12px 18px; }
  .row .c-op { display: block; }
  .c-ping { font-size: 20px; }
  .srv__sub { display: inline; }
  .srv__ops { display: none; }
  .spark { width: 140px; height: 26px; }
  .btn-row { width: 100%; font-size: 13px; }
  .btn-row__t { display: inline; }
  .btn-row__i { display: none; }

  .split { flex-direction: row; gap: 40px; }
  .split > * { min-width: 0; }
  .split > .a { flex: 1 1 520px; }
  .split > .b { flex: 1 1 360px; }
  .split--faq > .a { flex: 1 1 280px; }
  .split--faq > .b { flex: 2 1 560px; }
  .reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .card { padding: 18px; gap: 8px; }
  .card p { font-size: 17px; line-height: 23px; }
  .tile { padding: 18px; }
  .tile b { font-size: 19px; }
  .faq summary { min-height: 60px; font-size: 18px; }

  .phero, .dhero { padding-top: 24px; padding-bottom: 40px; max-width: var(--container); }
  .phero > *, .dhero > * { max-width: 720px; }
  .phero > h1, .dhero > h1 { max-width: 900px; }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .step { flex-direction: column; gap: 8px; }
  .step p { min-height: 69px; }
  .steps--desktop { grid-template-columns: 1fr; gap: 36px; }
  .steps--desktop .step { flex-direction: row; gap: 16px; }
  .steps--desktop .step > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; }
  .steps--desktop .step p { min-height: 0; }
  .steps--desktop .shot { margin-top: 0; }
  .trouble { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .diag dt { font-size: 19px; }
  .ophero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; align-items: start; padding-top: 24px; }
  .ophero > h1 { grid-column: 1 / -1; }
  .panel { padding: 22px; }
  .chips { padding-top: 20px; }
  .compare__c { padding: 20px; font-size: 17px; line-height: 23px; }
  .parts { grid-template-columns: 96px 1fr; }
  .mode, .state { padding: 18px; }
  .state { grid-template-columns: 160px 1fr; }
  .feed { padding-top: 12px; padding-bottom: 48px; }
  .digest__body { padding: 20px; }
  .digest--open h1 { font-size: 40px; line-height: 44px; }

  .ftr__in { padding-top: 24px; padding-bottom: 36px; font-size: 12px; }
}

/* ---------- языки ---------- */
/* У шрифтов сайта нет латиницы-расширения (туркменские ň ş ý ž, вьетнамские диакритики) — на этих языках системный шрифт целиком, без смеси начертаний. */
html:lang(tk), html:lang(vi) { --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
/* RTL (ar, fa): моноширинный запасной шрифт рвёт арабскую вязь — подписи тем же шрифтом, что текст; разрядку не растягиваем. */
html[dir="rtl"] { --font-mono: var(--font-sans); }
html[dir="rtl"] .mlabel { letter-spacing: 0; }
/* RTL: стрелки направления зеркалим. */
[dir="rtl"] .next__chev { transform: scaleX(-1); }
