/* webproxy.ink — стили сайта. Единственное место стилей: инлайн style запрещён CSP.
   Токены — из макета (tokens.css). Мобильная раскладка — база, десктоп — от 900 px. */
: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: 'Commissioner', sans-serif;
  --bg: #F5F7F6;
  --surface: #FFFFFF;
  --chip: #F0F4F3;
  --line: #E1E7E5;
  --line-2: #EDF1F0;
  --line-strong: #C9D3D0;
  --text: #17211F;
  --text-2: #2D3B38;
  --muted: #4C5A57;
  --muted-2: #5B6A66;
  --teal: #0E7C70;
  --teal-dark: #0B6E63;
  --teal-darker: #08544C;
  --teal-soft: #E1F2EF;
  --teal-line: #CFE3DF;
  --tint: #F1F8F6;
  --warn-bg: #FFF4E0;
  --warn-line: #F3D9A6;
  --warn-icon: #8A5A00;
  --warn-title: #6B4600;
  --warn-text: #4A3500;
  --error-bg: #FBE7E5;
  --error-text: #9B2C20;
  --r-chip: 8px;
  --r-field: 12px;
  --r-card: 14px;
  --r-card-lg: 16px;
}

/* ---------- Основа ---------- */
*, *::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: 15px;
  line-height: normal;
}
img, svg { max-width: 100%; }
a { color: var(--teal-dark); }
a:hover { color: var(--teal-darker); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, p, ul, ol { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 20;
  padding: 10px 14px; border-radius: 10px; background: var(--teal); color: #fff; text-decoration: none;
}
.skip:focus { top: 8px; color: #fff; }

/* Подписи под размер экрана: на телефоне один вариант, на широком — другой. */
@media (max-width: 899.98px) { .wide-only { display: none !important; } }
@media (min-width: 900px) { .narrow-only { display: none !important; } }


/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--tap); padding: 0 16px; border: 0; border-radius: 10px;
  background: var(--teal); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--teal-dark); color: #fff; }
.btn:active { transform: scale(.97); }
.btn--lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn--sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn--ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); }
.btn--ghost:hover { background: var(--chip); color: var(--text); }
.btn--dark { background: var(--text); }
.btn--dark:hover { background: var(--text-2); }

/* ---------- Шапка ---------- */
.site-header { position: relative; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 12px 32px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; margin-right: auto; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand__mark { flex: none; width: 22px; height: 28px; color: var(--teal); }
.brand__name { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.brand__name span { color: var(--teal); font-weight: 500; }
.topnav { display: none; }
.site-header__cta { display: none; }
.icon-btn {
  width: var(--tap); height: var(--tap); border: 0; background: transparent; color: var(--text);
  display: grid; place-items: center; list-style: none; cursor: pointer;
}
.icon-btn:hover { color: var(--teal-dark); }
.burger summary::-webkit-details-marker { display: none; }
.burger__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  display: flex; flex-direction: column; padding: 8px var(--gutter) 14px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.burger__panel a {
  display: flex; align-items: center; min-height: var(--tap); padding: 0 10px; border-radius: 8px;
  color: var(--text-2); text-decoration: none;
}
.burger__panel a:hover, .burger__panel a[aria-current] { background: var(--teal-soft); color: var(--teal-dark); }
.burger__panel .burger__channel { margin-top: 6px; background: var(--teal); color: #fff; font-weight: 600; justify-content: center; }

/* ---------- Главная: первый экран ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 24px; padding-bottom: 32px; }
.hero__main { min-width: 0; }
.hero__title { font-size: 30px; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
.hero__title span { color: var(--teal); }
.hero__lead { margin: 12px 0 20px; font-size: 16px; line-height: 24px; color: var(--muted); }
.hero__shot { justify-self: center; width: min(300px, 100%); }
.hero__caption { margin-top: 12px; font-size: 13px; line-height: 19px; color: var(--muted-2); text-align: center; }

.get { border: 1px solid var(--line); border-radius: var(--r-card-lg); background: var(--surface); overflow: hidden; }
.get__row { display: grid; gap: 14px; padding: 18px; }
.get__row + .get__row { border-top: 1px solid var(--line); }
.get__row--web { background: var(--tint); }
.get__name { margin-bottom: 4px; font-size: 18px; line-height: 24px; font-weight: 700; }
.get__new { margin-left: 4px; font-size: 13px; font-weight: 600; color: var(--teal-dark); }
.get__text p { font-size: 14.5px; line-height: 21px; color: var(--muted); }
.get__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.get__alt { font-size: 14px; font-weight: 500; }
.get__qr { display: flex; align-items: center; gap: 14px; }
.get__qr-code { flex: none; width: 132px; }
.get__qr-code svg { display: block; width: 100%; height: auto; }
.get__qr p { font-size: 13px; line-height: 19px; color: var(--muted); }
.get__next { padding: 18px; }
.get__next-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.get__next-head h2:focus { outline: none; }
.get__back { min-height: var(--tap); padding: 0 4px; border: 0; background: none; color: var(--teal-dark); font-size: 14px; font-weight: 600; }
.get__next .row { margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; }

/* ---------- Блоки главной ---------- */
.block { padding: 32px 0 0; }
.block__title { margin-bottom: 14px; font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; }
.block__note { margin-top: 10px; font-size: 14px; line-height: 20px; color: var(--muted-2); }
.more { display: inline-flex; align-items: center; min-height: var(--tap); font-size: 15px; font-weight: 600; }

.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.about__text p { margin-bottom: 12px; font-size: 15.5px; line-height: 25px; color: var(--text-2); }
.about__list { margin: 4px 0 4px; padding: 0; list-style: none; }
.about__list li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 22px; color: var(--text-2); }
.about__list b { color: var(--text); }
.about__shot { min-width: 0; }

.tbl--compare tbody th { min-width: 120px; font-size: 13px; letter-spacing: 0; color: var(--text); background: var(--surface); }
.tbl--compare thead th:nth-child(3) { color: var(--teal-dark); background: var(--teal-soft); }
.tbl--compare td:nth-child(3) { background: var(--tint); }

.tabs__in { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tabs__bar { display: inline-flex; gap: 4px; margin-bottom: 18px; padding: 4px; border-radius: 12px; background: var(--chip); }
.tabs__tab {
  display: flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 9px;
  font-size: 15px; font-weight: 500; color: var(--text-2); cursor: pointer;
}
.tabs__panel { display: none; grid-template-columns: minmax(0, 1fr); gap: 20px; }
#dev-iphone:checked ~ .tabs__panel--iphone,
#dev-android:checked ~ .tabs__panel--android,
#dev-pc:checked ~ .tabs__panel--pc { display: grid; }
#dev-iphone:checked ~ .tabs__bar [for="dev-iphone"],
#dev-android:checked ~ .tabs__bar [for="dev-android"],
#dev-pc:checked ~ .tabs__bar [for="dev-pc"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(23, 33, 31, .1); }
#dev-iphone:focus-visible ~ .tabs__bar [for="dev-iphone"],
#dev-android:focus-visible ~ .tabs__bar [for="dev-android"],
#dev-pc:focus-visible ~ .tabs__bar [for="dev-pc"] { outline: 2px solid var(--teal); outline-offset: 2px; }
.tabs__shot { min-width: 0; }
.howto { margin: 0; padding: 0; list-style: none; counter-reset: howto; }
.howto li { position: relative; padding: 3px 0 18px 44px; font-size: 16px; line-height: 24px; color: var(--text-2); counter-increment: howto; }
.howto li::before {
  content: counter(howto); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 999px;
  display: grid; place-items: center; background: var(--teal); color: #fff; font-size: 14px; font-weight: 700;
}

.trouble__head p { margin: -6px 0 14px; font-size: 15px; line-height: 22px; color: var(--muted); }
.trouble__rows { margin-top: 14px; }

.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0;
  font-size: 16px; line-height: 22px; font-weight: 600; list-style: none; cursor: pointer;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-size: 22px; font-weight: 400; color: var(--teal); }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { padding: 0 0 16px; font-size: 15px; line-height: 24px; color: var(--text-2); }

/* поиск по ошибкам */
.search__label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.search__field { position: relative; }
.search__box {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px;
  border-radius: var(--r-field); border: 1.5px solid var(--line-strong); background: var(--surface);
}
.search__box:focus-within { border-color: var(--teal); outline: 2px solid var(--teal); outline-offset: 2px; }
.search__icon { flex: none; width: 18px; height: 18px; color: var(--teal); }
.search__input {
  flex: 1; min-width: 0; height: 48px; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 15px; color: var(--text);
}
.search__input::placeholder { color: var(--muted-2); opacity: 1; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__go { display: none; }
.search__status { height: 0; margin: 0; overflow: hidden; }
.search__results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 5;
  max-height: 340px; overflow: auto; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-field);
  box-shadow: 0 12px 32px rgba(23, 33, 31, .12);
}
.search__results a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; }
.search__results a:hover, .search__results a:focus-visible { background: var(--teal-soft); color: var(--text); outline-offset: -2px; }
.search__hit-title { display: block; font-size: 15px; font-weight: 600; }
.search__hit-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--muted-2); }
.search__empty { padding: 10px 12px; font-size: 14px; color: var(--muted); }
.search__empty a { display: inline; padding: 0; color: var(--teal-dark); text-decoration: underline; }

.rows { border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line-2);
  color: var(--text); text-decoration: none;
}
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--teal-soft); color: var(--text); }
.row__main { flex: 1; min-width: 0; }
.row__title { display: block; font-size: 15px; font-weight: 600; }
.row__sub { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--muted-2); }
.row__go { flex: none; color: var(--teal); }
.row--plain { display: block; font-size: 15px; font-weight: 600; }

.timeline { margin: 0; padding: 0 0 0 4px; list-style: none; }
.timeline__item { position: relative; padding: 0 0 18px 22px; border-left: 1.5px solid var(--teal-line); }
.timeline__item:last-child { padding-bottom: 4px; }
.timeline__dot {
  position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; border-radius: 999px;
  border: 2px solid var(--teal); background: var(--surface);
}
.is-fresh .timeline__dot { background: var(--teal); }
.timeline__date { display: block; font-size: 12px; font-weight: 600; color: var(--teal-dark); }
.timeline__text { display: block; margin-top: 2px; font-size: 15px; line-height: 21px; }
.timeline-card { padding: 0; }

/* ---------- Блок «в канал» ---------- */
.cta {
  display: flex; flex-direction: column; gap: 12px; margin: 32px 0 0; padding: 18px;
  border-radius: var(--r-card-lg); background: var(--text); color: #fff;
}
.cta__title { font-size: 18px; line-height: 24px; font-weight: 700; }
.cta__text { margin-top: 6px; font-size: 14.5px; line-height: 21px; color: #D5E0DD; }
.cta__alt { margin-top: 6px; font-size: 14px; line-height: 20px; color: #D5E0DD; }
.cta__alt a { color: #8FE0D3; }
.cta .btn { align-self: flex-start; }

/* ---------- Подвал ---------- */
.site-footer { margin-top: 40px; background: var(--surface); border-top: 1px solid var(--line); }
.site-footer__in { display: grid; gap: 18px; padding: 24px 0 28px; font-size: 14px; color: var(--muted-2); }
.site-footer__brand p { max-width: 420px; margin-top: 8px; font-size: 14px; line-height: 20px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 32px; color: var(--text-2); text-decoration: none; }
.site-footer__links a:hover { color: var(--teal-dark); }
.site-footer__copy { font-size: 13px; }
/* ---------- Внутренние страницы ---------- */
.doc { padding-bottom: 8px; }
.doc__main { min-width: 0; max-width: 720px; }
.doc .cta { margin-top: 18px; }

.crumbs { padding: 14px 0 0; font-size: 13px; color: var(--muted-2); }
.crumbs ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin: 0 .45em; }

.docnav {
  margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 14px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.docnav summary {
  display: flex; align-items: center; justify-content: space-between; height: var(--tap);
  font-size: 14px; font-weight: 600; list-style: none; cursor: pointer;
}
.docnav summary::-webkit-details-marker { display: none; }
.docnav summary svg { color: var(--teal); }
.docnav:not([open]) summary svg { transform: rotate(180deg); }
.docnav ul { margin: 0; padding: 0; list-style: none; font-size: 15px; }
.docnav__link {
  display: flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 8px;
  color: var(--text-2); text-decoration: none;
}
.docnav__link:hover { color: var(--teal-darker); background: var(--chip); }
.docnav__link.is-section { background: var(--teal-soft); color: var(--teal-dark); font-weight: 600; }
.docnav .docnav__sub { margin: 2px 0 4px 10px; padding: 0 0 0 12px; border-left: 1.5px solid var(--teal-line); font-size: 14px; }
.docnav__sub a { display: flex; align-items: center; min-height: 36px; color: var(--text-2); text-decoration: none; }
.docnav__sub a:hover, .docnav__sub a[aria-current] { color: var(--teal-dark); }
.docnav__sub a[aria-current] { font-weight: 600; }
.docnav--desktop { display: none; }

.article, .doc__main > section { padding-top: 14px; }
.section-lead { margin: 6px 0 16px; font-size: 15px; line-height: 22px; color: var(--muted); }
.article__title { margin-bottom: 8px; font-size: 26px; line-height: 32px; font-weight: 600; }
.article__title--error { margin-top: 10px; }
.article__meta { margin-bottom: 16px; font-size: 13px; color: var(--muted-2); }
.article__intro { margin-bottom: 16px; font-size: 16px; line-height: 25px; color: var(--text-2); }

.before {
  margin-bottom: 18px; padding: 14px; border-radius: var(--r-field);
  background: var(--surface); border: 1px solid var(--line);
}
.before__title { margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.before ul { padding-left: 18px; font-size: 14px; line-height: 22px; color: var(--text-2); }

.steps { display: flex; flex-direction: column; gap: 22px; margin: 0; padding: 0; list-style: none; }
.step__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.step__num {
  flex: none; width: 30px; height: 30px; border-radius: 999px; background: var(--teal); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 600;
}
.step__title { margin-bottom: 4px; font-size: 17px; line-height: 23px; font-weight: 600; }
.step__head p { font-size: 15px; line-height: 22px; color: var(--text-2); }

.prose__h { margin: 22px 0 6px; font-size: 18px; line-height: 24px; font-weight: 600; }
.prose__h--similar { margin: 28px 0 10px; font-size: 17px; }
.article .prose__h ~ p { margin-bottom: 8px; font-size: 15px; line-height: 24px; color: var(--text-2); }
.prose__list { margin: 0 0 8px; padding-left: 20px; font-size: 15px; line-height: 24px; color: var(--text-2); }
.prose-p { font-size: 15px; line-height: 24px; color: var(--text-2); }

.note {
  display: flex; gap: 12px; margin-top: 22px; padding: 14px 16px; border-radius: var(--r-field);
}
.note + .note { margin-top: 10px; }
.note__icon { flex: none; margin-top: 2px; }
.note__title { margin-bottom: 2px; font-size: 13px; font-weight: 600; }
.note p { font-size: 14px; line-height: 21px; }
.note--warn { background: var(--warn-bg); border: 1px solid var(--warn-line); }
.note--warn .note__icon { color: var(--warn-icon); }
.note--warn .note__title { color: var(--warn-title); }
.note--warn p { color: var(--warn-text); }
.note--tip { background: var(--teal-soft); }
.note--tip .note__icon, .note--tip .note__title { color: var(--teal-dark); }
.note--tip p { color: var(--text); }

.tag-error {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px;
  background: var(--error-bg); color: var(--error-text); font-size: 12px; font-weight: 600;
}
.triad {
  display: flex; flex-direction: column; border-radius: var(--r-card); overflow: hidden;
  border: 1px solid var(--line);
}
.triad__part { padding: 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.triad__part--solution { background: var(--teal-soft); border-bottom: 0; }
.triad__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.triad__num {
  width: 24px; height: 24px; border-radius: 6px; background: var(--chip); color: var(--muted-2);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.triad__title {
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2);
}
.triad__part--solution .triad__head { margin-bottom: 10px; }
.triad__part--solution .triad__num { background: var(--teal); color: #fff; }
.triad__part--solution .triad__title { color: var(--teal-dark); }
.triad p { font-size: 15px; line-height: 23px; }
.triad ul { padding-left: 18px; font-size: 15px; line-height: 23px; }
.triad ol { padding-left: 20px; font-size: 15px; line-height: 24px; }
.triad ol li { margin-bottom: 6px; }
.triad ol li:last-child { margin-bottom: 0; }

/* ---------- «Помогло / не помогло» ---------- */
.vote {
  margin-top: 26px; padding: 18px 16px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line);
}
.vote__title { margin-bottom: 12px; font-size: 15px; font-weight: 600; }
.vote__btns { display: flex; gap: 8px; }
.vote__btn {
  flex: 1; height: 46px; border-radius: 10px; background: var(--surface);
  font-size: 15px; font-weight: 600;
}
.vote__btn:active { transform: scale(.97); }
.vote__btn--yes { border: 1px solid var(--teal); color: var(--teal-dark); }
.vote__btn--yes:hover { background: var(--teal-soft); }
.vote__btn--no { border: 1px solid var(--line-strong); color: var(--text-2); }
.vote__btn--no:hover { background: var(--chip); }
.vote__done { font-size: 15px; line-height: 22px; }
.vote__done b, .vote__more b { font-weight: 600; }
.vote__more { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 22px; }
.vote__more a { display: inline-flex; align-items: center; min-height: 32px; }
.vote [tabindex="-1"]:focus { outline: none; }


/* ---------- Анимации: только transform и opacity, только если движение разрешено ---------- */
@media (prefers-reduced-motion: no-preference) {
  .btn, .icon-btn, .vote__btn { transition: transform var(--dur-fast) var(--ease-out); }
  .docnav summary svg { transition: transform var(--dur-base) var(--ease-out); }
  .search__results, .vote__done, .vote__more, .get__next, .tabs__panel { animation: fade-in var(--dur-base) var(--ease-out); }
  .br-spin { animation: spin 1s linear infinite; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Десктоп ---------- */
@media (min-width: 900px) {
  body { font-size: 16px; }

  .site-header__in { min-height: 68px; }
  .brand__mark { width: 24px; height: 31px; }
  .brand__name { font-size: 21px; }
  .topnav { display: flex; gap: 4px 28px; font-size: 15px; }
  .topnav a { padding: 10px 0; color: var(--text-2); text-decoration: none; }
  .topnav a:hover, .topnav a[aria-current] { color: var(--teal-dark); }
  .topnav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
  .site-header__cta { display: inline-flex; }
  .burger { display: none; }

  .hero__in { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
  .hero__title { font-size: clamp(38px, 4vw, 52px); }
  .hero__lead { margin: 16px 0 28px; max-width: 620px; font-size: 18px; line-height: 27px; }
  .hero__shot { width: 320px; }
  .get__row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 22px 24px; }
  .get__btns { justify-content: flex-end; }
  .get__qr { grid-column: 1 / -1; }
  .get__next { padding: 22px 24px; }

  .block { padding-top: 72px; }
  .block__title { margin-bottom: 18px; font-size: 30px; line-height: 36px; }
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
  .about__text p { font-size: 17px; line-height: 27px; }
  .about__list li { font-size: 16px; line-height: 24px; }
  .tabs__panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .tabs__panel--pc { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .howto li { font-size: 17px; line-height: 26px; }
  .trouble { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 56px; align-items: start; }
  .trouble__head, .trouble .search { grid-column: 1; }
  .trouble__rows { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .trouble > .more { grid-column: 1; }
  .search__box { gap: 12px; height: 58px; padding: 0 8px 0 18px; border-radius: 14px; }
  .search__input { height: 52px; font-size: 16px; }
  .search__go { display: inline-flex; padding: 0 20px; }
  .faq__item summary { font-size: 17px; }
  .faq__item p { font-size: 16px; line-height: 26px; max-width: 760px; }

  .rows { border-radius: var(--r-card-lg); }
  .row { gap: 16px; padding: 18px 20px; }
  .row__title { font-size: 16px; }
  .row__sub { margin-top: 3px; font-size: 14px; }
  .timeline-card { padding: 20px; border-radius: var(--r-card-lg); background: var(--surface); border: 1px solid var(--line); }
  .timeline__date { font-size: 13px; }

  .cta { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 72px; padding: 28px 32px; }
  .cta__title { font-size: 22px; line-height: 28px; }
  .cta__text { font-size: 15px; line-height: 22px; }
  .cta .btn { align-self: center; }
  .doc .cta { margin-top: 40px; }

  .site-footer { margin-top: 72px; }
  .site-footer__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; padding: 36px 0 40px; }
  .site-footer__links { align-content: start; justify-content: flex-end; }
  .site-footer__copy { grid-column: 1 / -1; }

  /* Внутренние: колонка навигации слева, текст до 720 */
  .doc {
    display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0 48px; align-items: start;
    padding-top: 24px; padding-bottom: 0;
  }
  .doc--single { display: block; }
  .doc--single .doc__main { max-width: 720px; }
  .docnav, .docnav--desktop { display: block; margin: 0; padding: 0; background: transparent; border: 0; }
  .docnav summary { display: none; }
  .docnav ul { font-size: 15px; }
  .crumbs { padding-top: 0; }
  .article, .doc__main > section { padding-top: 16px; }
  .article__title { margin-bottom: 8px; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; }
  .article__meta { font-size: 14px; }
  .section-lead { font-size: 17px; line-height: 25px; margin-bottom: 24px; }
  .before ul { font-size: 15px; }
  .step__head p { font-size: 16px; line-height: 25px; }
  .triad__part { padding: 20px; }
  .triad p, .triad ul { font-size: 16px; line-height: 25px; }
  .triad ol { font-size: 16px; line-height: 26px; }
  .prose__h { margin-top: 32px; font-size: 20px; line-height: 26px; }
  .article .prose__h ~ p, .prose__list { font-size: 16px; line-height: 26px; }
  .vote { padding: 20px; }
}

/* ---------- Экраны Telegram (src/pages/mockups.ts) ---------- */
.mock {
  margin: 18px 0 6px;
  --tg-font: -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--tg-font); color: #000;
}
.mock * { box-sizing: border-box; }
.step .mock { margin: 6px 0 0 42px; }
.triad .mock { margin: 14px 0 0; }
.mock--phone { width: min(300px, 100%); }
.mock--desk, .mock--browser, .mock--flow { max-width: 640px; container-type: inline-size; }
.mock--menu { max-width: 300px; }

/* телефон */
.ios {
  position: relative; display: flex; flex-direction: column; height: 600px; overflow: hidden;
  border: 9px solid #1C1E21; border-radius: 46px; background: #fff;
  box-shadow: 0 0 0 1px #3A3D42, 0 24px 48px -16px rgba(23, 33, 31, .35);
}
.ios__status { position: relative; flex: none; display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 4px 24px 0 30px; font-size: 15px; font-weight: 600; }
.ios__island { position: absolute; left: 50%; top: 10px; width: 92px; height: 26px; margin-left: -46px; border-radius: 14px; background: #000; }
.ios__sys { display: flex; align-items: center; gap: 5px; }
.ios__sys i { display: block; height: 11px; background: no-repeat center / contain; }
.sb-sig { width: 17px; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'><rect y='8' width='3' height='4' rx='1'/><rect x='5' y='5.5' width='3' height='6.5' rx='1'/><rect x='10' y='3' width='3' height='9' rx='1'/><rect x='15' width='3' height='12' rx='1'/></svg>"); }
.sb-wifi { width: 15px; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'><path d='M8 11.5 10.3 9a3.3 3.3 0 0 0-4.6 0L8 11.5Zm-4.2-4.5 1.3 1.4a4.2 4.2 0 0 1 5.8 0l1.3-1.4a6 6 0 0 0-8.4 0ZM1 4.2l1.3 1.4a8 8 0 0 1 11.4 0L15 4.2a10 10 0 0 0-14 0Z'/></svg>"); }
.sb-bat { width: 25px; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 27 12'><rect x='.5' y='.5' width='23' height='11' rx='3' fill='none' stroke='black' stroke-opacity='.4'/><rect x='2' y='2' width='18' height='8' rx='1.5'/><path d='M25 4v4a2 2 0 0 0 0-4Z' fill-opacity='.4'/></svg>"); }
.ios__screen { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ios__screen:has(.tgi-nav) { background: #F2F2F7; }
.ios__home { position: absolute; left: 50%; bottom: 7px; width: 118px; height: 5px; margin-left: -59px; border-radius: 3px; background: #111; }

.tg-ava {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .02em;
}
.tg-ava--sm { width: 34px; height: 34px; font-size: 13px; }
img.tg-ava { object-fit: cover; }
.tg-ava--blue { background: linear-gradient(180deg, #72D5FD, #2A9EF1); }
.tg-ava--green { background: linear-gradient(180deg, #A0DE7E, #54CB68); }
.tg-ava--violet { background: linear-gradient(180deg, #E0A2F3, #D669ED); }
.tg-ava--orange { background: linear-gradient(180deg, #FEBB5B, #F68136); }

.tgi-head { flex: none; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 10px; background: rgba(248, 248, 248, .96); border-bottom: .5px solid #C8C7CC; }
.tgi-back { display: flex; align-items: center; gap: 4px; min-width: 52px; color: #007AFF; font-size: 17px; }
.tgi-badge { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #007AFF; color: #fff; font-size: 12px; font-weight: 600; }
.tgi-title { flex: 1; min-width: 0; text-align: center; line-height: 1.2; }
.tgi-title b { display: block; overflow: hidden; font-size: 16px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.tgi-title small { font-size: 13px; color: #8E8E93; }

.tg-wall {
  flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 8px 8px 10px;
  background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .35) 0 2px, transparent 3px) 0 0 / 46px 46px,
    linear-gradient(160deg, #DCE5BE 0%, #B8D3A2 45%, #8FBE9A 100%);
}
.tg-day { align-self: center; margin-bottom: 4px; padding: 2px 9px; border-radius: 10px; background: rgba(66, 96, 64, .38); color: #fff; font-size: 13px; font-weight: 600; }
.tg-msg { display: flex; flex-direction: column; max-width: 88%; align-self: flex-start; }
.tg-msg--out { align-self: flex-end; }
.tg-bub {
  padding: 6px 10px 7px 11px; border-radius: 17px 17px 17px 6px; background: #fff;
  font-size: 15px; line-height: 20px; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}
.tg-msg--out .tg-bub { border-radius: 17px 17px 6px 17px; background: #E1FEC6; }
.tg-bub b { font-weight: 600; }
.tg-time { float: right; display: inline-flex; align-items: center; gap: 3px; margin: 8px 0 -5px 10px; font-size: 11px; color: #8E8E93; }
.tg-msg--out .tg-time { color: #3EAA3C; }
.tg-link { color: #007AFF; word-break: break-all; }
.tg-code { display: block; margin: 6px 0 4px; padding: 6px 8px; border-radius: 6px; background: #F1F4F7; color: #1B5FA8; font: 12.5px/17px ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.tg-kb { display: grid; gap: 3px; margin-top: 3px; }
.tg-kb__row { display: flex; gap: 3px; }
.tg-kb__btn {
  position: relative; flex: 1; display: grid; place-items: center; min-height: 36px; padding: 4px 16px; border-radius: 10px;
  background: rgba(72, 108, 70, .42); color: #fff; font-size: 14px; font-weight: 600; line-height: 18px; text-align: center;
}
.tg-kb__btn svg { position: absolute; top: 5px; right: 6px; width: 8px; height: 8px; }
.tgi-input { flex: none; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 10px 8px; background: #F7F7F7; border-top: .5px solid #C8C7CC; color: #8E8E93; }
.tgi-ic { display: grid; place-items: center; flex: none; }
.tgi-field { flex: 1; height: 34px; padding: 0 12px; border: 1px solid #D6D6D6; border-radius: 17px; background: #fff; color: #A3A3A8; font-size: 16px; line-height: 32px; }

.tgi-head--dim, .tg-wall--dim { filter: brightness(.55); }
.tgi-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 14px 26px; border-radius: 14px 14px 0 0; background: #fff; }
.tgi-sheet__grab { width: 36px; height: 5px; margin: 0 auto; border-radius: 3px; background: #D1D1D6; }
.tgi-sheet__title { margin: 12px 0 14px; font-size: 17px; font-weight: 600; text-align: center; }
.tgi-rows { border-radius: 12px; background: #F2F2F7; }
.tgi-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: .5px solid #D1D1D6; font-size: 15px; }
.tgi-row:last-child { border-bottom: 0; }
.tgi-row b { min-width: 0; overflow: hidden; color: #8E8E93; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
.tgi-row b.is-ok { color: #34C759; }
.tgi-sheet__btn { margin-top: 14px; height: 50px; border-radius: 12px; background: #007AFF; color: #fff; font-size: 17px; font-weight: 600; line-height: 50px; text-align: center; }
.tgi-sheet__note { margin-top: 10px; font-size: 12.5px; line-height: 16px; color: #8E8E93; text-align: center; }

.tgi-nav { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 8px; }
.tgi-nav b { font-size: 17px; font-weight: 600; }
.tgi-nav > span:last-child { min-width: 52px; }
.tgi-group { margin: 0 14px 22px; border-radius: 12px; background: #fff; overflow: hidden; }
.tgi-cell { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 14px; border-bottom: .5px solid #E5E5EA; font-size: 16px; }
.tgi-cell:last-child { border-bottom: 0; }
.tgi-cell > span:first-child:not(.tgi-check) { flex: 1; }
.tgi-cell--add { color: #007AFF; }
.tgi-check { flex: none; width: 18px; color: #007AFF; }
.tgi-cell__main { flex: 1; min-width: 0; }
.tgi-cell__main b { display: block; overflow: hidden; font-size: 15px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.tgi-cell__main small { font-size: 13px; color: #8E8E93; }
.tgi-cell__main small.is-ok { color: #007AFF; }
.tgi-caption { padding: 0 30px 6px; font-size: 13px; color: #8E8E93; }
.tgi-switch { position: relative; flex: none; width: 51px; height: 31px; border-radius: 16px; background: #E9E9EB; }
.tgi-switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.tgi-switch.is-on { background: #34C759; }
.tgi-switch.is-on::after { left: 22px; }

/* Android */
.and { border-radius: 34px; }
.and__status { position: relative; flex: none; display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 2px 22px 0; font-size: 13px; font-weight: 500; }
.and__cam { position: absolute; left: 50%; top: 9px; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: #111; }
.and__nav { position: absolute; left: 50%; bottom: 6px; width: 96px; height: 4px; margin-left: -48px; border-radius: 2px; background: #5F6368; }
.tga-head { flex: none; display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 14px; background: #517DA2; color: #fff; }
.tga-ic, .tga-done { display: grid; place-items: center; flex: none; }
.tga-title { flex: 1; min-width: 0; line-height: 1.2; }
.tga-title b { display: block; overflow: hidden; font-size: 18px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.tga-title small { font-size: 13px; opacity: .8; }
.tg-wall--and { padding-bottom: 8px; }
.tga-input { background: #fff; border-top: 0; padding-bottom: 14px; }
.tga-input .tgi-field { border: 0; padding-left: 4px; }
.tga-list { background: #fff; padding: 4px 0; }
.tga-radio { display: flex; align-items: center; gap: 18px; height: 48px; padding: 0 20px; font-size: 16px; }
.tga-radio i { flex: none; width: 20px; height: 20px; border: 2px solid #8E9AA6; border-radius: 50%; }
.tga-radio.is-on i { border-color: #3A8FD9; box-shadow: inset 0 0 0 3px #fff; background: #3A8FD9; }
.tga-sep { height: 10px; background: #F0F0F0; }
.tga-field { padding: 10px 20px 0; }
.tga-field small { display: block; font-size: 13px; color: #3A8FD9; }
.tga-field span { display: block; padding: 6px 0 8px; border-bottom: 2px solid #3A8FD9; font-size: 16px; }
.tga-field + .tga-field span { border-bottom: 1px solid #DADADA; }
.tga-field + .tga-field small { color: #8E8E93; }
.tga-note { padding: 12px 20px 0; font-size: 13px; line-height: 18px; color: #8E8E93; }
.tga-btn { margin: 16px 20px 0; height: 46px; border-radius: 8px; background: #3A8FD9; color: #fff; font-size: 15px; font-weight: 600; line-height: 46px; text-align: center; }

/* Telegram Desktop */
.tgd { overflow: hidden; border: 1px solid #D3D9DE; border-radius: 10px; background: #fff; font-size: 13px; box-shadow: 0 18px 40px -18px rgba(23, 33, 31, .3); }
.tgd__bar { display: flex; align-items: center; justify-content: space-between; height: 30px; padding-left: 12px; background: #fff; border-bottom: 1px solid #ECECEC; font-size: 12px; color: #6D7883; }
.tgd__ctl { display: flex; }
.tgd__ctl i { display: block; width: 40px; height: 30px; background: no-repeat center / 10px 10px; }
.tgd__ctl i:nth-child(1) { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><path d='M0 5h10' stroke='%236D7883'/></svg>"); }
.tgd__ctl i:nth-child(2) { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><rect x='.5' y='.5' width='9' height='9' fill='none' stroke='%236D7883'/></svg>"); }
.tgd__ctl i:nth-child(3) { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><path d='M0 0l10 10M10 0 0 10' stroke='%236D7883'/></svg>"); }
.tgd__body { position: relative; display: grid; grid-template-columns: 220px minmax(0, 1fr); height: 340px; }
.tgd__side { min-width: 0; padding: 8px 0; border-right: 1px solid #E7E7E7; overflow: hidden; }
.tgd__search { height: 32px; margin: 0 10px 8px; padding-left: 14px; border-radius: 16px; background: #F1F1F1; color: #999; line-height: 32px; }
.tgd__chat { display: flex; gap: 10px; padding: 7px 10px; }
.tgd__chat.is-active { background: #419FD9; color: #fff; }
.tgd__chat-main { flex: 1; min-width: 0; }
.tgd__chat-top { display: flex; justify-content: space-between; gap: 6px; }
.tgd__chat-top b { overflow: hidden; font-size: 13px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.tgd__chat-top small { flex: none; font-size: 11px; color: #999; }
.tgd__chat-last { display: block; overflow: hidden; margin-top: 2px; font-size: 12.5px; color: #8A8A8A; white-space: nowrap; text-overflow: ellipsis; }
.tgd__chat.is-active small, .tgd__chat.is-active .tgd__chat-last { color: rgba(255, 255, 255, .85); }
.tgd__main { min-width: 0; display: flex; flex-direction: column; background: linear-gradient(160deg, #DCE5BE 0%, #B8D3A2 45%, #8FBE9A 100%); }
.tgd__chathead { flex: none; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; background: #fff; border-bottom: 1px solid #E7E7E7; line-height: 1.25; }
.tgd__chathead b { display: block; font-size: 13.5px; font-weight: 600; }
.tgd__chathead small { font-size: 12px; color: #999; }
.tg-wall--desk { background: none; padding: 12px 16px; }
.tg-wall--desk .tg-msg { max-width: 330px; }
.tg-wall--desk .tg-bub { font-size: 13.5px; line-height: 18px; border-radius: 12px 12px 12px 4px; }
.tg-wall--desk .tg-kb__btn { min-height: 32px; font-size: 13px; border-radius: 8px; }
.tgd__input { flex: none; height: 44px; padding-left: 16px; background: #fff; border-top: 1px solid #E7E7E7; color: #999; line-height: 44px; }
.tgd__dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.tgd-box {
  position: absolute; left: 50%; top: 50%; width: min(340px, 92%); padding: 20px 22px 8px; transform: translate(-50%, -50%);
  border-radius: 8px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.tgd-box__title { margin-bottom: 12px; font-size: 15px; font-weight: 600; }
.tgd-box__btns { display: flex; justify-content: flex-end; gap: 2px; margin: 12px -12px 0; }
.tgd-box__btn { padding: 9px 12px; border-radius: 6px; color: #3A9EDB; font-size: 13.5px; font-weight: 600; }
.tgd-box__btn.is-main { background: #EAF5FC; }
.tgd-radio { display: flex; align-items: center; gap: 10px; min-height: 28px; font-size: 13.5px; }
.tgd-radio i { flex: none; width: 16px; height: 16px; border: 2px solid #ADB5BC; border-radius: 50%; }
.tgd-radio.is-on i { border-color: #40A7E3; background: #40A7E3; box-shadow: inset 0 0 0 3px #fff; }
.tgd-types { display: flex; flex-wrap: wrap; gap: 0 16px; margin-bottom: 10px; }
.tgd-type { margin-bottom: 8px; font-size: 12px; font-weight: 600; color: #40A7E3; text-transform: uppercase; letter-spacing: .04em; }
.tgd-field { margin-bottom: 10px; }
.tgd-field small { display: block; font-size: 12px; color: #999; }
.tgd-field span { display: block; padding: 3px 0 5px; border-bottom: 1px solid #E0E0E0; font-size: 14px; }
.tgd-warn, .tgd-hint { margin-top: 4px; font-size: 12.5px; line-height: 17px; color: #6D7883; }
.tgd-proxy { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 7px 0 7px 26px; border-radius: 6px; }
.tgd-proxy.is-on { background: #F3F8FC; }
.tgd-proxy__main { flex: 1; min-width: 0; }
.tgd-proxy__main b { display: block; overflow: hidden; font-size: 13px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.tgd-proxy__main small { font-size: 12px; color: #999; }
.tgd-proxy__main small.is-ok { color: #40A7E3; }
.tgd-proxy__main small.is-bad { color: #D14E4E; }
.tgd-proxy__tools { display: flex; gap: 10px; padding-right: 6px; color: #A0A7AE; }
.tgd-add { padding: 10px 0 2px 26px; color: #40A7E3; font-size: 13.5px; font-weight: 600; }
.tgd-text { margin: 0; font-size: 13.5px; line-height: 19px; }
.tgd-toast { position: absolute; left: 50%; bottom: 14px; max-width: 90%; padding: 8px 14px; transform: translateX(-50%); border-radius: 8px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 12.5px; white-space: nowrap; }
.tga-dialog { position: absolute; left: 22px; right: 22px; top: 34%; padding: 20px 22px 12px; border-radius: 6px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.tga-dialog b { display: block; margin-bottom: 12px; font-size: 18px; font-weight: 500; }
.tga-dialog p { margin: 0; font-size: 15px; line-height: 21px; color: #222; }
.tga-dialog span { display: block; margin-top: 14px; color: #3A8FD9; font-size: 15px; font-weight: 600; text-align: right; }
.tgi-proxy { display: flex; justify-content: flex-end; color: #007AFF; }
.tgi-tip { position: relative; margin: 6px 14px 12px 40px; padding: 10px 14px; border-radius: 10px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 14px; line-height: 19px; }
.tgi-group--chats .tgi-cell { gap: 12px; min-height: 62px; }
.tgi-group--chats .tgi-cell > span.tg-ava { flex: none; }
@container (max-width: 520px) {
  .tgd__body { grid-template-columns: minmax(0, 1fr); }
  .tgd__side { display: none; }
  .tgd-box { width: 94%; padding: 16px 16px 6px; }
}

/* браузер */
.br { overflow: hidden; border: 1px solid #D3D9DE; border-radius: 10px; background: #fff; box-shadow: 0 18px 40px -18px rgba(23, 33, 31, .3); font-family: var(--tg-font); }
.br__tabs { display: flex; align-items: flex-end; gap: 12px; height: 36px; padding: 0 10px; background: #DEE1E6; }
.br__dots { display: flex; gap: 6px; align-self: center; }
.br__dots i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.br__dots i:nth-child(2) { background: #FEBC2E; }
.br__dots i:nth-child(3) { background: #28C840; }
.br__tab { max-width: 200px; padding: 7px 16px; border-radius: 8px 8px 0 0; background: #fff; font-size: 12.5px; color: #333; }
.br__addr { padding: 6px 10px; border-bottom: 1px solid #ECECEC; }
.br__url { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 15px; background: #F1F3F4; color: #202124; font-size: 13px; }
.br__url svg { color: #5F6368; }
.br__page { display: grid; place-items: center; min-height: 250px; padding: 22px; }
.br-spin { width: 38px; height: 38px; border: 3px solid #E3E6EA; border-top-color: #3390EC; border-radius: 50%; }
.br__page--login { grid-template-columns: auto minmax(0, 1fr); gap: 24px; justify-items: start; }
.br-qr { width: 132px; height: 132px; fill: #000; shape-rendering: crispEdges; }
.br-qr .qr-w { fill: #fff; }
.br-login b { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 600; }
.br-login ol { margin: 0 0 10px; padding-left: 18px; font-size: 13px; line-height: 20px; color: #707579; }
.br-login__alt { color: #3390EC; font-size: 13.5px; font-weight: 600; }
.br__page--blocked { justify-items: start; }
.br-err { max-width: 400px; color: #202124; }
.br-err__ic { display: block; width: 36px; height: 44px; margin-bottom: 18px; border: 3px solid #9AA0A6; border-radius: 4px 12px 4px 4px; }
.br-err b { display: block; margin-bottom: 10px; font-size: 19px; font-weight: 500; }
.br-err p { margin-bottom: 8px; font-size: 13.5px; line-height: 19px; color: #5F6368; }
.br-err code { display: block; font: 11px ui-monospace, Menlo, monospace; color: #5F6368; }
.br-err__btn { display: inline-block; margin-top: 14px; padding: 7px 18px; border-radius: 16px; background: #1A73E8; color: #fff; font-size: 13px; font-weight: 500; }
@container (max-width: 460px) {
  .br__page--login { grid-template-columns: minmax(0, 1fr); justify-items: center; }
}

/* схема пути данных */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0; padding: 0; list-style: none; font-family: var(--font-sans); }
.flow__step { position: relative; padding: 14px 8px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); text-align: center; }
.flow__step.is-key { border-color: var(--teal-line); background: var(--teal-soft); }
.flow__step b { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.flow__step small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted-2); }
.flow__step:not(:last-child)::after { content: "→"; position: absolute; right: -18px; top: 50%; transform: translateY(-50%); color: var(--teal); font-size: 16px; }
.flow__note { margin-top: 10px; font: 13px var(--font-sans); color: var(--muted-2); text-align: center; }
@container (max-width: 520px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .flow__step:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -19px; transform: translateX(-50%); }
}

/* меню в трее */
.os-menu { padding: 4px; border: 1px solid #DCDCDC; border-radius: 8px; background: #F9F9F9; box-shadow: 0 12px 28px rgba(0, 0, 0, .16); font-size: 13.5px; }
.os-menu__item { display: block; padding: 8px 12px; border-radius: 4px; }
.os-menu__item.is-hover { background: #E5ECF5; }
.os-menu__sep { display: block; height: 1px; margin: 4px 8px; background: #E1E1E1; }
.os-tray { display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 36px; margin-top: 8px; padding: 0 12px; border-radius: 8px; background: #EFEFEF; font-size: 12px; color: #333; }
.os-tray i { width: 14px; height: 14px; border-radius: 3px; background: #9AA0A6; }
.os-tray i.is-app { border-radius: 50%; background: var(--teal); }

/* VPN-клиент */
.vpn { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 22px 18px 30px; text-align: center; }
.vpn__top b { display: block; font-size: 17px; font-weight: 600; }
.vpn__top small { font-size: 13px; color: #8E8E93; }
.vpn__ring { display: grid; place-items: center; width: 190px; height: 190px; margin: 40px 0 26px; border-radius: 50%; background: #E1F2EF; }
.vpn__btn { display: grid; place-items: center; width: 136px; height: 136px; border-radius: 50%; background: #0E7C70; color: #fff; }
.vpn__btn svg { width: 54px; height: 54px; }
.vpn__state { font-size: 19px; font-weight: 600; }
.vpn__sub { margin-top: 4px; font-size: 13px; color: #8E8E93; }
.vpn__server { display: flex; justify-content: space-between; width: 100%; margin-top: auto; padding: 12px 14px; border-radius: 12px; background: #F2F2F7; font-size: 15px; }
.vpn__server span { color: #8E8E93; }

/* обложки статей */
.cover { margin: 0 0 18px; }
.cover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border-radius: 16px; background: var(--chip); object-fit: cover; }
/* ---------- Длинные тексты ---------- */
.prose p { margin-bottom: 12px; font-size: 15px; line-height: 25px; color: var(--text-2); }
.prose .prose__h { margin-top: 28px; }
.prose__h3 { margin: 20px 0 6px; font-size: 16px; line-height: 22px; font-weight: 600; }
.prose__list { margin: 0 0 12px; padding-left: 20px; }
.prose__list li { margin-bottom: 4px; }
.prose .note { margin: 16px 0; }
.prose a, .article__intro a, .step__head a, .triad a { text-underline-offset: 2px; }
.code {
  margin: 0 0 14px; padding: 12px 14px; overflow-x: auto; border-radius: 10px;
  background: #17211F; color: #E6EFEC; font: 13px/20px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.code code { font: inherit; white-space: pre; }
p code, li code, td code { padding: 1px 5px; border-radius: 5px; background: var(--chip); font: 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-word; }
.tbl-wrap { margin: 0 0 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.tbl th { font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--muted-2); background: var(--chip); }
.tbl tr:last-child td { border-bottom: 0; }
.faq__q { margin: 16px 0 4px; font-size: 16px; line-height: 22px; font-weight: 600; }
.faq p { margin-bottom: 4px; font-size: 15px; line-height: 24px; color: var(--text-2); }
.topics, .fresh { margin-top: 26px; }
.topics .prose__h, .fresh .prose__h { margin: 0 0 10px; font-size: 17px; }
.row__date { display: block; margin-top: 2px; font-size: 12px; color: var(--teal-dark); }
.vote__thanks { margin-bottom: 8px; font-size: 15px; font-weight: 600; color: var(--teal-dark); }
.editorial p { margin-bottom: 12px; font-size: 15px; line-height: 25px; color: var(--text-2); }

@media (min-width: 900px) {
  .prose p, .faq p { font-size: 16px; line-height: 26px; }
  .prose__h3 { font-size: 17px; }
  .tbl { font-size: 15px; }
  .editorial p { font-size: 16px; line-height: 26px; }
}

/* Длинные адреса и команды в тексте не должны раздвигать страницу на телефоне */
.step__head > div { min-width: 0; }
.article p, .article li { overflow-wrap: anywhere; }
.tbl th, .tbl td { min-width: 96px; overflow-wrap: break-word; }
