/* webproxy.cc — токены и стили. Единственное место стилей: инлайн-style запрещён CSP.
   Мобильная раскладка — база, десктоп — от 900 px. */

:root {
  --tap: 44px;
  --container: 1200px;
  --dur-fast: 0.15s;
  --dur-base: 0.25s;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-display: "Rubik Mono One", sans-serif;
  --font-sans: "Manrope", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  /* шрифт экранов Telegram в макетах — системный, как в самом приложении */
  --font-tg: -apple-system, "SF Pro Text", Roboto, "Segoe UI", "Helvetica Neue", sans-serif;
  --violet: #5b2eff;
  --violet-dark: #4520d6;
  --violet-hover: #3f17d6;
  --ink: #1a0b66;
  --ink-2: #2a1b86;
  --white: #ffffff;
  --lavender: #f1eefb;
  --lavender-line: #d9d2f5;
  --muted: #4a3f7a;
  --violet-soft: #e4dcff;
  --line-w: rgba(255, 255, 255, 0.35);
  --good: #7ee2a8;
  --bad: #ff9b9b;
  --r-pill: 999px;
  --r-card: 24px;
  --r-block: 28px;
  --r-sheet: 40px;
  --pad: 20px;
  --shadow-dev: 0 40px 80px -30px rgba(10, 4, 50, 0.6), 0 12px 24px -12px rgba(10, 4, 50, 0.35);

  /* контекст цвета: по умолчанию — на фиолетовом */
  --link: var(--white);
  --link-hover: var(--violet-soft);
  --focus: var(--white);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
img,
svg {
  max-width: 100%;
}
img {
  display: block;
  height: auto;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--violet);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}
body:has(.page--light) {
  background: var(--white);
}
h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
fieldset {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
fieldset {
  padding: 0;
  border: 0;
  min-width: 0;
}
a {
  color: var(--link);
}
a:hover {
  color: var(--link-hover);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* контексты цвета */
.light {
  background: var(--white);
  color: var(--ink);
  --link: var(--violet);
  --link-hover: var(--violet-hover);
  --focus: var(--violet);
}
.violet {
  background: var(--violet);
  color: var(--white);
  --link: var(--white);
  --link-hover: var(--violet-soft);
  --focus: var(--white);
}
.ink {
  background: var(--ink);
  color: var(--white);
  --link: var(--white);
  --link-hover: var(--violet-soft);
  --focus: var(--white);
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
}
.page > main {
  flex: 1;
}
.page--feed > main {
  display: flex;
  flex-direction: column;
}
.page--feed .sheet {
  flex: 1;
}
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad);
}
.band {
  padding-block: 48px;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 60px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:active {
  transform: scale(0.97);
}
.btn--white {
  background: var(--white);
  color: var(--violet);
}
.btn--white:hover {
  background: var(--lavender);
  color: var(--violet-hover);
}
.btn--violet {
  background: var(--violet);
  color: var(--white);
}
.btn--violet:hover {
  background: var(--violet-hover);
  color: var(--white);
}
.btn--block {
  display: flex;
  width: 100%;
  padding-inline: 16px;
}
.btn--m {
  height: 58px;
  font-size: 17px;
}
.btn--sm {
  height: var(--tap);
  padding: 0 18px;
  font-size: 14px;
}
.arrow {
  flex: none;
}

/* ---------- шапка ---------- */
.hdr-in {
  display: flex;
  align-items: center;
  min-height: 68px;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo-mark {
  flex: none;
}
.logo-t span {
  font-weight: 600;
  opacity: 0.7;
}
.hdr-in .btn--sm {
  margin-inline-start: auto;
}

/* переключатель языков: <details> без скриптов */
.langs {
  position: relative;
  margin-inline-start: auto;
}
.langs + .btn--sm {
  margin-inline-start: 8px;
}
.langs summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  min-width: var(--tap);
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line-w);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.langs summary::-webkit-details-marker {
  display: none;
}
.langs summary span {
  display: none;
}
.langs ul {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 170px;
  padding: 6px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 18px 40px -16px rgba(10, 4, 50, 0.55);
  list-style: none;
}
.langs a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.langs a:hover,
.langs a:focus-visible {
  background: var(--lavender);
}
.flag {
  flex: none;
  width: 16px;
  height: 12px;
  margin-inline-end: 10px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(20, 20, 40, .14);
}
@media (min-width: 480px) {
  .langs summary span {
    display: inline;
  }
}

/* кнопка в бота, если бот не говорит на языке страницы */
.bot-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bot-lang {
  font-size: 13px;
  line-height: 18px;
  opacity: 0.85;
}
.nav {
  display: none;
}
.nav a {
  padding: 10px 0;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* ---------- заголовки ---------- */
.h1,
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
}
.h1 {
  font-size: clamp(28px, 8.7vw, 34px);
  line-height: 40px;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
.h2 {
  font-size: 23px;
  line-height: 30px;
}
.lead {
  font-size: 18px;
  line-height: 27px;
  font-weight: 500;
}
.sec-lead {
  max-width: 640px;
  margin-top: 12px;
  font-size: 17px;
  line-height: 25px;
  font-weight: 500;
}

/* ---------- главная: первый экран ---------- */
.hero {
  display: grid;
  gap: 36px;
  padding-block: 16px 48px;
}
.hero-text {
  display: grid;
  gap: 20px;
  align-content: start;
}
.hero-plat-h {
  font-size: 15px;
  font-weight: 800;
}
.hero-plat {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: -10px;
  font-size: 16px;
  font-weight: 600;
}
.hero-plat li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-plat li::before {
  content: "";
  width: 11px;
  height: 6px;
  margin-top: -3px;
  border-left: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg);
}
.cta {
  display: grid;
  gap: 12px;
}
.cta-note {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
}
.btn--hero {
  height: 64px;
  padding: 0 20px;
  gap: 8px;
  font-size: 17px;
}
.stage {
  display: flex;
  justify-content: center;
}
.stage-win {
  display: none;
}

/* ---------- раскладка «текст + интерактив» ---------- */
.split {
  display: grid;
  gap: 28px;
}
.split-text p {
  margin-top: 14px;
  font-size: 17px;
  line-height: 26px;
}
.ink .split-text p {
  opacity: 0.9;
}

/* ---------- переключатель-сегменты (radio) ---------- */
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
}
.seg label {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 18px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.seg input:checked + label {
  background: var(--white);
  color: var(--ink);
}
.seg input:focus-visible + label {
  outline: 3px solid var(--white);
  outline-offset: 2px;
}

/* ---------- что видит фильтр ---------- */
.flt {
  padding: 18px;
  border-radius: var(--r-block);
  background: var(--ink);
  color: var(--white);
  --focus: var(--white);
}
.flt-scheme {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 22px;
}
.flt-lane {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 50%;
  height: 12px;
  margin-top: -6px;
  overflow: hidden;
}
.flt-lane::before {
  content: "";
  position: absolute;
  inset: 4px 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
}
.pk {
  position: absolute;
  inset: 0;
  transform: translateX(-50%);
}
.pk::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: var(--r-pill);
  background: #a48dff;
}
.flt-node {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  padding: 12px 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: var(--ink-2);
  text-align: center;
}
.flt-node b {
  font-size: 14px;
  line-height: 18px;
}
.flt-node small {
  font-size: 11px;
  line-height: 14px;
  opacity: 0.7;
}
.flt-verdict {
  position: absolute;
  top: -11px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: var(--r-pill);
  background: var(--bad);
}
.flt-verdict::before,
.flt-verdict::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 12px;
  width: 12px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transform: rotate(45deg);
}
.flt-verdict::after {
  transform: rotate(-45deg);
}
.flt .flt-end-web,
.flt .flt-web {
  display: none;
}
.flt-log {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.flt-cap {
  font-size: 13px;
  font-weight: 800;
  opacity: 0.7;
}
.flt dl {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.flt dl div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  font-size: 14px;
  line-height: 20px;
}
.flt dt {
  opacity: 0.7;
}
.flt dd {
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}
.flt-bad dd {
  color: var(--bad);
}
.flt-good dd {
  color: var(--good);
}
.flt-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 19px;
  opacity: 0.75;
}
/* состояние WEB-прокси */
.flt:has(#flt-web:checked) .flt-mt,
.flt:has(#flt-web:checked) .flt-end-mt {
  display: none;
}
.flt:has(#flt-web:checked) .flt-web {
  display: grid;
}
.flt:has(#flt-web:checked) .flt-end-web {
  display: inline;
}
.flt:has(#flt-web:checked) .pk {
  transform: translateX(0);
}
.flt:has(#flt-web:checked) .pk::after {
  background: var(--good);
}
.flt:has(#flt-web:checked) .flt-verdict {
  background: var(--good);
}
.flt:has(#flt-web:checked) .flt-verdict::before {
  left: 7px;
  top: 14px;
  width: 7px;
}
.flt:has(#flt-web:checked) .flt-verdict::after {
  left: 10px;
  top: 12px;
  width: 11px;
}

/* ---------- выбор платформы ---------- */
.pf {
  margin-top: 28px;
}
.pf-panel {
  display: none;
  gap: 24px;
  margin-top: 24px;
}
.pf:has(#pf-ios:checked) .pf-panel--ios,
.pf:has(#pf-and:checked) .pf-panel--and,
.pf:has(#pf-pc:checked) .pf-panel--pc {
  display: grid;
}
.pf-steps {
  display: grid;
  gap: 16px;
  align-content: start;
}
.pf-steps li {
  display: flex;
  gap: 14px;
  font-size: 17px;
  line-height: 25px;
  font-weight: 600;
}
.pf-dev {
  display: flex;
  justify-content: center;
}
.connect .steps-n {
  background: var(--white);
  color: var(--violet);
}
.connect-cta {
  margin-top: 32px;
}

/* ---------- разбор ссылки ---------- */
.lk {
  padding: 18px;
  border-radius: var(--r-block);
  background: var(--ink-2);
  color: var(--white);
  --focus: var(--white);
}
.lk-url {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 22px;
}
.lk-url label {
  padding: 6px 6px;
  border-radius: 8px;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.45);
  overflow-wrap: anywhere;
  cursor: pointer;
}
.lk-url label:hover {
  background: rgba(255, 255, 255, 0.1);
}
.lk-url input:checked + label {
  background: var(--white);
  border-bottom-color: var(--white);
  color: var(--ink);
}
.lk-url input:focus-visible + label {
  outline: 3px solid var(--white);
  outline-offset: 2px;
}
.lk-about {
  display: none;
  margin-top: 18px;
}
.lk:has(#lk-server:checked) .lk-about--server,
.lk:has(#lk-secret:checked) .lk-about--secret {
  display: block;
}
.lk-about b {
  font-size: 18px;
  font-weight: 800;
}
.lk-about p {
  margin-top: 6px;
  font-size: 16px;
  line-height: 24px;
  opacity: 0.9;
}

/* ---------- где работает ---------- */
.where {
  display: grid;
  gap: 28px;
}
.where-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-card);
}
.where .h2 {
  margin-bottom: 8px;
}
.where-note {
  margin-block: 10px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--muted);
}
.rows li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border-top: 1px solid var(--lavender-line);
  font-size: 17px;
  font-weight: 700;
}
.rows li:first-child {
  border-top: 2px solid var(--ink);
}
.rows li:last-child {
  border-bottom: 1px solid var(--lavender-line);
}
.st {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.st--ok {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--violet);
  color: var(--white);
  font-weight: 800;
}
.more {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.more:hover {
  text-decoration: underline;
}

/* ---------- инструкции с обложками ---------- */
.gcards {
  display: grid;
  gap: 28px;
  margin-top: 24px;
}
.gcards a {
  display: grid;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
}
.gcard-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 8px;
  border-radius: 20px;
}
.gcards b {
  font-size: 19px;
  line-height: 25px;
  font-weight: 800;
}
.gcards a:hover b {
  color: var(--violet);
  text-decoration: underline;
}
.gcards span {
  font-size: 15px;
  line-height: 22px;
  color: var(--muted);
}
.fresh-box {
  max-width: 720px;
  margin-top: 48px;
}
.more-box {
  margin-top: 48px;
}
.more-box h3,
.fresh-box h3 {
  font-size: 20px;
  font-weight: 800;
}

/* ---------- вопросы ---------- */
.faq {
  display: grid;
  gap: 12px;
  padding-block: 48px 24px;
}
.faq .h2 {
  font-size: 20px;
  line-height: 26px;
}
.faq details {
  border-bottom: 2px solid var(--line-w);
}
.faq details:last-child {
  border-bottom: 0;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 26px;
  font-weight: 400;
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq details p {
  max-width: 640px;
  padding-bottom: 20px;
  font-size: 16px;
  line-height: 24px;
}

/* ---------- подвал ---------- */
.ftr-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0 16px;
  padding-block: 12px 20px;
  font-size: 13px;
  font-weight: 600;
}
.ftr-guides,
.ftr-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}
.ftr-guides {
  flex-basis: 100%;
}
.ftr-guides:empty {
  display: none;
}
.ftr a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}
.ftr--light {
  background: var(--white);
  color: var(--muted);
  --link: var(--violet);
  --link-hover: var(--violet-hover);
  --focus: var(--violet);
}

/* ---------- внутренние страницы ---------- */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: var(--tap);
  font-size: 13px;
  font-weight: 600;
}
.crumbs li + li::before {
  content: "/";
  margin: 0 8px;
}
.hero-in {
  padding-bottom: 32px;
}
.hero-in .h1 {
  margin-block: 4px 14px;
  font-size: clamp(24px, 7.4vw, 28px);
  line-height: 34px;
}
.hero-in .lead {
  font-size: 17px;
  line-height: 25px;
}
.hero-date {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.85;
}
.hero-in-grid {
  display: grid;
  gap: 24px;
}
.cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-card);
}

.clients {
  display: grid;
  gap: 10px;
  padding-block: 28px 0;
}
.client {
  padding: 18px;
  border-radius: var(--r-card);
  background: var(--lavender);
}
.client--ok {
  background: var(--violet);
  color: var(--white);
  --link: var(--white);
  --link-hover: var(--violet-soft);
}
.client-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.client h2 {
  font-size: 20px;
  line-height: 26px;
  font-weight: 800;
}
.client p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}
.client--ok p {
  color: var(--white);
}
.client--ok .st--ok {
  background: var(--white);
  color: var(--violet);
}

.howto {
  padding-block: 32px 0;
}
.howto .h2 {
  margin-bottom: 14px;
  font-size: 18px;
  line-height: 24px;
}
.howto ol {
  display: grid;
  gap: 12px;
  font-size: 16px;
  line-height: 23px;
  font-weight: 600;
}
.howto li {
  display: flex;
  gap: 12px;
}
.steps-n {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--violet);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
}

.callout {
  margin: 32px 12px 0;
  padding: 24px 20px;
  border-radius: var(--r-block);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.callout h2 {
  font-size: 22px;
  line-height: 28px;
  font-weight: 800;
}
.callout p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 22px;
}
.callout-wrap {
  padding-bottom: 8px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.filter {
  display: inline-flex;
  align-items: center;
  height: var(--tap);
  padding: 0 16px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.filter[aria-current="page"] {
  background: var(--white);
  border-color: var(--white);
  color: var(--violet);
  font-weight: 800;
}
.sheet {
  border-radius: 32px 32px 0 0;
  padding-block: 26px 30px;
}
.upd {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
}
.upd-date {
  flex: none;
  width: 58px;
  text-align: center;
}
.upd-day {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 34px;
  color: var(--ink);
}
.upd-month {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.upd-body {
  flex: 1;
  min-width: 0;
  padding-left: 16px;
  border-left: 3px solid var(--lavender-line);
}
.upd--fresh .upd-day {
  color: var(--violet);
}
.upd--fresh .upd-body {
  border-left-color: var(--violet);
}
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}
.tag--all {
  background: var(--ink);
  color: var(--white);
}
.tag--android {
  background: var(--violet);
  color: var(--white);
}
.tag--desktop {
  border: 2px solid var(--violet);
  color: var(--violet);
}
.tag--servers {
  background: var(--lavender);
  color: var(--muted);
}
.upd h2 {
  margin: 10px 0 6px;
  font-size: 20px;
  line-height: 26px;
  font-weight: 800;
}
.upd p {
  font-size: 15px;
  line-height: 22px;
  color: var(--muted);
}
.upd .upd-src {
  margin-top: 8px;
  font-size: 13px;
  line-height: 19px;
}
.sheet .btn {
  margin-top: 4px;
}

.nf {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-block: 40px 88px;
}

/* ---------- тексты посадочных ---------- */
.doc {
  padding-block: 28px 8px;
}
.prose {
  max-width: 760px;
}
.prose h2 {
  margin: 36px 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 26px;
  text-transform: uppercase;
}
.prose p {
  margin-top: 12px;
  font-size: 17px;
  line-height: 26px;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 15px;
  overflow-wrap: anywhere;
}
.prose--feed {
  margin-top: 40px;
}
.byline {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--muted);
}
.bul {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  font-size: 17px;
  line-height: 26px;
}
.bul li {
  position: relative;
  padding-left: 22px;
}
.bul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--violet);
}
.stp {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.stp li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.stp b {
  display: block;
  font-size: 18px;
  line-height: 26px;
}
.stp p {
  margin-top: 2px;
  color: var(--muted);
}
.fig {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 28px 0;
  padding: 28px 12px 20px;
  border-radius: var(--r-block);
  background: var(--lavender);
}
.fig figcaption {
  max-width: 420px;
  text-align: center;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}
.demo-in {
  margin-top: 20px;
}
.demo-in .flt p,
.demo-in .lk p {
  font-size: 15px;
  line-height: 22px;
}
.demo-in .flt .flt-note {
  font-size: 13px;
  line-height: 19px;
}
.faq.faq--in {
  display: block;
  padding: 0;
}
.faq--in summary {
  min-height: 60px;
}
.light .faq details {
  border-bottom-color: var(--lavender-line);
}
.light .faq summary {
  font-size: 17px;
}
.faq--in details p {
  max-width: none;
  font-size: 17px;
  line-height: 26px;
}
.tbl table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 22px;
}
.tbl thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.tbl tr {
  display: block;
  margin-top: 12px;
  border: 2px solid var(--lavender-line);
  border-radius: 16px;
  overflow: hidden;
}
.tbl th,
.tbl td {
  display: block;
  padding: 10px 14px;
  text-align: left;
}
.tbl tbody th {
  background: var(--lavender);
  font-weight: 800;
}
.tbl td::before {
  content: attr(data-label);
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--violet);
}
.rel {
  margin-top: 40px;
}
.rel .h2 {
  font-size: 20px;
  line-height: 26px;
}
.rel-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.rel-list a {
  display: grid;
  gap: 2px;
  min-height: var(--tap);
  padding: 14px 18px;
  border-radius: 20px;
  background: var(--lavender);
  color: var(--ink);
  text-decoration: none;
}
.rel-list a:hover {
  background: var(--lavender-line);
  color: var(--ink);
}
.rel-list b {
  font-size: 17px;
  font-weight: 800;
}
.rel-list span {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}
.fresh {
  display: grid;
  margin-top: 8px;
}
.fresh li {
  display: grid;
  gap: 2px;
  padding-block: 12px;
  border-top: 1px solid var(--lavender-line);
  font-size: 16px;
  font-weight: 700;
}
.fresh time {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

/* ================= экраны Telegram в рамке устройства ================= */
.dev {
  flex: none;
  font-family: var(--font-tg);
  color: #000;
  text-align: left;
  line-height: 1.3;
  letter-spacing: 0;
}
.dev svg {
  flex: none;
}
.dev--ios,
.dev--and {
  width: 290px;
  aspect-ratio: 290 / 600;
  box-shadow: var(--shadow-dev);
}
.dev--ios {
  padding: 11px;
  border-radius: 50px;
  background: #121216;
  box-shadow: var(--shadow-dev), inset 0 0 0 2px #3b3b42;
}
.dev--and {
  padding: 8px;
  border-radius: 34px;
  background: #1c1c20;
  box-shadow: var(--shadow-dev), inset 0 0 0 2px #36363d;
}
.dev-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 39px;
  background: #fff;
}
.dev--and .dev-screen {
  border-radius: 27px;
}
.tg-status {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 20px 0 30px;
  background: #f6f6f8;
  font-size: 14px;
}
.tg-status b {
  font-weight: 600;
}
.tg-island {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 84px;
  height: 25px;
  margin-left: -42px;
  border-radius: 14px;
  background: #000;
}
.tg-ind {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* iOS: чат */
.tg-nav {
  flex: none;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 6px;
  align-items: center;
  padding: 2px 10px 8px;
  background: #f6f6f8;
  border-bottom: 0.5px solid #cfcfd4;
}
.tg-back {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #007aff;
  font-size: 16px;
}
.tg-title {
  text-align: center;
}
.tg-title b {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 600;
}
.tg-title small {
  display: block;
  font-size: 12px;
  color: #8e8e93;
}
.tg-ava {
  justify-self: end;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}
.tg-wall {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 10px 8px;
  overflow: hidden;
  background: linear-gradient(165deg, #dfe6bd 0%, #a9cc9a 48%, #c6dba9 100%);
}
.tg-day {
  align-self: center;
  margin-bottom: auto;
  padding: 2px 9px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.tg-out {
  align-self: flex-end;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 6px 9px 6px 12px;
  border-radius: 17px 17px 5px 17px;
  background: #e1fec6;
  font-size: 15px;
}
.tg-time {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #8e8e93;
}
.tg-out .tg-time {
  color: #4fae4e;
}
.tg-in {
  align-self: flex-start;
  max-width: 90%;
  padding: 7px 11px 5px;
  border-radius: 17px 17px 17px 5px;
  background: #fff;
  font-size: 14px;
  line-height: 1.33;
}
.tg-in b {
  display: block;
  font-weight: 600;
}
.tg-in .tg-time {
  display: flex;
  justify-content: flex-end;
  margin-top: 1px;
}
.tg-kb {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 90%;
}
.tg-kb span {
  padding: 9px 4px;
  border-radius: 9px;
  background: rgba(30, 60, 20, 0.3);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.tg-kb .tg-kb-w {
  grid-column: 1 / -1;
}
.tg-input {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 20px;
  background: #f6f6f8;
  border-top: 0.5px solid #cfcfd4;
  color: #8e8e93;
}
.tg-input span {
  flex: 1;
  padding: 6px 12px;
  border: 1px solid #dcdce0;
  border-radius: 18px;
  background: #fff;
  color: #a5a5ab;
  font-size: 15px;
}

/* iOS: окно «Прокси-сервер» */
.tg-dim {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.tg-dim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.tg-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 14px 24px;
  border-radius: 14px 14px 0 0;
  background: #f2f2f7;
}
.tg-sheet-h {
  position: relative;
  text-align: center;
}
.tg-sheet-h b {
  font-size: 17px;
  font-weight: 600;
  line-height: 26px;
}
.tg-sheet-h svg {
  position: absolute;
  right: 0;
  top: 0;
}
.tg-rows {
  margin: 14px 0 10px;
  border-radius: 12px;
  background: #fff;
}
.tg-rows div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  font-size: 15px;
}
.tg-rows div + div {
  border-top: 0.5px solid #dcdce1;
}
.tg-rows dd {
  color: #8e8e93;
}
.tg-warn {
  display: block;
  padding: 0 6px;
  font-size: 12px;
  line-height: 16px;
  color: #8e8e93;
}
.tg-cta {
  display: block;
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: #007aff;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

/* Android: настройки прокси */
.tg-status--and {
  height: 30px;
  padding: 0 16px;
  background: #446f94;
  color: #fff;
  font-size: 13px;
}
.tg-status--and::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 13px;
  height: 13px;
  margin-left: -6px;
  border-radius: 50%;
  background: #000;
}
.ta-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 16px;
  background: #517da2;
  color: #fff;
  font-size: 19px;
}
.ta-bar b {
  font-weight: 500;
}
.ta-list {
  flex: 1;
  background: #fff;
}
.ta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  font-size: 15px;
  color: #222;
}
.ta-row--px b {
  display: block;
  font-weight: 400;
}
.ta-row small {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  color: #8a8a8a;
}
.ta-row .ta-ok,
.ta-check,
.ta-sec,
.ta-add {
  color: #3d8fd6;
}
.ta-sec {
  display: block;
  padding: 12px 18px 0;
  font-size: 14px;
  font-weight: 600;
}
.ta-add {
  justify-content: flex-start;
  gap: 26px;
}
.ta-gap {
  height: 10px;
  background: #f0f0f0;
  border-block: 1px solid #e4e4e4;
}
.ta-sw {
  position: relative;
  flex: none;
  width: 34px;
  height: 14px;
  border-radius: 7px;
  background: #c9ced3;
}
.ta-sw::after {
  content: "";
  position: absolute;
  left: -2px;
  top: -3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.ta-sw--on {
  background: #9cc8ee;
}
.ta-sw--on::after {
  background: #3d8fd6;
  transform: translateX(18px);
}

/* Telegram Desktop */
.dev--win {
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-dev);
}
.tw-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 12px;
  border-bottom: 1px solid #ececec;
  font-size: 12px;
  color: #666;
}
.tw-app {
  position: relative;
  display: grid;
  grid-template-columns: 38% 1fr;
  min-height: 340px;
  background: linear-gradient(165deg, #dfe6bd 0%, #a9cc9a 48%, #c6dba9 100%);
}
.tw-app::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.tw-side {
  background: #fff;
  border-right: 1px solid #e6e6e6;
}
.tw-side li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 7px;
  min-width: 0;
}
.tw-side li > span:last-child {
  min-width: 0;
}
.tw-side li:first-child {
  background: #419fd9;
  color: #fff;
}
.tw-ava {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e6a24c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
img.tw-ava {
  object-fit: cover;
}
.tw-side li:nth-child(3) .tw-ava {
  background: #5fb85c;
}
.tw-side li:nth-child(4) .tw-ava {
  background: #d9665e;
}
.tw-side b {
  display: block;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tw-side small {
  display: block;
  overflow: hidden;
  font-size: 12px;
  color: #8a8a8a;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tw-side li:first-child small {
  color: rgba(255, 255, 255, 0.85);
}
.tw-box {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: min(300px, 84%);
  padding: 16px 20px 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
}
.tw-h {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
}
.tw-radios li {
  position: relative;
  padding-left: 26px;
  font-size: 13px;
  line-height: 26px;
}
.tw-radios li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border: 2px solid #a8aeb5;
  border-radius: 50%;
}
.tw-radios .on::before {
  border-color: #40a7e3;
  background: #40a7e3;
  box-shadow: inset 0 0 0 3px #fff;
}
.tw-field {
  margin-top: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #dedede;
  font-size: 14px;
}
.tw-field small {
  display: block;
  font-size: 11px;
  color: #999;
}
.tw-field:first-of-type {
  border-bottom: 2px solid #40a7e3;
}
.tw-field:first-of-type small {
  color: #40a7e3;
}
.tw-note {
  display: block;
  margin: 10px 0 4px;
  font-size: 11.5px;
  line-height: 15px;
  color: #999;
}
.tw-act {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}
.tw-act span {
  padding: 8px 2px;
  font-size: 14px;
  font-weight: 600;
  color: #40a7e3;
}

/* ---------- планшет ---------- */
@media (min-width: 640px) {
  .clients {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .hero-in .h1 {
    font-size: 32px;
    line-height: 38px;
  }
  .gcards {
    grid-template-columns: repeat(2, 1fr);
  }
  .rel-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .flt,
  .lk {
    padding: 24px;
  }
  .flt-node b {
    font-size: 16px;
  }
  .flt-node small {
    font-size: 12px;
  }
  .tbl thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }
  .tbl table {
    display: table;
  }
  .tbl tr {
    display: table-row;
    margin: 0;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  .tbl th,
  .tbl td {
    display: table-cell;
    padding: 12px 14px;
    border-bottom: 1px solid var(--lavender-line);
    vertical-align: top;
  }
  .tbl thead th {
    background: var(--lavender);
    font-size: 13px;
    font-weight: 800;
  }
  .tbl td::before {
    display: none;
  }
}
@media (max-width: 639px) {
  .tbl table,
  .tbl tbody {
    display: block;
  }
}

/* ---------- десктоп ---------- */
@media (min-width: 900px) {
  :root {
    --pad: clamp(16px, 3vw, 40px);
  }
  .band {
    padding-block: 96px;
  }
  .hdr-in {
    min-height: 84px;
  }
  .logo {
    font-size: 22px;
  }
  .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
    margin-inline-start: auto;
  }
  .nav + .btn--sm {
    margin-inline-start: 28px;
  }
  .nav + .langs {
    margin-inline-start: 20px;
  }
  .btn--sm {
    padding: 0 20px;
  }
  .h1 {
    font-size: clamp(38px, 5vw, 70px);
    line-height: 1.06;
    letter-spacing: -0.03em;
  }
  .br-m {
    display: none;
  }
  .h2 {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
  }
  .lead {
    font-size: 21px;
    line-height: 31px;
  }
  .sec-lead {
    font-size: 19px;
    line-height: 28px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding-block: 40px 96px;
  }
  .hero-plat {
    font-size: 17px;
  }
  .cta {
    grid-template-columns: auto;
    justify-items: start;
  }
  .btn--hero {
    height: 72px;
    padding: 0 36px;
    font-size: 20px;
  }
  .cta-note {
    font-size: 15px;
  }
  .stage {
    position: relative;
    display: block;
    min-height: 640px;
  }
  /* окно Desktop справа сверху, телефон слева закрывает только список чатов */
  .stage-win {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    width: 88%;
  }
  .stage-win .tw-box {
    left: auto;
    right: 5%;
    width: 260px;
    transform: translateY(-50%);
  }
  .stage-phone {
    position: absolute;
    left: 0;
    top: 100px;
    z-index: 1;
    transform: scale(0.9);
    transform-origin: 0 0;
  }

  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 56px;
    align-items: center;
  }
  .split-text p {
    font-size: 19px;
    line-height: 29px;
  }
  .flt,
  .lk {
    padding: 32px;
  }
  .flt-scheme {
    gap: 40px;
  }
  .flt-node {
    padding: 18px 10px;
  }

  .pf-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    margin-top: 40px;
  }
  .pf-panel {
    grid-template-rows: auto 1fr;
  }
  .pf-panel > .more {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }
  .pf-dev {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .pf-steps {
    gap: 22px;
  }
  .pf-steps li {
    font-size: 20px;
    line-height: 29px;
  }
  .pf-steps .steps-n {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .where {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
  }
  .rows li {
    min-height: 60px;
    font-size: 19px;
  }
  .rows li:first-child {
    border-top-width: 3px;
  }
  .st {
    font-size: 14px;
  }
  .more {
    font-size: 16px;
  }

  .gcards {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 28px;
    margin-top: 36px;
  }
  .fresh-box {
    margin-top: 72px;
  }

  .faq {
    grid-template-columns: 1fr 2fr;
    gap: 24px 48px;
    padding-block: 96px 64px;
    align-items: start;
  }
  .faq .h2 {
    font-size: 28px;
    line-height: 34px;
  }
  .faq summary {
    min-height: 72px;
    font-size: 21px;
  }
  .faq summary::after {
    font-size: 30px;
  }
  .faq details p {
    font-size: 18px;
    line-height: 27px;
  }

  .ftr-in {
    padding-block: 28px 40px;
    font-size: 15px;
  }
  .ftr:not(.ftr--light) .ftr-in {
    border-top: 2px solid var(--line-w);
  }
  .ftr--light .ftr-in {
    border-top: 2px solid var(--lavender);
  }

  /* внутренние */
  .crumbs ol {
    font-size: 14px;
  }
  .hero-in {
    padding-bottom: 56px;
  }
  .hero-in .h1 {
    margin-block: 8px 20px;
    font-size: clamp(36px, 4.4vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  .hero-in .lead {
    max-width: 720px;
    font-size: 20px;
    line-height: 30px;
  }
  .hero-date {
    margin-top: 24px;
    font-size: 15px;
  }
  .hero-in--cover .hero-in-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
  }
  .hero-in--cover .h1 {
    font-size: clamp(34px, 3.8vw, 50px);
  }

  .clients {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-block: 56px 0;
  }
  .client {
    padding: 24px;
    border-radius: var(--r-block);
  }
  .client p {
    font-size: 15px;
    line-height: 22px;
  }
  .howto {
    padding-block: 56px 0;
  }
  .howto .h2 {
    margin-bottom: 20px;
    font-size: 28px;
    line-height: 34px;
  }
  .howto ol {
    max-width: 720px;
    gap: 16px;
    font-size: 18px;
    line-height: 27px;
  }
  .callout {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    margin: 56px auto 0;
    max-width: calc(var(--container) - 2 * var(--pad));
    padding: 40px;
    border-radius: var(--r-sheet);
  }
  .callout > div {
    flex: 1 1 420px;
  }
  .callout h2 {
    font-size: 28px;
    line-height: 34px;
  }
  .callout p {
    margin-top: 8px;
    font-size: 18px;
    line-height: 27px;
  }
  .callout .btn {
    display: inline-flex;
    width: auto;
    padding: 0 32px;
  }
  .callout-wrap {
    padding-bottom: 56px;
  }

  .filter {
    font-size: 15px;
  }
  .hero-in .filters {
    margin-top: 28px;
  }
  .sheet {
    border-radius: var(--r-sheet) var(--r-sheet) 0 0;
    padding-block: 56px 72px;
  }
  .upd {
    max-width: 720px;
    gap: 24px;
    padding-bottom: 36px;
  }
  .upd-date {
    width: 80px;
  }
  .upd-day {
    font-size: 40px;
    line-height: 44px;
  }
  .upd-body {
    padding-left: 24px;
  }
  .upd h2 {
    font-size: 24px;
    line-height: 30px;
  }
  .upd p {
    font-size: 17px;
    line-height: 26px;
  }
  .sheet .btn {
    display: inline-flex;
    width: auto;
    margin-top: 8px;
    padding: 0 32px;
  }

  .doc {
    padding-block: 48px 8px;
  }
  .prose h2 {
    margin-top: 48px;
    font-size: 28px;
    line-height: 34px;
  }
  .prose p,
  .bul {
    font-size: 18px;
    line-height: 28px;
  }
  .stp b {
    font-size: 19px;
  }
  .rel-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- движение: только transform/opacity и только без prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: transform var(--dur-fast) var(--ease-out);
  }
  .pk {
    animation: pkMt 2.4s var(--ease-out) infinite both;
  }
  .pk:nth-child(2) {
    animation-delay: 0.8s;
  }
  .pk:nth-child(3) {
    animation-delay: 1.6s;
  }
  .flt:has(#flt-web:checked) .pk {
    animation-name: pkWeb;
  }
  @keyframes pkMt {
    0% {
      transform: translateX(-100%);
      opacity: 1;
    }
    45% {
      transform: translateX(-50%);
      opacity: 1;
    }
    60%,
    100% {
      transform: translateX(-50%);
      opacity: 0;
    }
  }
  @keyframes pkWeb {
    0% {
      transform: translateX(-100%);
      opacity: 1;
    }
    85% {
      transform: translateX(0);
      opacity: 1;
    }
    100% {
      transform: translateX(0);
      opacity: 0;
    }
  }
  .pf-panel,
  .lk-about,
  .flt dl {
    animation: fadeUp var(--dur-base) var(--ease-out);
  }
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ---------- языки: арабский шрифт и зеркалирование для RTL ---------- */
:root:lang(ar),
:root:lang(fa) {
  --font-sans: "Manrope", "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
  /* без этого арабские буквы в моноширинных подписях схемы берутся из моноширинного шрифта вразрядку */
  --font-mono: "JetBrains Mono", "Noto Sans Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;
}
:lang(ar) .h1,
:lang(ar) .h2,
:lang(fa) .h1,
:lang(fa) .h2 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: 0;
}
[dir="rtl"] .arrow,
[dir="rtl"] .tg-back svg,
[dir="rtl"] .ta-bar svg {
  transform: scaleX(-1);
}
.connect-note {
  margin-top: 10px;
}
