/* sosproxy.net — единственное место стилей. Токены — из макета (tokens.css). Mobile-first, переход на десктоп — 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: 0.15s;
  --dur-base: 0.25s;
  --dur-slow: 0.4s;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-display: "Oswald", sans-serif;
  --font-sans: "Golos Text", sans-serif;
  --bg: #141110;
  --panel: #1e1a18;
  --line: #2a2421;
  --line-strong: #3a3330;
  --text: #f4eee8;
  --text-2: #cfc6bf;
  --text-body: #e2dad3;
  --muted: #a69c95;
  --on-light-muted: #5c524c;
  --signal: #ff4a1a;
  --signal-text: #ff6a3d;
  --signal-hover: #ff8c66;
  --alert-bg: #2a1410;
  --r-plate: 4px;
  --r: 6px;
  --stripe: 6px;
}

/* ---------- база ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 16px;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}
main {
  flex: 1;
}
img,
svg {
  max-width: 100%;
}
h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}
ol,
ul {
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
.prose a,
.doc a,
.toc a,
.lost a:not([class]) {
  color: var(--signal-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover,
.doc a:hover,
.toc a:hover {
  color: var(--signal-hover);
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--read {
  max-width: calc(720px + 2 * var(--gutter));
}
.skip {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: var(--r);
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}
.skip:focus {
  top: 8px;
}

/* ---------- шапка ---------- */
.stripe {
  height: var(--stripe);
  background: var(--signal);
}
.header__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
}
.logo .mark {
  flex: none;
  width: 32px;
  height: 32px;
}
.logo__word {
  font: 500 21px var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--signal-text);
}
.logo__word b {
  font-weight: 700;
  color: var(--text);
}
.burger {
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  border: 2px solid var(--line-strong);
  border-radius: var(--r);
  background: transparent;
}
.header__menu {
  display: none;
  flex: 1 0 100%;
  flex-direction: column;
  padding: 4px 0 16px;
}
.header__menu.is-open {
  display: flex;
}
.nav {
  display: flex;
  flex-direction: column;
}
.nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 2px solid var(--line);
  font: 500 20px var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav a:hover,
.nav a[aria-current] {
  color: var(--signal-text);
}
.header__bot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  margin-top: 16px;
  border: 2px solid var(--text);
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 700;
}
.header__bot:hover {
  background: var(--text);
  color: var(--bg);
}

/* ---------- кнопки и таблички ---------- */
.btn-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 72px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r);
  background: var(--signal);
  color: var(--bg);
  font: 700 26px var(--font-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: left;
}
.btn-main:hover {
  background: var(--signal-hover);
}
.btn-main svg {
  flex: none;
  width: 30px;
  height: 30px;
}
.btn-main--md {
  height: 58px;
  padding: 0 18px;
  font-size: 20px;
}
.btn-main--md svg {
  width: 24px;
  height: 24px;
}
.btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 8px;
  border: 2px solid var(--line-strong);
  border-radius: var(--r);
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.btn-ghost:hover {
  border-color: var(--text);
}
.btn-bot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 16px;
  border-radius: var(--r);
  background: var(--text);
  color: var(--bg);
  font-size: 17px;
  font-weight: 700;
}
.btn-bot:hover {
  background: var(--text-2);
}
.btn-dark {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 16px;
  border-radius: var(--r);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}
.btn-dark:hover {
  background: var(--panel);
}
:is(.btn-main, .btn-ghost)[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
.plate {
  --s: 52px;
  flex: none;
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  border-radius: var(--r-plate);
  font: 700 22px var(--font-display);
}
.plate--light {
  background: var(--text);
  color: var(--bg);
}
.plate--signal {
  background: var(--signal);
  color: var(--bg);
}
.plate--outline {
  border: 2px solid var(--text);
}
.plate--vpn {
  font-size: 18px;
}
.plate__plus {
  font-size: 13px;
  color: var(--signal);
}

/* ---------- главная: первый экран ---------- */
.hero {
  padding: 16px 0 30px;
}
.hero__main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.hero h1,
.dev h1 {
  font: 700 48px/50px var(--font-display);
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.lead {
  font-size: 17px;
  line-height: 25px;
  color: var(--text-2);
}

/* ---------- блок «Подключить» ---------- */
.connect__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.connect__more {
  display: flex;
  gap: 8px;
}
.connect__more .btn-ghost {
  flex: 1 1 0;
  min-width: 0;
}
.connect__setup {
  display: none;
  margin-top: 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}
.connect[data-unconfigured] .connect__setup {
  display: block;
}
.qr {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 14px;
  border: 2px solid var(--line-strong);
  border-radius: var(--r);
}
.qr__code {
  flex: none;
  width: 132px;
  height: 132px;
  padding: 6px;
  border-radius: var(--r-plate);
  background: #fff;
}
.qr__code svg {
  display: block;
  width: 100%;
  height: 100%;
}
.qr p {
  font-size: 15px;
  line-height: 22px;
  color: var(--text-2);
}
.next {
  border: 2px solid var(--signal);
  border-radius: var(--r);
  overflow: hidden;
}
.next__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 14px;
  background: var(--signal);
  color: var(--bg);
}
.next__title {
  font: 700 18px var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.next__back {
  display: grid;
  place-items: center;
  width: var(--tap);
  height: var(--tap);
  border: 0;
  background: transparent;
  color: var(--bg);
}
.next__back:focus-visible {
  outline-color: var(--bg);
  outline-offset: -4px;
}
.next__rows {
  display: grid;
}
.next__row {
  display: block;
  padding: 14px;
}
.next__row + .next__row {
  border-top: 2px solid var(--line);
}
.next__row:hover {
  background: var(--panel);
}
.next__name {
  display: block;
  font-size: 16px;
  font-weight: 700;
}
.next__sub {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--signal-text);
}

/* ---------- секции главной ---------- */
.section {
  padding: 30px 0;
  border-top: 2px solid var(--line);
}
.h2 {
  margin-bottom: 16px;
  font: 700 30px/34px var(--font-display);
  text-transform: uppercase;
}
.h2--in {
  font-size: 28px;
  line-height: 32px;
}
.qa {
  border-bottom: 2px solid var(--line);
}
.qa:last-child {
  border-bottom: 0;
}
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-plate);
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}
.qa[open] .qa__mark {
  transform: rotate(45deg);
}
.qa__a {
  padding: 0 40px 16px 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-2);
}

/* ---------- подвал ---------- */
.footer {
  margin-top: 26px;
  border-top: var(--stripe) solid var(--signal);
}
.footer__in {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 20px;
  padding-bottom: 30px;
  font-size: 13px;
  color: var(--muted);
}
.footer__brand {
  font: 600 16px var(--font-display);
  letter-spacing: 0.04em;
  color: var(--text);
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}
.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}
.footer__nav a:hover {
  color: var(--text);
}

/* ---------- хлебные крошки ---------- */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.crumbs li + li::before {
  content: "/";
  margin: 0 6px;
}
.crumbs a {
  display: inline-block;
  padding: 12px 0;
  color: var(--signal-text);
}
.crumbs a:hover {
  color: var(--signal-hover);
}
.crumbs li {
  display: flex;
  align-items: center;
}

/* ---------- страница устройства ---------- */
.dev {
  padding: 4px 0 30px;
}
.dev__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dev__kick {
  font-size: 14px;
  color: var(--muted);
}
.dev h1 {
  font-size: 44px;
  line-height: 46px;
}
.dev__act {
  margin-top: 16px;
}
.how {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}
.how li {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 2px solid var(--line-strong);
  border-radius: var(--r);
}
.how__n {
  flex: none;
  min-width: 22px;
  font: 700 36px/36px var(--font-display);
  color: var(--signal);
}
.how__t {
  font-size: 16px;
  font-weight: 700;
}
.how__d {
  margin-top: 4px;
  font-size: 15px;
  line-height: 22px;
  color: var(--text-2);
}
.fixes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fix {
  padding: 14px 0 14px 16px;
  border-left: 3px solid var(--signal);
}
.fix__t {
  font-size: 15px;
  font-weight: 700;
}
.fix__d {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}
.fixes + .btn-bot {
  margin-top: 14px;
}

/* ---------- блог ---------- */
.page-h1 {
  margin-bottom: 14px;
  font: 700 48px/50px var(--font-display);
  text-transform: uppercase;
}
.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border: 2px solid var(--line-strong);
  border-radius: var(--r-plate);
  font-size: 14px;
  font-weight: 600;
}
.chip:hover {
  border-color: var(--text);
}
.chip[aria-current] {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}
.rubric-lead {
  margin-top: 12px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-2);
}
.feed {
  display: grid;
  gap: 10px;
  padding-top: 18px;
}
.post {
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--panel);
}
.post__cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--line);
}
.post__cover .cover {
  height: 100%;
}
.post__body {
  padding: 14px 16px 18px;
}
.post__desc {
  margin-top: 6px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-2);
}
.post:hover .post__title {
  color: var(--signal-text);
}
.post__kick {
  display: block;
  font: 600 11px var(--font-display);
  letter-spacing: 0.08em;
  color: var(--signal-text);
  text-transform: uppercase;
}
.post__title {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
}
.post--lead .post__kick {
  font-size: 12px;
}
.post--lead .post__title {
  margin-top: 6px;
  font: 600 24px/28px var(--font-display);
  text-transform: uppercase;
}
.cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
  padding: 18px;
  border-radius: var(--r);
  background: var(--signal);
  color: var(--bg);
}
.wrap > .cta:last-child {
  margin-bottom: 48px;
}
.cta h2 {
  font: 700 24px/28px var(--font-display);
  text-transform: uppercase;
}
.cta p {
  font-size: 15px;
  line-height: 22px;
}

/* ---------- статья ---------- */
.article {
  padding-top: 4px;
}
.article h1 {
  margin: 8px 0 14px;
  font: 700 36px/40px var(--font-display);
  text-transform: uppercase;
}
.meta {
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--muted);
}
.toc {
  margin: 20px 0;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: var(--r);
}
.toc__t {
  margin-bottom: 8px;
  font: 600 14px var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc ol {
  padding-left: 20px;
  font-size: 15px;
  line-height: 28px;
}
.prose {
  font-size: 17px;
  line-height: 27px;
  color: var(--text-body);
}
.prose h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 10px;
  font: 600 24px/28px var(--font-display);
  text-transform: uppercase;
  color: var(--text);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose__n {
  flex: none;
  min-width: 1.1em;
  color: var(--signal);
}
.prose p {
  margin-bottom: 16px;
}
.prose .draft {
  color: var(--muted);
}
.note {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: var(--r);
  background: var(--panel);
}
.note--important {
  border: 2px solid var(--signal);
  background: var(--alert-bg);
}
.note__label {
  margin-bottom: 4px;
  font: 600 14px var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.note--important .note__label {
  color: var(--signal-text);
}
.note p {
  margin: 0;
  font-size: 15px;
  line-height: 23px;
}
.note:not(.note--important) p {
  color: var(--text-2);
}
.related {
  padding-top: 24px;
}
.related h2 {
  margin-bottom: 10px;
  font: 700 22px var(--font-display);
  text-transform: uppercase;
}
.related a {
  display: block;
  padding: 14px 0;
  border-bottom: 2px solid var(--line);
  font-size: 16px;
  font-weight: 700;
}
.related a:hover {
  color: var(--signal-text);
}

/* ---------- документы ---------- */
.docs-h1 {
  margin-bottom: 16px;
  font: 700 44px/46px var(--font-display);
  text-transform: uppercase;
}
.docs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 2px solid var(--line-strong);
  border-radius: var(--r);
}
.doc-link:hover {
  border-color: var(--text);
}
.doc-link .plate {
  --s: 40px;
  background: var(--line);
  font-size: 18px;
}
.doc-link__t {
  display: block;
  font-size: 16px;
  font-weight: 700;
}
.doc-link__d {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.doc-link[aria-current] {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}
.doc-link[aria-current] .plate {
  background: var(--signal);
}
.doc-link[aria-current] .doc-link__d {
  color: var(--on-light-muted);
}
.doc {
  margin-top: 22px;
  padding: 20px 18px;
  border-top: 6px solid var(--signal);
  border-radius: var(--r);
  background: var(--panel);
}
.doc h2 {
  margin-bottom: 4px;
  font: 700 26px/30px var(--font-display);
  text-transform: uppercase;
}
.doc__since {
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
}
.doc .chips {
  flex-wrap: wrap;
  margin-bottom: 18px;
  overflow: visible;
}
.doc a.chip {
  color: var(--text);
  text-decoration: none;
}
.doc .chip {
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 400;
}
.doc h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
}
.doc p {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-2);
}
.doc section + section {
  margin-top: 16px;
}

/* ---------- 404 ---------- */
.lost {
  padding: 24px 0 30px;
}
.lost h1 {
  margin-bottom: 12px;
  font: 700 44px/46px var(--font-display);
  text-transform: uppercase;
}
.lost p {
  margin-bottom: 20px;
  color: var(--text-2);
}
.lost .btn-bot {
  max-width: 320px;
}

/* ---------- десктоп ---------- */
@media (min-width: 640px) {
  .qr__code {
    width: 156px;
    height: 156px;
  }
}

@media (min-width: 900px) {
  :root {
    --stripe: 8px;
  }
  .header__in {
    min-height: 76px;
    gap: 12px 32px;
  }
  .burger {
    display: none;
  }
  .header__menu,
  .header__menu.is-open {
    display: contents;
  }
  .nav {
    flex-direction: row;
    gap: 4px 28px;
  }
  .nav a {
    min-height: var(--tap);
    border-bottom: 0;
    font-size: 17px;
  }
  .header__bot {
    height: var(--tap);
    margin: 0;
    padding: 0 18px;
  }
  .logo .mark {
    width: 36px;
    height: 36px;
  }
  .logo__word {
    font-size: 24px;
  }

  .hero {
    padding: 40px 0 64px;
  }
  .hero__in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 56px;
  }
  .hero__main {
    gap: 24px;
  }
  .hero h1 {
    font-size: clamp(48px, 6vw, 88px);
    line-height: 0.98;
  }
  .hero .lead {
    max-width: 600px;
    font-size: 19px;
    line-height: 28px;
  }

  .connect__row {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .connect__row .btn-main {
    flex: 2 1 320px;
    width: auto;
    height: 84px;
    padding: 0 28px;
    font-size: 32px;
  }
  .connect__row .btn-main svg {
    width: 36px;
    height: 36px;
  }
  .connect__more {
    flex: 1 1 280px;
  }
  .connect__more .btn-ghost {
    height: 84px;
    font-size: 16px;
  }
  .next__title {
    font-size: 22px;
  }
  .next__head {
    padding-left: 18px;
  }
  .next__back {
    width: 48px;
    height: 48px;
  }
  .next__rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .next__row {
    padding: 20px 18px;
  }
  .next__row + .next__row {
    border-top: 0;
    border-left: 2px solid var(--line);
  }
  .next__name {
    font-size: 18px;
  }
  .next__sub {
    font-size: 15px;
  }

  .section {
    padding: 56px 0;
  }
  .h2 {
    margin-bottom: 24px;
    font-size: 44px;
    line-height: 48px;
  }
  .qa summary {
    min-height: 64px;
    font-size: 17px;
  }
  .qa__mark {
    width: 30px;
    height: 30px;
  }

  .footer {
    margin-top: 0;
  }
  .footer__in {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 32px;
    padding-top: 28px;
    padding-bottom: 40px;
    font-size: 14px;
  }
  .footer__brand {
    font-size: 18px;
  }

  /* внутренние страницы */
  .dev {
    padding: 8px 0 56px;
  }
  .dev__in {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px 64px;
    align-items: start;
  }
  .dev h1 {
    font-size: clamp(44px, 5vw, 72px);
    line-height: 1;
  }
  .dev .lead {
    font-size: 19px;
    line-height: 28px;
  }
  .dev__act {
    margin-top: 0;
    padding-top: 8px;
  }
  .how {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .how li {
    flex-direction: column;
    gap: 12px;
    padding: 20px;
  }
  .how__n {
    font-size: 56px;
    line-height: 56px;
  }
  .how__t {
    font-size: 18px;
  }
  .fixes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .fix {
    padding: 16px 0 16px 20px;
  }
  .fix__t {
    font-size: 17px;
  }
  .fix__d {
    font-size: 15px;
    line-height: 22px;
  }
  .fixes + .btn-bot {
    max-width: 360px;
    margin-top: 20px;
  }

  .page-h1 {
    margin-bottom: 20px;
    font-size: clamp(56px, 6vw, 80px);
    line-height: 1;
  }
  .chips {
    flex-wrap: wrap;
    overflow: visible;
  }
  .feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 28px;
  }
  .post__title {
    font-size: 18px;
    line-height: 24px;
  }
  .post--lead {
    grid-column: 1 / -1;
    display: flex;
  }
  .post--lead .post__cover {
    flex: 0 0 56%;
    aspect-ratio: auto;
    min-height: 320px;
  }
  .post--lead .post__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
  }
  .post--lead .post__kick {
    font-size: 13px;
  }
  .post--lead .post__title {
    font-size: 36px;
    line-height: 40px;
  }
  .cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    padding: 28px 32px;
  }
  .cta .btn-dark {
    flex: none;
    min-width: 280px;
  }
  .wrap--read .cta {
    flex-direction: column;
    align-items: stretch;
  }

  .article h1 {
    font-size: 48px;
    line-height: 52px;
  }
  .article .btn-main--md {
    max-width: 360px;
  }
  .prose {
    font-size: 18px;
    line-height: 29px;
  }
  .prose h2 {
    margin-top: 36px;
    font-size: 28px;
    line-height: 32px;
  }

  .doc {
    padding: 32px 36px;
  }
  .docs-list {
    flex-direction: row;
  }
  .doc-link {
    flex: 1 1 0;
  }
  .docs-h1 {
    font-size: clamp(56px, 6vw, 72px);
    line-height: 1;
  }
  .doc p {
    max-width: 720px;
  }
}

/* ---------- движение: только transform и opacity ---------- */
@media (prefers-reduced-motion: no-preference) {
  .btn-main,
  .btn-ghost,
  .btn-bot,
  .btn-dark,
  .next__back,
  .burger,
  .header__bot,
  .chip,
  .post,
  .card,
  .sw__tab,
  .next__row {
    transition:
      transform var(--dur-fast) var(--ease-out),
      opacity var(--dur-fast) var(--ease-out),
      background-color var(--dur-fast) var(--ease-out),
      border-color var(--dur-fast) var(--ease-out),
      color var(--dur-fast) var(--ease-out);
  }
  .btn-main:active,
  .btn-ghost:active,
  .btn-bot:active,
  .btn-dark:active,
  .burger:active,
  .header__bot:active,
  .chip:active {
    transform: scale(0.97);
  }
  .qa__mark {
    transition: transform var(--dur-base) var(--ease-out);
  }
  .next,
  .qr,
  .header__menu.is-open {
    animation: rise var(--dur-base) var(--ease-out);
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ---------- уточнения ---------- */
.how li > div {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.how .fig {
  margin-top: auto;
  padding-top: 14px;
}
.check {
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .check {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 64px;
  }
  .check:has(.fig--pc) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.doc-link .plate {
  color: var(--text);
}
.doc-link[aria-current] .plate {
  color: var(--bg);
}
@media (min-width: 900px) {
  .dev .connect__more .btn-ghost {
    height: 60px;
  }
}

/* ---------- иллюстрации: мокапы и обложки ---------- */
.cover {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.article__cover {
  margin: 0 0 20px;
  overflow: hidden;
  border-radius: var(--r);
  aspect-ratio: 1200 / 670;
  background: var(--panel);
}
.fig {
  margin: 0 0 18px;
}
.how .fig {
  margin: 14px 0 0;
}
.prose .fig {
  margin: 24px 0 26px;
}

/* ---------- рамки устройств ---------- */
.dv {
  --tg-bg: #0e1621;
  --tg-panel: #17212b;
  --tg-in: #182533;
  --tg-out: #2b5278;
  --tg-kb: #1f3044;
  --tg-acc: #5eb5f7;
  --tg-text: #f2f4f6;
  --tg-muted: #7d8e9f;
  --tg-sep: #0b121a;
  position: relative;
  width: 272px;
  max-width: 100%;
  margin-inline: auto;
  padding: 9px;
  border-radius: 44px;
  background: #1b1918;
  box-shadow:
    0 0 0 1px #3a3330,
    0 24px 60px -24px rgb(0 0 0 / 0.8);
  font-family: -apple-system, "SF Pro Text", Roboto, "Segoe UI", sans-serif;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--tg-text);
  text-align: left;
}
.dv__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 548px;
  overflow: hidden;
  border-radius: 35px;
  background: var(--tg-bg);
}
.dv--iphone::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 50%;
  width: 78px;
  height: 22px;
  border-radius: 12px;
  background: #000;
  transform: translateX(-50%);
}
.dv--android {
  border-radius: 30px;
  padding: 7px;
}
.dv--android .dv__screen {
  border-radius: 24px;
}
.dv--android::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 17px;
  left: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #000;
  transform: translateX(-50%);
}
.dv--short .dv__screen {
  height: 400px;
}
.dv-status {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 4px 22px 0 30px;
  background: var(--tg-panel);
  font-size: 12px;
  font-weight: 600;
}
.dv--android .dv-status {
  height: 30px;
  padding: 2px 18px 0;
  font-weight: 500;
}
.dv-status__r {
  display: flex;
  gap: 5px;
}
.dv-status svg {
  height: 10px;
  width: auto;
}
.dv--pc {
  width: 100%;
  max-width: 560px;
  padding: 0;
  border-radius: 10px;
  background: var(--tg-panel);
  overflow: hidden;
}
.dv-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 28px;
  padding-left: 12px;
  background: #0f171f;
  font-size: 11px;
  color: var(--tg-muted);
}
.dv-bar__btns {
  display: flex;
  height: 100%;
}
.dv-bar__btns i {
  width: 38px;
  height: 100%;
  background:
    linear-gradient(currentColor, currentColor) center / 9px 1px no-repeat;
}
.dv-bar__btns i:nth-child(2) {
  position: relative;
  background: none;
}
.dv-bar__btns i:nth-child(2)::after {
  content: "";
  position: absolute;
  inset: 9px 14px;
  border: 1px solid currentColor;
}
.dv-bar__btns i:nth-child(3) {
  background:
    linear-gradient(45deg, transparent 47%, currentColor 47% 53%, transparent 53%) center / 10px 10px no-repeat,
    linear-gradient(-45deg, transparent 47%, currentColor 47% 53%, transparent 53%) center / 10px 10px no-repeat;
}
.dv--pc .dv__screen {
  flex-direction: row;
  height: 320px;
  border-radius: 0;
}

/* ---------- Telegram ---------- */
.tg b {
  font-weight: 600;
}
.tg code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92em;
  color: var(--tg-acc);
}
.tg-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 4px 10px 6px;
  background: var(--tg-panel);
  border-bottom: 1px solid var(--tg-sep);
}
.tg-head svg {
  display: block;
}
.tg-head__back {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--tg-acc);
  font-size: 13px;
}
.tg-head__back svg {
  width: 9px;
  height: 15px;
}
.tg-head__back b {
  font-weight: 400;
}
.tg-head__t {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-size: 13.5px;
  white-space: nowrap;
}
.tg-head--ios .tg-head__t {
  align-items: center;
}
.tg-head__t small {
  font-size: 11px;
  color: var(--tg-muted);
}
.tg-head__ic {
  flex: none;
  color: var(--tg-muted);
}
.tg-head__ic svg {
  width: 18px;
  height: 18px;
}
.tg-ava {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.tg-ava--bot {
  background: #141110;
}
img.tg-ava {
  object-fit: cover;
}
.tg-ava--bot .mark {
  width: 26px;
  height: 26px;
}
.tg-ava--a {
  background: linear-gradient(#ff885e, #ff516a);
}
.tg-ava--b {
  background: linear-gradient(#72d5fd, #2a9ef1);
}
.tg-ava--c {
  background: linear-gradient(#a0de7e, #54cb68);
}
.tg-ava--d {
  background: linear-gradient(#e0a2f3, #d669ed);
}
.tg-ava--e {
  background: linear-gradient(#ffcd6a, #ffa85c);
}
.tg-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-height: 0;
  overflow: hidden;
  padding: 8px 8px 6px;
}
.tg-chat > * {
  flex: none;
}
.tg-date {
  align-self: center;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgb(0 0 0 / 0.3);
  font-size: 11px;
  font-weight: 600;
}
.tg-msg {
  position: relative;
  max-width: 86%;
  border-radius: 14px;
}
.tg-msg--out {
  align-self: flex-end;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 6px 8px 5px 10px;
  border-bottom-right-radius: 4px;
  background: var(--tg-out);
}
.tg-msg--in {
  align-self: flex-start;
  max-width: 94%;
  overflow: hidden;
  border-bottom-left-radius: 4px;
  background: var(--tg-in);
}
.tg-msg--post {
  max-width: 94%;
}
.tg-msg__text {
  padding: 6px 10px 6px;
}
.tg-photo {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
}
.tg-time {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 6px 0 -3px 10px;
  font-size: 10.5px;
  color: var(--tg-muted);
}
.tg-msg--out .tg-time {
  float: none;
  margin: 0;
  color: #7fb3e6;
}
.tg-ticks {
  width: 14px;
  height: 8px;
}
.tg-q {
  display: block;
  margin: 2px 0 4px;
  padding: 3px 0 3px 8px;
  border-left: 3px solid var(--tg-acc);
  border-radius: 3px;
  background: rgb(94 181 247 / 0.08);
}
.tg-kb {
  display: grid;
  gap: 3px;
  width: 94%;
}
.tg-kb__row {
  display: flex;
  gap: 3px;
}
.tg-kb__b {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 2px;
  border-radius: 8px;
  background: var(--tg-kb);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tg-kb__b--hot {
  background: #2f6ea5;
}
.tg-kb__go {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
}
.tg-rkb {
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 6px 6px 18px;
  background: var(--tg-panel);
}
.tg-rkb span {
  padding: 9px 4px;
  border-radius: 7px;
  background: #24303c;
  font-size: 11.5px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}
.tg-rkb span:first-child {
  grid-column: 1 / -1;
}
.tg-input {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 20px;
  background: var(--tg-panel);
  color: var(--tg-muted);
}
.tg-input--android {
  padding-bottom: 10px;
}
.tg-input__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 14px;
  background: #2f6ea5;
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
}
.tg-input__menu svg {
  width: 12px;
  height: 12px;
}
.tg-input__field {
  flex: 1;
  font-size: 12.5px;
}
.tg-input__ic svg {
  display: block;
  width: 18px;
  height: 18px;
}
.tg-mute {
  flex: none;
  padding: 10px 0 22px;
  background: var(--tg-panel);
  color: var(--tg-acc);
  font-size: 13px;
  text-align: center;
}

/* список чатов */
.tg-list {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--tg-panel);
}
.tg--pc .tg-list {
  flex: 0 0 max(56%, 200px);
  border-right: 1px solid var(--tg-sep);
}
.tg-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px 6px;
}
.tg-list-head--and {
  gap: 12px;
  padding: 8px 12px;
}
.tg-list-head__t {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14.5px;
}
.tg-list-head--and .tg-list-head__t {
  justify-content: flex-start;
  font-size: 15px;
}
.tg-list-head__edit {
  width: 34px;
  color: var(--tg-acc);
  font-size: 13px;
}
.tg-list-head__new {
  text-align: right;
}
.tg-shield {
  color: var(--tg-acc);
}
.tg-shield svg {
  display: block;
  width: 16px;
  height: 16px;
}
.tg-spin {
  width: 12px;
  height: 12px;
  border: 2px solid rgb(255 255 255 / 0.2);
  border-top-color: var(--tg-acc);
  border-radius: 50%;
}
.tg-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 10px 6px;
  padding: 6px 8px;
  border-radius: 9px;
  background: #0e1621;
  color: var(--tg-muted);
  font-size: 12.5px;
}
.tg-search svg {
  width: 13px;
  height: 13px;
}
.tg-chatrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
}
.tg-chatrow + .tg-chatrow .tg-chatrow__b {
  border-top: 1px solid var(--tg-sep);
}
.tg-chatrow .tg-ava {
  width: 40px;
  height: 40px;
}
.tg-chatrow__b {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: -7px 0;
  padding: 7px 0;
}
.tg-chatrow__b span {
  overflow: hidden;
  color: var(--tg-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tg-chatrow time {
  align-self: flex-start;
  font-size: 10.5px;
  color: var(--tg-muted);
}
.tg-chatrow--pin {
  background: #1d2a37;
}
.tg-chatrow--pin .tg-chatrow__b span {
  color: var(--tg-acc);
}

/* окно «Прокси-сервер» */
.tg-dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgb(0 0 0 / 0.55);
}
.tg-sheet,
.tg-modal {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tg-sheet {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px 22px;
  border-radius: 16px 16px 0 0;
  background: #1c2733;
}
.tg-sheet__grab {
  align-self: center;
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: #3d4c5b;
}
.tg-modal__t {
  font-size: 15px;
  text-align: center;
}
.tg-group {
  overflow: hidden;
  border-radius: 10px;
  background: var(--tg-panel);
}
.tg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
}
.tg-row + .tg-row {
  border-top: 1px solid var(--tg-sep);
}
.tg-row b {
  min-width: 0;
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--tg-muted);
}
.tg-row .tg-ok {
  color: #5fd38d;
}
.tg-note {
  padding: 0 4px;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--tg-muted);
}
.tg-cta {
  padding: 11px;
  border-radius: 10px;
  background: #2f8ae5;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  color: #fff;
}
.tg-modal--and {
  left: 14px;
  right: 14px;
  top: 50%;
  padding: 16px 14px 10px;
  border-radius: 16px;
  background: #1c2733;
  transform: translateY(-50%);
}
.tg-modal--and .tg-modal__t,
.tg-modal--pc .tg-modal__t {
  text-align: left;
  font-size: 16px;
}
.tg-modal--and .tg-row,
.tg-modal--pc .tg-row {
  padding: 6px 0;
}
.tg-modal--and .tg-row + .tg-row,
.tg-modal--pc .tg-row + .tg-row {
  border-top: 0;
}
.tg-modal__btns {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  padding-top: 6px;
  color: var(--tg-acc);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}
.tg-modal--pc {
  left: 50%;
  top: 50%;
  width: min(290px, 88%);
  padding: 16px 18px 12px;
  border-radius: 8px;
  background: #1c2733;
  transform: translate(-50%, -50%);
}
.tg-modal--pc .tg-modal__btns {
  text-transform: none;
}
.tg-pane {
  flex: 1;
  display: grid;
  place-items: center;
  background: var(--tg-bg);
}
.tg-pane__hint {
  max-width: 80%;
  text-align: center;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgb(0 0 0 / 0.3);
  font-size: 11px;
}

/* настройки «Прокси» */
.tg-set {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 12px;
  background: var(--tg-bg);
}
.tg-pane--set {
  display: block;
}
.tg-pane--set .tg-set {
  max-width: 340px;
  margin: 0 auto;
  padding-top: 10px;
}
.tg-set__head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 0 -12px 8px;
  padding: 6px 10px 8px;
  background: var(--tg-panel);
  font-size: 14px;
}
.tg-cap {
  padding: 4px 12px 0;
  font-size: 10.5px;
  color: var(--tg-muted);
  text-transform: none;
}
.tg-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: #2f8ae5;
}
.tg-toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
}
.tg-row--add {
  display: block;
  color: var(--tg-acc);
}
.tg-row--proxy {
  justify-content: flex-start;
}
.tg-row__chk {
  color: var(--tg-acc);
}
.tg-row__chk svg {
  display: block;
  width: 14px;
  height: 11px;
}
.tg-row__b {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.tg-row__b b {
  color: var(--tg-text);
}
.tg-row__b small {
  font-size: 11px;
  color: var(--tg-acc);
}

/* наша страница в браузере телефона */
.br {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  font-family: var(--font-sans);
}
.br__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 4px 10px 0;
  padding: 6px;
  border-radius: 9px;
  background: #2a2522;
  font-size: 11.5px;
  color: var(--text-2);
}
.br__bar svg {
  width: 9px;
  height: 11px;
}
.br__page {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px;
}
.br__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 500 13px var(--font-display);
  letter-spacing: 0.04em;
  color: var(--signal-text);
}
.br__logo b {
  color: var(--text);
}
.br__logo .mark {
  width: 18px;
  height: 18px;
}
.br__h {
  font: 700 26px/1 var(--font-display);
  text-transform: uppercase;
}
.br__lead {
  font-size: 12px;
  line-height: 17px;
  color: var(--text-2);
}
.dv__screen:has(.br) .dv-status {
  background: var(--bg);
}
.br__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 14px;
  border-radius: var(--r);
  background: var(--signal);
  color: var(--bg);
  font: 700 20px var(--font-display);
  text-transform: uppercase;
}
.br__btn svg {
  width: 22px;
  height: 22px;
}
.br__row {
  display: flex;
  gap: 6px;
}
.br__row span {
  flex: 1;
  padding: 9px;
  border: 2px solid var(--line-strong);
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.br__btn {
  position: relative;
}
.br__tap {
  position: absolute;
  top: 26px;
  right: 40px;
  width: 30px;
  height: 30px;
  border: 2px solid rgb(255 255 255 / 0.85);
  border-radius: 50%;
  background: rgb(255 255 255 / 0.25);
}
.tg--pc .br {
  align-items: stretch;
}
.tg--pc .br__page {
  width: 320px;
  margin: 0 auto;
}

/* ---------- главная: новые блоки ---------- */
.hero__shot {
  margin-top: 28px;
}
.hero__cap {
  max-width: 300px;
  margin: 14px auto 0;
  font-size: 13px;
  line-height: 19px;
  color: var(--muted);
  text-align: center;
}
.connect__proto {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.connect__web {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid var(--line);
}
.connect__web--text {
  font-size: 15px;
  line-height: 22px;
  color: var(--text-2);
}
.connect__web--text .connect__proto {
  display: inline;
  color: var(--text);
}
.lead a,
.seo__cols a,
.connect__web a {
  color: var(--signal-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sec-head {
  margin-bottom: 20px;
}
.sec-head .h2 {
  margin-bottom: 8px;
}
.sec-head p {
  max-width: 640px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-2);
}
.sec-head a {
  color: var(--signal-text);
}
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(272px, 84%);
  gap: 20px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 4px var(--gutter) 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
}
.shots__i {
  scroll-snap-align: center;
}
.shots__cap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  max-width: 300px;
  margin: 18px auto 0;
}
.shots__n {
  grid-row: span 2;
  font: 700 34px/1 var(--font-display);
  color: var(--signal);
}
.shots__cap h3 {
  font-size: 17px;
  line-height: 22px;
}
.shots__cap p {
  font-size: 14px;
  line-height: 21px;
  color: var(--text-2);
}
.shots__bot {
  max-width: 360px;
  margin-top: 20px;
}
.sw__r {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sw__tabs {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 10px;
  background: var(--panel);
}
.sw__tab {
  display: grid;
  place-items: center;
  min-width: 96px;
  min-height: var(--tap);
  padding: 0 14px;
  border-radius: 7px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-2);
}
.sw__tab:hover {
  color: var(--text);
}
#sw-iphone:checked ~ .sw__tabs [for="sw-iphone"],
#sw-android:checked ~ .sw__tabs [for="sw-android"],
#sw-pc:checked ~ .sw__tabs [for="sw-pc"] {
  background: var(--text);
  color: var(--bg);
}
#sw-iphone:focus-visible ~ .sw__tabs [for="sw-iphone"],
#sw-android:focus-visible ~ .sw__tabs [for="sw-android"],
#sw-pc:focus-visible ~ .sw__tabs [for="sw-pc"] {
  outline: 2px solid var(--signal-text);
  outline-offset: 2px;
}
.sw__p {
  display: none;
}
#sw-iphone:checked ~ .sw__panels .sw__p--iphone,
#sw-android:checked ~ .sw__panels .sw__p--android,
#sw-pc:checked ~ .sw__panels .sw__p--pc {
  display: block;
}
.sw__steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 80%);
  gap: 20px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 4px var(--gutter) 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
}
.sw__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 2px 10px;
  scroll-snap-align: center;
}
.sw__steps .fig {
  grid-column: 1 / -1;
  margin-bottom: 14px;
}
.sw__steps .dv:not(.dv--pc) {
  width: 250px;
}
.sw__steps .dv:not(.dv--pc) .dv__screen {
  height: 480px;
}
.sw__steps .dv--short .dv__screen {
  height: 480px;
}
.sw__n {
  grid-row: span 2;
  font: 700 30px/1 var(--font-display);
  color: var(--signal);
}
.sw__steps b {
  font-size: 16px;
}
.sw__steps li > span:last-child {
  font-size: 14px;
  line-height: 21px;
  color: var(--text-2);
}
.sw__more {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin-top: 8px;
  color: var(--signal-text);
  font-weight: 700;
}
.cmp {
  display: grid;
  gap: 12px;
}
.cmp__col {
  padding: 18px;
  border-radius: var(--r);
  background: var(--panel);
}
.cmp__col--hot {
  box-shadow: inset 0 0 0 2px var(--signal);
}
.cmp__col h3 {
  margin-bottom: 8px;
  font: 600 24px var(--font-display);
  text-transform: uppercase;
}
.cmp dl {
  margin: 0;
}
.cmp dl > div {
  padding: 10px 0;
  border-top: 1px solid var(--line-strong);
}
.cmp dt {
  font-size: 12px;
  color: var(--muted);
}
.cmp dd {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 21px;
}
.cmp dd a {
  color: var(--signal-text);
}
.chan {
  display: flex;
  flex-direction: column-reverse;
  gap: 28px;
}
.chan__text p {
  max-width: 560px;
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 25px;
  color: var(--text-body);
}
.chan__btn {
  max-width: 360px;
}
.seo__cols h3 {
  margin: 18px 0 6px;
  font-size: 18px;
}
.seo__cols p {
  font-size: 16px;
  line-height: 25px;
  color: var(--text-body);
}
.cards {
  display: grid;
  gap: 16px;
}
.card {
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--panel);
}
.card .cover {
  aspect-ratio: 16 / 9;
}
.card__t {
  display: block;
  padding: 14px 16px 18px;
  font-size: 17px;
  line-height: 23px;
  font-weight: 700;
}
.card:hover .card__t {
  color: var(--signal-text);
}
.logo--foot .logo__word {
  font-size: 18px;
}

@media (min-width: 900px) {
  .hero__shot {
    margin: 0;
  }
  .sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 48px;
    margin-bottom: 32px;
  }
  .sec-head .h2 {
    flex: 1 1 520px;
    margin: 0;
  }
  .sec-head p {
    flex: 0 1 420px;
  }
  .shots {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .shots__bot {
    margin: 32px auto 0;
  }
  .sw__steps {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .cmp {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .cmp__col {
    display: grid;
    grid-row: span 6;
    grid-template-rows: subgrid;
    padding: 24px;
  }
  .cmp dl {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
  }
  .chan {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: center;
    gap: 64px;
  }
  .seo__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 48px;
  }
  .seo__cols p {
    font-size: 17px;
    line-height: 27px;
  }
  .faq-home {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 48px;
  }
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- тексты страниц и статей ---------- */
.intro p {
  margin-bottom: 14px;
  font-size: 17px;
  line-height: 27px;
  color: var(--text-body);
}
.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.prose li {
  margin-bottom: 8px;
}
.prose li::marker {
  color: var(--signal-text);
}
.about p {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 25px;
  color: var(--text-body);
}
.about a,
.intro a,
.qa__a a {
  color: var(--signal-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.about .qa {
  max-width: 720px;
}
.landing {
  margin-top: 26px;
  padding: 18px;
  border: 2px solid var(--signal);
  border-radius: var(--r);
  background: var(--alert-bg);
}
.landing .note__label {
  margin-bottom: 4px;
  font: 600 14px var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal-text);
}
.landing a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  font: 700 20px/26px var(--font-display);
  text-transform: uppercase;
}
.landing a:hover {
  color: var(--signal-hover);
}
.landing a svg {
  flex: none;
  color: var(--signal);
}
.faq-sec {
  padding-top: 24px;
}
.faq-sec h2 {
  margin-bottom: 6px;
  font: 700 22px var(--font-display);
  text-transform: uppercase;
}
.related--bare {
  padding-top: 0;
}
.editorial .prose h2 {
  display: block;
}
.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 900px) {
  .intro p {
    font-size: 19px;
    line-height: 30px;
  }
  .landing a {
    font-size: 24px;
    line-height: 30px;
  }
  .how .fig svg {
    max-width: 100%;
  }
}
