/* Prototype 18c87117778086b525bedc14be138bd78e739a4f. Generated by tools/prototype_update_20261205/prepare.py. */
/* Inter Tight (переменный, 400–700) — свой хостинг вместо Google Fonts: быстрее и не зависит от чужого сервера */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/home-redesign/fonts/inter-tight-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/home-redesign/fonts/inter-tight-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/home-redesign/fonts/inter-tight-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   Frigate Proxy — прототип главной. Mobile first.
   ========================================================================== */

:root {
  /* Шрифт */
  --font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Цвета (контраст текста — не ниже AA) */
  --c-bg: #ffffff;
  /* Серый — нейтральный, без голубизны. Плитки и кнопки на белом — мягкие, но не белые (#f8f9fa, решение владельца 2026-12-04);
     фон серых секций — едва темнее белого, как у Proxy-Seller (#fcfcfc / #f5f6f7) */
  --c-bg-soft: #f8f9fa;
  --c-section-soft: #fafafa;
  --c-surface: #ffffff;
  --c-text: #0e1726;
  --c-muted: #4f5a6b;
  --c-border: #dfe1e4;
  --c-border-strong: #bfc3c9;
  --c-primary: #329d41;
  --c-primary-hover: #277d33;
  --c-primary-soft: #eaf7ee;
  --c-primary-ink: #329d41;
  --c-good: #329d41;
  --c-good-soft: #e3f5ec;
  --c-warn: #7a4b00;
  --c-warn-soft: #fff3d6;
  --c-warn-border: #e9b949;
  --c-danger: #b42318;
  --c-star: #e8a200;
  --c-dark: #0e1726;
  --c-dark-2: #0a1220;
  --c-on-dark: #ffffff;
  --c-on-dark-muted: #c3cbd8;
  --c-focus: #329d41;

  /* Размеры */
  --container: 1200px;
  --gutter: 16px;
  --header-h: 64px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgb(14 23 38 / 0.06);
  --shadow: 0 4px 16px rgb(14 23 38 / 0.08);
  --shadow-lg: 0 12px 40px rgb(14 23 38 / 0.18);

  /* Отступы секций */
  --section-y: 48px;

  /* Типографика */
  --fs-h1: clamp(30px, 5.2vw, 52px);
  --fs-h2: clamp(24px, 3.4vw, 36px);
  --fs-h3: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-xs: 13px;
}

/* Mobile (< 768px): поля 16px, все интерактивные элементы не ниже 48px */
:root {
  --touch: 48px;
  --touch-sm: 48px;
  --touch-xs: 48px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
    --section-y: 72px;
    --touch: 44px;
    --touch-sm: 40px;
    --touch-xs: 32px;
  }
}

/* ---------- База ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.01em;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

legend {
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--c-dark);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(860px + var(--gutter) * 2);
}

.muted {
  color: var(--c-muted);
}

.link {
  color: var(--c-link, var(--c-primary));
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 500;
}

.link:hover {
  color: var(--c-link, var(--c-primary-hover));
}

.linklike {
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-link, var(--c-primary));
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--c-primary-ink);
  font-size: var(--fs-small);
  font-weight: 600;
}

.eyebrow--light {
  color: #b6eea0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.badge--primary {
  background: var(--c-primary);
  color: #fff;
}

.badge--good {
  background: var(--c-good-soft);
  color: var(--c-good);
}

.badge--partner {
  background: var(--c-warn-soft);
  color: var(--c-warn);
}

.badge--neutral {
  background: var(--c-bg-soft);
  color: var(--c-muted);
}

/* ---------- Иконки ---------- */
[data-icon] {
  display: inline-flex;
  flex: none;
}

[data-icon] svg {
  width: 1.25em;
  height: 1.25em;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch);
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  background: transparent;
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}

.btn--primary {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--c-primary-hover);
  border-color: var(--c-primary-hover);
}

.btn--outline {
  background: var(--c-surface);
  border-color: var(--c-border-strong);
  color: var(--c-text);
}

.btn--outline:hover {
  border-color: var(--c-primary);
  color: var(--c-link, var(--c-primary));
}

.btn--outline-light {
  border-color: rgb(255 255 255 / 0.5);
  color: #fff;
}

.btn--outline-light:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 0.08);
}

.btn--ghost {
  color: var(--c-text);
}

.btn--ghost:hover {
  background: var(--c-bg-soft);
}

.btn--sm {
  min-height: var(--touch-sm);
  padding: 0 14px;
  font-size: 15px;
}

.btn--lg {
  min-height: 52px;
  padding: 0 24px;
  font-size: 17px;
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: var(--touch);
  height: var(--touch);
  border: 1.5px solid var(--c-border-strong);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-text);
}

.icon-btn:hover:not(:disabled) {
  border-color: var(--c-primary);
  color: var(--c-link, var(--c-primary));
}

.icon-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.icon-btn--plain {
  border-color: transparent;
}

/* ---------- Подсказки «i» и вопросы к владельцу ---------- */
.tip,
.ask {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: var(--c-muted);
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  vertical-align: 0.1em;
  position: relative;
}

/* Увеличенная зона нажатия без изменения визуального размера */
.tip::before,
.ask::before {
  content: '';
  position: absolute;
  inset: -10px;
}

.tip:hover {
  color: var(--c-link, var(--c-primary));
}

.ask {
  border-style: dashed;
  border-color: var(--c-warn-border);
  background: var(--c-warn-soft);
  color: var(--c-warn);
}

.tooltip {
  position: fixed;
  z-index: 300;
  max-width: min(300px, calc(100vw - 16px));
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--c-dark);
  color: #fff;
  font-size: var(--fs-small);
  line-height: 1.4;
  box-shadow: var(--shadow);
  pointer-events: none;
}

.tooltip--ask {
  background: var(--c-warn-soft);
  color: var(--c-warn);
  border: 1px dashed var(--c-warn-border);
}

/* ---------- 1. Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);

}

.header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  margin-right: auto;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 38px;
  color: var(--c-text);
}

.logo--light .logo__mark {
  color: #fff;
}

.logo__mark svg {
  width: 36px;
  height: 38px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.logo__name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo__tagline {
  color: var(--c-muted);
  font-size: 12px;
  white-space: nowrap;
}

.logo--light .logo__tagline {
  color: var(--c-on-dark-muted);
}

.nav {
  display: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--c-text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav__link:hover {
  background: var(--c-bg-soft);
}

.nav__more {
  position: relative;
}

.nav__more-btn[aria-expanded='true'] [data-icon] {
  transform: rotate(180deg);
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 160px;
  padding: 6px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: var(--shadow);
}

.nav__dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.nav__dropdown a:hover {
  background: var(--c-bg-soft);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
}

.lang__btn {
  min-width: 40px;
  min-height: var(--touch-xs);
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 600;
}

.lang__btn[aria-pressed='true'] {
  background: var(--c-dark);
  color: #fff;
}

.header__lang,
.header__login {
  display: none;
}

.cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--touch);
  height: var(--touch);
  border: 0;
  border-radius: 999px;
  background: none;
}

.cart-btn:hover {
  background: var(--c-bg-soft);
}

.cart-btn [data-icon] svg {
  width: 24px;
  height: 24px;
}

.cart-btn__count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--c-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.cart-btn__count.is-bump {
  animation: bump 0.4s ease;
}

@keyframes bump {
  50% {
    transform: scale(1.35);
  }
}

.header__cta {
  padding-inline: 14px;
}

.hide-sm {
  display: none;
}

@media (min-width: 420px) {
  .hide-sm {
    display: inline;
  }
}

.burger {
  display: grid;
  place-items: center;
  width: var(--touch);
  height: var(--touch);
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s;
}

.burger span {
  position: relative;
}

.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

.burger[aria-expanded='true'] span {
  background: transparent;
}

.burger[aria-expanded='true'] span::before {
  transform: translateY(6px) rotate(45deg);
}

.burger[aria-expanded='true'] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Мобильное меню */
.nav.is-open {
  display: block;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 12px var(--gutter) 20px;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow);
}

.nav.is-open .nav__list {
  display: grid;
  gap: 2px;
}

.nav.is-open .nav__link {
  width: 100%;
  padding: 12px;
  font-size: 17px;
}

.nav.is-open .nav__dropdown {
  position: static;
  border: 0;
  box-shadow: none;
  padding: 0 0 0 12px;
}

.nav__mobile-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}

@media (min-width: 1120px) {
  .nav {
    display: block;
  }

  .nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .nav__mobile-extra,
  .burger {
    display: none;
  }

  .header__lang {
    display: inline-flex;
  }

  .header__login {
    display: inline-flex;
  }

  .header__inner {
    gap: 20px;
  }

  .logo {
    margin-right: 8px;
  }

  .header__actions {
    margin-left: auto;
  }
}

/* ---------- 2. Первый экран ---------- */
.hero {
  padding: 32px 0 40px;
  background:
    radial-gradient(900px 400px at 85% -10%, #dcf2d2 0%, transparent 70%),
    linear-gradient(180deg, #f8fbf6 0%, #ffffff 100%);
}

.hero__inner {
  display: grid;
  gap: 32px;
}

.hero__sub {
  margin-top: 16px;
  max-width: 600px;
  color: var(--c-muted);
  font-size: 18px;
}

.hero__actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.hero__tg {
  margin-top: 16px;
  color: var(--c-muted);
}

.hero__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: center;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
}

.price-card__title {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.price-card__price {
  color: var(--c-muted);
}

.price-card__price b {
  color: var(--c-text);
  font-size: 28px;
  letter-spacing: -0.02em;
}

.price-card__desc {
  flex: 1;
  margin-bottom: 8px;
  color: var(--c-muted);
  font-size: var(--fs-small);
}

@media (min-width: 560px) {
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
  }

  .price-card {
    padding: 20px;
  }

  .price-card__title {
    font-size: 18px;
  }

  .price-card__price b {
    font-size: 34px;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 64px 0 72px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
  }

  .hero__sub {
    font-size: 19px;
  }
}

/* ---------- 3. Полоса доверия ---------- */
.trust {
  border-block: 1px solid var(--c-border);
  background: var(--c-surface);
}

.trust__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  padding-block: 18px;
  color: var(--c-muted);
  font-size: 15px;
}

.trust__list b {
  color: var(--c-text);
  font-weight: 700;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  border-bottom: 1px dashed var(--c-border-strong);
}

.trust__rating:hover {
  color: var(--c-link, var(--c-primary));
  border-color: var(--c-primary);
}

.star {
  color: var(--c-star);
}

.trust__pay {
  grid-column: 1 / -1;
}

@media (min-width: 960px) {
  .trust__list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-block: 20px;
  }

  .trust__pay {
    grid-column: auto;
  }
}

/* Иконки оплаты */
.pay-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pay-icon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pay-icon svg {
  width: 16px;
  height: 16px;
}

.pay-icon--more {
  color: var(--c-muted);
  border-style: dashed;
}

.pay-icons--dark .pay-icon {
  border-color: rgb(255 255 255 / 0.2);
  background: transparent;
  color: var(--c-on-dark);
}

.pay-icons--dark .pay-icon--more {
  color: var(--c-on-dark-muted);
}

/* ---------- Общие секции ---------- */
.section {
  padding-block: var(--section-y);
}

.section--soft {
  background: var(--c-section-soft);
}

.section__head {
  margin-bottom: 28px;
}

.section__lead {
  margin-top: 10px;
  color: var(--c-muted);
  font-size: 17px;
}

.section__cta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.section__cta--left {
  justify-content: flex-start;
}

.card {
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
}

/* ---------- 4. Подбор по задаче ---------- */
.tasks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.task {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 108px;
  padding: 16px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}

.task:hover {
  border-color: var(--c-primary);
}

.task__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--c-bg-soft);
  color: var(--c-link, var(--c-primary));
}

.task[aria-pressed='true'] {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  color: var(--c-primary-ink);
}

.task[aria-pressed='true'] .task__icon {
  background: var(--c-primary);
  color: #fff;
}

/* Стрелка и галочка в углу карточки — только на ПК */
.task__mark,
.reco__empty {
  display: none;
}

@media (min-width: 640px) {
  .tasks {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .task {
    flex-direction: row;
    align-items: center;
    min-height: 76px;
    font-size: 16px;
  }
}

.reco {
  margin-top: 16px;
}

.reco__placeholder {
  padding: 18px 20px;
  border: 1.5px dashed var(--c-border-strong);
  border-radius: var(--radius);
  color: var(--c-muted);
  text-align: center;
}

.reco__card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1.5px solid var(--c-primary);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow);
  animation: reco-in 0.25s ease;
}

@keyframes reco-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.reco__eyebrow {
  color: var(--c-primary-ink);
  font-size: var(--fs-small);
  font-weight: 600;
}

.reco__title {
  margin-top: 4px;
  font-size: 24px;
}

.reco__why {
  margin-top: 8px;
  color: var(--c-muted);
  max-width: 640px;
}

.reco__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.reco__facts li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--c-bg-soft);
  font-size: var(--fs-small);
}

.reco__alt {
  margin-top: 12px;
  font-size: 15px;
  color: var(--c-muted);
}

.reco__side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.reco__price {
  color: var(--c-muted);
}

.reco__price b {
  color: var(--c-text);
  font-size: 30px;
  letter-spacing: -0.02em;
}

@media (min-width: 760px) {
  .reco__card {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
    padding: 28px;
  }
}

.picker__help {
  margin-top: 20px;
  color: var(--c-muted);
}

/* ПК (от 1024 px): задачи 2×3 слева, рекомендация справа — страница не прыгает при выборе.
   Карточки с заливкой, без обводки. Наведение и выбор — зелёная заливка, текст и иконки белые.
   Mobile и планшет пока не меняем — они будут переделываться отдельно */
@media (min-width: 1024px) {
  .picker {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 24px;
  }

  .tasks {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 16px;
  }

  /* Высота с запасом под самую длинную рекомендацию — при смене задачи блок не меняет высоту */
  .task {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 16px 12px;
    min-height: 184px;
    padding: 24px;
    border: 0;
    border-radius: 20px;
    background: var(--c-bg-soft);
    color: var(--c-text);
    font-size: 18px;
    cursor: pointer;
    transition:
      background-color 0.2s ease,
      color 0.2s ease,
      transform 0.15s ease;
  }

  .task:active {
    transform: scale(0.98);
  }

  .task__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .task__icon svg {
    width: 24px;
    height: 24px;
  }

  .task__title {
    grid-column: 1 / -1;
    align-self: end;
  }

  /* Угол карточки: стрелка «перейти», у выбранной — галочка в белом круге */
  .task__mark {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    color: var(--c-muted);
    transition:
      background-color 0.2s ease,
      color 0.2s ease,
      transform 0.2s ease;
  }

  .task__mark svg {
    grid-area: 1 / 1;
    width: 18px;
    height: 18px;
  }

  .task__mark svg:last-child {
    display: none;
  }

  .task[aria-pressed='true'] {
    background: var(--c-primary);
    color: #fff;
  }

  .task[aria-pressed='true'] .task__icon {
    background: rgb(255 255 255 / 0.16);
    color: #fff;
  }

  .task[aria-pressed='true'] .task__mark {
    background: #fff;
    color: var(--c-link, var(--c-primary));
  }

  .task[aria-pressed='true'] .task__mark svg:first-child {
    display: none;
  }

  .task[aria-pressed='true'] .task__mark svg:last-child {
    display: block;
  }

  .reco {
    display: flex;
    margin-top: 0;
  }

  .reco__placeholder {
    display: none;
  }

  .reco__empty {
    display: grid;
    flex: 1;
    place-content: center;
    gap: 8px;
    padding: 40px;
    border-radius: 24px;
    background: var(--c-bg-soft);
    color: var(--c-muted);
    text-align: center;
  }

  .reco__empty p {
    max-width: 30ch;
    margin-inline: auto;
  }

  .reco__empty-title {
    color: var(--c-text);
    font-size: 22px;
    font-weight: 600;
  }

  /* Рекомендация: заливка без обводки, цена и кнопка прижаты к низу */
  .reco__card {
    flex: 1;
    grid-template-columns: minmax(0, 1fr);
    align-content: space-between;
    gap: 32px;
    padding: 40px;
    border: 0;
    border-radius: 24px;
    background: var(--c-bg-soft);
    box-shadow: none;
  }

  .reco__title {
    margin-top: 8px;
    font-size: 26px;
    line-height: 1.15;
  }

  .reco__why {
    margin-top: 12px;
    line-height: 1.55;
  }

  .reco__facts {
    margin-top: 20px;
  }

  .reco__facts li {
    padding: 6px 12px;
    background: #fff;
  }

  .reco__alt {
    margin-top: 16px;
  }

  .reco__side {
    justify-items: center;
  }

  .reco__price {
    justify-self: start;
  }

  .reco__price b {
    font-size: 32px;
  }

  .picker__help {
    margin-top: 32px;
  }
}

/* Наведение только мышью: зелёная заливка, текст и иконки белые */
@media (min-width: 1024px) and (hover: hover) {
  .task:hover {
    background: var(--c-primary);
    color: #fff;
  }

  .task:hover .task__icon {
    background: rgb(255 255 255 / 0.16);
    color: #fff;
  }

  .task:hover .task__mark {
    color: #fff;
    transform: translateX(3px);
  }

  .task[aria-pressed='true']:hover .task__mark {
    color: var(--c-link, var(--c-primary));
    transform: none;
  }
}

/* ---------- 5. Сравнение ---------- */
.compare-table-wrap {
  display: none;
}

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 15px;
}

.compare th,
.compare td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-border);
  text-align: left;
  vertical-align: top;
}

.compare tbody th {
  width: 22%;
  color: var(--c-muted);
  font-weight: 500;
}

.compare thead th {
  padding-top: 20px;
  vertical-align: bottom;
  font-size: 17px;
}

.compare thead th .badge {
  display: inline-flex;
  margin-bottom: 8px;
}

.compare tfoot td {
  border-bottom: 0;
  padding-block: 16px 20px;
}

.compare .is-popular {
  background: var(--c-primary-soft);
}

.compare .yes {
  color: var(--c-good);
  font-weight: 700;
}

.compare .no {
  color: var(--c-muted);
}

.compare__price {
  font-size: 18px;
  font-weight: 700;
}

.ccards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84%;
  gap: 12px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  overscroll-behavior-x: contain;
}

.ccard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  scroll-snap-align: start;
}

.ccard.is-popular {
  border: 1.5px solid var(--c-primary);
}

.ccard__head {
  min-height: 54px;
}

.ccard__head .badge {
  margin-bottom: 6px;
}

.ccard dl {
  display: grid;
  gap: 8px;
  flex: 1;
  font-size: 15px;
}

.ccard dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}

.ccard dt {
  color: var(--c-muted);
}

.ccard dd {
  text-align: right;
  font-weight: 500;
}

.compare__hint {
  margin-top: 4px;
  color: var(--c-muted);
  font-size: var(--fs-small);
}

.footnote {
  margin: 16px 0 12px;
  color: var(--c-muted);
  font-size: var(--fs-small);
}

@media (min-width: 640px) {
  .ccards {
    grid-auto-columns: 46%;
  }
}

@media (min-width: 960px) {
  .compare-table-wrap {
    display: block;
  }

  .ccards,
  .compare__hint {
    display: none;
  }
}

/* ---------- 6. Конфигуратор ---------- */
.config {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

@media (min-width: 960px) {
  .config {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
  }

  .summary {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }
}

.config__main {
  padding: 12px;
}

@media (min-width: 640px) {
  .config__main {
    padding: 20px;
  }
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: var(--radius);
  background: var(--c-bg-soft);
}

.tabs.is-flash {
  animation: flash 1s ease;
}

@keyframes flash {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(50 157 65 / 0);
  }

  30% {
    box-shadow: 0 0 0 4px rgb(50 157 65 / 0.35);
  }
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  font-weight: 600;
  line-height: 1.25;
}

.tab:hover {
  background: rgb(255 255 255 / 0.7);
}

.tab[aria-selected='true'] {
  border-color: var(--c-primary);
  background: var(--c-surface);
  color: var(--c-primary-ink);
  box-shadow: var(--shadow-sm);
}

.tab__full {
  display: none;
}

.tab__price {
  color: var(--c-muted);
  font-size: var(--fs-xs);
  font-weight: 500;
}

@media (min-width: 640px) {
  .tabs {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1120px) {
  .tab__full {
    display: inline;
  }

  .tab__short {
    display: none;
  }
}

.config__panel {
  padding: 8px 4px 4px;
}

.step {
  padding-top: 24px;
}

.step + .step {
  margin-top: 4px;
  border-top: 1px solid var(--c-border);
}

.step__legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 700;
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--c-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.step__sublabel {
  display: flex;
  align-items: center;
  margin: 16px 0 8px;
  color: var(--c-muted);
  font-size: var(--fs-small);
  font-weight: 600;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Радио-кнопка, оформленная как плитка. Сам input визуально скрыт, но доступен с клавиатуры. */
.choice {
  position: relative;
  display: inline-flex;
}

.choice input,
.seg input,
.city input,
.pay-option input,
.test-type input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.choice__body {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--touch);
  padding: 8px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  background: var(--c-surface);
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background-color 0.15s;
}

.choice:hover .choice__body {
  border-color: var(--c-primary);
}

.choice input:checked + .choice__body {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  color: var(--c-primary-ink);
}

.choice input:focus-visible + .choice__body,
.seg input:focus-visible + .seg__body,
.city input:focus-visible + .city__body,
.pay-option input:focus-visible + .pay-option__body,
.test-type input:focus-visible + .test-type__body {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

.choice__meta {
  color: var(--c-muted);
  font-size: var(--fs-small);
}

.choice input:checked + .choice__body .choice__meta {
  color: var(--c-primary-ink);
}

.choice.is-disabled .choice__body {
  background: var(--c-bg-soft);
  border-style: dashed;
  color: var(--c-muted);
  cursor: not-allowed;
}

.choice.is-disabled:hover .choice__body {
  border-color: var(--c-border);
}

.choice.is-disabled .flag {
  filter: grayscale(1);
  opacity: 0.5;
}

.flag {
  flex: none;
  width: 22px;
  height: 16px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgb(14 23 38 / 0.15);
}

.cities {
  display: grid;
  gap: 8px;
}

@media (min-width: 640px) {
  .cities {
    grid-template-columns: repeat(2, 1fr);
  }
}

.city {
  position: relative;
  display: block;
}

.city__body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  cursor: pointer;
}

.city:hover .city__body {
  border-color: var(--c-primary);
}

.city input:checked + .city__body {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
}

.city__name {
  font-weight: 500;
}

.city__signal {
  font-size: var(--fs-small);
  font-weight: 600;
}

.signal-bar {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 999px;
  background: var(--c-border);
  overflow: hidden;
}

.signal-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--c-good);
}

.signal-bar.is-mid span {
  background: var(--c-star);
}

.segs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (min-width: 640px) {
  .segs {
    grid-template-columns: repeat(4, 1fr);
  }
}

.seg {
  position: relative;
  display: block;
}

.seg__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  min-height: 88px;
  padding: 12px;
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}

.seg:hover .seg__body {
  border-color: var(--c-primary);
}

.seg input:checked + .seg__body {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
}

.seg__label {
  font-weight: 600;
}

.seg__price {
  font-size: 18px;
  font-weight: 700;
}

.seg__per {
  color: var(--c-muted);
  font-size: var(--fs-xs);
}

.seg .badge {
  position: absolute;
  top: -10px;
  right: 8px;
}

.seg.is-disabled .seg__body {
  background: var(--c-bg-soft);
  border-style: dashed;
  color: var(--c-muted);
  cursor: not-allowed;
}

.seg.is-disabled .seg__price {
  font-size: var(--fs-small);
  font-weight: 500;
}

.qty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--c-border-strong);
  border-radius: 10px;
  overflow: hidden;
}

.stepper button {
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--c-surface);
  font-size: 22px;
  line-height: 1;
}

.stepper button:hover:not(:disabled) {
  background: var(--c-bg-soft);
  color: var(--c-link, var(--c-primary));
}

.stepper button:disabled {
  color: var(--c-border-strong);
  cursor: not-allowed;
}

.stepper button:focus-visible {
  outline-offset: -3px;
}

.stepper input {
  width: 64px;
  border: 0;
  border-inline: 1.5px solid var(--c-border);
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  -moz-appearance: textfield;
  appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper input:focus-visible {
  outline-offset: -3px;
}

.qty__hint {
  color: var(--c-muted);
  font-size: var(--fs-small);
}

/* Сводка */
.summary {
  padding: 20px;
}

.summary__title {
  font-size: 20px;
  margin-bottom: 14px;
}

.summary__list {
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.summary__list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.summary__list dt {
  color: var(--c-muted);
  flex: none;
}

.summary__list dd {
  text-align: right;
  font-weight: 500;
}

.summary__unit {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
  font-size: 15px;
}

.summary__unit > span:first-child {
  color: var(--c-muted);
}

.summary__unit > span:last-child {
  text-align: right;
}

.coupon {
  margin-top: 16px;
}

.coupon__label {
  display: block;
  margin-bottom: 6px;
  color: var(--c-muted);
  font-size: var(--fs-small);
  font-weight: 600;
}

.coupon__row {
  display: flex;
  gap: 8px;
}

.coupon__row .input {
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
}

.coupon__row .input::placeholder {
  text-transform: none;
}

.coupon__msg {
  margin-top: 6px;
  font-size: var(--fs-small);
}

.coupon__msg:empty {
  display: none;
}

.coupon__msg.is-ok {
  color: var(--c-good);
}

.coupon__msg.is-warn {
  color: var(--c-warn);
}

.coupon__msg.is-error {
  color: var(--c-danger);
}

.summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  font-weight: 600;
}

.summary__total-val {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.summary__total-val b {
  font-size: 32px;
  letter-spacing: -0.02em;
}

.summary__total-val s:empty {
  display: none;
}

.summary__actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.summary__note {
  margin-top: 12px;
  color: var(--c-muted);
  font-size: var(--fs-xs);
  text-align: center;
}

.summary .pay-icons {
  justify-content: center;
  margin-top: 12px;
}

/* Поля ввода */
.input {
  width: 100%;
  min-height: var(--touch);
  padding: 0 14px;
  border: 1.5px solid var(--c-border-strong);
  border-radius: 10px;
  background: var(--c-surface);
}

.input:hover {
  border-color: var(--c-muted);
}

.input:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 1px;
  border-color: var(--c-primary);
}

.input[aria-invalid='true'] {
  border-color: var(--c-danger);
}

.field {
  margin-top: 18px;
}

.field__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.field__error {
  margin-top: 6px;
  color: var(--c-danger);
  font-size: var(--fs-small);
}

.field__error:empty {
  display: none;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--c-primary);
}

/* ---------- 7. Как это работает ---------- */
.steps {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.steps__item {
  position: relative;
  padding: 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
}

.steps__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--c-primary-soft);
  color: var(--c-primary-ink);
  font-weight: 700;
}

.steps__item p {
  margin-top: 6px;
  color: var(--c-muted);
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .steps__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 38px;
    right: -17px;
    width: 18px;
    height: 2px;
    background: var(--c-border-strong);
  }
}

/* ---------- 8. Преимущества ---------- */
.benefits {
  display: grid;
  gap: 20px;
}

.benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
}

.benefit__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--c-primary-soft);
  color: var(--c-link, var(--c-primary));
}

.benefit__icon svg {
  width: 24px;
  height: 24px;
}

.benefit h3 {
  align-self: end;
}

.benefit p {
  color: var(--c-muted);
}

@media (min-width: 640px) {
  .benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 32px;
  }
}

@media (min-width: 1024px) {
  .benefits {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- 9. Отзывы ---------- */
.platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

@media (min-width: 900px) {
  .platforms {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.platform {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  text-decoration: none;
}

.platform:hover {
  border-color: var(--c-primary);
}

.platform__logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.platform__name {
  display: block;
  font-weight: 600;
}

.platform__meta {
  display: block;
  color: var(--c-muted);
  font-size: var(--fs-small);
}

.platform__meta b {
  color: var(--c-text);
}

.carousel__track {
  display: flex;
  gap: 16px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track:focus-visible {
  outline-offset: -3px;
}

.review {
  flex: 0 0 86%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .review {
    flex-basis: calc((100% - 2 * var(--gutter) - 16px) / 2);
  }
}

@media (min-width: 1024px) {
  .review {
    flex-basis: calc((100% - 2 * var(--gutter) - 32px) / 3);
  }
}

.review__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.review__name {
  font-weight: 600;
}

.review__date {
  color: var(--c-muted);
  font-size: var(--fs-small);
}

.review__stars {
  color: var(--c-star);
  letter-spacing: 2px;
}

.review__text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review__text.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: none;
}

.review__more {
  align-self: flex-start;
  font-size: 15px;
}

.carousel__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.carousel__status {
  min-width: 90px;
  color: var(--c-muted);
  font-size: var(--fs-small);
  text-align: center;
}

.reviews__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.reviews__actions .badge {
  white-space: normal;
  font-size: 14px;
  padding: 6px 12px;
}

/* ---------- 10. Акции ---------- */
.promos {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .promos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1180px) {
  .promos {
    grid-template-columns: repeat(4, 1fr);
  }
}

.promo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
}

.promo--partner {
  background: var(--c-bg-soft);
}

.promo__title {
  font-size: 19px;
}

.promo__cond {
  flex: 1;
  color: var(--c-muted);
  font-size: 15px;
}

.promo__code {
  display: flex;
  align-items: stretch;
  border: 1.5px dashed var(--c-border-strong);
  border-radius: 10px;
  overflow: hidden;
}

.promo__code code {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 12px;
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.promo__copy {
  flex: none;
  min-width: 132px;
  min-height: var(--touch);
  padding: 0 12px;
  border: 0;
  border-left: 1.5px dashed var(--c-border-strong);
  background: var(--c-bg-soft);
  font-size: 14px;
  font-weight: 600;
}

.promo__copy:hover {
  color: var(--c-link, var(--c-primary));
}

.promo__copy.is-copied {
  background: var(--c-good-soft);
  color: var(--c-good);
}

.promo__copy:focus-visible {
  outline-offset: -3px;
}

.promo__valid {
  color: var(--c-muted);
  font-size: var(--fs-small);
}

/* ---------- 11. FAQ ---------- */
.faq {
  border-top: 1px solid var(--c-border);
}

.faq__item {
  border-bottom: 1px solid var(--c-border);
}

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s;
}

.faq__item[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.faq__item summary:hover {
  color: var(--c-link, var(--c-primary));
}

.faq__body {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 0 4px 20px;
  color: var(--c-muted);
  max-width: 720px;
}

/* ---------- 12. ProxyFarm ---------- */
.farm {
  display: grid;
  gap: 28px;
  padding: 28px 20px;
  border-radius: 20px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgb(50 157 65 / 0.45), transparent 70%),
    var(--c-dark);
  color: var(--c-on-dark);
}

.farm__list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.farm__list li {
  display: flex;
  gap: 10px;
  color: var(--c-on-dark-muted);
}

.farm__list [data-icon] {
  color: #7ee2b0;
  margin-top: 2px;
}

.farm__offer {
  display: grid;
  gap: 8px;
  align-content: center;
}

.farm__price {
  font-size: 22px;
  font-weight: 600;
}

.farm__price b {
  font-size: 40px;
  letter-spacing: -0.02em;
}

.farm__price-note {
  color: var(--c-on-dark-muted);
}

.farm__actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.farm :focus-visible {
  outline-color: #b6eea0;
}

@media (min-width: 900px) {
  .farm {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 56px;
    padding: 48px;
  }
}

/* ---------- 13. Партнёрская полоса ---------- */
.partner-strip {
  background: var(--c-primary-soft);
}

.partner-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 20px;
}

.partner-strip__text {
  font-size: 17px;
}

/* ---------- 14. Поддержка ---------- */
.support {
  text-align: center;
}

.support__buttons {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

@media (min-width: 640px) {
  .support__buttons {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- 15. Футер ---------- */
.footer {
  padding: 48px 0 calc(32px + env(safe-area-inset-bottom));
  background: var(--c-dark-2);
  color: var(--c-on-dark);
}

.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}

.footer__brand {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  justify-items: start;
}

.footer__muted {
  color: var(--c-on-dark-muted);
  font-size: 15px;
}

.footer__title {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.footer ul {
  display: grid;
  gap: 8px;
}

.footer nav a {
  color: var(--c-on-dark-muted);
  font-size: 15px;
  text-decoration: none;
}

.footer nav a:hover {
  color: #fff;
}

.footer :focus-visible {
  outline-color: #b6eea0;
}

.footer__copy {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  color: var(--c-on-dark-muted);
  font-size: var(--fs-small);
}

@media (min-width: 960px) {
  .footer__cols {
    grid-template-columns: 1.6fr repeat(4, 1fr);
  }

  .footer__brand {
    grid-column: auto;
  }
}

/* ---------- Прилипающая панель итога (mobile) ---------- */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -6px 24px rgb(14 23 38 / 0.12);
  transform: translateY(110%);
  visibility: hidden;
  transition:
    transform 0.2s ease,
    visibility 0.2s;
}

.sticky-bar.is-visible {
  transform: none;
  visibility: visible;
}

.sticky-bar__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sticky-bar__total {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sticky-bar__meta {
  color: var(--c-muted);
  font-size: var(--fs-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-bar .btn {
  flex: none;
  min-width: 128px;
}

@media (min-width: 960px) {
  .sticky-bar {
    display: none;
  }
}

/* ---------- Чат ---------- */
.chat-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--c-dark);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: bottom 0.2s ease;
}

.chat-fab [data-icon] svg {
  width: 24px;
  height: 24px;
}

.chat-fab:hover {
  background: #1d2a40;
}

.has-sticky-bar .chat-fab {
  bottom: calc(84px + env(safe-area-inset-bottom));
}

@media (max-width: 639px) {
  .chat-fab {
    width: 56px;
    padding: 0;
    justify-content: center;
  }

  .chat-fab__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

.chat-panel {
  position: fixed;
  right: 16px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 96;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100vw - 32px));
  max-height: min(480px, calc(100dvh - 120px));
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.chat-panel[hidden] {
  display: none;
}

.has-sticky-bar .chat-panel {
  bottom: calc(152px + env(safe-area-inset-bottom));
}

.chat-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 12px 14px 16px;
  border-bottom: 1px solid var(--c-border);
}

.chat-panel__title {
  font-weight: 700;
}

.chat-panel__status {
  color: var(--c-muted);
  font-size: var(--fs-xs);
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--c-good);
}

.chat-panel__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 12px 12px 12px 4px;
  background: var(--c-bg-soft);
  font-size: 15px;
}

.chat-msg--me {
  align-self: flex-end;
  border-radius: 12px 12px 4px 12px;
  background: var(--c-primary-soft);
  color: var(--c-primary-ink);
}

.chat-panel__form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--c-border);
}

/* ---------- Модальные окна ---------- */
.modal {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--shadow-lg);
  overflow: auto;
  overscroll-behavior: contain;
}

.modal::backdrop {
  background: rgb(14 23 38 / 0.55);
}

.modal[open] {
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.modal__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 20px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}

.modal__title {
  font-size: 20px;
}

.modal__body {
  padding: 4px 20px 20px;
}

.modal__body > .btn {
  margin-top: 22px;
}

.modal__fine {
  margin-top: 10px;
  color: var(--c-muted);
  font-size: var(--fs-xs);
  text-align: center;
}

.modal__success {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 28px;
  text-align: center;
}

.modal__success[hidden] {
  display: none;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--c-good-soft);
  color: var(--c-good);
}

.success-icon svg {
  width: 28px;
  height: 28px;
}

.order-items {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--c-bg-soft);
  font-size: 15px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.order-item__meta {
  color: var(--c-muted);
  font-size: var(--fs-small);
}

.order-item__price {
  flex: none;
  font-weight: 600;
  text-align: right;
}

.order-total {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--c-border);
  font-weight: 700;
  font-size: 17px;
}

.pay-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pay-option {
  position: relative;
  display: block;
}

.pay-option__body {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  height: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.pay-option__body svg {
  width: 20px;
  height: 20px;
}

.pay-option:hover .pay-option__body {
  border-color: var(--c-primary);
}

.pay-option input:checked + .pay-option__body {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  color: var(--c-primary-ink);
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-border);
}

.cart-item__remove {
  justify-self: start;
  font-size: var(--fs-small);
  color: var(--c-danger);
}

.cart-empty {
  padding: 24px 0 8px;
  color: var(--c-muted);
  text-align: center;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  font-size: 18px;
  font-weight: 700;
}

.test-steps {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  counter-reset: ts;
}

.test-steps li {
  flex: 1;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--c-bg-soft);
  text-align: center;
  counter-increment: ts;
}

.test-steps li::before {
  content: counter(ts) '. ';
  font-weight: 700;
}

.test-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.test-type {
  position: relative;
  display: block;
}

.test-type__body {
  display: block;
  height: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.test-type__body small {
  display: block;
  color: var(--c-muted);
  font-weight: 400;
  font-size: var(--fs-xs);
}

.test-type:hover .test-type__body {
  border-color: var(--c-primary);
}

.test-type input:checked + .test-type__body {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  color: var(--c-primary-ink);
}

/* ---------- Тост ---------- */
.toast {
  position: fixed;
  left: 50%;
  top: calc(var(--header-h) + 12px);
  z-index: 250;
  max-width: calc(100vw - 32px);
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--c-dark);
  color: #fff;
  font-size: 15px;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, -8px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Правила адаптации (mobile-first / swiss). Перекрывают базовые стили выше.
   ========================================================================== */
:root {
  --c-ink: #0a0a0c;
  --c-ink-border: #27272a;
  --c-ink-muted: #a1a1aa;
}

.btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--c-ink-text, var(--c-ink));
}

.btn--light:hover {
  background: #e4e4e7;
  border-color: #e4e4e7;
}

/* ---------- Шапка: 2-линейная иконка меню 24×24 ---------- */
.burger span {
  width: 24px;
  height: 24px;
  background: transparent;
}

.burger span::before,
.burger span::after {
  width: 24px;
}

.burger span::before {
  top: 7px;
}

.burger span::after {
  top: 15px;
}

.burger[aria-expanded='true'] span::before {
  transform: translateY(4px) rotate(45deg);
}

.burger[aria-expanded='true'] span::after {
  transform: translateY(-4px) rotate(-45deg);
}

/* Открытое меню — полноэкранный контрастный оверлей */
.nav.is-open {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  max-height: none;
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--c-ink);
  color: #fff;
  border: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.nav.is-open .nav__link {
  min-height: 56px;
  padding: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--c-ink-border);
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav.is-open .nav__link:hover {
  background: transparent;
  color: var(--c-ink-muted);
}

.nav.is-open .nav__dropdown {
  background: transparent;
}

.nav.is-open .nav__dropdown a {
  display: flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--c-ink-muted);
  font-size: 20px;
}

.nav.is-open .nav__dropdown a:hover {
  background: transparent;
  color: #fff;
}

.nav.is-open .nav__mobile-extra {
  margin-top: auto;
  border-top-color: var(--c-ink-border);
}

.nav.is-open .lang {
  border-color: var(--c-ink-border);
}

.nav.is-open .lang__btn {
  min-width: 64px;
  color: var(--c-ink-muted);
  font-size: 16px;
}

.nav.is-open .lang__btn[aria-pressed='true'] {
  background: #fff;
  color: var(--c-ink-text, var(--c-ink));
}

.nav.is-open .btn--outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.nav.is-open :focus-visible {
  outline-color: #fff;
}

body.menu-open {
  overflow: hidden;
}

/* ---------- Конфигуратор ---------- */
.config__panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step + .step {
  margin-top: 0;
}

@media (max-width: 767px) {
  /* Вкладки типов — горизонтальный скролл без полосы прокрутки */
  .tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .tabs::-webkit-scrollbar,
  .segs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    flex: 0 0 auto;
    min-height: var(--touch);
    white-space: nowrap;
    scroll-snap-align: start;
  }

  /* Сроки — тоже горизонтальная лента сегментов */
  .segs {
    display: flex;
    margin-inline: -4px;
    padding: 12px 4px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .seg {
    flex: 0 0 138px;
  }

  .check {
    min-height: var(--touch);
    align-items: center;
  }

  .check input {
    margin-top: 0;
  }

  .review__more,
  .cart-item__remove,
  .summary__note .linklike {
    min-height: var(--touch);
  }

  .tip::before,
  .ask::before {
    inset: -15px;
  }

  .footer nav a {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch);
  }

  .footer ul {
    gap: 0;
  }
}

/* ---------- Таблица → вертикальные карточки (< 768px) ---------- */
@media (max-width: 767px) {
  .ccards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }

  .ccard {
    border-radius: var(--radius-sm);
    padding: 16px;
  }

  .ccard__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 0;
  }

  .ccard__head .badge {
    margin-bottom: 0;
  }

  .ccard__title {
    font-size: 18px;
  }
}

@media (min-width: 768px) {
  .compare-table-wrap {
    display: block;
  }

  .ccards {
    display: none;
  }
}

/* ---------- Прилипающая панель оформления ---------- */
.sticky-bar {
  z-index: 50;
  padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom));
  background: var(--c-ink);
  border-top: 1px solid var(--c-ink-border);
  box-shadow: 0 -8px 24px rgb(0 0 0 / 0.25);
  color: #fff;
}

.sticky-bar__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sticky-bar__price s {
  color: var(--c-ink-muted);
  font-size: 14px;
}

.sticky-bar__meta {
  color: var(--c-ink-muted);
}

.sticky-bar .btn {
  min-width: 0;
  min-height: var(--touch);
  padding-inline: 18px;
}

.sticky-bar :focus-visible {
  outline-color: #fff;
}

.has-sticky-bar .chat-fab {
  bottom: calc(96px + env(safe-area-inset-bottom));
}

/* ---------- Чат на mobile — полноэкранный ---------- */
@media (max-width: 767px) {
  .chat-panel {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    z-index: 120;
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .has-sticky-bar .chat-panel {
    bottom: auto;
  }

  .chat-panel__head {
    align-items: center;
    padding: 12px 8px 12px var(--gutter);
  }

  .chat-panel__head .icon-btn {
    width: var(--touch);
    height: var(--touch);
  }

  .chat-panel__head .icon-btn svg {
    width: 24px;
    height: 24px;
  }

  .chat-panel__form {
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  }

  .chat-panel__form .icon-btn {
    flex: none;
  }

  body.chat-open {
    overflow: hidden;
  }

  body.chat-open .chat-fab,
  body.chat-open .sticky-bar {
    display: none;
  }
}

.promo .badge {
  align-self: flex-start;
}

/* ==========================================================================
   v2 — UX-приёмы по мотивам proxy-seller: тёмный первый экран по центру
   с выбором прокси, крупные кнопки, бегущая строка, карточки-аккордеон
   ========================================================================== */
:root {
  --c-hero: #0b1220;
  --c-hero-muted: #b4bfcd;
  --c-accent-light: #b6eea0;
  --radius-xl: 20px;
  --chevron-white: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27white%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27m6 9 6 6 6-6%27/%3E%3C/svg%3E");
}

.btn {
  border-radius: 12px;
}

.btn--lg {
  min-height: 56px;
}

.btn--xl {
  min-height: 60px;
  padding: 0 32px;
  border-radius: 14px;
  font-size: 19px;
}

/* Заголовки секций — по центру */
.section__head {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section__cta {
  justify-content: center;
}

/* ---------- Шапка: тёмная, «Войти» всегда на виду ---------- */
.header {
  background: var(--c-ink);
  border-bottom-color: var(--c-ink-border);
  color: #fff;
}

.header .logo__mark {
  color: #fff;
}

.header .logo__tagline {
  color: var(--c-ink-muted);
}

.header .nav__link {
  color: #fff;
}

.header .nav__link:hover {
  background: rgb(255 255 255 / 0.08);
}

.header .nav__dropdown a {
  color: var(--c-text);
}

.header .lang {
  border-color: var(--c-ink-border);
}

.header .lang__btn {
  color: var(--c-ink-muted);
}

.header .lang__btn[aria-pressed='true'] {
  background: #fff;
  color: var(--c-ink-text, var(--c-ink));
}

.header .cart-btn {
  color: #fff;
}

.header .cart-btn:hover,
.header .burger:hover {
  background: rgb(255 255 255 / 0.08);
}

.header .cart-btn__count {
  border-color: var(--c-ink-text, var(--c-ink));
  background: var(--c-primary);
}

.header .burger {
  color: #fff;
}

.header .btn--outline {
  background: transparent;
  border-color: rgb(255 255 255 / 0.45);
  color: #fff;
}

.header .btn--outline:hover {
  border-color: #fff;
  color: #fff;
}

.header .header__login {
  display: inline-flex;
  min-width: var(--touch);
  padding-inline: 10px;
  color: #fff;
}

.header .header__login:hover {
  background: rgb(255 255 255 / 0.08);
}

.header__login [data-icon] svg {
  width: 22px;
  height: 22px;
}

.header__login-text {
  display: none;
}

.header :focus-visible {
  outline-color: var(--c-accent-light);
}

@media (max-width: 559px) {
  .header .header__cta {
    display: none;
  }

  .header__inner {
    gap: 4px;
  }

  .header__actions {
    gap: 2px;
  }
}

@media (min-width: 560px) {
  .header__login-text {
    display: inline;
  }
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 44px;
  background:
    var(--c-hero);
  color: #fff;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero .hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

.hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 14px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.hero__rating:hover {
  border-color: rgb(255 255 255 / 0.35);
}

.hero h1 {
  max-width: 920px;
  margin-top: 20px;
  font-size: clamp(32px, 5.6vw, 60px);
}

.hero .hero__sub {
  max-width: 720px;
  margin: 16px auto 0;
  color: var(--c-hero-muted);
  font-size: 18px;
}

.hero .tip {
  color: var(--c-hero-muted);
}

.hero :focus-visible {
  outline-color: var(--c-accent-light);
}

.quickbuy {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 1000px;
  margin-top: 32px;
  text-align: left;
}

.quickbuy__field,
.quickbuy__total {
  position: relative;
  padding: 12px 16px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.06);
  backdrop-filter: blur(6px);
}

.quickbuy__field:hover {
  border-color: rgb(255 255 255 / 0.32);
}

.quickbuy__field:focus-within {
  border-color: var(--c-accent-light);
  outline: 3px solid rgb(182 238 160 / 0.45);
  outline-offset: 1px;
}

.quickbuy__label {
  display: block;
  color: var(--c-hero-muted);
  font-size: 13px;
}

.quickbuy__select {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 2px 28px 0 0;
  border: 0;
  background: transparent var(--chevron-white) right center / 20px no-repeat;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-overflow: ellipsis;
  cursor: pointer;
  appearance: none;
}

.quickbuy__select:focus-visible {
  outline: none;
}

.quickbuy__select option {
  background: #fff;
  color: var(--c-text);
}

.quickbuy__sum {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}

.quickbuy__sum b {
  font-size: 30px;
  letter-spacing: -0.02em;
}

.quickbuy__sum s {
  color: var(--c-hero-muted);
  font-size: 15px;
}

.quickbuy__more {
  display: inline-block;
  margin-top: 4px;
  color: var(--c-accent-light);
  font-size: 13px;
}

.quickbuy__buy {
  min-height: 64px;
  font-size: 20px;
}

@media (min-width: 768px) {
  .quickbuy {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quickbuy__buy {
    grid-column: span 2;
    height: 100%;
  }
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  margin-top: 20px;
}

.hero__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 16px;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.4);
  text-underline-offset: 4px;
}

.hero__link:hover {
  text-decoration-color: #fff;
}

.hero__checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 20px;
  color: var(--c-hero-muted);
  font-size: 15px;
}

.hero__checks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__checks [data-icon] {
  color: var(--c-accent-light);
}

@media (min-width: 960px) {
  .hero {
    padding: 72px 0 64px;
  }

  .hero .hero__sub {
    font-size: 20px;
  }
}

/* ---------- Доверие и бегущая строка ---------- */
.trust {
  padding: 40px 0 0;
  border: 0;
  background: var(--c-surface);
  text-align: center;
}

.trust__title {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
}

.trust__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 32px;
  margin-top: 12px;
  color: var(--c-muted);
}

.trust__stats b {
  color: var(--c-text);
}

.marquee {
  margin-top: 24px;
  padding-block: 18px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 56px;
  color: var(--c-muted);
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.marquee__item b {
  color: var(--c-text);
}

.marquee__item svg {
  width: 22px;
  height: 22px;
}

.marquee__logo {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    row-gap: 12px;
    animation: none;
  }

  .marquee__item[aria-hidden='true'] {
    display: none;
  }
}

/* ---------- Преимущества: карточки-аккордеон ---------- */
.section--tight {
  padding-top: 40px;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  background: var(--c-bg-soft);
  overflow: hidden;
  transition:
    flex-grow 0.45s ease,
    background-color 0.3s ease;
}

.feature:not(.is-active):hover {
  background: #e8ece6;
}

.feature__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  min-height: var(--touch);
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
}

.feature__head:focus-visible {
  outline-offset: -4px;
}

.feature__num {
  flex: none;
  color: var(--c-link, var(--c-primary));
  font-size: 14px;
  font-weight: 600;
}

.feature__body {
  display: none;
}

.feature.is-active {
  background: var(--c-primary);
  color: #fff;
}

.feature.is-active .feature__num {
  color: var(--c-accent-light);
}

.feature.is-active .feature__head:focus-visible {
  outline-color: #fff;
}

.feature.is-active .feature__body {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  padding: 0 20px 20px;
  animation: reco-in 0.35s ease;
}

.feature__body p {
  color: rgb(255 255 255 / 0.92);
  font-size: 16px;
}

.feature__art svg {
  width: 64px;
  height: 64px;
  color: rgb(255 255 255 / 0.55);
  stroke-width: 1.4;
}

.features__nav {
  display: none;
  gap: 8px;
  margin-top: 16px;
}

@media (min-width: 960px) {
  .features {
    flex-direction: row;
    height: 300px;
    gap: 12px;
  }

  .feature {
    flex: 1 1 0;
    min-width: 0;
  }

  .feature.is-active {
    flex-grow: 3.4;
  }

  .feature__head {
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 22px;
  }

  .feature.is-active .feature__head {
    flex: none;
    justify-content: flex-start;
    gap: 14px;
    font-size: 26px;
  }

  .feature.is-active .feature__body {
    flex: 1;
    padding: 0 22px 22px;
  }

  .feature__art svg {
    width: 96px;
    height: 96px;
  }

  .features__nav {
    display: flex;
  }
}

/* ---------- Типы прокси: вкладки ---------- */
.ptabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  padding: 6px;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  background: var(--c-surface);
  overflow-x: auto;
  scrollbar-width: none;
}

.ptabs::-webkit-scrollbar {
  display: none;
}

.ptab {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: var(--touch);
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

.ptab:hover {
  background: var(--c-bg-soft);
}

.ptab[aria-selected='true'] {
  background: var(--c-ink);
  color: #fff;
}

.ptab__price {
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 500;
}

.ptab[aria-selected='true'] .ptab__price {
  color: var(--c-ink-muted);
}

.product {
  display: grid;
  gap: 24px;
  padding: 24px 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  background: var(--c-surface);
}

.product__title {
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.product__desc {
  margin-top: 12px;
  color: var(--c-muted);
  font-size: 17px;
}

.product__best-title {
  margin-top: 20px;
  font-weight: 700;
}

.product__best {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.product__best li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product__best svg {
  color: var(--c-link, var(--c-primary));
}

.product__actions {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.product__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: start;
}

.stat {
  padding: 16px;
  border-radius: 14px;
  background: var(--c-bg-soft);
}

.stat__label {
  display: flex;
  align-items: center;
  color: var(--c-muted);
  font-size: 14px;
}

.stat__value {
  display: block;
  margin-top: 6px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .product__actions {
    display: flex;
    flex-wrap: wrap;
  }
}

@media (min-width: 960px) {
  .product {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 48px;
    padding: 40px;
  }
}

.compare-all {
  margin-top: 24px;
}

.compare-all > summary {
  display: flex;
  width: fit-content;
  margin-inline: auto;
  list-style: none;
  cursor: pointer;
}

.compare-all > summary::-webkit-details-marker {
  display: none;
}

.compare-all > summary::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}

.compare-all[open] > summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.compare-all__body {
  margin-top: 20px;
}

.compare__more {
  margin-top: 16px;
  text-align: center;
}

/* Первый экран на mobile: кнопка «Купить» помещается в первый экран */
.quickbuy__select {
  min-height: var(--touch);
}

@media (max-width: 767px) {
  .hero {
    padding: 24px 0 32px;
  }

  .hero h1 {
    margin-top: 14px;
    font-size: 30px;
  }

  .hero .hero__sub {
    margin-top: 10px;
    font-size: 16px;
  }

  .quickbuy {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 20px;
  }

  .quickbuy__field:first-child {
    grid-column: span 2;
  }

  .quickbuy__field,
  .quickbuy__total {
    padding: 8px 12px;
  }

  .quickbuy__select {
    font-size: 16px;
  }

  .quickbuy__sum b {
    font-size: 24px;
  }

  .quickbuy__more {
    display: none;
  }

  .quickbuy__buy {
    min-height: 0;
    height: 100%;
    padding: 0 12px;
    font-size: 18px;
  }
}

/* ==========================================================================
   v3 — форма первого экрана как у proxy-seller: два поля со списками,
   «Общая стоимость» и большая кнопка; списки — панель на ПК, шторка на mobile
   ========================================================================== */
.hero {
  z-index: 2;
  overflow: visible;
}

.quickbuy {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 1180px;
}

.quickbuy__field,
.quickbuy__total {
  min-height: 112px;
  padding: 22px 28px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.07);
  backdrop-filter: none;
}

.quickbuy__field:focus-within {
  outline: none;
}

.quickbuy__total {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
}

.quickbuy__label {
  font-size: 14px;
  color: var(--c-hero-muted);
}

.quickbuy__sum {
  margin-top: 6px;
}

.quickbuy__sum b {
  font-size: 28px;
  font-weight: 700;
}

.quickbuy__unit {
  color: var(--c-hero-muted);
  font-size: 14px;
}

.quickbuy__extra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 6px;
  color: var(--c-hero-muted);
  font-size: 14px;
}

.quickbuy__extra a {
  color: var(--c-accent-light);
}

.quickbuy .quickbuy__buy {
  grid-column: auto;
  min-height: 112px;
  height: auto;
  border-radius: 12px;
  font-size: 26px;
  font-weight: 600;
}

/* Мини-степпер модемов в блоке стоимости */
.qb-stepper {
  display: inline-flex;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.qb-stepper button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
}

.qb-stepper button:hover:not(:disabled) {
  background: rgb(255 255 255 / 0.1);
}

.qb-stepper button:disabled {
  opacity: 0.35;
}

.qb-stepper input {
  width: 48px;
  border: 0;
  border-inline: 1px solid rgb(255 255 255 / 0.2);
  background: transparent;
  color: #fff;
  font-weight: 600;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.qb-stepper input::-webkit-outer-spin-button,
.qb-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ---------- Выпадающий список ---------- */
.dd {
  position: relative;
}

.quickbuy__field:has(.dd__button[aria-expanded='true']) {
  border-color: #4cc46a;
}

.quickbuy__field:has(.dd__button[aria-expanded='true']) .quickbuy__label {
  color: #7ddc8f;
}

.dd__button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: var(--touch);
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: left;
}

/* Вся плашка кликабельна */
.dd__button::after {
  content: '';
  position: absolute;
  inset: -22px -28px;
}

.dd__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dd__chevron {
  flex: none;
  transition: transform 0.2s;
}

.dd__chevron svg {
  width: 22px;
  height: 22px;
}

.dd__button[aria-expanded='true'] .dd__chevron {
  transform: rotate(180deg);
}

.dd__button:focus-visible {
  outline: none;
}

.quickbuy__field:has(.dd__button:focus-visible) {
  outline: 3px solid var(--c-accent-light);
  outline-offset: 2px;
}

.dd__popup {
  position: absolute;
  top: calc(100% + 28px);
  left: -29px;
  right: -29px;
  z-index: 30;
  padding: 10px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 12px;
  background: #1d2a36;
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.4);
  text-align: left;
  animation: dd-in 0.16s ease;
}

@keyframes dd-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.dd__sheet-head {
  display: none;
}

.dd__list {
  max-height: 300px;
  margin: 0;
  overflow-y: auto;
  scrollbar-color: rgb(255 255 255 / 0.4) transparent;
  scrollbar-width: thin;
}

.dd__list:focus {
  outline: none;
}

.dd__group {
  padding: 10px 20px 4px;
  color: rgb(255 255 255 / 0.55);
  font-size: 13px;
}

.dd__option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.dd__option:hover,
.dd__option.is-active {
  background: rgb(255 255 255 / 0.08);
}

.dd__option[aria-selected='true'] {
  background: rgb(255 255 255 / 0.12);
  font-weight: 600;
}

.dd__list:focus-visible .dd__option.is-active {
  outline: 2px solid var(--c-accent-light);
  outline-offset: -2px;
}

.dd__option[aria-disabled='true'] {
  color: rgb(255 255 255 / 0.4);
  cursor: not-allowed;
}

.dd__option[aria-disabled='true']:hover {
  background: none;
}

.dd__opt-label {
  flex: 1;
}

.dd__meta {
  color: rgb(255 255 255 / 0.6);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.dd__check {
  color: #7ddc8f;
}

.dd__check svg {
  width: 18px;
  height: 18px;
}

.dd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgb(5 10 18 / 0.6);
  animation: fade-in 0.2s ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

body.dd-open {
  overflow: hidden;
}

/* ---------- Mobile: компактная сетка и шторка ---------- */
@media (max-width: 767px) {
  .quickbuy {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .quickbuy__field:first-child,
  .quickbuy .quickbuy__buy {
    grid-column: span 2;
  }

  .quickbuy__field,
  .quickbuy__total {
    min-height: 0;
    padding: 14px 16px;
  }

  .quickbuy__label {
    font-size: 13px;
  }

  .dd__button {
    margin-top: 2px;
    font-size: 19px;
  }

  .dd__button::after {
    inset: -14px -16px;
  }

  .quickbuy__sum {
    flex-wrap: wrap;
    margin-top: 2px;
    row-gap: 0;
  }

  .quickbuy__sum b {
    font-size: 22px;
  }

  .quickbuy__unit {
    display: none;
  }

  .quickbuy__extra {
    font-size: 13px;
  }

  .qb-stepper button {
    width: var(--touch);
    height: var(--touch);
  }

  .quickbuy .quickbuy__buy {
    min-height: 60px;
    font-size: 20px;
  }

  .dd__popup {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    max-height: 78dvh;
    display: flex;
    flex-direction: column;
    padding: 8px 12px calc(12px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 20px 20px 0 0;
    background: #111b29;
    animation: sheet-up 0.22s ease;
  }

  .dd__popup::before {
    content: '';
    align-self: center;
    width: 40px;
    height: 4px;
    margin: 2px 0 6px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.25);
  }

  .dd__sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 6px 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
  }

  .dd__sheet-head .icon-btn {
    color: #fff;
  }

  .dd__list {
    max-height: none;
    flex: 1;
  }

  .dd__option {
    min-height: 56px;
    font-size: 17px;
  }
}

@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
}

/* ---------- Окна оформления и теста: на mobile — шторка снизу ---------- */
.modal__footer {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin: 22px -20px -20px;
  padding: 14px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
}

.modal__footer .modal__fine {
  margin-top: 8px;
}

.checkout-note {
  margin-top: 12px;
  color: var(--c-muted);
  font-size: 14px;
}

.checkout-coupon {
  margin-top: 16px;
}

.checkout-coupon[hidden] {
  display: none;
}

.checkout-coupon > summary {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-sm);
  color: var(--c-link, var(--c-primary));
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  list-style: none;
}

.checkout-coupon > summary::-webkit-details-marker {
  display: none;
}

.checkout-coupon .coupon__row {
  margin-top: 8px;
}

@media (max-width: 767px) {
  .modal {
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
  }

  .modal[open] {
    animation: sheet-up 0.25s ease;
  }

  .modal__inner::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: var(--c-border-strong);
  }

  .modal__head {
    padding-top: 6px;
  }

  /* Окно, которому тесно в шторке, — на весь экран (класс ставит src/dialog-fit.js) */
  .modal.is-full {
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }

  .modal.is-full .modal__inner::before {
    display: none;
  }

  .modal.is-full .modal__head {
    padding-top: calc(16px + env(safe-area-inset-top));
  }
}

/* Mobile: без горизонтальных лент — всё видно сразу сеткой 2×2 */
@media (max-width: 767px) {
  .tabs,
  .ptabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }

  .tab,
  .ptab {
    white-space: normal;
  }

  .segs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-inline: 0;
    padding: 12px 0 0;
    overflow: visible;
  }

  .seg {
    flex: none;
  }

  /* Отзывы: следующая карточка выглядывает — понятно, что можно листать */
  .review {
    flex-basis: 82%;
  }
}

/* ---------- Эффект стекла на первом экране ----------
   Размытие — на псевдоэлементе: backdrop-filter на самой плашке
   сломал бы позиционирование шторки списка на mobile */
.quickbuy__field,
.quickbuy__total {
  isolation: isolate;
  border-color: rgb(255 255 255 / 0.14);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.11), rgb(255 255 255 / 0.04));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.12),
    0 8px 32px rgb(0 0 0 / 0.25);
}

.quickbuy__field::before,
.quickbuy__total::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

.quickbuy__field:hover {
  border-color: rgb(255 255 255 / 0.28);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.06));
}

.hero .btn--primary {
  position: relative;
  border-color: rgb(255 255 255 / 0.18);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.22), rgb(255 255 255 / 0) 55%),
    var(--c-primary);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.35),
    inset 0 -1px 0 rgb(0 0 0 / 0.15),
    0 12px 32px rgb(50 157 65 / 0.4);
}

.hero .btn--primary:hover {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.28), rgb(255 255 255 / 0.02) 55%),
    var(--c-primary);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.4),
    inset 0 -1px 0 rgb(0 0 0 / 0.15),
    0 14px 40px rgb(50 157 65 / 0.55);
}

.hero__rating {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0.04));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
  .dd__popup {
    background: rgb(24 36 48 / 0.88);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
  }
}

/* Открытый список — поверх соседних плашек и кнопки */
.quickbuy__field:has(.dd__button[aria-expanded='true']) {
  z-index: 5;
}

/* Закрытый список не показываем ни при каких раскладках */
.dd__popup[hidden] {
  display: none !important;
}

/* Первый экран не создаёт свой слой: открытая плашка со списком
   поднимается над соседями (ПК) и над подложкой шторки (mobile) */
.hero {
  z-index: auto;
}

@media (max-width: 767px) {
  .quickbuy__field:has(.dd__button[aria-expanded='true']) {
    z-index: 160;
  }
}

.dd__sheet-head .icon-btn {
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}

/* ---------- Первый экран на всю высоту окна ---------- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
}

.hero .hero__inner {
  width: 100%;
}

/* Список, которому не хватает места снизу, открывается вверх */
.dd__popup--up {
  top: auto;
  bottom: calc(100% + 28px);
  animation-name: dd-in-up;
}

@keyframes dd-in-up {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

/* На ПК содержимое ближе к верху: под формой остаётся место, чтобы список раскрывался вниз */
@media (min-width: 768px) {
  .hero {
    justify-content: flex-start;
    padding-top: clamp(32px, 6vh, 64px);
  }
}

/* ---------- Первый экран: всё по центру, крупнее на высоких экранах ---------- */
.hero {
  justify-content: center;
  padding-block: clamp(24px, 4vh, 56px);
}

@media (min-width: 768px) {
  .hero {
    justify-content: center;
    padding-block: clamp(32px, 5vh, 72px);
  }

  .hero h1 {
    max-width: 1100px;
    font-size: clamp(40px, min(5.2vw, 7.2vh), 76px);
  }

  .hero .hero__sub {
    max-width: 820px;
    font-size: clamp(18px, 2.1vh, 22px);
  }

  .quickbuy {
    max-width: clamp(980px, 62vw, 1280px);
    margin-top: clamp(28px, 4vh, 48px);
  }

  .quickbuy__field,
  .quickbuy__total,
  .quickbuy .quickbuy__buy {
    min-height: clamp(104px, 12vh, 132px);
  }

  .dd__button {
    font-size: clamp(24px, 2.8vh, 30px);
  }

  .quickbuy__sum b {
    font-size: clamp(28px, 3.2vh, 34px);
  }

  .quickbuy .quickbuy__buy {
    font-size: clamp(24px, 2.8vh, 30px);
  }

  .hero__links {
    margin-top: clamp(20px, 2.6vh, 32px);
    font-size: 17px;
  }

  .hero__checks {
    margin-top: clamp(16px, 2vh, 28px);
    font-size: 16px;
  }

  /* Контейнер первого экрана шире на больших мониторах */
  .hero .container {
    max-width: calc(max(var(--container), 70vw) + var(--gutter) * 2);
  }
}

/* ---------- «Почему Frigate Proxy»: ровные заголовки и кнопка рядом ---------- */
.feature__title--short {
  display: none;
}

@media (min-width: 960px) {
  .feature:not(.is-active) .feature__title--full {
    display: none;
  }

  .feature:not(.is-active) .feature__title--short {
    display: block;
    min-height: 2.5em;
    font-size: 17px;
  }
}

.features__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.features__bar .features__nav {
  margin-top: 0;
}

@media (min-width: 960px) {
  .features__bar {
    justify-content: space-between;
  }
}

/* «Не уверены? Спросите в Telegram» — по центру, как заголовки секций */
.picker__help {
  text-align: center;
}

/* ---------- Типы прокси: 5 вкладок ---------- */
@media (min-width: 768px) {
  .ptabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }

  .ptab {
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .ptab:last-child:nth-child(odd) {
    grid-column: span 2;
  }
}

/* Высоту списка ограничивает скрипт по свободному месту в первом экране */
@media (min-width: 768px) {
  .dd__list {
    max-height: 440px;
  }

  .dd__option {
    min-height: 44px;
    padding-block: 8px;
  }

  .dd__group {
    padding-top: 8px;
  }
}

/* ---------- «Почему Frigate Proxy»: без иконок, с воздухом ---------- */
.feature.is-active .feature__body {
  display: block;
}

.feature__body p {
  max-width: 34ch;
  font-size: 17px;
  line-height: 1.55;
}

@media (min-width: 960px) {
  .features {
    height: 320px;
  }

  .feature {
    flex: 0 0 152px;
  }

  .feature.is-active {
    flex: 1 1 auto;
  }

  .feature__head {
    padding: 28px 24px;
  }

  .feature:not(.is-active) .feature__title--short {
    min-height: 0;
    font-size: 16px;
    line-height: 1.3;
  }

  .feature.is-active .feature__head {
    padding: 32px 36px 0;
    font-size: 28px;
  }

  .feature.is-active .feature__body {
    display: flex;
    align-items: flex-end;
    padding: 0 36px 32px;
  }
}

/* Колонки карточки типа не распираются длинными кнопками */
.product {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 960px) {
  .product {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

.product__actions .btn {
  white-space: normal;
}

/* Панель списка привязана к самой плашке и отделена зазором 8px */
@media (min-width: 768px) {
  .quickbuy .dd {
    position: static;
  }

  .quickbuy .dd__button::after {
    inset: 0;
  }

  .quickbuy .dd__popup {
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 8px;
  }

  .quickbuy .dd__popup--up {
    top: auto;
    bottom: calc(100% + 8px);
  }
}

@media (min-width: 768px) {
  .quickbuy .dd__popup {
    top: calc(100% + 12px);
    left: -1px;
    right: -1px;
  }

  .quickbuy .dd__popup--up {
    top: auto;
    bottom: calc(100% + 12px);
  }
}

/* Панель списка непрозрачная: кнопка «Купить» под ней не просвечивает */
@media (min-width: 768px) {
  .quickbuy .dd__popup {
    background: #1b2733;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow:
      0 0 0 1px rgb(0 0 0 / 0.2),
      0 20px 48px rgb(0 0 0 / 0.55);
  }
}

/* ---------- Первый экран: три поля + стоимость с количеством ---------- */
.quickbuy {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.quickbuy__field {
  grid-column: span 2;
}

.quickbuy__total,
.quickbuy .quickbuy__buy {
  grid-column: span 3;
}

.quickbuy__extra {
  gap: 8px 12px;
  margin-top: 10px;
}

.qb-qty-unit {
  color: var(--c-hero-muted);
}

.qb-stepper button,
.qb-stepper input {
  height: 40px;
}

.qb-stepper button {
  width: 40px;
}

.qb-stepper:focus-within {
  border-color: var(--c-accent-light);
}

/* Поле «Модемов» у лицензии: счётчик крупнее, в размер значений соседних полей */
.qb-stepper--modems {
  margin-top: 8px;
}

.qb-stepper--modems button,
.qb-stepper--modems input {
  height: var(--touch);
  font-size: 20px;
}

.qb-stepper--modems button {
  width: 52px;
}

.qb-stepper--modems input {
  width: 72px;
}

.qb-more {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 40px;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-accent-light);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.qb-more:hover {
  color: #fff;
}

.qb-more__value {
  color: var(--c-hero-muted);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
}

@media (min-width: 768px) {
  .qb-more {
    margin-left: auto;
    align-items: flex-end;
    text-align: right;
  }
}

@media (max-width: 767px) {
  .quickbuy {
    grid-template-columns: 1fr 1fr;
  }

  .quickbuy__field {
    grid-column: span 1;
  }

  .quickbuy__field:first-child,
  .quickbuy__total,
  .quickbuy .quickbuy__buy {
    grid-column: span 2;
  }

  .quickbuy__total {
    padding: 14px 16px;
  }

  .quickbuy__unit {
    display: inline;
  }

  .qb-stepper button,
  .qb-stepper input {
    height: var(--touch);
  }

  .qb-stepper button {
    width: var(--touch);
  }

  .qb-more {
    min-height: var(--touch);
  }

  .qb-stepper--modems input {
    width: 56px;
  }
}

/* Окно параметров: компактные отступы */
#params-dialog .field:first-child {
  margin-top: 8px;
}

/* Ширина полей по длине значений: тариф шире, срок уже */
@media (min-width: 768px) {
  .quickbuy {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .quickbuy__field:nth-child(1) {
    grid-column: span 5;
  }

  .quickbuy__field:nth-child(2) {
    grid-column: span 4;
  }

  .quickbuy__field:nth-child(3) {
    grid-column: span 3;
  }

  .quickbuy__total,
  .quickbuy .quickbuy__buy {
    grid-column: span 6;
  }
}

.qb-more__short {
  display: none;
}

/* Mobile: счётчик и «Ещё параметры» в одну строку — кнопка «Купить» остаётся в первом экране */
@media (max-width: 767px) {
  .quickbuy__extra {
    flex-wrap: nowrap;
    justify-content: space-between;
    margin-top: 8px;
  }

  .qb-qty-unit,
  .qb-more__value,
  .qb-more__full {
    display: none;
  }

  .qb-more__short {
    display: inline;
  }

  .hero .hero__sub {
    font-size: 15px;
  }
}

/* ---------- Первый экран: 4 поля (тариф, страна, оператор и город, срок) ---------- */
.quickbuy__field[hidden] {
  display: none;
}

.qb-static {
  display: flex;
  align-items: center;
  min-height: var(--touch);
  margin-top: 4px;
  color: var(--c-hero-muted);
  font-size: 18px;
}

@media (min-width: 768px) {
  .quickbuy__field:nth-child(1) {
    grid-column: span 4;
  }

  .quickbuy__field:nth-child(2),
  .quickbuy__field:nth-child(3) {
    grid-column: span 3;
  }

  .quickbuy__field:nth-child(4) {
    grid-column: span 2;
  }

  /* У лицензии ProxyFarm поля оператора нет — три поля пошире */
  .quickbuy:has(#qb-op-field[hidden]) .quickbuy__field:nth-child(1) {
    grid-column: span 5;
  }

  .quickbuy:has(#qb-op-field[hidden]) .quickbuy__field:nth-child(2) {
    grid-column: span 4;
  }

  .quickbuy:has(#qb-op-field[hidden]) .quickbuy__field:nth-child(4) {
    grid-column: span 3;
  }

  .quickbuy .dd__button {
    font-size: clamp(21px, 2.5vh, 26px);
  }
}

@media (max-width: 767px) {
  /* Порядок на телефоне: тариф; страна + срок; оператор и город; стоимость; купить */
  .quickbuy__field:nth-child(1) {
    order: 1;
  }

  .quickbuy__field:nth-child(2) {
    order: 2;
  }

  .quickbuy__field:nth-child(4) {
    order: 3;
  }

  .quickbuy__field:nth-child(3) {
    order: 4;
    grid-column: span 2;
  }

  .quickbuy__total {
    order: 5;
  }

  .quickbuy .quickbuy__buy {
    order: 6;
  }

  /* Оценка есть в полосе доверия сразу ниже — на телефоне экономим место для формы */
  .hero__rating {
    display: none;
  }

  .hero h1 {
    margin-top: 0;
    font-size: 28px;
  }

  .qb-static {
    font-size: 16px;
  }
}

/* ---------- Нижняя полоса первого экрана на градиенте ---------- */
.hero {
  padding-bottom: 0;
}

.hero .hero__inner {
  margin-block: auto;
}

.hero__bottom {
  position: relative;
  width: 100%;
  margin-top: clamp(24px, 4vh, 48px);
  padding: 32px 0 20px;
  background: linear-gradient(180deg, rgb(11 18 32 / 0) 0%, rgb(11 18 32 / 0.9) 45%, rgb(11 18 32 / 0.98) 100%);
}

.hero__bottom .hero__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 36px;
  margin: 0 auto;
}

.hero__bottom .hero__link {
  gap: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.hero__bottom .hero__link [data-icon] {
  color: var(--c-accent-light);
}

.hero__bottom .hero__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 767px) {
  .hero__bottom {
    margin-top: 20px;
    padding: 20px 0 12px;
  }

  .hero__bottom .hero__links {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .hero__bottom .hero__link {
    font-size: 15px;
  }
}

/* Форма из четырёх полей шире, чтобы значения не обрезались */
@media (min-width: 768px) {
  .quickbuy {
    max-width: clamp(1100px, 82vw, 1400px);
  }

  .quickbuy__field {
    padding-inline: 24px;
  }

  .quickbuy .dd__button {
    font-size: clamp(20px, 2.4vh, 25px);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  /* Узкие экраны: оператор и срок — во второй ряд к стоимости не уходят, а делят ширину поровну */
  .quickbuy__field:nth-child(1),
  .quickbuy__field:nth-child(2),
  .quickbuy__field:nth-child(3),
  .quickbuy__field:nth-child(4) {
    grid-column: span 6;
  }
}

/* Mobile: цена слева, счётчик справа — в одну строку */
@media (max-width: 767px) {
  .quickbuy__total {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 12px;
  }

  .quickbuy__total .quickbuy__label {
    grid-column: 1;
  }

  .quickbuy__sum {
    grid-column: 1;
  }

  .quickbuy__unit {
    display: none;
  }

  .quickbuy__extra {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
  }

  .qb-qty-unit {
    display: none;
  }
}

/* ---------- Первый экран ровно в высоту окна (100svh) ---------- */
.hero__link-short {
  display: none;
}

@media (max-width: 767px) {
  .hero {
    padding-top: 14px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero .hero__sub {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.45;
  }

  .quickbuy {
    margin-top: 16px;
  }

  .quickbuy__field,
  .quickbuy__total {
    padding: 11px 14px;
  }

  .dd__button {
    min-height: 44px;
  }

  .quickbuy .quickbuy__buy {
    min-height: 56px;
  }

  /* Нижняя полоса: три компактные кнопки в один ряд */
  .hero__bottom {
    margin-top: 12px;
    padding: 10px 0 10px;
  }

  .hero__bottom .hero__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    flex-direction: row;
    gap: 6px;
  }

  .hero__bottom .hero__link {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 56px;
    padding: 6px 4px;
    border: 1px solid rgb(255 255 255 / 0.1);
    border-radius: 12px;
    background: rgb(255 255 255 / 0.05);
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
  }

  .hero__link-full {
    display: none;
  }

  .hero__link-short {
    display: inline;
  }
}

/* На телефоне кнопка чата не закрывает нижнюю полосу первого экрана */
@media (max-width: 767px) {
  body.hero-in-view .chat-fab {
    transform: translateY(160%);
    pointer-events: none;
  }
}

.chat-fab {
  transition:
    bottom 0.2s ease,
    transform 0.25s ease;
}

/* ---------- Ссылки посередине между формой и низом первого экрана ---------- */
/* Верхняя и нижняя зоны делят свободное место поровну: форма по центру,
   ряд ссылок — посередине нижней зоны */
.hero::before {
  content: '';
  flex: 1 1 0;
}

.hero .hero__inner {
  margin-block: 0;
}

.hero__bottom {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: clamp(16px, 3vh, 32px) 0;
  background: none;
}

.hero__bottom .hero__links {
  width: auto;
  padding: 10px 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(11 18 32 / 0.2), rgb(18 30 46 / 0.95) 20%, rgb(18 30 46 / 0.95) 80%, rgb(11 18 32 / 0.2));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.06),
    0 10px 30px rgb(0 0 0 / 0.35);
}

@media (max-width: 767px) {
  .hero::before {
    flex: 0.4 1 0;
  }

  .hero__bottom {
    padding: 12px 0;
  }

  .hero__bottom .hero__links {
    width: 100%;
    padding: 0 var(--gutter);
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
}

/* ---------- Пункты списка не переносятся ---------- */
.dd__opt-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dd__option {
  gap: 16px;
}

@media (min-width: 768px) {
  /* Панель может быть шире узкой плашки */
  .quickbuy .dd__popup {
    min-width: 300px;
  }

  /* У крайней правой плашки панель раскрывается влево — не выходит за экран */
  .quickbuy__field:nth-child(4) .dd__popup {
    left: auto;
    right: -1px;
  }
}

/* Разделители между группами списка: операторы, «Прокси» / «Софт» */
.dd__group:not(:first-child) {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}

@media (min-width: 768px) {
  .quickbuy__field:nth-child(3) .dd__popup {
    min-width: 340px;
  }
}

/* ---------- Плашка ссылок первого экрана — то же стекло, что у полей ---------- */
@media (min-width: 768px) {
  .hero__bottom .hero__links {
    position: relative;
    isolation: isolate;
    padding: 6px 28px;
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 14px;
    background: linear-gradient(180deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.03));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1);
  }

  .hero__bottom .hero__links::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
  }
}

/* ---------- Ширина полей по длине содержимого ---------- */
@media (min-width: 1200px) {
  .quickbuy {
    grid-template-columns: 1.3fr 1fr 1.35fr 0.75fr;
    max-width: min(1400px, 92vw);
  }

  .quickbuy .quickbuy__field:nth-child(n) {
    grid-column: auto;
  }

  .quickbuy .quickbuy__total {
    grid-column: 1 / 3;
  }

  .quickbuy .quickbuy__buy {
    grid-column: 3 / 5;
  }

  /* Лицензия ProxyFarm: три поля */
  .quickbuy:has(#qb-op-field[hidden]) {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .quickbuy:has(#qb-op-field[hidden]) .quickbuy__total {
    grid-column: 1 / 2;
  }

  .quickbuy:has(#qb-op-field[hidden]) .quickbuy__buy {
    grid-column: 2 / 4;
  }
}

/* ---------- Списки: разделители между пунктами ---------- */
.dd__option {
  position: relative;
}

.dd__option + .dd__option::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: rgb(255 255 255 / 0.07);
  pointer-events: none;
}

/* У выбранного и подсвеченного пункта линии не нужны */
.dd__option[aria-selected='true']::before,
.dd__option.is-active::before,
.dd__option:hover::before,
.dd__option[aria-selected='true'] + .dd__option::before,
.dd__option.is-active + .dd__option::before,
.dd__option:hover + .dd__option::before {
  opacity: 0;
}

/* ---------- Нет в наличии / недоступно ---------- */
.dd__option[aria-disabled='true'] .dd__opt-label {
  color: rgb(255 255 255 / 0.42);
}

.dd__option[aria-disabled='true'] .flag {
  filter: grayscale(1);
  opacity: 0.45;
}

.dd__meta--off {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: rgb(240 150 70 / 0.14);
  color: #f2b27a;
  font-size: 13px;
  font-weight: 600;
}

.dd__meta--off svg {
  width: 14px;
  height: 14px;
}

/* ---------- Ширина списка тарифов и мелкие экраны ---------- */
@media (min-width: 768px) {
  .quickbuy__field:nth-child(1) .dd__popup {
    min-width: 360px;
  }
}

/* Телефон: флаг страны только в списке, в половинной плашке — название целиком */
@media (max-width: 767px) {
  .quickbuy__field:nth-child(2) .dd__button .flag {
    display: none;
  }

  .quickbuy__field:nth-child(2) .dd__button,
  .quickbuy__field:nth-child(4) .dd__button {
    font-size: 17px;
  }
}

/* Планшет (768–1199): всё помещается в высоту окна */
@media (min-width: 768px) and (max-width: 1199px) {
  .hero h1 {
    font-size: clamp(32px, min(4.6vw, 5.4vh), 48px);
  }

  .hero__rating {
    min-height: 30px;
  }

  .hero h1 {
    margin-top: 12px;
  }

  .quickbuy {
    margin-top: 20px;
  }

  .quickbuy__field,
  .quickbuy__total,
  .quickbuy .quickbuy__buy {
    min-height: 0;
    padding-block: 14px;
  }

  .quickbuy .quickbuy__buy {
    min-height: 72px;
  }
}

@media (min-width: 768px) {
  .quickbuy__field:nth-child(2) .dd__popup {
    min-width: 340px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .hero__rating {
    display: none;
  }

  .hero h1 {
    margin-top: 0;
  }
}

/* ---------- Лицензия ProxyFarm: два поля в ряд, как у proxy-seller ---------- */
.quickbuy.is-farm #qb-second-field,
.quickbuy.is-farm #qb-op-field {
  display: none;
}

.quickbuy.is-farm {
  grid-template-columns: 1fr 1fr !important;
}

.quickbuy.is-farm > * {
  grid-column: auto !important;
}

@media (max-width: 767px) {
  .quickbuy.is-farm > * {
    grid-column: span 2 !important;
  }
}

/* ---------- Панель списка — во всю ширину своей плашки ---------- */
@media (min-width: 768px) {
  .quickbuy .dd__popup,
  .quickbuy__field:nth-child(n) .dd__popup {
    left: -1px;
    right: auto;
    width: calc(100% + 2px);
    min-width: 0;
  }

  .quickbuy__field:nth-child(1) .dd__popup {
    --dd-min: 360px;
  }

  .quickbuy__field:nth-child(2) .dd__popup,
  .quickbuy__field:nth-child(3) .dd__popup {
    --dd-min: 340px;
  }

  /* Крайняя правая плашка: если панель шире неё — раскрывается влево */
  .quickbuy__field:nth-child(4) .dd__popup {
    left: auto;
    right: -1px;
  }
}

/* ==========================================================================
   «Почему Frigate Proxy» (ПК): окно из 3 карточек с воздухом и стрелки
   с мягкой заливкой, как у proxy-seller. Mobile не меняется.
   ========================================================================== */
@media (max-width: 959px) {
  .feature {
    order: 0 !important;
  }

  .feature__art {
    display: none;
  }

  .features__nav {
    display: none !important;
  }
}

@media (min-width: 960px) {
  .features-wrap {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    --feat-gap: 14px;
    --feat-low: 200px;
    --feat-high: 320px;
  }

  .features,
  .features:is(*) {
    align-items: flex-start;
    gap: var(--feat-gap);
    height: auto;
  }

  .feature.is-off {
    display: none;
  }

  .feature,
  .feature:not(.is-active) {
    flex: 1 1 0;
    height: var(--feat-low);
  }

  .feature.is-active {
    flex: 2.1 1 0;
    height: var(--feat-high);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46%;
    grid-template-rows: auto 1fr;
  }

  /* Свёрнутые: номер сверху, полное название снизу */
  .feature:not(.is-active) .feature__head {
    height: 100%;
    padding: 26px 24px;
  }

  .feature .feature__title--full,
  .feature:not(.is-active) .feature__title--full {
    display: block;
    font-size: 17px;
    line-height: 1.3;
  }

  .feature .feature__title--short {
    display: none !important;
  }

  /* Активная: текст слева с воздухом, сцена справа */
  .feature.is-active .feature__head {
    grid-column: 1;
    grid-row: 1;
    padding: 36px 8px 0 36px;
  }

  .feature.is-active .feature__title--full {
    font-size: 27px;
    line-height: 1.2;
  }

  .feature.is-active .feature__body {
    grid-column: 1;
    grid-row: 2;
    display: block;
    align-self: end;
    padding: 0 8px 34px 36px;
  }

  .feature.is-active .feature__body p {
    max-width: 30ch;
    font-size: 16px;
  }

  .feature:not(.is-active) .feature__art {
    display: none;
  }

  .feature.is-active .feature__art {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 18px 18px 18px 0;
  }

  /* Стрелки — под свёрнутыми карточками, мягкая заливка без обводки */
  .features__nav {
    position: absolute;
    top: calc(var(--feat-low) + 16px);
    left: calc((100% - 2 * var(--feat-gap)) * 2.1 / 4.1 + var(--feat-gap));
    display: flex;
    gap: 10px;
    margin: 0;
  }

  .features__cta-row {
    margin-top: 36px;
  }
}

.feat-arrow {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: #eef1ec;
  color: var(--c-text);
  cursor: pointer;
  transition: background-color 0.15s;
}

.feat-arrow:hover {
  background: #e2e7df;
}

.feat-arrow svg {
  width: 20px;
  height: 20px;
}

/* Активная карточка без сцены: заголовок сверху, текст снизу, много воздуха */
@media (min-width: 960px) {
  .feature.is-active {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .feature.is-active .feature__head {
    padding: 40px 44px 0;
    gap: 14px;
  }

  .feature.is-active .feature__body {
    padding: 0 44px 40px;
  }

  .feature.is-active .feature__body p {
    max-width: 38ch;
    font-size: 17px;
    line-height: 1.55;
  }

  .feature__num {
    font-size: 15px;
    font-weight: 500;
  }

  .feature:not(.is-active) .feature__title--full {
    font-weight: 600;
  }
}

/* Стрелки — по нижнему краю активной карточки, как у proxy-seller.
   Содержимое активной карточки — одной группой по центру */
@media (min-width: 960px) {
  .features-wrap {
    --feat-high: 320px;
    --feat-arrow: 52px;
    --feat-low: calc(var(--feat-high) - var(--feat-arrow) - 20px);
  }

  .features__nav {
    top: calc(var(--feat-high) - var(--feat-arrow));
  }

  .feature.is-active {
    justify-content: center;
    gap: 22px;
    padding: 40px 44px;
  }

  .feature.is-active .feature__head,
  .feature.is-active .feature__body {
    flex: none;
    padding: 0;
  }

  .feature.is-active .feature__head {
    gap: 12px;
  }
}

.feature__link {
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.5);
  text-underline-offset: 4px;
  cursor: pointer;
}

.feature__link:hover {
  text-decoration-color: #fff;
}

.feature__link:focus-visible {
  outline-color: #fff;
}

.feature:not(.is-active) .feature__link {
  display: none;
}

@media (min-width: 960px) {
  .feature.is-active .feature__body {
    align-self: stretch;
  }
}

/* Ширина карточек меняется мгновенно — стрелки всегда точно под первой свёрнутой */
@media (min-width: 960px) {
  .feature {
    transition: background-color 0.3s ease;
  }

  .feature.is-active .feature__head,
  .feature.is-active .feature__body {
    animation: reco-in 0.35s ease;
  }
}

/* «Получить тест» в карточке — белая кнопка на зелёном */
.feature__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  margin-top: 20px;
  padding: 0 22px;
  border-radius: 12px;
  background: #fff;
  color: var(--c-primary-ink);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s;
}

.feature__link:hover {
  background: var(--c-accent-light);
  color: var(--c-primary-ink);
}

.feature__link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ==========================================================================
   «Почему Frigate Proxy» на ПК — своя композиция: список слева, панель справа.
   UX тот же, что у карусели: один пункт раскрыт, автопереключение, пауза при наведении
   ========================================================================== */
.why {
  display: none;
}

@media (min-width: 960px) {
  .features-wrap {
    display: none;
  }

  .why {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 32px;
    max-width: 1120px;
    margin: 0 auto;
  }

  .why__list {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .why__tab {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 18px;
    width: 100%;
    min-height: 68px;
    padding: 20px 8px 20px 4px;
    border: 0;
    border-bottom: 1px solid var(--c-border);
    background: none;
    color: var(--c-muted);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .why__tab:hover {
    color: var(--c-text);
  }

  .why__tab[aria-selected='true'] {
    color: var(--c-text);
    font-weight: 600;
  }

  .why__tab:focus-visible {
    outline-offset: -3px;
  }

  .why__num {
    flex: none;
    min-width: 30px;
    color: var(--c-link, var(--c-primary));
    font-size: 14px;
    font-weight: 600;
  }

  /* Полоска прогресса до автопереключения */
  .why__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    overflow: hidden;
    pointer-events: none;
  }

  .why__progress span {
    display: block;
    height: 100%;
    background: var(--c-primary);
    transform: scaleX(0);
    transform-origin: left;
  }

  .why__tab[aria-selected='true'] .why__progress span {
    animation: why-progress 6.5s linear forwards;
  }

  .why.is-hover .why__progress span,
  .why.is-focus .why__progress span,
  .why.is-offscreen .why__progress span {
    animation-play-state: paused;
  }

  /* Панель активного пункта: номер — в углу, заголовок — по центру, текст — внизу.
     Отступ от краёв панели — 40 px со всех сторон */
  .why__panel {
    position: relative;
    display: flex;
    min-height: 480px;
    padding: 40px;
    overflow: hidden;
    border-radius: 24px;
    background:
      var(--c-primary);
    color: #fff;
  }

  .why__panel-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    gap: 32px;
    flex: 1;
    animation: reco-in 0.35s ease;
  }

  .why__panel-num {
    align-self: start;
    color: var(--c-accent-light);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
  }

  .why__panel-foot {
    align-self: end;
  }

  .why__panel-title {
    max-width: 16ch;
    font-size: 36px;
    line-height: 1.12;
  }

  .why__panel-text {
    max-width: 40ch;
    color: rgb(255 255 255 / 0.92);
    font-size: 18px;
    line-height: 1.55;
  }

}

@keyframes why-progress {
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .why__progress {
    display: none;
  }
}

/* Белая кнопка на зелёном: при наведении — чёрная */
.why__cta,
.feature__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 28px;
  padding: 0 26px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--c-primary-ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.why__cta:hover,
.feature__link:hover {
  background: var(--c-ink);
  color: #fff;
}

.why__cta:focus-visible,
.feature__link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ==========================================================================
   «Типы прокси» на ПК — зелёная секция-перебивка.
   На зелёном фоне инверсия наоборот: плитки — полупрозрачная белая заливка,
   наведение — плотнее, выбор — белая плитка с тёмным текстом.
   Карточка типа — белая, с воздухом; высота не меняется при смене вкладки
   ========================================================================== */
@media (min-width: 1024px) {
  .section--green {
    padding-block: 96px;
    background:
      var(--c-primary);
    color: #fff;
  }

  .section--green .section__head {
    margin-bottom: 40px;
  }

  .section--green .section__lead {
    color: rgb(255 255 255 / 0.85);
  }

  .section--green :focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
  }

  .section--green .product :focus-visible,
  .section--green .compare-all__body :focus-visible {
    outline-color: var(--c-ink-text, var(--c-ink));
  }

  /* Вкладки типов: отдельные плитки с заливкой, без общей рамки */
  .section--green .ptabs {
    gap: 12px;
    margin-bottom: 24px;
    padding: 0;
    border: 0;
    background: none;
  }

  .section--green .ptab {
    justify-content: center;
    gap: 6px;
    min-height: 88px;
    padding: 18px 22px;
    border-radius: 18px;
    background: rgb(255 255 255 / 0.12);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .section--green .ptab__price {
    color: rgb(255 255 255 / 0.75);
    font-size: 14px;
    transition: color 0.2s ease;
  }

  .section--green .ptab[aria-selected='true'] {
    background: #fff;
    color: var(--c-text);
  }

  .section--green .ptab[aria-selected='true'] .ptab__price {
    color: var(--c-primary-ink);
  }

  /* Карточка типа */
  .section--green .product {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    padding: 48px;
    border: 0;
    border-radius: 28px;
    background: #fff;
    color: var(--c-text);
    box-shadow: 0 24px 60px rgb(10 40 0 / 0.18);
  }

  .section--green .product__main,
  .section--green .product__stats {
    animation: reco-in 0.3s ease;
  }

  .section--green .product__main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .section--green .product__title {
    margin-top: 16px;
    font-size: 34px;
    line-height: 1.12;
  }

  /* Без бейджа заголовок — вровень с верхом плиток */
  .section--green .product__title:first-child {
    margin-top: 0;
  }

  .section--green .product__desc {
    margin-top: 16px;
    max-width: 46ch;
    font-size: 18px;
    line-height: 1.6;
  }

  .section--green .product__best-title {
    margin-top: 32px;
    font-size: 17px;
  }

  .section--green .product__best {
    gap: 12px;
    margin-top: 14px;
    font-size: 17px;
  }

  .section--green .product__best li {
    gap: 12px;
  }

  .section--green .product__best svg {
    flex: none;
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 999px;
    background: var(--c-primary-soft);
  }

  /* Кнопки прижаты к низу колонки — на всех вкладках на одной высоте */
  .section--green .product__actions {
    gap: 12px;
    margin-top: auto;
    padding-top: 40px;
  }

  /* Вторые кнопки (в карточке и в таблице) — заливка вместо обводки, наведение — зелёное */
  .section--green .product__actions .btn--outline,
  .section--green .compare .btn--outline {
    border-color: transparent;
    background: var(--c-bg-soft);
    color: var(--c-text);
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  /* Цифры: сетка от верха «Популярный выбор» до низа кнопки «Купить».
     В плитке подпись — сверху, значение — снизу, отступы 20 px; значок «i» — справа, 20 px от края */
  .section--green .product__stats {
    grid-auto-rows: 1fr;
    gap: 12px;
    align-self: stretch;
  }

  .section--green .stat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-radius: 20px;
  }

  .section--green .stat__label {
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    line-height: 18px;
  }

  .section--green .stat__label .tip {
    flex: none;
    margin-left: 0;
  }

  .section--green .stat__value {
    margin-top: 0;
    font-size: 21px;
  }

  /* «Сравнить все типы в таблице» — белая полупрозрачная кнопка */
  .section--green .compare-all {
    margin-top: 40px;
  }

  .section--green .compare-all > summary {
    min-height: 56px;
    padding-inline: 28px;
    border-color: transparent;
    background: rgb(255 255 255 / 0.12);
    color: #fff;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .section--green .compare-all[open] > summary {
    background: #fff;
    color: var(--c-primary-ink);
  }

  .section--green .compare-all__body {
    margin-top: 32px;
  }

  .section--green .compare {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    color: var(--c-text);
  }

  /* Центральная композиция: таблица и сноска — по центру */
  .section--green .compare th,
  .section--green .compare td {
    text-align: center;
    vertical-align: middle;
  }

  .section--green .footnote {
    color: rgb(255 255 255 / 0.85);
    text-align: center;
  }

  .section--green .compare__more {
    margin-top: 24px;
  }

  /* «Подробнее о каждом типе →»: без подчёркивания; при наведении линия
     прорисовывается слева направо, стрелка сдвигается */
  .section--green .compare__more .link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-block: 8px;
    color: #fff;
    font-size: 17px;
    text-decoration: none;
  }

  .section--green .compare__more .link__text {
    background: linear-gradient(currentColor, currentColor) left bottom / 0 1.5px no-repeat;
    padding-bottom: 2px;
    transition: background-size 0.3s ease;
  }

  .section--green .compare__more .link__arrow {
    transition: transform 0.3s ease;
  }

  /* Обе кнопки в один ряд на всех вкладках, включая «Попробовать 7 дней бесплатно» */
  .section--green .product__actions .btn {
    padding-inline: 24px;
    font-size: 17px;
  }
}

/* Узкий ПК: плотнее, чтобы вкладки и карточка помещались в экран */
@media (min-width: 1024px) and (max-width: 1279px) {
  .section--green .product {
    gap: 40px;
    padding: 40px;
  }

  .section--green .product__title {
    font-size: 30px;
  }

  .section--green .product__desc,
  .section--green .product__best {
    font-size: 16px;
  }

  .section--green .product__best-title {
    margin-top: 24px;
  }

  .section--green .product__actions {
    padding-top: 32px;
  }

  .section--green .product__actions .btn {
    min-height: 56px;
    padding-inline: 20px;
    font-size: 16px;
  }

  .section--green .stat__value {
    font-size: 19px;
  }

  .section--green .ptab {
    padding: 16px 18px;
    font-size: 16px;
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .section--green .ptab:not([aria-selected='true']):hover {
    background: rgb(255 255 255 / 0.22);
  }

  .section--green .product__actions .btn--outline:hover,
  .section--green .compare .btn--outline:hover {
    background: var(--c-primary);
    color: #fff;
  }

  .section--green .compare-all > summary:hover {
    background: #fff;
    color: var(--c-primary-ink);
  }

  .section--green .compare__more .link:hover .link__text {
    background-size: 100% 1.5px;
  }

  .section--green .compare__more .link:hover .link__arrow {
    transform: translateX(4px);
  }
}

/* ==========================================================================
   ПК: заказ только в форме первого экрана — блок «Настройте заказ» скрыт.
   Его логика (расчёт, купон, корзина, оформление) работает через форму.
   В плашке «Общая стоимость»: цена за день, «Есть купон?» и «В корзину»
   ========================================================================== */
.qb-desk {
  display: none;
}

@media (min-width: 1024px) {
  #buy {
    display: none;
  }

  .qb-desk {
    display: inline;
  }

  .qb-mob {
    display: none;
  }

  .qb-tools {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    margin-left: auto;
  }

  .qb-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--c-accent-light);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
  }

  .qb-link svg {
    width: 16px;
    height: 16px;
  }

  .qb-link:hover {
    color: #fff;
  }

  .qb-coupon {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
  }

  .qb-coupon--ok {
    color: #fff;
    font-weight: 600;
  }

  .qb-coupon--ok svg {
    width: 16px;
    height: 16px;
    color: var(--c-accent-light);
  }

  .qb-coupon--ok .qb-link {
    margin-left: 4px;
    font-weight: 500;
  }

  .qb-coupon__input {
    width: 150px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid rgb(255 255 255 / 0.2);
    border-radius: 10px;
    background: rgb(255 255 255 / 0.08);
    color: #fff;
    font: inherit;
    font-size: 14px;
    text-transform: uppercase;
  }

  .qb-coupon__input::placeholder {
    color: var(--c-hero-muted);
    text-transform: none;
  }

  .qb-coupon__input:focus {
    border-color: var(--c-accent-light);
    outline: none;
  }

  .qb-coupon__input[aria-invalid='true'] {
    border-color: #f2a39b;
  }

  .qb-coupon__apply {
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: var(--c-ink-text, var(--c-ink));
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .qb-coupon__apply:hover {
    background: var(--c-primary);
    color: #fff;
  }

  .qb-coupon__msg {
    flex-basis: 100%;
    color: #f2a39b;
    font-size: 13px;
  }

  /* Переход к форме с любой кнопки «Выбрать» / «Применить» — короткая подсветка плашек */
  .quickbuy.is-flash .quickbuy__field,
  .quickbuy.is-flash .quickbuy__total {
    animation: qb-flash 1.2s ease;
  }
}

@keyframes qb-flash {
  0%,
  100% {
    border-color: rgb(255 255 255 / 0.1);
  }

  30% {
    border-color: var(--c-accent-light);
  }
}

/* ==========================================================================
   «Типы прокси» на ПК — ровно на экран (100svh минус шапка), содержимое по центру,
   сверху и снизу равные отступы. Большие плашки — 40 px внутри, маленькие — 20 px.
   «Сравнить все типы» и «Подробнее о каждом типе» — в одном ряду
   ========================================================================== */
@media (min-width: 1024px) {
  .section--green {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100svh - var(--header-h));
    padding-block: 40px;
  }

  .section--green > .container {
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    column-gap: 24px;
    width: 100%;
  }

  .section--green > .container > * {
    grid-column: 1 / -1;
  }

  .section--green .section__head {
    margin-bottom: 32px;
  }

  .section--green .ptabs {
    margin-bottom: 20px;
  }

  .section--green .ptab {
    min-height: 0;
    padding: 20px;
  }

  .section--green .product {
    gap: 40px;
    padding: 40px;
  }

  .section--green .product__desc {
    margin-top: 12px;
  }

  .section--green .product__best-title {
    margin-top: 24px;
  }

  .section--green .product__actions {
    padding-top: 32px;
  }

  .section--green .compare-all {
    grid-column: 2;
    margin-top: 32px;
  }

  .section--green .compare__more {
    grid-column: 3;
    align-self: start;
    display: flex;
    align-items: center;
    min-height: 56px;
    margin-top: 32px;
  }

  /* Открытая таблица — на всю ширину, ссылка уходит под неё */
  .section--green .compare-all[open] {
    grid-column: 1 / -1;
  }

  .section--green .compare-all[open] + .compare__more {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

/* «Типы прокси»: плотнее, чтобы блок помещался в экран ноутбука (1440×900) */
@media (min-width: 1024px) {
  .section--green .section__head {
    margin-bottom: 28px;
  }

  .section--green .ptab {
    padding: 16px 20px;
  }

  .section--green .product__title {
    font-size: 30px;
  }

  .section--green .product__title:not(:first-child) {
    margin-top: 12px;
  }

  .section--green .product__desc {
    font-size: 16px;
    line-height: 1.55;
  }

  .section--green .product__best-title {
    margin-top: 20px;
    font-size: 16px;
  }

  .section--green .product__best {
    gap: 8px;
    margin-top: 10px;
    font-size: 16px;
  }

  .section--green .product__actions {
    padding-top: 28px;
  }

  .section--green .product__actions .btn {
    min-height: 56px;
  }

  .section--green .stat__value {
    font-size: 19px;
  }

  .section--green .compare-all,
  .section--green .compare__more {
    margin-top: 28px;
  }
}

/* Плашка стоимости на ПК: строка «количество · купон · корзина» не переносится,
   ошибка купона — под полем поверх нижнего отступа. Плашка не меняет высоту, экран не скачет */
@media (min-width: 1024px) {
  .quickbuy__extra {
    flex-wrap: nowrap;
    min-height: 40px;
    white-space: nowrap;
  }

  .qb-tools {
    flex-wrap: nowrap;
  }

  .qb-coupon {
    position: relative;
    flex-wrap: nowrap;
  }

  .qb-coupon__msg {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    white-space: nowrap;
  }
}

@media (min-width: 1024px) {
  /* Место под строку ошибки купона внутри плашки */
  .quickbuy__total {
    padding-bottom: 32px;
  }
}

@media (min-width: 1024px) {
  /* «Типы прокси» шириной как форма первого экрана — края страницы на одной линии, больше воздуха */
  .section--green > .container {
    max-width: calc(max(var(--container), 70vw) + var(--gutter) * 2);
  }

  /* «Популярный выбор» — с воздухом, как у кнопок */
  .section--green .product .badge {
    padding: 6px 14px;
    font-size: 13px;
    line-height: 1.2;
  }
}

/* Невысокие экраны ПК (ноутбуки 1440×900): «Типы прокси» плотнее по вертикали, чтобы влезть в экран.
   Внутренние отступы плашек (40 / 20 px) не меняются */
@media (min-width: 1024px) and (max-height: 940px) {
  .section--green .section__head {
    margin-bottom: 20px;
  }

  .section--green .ptab {
    padding-block: 12px;
  }

  .section--green .ptabs {
    margin-bottom: 16px;
  }

  .section--green .product__title {
    font-size: 28px;
  }

  .section--green .product__title:not(:first-child),
  .section--green .product__desc {
    margin-top: 8px;
  }

  .section--green .product__best-title {
    margin-top: 16px;
  }

  .section--green .product__best {
    gap: 6px;
    margin-top: 8px;
  }

  .section--green .product__actions {
    padding-top: 24px;
  }

  .section--green .compare-all,
  .section--green .compare__more {
    margin-top: 20px;
  }
}

/* Рекомендация в «Для чего вам прокси?»: цена — в кнопке («Выбрать от 40 ₽», как «Купить от 290 ₽» в типах),
   между строками — воздух. Mobile — прежний вид */
.reco__btn-price {
  display: none;
}

@media (min-width: 1024px) {
  .reco__btn-tail,
  .reco__price {
    display: none;
  }

  .reco__btn-price {
    display: inline;
  }

  .reco__card .btn--lg {
    min-height: 60px;
    font-size: 18px;
  }

  .reco__eyebrow {
    font-size: 15px;
  }

  .reco__title {
    margin-top: 14px;
  }

  .reco__why {
    margin-top: 16px;
  }

  .reco__facts {
    gap: 10px;
    margin-top: 24px;
  }

  .reco__facts li {
    padding: 8px 14px;
  }

  .reco__alt {
    margin-top: 20px;
    line-height: 1.55;
  }

  .reco__side {
    gap: 16px;
  }

  .task {
    min-height: 200px;
  }
}

/* ПК: расстояние между блоками ≈ 250 px — по 125 px сверху и снизу у каждой секции.
   «Типы прокси» — на высоту экрана, со своими равными отступами внутри */
@media (min-width: 1024px) {
  :root {
    --section-y: 125px;
  }

  .section--tight {
    padding-top: var(--section-y);
  }

  .trust {
    padding-bottom: var(--section-y);
  }
}

/* «Есть купон?» и «В корзину» — кнопки-плашки высотой как счётчик количества:
   заливка, иконка, наведение — зелёная заливка и белый текст */
@media (min-width: 1024px) {
  .qb-tools {
    gap: 8px;
  }

  .qb-tools .qb-link {
    gap: 8px;
    height: 40px;
    min-height: 0;
    padding: 0 16px;
    border-radius: 10px;
    background: rgb(255 255 255 / 0.08);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .qb-tools .qb-link svg {
    color: var(--c-accent-light);
    transition: color 0.2s ease;
  }

  .qb-tools .qb-link:hover {
    background: var(--c-primary);
    color: #fff;
  }

  .qb-tools .qb-link:hover svg {
    color: #fff;
  }

  .qb-tools .qb-link.is-done {
    background: rgb(182 238 160 / 0.16);
    color: var(--c-accent-light);
  }

  /* Применённый купон — плашка той же высоты, «Убрать» внутри */
  .qb-coupon--ok {
    gap: 8px;
    height: 40px;
    padding: 0 6px 0 14px;
    border-radius: 10px;
    background: rgb(182 238 160 / 0.14);
    font-size: 14px;
  }

  .qb-coupon--ok .qb-link {
    height: 28px;
    margin-left: 4px;
    padding: 0 10px;
    border-radius: 8px;
    background: rgb(255 255 255 / 0.1);
    color: #fff;
    font-size: 13px;
  }

  .qb-coupon__input,
  .qb-coupon__apply {
    height: 40px;
  }
}

/* ==========================================================================
   Шапка на ПК — плавающая стеклянная плашка: 40 px от верха и боков, закреплена.
   Стекло тёмное полупрозрачное — читается и над первым экраном, и над белыми блоками.
   --header-h на ПК = 40 px отступа + 72 px плашки: от него считаются якоря, всплывашки и «Типы прокси»
   ========================================================================== */
@media (min-width: 1024px) {
  :root {
    --header-gap: 40px;
    --header-bar: 72px;
    --header-h: calc(var(--header-gap) + var(--header-bar));
  }

  .header {
    position: fixed;
    top: var(--header-gap);
    left: var(--header-gap);
    right: var(--header-gap);
    isolation: isolate;
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 16px;
    background: linear-gradient(180deg, rgb(30 41 58 / 0.82), rgb(18 28 42 / 0.82));
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.08),
      0 12px 32px rgb(0 0 0 / 0.25);
  }

  .header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
  }

  .header > .header__inner {
    max-width: none;
    height: var(--header-bar);
    padding-inline: 24px;
  }

  /* Первый экран под плавающей шапкой: на всю высоту окна, содержимое ниже шапки */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(var(--header-h) + clamp(16px, 3vh, 40px));
  }

  /* «Купить прокси» в шапке: заливка вместо обводки, наведение — зелёная заливка */
  .header .header__cta {
    min-height: 44px;
    padding-inline: 20px;
    border-color: transparent;
    border-radius: 12px;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .header .header__cta.btn--outline {
    background: rgb(255 255 255 / 0.1);
    color: #fff;
  }

  .header .header__cta.btn--outline:hover,
  .header .header__cta.btn--primary:hover {
    border-color: transparent;
    background: var(--c-primary);
    color: #fff;
  }

  .header .header__cta.btn--primary {
    background: var(--c-primary);
  }

  .header .header__cta.btn--primary:hover {
    background: var(--c-primary-hover);
  }

  .header .lang {
    border-color: rgb(255 255 255 / 0.14);
  }

  .header .cart-btn__count {
    border-color: rgb(24 34 50);
  }
}

@media (min-width: 1280px) {
  .header > .header__inner {
    padding-inline: 40px;
  }
}

/* Невысокие экраны ПК после плавающей шапки (под блок остаётся 100svh − 112 px):
   ещё немного плотнее по вертикали, внутренние отступы плашек 40 / 20 px не трогаем */
@media (min-width: 1024px) and (max-height: 940px) {
  .section--green .section__head {
    margin-bottom: 16px;
  }

  .section--green .section__lead {
    margin-top: 4px;
  }

  .section--green .ptab {
    padding-block: 10px;
    font-size: 15px;
  }

  .section--green .ptabs {
    margin-bottom: 12px;
  }

  .section--green .product__title {
    font-size: 26px;
  }

  .section--green .product__desc,
  .section--green .product__best {
    font-size: 15px;
  }

  .section--green .product__desc {
    line-height: 1.5;
  }

  .section--green .product__best {
    gap: 4px;
  }

  .section--green .product__actions {
    padding-top: 20px;
  }

  .section--green .compare-all,
  .section--green .compare__more {
    margin-top: 16px;
  }
}

/* Шапка на ПК с видимым меню: логотип слева, пункты меню ровно по центру плашки, кнопки справа */
@media (min-width: 1120px) {
  .header > .header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .header .logo {
    justify-self: start;
    margin-right: 0;
  }

  .header .header__actions {
    justify-self: end;
    margin-left: 0;
  }
}

/* «Блог» и «О нас» — прямо в меню там, где хватает места; «Ещё» тогда не нужен */
.nav__inline-extra {
  display: none;
}

@media (min-width: 1720px) {
  .nav__inline-extra {
    display: list-item;
  }

  .nav__more {
    display: none;
  }
}

/* Шапка: чуть больше воздуха между пунктами меню и между элементами справа */
@media (min-width: 1120px) {
  .header .nav__list {
    gap: 4px;
  }

  .header .nav__link {
    padding: 10px 14px;
  }

  .header .header__actions {
    gap: 14px;
  }
}

@media (min-width: 1120px) and (max-width: 1439px) {
  .header .nav__link {
    padding-inline: 10px;
  }

  .header .header__actions {
    gap: 10px;
  }
}

/* Таблица сравнения: от края до содержимого — 40 px сверху и 40 px снизу, внутри шапки и строки кнопок — поровну */
@media (min-width: 1024px) {
  /* 37 + 3 px межстрочного интервала над бейджем = ровно 40 px до бейджа */
  .section--green .compare thead th {
    padding-top: 37px;
    padding-bottom: 20px;
  }

  .section--green .compare tfoot td {
    padding-top: 20px;
    padding-bottom: 40px;
  }
}

/* ==========================================================================
   Баланс строк, как кнопка Balance во Framer: короткие тексты переносятся ровными строками,
   у абзацев последняя строка не остаётся из одного слова
   ========================================================================== */
h1,
h2,
h3,
th,
td,
.badge,
.btn,
.stat__label,
.stat__value,
.ptab,
.task__title,
.why__title,
.why__panel-title,
.reco__title,
.reco__eyebrow,
.product__title,
.section__lead,
.hero__sub,
.footnote {
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

/* Ячейки таблицы сравнения — как маленькие плашки: по 20 px от краёв, текст не липнет */
@media (min-width: 1024px) {
  .section--green .compare th,
  .section--green .compare td {
    padding-inline: 20px;
  }
}

/* «Подробнее о каждом типе»: стрелку пока не показываем — только подчёркивание при наведении */
@media (min-width: 1024px) {
  .section--green .compare__more .link__arrow {
    display: none;
  }
}

/* ==========================================================================
   «Как это работает» на ПК — в духе proxy-seller: нумерация «/01», конкретные цифры на виду,
   понятное действие после объяснения. Шкала «0 → ≈ 10 мин» заполняется, шаги отмечаются по очереди.
   Карточки — заливка без обводки, наведение — зелёная заливка, текст белый. Mobile — прежний вид
   ========================================================================== */
.steps-track,
.steps__index,
.steps__time,
.steps-cta {
  display: none;
}

@media (min-width: 1024px) {
  .steps-track {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    color: var(--c-muted);
    font-size: 14px;
    font-weight: 600;
  }

  .steps-track__bar {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgb(14 23 38 / 0.08);
  }

  .steps-track__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--c-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 2.4s linear;
  }

  #how.is-run .steps-track__fill {
    transform: scaleX(1);
  }

  .steps {
    gap: 16px;
  }

  .steps__item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr auto auto;
    align-items: start;
    min-height: 280px;
    padding: 40px;
    border: 0;
    border-radius: 24px;
    background: var(--c-surface);
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .steps__item:not(:last-child)::after {
    content: none;
  }

  .steps__num {
    display: none;
  }

  .steps__index {
    display: block;
    color: var(--c-link, var(--c-primary));
    font-size: 15px;
    font-weight: 600;
    line-height: 28px;
    transition: color 0.2s ease;
  }

  /* Время шага — маленькая плашка; когда шкала дошла до шага — зелёная с галочкой */
  .steps__time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--c-bg-soft);
    color: var(--c-muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition:
      background-color 0.3s ease,
      color 0.3s ease;
  }

  .steps__item.is-done .steps__time {
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
  }

  .steps__item.is-done .steps__time::before {
    content: '✓';
  }

  .steps__item h3 {
    grid-column: 1 / -1;
    grid-row: 3;
    font-size: 22px;
    line-height: 1.2;
  }

  .steps__item p {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.55;
    transition: color 0.2s ease;
  }

  .steps-cta {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
  }

  .steps-cta__test {
    background: var(--c-surface);
    color: var(--c-text);
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .steps__item:hover {
    background: var(--c-primary);
    color: #fff;
  }

  .steps__item:hover p,
  .steps__item:hover .steps__index,
  .steps__item:hover .link {
    color: #fff;
  }

  .steps__item:hover .steps__time {
    background: rgb(255 255 255 / 0.16);
    color: #fff;
  }

  .steps-cta__test:hover {
    background: var(--c-primary);
    color: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .steps-track__fill {
    transition: none;
  }
}

/* «Как это работает»: заголовки шагов на одной линии во всех карточках, разная длина текста не сдвигает их */
@media (min-width: 1024px) {
  .steps__item {
    grid-template-rows: auto auto 1fr;
    min-height: 0;
  }

  .steps__item h3 {
    grid-row: 2;
    margin-top: 72px;
  }

  .steps__item p {
    grid-row: 3;
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .steps__item.is-done:hover .steps__time {
    background: rgb(255 255 255 / 0.16);
    color: #fff;
  }
}

/* «Как это работает»: активный шаг загорается зелёным, шкала растёт до его накопленного времени,
   над краем шкалы — метка «N мин». Ссылка «Инструкции по настройке» не рвётся на две строки */
@media (min-width: 1024px) {
  .steps-track {
    padding-top: 36px;
  }

  .steps-track__scale {
    position: relative;
  }

  .steps-track__bar {
    display: block;
  }

  .steps-track__fill {
    transition: transform 0.6s ease;
  }

  .steps-track__now {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--c-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transform: translateX(-50%);
    transition: left 0.6s ease;
  }

  /* Метка у правого края не вылезает за шкалу */
  .steps-track__now[style*='left: 100%'] {
    transform: translateX(-100%);
  }

  .steps-track__now[hidden] {
    display: none;
  }

  .steps__item.is-active {
    background: var(--c-primary);
    color: #fff;
  }

  .steps__item.is-active p,
  .steps__item.is-active .steps__index,
  .steps__item.is-active .link {
    color: #fff;
  }

  .steps__item.is-active .steps__time,
  .steps__item.is-active.is-done .steps__time {
    background: rgb(255 255 255 / 0.16);
    color: #fff;
  }

  .steps__item .link {
    display: inline-block;
    white-space: nowrap;
  }
}

/* Наведение теперь задаёт активный шаг из скрипта — отдельная зелёная заливка по :hover не нужна */
@media (min-width: 1024px) and (hover: hover) {
  .steps__item:not(.is-active):hover {
    background: var(--c-surface);
    color: inherit;
  }

  .steps__item:not(.is-active):hover p {
    color: var(--c-muted);
  }

  .steps__item:not(.is-active):hover .steps__index,
  .steps__item:not(.is-active):hover .link {
    color: var(--c-link, var(--c-primary));
  }
}

@media (min-width: 1024px) {
  /* Текст шагов — сбалансированные строки; ссылка «Инструкции по настройке» — отдельной строкой целиком */
  .steps__item p {
    text-wrap: balance;
  }

  .steps__item .link {
    display: table;
    margin-top: 8px;
  }
}

/* ==========================================================================
   «Типы прокси» — честные 100svh под плавающей шапкой: секция ровно в окно,
   содержимое от 40 px под шапкой до 40 px над низом окна, карточка забирает всё свободное место.
   Переход по ссылке ставит секцию ровно в экран
   ========================================================================== */
@media (min-width: 1024px) {
  .section--green {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 40px;
    scroll-margin-top: 0;
  }

  .section--green > .container {
    flex: 1;
    grid-template-rows: auto auto 1fr auto;
  }

  .section--green .section__head {
    grid-row: 1;
  }

  .section--green .ptabs {
    grid-row: 2;
  }

  .section--green .product {
    grid-row: 3;
  }

  .section--green .compare-all,
  .section--green .compare__more {
    grid-row: 4;
  }

  .section--green .compare-all[open] + .compare__more {
    grid-row: 5;
  }
}

@media (min-width: 1024px) {
  /* +2 px — рамка плашки шапки: от низа шапки до заголовка ровно 40 px */
  .section--green {
    padding-top: calc(var(--header-h) + 42px);
  }
}

/* ==========================================================================
   «Как это работает», карточка шага: без галочки в плашке времени.
   Номер — 20 px сверху и слева, время — 20 px сверху и справа, текст — 20 px снизу и слева,
   заголовок — ровно по центру карточки (одна линия во всех карточках)
   ========================================================================== */
@media (min-width: 1024px) {
  .steps__item.is-done .steps__time::before {
    content: none;
  }

  .steps__item {
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr auto 1fr;
    gap: 16px 12px;
    min-height: 300px;
    padding: 20px;
  }

  .steps__index {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  .steps__time {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  .steps__item h3 {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0;
  }

  .steps__item p {
    grid-column: 1 / -1;
    grid-row: 3;
    align-self: end;
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  /* Видимый край текста — ровно 20 px: убираем межстрочный «воздух» у номера и последней строки текста */
  .steps__index {
    line-height: 1;
    margin-top: -1px;
  }

  .steps__item p:not(:has(.link)) {
    margin-bottom: -3px;
  }
}

@media (min-width: 1024px) {
  .steps__index {
    margin-top: 2px;
  }
}

/* ==========================================================================
   «Типы прокси» — компактный блок (вместо 100svh): секция по высоте содержимого и помещается в экран.
   В карточке обе колонки по центру по вертикали, «Лучше всего для» — чипы в строку,
   плитки с цифрами компактные: подпись и значение рядом, 20 px от краёв
   ========================================================================== */
@media (min-width: 1024px) {
  .section--green {
    display: block;
    min-height: 0;
    padding-block: 80px;
  }

  .section--green > .container {
    flex: none;
    grid-template-rows: none;
  }

  .section--green .section__head {
    margin-bottom: 32px;
  }

  .section--green .section__lead {
    margin-top: 8px;
  }

  .section--green .ptabs {
    margin-bottom: 16px;
  }

  .section--green .ptab {
    padding: 14px 20px;
    font-size: 16px;
  }

  .section--green .product {
    align-items: center;
    gap: 56px;
    padding: 40px;
  }

  .section--green .product__main {
    justify-content: center;
  }

  .section--green .product__title {
    font-size: 30px;
  }

  .section--green .product__title:not(:first-child) {
    margin-top: 12px;
  }

  .section--green .product__desc {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.55;
  }

  .section--green .product__best-title {
    margin-top: 20px;
    font-size: 15px;
  }

  /* «Лучше всего для» — чипы в строку */
  .section--green .product__best {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    font-size: 14px;
  }

  .section--green .product__best li {
    gap: 6px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    background: var(--c-bg-soft);
  }

  .section--green .product__best svg {
    width: 18px;
    height: 18px;
    padding: 2px;
    background: none;
  }

  .section--green .product__actions {
    margin-top: 0;
    padding-top: 28px;
  }

  /* Плитки с цифрами: по центру рядом с текстом, компактные */
  .section--green .product__stats {
    align-self: center;
    grid-auto-rows: auto;
  }

  .section--green .stat {
    justify-content: flex-start;
    gap: 8px;
    padding: 20px;
  }

  .section--green .stat__value {
    font-size: 19px;
  }

  .section--green .compare-all,
  .section--green .compare__more {
    margin-top: 24px;
  }
}

/* «Типы прокси»: ещё плотнее, чтобы блок целиком помещался в экран ноутбука 1440×900 */
@media (min-width: 1024px) {
  .section--green {
    padding-block: 64px;
  }

  .section--green .section__head {
    margin-bottom: 24px;
  }

  .section--green .product__desc {
    font-size: 15px;
  }

  .section--green .product__best-title {
    margin-top: 16px;
  }

  .section--green .product__best {
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
  }

  .section--green .product__best li {
    padding: 5px 12px 5px 8px;
    line-height: 1.35;
  }

  .section--green .product__actions {
    padding-top: 24px;
  }

  .section--green .product__actions .btn {
    min-height: 52px;
  }

  .section--green .compare-all,
  .section--green .compare__more {
    margin-top: 20px;
  }

  .section--green .compare-all > summary,
  .section--green .compare__more {
    min-height: 52px;
  }
}

@media (min-width: 1024px) {
  /* Компактные «Типы прокси»: 40 px сверху и снизу — блок целиком в экране 1440×900 */
  .section--green {
    padding-block: 40px;
  }
}

/* «Как это работает»: «Инструкции по настройке» — в ряду действий под шагами, а не в карточке /04.
   Все четыре карточки читаются одинаково: номер, время, заголовок, описание */
@media (min-width: 1024px) {
  .steps__item p .link {
    display: none;
  }

  .steps-cta {
    align-items: center;
  }

  .steps-cta__link {
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    margin-left: 12px;
    color: var(--c-primary-ink);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
  }

  /* Как у «Подробнее о каждом типе»: подчёркивание прорисовывается при наведении */
  .steps-cta__link .link__text {
    padding-bottom: 2px;
    background: linear-gradient(currentColor, currentColor) left bottom / 0 1.5px no-repeat;
    transition: background-size 0.3s ease;
  }

  .steps-cta__link:hover .link__text {
    background-size: 100% 1.5px;
  }
}

@media (min-width: 1024px) {
  /* Ссылка из /04 переехала в ряд действий — поправка на межстрочный интервал теперь у всех карточек */
  .steps__item p {
    margin-bottom: -3px;
  }
}

/* ==========================================================================
   «Типы прокси»: высота карточки под экран. Самая высокая вкладка (--lock-h из скрипта) — минимум;
   если экран позволяет, карточка выше — до 540 px, но весь блок остаётся в одном экране
   (449 px = отступы секции, заголовок, вкладки, ряд «Сравнить» и плавающая шапка)
   ========================================================================== */
.product {
  min-height: var(--lock-h, 0);
}

@media (min-width: 1024px) {
  .section--green .product {
    /* 577 px = шапка 112 + отступы секции 2 × 100 + заголовок, вкладки и ряд «Сравнить» */
    min-height: max(var(--lock-h, 0px), min(540px, calc(100svh - 577px)));
  }

  /* «Бесплатный тест» не сливается с белым: светло-зелёная заливка, при наведении — зелёная */
  .section--green .product__actions .btn--outline {
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
  }
}

/* Обычные и высокие экраны ПК: прежний просторный вид — список «Лучше всего для» столбиком,
   плитки с подписью сверху и значением снизу на всю высоту карточки, текст крупнее */
@media (min-width: 1024px) and (min-height: 901px) {
  .section--green .product {
    align-items: stretch;
  }

  .section--green .product__title {
    font-size: 32px;
  }

  .section--green .product__title:not(:first-child) {
    margin-top: 14px;
  }

  .section--green .product__desc {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.6;
  }

  .section--green .product__best-title {
    margin-top: 24px;
    font-size: 16px;
  }

  .section--green .product__best {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    font-size: 16px;
  }

  .section--green .product__best li {
    gap: 10px;
    padding: 0;
    border-radius: 0;
    background: none;
  }

  .section--green .product__best svg {
    width: 22px;
    height: 22px;
    padding: 3px;
    border-radius: 999px;
    background: var(--c-primary-soft);
  }

  .section--green .product__actions {
    padding-top: 32px;
  }

  .section--green .product__actions .btn {
    min-height: 56px;
  }

  .section--green .product__stats {
    align-self: stretch;
    grid-auto-rows: 1fr;
  }

  .section--green .stat {
    justify-content: space-between;
  }

  .section--green .stat__value {
    font-size: 21px;
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .section--green .product__actions .btn--outline:hover {
    background: var(--c-primary);
    color: #fff;
  }
}

/* Значок подсказки — иконка «Информация» владельца: кружок уже нарисован, своя обводка кнопке не нужна.
   Залитый кружок крупнее прежнего — опускаем на середину строки и не прижимаем к тексту */
.tip {
  margin-left: 6px;
  border: 0;
  vertical-align: -0.15em;
}

.tip__i {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
   «Типы прокси», левая колонка по правой:
   бейдж/заголовок и описание — вверху, на уровне верха плитки «Скорость до»;
   кнопки — внизу, на уровне низа плитки «Смена IP»;
   «Лучше всего для» — ровно посередине между последней строкой описания и верхом кнопок
   (свободное место делят поровну auto-отступы у описания и у кнопок)
   ========================================================================== */
@media (min-width: 1024px) {
  .section--green .product {
    align-items: stretch;
  }

  .section--green .product__main {
    justify-content: flex-start;
  }

  .section--green .product__desc {
    margin-bottom: auto;
  }

  .section--green .product__best-title {
    margin-top: 24px;
  }

  .section--green .product__actions {
    margin-top: auto;
    padding-top: 24px;
  }

  .section--green .product__stats {
    align-self: stretch;
    grid-auto-rows: 1fr;
  }
}

@media (min-width: 1024px) {
  /* Межстрочный «воздух» под последней строкой описания (~4 px) — компенсируем, чтобы
     «Лучше всего для» стояло ровно посередине между описанием и кнопками */
  .section--green .product__best-title {
    margin-top: 20px;
  }
}

@media (min-width: 1024px) and (max-height: 900px) {
  .section--green .product__best-title {
    margin-top: 16px;
  }
}

@media (min-width: 1024px) and (max-height: 900px) {
  .section--green .product__actions {
    padding-top: 20px;
  }
}

/* ==========================================================================
   «Что говорят клиенты» на ПК — в духе proxy-seller:
   площадки — плашки с заливкой; отзывы — бегущая лента на всю ширину экрана с мягким затуханием по краям,
   наведение/фокус — пауза; карточка: аватар с инициалами, имя, площадка и дата, звёзды, текст;
   «Читать полностью» — окно с отзывом целиком. Внизу две кнопки по центру. Mobile — прежняя карусель
   ========================================================================== */
.rmarquee,
.reviews__bonus {
  display: none;
}

@media (min-width: 1024px) {
  #reviews {
    overflow-x: clip;
  }

  #reviews .carousel,
  #review-promo {
    display: none;
  }

  /* Площадки: заливка без обводки, наведение — зелёная, текст белый */
  #reviews .platforms {
    gap: 16px;
  }

  #reviews .platform {
    gap: 16px;
    padding: 20px;
    border: 0;
    border-radius: 20px;
    background: var(--c-surface);
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  #reviews .platform__meta {
    margin-top: 2px;
    transition: color 0.2s ease;
  }

  #reviews .platform__meta b {
    transition: color 0.2s ease;
  }

  /* Лента */
  .rmarquee {
    display: block;
    margin-top: 40px;
    margin-inline: calc(50% - 50vw);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }

  .rmarquee__track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding-block: 4px;
    animation: rmarquee 70s linear infinite;
  }

  .rmarquee:hover .rmarquee__track,
  .rmarquee:focus-within .rmarquee__track {
    animation-play-state: paused;
  }

  .rcard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 400px;
    padding: 40px;
    border-radius: 24px;
    background: var(--c-surface);
  }

  .rcard__head {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .rcard__avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
    font-size: 16px;
    font-weight: 700;
  }

  .rcard__who {
    flex: 1;
    min-width: 0;
  }

  .rcard__name {
    font-size: 17px;
    font-weight: 600;
  }

  .rcard__meta {
    margin-top: 2px;
    color: var(--c-muted);
    font-size: 14px;
  }

  .rcard__stars {
    flex: none;
    align-self: flex-start;
    color: var(--c-star);
    font-size: 14px;
    letter-spacing: 1px;
  }

  .rcard__text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.6;
  }

  .rcard__more {
    align-self: flex-start;
    margin-top: auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--c-primary-ink);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
  }

  .rcard__more::after {
    content: '';
    display: block;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }

  .rcard__more:hover::after,
  .rcard__more:focus-visible::after {
    transform: scaleX(1);
  }

  /* Окно отзыва */
  .rcard__stars--big {
    display: block;
    margin-top: 12px;
    font-size: 18px;
  }

  .rcard__full {
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.65;
  }

  /* Кнопки: по центру, две, скидка — внутри «Оставить отзыв» */
  #reviews .reviews__actions {
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
  }

  #reviews .reviews__actions .btn {
    min-height: 56px;
    padding-inline: 24px;
    border-color: transparent;
    background: var(--c-surface);
    color: var(--c-text);
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .reviews__bonus {
    display: inline-flex;
    align-items: center;
    height: 26px;
    margin-left: 10px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
    font-size: 13px;
    font-weight: 700;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }
}

@media (min-width: 1024px) and (hover: hover) {
  #reviews .platform:hover {
    background: var(--c-primary);
    color: #fff;
  }

  #reviews .platform:hover .platform__meta,
  #reviews .platform:hover .platform__meta b {
    color: #fff;
  }

  #reviews .reviews__actions .btn:hover {
    background: var(--c-primary);
    color: #fff;
  }

  #reviews .reviews__actions .btn:hover .reviews__bonus {
    background: rgb(255 255 255 / 0.18);
    color: #fff;
  }
}

@keyframes rmarquee {
  to {
    transform: translateX(calc(-50% - 10px));
  }
}

/* «Уменьшить движение»: лента не едет, листается вручную */
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .rmarquee {
    overflow-x: auto;
  }

  .rmarquee__track {
    animation: none;
    padding-inline: 8vw;
  }
}

@media (min-width: 1024px) {
  /* Звёзды — отдельной строкой под именем: площадка и дата не переносятся */
  .rcard__stars {
    align-self: flex-start;
    margin-top: -4px;
    font-size: 16px;
    letter-spacing: 2px;
  }

  .rcard__meta {
    white-space: nowrap;
  }
}

/* ==========================================================================
   «Акции и купоны» на ПК — вторая зелёная перебивка (первая — «Типы прокси»).
   Наши купоны — белые билеты: условие сверху, «перфорация» с вырезами по краям, снизу код,
   копируется нажатием на всю плашку, срок плашкой, «Применить» — светло-зелёная заливка.
   Партнёр Proksik.su — отдельной спокойной полосой под купонами, чтобы не путали с нашими скидками
   ========================================================================== */
@media (min-width: 1024px) {
  .section--accent {
    background:
      var(--c-primary);
    color: #fff;
  }

  .section--accent .section__lead {
    color: rgb(255 255 255 / 0.85);
  }

  .section--accent .section__head {
    margin-bottom: 40px;
  }

  .section--accent :focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
  }

  .section--accent .promo :focus-visible {
    outline-color: var(--c-ink-text, var(--c-ink));
  }

  .section--accent .promos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  /* Купон-билет */
  .section--accent .promo {
    position: relative;
    gap: 0;
    padding: 40px;
    border: 0;
    border-radius: 24px;
    background: var(--c-surface);
    color: var(--c-text);
  }

  .section--accent .promo__title {
    font-size: 24px;
    line-height: 1.2;
  }

  .section--accent .promo__cond {
    flex: 1;
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.55;
  }

  /* «Перфорация»: пунктир и два полукруглых выреза цвета фона секции */
  .section--accent .promo:not(.promo--partner) .promo__code {
    margin-top: 56px;
  }

  .section--accent .promo:not(.promo--partner)::before {
    content: '';
    position: absolute;
    left: 24px;
    right: 24px;
    top: var(--perf, 50%);
    border-top: 2px dashed var(--c-border);
  }

  .section--accent .promo:not(.promo--partner)::after {
    content: '';
    position: absolute;
    left: -14px;
    right: -14px;
    top: calc(var(--perf, 50%) - 13px);
    height: 28px;
    background:
      radial-gradient(circle at 14px 50%, var(--c-notch, var(--c-primary)) 13px, transparent 14px) left / 28px 28px no-repeat,
      radial-gradient(circle at 14px 50%, var(--c-notch, var(--c-primary)) 13px, transparent 14px) right / 28px 28px no-repeat;
    pointer-events: none;
  }

  /* Код: вся плашка — кнопка «Скопировать» */
  .section--accent .promo__code {
    position: relative;
    align-items: center;
    height: 60px;
    border: 0;
    border-radius: 14px;
    background: var(--c-bg-soft);
    transition: background-color 0.2s ease;
  }

  .section--accent .promo__code code {
    padding: 0 20px;
    font-size: 18px;
    letter-spacing: 0.08em;
  }

  .section--accent .promo__copy {
    min-width: 0;
    min-height: 0;
    padding: 0 20px;
    border: 0;
    background: none;
    color: var(--c-muted);
    font-size: 14px;
    cursor: pointer;
  }

  .section--accent .promo__copy::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
  }

  .section--accent .promo__copy.is-copied {
    background: none;
    color: var(--c-primary-ink);
  }

  .section--accent .promo__code:has(.is-copied) {
    background: var(--c-primary-soft);
  }

  /* Срок — плашкой; ≤ 14 дней — заметнее */
  .section--accent .promo__valid {
    align-self: flex-start;
    margin-top: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--c-bg-soft);
    font-size: 13px;
  }

  .section--accent .promo__valid--soon {
    background: var(--c-warn-soft);
    color: var(--c-warn);
    font-weight: 600;
  }

  .section--accent .promo .btn {
    min-height: 56px;
    margin-top: 20px;
    border-color: transparent;
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
    font-size: 16px;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  /* Партнёр — спокойная полоса во всю ширину под купонами */
  .section--accent .promo--partner {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 20px;
    align-items: center;
    padding: 24px 40px;
    background: rgb(255 255 255 / 0.1);
    color: #fff;
  }

  .section--accent .promo--partner .badge {
    grid-row: 1 / span 2;
    align-self: center;
  }

  .section--accent .promo--partner .promo__title {
    grid-column: 2;
    font-size: 18px;
  }

  .section--accent .promo--partner .promo__cond {
    grid-column: 2;
    margin-top: 4px;
    color: rgb(255 255 255 / 0.8);
    font-size: 15px;
  }

  .section--accent .promo--partner .btn {
    grid-column: 3;
    grid-row: 1 / span 2;
    margin-top: 0;
    padding-inline: 24px;
    background: rgb(255 255 255 / 0.14);
    color: #fff;
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .section--accent .promo__code:hover {
    background: var(--c-primary-soft);
  }

  .section--accent .promo__code:hover .promo__copy {
    color: var(--c-primary-ink);
  }

  .section--accent .promo .btn:hover {
    background: var(--c-primary);
    color: #fff;
  }

  .section--accent .promo--partner .btn:hover {
    background: #fff;
    color: var(--c-primary-ink);
  }
}

/* «Перфорация» купона — отдельный элемент между условием и кодом: пунктир и два выреза цвета фона */
.promo__perf {
  display: none;
}

@media (min-width: 1024px) {
  .section--accent .promo:not(.promo--partner)::before,
  .section--accent .promo:not(.promo--partner)::after {
    content: none;
  }

  .section--accent .promo:not(.promo--partner) .promo__code {
    margin-top: 0;
  }

  .section--accent .promo__perf {
    position: relative;
    display: block;
    height: 28px;
    margin: 20px -40px;
  }

  .section--accent .promo__perf::before {
    content: '';
    position: absolute;
    left: 24px;
    right: 24px;
    top: 50%;
    border-top: 2px dashed var(--c-border);
  }

  .section--accent .promo__perf::after {
    content: '';
    position: absolute;
    inset: 0 -14px;
    background:
      radial-gradient(circle at 14px 50%, var(--c-notch, var(--c-primary)) 13.5px, transparent 14px) left / 28px 28px no-repeat,
      radial-gradient(circle at 14px 50%, var(--c-notch, var(--c-primary)) 13.5px, transparent 14px) right / 28px 28px no-repeat;
  }
}

@media (min-width: 1024px) {
  .section--accent .promo__valid {
    white-space: nowrap;
  }
}

@media (min-width: 1024px) {
  /* «Партнёр» на зелёной полосе — в тон: полупрозрачная белая заливка, белый текст капсом */
  .section--accent .promo--partner .badge {
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.16);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

@media (min-width: 1024px) {
  /* «Скопировать» не нужна: «Применить» сам копирует код. Код остаётся на виду и выделяется вручную */
  .section--accent .promo__copy {
    display: none;
  }

  .section--accent .promo__code {
    justify-content: center;
    cursor: text;
    user-select: all;
  }

  .section--accent .promo__code code {
    flex: none;
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .section--accent .promo__code:hover {
    background: var(--c-bg-soft);
  }
}

/* Купоны: заголовки ровно в две строки, условия начинаются на одной линии во всех карточках;
   срок — плашка во всю ширину, как код и кнопка: дата слева, «осталось N дней» справа */
.promo__valid-sep {
  display: inline;
}

@media (min-width: 1024px) {
  .section--accent .promo__title {
    min-height: calc(2 * 1.2em);
  }

  .section--accent .promo__valid {
    display: flex;
    align-self: stretch;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    height: 44px;
    padding: 0 20px;
    border-radius: 14px;
    color: var(--c-muted);
    font-size: 14px;
  }

  .section--accent .promo__valid b {
    color: var(--c-primary-ink);
    font-weight: 600;
  }

  .section--accent .promo__valid--soon b {
    color: var(--c-warn);
  }

  .section--accent .promo__valid-sep {
    display: none;
  }
}

@media (min-width: 1024px) {
  /* Условия купонов — ровные строки */
  .section--accent .promo__cond {
    text-wrap: balance;
  }

  /* Полоса партнёра: правило «заголовок в две строки» к ней не относится */
  .section--accent .promo--partner .promo__title {
    min-height: 0;
  }
}

/* Короткие абзацы (описания, ответы, условия) — ровные строки без короткого «хвоста» в конце.
   Браузер балансирует до 6 строк, длиннее — обычный перенос */
@media (min-width: 1024px) {
  main p {
    text-wrap: balance;
  }
}

/* ==========================================================================
   «Частые вопросы» на ПК: заголовок по центру; ниже две колонки —
   слева закреплённая карточка «Не нашли ответ?» (Telegram + «Все ответы»), справа вопросы.
   Вопрос — белая плашка без обводки: номер «/01», текст, круглый «+» → «×»; ответ раскрывается плавно.
   Открыт один вопрос за раз. Наведение на закрытый — зелёная заливка, текст белый. Mobile — прежний список
   ========================================================================== */
.faq-side {
  display: none;
}

@media (min-width: 1024px) {
  :root {
    interpolate-size: allow-keywords;
  }

  #faq .container--narrow {
    max-width: calc(var(--container) + var(--gutter) * 2);
  }

  #faq .section__cta {
    display: none;
  }

  .faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 24px;
    align-items: start;
  }

  /* Карточка «Не нашли ответ?» */
  .faq-side {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
    border-radius: 24px;
    background:
      var(--c-primary);
    color: #fff;
  }

  .faq-side__title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
  }

  .faq-side__text {
    margin-top: 12px;
    color: rgb(255 255 255 / 0.88);
    font-size: 16px;
    line-height: 1.55;
  }

  .faq-side__btn {
    margin-top: 28px;
    background: #fff;
    border-color: transparent;
    color: var(--c-primary-ink);
  }

  .faq-side__btn:focus-visible,
  .faq-side__link:focus-visible {
    outline-color: #fff;
  }

  .faq-side__link {
    margin-top: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
  }

  .faq-side__link .link__text {
    padding-bottom: 2px;
    background: linear-gradient(currentColor, currentColor) left bottom / 0 1.5px no-repeat;
    transition: background-size 0.3s ease;
  }

  /* Вопросы */
  .faq {
    display: grid;
    gap: 12px;
    border-top: 0;
    counter-reset: faq;
  }

  .faq__item {
    counter-increment: faq;
    border: 0;
    border-radius: 20px;
    background: var(--c-surface);
    transition: background-color 0.2s ease;
  }

  .faq__item summary {
    gap: 20px;
    padding: 20px 20px 20px 24px;
    font-size: 18px;
    transition: color 0.2s ease;
  }

  .faq__item summary::before {
    content: '/' counter(faq, decimal-leading-zero);
    flex: none;
    min-width: 32px;
    color: var(--c-link, var(--c-primary));
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
  }

  .faq__item summary > * ,
  .faq__item summary {
    text-wrap: balance;
  }

  /* Круглый «+», у открытого — «×» */
  .faq__item summary::after {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0 0 0 auto;
    border: 0;
    border-radius: 999px;
    background:
      linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
      linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat,
      var(--c-bg-soft);
    color: var(--c-primary-ink);
    transform: none;
    transition:
      transform 0.3s ease,
      background-color 0.2s ease;
  }

  .faq__item[open] summary::after {
    transform: rotate(45deg);
  }

  .faq__item summary:hover {
    color: inherit;
  }

  .faq__body {
    max-width: none;
    padding: 0 84px 28px 76px;
    font-size: 16px;
    line-height: 1.6;
  }

  /* Плавное раскрытие ответа */
  .faq__item::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size 0.3s ease,
      content-visibility 0.3s allow-discrete;
  }

  .faq__item[open]::details-content {
    block-size: auto;
  }

  .faq__body .btn {
    margin-top: 4px;
    border-color: transparent;
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .faq__item:not([open]):hover {
    background: var(--c-primary);
  }

  .faq__item:not([open]):hover summary,
  .faq__item:not([open]):hover summary::before {
    color: #fff;
  }

  .faq__item:not([open]):hover summary::after {
    background:
      linear-gradient(#fff, #fff) center / 14px 2px no-repeat,
      linear-gradient(#fff, #fff) center / 2px 14px no-repeat,
      rgb(255 255 255 / 0.16);
  }

  .faq-side__btn:hover {
    background: var(--c-ink);
    color: #fff;
  }

  .faq-side__link:hover .link__text {
    background-size: 100% 1.5px;
  }

  .faq__body .btn:hover {
    background: var(--c-primary);
    color: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq__item::details-content {
    transition: none;
  }
}

/* ==========================================================================
   Текстовые ссылки-действия («Подробнее о каждом типе», «Все ответы»): тонкая стрелка «›» справа,
   при наведении сдвигается вправо, текст подчёркивается. Кнопки — больше воздуха по бокам (как в примере)
   ========================================================================== */
@media (min-width: 1024px) {
  .section--green .compare__more .link__arrow {
    display: none;
  }

  .section--green .compare__more .link,
  .faq-side__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }

  .section--green .compare__more .link::after,
  .faq-side__link::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
  }

  .section--green .compare__more .link:hover::after,
  .faq-side__link:hover::after {
    transform: translateX(3px) rotate(-45deg);
  }

  /* Воздух в кнопках: крупные кнопки — 32 px по бокам */
  .btn--lg,
  .steps-cta .btn,
  #reviews .reviews__actions .btn {
    padding-inline: 32px;
  }

  .section--green .compare-all > summary {
    padding-inline: 32px;
  }
}

/* ==========================================================================
   FAQ: зелёная карточка той же высоты, что список вопросов (растёт вместе с ним при раскрытии).
   Сверху — «Не нашли ответ?», в середине — «5 мин» крупно (как «30 sec median reply» у proxy-seller),
   внизу — две кнопки во всю ширину: «Написать в Telegram» и «Все вопросы и ответы ›»
   ========================================================================== */
@media (min-width: 1024px) {
  .faq-layout {
    align-items: stretch;
  }

  .faq-side {
    position: static;
    justify-content: space-between;
    align-items: stretch;
    gap: 32px;
  }

  .faq-side__stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .faq-side__stat b {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
  }

  .faq-side__stat span {
    color: rgb(255 255 255 / 0.85);
    font-size: 15px;
  }

  .faq-side__actions {
    display: grid;
    gap: 12px;
  }

  .faq-side__btn,
  .faq-side__more {
    width: 100%;
    margin-top: 0;
    border-color: transparent;
  }

  .faq-side__btn {
    background: #fff;
    color: var(--c-primary-ink);
  }

  .faq-side__more {
    gap: 12px;
    background: rgb(255 255 255 / 0.14);
    color: #fff;
    transition: background-color 0.2s ease;
  }

  .faq-side__more::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .faq-side__more:hover {
    background: rgb(255 255 255 / 0.24);
  }

  .faq-side__more:hover::after {
    transform: translateX(3px) rotate(-45deg);
  }
}

/* ==========================================================================
   FAQ на ПК: вопросы в две независимые колонки по 4 на всю ширину;
   под ними — зелёная полоса «Не нашли ответ?»: текст слева, две кнопки в ряд справа
   ========================================================================== */
@media (min-width: 1024px) {
  .faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 12px;
  }

  .faq__col {
    display: grid;
    gap: 12px;
  }

  .faq__body {
    padding-right: 32px;
  }

  .faq-side {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
    padding: 40px;
  }

  .faq-side__text {
    max-width: 56ch;
  }

  .faq-side__actions {
    display: flex;
    gap: 12px;
  }

  .faq-side__btn,
  .faq-side__more {
    width: auto;
  }
}

@media (min-width: 1024px) {
  /* Все плашки вопросов одной высоты (под две строки) — ряды в колонках стоят ровно друг напротив друга */
  .faq__item summary {
    min-height: 88px;
  }
}

@media (min-width: 1024px) {
  .faq__item summary {
    min-height: 94px;
  }
}

/* ==========================================================================
   Партнёрская программа на ПК — баннер: зелёная карточка на белом фоне секции
   (не третья зелёная секция). Слева: метка, заголовок, пояснение, три шага, кнопки;
   справа: «до 15%» крупно в стеклянном круге с кольцами и монетками «₽». Mobile — прежняя строка
   ========================================================================== */
.pbanner {
  display: none;
}

@media (min-width: 1024px) {
  .partner-strip {
    padding-block: var(--section-y);
    background: none;
  }

  .partner-strip__inner {
    display: none;
  }

  .pbanner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
    padding: 56px;
    border-radius: 32px;
    background:
      var(--c-primary);
    color: #fff;
  }

  .pbanner__eyebrow {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.16);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .pbanner__title {
    margin-top: 20px;
    max-width: 16ch;
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .pbanner__text {
    margin-top: 16px;
    max-width: 48ch;
    color: rgb(255 255 255 / 0.88);
    font-size: 17px;
    line-height: 1.6;
  }

  /* Три шага — плашки в ряд */
  .pbanner__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 32px;
    padding: 0;
    list-style: none;
  }

  .pbanner__steps li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border-radius: 18px;
    background: rgb(255 255 255 / 0.12);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
  }

  .pbanner__step-num {
    color: var(--c-accent-light);
    font-size: 13px;
    font-weight: 700;
  }

  .pbanner__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
  }

  .pbanner__btn {
    border-color: transparent;
    background: #fff;
    color: var(--c-primary-ink);
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .pbanner__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
  }

  .pbanner__link::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
  }

  .pbanner__link .link__text {
    padding-bottom: 2px;
    background: linear-gradient(currentColor, currentColor) left bottom / 0 1.5px no-repeat;
    transition: background-size 0.3s ease;
  }

  .pbanner :focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
  }

  /* Визуал: «до 15%» в стеклянном круге */
  .pbanner__visual {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    max-width: 400px;
    width: 100%;
    justify-self: center;
  }

  .pbanner__ring {
    position: absolute;
    border-radius: 999px;
  }

  .pbanner__ring--outer {
    inset: 0;
    border: 1.5px dashed rgb(255 255 255 / 0.28);
  }

  .pbanner__ring--inner {
    inset: 14%;
    border: 1px solid rgb(255 255 255 / 0.22);
    background: rgb(255 255 255 / 0.1);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.25),
      0 30px 60px rgb(0 0 0 / 0.18);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .pbanner__big {
    position: relative;
    display: grid;
    justify-items: center;
    font-size: 112px;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
  }

  .pbanner__big small {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0;
    color: rgb(255 255 255 / 0.85);
  }

  .pbanner__big i {
    position: absolute;
    right: -0.42em;
    bottom: 0.12em;
    font-size: 0.42em;
    font-style: normal;
    color: var(--c-accent-light);
  }

  .pbanner__coin {
    position: absolute;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #8fe36a, #329d41 70%);
    box-shadow:
      inset 0 2px 0 rgb(255 255 255 / 0.4),
      0 14px 28px rgb(0 0 0 / 0.22);
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    animation: pbanner-float 6s ease-in-out infinite;
  }

  .pbanner__coin--a {
    top: 4%;
    right: 6%;
  }

  .pbanner__coin--b {
    bottom: 10%;
    left: 0;
    width: 52px;
    height: 52px;
    font-size: 22px;
    animation-delay: -2s;
  }

  .pbanner__coin--c {
    bottom: 2%;
    right: 18%;
    width: 40px;
    height: 40px;
    font-size: 17px;
    animation-delay: -4s;
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .pbanner__btn:hover {
    background: var(--c-ink);
    color: #fff;
  }

  .pbanner__link:hover .link__text {
    background-size: 100% 1.5px;
  }

  .pbanner__link:hover::after {
    transform: translateX(3px) rotate(-45deg);
  }
}

@keyframes pbanner-float {
  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pbanner__coin {
    animation: none;
  }
}

@media (min-width: 1024px) {
  /* Ширина баннера — как у содержимого остальных блоков (без боковых полей контейнера) */
  .pbanner {
    max-width: var(--container);
    width: calc(100% - 2 * var(--gutter));
  }
}

/* Фраза, которую нельзя разрывать переносом («до 15%») */
.nowrap {
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .pbanner__title {
    max-width: 21ch;
  }
}

/* Партнёрский баннер — без декоративного круга: всё по центру, как центральная композиция сайта */
@media (min-width: 1024px) {
  .pbanner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    padding: 64px 56px;
    text-align: center;
  }

  .pbanner__visual {
    display: none;
  }

  .pbanner__main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .pbanner__title {
    max-width: none;
  }

  .pbanner__text {
    margin-inline: auto;
  }

  .pbanner__steps {
    width: 100%;
    max-width: 880px;
  }

  .pbanner__steps li {
    align-items: center;
    text-align: center;
  }

  .pbanner__actions {
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  /* Шаги — каждый ровно в две сбалансированные строки; пояснение — в две строки */
  .pbanner__steps li > span:last-child {
    max-width: 17ch;
    text-wrap: balance;
  }

  .pbanner__text {
    max-width: 62ch;
  }
}

/* ==========================================================================
   Отступы на ПК (правило владельца):
   между обычными блоками — 200 px (по 100 px сверху и снизу у секции);
   зелёные блоки («Типы прокси», «Акции», «Партнёрская программа») — 100 px сверху и снизу внутри.
   Партнёрская программа — зелёная секция во всю ширину, как «Акции»; содержимое по центру
   ========================================================================== */
@media (min-width: 1024px) {
  :root {
    --section-y: 120px;
  }

  .section--green,
  .section--accent,
  .partner-strip.section--accent {
    padding-block: 100px;
  }

  /* Цветной фон сам читается как блок: от него до соседнего содержимого или фона — те же 200 px.
     Поэтому снаружи у цветных блоков ещё по 100 px белого. Колонка флексом — чтобы отступы двух
     цветных блоков подряд не схлопывались в 100 */
  main {
    display: flex;
    flex-direction: column;
  }

  .section--soft,
  .section--green,
  .section--accent,
  .section--dark {
    margin-block: var(--section-y);
  }

  /* «Нам доверяют» идёт сразу за тёмным первым экраном — 200 px от его края, как от любого цветного блока.
     У ленты логотипов свои 18 px воздуха снизу — вычитаем, чтобы до логотипов было ровно 100 px */
  .trust {
    padding-top: calc(var(--section-y) * 2);
    padding-bottom: calc(var(--section-y) - 18px);
  }

  /* Подвал — тёмный блок: 100 px сверху и снизу внутри и 200 px от содержимого над ним */
  .footer {
    margin-top: var(--section-y);
    padding-block: 100px calc(100px + env(safe-area-inset-bottom));
  }

  /* Баннер становится содержимым зелёной секции: без своей карточки */
  .partner-strip.section--accent .pbanner {
    padding: 0;
    border-radius: 0;
    background: none;
    overflow: visible;
  }
}

@media (min-width: 1024px) {
  /* Старое правило «полоса без фона» не должно перебивать зелёный фон секции */
  .partner-strip.section--accent {
    background:
      var(--c-primary);
  }
}

/* Текстовые ссылки-действия на ПК — подчёркивание как на сайте Syntrex: при наведении линия выезжает слева,
   когда курсор уходит — уезжает вправо (а не втягивается обратно) */
@media (min-width: 1024px) {
  .section--green .compare__more .link__text,
  .pbanner__link .link__text,
  .farm-desk__link .link__text {
    background-position: right bottom;
    transition: background-size 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  }

  .section--green .compare__more .link:hover .link__text,
  .pbanner__link:hover .link__text,
  .farm-desk__link:hover .link__text {
    background-position: left bottom;
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .section--green .compare__more .link__text,
  .pbanner__link .link__text,
  .farm-desk__link .link__text {
    transition: none;
  }
}

/* Партнёрская программа на ПК: шаги — цепочка без номеров. Плашки соединены стрелками владельца,
   каждая следующая ярче; результат «до 15% с каждой оплаты» — белой плашкой. Под цепочкой — пример дохода */
@media (min-width: 1024px) {
  .pbanner__steps {
    gap: 48px;
    margin-top: 40px;
  }

  .pbanner__steps li {
    position: relative;
    justify-content: center;
    gap: 4px;
    padding: 20px;
    background: rgb(255 255 255 / 0.1);
  }

  .pbanner__steps li:nth-child(2) {
    background: rgb(255 255 255 / 0.18);
  }

  .pbanner__steps b {
    font-size: 17px;
    font-weight: 700;
  }

  .pbanner__steps li > span:last-child {
    color: rgb(255 255 255 / 0.8);
  }

  .pbanner__steps li.is-result {
    background: #fff;
    color: var(--c-primary-ink);
    box-shadow: 0 16px 40px rgb(0 0 0 / 0.14);
  }

  /* Подпись — тем же зелёным, что заголовок (не вторым оттенком); второстепенная за счёт размера и веса */
  .pbanner__steps li.is-result > span:last-child {
    color: var(--c-primary-ink);
  }

  /* Стрелка между плашками — посередине промежутка */
  .pbanner__steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -36px;
    width: 24px;
    height: 24px;
    background: rgb(255 255 255 / 0.75);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.75,9.525,11.164,4.939A1.5,1.5,0,0,0,9.043,7.061l4.586,4.585a.5.5,0,0,1,0,.708L9.043,16.939a1.5,1.5,0,0,0,2.121,2.122l4.586-4.586A3.505,3.505,0,0,0,15.75,9.525Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.75,9.525,11.164,4.939A1.5,1.5,0,0,0,9.043,7.061l4.586,4.585a.5.5,0,0,1,0,.708L9.043,16.939a1.5,1.5,0,0,0,2.121,2.122l4.586-4.586A3.505,3.505,0,0,0,15.75,9.525Z'/%3E%3C/svg%3E") center / contain no-repeat;
    transform: translateY(-50%);
  }

  /* Мини-расчёт дохода: вопрос, варианты числа клиентов, крупная сумма, пояснение */
  .pcalc {
    display: grid;
    justify-items: center;
    gap: 16px;
    margin-top: 40px;
  }

  .pcalc__q {
    font-size: 17px;
    font-weight: 600;
  }

  .pcalc__chips {
    display: flex;
    gap: 8px;
    padding: 6px;
    border-radius: 16px;
    background: rgb(0 0 0 / 0.12);
  }

  /* Вариант: заливка, наведение — белая, выбранный — белый с галочкой */
  .pcalc__chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    /* Одна ширина у всех: галочка у выбранного не раздвигает ряд */
    width: 92px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    background: rgb(255 255 255 / 0.1);
    font-size: 17px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .pcalc__chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .pcalc__check {
    display: none;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
  }

  .pcalc__check svg {
    width: 12px;
    height: 12px;
  }

  .pcalc__chip:has(input:checked) {
    background: #fff;
    color: var(--c-primary-ink);
  }

  .pcalc__chip:has(input:checked) .pcalc__check {
    display: grid;
  }

  .pcalc__chip:has(input:focus-visible) {
    outline: 3px solid #fff;
    outline-offset: 3px;
  }

  .pcalc__result {
    font-size: 20px;
    font-weight: 600;
  }

  .pcalc__sum {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
  }

  .pcalc__note {
    max-width: 60ch;
    color: rgb(255 255 255 / 0.8);
    font-size: 15px;
    text-wrap: balance;
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .pcalc__chip:hover {
    background: #fff;
    color: var(--c-primary-ink);
  }
}

/* Наличие в форме первого экрана (ПК): справа в строке «Общая стоимость» — точка и «В наличии 52 шт.»;
   мало (≤ 20) — «Осталось 14 шт.» с янтарной точкой. У лицензии ProxyFarm — пусто и скрыто */
.qb-stock {
  display: none;
}

@media (min-width: 1024px) {
  .quickbuy__total {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
  }

  .quickbuy__total > * {
    grid-column: 1 / -1;
  }

  .quickbuy__total > #qb-total-label {
    grid-column: 1;
    grid-row: 1;
  }

  .qb-stock {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    align-self: center;
    gap: 8px;
    color: var(--c-hero-muted);
    font-size: 14px;
    line-height: 21px;
    white-space: nowrap;
  }

  .qb-stock:empty {
    display: none;
  }

  .qb-stock::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-accent-light);
    box-shadow: 0 0 0 3px rgb(182 238 160 / 0.18);
  }

  .qb-stock b {
    color: #fff;
    font-weight: 600;
  }

  .qb-stock.is-low::before {
    background: #f5c26b;
    box-shadow: 0 0 0 3px rgb(245 194 107 / 0.2);
  }
}

/* Лента «Нам доверяют» на ПК: значки площадок в монохроме, в тон тексту — цвет не спорит с главным.
   Свой цвет значок получает только при наведении на пункт */
@media (min-width: 1024px) {
  .marquee__logo {
    transition: background-color 0.2s ease;
  }

  .marquee__item:not(:hover) .marquee__logo {
    background-color: var(--c-muted) !important;
  }
}

@media (min-width: 1024px) and (hover: none) {
  .marquee__item .marquee__logo {
    background-color: var(--c-muted) !important;
  }
}

/* Ссылки под формой первого экрана: в разметке «Тест · Подбор · Telegram» — на ПК самый длинный пункт
   по центру. Ниже 1024 px — прежний порядок, «Подбор по задаче» первым */
@media (max-width: 1023px) {
  .hero__links > [href="#picker"] {
    order: -1;
  }
}

/* ==========================================================================
   ProxyFarm на ПК — тёмная секция во всю ширину (в духе Proxy-Seller): заголовок по центру,
   под ним две колонки одной высоты — слева три плюса /01–/03, справа белый калькулятор лицензии
   (модемы ползунком или счётчиком, срок, итог, кнопки). «Подробнее» — в ряду действий под блоком.
   Mobile — прежняя карточка
   ========================================================================== */
.farm-desk {
  display: none;
}

@media (min-width: 1024px) {
  .section--dark {
    background:
      var(--c-dark);
    color: var(--c-on-dark);
  }

  .farm-mob {
    display: none;
  }

  .farm-desk {
    display: block;
  }

  .farm-desk .section__head {
    margin-bottom: 40px;
  }

  .farm-desk__eyebrow {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.1);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .farm-desk .section__lead {
    color: var(--c-on-dark-muted);
  }

  .farm-desk__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 20px;
    max-width: 1200px;
    margin-inline: auto;
  }

  /* Три плюса — плитки на всю высоту калькулятора, текст по центру плитки */
  .farm-desk__points {
    display: grid;
    grid-auto-rows: 1fr;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .farm-desk__points li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 0 40px;
    border-radius: 24px;
    background: rgb(255 255 255 / 0.06);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.45;
    text-wrap: pretty;
  }

  .farm-desk__num {
    color: var(--c-accent-light);
    font-size: 13px;
    font-weight: 700;
  }

  /* Калькулятор */
  .fcalc {
    display: grid;
    gap: 20px;
    padding: 40px;
    border-radius: 24px;
    background: var(--c-surface);
    color: var(--c-text);
  }

  .fcalc__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .fcalc__label {
    font-size: 17px;
    font-weight: 600;
  }

  .fcalc__stepper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 14px;
    background: var(--c-bg-soft);
  }

  .fcalc__stepper button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--c-text);
    font-size: 22px;
    line-height: 1;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .fcalc__stepper button:disabled {
    color: var(--c-border-strong);
    cursor: default;
  }

  .fcalc__stepper input {
    width: 64px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--c-surface);
    color: var(--c-text);
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
  }

  .fcalc__stepper input::-webkit-outer-spin-button,
  .fcalc__stepper input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
  }

  /* Ползунок: зелёная часть до выбранного значения (--p задаёт скрипт) */
  .fcalc__range {
    --p: 0%;
    width: 100%;
    height: 24px;
    margin: -8px 0 0;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }

  .fcalc__range::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background:
      linear-gradient(var(--c-primary), var(--c-primary)) left / var(--p) 100% no-repeat,
      var(--c-bg-soft);
  }

  .fcalc__range::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: var(--c-bg-soft);
  }

  .fcalc__range::-moz-range-progress {
    height: 6px;
    border-radius: 999px;
    background: var(--c-primary);
  }

  .fcalc__range::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    margin-top: -9px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--c-primary);
    box-shadow: 0 2px 8px rgb(14 23 38 / 0.25);
    transition: transform 0.2s ease;
    -webkit-appearance: none;
  }

  .fcalc__range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--c-primary);
    box-shadow: 0 2px 8px rgb(14 23 38 / 0.25);
  }

  .fcalc__range:focus-visible {
    outline: none;
  }

  .fcalc__range:focus-visible::-webkit-slider-thumb {
    outline: 3px solid var(--c-focus);
    outline-offset: 2px;
  }

  .fcalc__range:focus-visible::-moz-range-thumb {
    outline: 3px solid var(--c-focus);
    outline-offset: 2px;
  }

  .fcalc__scale {
    display: flex;
    justify-content: space-between;
    margin-top: -18px;
    color: var(--c-muted);
    font-size: 13px;
  }

  /* Срок — плитки выбора: заливка, наведение — зелёная, выбранный — зелёный с галочкой */
  .fcalc__plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .fcalc__plan {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 20px;
    border-radius: 14px;
    background: var(--c-bg-soft);
    font-weight: 600;
    cursor: pointer;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .fcalc__plan input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .fcalc__plan-badge {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
    font-size: 13px;
    font-weight: 700;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .fcalc__plan-check {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-left: auto;
    border-radius: 50%;
    background: #fff;
    color: var(--c-link, var(--c-primary));
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .fcalc__plan-check svg {
    width: 14px;
    height: 14px;
  }

  .fcalc__plan:has(input:checked) {
    background: var(--c-primary);
    color: #fff;
  }

  .fcalc__plan:has(input:checked) .fcalc__plan-badge {
    background: rgb(255 255 255 / 0.16);
    color: #fff;
  }

  .fcalc__plan:has(input:checked) .fcalc__plan-check {
    opacity: 1;
  }

  .fcalc__plan:has(input:focus-visible) {
    outline: 3px solid var(--c-focus);
    outline-offset: 2px;
  }

  /* Итог: строка цены за модем всегда на месте — высота панели не меняется */
  .fcalc__total {
    display: grid;
    gap: 4px;
    padding-top: 24px;
    border-top: 1px solid var(--c-border);
  }

  .fcalc__total-label {
    color: var(--c-muted);
    font-size: 15px;
  }

  .fcalc__sum {
    display: flex;
    align-items: baseline;
    gap: 12px;
  }

  .fcalc__sum b {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
  }

  .fcalc__sum s {
    color: var(--c-muted);
    font-size: 17px;
  }

  .fcalc__unit {
    color: var(--c-muted);
    font-size: 15px;
  }

  .fcalc__actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .fcalc__actions .btn {
    padding-inline: 32px;
    white-space: nowrap;
  }

  /* Узкая панель (ПК до ~1280 px): две кнопки в ряд не помещаются — друг под другом, текст не переносится */
  .fcalc {
    container-type: inline-size;
  }

  @container (max-width: 600px) {
    .fcalc__actions {
      grid-template-columns: 1fr;
    }
  }

  /* Вторая кнопка на белой панели — светло-зелёная заливка, при наведении зелёная */
  .fcalc__buy {
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
  }

  .fcalc :focus-visible {
    outline: 3px solid var(--c-focus);
    outline-offset: 2px;
  }

  /* Ряд действий под блоком — текстовая ссылка-действие со стрелкой */
  .farm-desk__more {
    display: flex;
    justify-content: center;
    margin-top: 40px;
  }

  .farm-desk__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
  }

  .farm-desk__link::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
  }

  /* Подчёркивание как у остальных ссылок-действий: выезжает слева, уезжает вправо */
  .farm-desk__link .link__text {
    padding-bottom: 2px;
    background: linear-gradient(currentColor, currentColor) right bottom / 0 1.5px no-repeat;
    transition: background-size 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  }

  .farm-desk__link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .fcalc__stepper button:not(:disabled):hover {
    background: var(--c-primary);
    color: #fff;
  }

  .fcalc__range:hover::-webkit-slider-thumb {
    transform: scale(1.1);
  }

  .fcalc__plan:hover {
    background: var(--c-primary);
    color: #fff;
  }

  .fcalc__plan:hover .fcalc__plan-badge {
    background: rgb(255 255 255 / 0.16);
    color: #fff;
  }

  .fcalc__buy:hover {
    background: var(--c-primary);
    color: #fff;
  }

  .farm-desk__link:hover .link__text {
    background-position: left bottom;
    background-size: 100% 1.5px;
  }

  .farm-desk__link:hover::after {
    transform: translateX(3px) rotate(-45deg);
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .fcalc__range::-webkit-slider-thumb,
  .farm-desk__link::after,
  .farm-desk__link .link__text {
    transition: none;
  }
}

/* ==========================================================================
   Футер на ПК — в духе Proxy-Seller, в нашем тёмном цвете:
   сверху четыре колонки ссылок, посередине логотип с рейтингом · способы оплаты · соцсети,
   внизу копирайт и документы. Разделы — тонкими линиями. Mobile — прежний футер
   ========================================================================== */
.fdesk {
  display: none;
}

@media (min-width: 1024px) {
  .footer-mob {
    display: none;
  }

  /* Во всю ширину окна, поля по 40 px; линии среднего ряда — от края до края */
  .fdesk {
    display: block;
    max-width: none;
    width: 100%;
    padding-inline: 0;
  }

  .fdesk__cols,
  .fdesk__mid,
  .fdesk__bottom {
    padding-inline: 40px;
  }

  /* Колонки — четыре равные ячейки. Вертикальные линии между ними — от верха подвала до горизонтальной
     линии среднего ряда; текст каждой ячейки — в 40 px от левого края подвала или от линии слева */
  .fdesk__cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-inline: 0;
  }

  .fdesk__cols > nav {
    padding: 100px 40px 64px;
  }

  .fdesk__cols > nav + nav {
    border-left: 1px solid rgb(255 255 255 / 0.1);
  }

  .fdesk__title {
    margin-bottom: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .fdesk__cols ul {
    display: grid;
    gap: 12px;
  }

  /* Ссылка футера: приглушённая, при наведении белая, линия выезжает слева и уезжает вправо (как в Syntrex) */
  .fdesk__link {
    display: inline-block;
    padding: 0 0 2px;
    line-height: 1.5;
    border: 0;
    background: linear-gradient(currentColor, currentColor) right bottom / 0 1px no-repeat;
    color: var(--c-on-dark-muted);
    font: inherit;
    font-size: 15px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition:
      color 0.2s ease,
      background-size 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  }

  .fdesk__mid {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 64px;
    padding-block: 48px;
    border-block: 1px solid rgb(255 255 255 / 0.1);
  }

  .fdesk__brand {
    display: grid;
    gap: 12px;
    justify-items: start;
  }

  .fdesk__rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--c-on-dark-muted);
    font-size: 14px;
    text-decoration: none;
  }

  .fdesk__rating b {
    color: #fff;
  }

  .fdesk__label {
    margin-bottom: 16px;
    color: var(--c-on-dark-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  /* На всю среднюю колонку — иначе ряд сжимается до одной плашки в строку */
  .fdesk__pay {
    justify-self: stretch;
    text-align: center;
  }

  /* Способы оплаты — монохромные плашки-подписи, без пёстрых логотипов.
     Через .fdesk — чтобы перебить старое «.footer ul { display: grid }» */
  .fdesk .fdesk__pay-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  /* Высотой и скруглением — как кнопки соцсетей (44 px), чтобы ряд был одного веса */
  .fdesk__pay-list li {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgb(255 255 255 / 0.06);
    color: var(--c-on-dark-muted);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
  }

  .fdesk__social {
    justify-self: end;
  }

  .fdesk__social-list {
    display: flex;
    gap: 8px;
  }

  .fdesk__social-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgb(255 255 255 / 0.08);
    color: #fff;
    text-decoration: none;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .fdesk__social-btn svg {
    display: block;
    width: 22px;
    height: 22px;
  }

  .fdesk__vk {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  /* Узкий ПК: не помещаются в ряд — документы целиком уходят второй строкой, без переносов внутри */
  .fdesk__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 40px;
  }

  /* Сверху отступ — внутри колонок (линии идут от самого верха подвала).
     Снизу — столько же, сколько от линии до нижней строки: строка ровно посередине */
  .footer:has(.fdesk) {
    padding-top: 0;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }

  .fdesk__copy {
    color: var(--c-on-dark-muted);
    font-size: 14px;
    white-space: nowrap;
  }

  .fdesk__legal .fdesk__link {
    white-space: nowrap;
  }

  .fdesk .fdesk__legal {
    display: flex;
    gap: 24px;
  }

  .fdesk__legal .fdesk__link {
    font-size: 14px;
  }

  .fdesk :focus-visible {
    outline: 3px solid var(--c-accent-light);
    outline-offset: 3px;
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .fdesk__link:hover {
    background-position: left bottom;
    background-size: 100% 1px;
    color: #fff;
  }

  .fdesk__rating:hover {
    color: #fff;
  }

  .fdesk__social-btn:hover {
    background: var(--c-primary);
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .fdesk__link {
    transition: color 0.2s ease;
  }
}

/* ==========================================================================
   Белые кнопки на светло-серых секциях (ПК) сливались с фоном #fafafa —
   как вторая кнопка на белой карточке: светло-зелёная заливка, при наведении зелёная
   ========================================================================== */
@media (min-width: 1024px) {
  .section--soft .btn--outline,
  .section--soft .steps-cta__test,
  #reviews .reviews__actions .btn {
    border-color: transparent;
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  /* Метка «−15%» внутри кнопки — белая, чтобы не слиться с новой заливкой */
  .section--soft .btn--outline .reviews__bonus,
  #reviews .reviews__actions .btn .reviews__bonus {
    background: #fff;
    color: var(--c-primary-ink);
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .section--soft .btn--outline:hover,
  .section--soft .steps-cta__test:hover {
    border-color: transparent;
    background: var(--c-primary);
    color: #fff;
  }

  .section--soft .btn--outline:hover .reviews__bonus {
    background: rgb(255 255 255 / 0.16);
    color: #fff;
  }
}

/* ==========================================================================
   Звёзды рейтинга — иконка владельца «звезда в кружке» вместо символов ★ / ☆.
   Размер — от шрифта строки; незаполненные — бледные
   ========================================================================== */
.star,
.review__stars,
.rcard__stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  letter-spacing: 0;
  vertical-align: -0.15em;
}

.star svg,
.review__stars svg,
.rcard__stars svg {
  width: 1em;
  height: 1em;
  flex: none;
}

.review__stars svg.is-off,
.rcard__stars svg.is-off,
.star svg.is-off {
  opacity: 0.25;
}

/* Крупные звёзды в окне отзыва — отдельной строкой, как раньше */
.rcard__stars--big {
  display: flex;
}

/* ==========================================================================
   «Выбрано / готово» — иконка владельца «галочка в кружке»: кружок уже нарисован,
   прежние подложки-кружки не нужны. Галочка вырезана — сквозь неё виден фон плашки
   ========================================================================== */
.success-icon {
  background: none;
}

.success-icon svg {
  width: 56px;
  height: 56px;
}

@media (min-width: 1024px) {
  .task[aria-pressed='true'] .task__mark {
    background: none;
    color: #fff;
  }

  .task[aria-pressed='true'] .task__mark svg:last-child {
    width: 26px;
    height: 26px;
  }

  .fcalc__plan-check {
    width: 22px;
    height: 22px;
    background: none;
    color: #fff;
  }

  .fcalc__plan-check svg {
    width: 22px;
    height: 22px;
  }

  .pcalc__check {
    background: none;
    color: var(--c-link, var(--c-primary));
  }

  .pcalc__check svg {
    width: 18px;
    height: 18px;
  }
}

/* Ссылки под формой первого экрана (ПК): вместо мгновенного подчёркивания —
   линия под текстом выезжает слева и уезжает вправо, как у остальных ссылок-действий */
@media (min-width: 1024px) {
  .hero__bottom .hero__link:hover {
    text-decoration: none;
  }

  .hero__bottom .hero__link-full {
    padding-bottom: 2px;
    background: linear-gradient(currentColor, currentColor) right bottom / 0 1.5px no-repeat;
    transition: background-size 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .hero__bottom .hero__link:hover .hero__link-full {
    background-position: left bottom;
    background-size: 100% 1.5px;
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .hero__bottom .hero__link-full {
    transition: none;
  }
}

/* В описании рекомендации значок «i» лишний (решение владельца): пояснения терминов — на плитках «Типов прокси» */
@media (min-width: 1024px) {
  .reco__why .tip {
    display: none;
  }
}

/* Плавающая кнопка «Чат» пока не нужна (решение владельца). Сам чат открывается
   из «Техподдержки» в футере и «Онлайн-чата» в блоке поддержки */
.chat-fab {
  display: none;
}

/* ==========================================================================
   Стрелки, нарисованные в CSS, — иконка владельца «Стрелочка» (маска, цвет — от текста).
   «›» у ссылок-действий сдвигается вправо при наведении; «⌄» у таблицы при раскрытии смотрит вверх
   ========================================================================== */
:root {
  --arrow-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.75,9.525,11.164,4.939A1.5,1.5,0,0,0,9.043,7.061l4.586,4.585a.5.5,0,0,1,0,.708L9.043,16.939a1.5,1.5,0,0,0,2.121,2.122l4.586-4.586A3.505,3.505,0,0,0,15.75,9.525Z'/%3E%3C/svg%3E");
}

.compare-all > summary::after {
  width: 14px;
  height: 14px;
  border: 0;
  background: currentColor;
  -webkit-mask: var(--arrow-mask) center / contain no-repeat;
  mask: var(--arrow-mask) center / contain no-repeat;
  transform: rotate(90deg);
}

.compare-all[open] > summary::after {
  transform: rotate(-90deg);
}

@media (min-width: 1024px) {
  .section--green .compare__more .link::after,
  .faq-side__link::after,
  .faq-side__more::after,
  .pbanner__link::after,
  .farm-desk__link::after {
    width: 14px;
    height: 14px;
    border: 0;
    background: currentColor;
    -webkit-mask: var(--arrow-mask) center / contain no-repeat;
    mask: var(--arrow-mask) center / contain no-repeat;
    transform: none;
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .section--green .compare__more .link:hover::after,
  .faq-side__link:hover::after,
  .faq-side__more:hover::after,
  .pbanner__link:hover::after,
  .farm-desk__link:hover::after {
    transform: translateX(3px);
  }
}

/* ==========================================================================
   «Остались вопросы?» на ПК: метка «На связи 24/7» и три канала карточками — как задачи
   в «Для чего вам прокси?»: светлая заливка, иконка в белой плашке, стрелка; при наведении — зелёная
   заливка и белый текст, стрелка сдвигается. Mobile — прежние кнопки
   ========================================================================== */
.support__live,
.support-cards {
  display: none;
}

@media (min-width: 1024px) {
  .support__buttons {
    display: none;
  }

  .support__live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
    font-size: 13px;
    font-weight: 700;
  }

  .support__live::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-primary);
    box-shadow: 0 0 0 3px rgb(50 157 65 / 0.18);
  }

  /* Блок шире узкого контейнера — карточкам нужно место; заголовок и пояснение остаются по центру */
  #support .support {
    max-width: calc(1000px + 2 * var(--gutter));
  }

  .support-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
  }

  .support-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr auto auto;
    align-items: start;
    min-height: 200px;
    /* Маленькая плашка — поля 20 px со всех сторон (правило владельца) */
    padding: 20px;
    border: 0;
    border-radius: 24px;
    background: var(--c-bg-soft);
    color: var(--c-text);
    font: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .support-card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    color: var(--c-link, var(--c-primary));
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .support-card__icon svg {
    width: 24px;
    height: 24px;
  }

  /* Видимый край стрелки — на том же отступе от края, что остальное: у значка свои поля ~6 px справа.
     По высоте — по центру иконки канала */
  .support-card__arrow {
    justify-self: end;
    align-self: center;
    margin-right: -6px;
    color: var(--c-muted);
    transition:
      transform 0.3s ease,
      color 0.2s ease;
  }

  .support-card__arrow svg {
    display: block;
    width: 20px;
    height: 20px;
  }

  .support-card__name {
    grid-column: 1 / -1;
    grid-row: 3;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
  }

  .support-card__sub {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 6px;
    color: var(--c-muted);
    font-size: 15px;
    /* Без лишнего межстрочного воздуха: до низа карточки видимые 40 px */
    line-height: 1.2;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
  }

  /* Время ответа — плашкой справа от названия канала (как «30 sec median reply» у Proxy-Seller) */
  .support-card__meta {
    grid-column: 2;
    grid-row: 3;
    align-self: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;
    color: var(--c-primary-ink);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .support-card:focus-visible {
    outline: 3px solid var(--c-focus);
    outline-offset: 3px;
  }
}

@media (min-width: 1024px) and (hover: hover) {
  .support-card:hover {
    background: var(--c-primary);
    color: #fff;
  }

  .support-card:hover .support-card__icon,
  .support-card:hover .support-card__meta {
    background: rgb(255 255 255 / 0.16);
    color: #fff;
  }

  .support-card:hover .support-card__sub,
  .support-card:hover .support-card__arrow {
    color: #fff;
  }

  .support-card:hover .support-card__arrow {
    transform: translateX(3px);
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .support-card__arrow {
    transition: color 0.2s ease;
  }
}

/* ==========================================================================
   Телефон (до 767 px): страница намертво стоит по горизонтали,
   первый экран — ровно 100svh вместе с шапкой
   ========================================================================== */
@media (max-width: 767px) {
  html,
  body {
    overflow-x: clip;
    overscroll-behavior-x: none;
  }

  :root {
    --gutter: 20px;
  }

  html {
    touch-action: pan-y pinch-zoom;
  }

  /* iOS приближает страницу, если шрифт поля меньше 16px */
  .qb-stepper input {
    font-size: 16px;
  }

  .hero {
    /* Высота плашки: 54px на низких экранах, больше — на высоких */
    --qb-row: clamp(50px, calc(11.4svh - 23px), 80px);

    /* 1px — нижняя граница шапки */
    min-height: calc(100svh - var(--header-h) - 1px);
    padding-top: clamp(10px, calc(3.6svh - 10px), 24px);
  }

  .hero h1 {
    font-size: min(6.5vw, clamp(22px, calc(3.6svh + 2px), 32px));
    line-height: 1.15;
    text-wrap: balance;
  }

  .hero .hero__sub {
    margin-top: clamp(6px, 1.2svh, 12px);
    font-size: min(4.1vw, clamp(14px, 2.4svh, 16px));
    line-height: 1.4;
  }

  .quickbuy {
    gap: clamp(6px, 1.2svh, 10px);
    margin-top: clamp(16px, calc(8svh - 29px), 32px);
  }

  .quickbuy__field,
  .quickbuy__total {
    min-height: var(--qb-row);
    padding: 3px 14px;
  }

  .quickbuy__field {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .quickbuy__field[hidden] {
    display: none;
  }

  .quickbuy__total {
    align-content: center;
  }

  .qb-static {
    margin-top: 1px;
    min-height: 26px;
    line-height: 1.2;
  }

  .quickbuy__label {
    line-height: 1.3;
  }

  .quickbuy__sum {
    margin-top: 0;
    line-height: 1.2;
  }

  .dd__button,
  .quickbuy .dd__button {
    min-height: 26px;
    margin-top: 1px;
  }

  /* Нажимается вся плашка вместе с подписью */
  .quickbuy .dd,
  .quickbuy .dd__button {
    position: static;
  }

  .quickbuy .dd__button::after {
    inset: 0;
  }

  .quickbuy .quickbuy__buy {
    min-height: clamp(50px, 8.4svh, 60px);
  }

  .hero__bottom {
    padding: 8px 0;
  }

  .hero__bottom .hero__links {
    gap: 8px;
  }

  .hero__bottom .hero__link {
    min-height: clamp(48px, 8.4svh, 60px);
  }
}

/* Низкие телефоны (iPhone SE и т. п.): всё равно целиком в экран */
@media (max-width: 767px) and (max-height: 663px) {
  .hero {
    --qb-row: 48px;

    padding-top: 8px;
  }

  .hero .hero__sub {
    margin-top: 4px;
    line-height: 1.3;
  }

  .quickbuy {
    margin-top: 16px;
  }

  .quickbuy__field,
  .quickbuy__total {
    padding-block: 1px;
  }

  .qb-stepper button,
  .qb-stepper input {
    height: 44px;
  }

  .quickbuy .quickbuy__buy {
    min-height: 48px;
  }

  .hero__bottom {
    padding: 6px 0;
  }
}

/* Узкие телефоны: колонки не шире экрана, длинные слова переносятся */
@media (max-width: 389px) {
  .tasks,
  .platforms,
  .product__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platforms span,
  .task__title,
  .stat__value {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

/* Размер иконок задан атрибутами — дублируем в CSS, чтобы они участвовали в автоскейле */
:where(svg[width='20'][height='20']) {
  width: 20px;
  height: 20px;
}

:where(svg[width='36'][height='38']) {
  width: 36px;
  height: 38px;
}

/* Телефон: нижние ссылки — одна стеклянная плашка с полными подписями, как на ПК */
@media (max-width: 767px) {
  .hero__bottom .container.hero__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: calc(100% - var(--gutter) * 2);
    padding: 0;
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 14px;
    background: linear-gradient(180deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.03));
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1);
  }

  .hero__bottom .hero__links > .hero__link {
    flex-direction: row;
    order: 0;
    gap: 8px;
    width: 100%;
    min-height: clamp(36px, 5.6svh, 46px);
    padding: 0 8px;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: min(3.9vw, 15px);
    white-space: nowrap;
  }

  .hero__bottom .hero__links > .hero__link + .hero__link {
    border-top: 1px solid rgb(255 255 255 / 0.08);
  }

  .hero__bottom .hero__link [data-icon] svg {
    width: 17px;
    height: 17px;
  }

  .hero__bottom .hero__link-full {
    display: inline;
  }

  .hero__bottom .hero__link-short {
    display: none;
  }
}

/* Низкие телефоны: та же плашка в две строки — тест и бот рядом, подбор под ними */
@media (max-width: 767px) and (max-height: 663px) {
  .hero__bottom .container.hero__links {
    flex-flow: row wrap;
  }

  .hero__bottom .hero__links > .hero__link {
    flex: 1 1 auto;
    gap: 5px;
    width: auto;
    padding: 0 4px;
    font-size: min(3.2vw, 14px);
  }

  .hero__bottom .hero__links > [href='#picker'] {
    order: 1;
    flex-basis: 100%;
  }

  .hero__bottom .hero__links > .hero__link + .hero__link:not([href='#picker']) {
    border-top: 0;
    border-left: 1px solid rgb(255 255 255 / 0.08);
  }
}

/* Телефон: новая плашка вместе с формой — ровно в 100svh */
@media (max-width: 767px) {
  .hero {
    padding-top: clamp(8px, calc(3.6svh - 14px), 24px);
  }

  .qb-stepper button,
  .qb-stepper input {
    height: 44px;
  }

  .quickbuy .quickbuy__buy {
    min-height: clamp(48px, 7.7svh, 60px);
  }

  .hero__bottom {
    padding: 6px 0;
  }
}

@media (max-width: 767px) and (max-height: 663px) {
  .hero {
    padding-top: 6px;
  }

  .quickbuy {
    margin-top: 14px;
  }

  .hero__bottom {
    padding: 4px 0;
  }

  .hero__bottom .hero__links > .hero__link:not([href='#picker']) .hero__link-full {
    display: none;
  }

  .hero__bottom .hero__links > .hero__link:not([href='#picker']) .hero__link-short {
    display: inline;
  }

  .hero__bottom .hero__links > .hero__link {
    flex: 1 1 0;
    font-size: min(3.9vw, 14px);
  }
}

/* Телефон: плашка ссылок — то же стекло с размытием, что у полей формы */
@media (max-width: 767px) {
  .hero__bottom .container.hero__links {
    position: relative;
    isolation: isolate;
    border-color: rgb(255 255 255 / 0.14);
    background: linear-gradient(180deg, rgb(255 255 255 / 0.11), rgb(255 255 255 / 0.04));
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.12),
      0 8px 32px rgb(0 0 0 / 0.25);
  }

  .hero__bottom .container.hero__links::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
  }
}

/* Телефон: шапка во всю ширину, но цвет и стекло — как у плашки на ПК.
   Первый экран под ней: воздух над заголовком и под плашкой ссылок всегда равный */
@media (max-width: 767px) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    isolation: isolate;
    border-bottom-color: rgb(255 255 255 / 0.12);
    background: linear-gradient(180deg, rgb(30 41 58 / 0.82), rgb(18 28 42 / 0.82));
  }

  .header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
  }

  .header .cart-btn__count {
    border-color: rgb(24 34 50);
  }

  .hero {
    --hero-air: clamp(10px, calc(5svh - 24px), 28px);

    min-height: 100svh;
    padding-top: calc(var(--header-h) + 1px + var(--hero-air));
    padding-bottom: var(--hero-air);
  }

  .hero::before,
  .hero::after {
    content: '';
    flex: 1 1 0;
  }

  /* Воздух считаем от букв, а не от межстрочного поля */
  .hero h1 {
    margin-top: -0.2em;
  }

  .hero__bottom {
    flex: none;
    padding: clamp(6px, calc(4svh - 20px), 16px) 0 0;
  }
}

@media (max-width: 767px) and (max-height: 663px) {
  .hero {
    --hero-air: 6px;
  }

  .hero__bottom {
    padding: 6px 0 0;
  }
}

/* ==========================================================================
   Меню на телефоне — светлое: строки во всю ширину, разделённые полосками.
   Шапка над открытым меню тоже становится белой
   ========================================================================== */
@media (max-width: 767px) {
  body.menu-open .header {
    border-bottom-color: var(--c-border);
    background: var(--c-surface);
    color: var(--c-text);
  }

  body.menu-open .header .logo__mark,
  body.menu-open .header .cart-btn,
  body.menu-open .header .burger,
  body.menu-open .header .header__login {
    color: var(--c-text);
  }

  body.menu-open .header .logo__tagline {
    color: var(--c-muted);
  }

  body.menu-open .header .cart-btn__count {
    border-color: var(--c-surface);
  }

  body.menu-open .header .cart-btn:hover,
  body.menu-open .header .header__login:hover {
    background: var(--c-bg-soft);
  }

  body.menu-open .header .burger,
  body.menu-open .header .burger:hover {
    border-radius: var(--radius-sm);
    background: var(--c-bg-soft);
  }

  body.menu-open .header :focus-visible {
    outline-color: var(--c-focus);
  }

  .header .nav.is-open {
    top: calc(var(--header-h) + 1px);
    height: calc(100dvh - var(--header-h) - 1px);
    padding: 0 0 calc(24px + env(safe-area-inset-bottom));
    background: var(--c-surface);
    color: var(--c-text);
    animation: menu-in 0.2s ease;
  }

  .nav.is-open .nav__list {
    gap: 0;
  }

  .header .nav.is-open .nav__link {
    justify-content: space-between;
    min-height: 54px;
    padding: 0 var(--gutter);
    border-bottom: 1px solid var(--c-border);
    color: var(--c-text);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0;
  }

  .header .nav.is-open .nav__link:hover,
  .header .nav.is-open .nav__link:active,
  .header .nav.is-open .nav__link[aria-expanded='true'] {
    background: var(--c-bg-soft);
    color: var(--c-link, var(--c-primary));
  }

  .header .nav.is-open .nav__dropdown {
    padding: 0;
    background: var(--c-section-soft);
  }

  .header .nav.is-open .nav__dropdown a {
    min-height: 50px;
    padding: 0 var(--gutter) 0 calc(var(--gutter) + 16px);
    border-bottom: 1px solid var(--c-border);
    border-radius: 0;
    color: var(--c-muted);
    font-size: 16px;
  }

  .header .nav.is-open .nav__dropdown a:hover {
    color: var(--c-link, var(--c-primary));
  }

  .nav.is-open .nav__mobile-extra {
    min-height: 60px;
    margin-top: 0;
    padding: 0 var(--gutter);
    border-top: 0;
    border-bottom: 1px solid var(--c-border);
  }

  .nav__lang-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 500;
  }

  .header .nav.is-open .lang {
    border-color: transparent;
    border-radius: 12px;
    background: var(--c-bg-soft);
  }

  .header .nav.is-open .lang__btn {
    min-width: 56px;
    min-height: 40px;
    border-radius: 9px;
    color: var(--c-muted);
    font-size: 15px;
  }

  .header .nav.is-open .lang__btn[aria-pressed='true'] {
    background: var(--c-primary);
    color: #fff;
  }

  body.menu-open .chat-fab {
    visibility: hidden;
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
  }
}

/* Корзина видна только с товаром; вход на телефоне — в меню, на ПК — в шапке */
.cart-btn[hidden] {
  display: none;
}

.nav__login {
  display: none;
}

@media (max-width: 767px) {
  .header .header__login {
    display: none;
  }

  .nav.is-open .nav__login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: none;
    min-height: 52px;
    margin: 24px var(--gutter) 0;
    border-radius: 12px;
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .nav.is-open .nav__login:active {
    background: var(--c-primary);
    color: #fff;
  }
}

/* Телефон: наличие на плашке «Тариф» и кнопка корзины справа от «Купить прокси» */
.qb-cart {
  display: none;
}

@media (max-width: 767px) {
  .quickbuy {
    --qb-buy-h: clamp(48px, 7.7svh, 60px);

    position: relative;
  }

  .quickbuy .quickbuy__buy {
    margin-right: calc(var(--qb-buy-h) + 8px);
    height: var(--qb-buy-h);
    min-height: 0;
  }

  .qb-cart {
    position: absolute;
    right: 0;
    bottom: 0;
    display: grid;
    place-items: center;
    width: var(--qb-buy-h);
    height: var(--qb-buy-h);
    padding: 0;
    border: 1px solid rgb(255 255 255 / 0.14);
    border-radius: 12px;
    background: linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.08));
    color: var(--c-accent-light);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
  }

  .qb-cart svg {
    display: block;
    width: 22px;
    height: 22px;
  }

  .qb-cart.is-done {
    background: var(--c-primary);
    color: #fff;
  }

  .quickbuy.is-farm .quickbuy__buy {
    margin-right: 0;
  }

  .quickbuy.is-farm .qb-cart {
    display: none;
  }

  /* Наличие — в правом верхнем углу плашки «Тариф», на одной линии с подписью */
  .qb-stock--mob:not(:empty) {
    position: absolute;
    top: calc((max(var(--qb-row), 50px) - 46px) / 2);
    right: 15px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--c-hero-muted);
    font-size: 13px;
    line-height: 17px;
    white-space: nowrap;
    pointer-events: none;
  }

  .qb-stock--mob::before {
    content: '';
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-accent-light);
    box-shadow: 0 0 0 3px rgb(182 238 160 / 0.18);
  }

  .qb-stock--mob b {
    color: #fff;
    font-weight: 600;
  }

  .qb-stock--mob.is-low::before {
    background: #f5c26b;
    box-shadow: 0 0 0 3px rgb(245 194 107 / 0.2);
  }
}

@media (min-width: 768px) {
  .quickbuy .qb-stock--mob {
    display: none;
  }
}

/* Наличие (ПК и телефон): точка с ореолом не прилипает к тексту, слово и число — одна фраза */
.quickbuy .qb-stock {
  gap: 5px;
}

.quickbuy .qb-stock::before {
  margin-right: 6px;
}

/* ==========================================================================
   Оформление заказа и корзина.
   ПК: слева e-mail и оплата, справа серая панель заказа с суммой и кнопкой.
   Телефон: шторка — заказ, e-mail, оплата, купон, сумма; кнопка «Оплатить» закреплена внизу
   ========================================================================== */
.modal--checkout .modal__head,
.modal--cart .modal__head {
  border-bottom: 0;
}

.modal--checkout .modal__title,
.modal--cart .modal__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal--checkout .icon-btn,
.modal--cart .icon-btn {
  background: var(--c-bg-soft);
  border-radius: 12px;
}

.co {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 20px;
}

.co[hidden],
.co [hidden] {
  display: none;
}

.co__side {
  display: contents;
}

.co__main {
  display: grid;
  order: 2;
  gap: 20px;
}

.co__summary {
  order: 1;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--c-bg-soft);
}

.co__coupon {
  order: 3;
}

.co__totals {
  order: 4;
}

.co__consent {
  order: 5;
}

.co__footer {
  position: sticky;
  bottom: 0;
  z-index: 1;
  order: 6;
  margin-inline: -20px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
}

.co__field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.co__label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
}

.co__label {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.co__login,
.co__edit {
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-link, var(--c-primary));
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
}

.co__login::after,
.co__edit::after {
  content: '';
  position: absolute;
  inset: -13px -8px;
}

.co__login:hover,
.co__edit:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.co__input {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  border-radius: 12px;
  font-size: 16px;
}

.co__hint {
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.4;
}

.co .field__error:empty,
.co .coupon__msg:empty {
  display: none;
}

.co__items {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.co__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.co__item-info {
  display: grid;
  gap: 1px;
  min-width: 0;
  font-size: 15px;
}

.co__item-info b {
  font-weight: 500;
}

.co__item-info span {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.4;
}

.co__item-price {
  flex: none;
  font-size: 15px;
  font-weight: 600;
}

.co__pay {
  gap: 8px;
  margin-top: 8px;
}

.co__pay .pay-option__body {
  gap: 10px;
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  line-height: 1.2;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.co__pay .pay-option__body svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--c-link, var(--c-primary));
}

.co__pay .pay-option input:checked + .pay-option__body {
  border-color: var(--c-primary);
  box-shadow: inset 0 0 0 1px var(--c-primary);
}

.co__details > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px dashed var(--c-border-strong);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.co__details > summary::-webkit-details-marker {
  display: none;
}

.co__details > summary [data-icon] {
  display: grid;
  color: var(--c-link, var(--c-primary));
}

.co__details > summary .co__chev {
  margin-left: auto;
  color: var(--c-muted);
  transition: transform 0.2s ease;
}

.co__details[open] > summary .co__chev {
  transform: rotate(180deg);
}

.co__coupon-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.co__coupon-row .input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  border-radius: 12px;
  font-size: 16px;
  text-transform: uppercase;
}

.co__coupon-row .input::placeholder {
  text-transform: none;
}

.co__apply {
  flex: none;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--c-primary-soft);
  color: var(--c-primary-ink);
  font-size: 15px;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.co__apply:hover {
  background: var(--c-primary);
  color: #fff;
}

.co__coupon-ok {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--c-primary-soft);
  color: var(--c-primary-ink);
  font-size: 15px;
}

.co__coupon-ok [data-icon] {
  display: grid;
}

.co__coupon-ok .co__edit {
  margin-left: auto;
}

.totals {
  display: grid;
  gap: 6px;
}

.totals__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--c-muted);
  font-size: 15px;
}

.totals__row--good {
  color: var(--c-link, var(--c-primary));
}

.totals__row--main {
  color: var(--c-text);
  font-size: 17px;
  font-weight: 600;
}

.totals__row--main span:last-child {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.co__consent .check {
  font-size: 14px;
  line-height: 1.4;
}

.co__fine {
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 13px;
  text-align: center;
}

/* Корзина */
.modal--cart .modal__body {
  padding: 0 20px;
}

.cart-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--c-bg-soft);
}

.cart-row + .cart-row {
  margin-top: 8px;
}

.cart-row__info {
  display: grid;
  gap: 2px;
}

.cart-row__info b {
  font-size: 16px;
  font-weight: 600;
}

.cart-row__info span {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.4;
}

.cart-row__info .cart-row__coupon {
  color: var(--c-link, var(--c-primary));
}

.cart-row__remove {
  display: grid;
  place-items: center;
  align-self: start;
  justify-self: end;
  width: 44px;
  height: 44px;
  margin: -8px -10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--c-muted);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.cart-row__remove:hover {
  background: var(--c-surface);
  color: var(--c-danger);
}

.cart-step {
  display: inline-grid;
  grid-template-columns: 44px 36px 44px;
  align-items: center;
  justify-self: start;
  height: 44px;
  border-radius: 12px;
  background: var(--c-surface);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.cart-step button {
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--c-text);
  font-size: 20px;
}

.cart-step button:hover:not(:disabled) {
  background: var(--c-primary-soft);
  color: var(--c-primary-ink);
}

.cart-step button:disabled {
  color: var(--c-border-strong);
}

.cart-row__price {
  display: grid;
  font-size: 18px;
  line-height: 1.25;
  text-align: right;
}

.cart-row__price s {
  color: var(--c-muted);
  font-size: 14px;
}

.cart-foot {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 12px;
  margin: 16px -20px 0;
  padding: 14px 20px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
}

.cart-foot__more {
  min-height: 44px;
  margin-top: -4px;
  border: 0;
  background: none;
  color: var(--c-link, var(--c-primary));
  font-size: 15px;
  font-weight: 500;
}

.cart-empty__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: var(--c-primary-soft);
  color: var(--c-link, var(--c-primary));
}

.cart-empty__title {
  color: var(--c-text);
  font-size: 18px;
  font-weight: 600;
}

.modal--cart .modal__body > .btn {
  margin-block: 12px 20px;
}

@media (min-width: 768px) {
  .modal--checkout {
    width: 1080px;
    max-width: calc(100vw - 48px);
    border-radius: 24px;
  }

  .modal--cart {
    width: 640px;
    border-radius: 24px;
  }

  .modal--checkout .modal__head,
  .modal--cart .modal__head {
    padding: 28px 32px 20px 40px;
  }

  .modal--checkout .modal__title,
  .modal--cart .modal__title {
    font-size: 30px;
  }

  .modal--cart .modal__body {
    padding-inline: 40px;
  }

  .co {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    align-items: start;
    gap: 40px;
    padding: 0 40px 40px;
  }

  .co__main {
    order: 0;
    gap: 32px;
  }

  .co__side {
    display: grid;
    order: 1;
    gap: 20px;
    padding: 28px;
    border-radius: 20px;
    background: var(--c-bg-soft);
  }

  .co__summary {
    padding: 0;
    background: none;
  }

  .co__totals {
    padding-top: 20px;
    border-top: 1px solid var(--c-border);
  }

  .co__footer {
    position: static;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
  }

  .co__label {
    font-size: 19px;
  }

  .co__login,
  .co__edit,
  .co__hint,
  .co__item-info span,
  .co__consent .check,
  .co__fine,
  .cart-row__info span {
    font-size: 16px;
  }

  .co__item-info,
  .co__item-price,
  .co__details > summary,
  .co__coupon-ok,
  .co__apply,
  .totals__row,
  .cart-foot__more {
    font-size: 17px;
  }

  .co__input,
  .co__coupon-row .input,
  .co__pay .pay-option__body {
    font-size: 18px;
  }

  .co__input {
    min-height: 64px;
    padding-inline: 20px;
  }

  .co__pay {
    gap: 12px;
    margin-top: 12px;
  }

  .co__pay .pay-option__body {
    min-height: 76px;
    padding: 12px 20px;
    gap: 14px;
  }

  .co__pay .pay-option__body svg {
    width: 28px;
    height: 28px;
  }

  .co__details > summary,
  .co__coupon-ok {
    min-height: 56px;
    background: var(--c-surface);
  }

  .co__coupon-ok {
    background: var(--c-primary-soft);
  }

  .totals__row--main {
    font-size: 20px;
  }

  .totals__row--main span:last-child {
    font-size: 32px;
  }

  #checkout-pay,
  .cart-foot .btn {
    min-height: 68px;
    font-size: 21px;
  }

  .cart-row {
    padding: 20px 24px;
  }

  .cart-row__info b {
    font-size: 20px;
  }

  .cart-row__price {
    font-size: 22px;
  }

  .cart-foot {
    margin-inline: -40px;
    padding: 20px 40px 20px;
  }
}

/* Окно «Заказ оформлен» и узкие экраны */
.co__main,
.co__pay {
  min-width: 0;
}

.co__main {
  grid-template-columns: minmax(0, 1fr);
}

.co__pay {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#checkout-success .success-icon {
  color: var(--c-link, var(--c-primary));
}

@media (max-width: 359px) {
  .co__pay .pay-option__body {
    padding-inline: 8px;
    gap: 6px;
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .modal--checkout:has(#checkout-success:not([hidden])) {
    width: 640px;
  }

  #checkout-success {
    padding: 8px 40px 40px;
    font-size: 18px;
  }
}

@media (min-width: 768px) {
  #checkout-success h3 {
    font-size: 26px;
  }

  #checkout-success .btn {
    min-height: 64px;
    font-size: 20px;
  }
}

/* Воздух у полей и кнопки в окне оплаты */
.co .co__input,
.co .co__pay,
.co .co__hint,
.co .co__fine {
  margin-top: 10px;
}

@media (min-width: 768px) {
  .co .co__input,
  .co .co__pay,
  .co .co__hint {
    margin-top: 14px;
  }

  .co .co__fine {
    margin-top: 18px;
  }
}

@media (max-width: 767px) {
  .co,
  .co__main {
    gap: 16px;
  }
}

/* Единые поля: крестик по правому краю контента, пустая корзина */
.modal--checkout .modal__head,
.modal--cart .modal__head {
  padding-right: 20px;
}

.modal--cart .cart-empty {
  padding: 12px 0 0;
}

.cart-empty__icon svg {
  width: 28px;
  height: 28px;
}

.modal--cart .cart-empty__title {
  margin-bottom: 6px;
  line-height: 1.3;
}

.modal--cart .modal__body > .btn {
  margin-block: 24px calc(20px + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  .modal--checkout .modal__head,
  .modal--cart .modal__head {
    padding-right: 40px;
  }

  .modal--cart .cart-empty {
    font-size: 18px;
  }

  .cart-empty__icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 22px;
  }

  .cart-empty__icon svg {
    width: 36px;
    height: 36px;
  }

  .modal--cart .cart-empty__title {
    margin-bottom: 8px;
    font-size: 24px;
  }

  .modal--cart .modal__body > .btn {
    min-height: 64px;
    margin-block: 32px 40px;
    font-size: 20px;
  }
}

.co__login-row {
  color: var(--c-muted);
  font-size: 14px;
}

@media (min-width: 768px) {
  .co__login-row {
    font-size: 16px;
  }
}

/* Способы оплаты: «Ещё 8 способов» раскрывает список под плитками.
   Свёрнуто — из дополнительных виден только выбранный */
.co__pay:not(.is-open) .pay-option--extra:not(:has(:checked)) {
  display: none;
}

.pay-more {
  justify-content: space-between;
  width: 100%;
  background: var(--c-bg-soft);
  color: var(--c-text);
  font-family: inherit;
  text-align: left;
}

.co__pay .pay-more {
  border-color: transparent;
}

.pay-more:hover {
  border-color: var(--c-primary);
}

.pay-more__chev {
  display: grid;
  transition: transform 0.2s ease;
}

.co__pay .pay-more__chev svg {
  width: 20px;
  height: 20px;
}

.co__pay.is-open .pay-more__chev {
  transform: rotate(180deg);
}

@media (min-width: 768px) {
  .co__pay .pay-option--extra .pay-option__body {
    min-height: 60px;
  }
}

@media (max-width: 767px) {
  .co__pay {
    scroll-margin-top: 112px;
  }
}

/* ---------- Вход, регистрация, сброс пароля ---------- */
.modal--auth .modal__head {
  padding-right: 20px;
  border-bottom: 0;
}

.modal--auth .modal__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal--auth .icon-btn {
  border-radius: 12px;
  background: var(--c-bg-soft);
}

.modal--auth .modal__body {
  padding: 0 20px calc(20px + env(safe-area-inset-bottom));
}

.auth__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.auth__form[hidden] {
  display: none;
}

.auth__field .co__label {
  display: block;
}

.auth__field .co__input {
  margin-top: 10px;
}

.auth__pass {
  position: relative;
}

.auth__pass .co__input {
  padding-right: 56px;
}

.auth__pass input::-ms-reveal {
  display: none;
}

.auth__eye {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--c-muted);
  cursor: pointer;
}

.auth__eye:hover {
  color: var(--c-text);
}

.auth__eye span {
  display: grid;
}

.auth__eye svg {
  width: 22px;
  height: 22px;
}

.auth__eye[aria-pressed='false'] [data-icon='eye'],
.auth__eye[aria-pressed='true'] [data-icon='eyeOff'] {
  display: none;
}

.auth__link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-link, var(--c-primary));
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.auth__link:hover {
  text-decoration: underline;
}

.auth__forgot {
  display: block;
  margin-top: 4px;
  padding-block: 8px;
  color: var(--c-muted);
  font-size: 15px;
  font-weight: 500;
}

.auth__forgot:hover {
  color: var(--c-link, var(--c-primary));
}

.auth__switch,
.auth__text {
  color: var(--c-muted);
  font-size: 15px;
  line-height: 1.5;
}

.auth__switch {
  text-align: center;
}

.auth__switch .auth__link {
  padding-block: 8px;
}

.auth__or {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--c-muted);
  font-size: 14px;
}

.auth__or::before,
.auth__or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

.auth__tid {
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: #ffdd2d;
  color: #1d1d1f;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.auth__tid:hover {
  background: #fcc521;
}

.auth__tid:focus-visible,
.auth__eye:focus-visible,
.auth__link:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .modal--auth {
    width: 560px;
    border-radius: 24px;
  }

  .modal--auth .modal__head {
    padding: 28px 40px 20px;
  }

  .modal--auth .modal__title {
    font-size: 30px;
  }

  .modal--auth .modal__body {
    padding: 0 40px 40px;
  }

  .auth__form {
    gap: 22px;
  }

  .auth__field .co__input {
    margin-top: 12px;
    font-size: 18px;
  }

  .auth__pass .co__input {
    padding-right: 68px;
  }

  .auth__eye {
    right: 8px;
    bottom: 8px;
    width: 48px;
    height: 48px;
  }

  .auth__eye svg {
    width: 26px;
    height: 26px;
  }

  .auth__forgot,
  .auth__switch,
  .auth__text,
  .auth__or,
  .modal--auth .check,
  .modal--auth .field__error {
    font-size: 17px;
  }

  .modal--auth .btn--xl {
    min-height: 64px;
    font-size: 20px;
  }

  .auth__tid {
    min-height: 64px;
    font-size: 20px;
  }
}

/* Мобильное меню: все пункты сразу, без «Ещё» */
@media (max-width: 767px) {
  .header .nav.is-open .nav__inline-extra {
    display: block;
  }

  .header .nav.is-open .nav__more {
    display: none;
  }
}

@media (max-width: 767px) and (max-height: 620px) {
  .header .nav.is-open .nav__link {
    min-height: 48px;
  }

  .nav.is-open .nav__login {
    margin-top: 14px;
  }
}

/* Телефон: в шапке по 20 px воздуха над и под логотипом (и при открытом меню).
   На совсем низких экранах остаётся 64 px, иначе первый экран не влезает */
@media (max-width: 767px) and (min-height: 600px) {
  :root {
    --header-h: 78px;
  }
}

/* Место под более высокую шапку: чуть плотнее подзаголовок и плашки, первый экран остаётся 100svh */
@media (max-width: 767px) and (min-height: 664px) {
  .hero .hero__sub {
    line-height: 1.35;
  }

  .hero .quickbuy {
    gap: clamp(6px, 1.1svh, 10px);
    margin-top: clamp(16px, calc(8svh - 33px), 32px);
  }
}

/* Сетка окна оплаты: «Ещё/Свернуть» всегда последняя плитка; на ПК низ плиток и серой панели — одна линия */
.co__pay .pay-option,
.co__pay .pay-more {
  min-width: 0;
  margin: 0;
}

.co__pay:not(.is-open):has(.pay-option--extra :checked) .pay-more {
  grid-column: 1 / -1;
}

.pay-more__pc {
  display: none;
}

@media (min-width: 768px) {
  .pay-more__pc {
    display: inline;
  }

  .pay-more__mob {
    display: none;
  }

  .co__pay:not(.is-open) .pay-option--pc.pay-option--extra:not(:has(:checked)) {
    display: block;
  }

  .co__pay:not(.is-open):has(.pay-option--pc :checked) .pay-more {
    grid-column: auto;
  }

  .co {
    align-items: stretch;
  }

  .co__main {
    grid-template-rows: auto 1fr;
  }

  .co__field:has(> .co__pay) {
    display: flex;
    flex-direction: column;
  }

  .co .co__pay {
    flex: 1;
    grid-auto-rows: 1fr;
  }

  .co__pay .pay-option--extra .pay-option__body {
    min-height: 76px;
  }

  .co__pay.is-open .pay-option__body {
    min-height: 64px;
  }

  .co__side {
    grid-template-rows: auto auto 1fr;
    align-content: stretch;
  }

  .co__totals {
    align-self: end;
  }
}

/* ПК: «Купить прокси» в шапке появляется, когда кнопка формы ушла с экрана;
   на первом экране её место занимает «Войти» */
@media (min-width: 768px) {
  .header .header__cta {
    max-width: 240px;
    overflow: hidden;
    white-space: nowrap;
    transition:
      max-width 0.3s ease,
      padding 0.3s ease,
      margin 0.3s ease,
      opacity 0.2s ease,
      visibility 0.3s,
      background-color 0.2s ease;
  }

  .header.header--top .header__cta {
    max-width: 0;
    min-width: 0;
    margin-left: -14px;
    padding-inline: 0;
    border-width: 0;
    opacity: 0;
    visibility: hidden;
  }

  .header .header__login {
    min-height: 44px;
    border-radius: 12px;
    transition:
      padding 0.3s ease,
      background-color 0.2s ease;
  }

  .header.header--top .header__login {
    padding-inline: 20px;
    background: rgb(255 255 255 / 0.1);
  }

  .header.header--top .header__login:hover {
    background: var(--c-primary);
  }
}

@media (min-width: 1120px) and (max-width: 1439px) {
  .header.header--top .header__cta {
    margin-left: -10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header .header__cta,
  .header .header__login {
    transition: none;
  }
}

/* Между словами — один пробел */
.header .header__cta {
  gap: 0;
}

/* Вопрос и ссылка рядом: заметный отступ, на узких экранах ссылка переносится ровно по центру */
.auth__switch {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 10px;
}

.co__login-row .co__login {
  margin-left: 6px;
}

/* Обязательный вход перед оплатой */
.auth__order {
  margin-bottom: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--c-bg-soft);
  font-size: 15px;
  line-height: 1.4;
}

.auth__order[hidden] {
  display: none;
}

.auth__order b {
  font-size: 16px;
}

.auth__order p {
  margin-top: 4px;
}

.co__account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  margin-top: 12px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--c-bg-soft);
}

.co__account-name {
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.co__account .co__edit {
  flex: none;
}

@media (min-width: 768px) {
  .auth__order,
  .co__account-name {
    font-size: 17px;
  }

  .auth__order b {
    font-size: 18px;
  }
}

/* Шторка списка на телефоне: без полосы прокрутки, строки на равных полях */
@media (max-width: 767px) {
  .dd__list {
    scrollbar-width: none;
  }

  .dd__list::-webkit-scrollbar {
    display: none;
  }
}

/* Список на ПК: тонкая полоса прокрутки без стрелок, по 8 px воздуха с обеих сторон */
@media (min-width: 768px) {
  .dd__list {
    scrollbar-color: auto;
    scrollbar-width: auto;
  }

  .dd__list::-webkit-scrollbar {
    width: 12px;
  }

  .dd__list::-webkit-scrollbar-button {
    display: none;
  }

  .dd__list::-webkit-scrollbar-track {
    margin-block: 12px;
    background: transparent;
  }

  .dd__list::-webkit-scrollbar-thumb {
    border-left: 8px solid transparent;
    background: rgb(255 255 255 / 0.4);
    background-clip: padding-box;
  }
}

/* «Почему Frigate Proxy» на телефоне: как на ПК — зелёная панель и список всех пунктов.
   Высота панели постоянная, при переключении ничего не скачет */
@media (max-width: 767px) {
  #benefits .features-wrap {
    display: none;
  }

  .why {
    display: grid;
    gap: 8px;
  }

  .why__panel {
    order: -1;
    display: flex;
    height: 252px;
    padding: 20px;
    overflow: hidden;
    border-radius: 20px;
    background:
      var(--c-primary);
    color: #fff;
    touch-action: pan-y;
  }

  .why__panel-inner {
    display: flex;
    flex: 1;
    flex-direction: column;
    animation: reco-in 0.35s ease;
  }

  .why__panel-num {
    color: var(--c-accent-light);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
  }

  .why__panel-title {
    margin-block: auto;
    font-size: 26px;
    line-height: 1.15;
  }

  .why__panel-text {
    color: rgb(255 255 255 / 0.92);
    font-size: 16px;
    line-height: 1.4;
  }

  .why__cta {
    width: 100%;
    min-height: 48px;
    margin-top: 16px;
    padding: 0 16px;
  }

  .why__tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 4px 0;
    border: 0;
    border-bottom: 1px solid var(--c-border);
    background: none;
    color: var(--c-muted);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
  }

  .why__tab:last-child {
    border-bottom-color: transparent;
  }

  .why__tab[aria-selected='true'] {
    color: var(--c-text);
  }

  .why__tab:focus-visible {
    outline-offset: -3px;
  }

  .why__num {
    flex: none;
    min-width: 28px;
    color: var(--c-link, var(--c-primary));
    font-size: 14px;
    font-weight: 600;
  }

  .why__progress {
    position: absolute;
    inset: auto 0 -1px;
    height: 2px;
    overflow: hidden;
    pointer-events: none;
  }

  .why__progress span {
    display: block;
    height: 100%;
    background: var(--c-primary);
    transform: scaleX(0);
    transform-origin: left;
  }

  .why__tab[aria-selected='true'] .why__progress span {
    animation: why-progress 6.5s linear forwards;
  }

  .why.is-hover .why__progress span,
  .why.is-focus .why__progress span,
  .why.is-offscreen .why__progress span {
    animation-play-state: paused;
  }

  /* Листают сами: полоска просто отмечает выбранный пункт */
  .why.is-manual .why__tab[aria-selected='true'] .why__progress span,
  .why.is-focus .why__tab[aria-selected='true'] .why__progress span {
    animation: none;
    transform: none;
  }
}

@media (max-width: 359px) {
  .why__tab {
    font-size: 15px;
  }

  .why__panel-title {
    font-size: 23px;
  }

  .why__panel-text {
    font-size: 15px;
  }
}

/* «Для чего вам прокси?» на телефоне: компактные плитки задач и карточка рекомендации постоянной высоты */
@media (max-width: 767px) {
  .tasks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .task,
  .task[aria-pressed='true'] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    padding: 8px 12px;
    border: 0;
    border-radius: 14px;
    background: var(--c-bg-soft);
    box-shadow: none;
    color: var(--c-text);
    font-size: 15px;
    line-height: 1.2;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
  }

  .task .task__icon,
  .task[aria-pressed='true'] .task__icon {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0;
    border-radius: 0;
    background: none;
    color: var(--c-link, var(--c-primary));
  }

  .task[aria-pressed='true'] {
    background: var(--c-primary);
    color: #fff;
  }

  .task[aria-pressed='true'] .task__icon {
    color: #fff;
  }

  .task__mark {
    display: none;
  }

  .task__title {
    min-width: 0;
  }

  .reco {
    margin-top: 12px;
    scroll-margin-bottom: 20px;
  }

  .reco__card {
    display: flex;
    flex-direction: column;
    min-height: 380px;
    padding: 20px;
    border: 0;
    border-radius: 20px;
    background: var(--c-bg-soft);
    box-shadow: none;
    text-align: left;
  }

  .reco__eyebrow {
    display: none;
  }

  .reco__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
  }

  .reco__why {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.4;
  }

  .reco__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
  }

  .reco__facts li {
    padding: 5px 10px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    line-height: 1.3;
  }

  .reco__alt {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.4;
  }

  .reco__side {
    display: grid;
    gap: 14px;
    margin-top: auto;
    padding-top: 16px;
    text-align: center;
  }

  .reco__price,
  .reco__btn-tail {
    display: none;
  }

  .reco__btn-price {
    display: inline;
    margin-left: 6px;
  }

  .reco__side .link {
    justify-self: center;
  }

  .picker__help {
    margin-top: 16px;
  }
}

@media (max-width: 767px) {
  .task,
  .task[aria-pressed='true'] {
    gap: 8px;
    padding: 8px 10px;
    font-size: 14px;
    letter-spacing: -0.02em;
  }

  .reco__why {
    font-size: 15px;
  }

  .reco__facts li {
    padding: 4px 10px;
    font-size: 13px;
  }

  .reco__side {
    gap: 12px;
  }

  .reco__card .btn--lg {
    min-height: 52px;
  }
}

@media (max-width: 374px) {
  .task .task__icon,
  .task[aria-pressed='true'] .task__icon {
    display: none;
  }

  .task,
  .task[aria-pressed='true'] {
    font-size: 13.5px;
  }
}

@media (max-width: 767px) {
  .reco__card {
    min-height: 410px;
  }
}

@media (max-width: 349px) {
  .reco__card {
    min-height: 480px;
  }
}

/* ПК: стрелок у задач нет; галочка — только у выбранной, статичная, одинаковая и при наведении */
@media (min-width: 768px) {
  .task .task__mark,
  .task:hover .task__mark {
    visibility: hidden;
    opacity: 1;
    transition: none;
  }

  .task .task__mark svg:first-child,
  .task:hover .task__mark svg:first-child {
    display: none;
  }

  .task .task__mark svg:last-child {
    display: block;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .task[aria-pressed='true'] .task__mark,
  .task[aria-pressed='true']:hover .task__mark,
  .task[aria-pressed='true']:active .task__mark {
    visibility: visible;
    background: none;
    color: #fff;
    transform: none;
  }
}

/* Плитки задач на телефоне: значок и текст не липнут к краям и друг к другу */
@media (max-width: 767px) {
  .task,
  .task[aria-pressed='true'] {
    gap: 10px;
    padding: 8px 14px;
    font-size: 13.5px;
  }

  .task .task__icon,
  .task[aria-pressed='true'] .task__icon,
  .task .task__icon svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 389px) {
  .task,
  .task[aria-pressed='true'] {
    font-size: 13px;
    letter-spacing: -0.03em;
  }
}

@media (max-width: 374px) {
  .task,
  .task[aria-pressed='true'] {
    gap: 8px;
    padding-inline: 12px;
  }

  .task .task__icon,
  .task[aria-pressed='true'] .task__icon {
    display: grid;
  }
}

@media (max-width: 355px) {
  .task .task__icon,
  .task[aria-pressed='true'] .task__icon {
    display: none;
  }
}

@media (max-width: 389px) {
  .task,
  .task[aria-pressed='true'] {
    padding-right: 6px;
  }
}

@media (max-width: 374px) {
  .task,
  .task[aria-pressed='true'] {
    font-size: 12.5px;
  }
}

@media (max-width: 355px) {
  .task,
  .task[aria-pressed='true'] {
    font-size: 13px;
  }
}

/* «Для чего вам прокси?»: между плитками и до карточки рекомендации — один и тот же отступ */
@media (min-width: 1024px) {
  .picker {
    column-gap: 16px;
  }
}

@media (max-width: 767px) {
  .reco {
    margin-top: 8px;
  }
}

/* «Для чего вам прокси?» на телефоне — в один экран 390×670 (592 px под шапкой) */
@media (max-width: 767px) {
  #picker .section__head {
    margin-bottom: 16px;
  }

  #picker .section__lead {
    margin-top: 6px;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.02em;
  }

  .task,
  .task[aria-pressed='true'] {
    min-height: 52px;
    padding-block: 4px;
  }

  .reco__card {
    min-height: 300px;
  }

  .reco__title {
    font-size: 20px;
    letter-spacing: -0.02em;
  }

  .reco__why {
    margin-top: 8px;
    line-height: 1.35;
  }

  .reco__facts {
    margin-top: 12px;
  }

  .reco__facts li {
    padding: 4px 8px;
    font-size: 12.5px;
    letter-spacing: -0.01em;
  }

  .reco__alt {
    margin-top: 10px;
    line-height: 1.35;
  }

  /* Сравнение типов — следующий блок, отдельная ссылка не нужна */
  .reco__side .link {
    display: none;
  }

  .reco__side {
    padding-top: 14px;
  }

  .reco__card .btn--lg {
    min-height: 50px;
  }

  .picker__help {
    margin-top: 12px;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.02em;
  }
}

@media (max-width: 767px) {
  .reco__why {
    font-size: 14px;
  }

  .reco__card {
    min-height: 306px;
  }
}

@media (max-width: 389px) {
  .reco__card {
    min-height: 336px;
  }
}

@media (max-width: 349px) {
  .reco__card {
    min-height: 400px;
  }
}

@media (max-width: 767px) {
  #picker .section__lead {
    margin-top: 10px;
  }
}

@media (min-width: 390px) and (max-width: 767px) {
  .reco__card {
    min-height: 305px;
  }
}

/* Корзина: между частями окна один и тот же видимый отступ — 20 px на телефоне, 24 px на ПК */
@media (max-width: 767px) {
  .cart-foot {
    margin-top: 20px;
    padding-top: 12px;
  }
}

@media (min-width: 768px) {
  .modal--cart .modal__head {
    padding-bottom: 24px;
  }

  .cart-row {
    padding-bottom: 24px;
  }

  .cart-foot {
    margin-top: 24px;
    padding: 14px 40px 26px;
  }

  .cart-foot__more {
    margin-top: -2px;
  }
}

@media (max-width: 767px) {
  .cart-list {
    padding-top: 6px;
  }
}

@media (min-width: 768px) {
  .cart-foot {
    padding-top: 11px;
  }
}

/* Зазор между заголовком и подзаголовком секции — 16 px на ПК, 12 px на телефоне */
.section .section__head .section__lead,
.section h2 + .section__lead {
  margin-top: 16px;
}

@media (max-width: 767px) {
  .section .section__head .section__lead,
  .section h2 + .section__lead,
  #picker .section__head .section__lead {
    margin-top: 12px;
  }

  #picker .section__head {
    margin-bottom: 14px;
  }
}

/* «Типы прокси» на телефоне — зелёная секция, как на ПК, в один экран 390×670 (592 px под шапкой) */
@media (max-width: 767px) {
  #compare {
    margin-block: 48px;
    background:
      var(--c-primary);
    color: #fff;
  }

  #compare :focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
  }

  #compare .product :focus-visible,
  #compare .compare-all__body :focus-visible {
    outline-color: var(--c-primary);
  }

  #compare .section__head {
    margin-bottom: 14px;
  }

  #compare .section__lead {
    color: rgb(255 255 255 / 0.85);
    font-size: 14px;
    line-height: 20px;
  }

  #compare .ptabs {
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-bottom: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
  }

  #compare .ptab {
    grid-column: span 2;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 44px;
    padding: 4px;
    border: 0;
    border-radius: 14px;
    background: rgb(255 255 255 / 0.12);
    color: #fff;
    font-size: 14px;
    line-height: 17px;
    text-align: center;
  }

  #compare .ptab:nth-child(n + 4) {
    grid-column: span 3;
  }

  #compare .ptab[aria-selected='true'] {
    background: #fff;
    color: var(--c-ink-text, var(--c-ink));
  }

  #compare .ptab__price {
    color: rgb(255 255 255 / 0.75);
    font-size: 12px;
    line-height: 15px;
  }

  #compare .ptab[aria-selected='true'] .ptab__price {
    color: var(--c-primary-ink);
  }

  .ptab__cut {
    display: none;
  }

#compare .product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding: 20px;
    border: 0;
    border-radius: 20px;
    color: var(--c-ink-text, var(--c-ink));
    box-shadow: 0 18px 45px rgb(10 40 0 / 0.18);
  }

  #compare .product__main {
    display: contents;
  }

  #compare .product .badge,
  #compare .product__desc,
  #compare .product__best svg {
    display: none;
  }

  #compare .product__title {
    margin: 0;
    font-size: 20px;
    line-height: 24px;
  }

#compare .product__best-title {
    margin: 0 0 -8px;
    font-size: 14px;
    line-height: 18px;
  }

  #compare .product__best {
    display: block;
    margin: 0;
    font-size: 14px;
    line-height: 18px;
  }

  #compare .product__best li {
    display: inline;
  }

  #compare .product__best li + li::before {
    content: '· ';
    color: var(--c-link, var(--c-primary));
    font-weight: 700;
  }

  #compare .product__stats {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
  }

  #compare .stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    grid-column: 1 / -1;
    min-height: 32px;
    padding: 4px 10px;
    border-radius: 10px;
  }

  #compare .stat__label {
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
  }

  #compare .stat__value {
    margin: 0;
    font-size: 13px;
    line-height: 16px;
    text-align: right;
  }

  #compare .product__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    order: 1;
    gap: 8px;
    margin: 2px 0 0;
  }

  #compare .product__actions .btn {
    width: 100%;
    min-height: 48px;
    padding: 4px 8px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 18px;
  }

  #compare .product__actions .btn--outline {
    border-color: transparent;
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
  }

  #compare .compare-all {
    margin-top: 12px;
  }

  #compare .compare-all > summary {
    width: 100%;
    min-height: 44px;
    padding-block: 8px;
    border: 0;
    border-radius: 12px;
    background: rgb(255 255 255 / 0.12);
    color: #fff;
    font-size: 15px;
  }

  #compare .compare-all__body {
    margin-top: 12px;
    color: var(--c-ink-text, var(--c-ink));
  }

  #compare .ccard {
    border: 0;
    border-radius: 20px;
    padding: 20px;
  }

  #compare .compare-all__body > .footnote,
  #compare .compare__hint {
    color: rgb(255 255 255 / 0.85);
  }

  #compare .compare__more {
    display: none;
  }
}

@media (max-width: 767px) {
  #compare .section__head {
    margin-bottom: 12px;
  }

  #compare .ptabs {
    margin-bottom: 10px;
  }

  #compare .section__lead {
    letter-spacing: -0.02em;
  }

  #compare .product {
    gap: 8px;
  }

  #compare .product__best-title {
    margin-bottom: -6px;
  }

  #compare .product:not(:has([data-buy-farm])) .stat:nth-child(-n + 4) {
    grid-column: auto;
  }

  #compare .compare-all {
    margin-top: 10px;
  }
}

@media (max-width: 767px) {
  .lead-more {
    display: none;
  }
}

@media (max-width: 767px) {
  #compare .product__best li + li::before {
    content: '\00a0· ';
  }

  /* У ProxyFarm — два пункта из трёх, чтобы карточка была одной высоты */
  #compare .product:has([data-buy-farm]) .product__best li:nth-child(2) {
    display: none;
  }

#compare .product__stats {
    grid-template-columns: minmax(0, 168fr) minmax(0, 138fr);
    gap: 6px 4px;
  }

  #compare .stat {
    padding-inline: 8px;
    gap: 4px;
  }

  #compare .stat__label {
    letter-spacing: -0.03em;
  }

  #compare .stat__value {
    letter-spacing: -0.02em;
  }

  #compare .product:has([data-buy-farm]) .stat:nth-child(2),
  #compare .product:has([data-buy-farm]) .stat:nth-child(4) {
    grid-column: auto;
    order: 1;
  }

  #compare .product__actions {
    margin-top: 0;
  }

  #compare .compare-all {
    margin-top: 8px;
  }
}

/* Узкие телефоны: характеристики в один столбец, ничего не зажато */
@media (max-width: 374px) {
  #compare .product .product__stats .stat.stat {
    grid-column: 1 / -1;
  }

  #compare .stat__label {
    white-space: normal;
  }
}

/* Воздух в карточке: между частями 14 px */
@media (max-width: 767px) {
  #compare .section__head {
    margin-bottom: 14px;
  }

  #compare .ptabs {
    margin-bottom: 12px;
  }

  #compare .product {
    gap: 14px;
  }

  #compare .product__best-title {
    margin-bottom: -12px;
  }

  #compare .compare-all {
    margin-top: 10px;
  }
}

/* «Типы прокси» на телефоне: соразмерный текст, в плитках по 10 px, вкладки по левому краю, как на ПК */
@media (max-width: 767px) {
  #compare .ptab {
    align-items: flex-start;
    padding: 4px 10px;
    font-size: 13px;
    line-height: 16px;
    text-align: left;
  }

  #compare .ptab__price {
    font-size: 11px;
    line-height: 14px;
  }

  #compare .product__title {
    font-size: 18px;
    line-height: 22px;
  }

  #compare .product__best-title,
  #compare .product__best {
    font-size: 13px;
    line-height: 16px;
  }

  #compare .stat {
    min-height: 35px;
    padding: 10px;
  }

  #compare .stat__label {
    font-size: 11px;
    line-height: 15px;
    letter-spacing: -0.02em;
  }

  #compare .stat__value {
    font-size: 12px;
    line-height: 15px;
  }

  #compare .stat .tip {
    margin-block: -6px;
  }

  #compare .product__actions .btn {
    min-height: 44px;
    font-size: 14px;
    line-height: 16px;
  }

  #compare .compare-all > summary {
    font-size: 14px;
  }
}

/* Поля плашек на телефоне: большие — 20 px, маленькие — 14 px по бокам (как у задач в «Для чего вам прокси?») */
@media (max-width: 767px) {
  #compare .ptab {
    padding-inline: 14px;
  }

  #compare .stat {
    padding-inline: 14px;
    border-radius: 14px;
  }

  #compare .product__stats {
    grid-template-columns: minmax(0, 163fr) minmax(0, 143fr);
  }

  #compare .stat .tip,
  #compare .stat .tip__i {
    width: 14px;
    height: 14px;
  }
}

/* Подсказка «i» на телефоне — окошко по центру */
.tipbox {
  width: calc(100vw - 40px);
  max-width: 350px;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--c-surface);
  color: var(--c-ink-text, var(--c-ink));
  box-shadow: var(--shadow-lg);
}

.tipbox::backdrop {
  background: rgb(14 23 38 / 0.55);
}

.tipbox[open] {
  animation: modal-in 0.2s ease;
}

.tipbox__inner {
  position: relative;
  padding: 18px 20px 17px;
}

.tipbox__title {
  padding-right: 44px;
  font-size: 18px;
  line-height: 22px;
}

.tipbox__close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
}

.tipbox__text {
  margin-top: 12px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 21px;
}

@media (prefers-reduced-motion: reduce) {
  .tipbox[open] {
    animation: none;
  }
}

/* «Типы прокси» на телефоне: поля 20 px во всех плашках (характеристики — строками в одной плашке) */
@media (max-width: 767px) {
  #compare .product .product__stats {
    display: block;
    padding: 13px 20px;
    background: var(--c-bg-soft);
  }

  #compare .product .product__stats .stat {
    min-height: 22px;
    padding: 0;
    border-radius: 0;
    background: none;
  }

  #compare .product:has([data-buy-farm]) .stat {
    min-height: 30px;
  }

  #compare .stat__label,
  #compare .stat__value {
    font-size: 13px;
    line-height: 16px;
  }

  #compare .stat .tip {
    margin-block: 0;
  }
}

@media (min-width: 390px) and (max-width: 767px) {
  #compare .ptab {
    padding-inline: 20px;
  }

  #compare .ptab:nth-child(-n + 3) .ptab__name {
    white-space: nowrap;
  }
}

/* Скругление на телефоне одно для всех плашек и кнопок — 10 px */
@media (max-width: 767px) {
  #compare .product:has([data-buy-farm]) .stat {
    min-height: 29px;
  }

  #compare .product {
    border-radius: 10px;
  }

  #compare .ptab {
    border-radius: 10px;
  }

  #compare .product .product__stats {
    border-radius: 10px;
  }

  #compare .product__actions .btn {
    border-radius: 10px;
  }

  #compare .compare-all > summary {
    border-radius: 10px;
  }

  #compare .ccard {
    border-radius: 10px;
  }

  #benefits .why__panel,
  #picker .reco__card {
    border-radius: 10px;
  }

  #picker .task {
    border-radius: 10px;
  }

  #picker .reco__card .btn {
    border-radius: 10px;
  }

  .tipbox {
    border-radius: 10px;
  }
}

@media (max-width: 767px) {
  #compare .compare-all__body .btn {
    border-radius: 10px;
  }
}

@media (max-width: 767px) {
  #benefits .feature,
  #benefits .feature__link {
    border-radius: 10px;
  }
}

/* Характеристики на телефоне: линии между строками, «i» меньше; на высоких экранах воздуха больше */
@media (max-width: 767px) {
  #compare .product .product__stats {
    padding-block: 10px;
  }

  #compare .product .product__stats .stat {
    min-height: 25px;
  }

  #compare .product__stats .stat + .stat {
    border-top: 1px solid var(--c-border);
  }

  #compare .product:has([data-buy-farm]) .product__stats .stat {
    min-height: 32px;
  }

  #compare .stat .tip,
  #compare .stat .tip__i {
    width: 12px;
    height: 12px;
  }

  #compare .product__title {
    line-height: 20px;
  }

  #compare .ptab {
    min-height: 42px;
  }

  #compare .compare-all > summary {
    min-height: 40px;
  }
}

@media (max-width: 767px) and (min-height: 740px) {
  #compare .section__head,
  #compare .ptabs {
    margin-bottom: 18px;
  }

  #compare .product {
    gap: 18px;
  }

  #compare .product__best-title {
    margin-bottom: -14px;
  }

  #compare .product .product__stats .stat {
    min-height: 30px;
  }

  #compare .product:has([data-buy-farm]) .product__stats .stat {
    min-height: 38px;
  }

  #compare .compare-all {
    margin-top: 14px;
  }
}

/* «TCP-отпечаток»: рядом строчные буквы, их середина на 1 px ниже, чем у прописных «IP» */
@media (max-width: 767px) {
  #compare .product__stats .stat:nth-child(6) .tip {
    position: relative;
    top: 1px;
  }
}

/* Телефон: строки любого текста примерно равной длины */
@media (max-width: 767px) {
  main p,
  main li,
  main dd,
  main dt,
  main span,
  #compare .product__best,
  dialog p,
  .footer p {
    text-wrap: balance;
  }
}

/* Карточки сравнения на телефоне: «i» 12 px, в одной строке с подписью и по её середине */
@media (max-width: 767px) {
  #compare .ccard dt:has(.tip) {
    display: flex;
    flex: none;
    align-items: center;
    align-self: flex-start;
    white-space: nowrap;
  }

  #compare .ccard .tip,
  #compare .ccard .tip__i {
    width: 12px;
    height: 12px;
  }

  #compare .ccard div:nth-child(6) .tip {
    position: relative;
    top: 1px;
  }
}

@media (max-width: 767px) {
  #compare .ccard .tip,
  #compare .ccard .tip__i {
    width: 15px;
    height: 15px;
  }

  #compare .ccard dl div:last-child {
    align-items: center;
    padding-bottom: 0;
    border-bottom: 0;
  }

  /* До кнопки столько же, сколько до краёв карточки */
  #compare .ccard {
    gap: 16px;
  }

  #compare .ccard__head .badge {
    flex: none;
    white-space: nowrap;
  }

  #compare .ccard__title {
    font-size: 17px;
  }
}

@media (max-width: 767px) {
  #compare .ccard dl {
    font-size: 14px;
    letter-spacing: -0.02em;
  }

  #compare .ccard__title {
    font-size: 16px;
  }

  #compare .ccard .tip,
  #compare .ccard .tip__i {
    width: 14px;
    height: 14px;
  }

  #compare .ccard .ccard__head ~ dl div .tip {
    top: 0.5px;
  }
}

/* Строки характеристик: чем выше экран, тем больше воздуха (670 → 25 px, 844 → 35, 956 → 41) */
@media (max-width: 767px) {
  #compare {
    --stat-row: clamp(25px, calc(25px + (100svh - 670px) * 0.056), 42px);
  }

  #compare .product .product__stats .stat.stat {
    min-height: var(--stat-row);
  }

  #compare .product:has([data-buy-farm]) .product__stats .stat.stat {
    min-height: calc(var(--stat-row) * 1.5 - 6px);
  }
}

/* Лента площадок на телефоне и планшете — в монохроме, как на ПК (наведения нет, цвет не включаем) */
@media (max-width: 1023px) {
  .marquee__item .marquee__logo {
    background-color: var(--c-muted) !important;
  }
}

/* ==========================================================================
   «Как это работает» и «Что говорят клиенты» на телефоне — по одному экрану (592 px под шапкой)
   ========================================================================== */
.review__avatar,
.review__src {
  display: none;
}

@media (max-width: 767px) {
  #how .section__head,
  #reviews .section__head {
    margin-bottom: 16px;
  }

  #how .section__lead,
  #reviews .section__lead {
    font-size: 14px;
    line-height: 20px;
  }

  /* Шкала времени, как на ПК */
  #how .steps-track {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 24px;
    margin-bottom: 14px;
    color: var(--c-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
    white-space: nowrap;
  }

  #how .steps-track__scale {
    position: relative;
    flex: 1;
  }

  #how .steps-track__bar {
    display: block;
    height: 6px;
    border-radius: 999px;
    background: rgb(14 23 38 / 0.08);
    overflow: hidden;
  }

  #how .steps-track__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--c-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
  }

  #how .steps-track__now {
    position: absolute;
    bottom: 12px;
    left: 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--c-primary);
    color: #fff;
    font-size: 12px;
    transform: translateX(-50%);
    transition: left 0.5s ease;
  }

  #how .steps-track__now[hidden] {
    display: none;
  }

  #how .steps {
    gap: 8px;
  }

  #how .steps__item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-content: center;
    align-items: center;
    gap: 4px 0;
    min-height: 80px;
    padding: 14px 20px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    transition:
      background-color 0.3s ease,
      color 0.3s ease;
  }

  #how .steps__num,
  #how .steps__item p .link {
    display: none;
  }

  #how .steps__index {
    display: block;
    color: var(--c-link, var(--c-primary));
    font-size: 14px;
    font-weight: 600;
  }

  #how .steps__item h3 {
    margin: 0;
    font-size: 18px;
    line-height: 22px;
  }

  #how .steps__time {
    display: block;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--c-bg-soft);
    color: var(--c-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
  }

  #how .steps__time::before {
    content: none;
  }

  #how .steps__index,
  #how .steps__time {
    grid-row: 1;
  }

  #how .steps__index {
    grid-column: 1;
  }

  #how .steps__item h3 {
    grid-row: 1;
    grid-column: 2;
  }

  #how .steps__time {
    grid-column: 3;
  }

  #how .steps__item p {
    grid-row: 2;
    grid-column: 2 / -1;
    margin: 0;
    color: var(--c-muted);
    font-size: 14px;
    line-height: 18px;
  }

  #how .steps__item.is-done .steps__time {
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
  }

  #how .steps__item.is-active {
    background: var(--c-primary);
    color: #fff;
  }

  #how .steps__item.is-active p,
  #how .steps__item.is-active .steps__index {
    color: #fff;
  }

  #how .steps__item.is-active .steps__time {
    background: rgb(255 255 255 / 0.16);
    color: #fff;
  }

  #how .steps-cta {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 8px;
    margin-top: 16px;
  }

  #how .steps-cta .btn {
    min-height: 48px;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 18px;
  }

  #how .steps-cta__test {
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
  }

  /* Отзывы */
  #reviews .platforms {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  #reviews .platform {
    gap: 10px;
    height: 100%;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: #fff;
  }

  #reviews .platform__logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 13px;
  }

  #reviews .platform__name {
    font-size: 14px;
    line-height: 18px;
  }

  #reviews .platform__meta {
    font-size: 11px;
    line-height: 16px;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  #reviews .carousel {
    margin-top: 12px;
  }

  #reviews .carousel__track {
    gap: 10px;
    padding-block: 0;
  }

  #reviews .review {
    flex: 0 0 100%;
    gap: 0;
    padding: 20px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    scroll-snap-stop: always;
  }

  #reviews .review__head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }

  #reviews .review__head .badge {
    display: none;
  }

  #reviews .review__avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
    font-size: 14px;
    font-weight: 700;
  }

  #reviews .review__src {
    display: inline;
  }

  #reviews .review__name {
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
  }

  #reviews .review__date {
    margin-top: 2px;
    color: var(--c-muted);
    font-size: 13px;
    line-height: 18px;
  }

  #reviews .review__stars {
    margin-top: 14px;
    font-size: 16px;
  }

  #reviews .review__text {
    display: -webkit-box;
    min-height: 80px;
    margin-top: 10px;
    overflow: hidden;
    font-size: 15px;
    line-height: 20px;
    text-wrap: pretty;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  #reviews .review__more {
    align-self: flex-start;
    min-height: 0;
    margin-top: 10px;
    color: var(--c-primary-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
  }

  #reviews .review__more::before {
    content: '';
    position: absolute;
    inset: -12px;
  }

  #reviews .review__more {
    position: relative;
  }

  #reviews .carousel__nav {
    justify-content: space-between;
    margin-top: 12px;
  }

  #reviews .carousel__nav .icon-btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: #fff;
  }

  #reviews .reviews__actions {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 8px;
    margin-top: 12px;
  }

  #reviews .reviews__actions .badge {
    display: none;
  }

  #reviews .reviews__actions .btn {
    min-height: 48px;
    padding: 4px 8px;
    border-color: transparent;
    border-radius: 10px;
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
    font-size: 14px;
  }

  #reviews .reviews__bonus {
    display: inline-flex;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff;
    color: var(--c-primary-ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 14px;
  }
}

/* Отзывы: одна карточка целиком, следующая выглядывает. Вторичная кнопка — светлая заливка, не обводка */
@media (max-width: 767px) {
  #reviews .review {
    flex-basis: calc(100% - 40px);
  }

  #reviews .platforms {
    margin-bottom: 0;
  }

  #reviews .carousel,
  #reviews .carousel__nav,
  #reviews .reviews__actions {
    margin-top: 14px;
  }

  #compare .compare-all__body .btn--outline {
    border-color: transparent;
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
  }
}

@media (max-width: 374px) {
  #reviews .platform__meta {
    white-space: normal;
  }

  #reviews .platform {
    padding-inline: 10px;
  }
}

/* Отзывы на телефоне листаются свайпом: следующая карточка видна, стрелки и счётчик не нужны */
@media (max-width: 767px) {
  #reviews .carousel__nav {
    display: none;
  }

  #reviews .review__text {
    min-height: 120px;
    -webkit-line-clamp: 6;
    line-clamp: 6;
  }

  #reviews .reviews__actions {
    margin-top: 16px;
  }
}

/* ==========================================================================
   «Акции и купоны» и «Частые вопросы» на телефоне — по композиции ПК
   ========================================================================== */
.promos__track {
  display: contents;
}

@media (max-width: 767px) {
  #promo {
    margin-block: 48px;
    background:
      var(--c-primary);
    color: #fff;
  }

  #promo .section__lead {
    color: rgb(255 255 255 / 0.85);
  }

  #promo .section__head {
    margin-bottom: 16px;
  }

  #promo :focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
  }

  #promo .promos__track :focus-visible {
    outline-color: var(--c-ink-text, var(--c-ink));
  }

  #promo .promos {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  /* Купоны листаются свайпом: один целиком, следующий выглядывает */
  #promo .promos__track {
    display: flex;
    gap: 16px;
    margin-inline: -20px;
    padding-inline: 20px;
    overflow-x: auto;
    scroll-padding-inline: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  #promo .promos__track::-webkit-scrollbar {
    display: none;
  }

  #promo .promo {
    position: relative;
    gap: 0;
    padding: 20px;
    border: 0;
    border-radius: 10px;
    color: var(--c-text);
  }

  #promo .promos__track .promo {
    flex: 0 0 calc(100% - 40px);
    scroll-snap-align: start;
  }

  #promo .promo__title {
    font-size: 19px;
    line-height: 1.2;
  }

  #promo .promos__track .promo__title {
    min-height: calc(2 * 1.2em);
  }

  #promo .promo__cond {
    flex: 1;
    margin-top: 8px;
    font-size: 14px;
    line-height: 20px;
  }

  #promo .promo__perf {
    position: relative;
    display: block;
    flex: none;
    height: 28px;
    margin: 4px -20px;
  }

  #promo .promo__perf::before {
    content: '';
    position: absolute;
    left: 20px;
    right: 20px;
    top: 50%;
    border-top: 2px dashed var(--c-border);
  }

  #promo .promo__perf::after {
    content: '';
    position: absolute;
    inset: 0 -14px;
    background:
      radial-gradient(circle at 14px 50%, var(--c-notch, var(--c-primary)) 13.5px, transparent 14px) left / 28px 28px no-repeat,
      radial-gradient(circle at 14px 50%, var(--c-notch, var(--c-primary)) 13.5px, transparent 14px) right / 28px 28px no-repeat;
  }

  #promo .promo__code {
    flex: none;
    justify-content: center;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--c-bg-soft);
    user-select: all;
  }

  #promo .promo__code code {
    flex: none;
    padding: 0;
    font-size: 16px;
    letter-spacing: 0.08em;
  }

  #promo .promo__copy {
    display: none;
  }

  #promo .promo__valid {
    display: flex;
    flex: none;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    height: 36px;
    margin-top: 8px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--c-bg-soft);
    font-size: 13px;
    white-space: nowrap;
  }

  #promo .promo__valid b {
    color: var(--c-primary-ink);
    font-weight: 600;
  }

  #promo .promo__valid--soon {
    background: var(--c-warn-soft);
    color: var(--c-warn);
    font-weight: 600;
  }

  #promo .promo__valid--soon > span:first-child {
    color: var(--c-muted);
  }

  #promo .promo__valid--soon b {
    color: var(--c-warn);
  }

  #promo .promo__valid-sep {
    display: none;
  }

  #promo .promo .btn {
    flex: none;
    min-height: 44px;
    margin-top: 8px;
    padding-block: 0;
    border-color: transparent;
    border-radius: 10px;
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
    font-size: 15px;
  }

  /* Партнёр — спокойная полоса под купонами */
  #promo .promo--partner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
    align-items: center;
    background: rgb(255 255 255 / 0.1);
    color: #fff;
  }

  #promo .promo--partner .badge {
    grid-area: 1 / 2;
    padding: 4px 8px;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.16);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  #promo .promo--partner .promo__title {
    grid-area: 1 / 1;
    font-size: 15px;
  }

  #promo .promo--partner .promo__cond {
    grid-column: 1 / -1;
    margin-top: 6px;
    color: rgb(255 255 255 / 0.8);
    font-size: 13px;
    line-height: 18px;
  }

  #promo .promo--partner .btn {
    grid-column: 1 / -1;
    margin-top: 12px;
    background: rgb(255 255 255 / 0.14);
    color: #fff;
  }

  /* --- Частые вопросы: один ряд плашек, под ними зелёная полоса --- */
  #faq {
    interpolate-size: allow-keywords;
  }

  #faq .section__head {
    margin-bottom: 16px;
  }

  #faq .section__cta {
    display: none;
  }

  #faq .faq {
    display: grid;
    gap: 6px;
    border-top: 0;
    counter-reset: faq;
  }

  #faq .faq__item {
    counter-increment: faq;
    border: 0;
    border-radius: 10px;
    background: var(--c-surface);
  }

  #faq .faq__item summary {
    min-height: 46px;
    gap: 10px;
    padding: 6px 10px 6px 20px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 17px;
    text-wrap: balance;
  }

  #faq .faq__item summary::before {
    content: '/' counter(faq, decimal-leading-zero);
    flex: none;
    min-width: 24px;
    color: var(--c-link, var(--c-primary));
    font-size: 12px;
    font-weight: 600;
  }

  #faq .faq__item summary::after {
    width: 30px;
    height: 30px;
    margin: 0 0 0 auto;
    border: 0;
    border-radius: 999px;
    background:
      linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
      linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat,
      var(--c-bg-soft);
    color: var(--c-primary-ink);
    -webkit-mask: none;
    mask: none;
    transform: none;
    transition: transform 0.3s ease;
  }

  #faq .faq__item[open] summary::after {
    transform: rotate(45deg);
  }

  #faq .faq__item summary:hover {
    color: inherit;
  }

  #faq .faq__body {
    max-width: none;
    padding: 4px 20px 20px;
    font-size: 14px;
    line-height: 21px;
  }

  #faq .faq__body .btn {
    min-height: 44px;
    border-color: transparent;
    border-radius: 10px;
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
  }

  #faq .faq__item::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size 0.3s ease,
      content-visibility 0.3s allow-discrete;
  }

  #faq .faq__item[open]::details-content {
    block-size: auto;
  }

  #faq .faq-side {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding: 20px;
    border-radius: 10px;
    background:
      var(--c-primary);
    color: #fff;
    text-align: center;
  }

  #faq .faq-side__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 20px;
  }

  #faq .faq-side__text {
    display: none;
    margin-top: 6px;
    color: rgb(255 255 255 / 0.88);
    font-size: 14px;
    line-height: 20px;
  }

  #faq .faq-side__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #faq .faq-side__actions .btn {
    min-height: 44px;
    padding: 4px 8px;
    border-color: transparent;
    border-radius: 10px;
    font-size: 14px;
    line-height: 17px;
    text-wrap: balance;
  }

  #faq .faq-side__btn {
    background: #fff;
    color: var(--c-primary-ink);
  }

  #faq .faq-side__more {
    background: rgb(255 255 255 / 0.14);
    color: #fff;
  }

  #faq .faq-side__btn:focus-visible,
  #faq .faq-side__more:focus-visible {
    outline-color: #fff;
  }
}

/* Узкие телефоны: плашка срока и кнопки не должны резаться */
@media (max-width: 374px) {
  #promo .promos__track .promo {
    flex-basis: calc(100% - 24px);
  }

  #promo .promo__valid {
    height: auto;
    min-height: 36px;
    padding-block: 6px;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 8px;
    row-gap: 0;
    line-height: 17px;
  }

  #faq .faq-side__actions .btn {
    font-size: 13px;
  }
}

/* Высокие экраны — больше воздуха */
@media (max-width: 767px) and (min-height: 740px) {
  #promo .section__head,
  #faq .section__head {
    margin-bottom: 20px;
  }

  #promo .promos {
    gap: 16px;
  }

  #promo .promo__perf {
    margin-block: 8px;
  }

  #promo .promo__code,
  #promo .promo .btn {
    min-height: 48px;
  }

  #promo .promos__track .promo .btn {
    margin-top: 12px;
  }

  #faq .faq-side__text {
    display: block;
  }
}

/* Подгонка «Акций» под один экран 390×670 */
@media (max-width: 767px) and (max-height: 739px) {
  #promo .section__head .section__lead {
    font-size: 15px;
    line-height: 20px;
  }

  #promo .section__head {
    margin-bottom: 14px;
  }

  #promo .promo__title {
    font-size: 18px;
  }

  #promo .promo--partner .promo__title {
    font-size: 15px;
  }

  #promo .promo__valid {
    height: 34px;
  }

  #promo .promo--partner .btn {
    margin-top: 10px;
  }
}

@media (min-width: 345px) and (max-width: 374px) {
  #promo .promo__valid {
    flex-wrap: nowrap;
    justify-content: space-between;
    column-gap: 4px;
    padding-inline: 8px;
    font-size: 12px;
  }
}

/* ==========================================================================
   FAQ: категории-буллеты по центру, вопросы в один столбик (ПК и телефон)
   ========================================================================== */
.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.faq__group[hidden] {
  display: none;
}

.faq__group {
  display: grid;
  counter-reset: faq;
}

.faq-tab {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--c-surface);
  color: var(--c-ink-text, var(--c-ink));
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.faq-tab[aria-selected='true'] {
  background: var(--c-primary);
  color: #fff;
}

@media (hover: hover) {
  .faq-tab:hover {
    background: var(--c-primary);
    color: #fff;
  }
}

@media (min-width: 1024px) {
  .faq-tabs {
    gap: 12px;
    margin-bottom: 8px;
  }

  .faq-tab {
    min-height: 52px;
    padding: 0 28px;
    border-radius: var(--radius);
    font-size: 16px;
  }

  #faq .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq__group {
    gap: 12px;
  }

  #faq .faq__item summary {
    min-height: 80px;
    padding-left: 40px;
  }

  #faq .faq__body {
    padding: 0 100px 32px 92px;
  }
}

@media (max-width: 767px) {
  .faq-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 12px;
  }

  .faq-tab {
    padding: 0 4px;
  }

  #faq .faq__group {
    gap: 8px;
  }

  #faq .faq__item summary {
    min-height: 52px;
  }

  #faq .faq-side__text {
    display: block;
  }
}

@media (max-width: 374px) {
  #faq .faq-tab {
    font-size: 13px;
  }
}

@media (max-width: 767px) and (min-height: 740px) {
  #faq .faq__item summary {
    min-height: 60px;
    font-size: 15px;
    line-height: 19px;
  }

  .faq-tab {
    min-height: 48px;
  }

  .faq-tabs {
    margin-bottom: 16px;
  }

  #faq .faq-side {
    margin-top: 16px;
  }
}

/* Код и срок купона — то же скругление, что у кнопки «Применить» под ними */
@media (min-width: 1024px) {
  .section--accent .promo__code,
  .section--accent .promo__valid {
    border-radius: var(--radius);
  }
}

/* ==========================================================================
   Прокси-ферма и партнёрская программа на телефоне — по композиции ПК
   ========================================================================== */
@media (max-width: 767px) {
  #farm {
    margin-block: 48px;
    background:
      var(--c-dark);
    color: var(--c-on-dark);
  }

  #farm .farm-mob,
  #partner .partner-strip__inner {
    display: none;
  }

  #farm .farm-desk {
    display: block;
  }

  #farm .section__head {
    margin-bottom: 14px;
  }

  .farm-desk__eyebrow,
  .pbanner__eyebrow {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.1);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .farm-desk__eyebrow {
    margin-bottom: 10px;
  }

  .pbanner__eyebrow {
    background: rgb(255 255 255 / 0.16);
  }

  #farm h2 {
    font-size: 23px;
    letter-spacing: -0.03em;
  }

  #farm .section__head .section__lead {
    color: var(--c-on-dark-muted);
    font-size: 14px;
    line-height: 20px;
  }

  .farm-desk__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  /* Три плюса — одной плашкой, видны сразу все; на телефоне короткий текст */
  .farm-desk__points {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 10px 20px;
    border-radius: 10px;
    background: rgb(255 255 255 / 0.06);
    list-style: none;
  }

  .farm-desk__points li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
  }

  .farm-desk__points .farm-desk__full {
    display: none;
  }

  .farm-desk__points .farm-desk__short {
    display: inline;
  }

  .farm-desk__num {
    flex: none;
    color: var(--c-accent-light);
    font-size: 12px;
    font-weight: 700;
  }

  .fcalc {
    display: grid;
    gap: 12px;
    padding: 20px;
    border-radius: 10px;
    background: var(--c-surface);
    color: var(--c-text);
  }

  .fcalc__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .fcalc__label {
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    text-wrap: balance;
  }

  .fcalc__stepper {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border-radius: 10px;
    background: var(--c-bg-soft);
  }

  .fcalc__stepper button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--c-text);
    font-size: 20px;
    line-height: 1;
  }

  .fcalc__stepper button:disabled {
    color: var(--c-border-strong);
  }

  .fcalc__stepper input {
    width: 52px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: var(--c-surface);
    color: var(--c-text);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
  }

  .fcalc__stepper input::-webkit-outer-spin-button,
  .fcalc__stepper input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
  }

  .fcalc__range {
    --p: 0%;
    width: 100%;
    height: 32px;
    margin: -8px 0 0;
    background: transparent;
    touch-action: pan-y;
    -webkit-appearance: none;
    appearance: none;
  }

  .fcalc__range::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background:
      linear-gradient(var(--c-primary), var(--c-primary)) left / var(--p) 100% no-repeat,
      var(--c-bg-soft);
  }

  .fcalc__range::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: var(--c-bg-soft);
  }

  .fcalc__range::-moz-range-progress {
    height: 6px;
    border-radius: 999px;
    background: var(--c-primary);
  }

  .fcalc__range::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
    margin-top: -11px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--c-primary);
    box-shadow: 0 2px 8px rgb(14 23 38 / 0.25);
    -webkit-appearance: none;
  }

  .fcalc__range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--c-primary);
    box-shadow: 0 2px 8px rgb(14 23 38 / 0.25);
  }

  .fcalc__scale {
    display: flex;
    justify-content: space-between;
    margin-top: -14px;
    color: var(--c-muted);
    font-size: 12px;
    line-height: 14px;
  }

  .fcalc__plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .fcalc__plan {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--c-bg-soft);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
  }

  .fcalc__plan input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .fcalc__plan-badge {
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
  }

  .fcalc__plan-check {
    display: none;
    width: 18px;
    height: 18px;
    margin-left: auto;
    color: #fff;
  }

  .fcalc__plan-check svg {
    width: 18px;
    height: 18px;
  }

  .fcalc__plan:has(input:checked) {
    background: var(--c-primary);
    color: #fff;
  }

  .fcalc__plan:has(input:checked) .fcalc__plan-badge {
    background: rgb(255 255 255 / 0.16);
    color: #fff;
  }

  .fcalc__plan:has(input:checked) .fcalc__plan-check {
    display: grid;
  }

  /* Итог: подпись и цена за модем — одной строкой, сумма под ними */
  .fcalc__total {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    gap: 4px 8px;
    padding-top: 12px;
    border-top: 1px solid var(--c-border);
  }

  .fcalc__total-label,
  .fcalc__unit {
    color: var(--c-muted);
    font-size: 13px;
    line-height: 18px;
    white-space: nowrap;
  }

  .fcalc__unit {
    grid-area: 1 / 2;
    text-align: right;
  }

  .fcalc__sum {
    display: flex;
    grid-column: 1 / -1;
    align-items: baseline;
    gap: 10px;
  }

  .fcalc__sum b {
    font-size: 32px;
    font-weight: 800;
    line-height: 34px;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
  }

  .fcalc__sum s {
    color: var(--c-muted);
    font-size: 15px;
  }

  .fcalc__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .fcalc__actions .btn {
    min-height: 48px;
    padding: 4px 8px;
    border-color: transparent;
    border-radius: 10px;
    font-size: 14px;
    line-height: 18px;
    text-wrap: balance;
  }

  .fcalc__buy {
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
  }

  .fcalc__plan:has(input:focus-visible),
  .fcalc :focus-visible {
    outline: 3px solid var(--c-focus);
    outline-offset: 2px;
  }

  .farm-desk__more {
    display: flex;
    justify-content: center;
    margin-top: 12px;
  }

  .farm-desk__link,
  .pbanner__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
  }

  /* Область нажатия 44 px, строка не выше текста */
  .farm-desk__link::before,
  .pbanner__link::before {
    content: '';
    position: absolute;
    inset: -12px -8px;
  }

  .farm-desk__link::after,
  .pbanner__link::after {
    content: '';
    width: 14px;
    height: 14px;
    background: currentColor;
    -webkit-mask: var(--arrow-mask) center / contain no-repeat;
    mask: var(--arrow-mask) center / contain no-repeat;
  }

  /* --- Партнёрская программа --- */
  #partner {
    margin-block: 48px;
    padding-block: 48px;
    background:
      var(--c-primary);
    color: #fff;
  }

  #partner .pbanner {
    display: block;
    text-align: center;
  }

  .pbanner__visual {
    display: none;
  }

  #partner .pbanner__title {
    margin-top: 10px;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  .pbanner__text {
    margin-top: 12px;
    color: rgb(255 255 255 / 0.88);
    font-size: 15px;
    line-height: 20px;
  }

  .pbanner__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
  }

  .pbanner__steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 92px;
    padding: 8px 4px;
    border-radius: 10px;
    background: rgb(255 255 255 / 0.1);
  }

  .pbanner__steps li:nth-child(2) {
    background: rgb(255 255 255 / 0.18);
  }

  .pbanner__steps b {
    font-size: 14px;
    font-weight: 700;
    line-height: 17px;
    text-wrap: balance;
  }

  .pbanner__steps li > span:last-child {
    color: rgb(255 255 255 / 0.8);
    font-size: 12px;
    line-height: 15px;
    text-wrap: balance;
  }

  .pbanner__steps li.is-result {
    background: #fff;
    color: var(--c-primary-ink);
  }

  .pbanner__steps li.is-result > span:last-child {
    color: var(--c-primary-ink);
  }

  .pbanner__steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -16px;
    width: 14px;
    height: 14px;
    background: rgb(255 255 255 / 0.75);
    -webkit-mask: var(--arrow-mask) center / contain no-repeat;
    mask: var(--arrow-mask) center / contain no-repeat;
    transform: translateY(-50%);
  }

  .pcalc {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-top: 20px;
  }

  .pcalc__q {
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
  }

  .pcalc__chips {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    padding: 6px;
    border-radius: 10px;
    background: rgb(0 0 0 / 0.12);
  }

  .pcalc__chip {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    border-radius: 10px;
    background: rgb(255 255 255 / 0.1);
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .pcalc__chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .pcalc__check {
    display: none;
    width: 16px;
    height: 16px;
    color: var(--c-link, var(--c-primary));
  }

  .pcalc__check svg {
    width: 16px;
    height: 16px;
  }

  .pcalc__chip:has(input:checked) {
    background: #fff;
    color: var(--c-primary-ink);
  }

  .pcalc__chip:has(input:checked) .pcalc__check {
    display: grid;
  }

  .pcalc__result {
    font-size: 15px;
    font-weight: 600;
  }

  .pcalc__sum {
    font-size: 36px;
    font-weight: 800;
    line-height: 40px;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
  }

  .pcalc__note {
    color: rgb(255 255 255 / 0.8);
    font-size: 13px;
    line-height: 18px;
  }

  .pbanner__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px 20px;
    margin-top: 20px;
  }

  .pbanner__btn {
    min-height: 48px;
    padding: 0 20px;
    border-color: transparent;
    border-radius: 10px;
    background: #fff;
    color: var(--c-primary-ink);
    font-size: 15px;
  }

  .pcalc__chip:has(input:focus-visible),
  #partner :focus-visible,
  .farm-desk__link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
  }
}

/* Узкие телефоны */
@media (max-width: 374px) {
  #farm h2 {
    font-size: 20px;
  }

  .farm-desk__eyebrow {
    letter-spacing: 0.02em;
  }

  .fcalc__plan {
    padding: 0 8px;
    font-size: 13px;
    gap: 4px;
  }

  .fcalc__plan-check,
  .fcalc__plan-check svg {
    width: 16px;
    height: 16px;
  }

  .fcalc__stepper button {
    width: 40px;
  }

  .fcalc__stepper input {
    width: 44px;
  }

  .pbanner__steps {
    gap: 16px;
  }

  .pbanner__steps li:not(:last-child)::after {
    right: -15px;
  }

  .pbanner__steps b {
    font-size: 13px;
  }

  .pbanner__steps li > span:last-child {
    font-size: 11px;
  }

  .pcalc__chip {
    flex-direction: row;
    gap: 2px;
    font-size: 14px;
  }

  .pcalc__check,
  .pcalc__check svg {
    width: 14px;
    height: 14px;
  }
}

/* Высокие экраны — больше воздуха */
@media (max-width: 767px) and (min-height: 740px) {
  #farm .section__head {
    margin-bottom: 20px;
  }

  .farm-desk__grid {
    gap: 16px;
  }

  .fcalc {
    gap: 16px;
  }

  .farm-desk__more {
    margin-top: 20px;
  }

  .pbanner__steps {
    margin-top: 24px;
  }

  .pcalc,
  .pbanner__actions {
    margin-top: 28px;
  }
}

@media (max-width: 767px) {
  /* Строка цены с экономией за год — отдельной строкой: высота панели не меняется */
  .fcalc__total {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .fcalc__unit {
    grid-area: auto;
    text-align: left;
    letter-spacing: -0.01em;
  }

  .pbanner__steps li {
    justify-content: flex-start;
    padding: 12px 8px;
  }
}

@media (max-width: 374px) {
  .fcalc__unit {
    font-size: 12px;
    letter-spacing: -0.03em;
  }

  .fcalc__sum b {
    font-size: 26px;
  }

  .pbanner__steps li {
    padding-inline: 4px;
  }
}

@media (max-width: 344px) {
  .fcalc__unit {
    font-size: 11px;
    letter-spacing: -0.04em;
  }

  .fcalc__actions .btn {
    font-size: 13px;
  }
}

.farm-desk__short {
  display: none;
}

@media (max-width: 374px) {
  .farm-desk__points li {
    gap: 8px;
    font-size: 13px;
    letter-spacing: -0.01em;
  }

  .farm-desk__points {
    padding-inline: 16px;
  }
}

@media (max-width: 767px) and (max-height: 739px) {
  #farm .section__head {
    margin-bottom: 12px;
  }

  .farm-desk__eyebrow {
    margin-bottom: 8px;
  }

  #farm .section__head .section__lead {
    margin-top: 10px;
  }

  .farm-desk__grid {
    gap: 10px;
  }
}

@media (max-width: 767px) and (min-height: 740px) {
  .farm-desk__points {
    gap: 8px;
    padding-block: 16px;
  }
}

@media (max-width: 767px) {
  .farm-desk__points .farm-desk__num {
    min-width: 22px;
    font-variant-numeric: tabular-nums;
  }
}

@media (max-width: 767px) and (max-height: 739px) {
  .fcalc {
    gap: 10px;
  }
}

@media (max-width: 344px) {
  .fcalc__actions .btn {
    padding-inline: 4px;
    letter-spacing: -0.02em;
  }
}

/* Срок лицензии на телефоне: ширина плиток не меняется при выборе; слева и справа внутри по 12 px,
   «−10%» ровно по центру своего бейджа */
@media (max-width: 767px) {
  .fcalc__plans {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }

  .fcalc__plan {
    justify-content: space-between;
  }

  .fcalc__plan-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 20px;
    padding: 1px 6px 0;
    line-height: 1;
  }

  .fcalc__plan-check {
    margin-left: 0;
  }
}

@media (max-width: 344px) {
  .fcalc__plan {
    font-size: 12px;
    gap: 2px;
  }

  .fcalc__plan-badge {
    padding-inline: 4px;
    font-size: 11px;
  }
}

/* Итог калькулятора — строкой, как остальные: слева за что, справа сумма; старая цена под суммой.
   Место под старую цену зарезервировано — высота панели не меняется */
.fcalc__sum s:empty {
  display: none;
}

@media (min-width: 1024px) {
  .fcalc__total {
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    align-items: center;
    column-gap: 20px;
    min-height: 96px;
    padding-top: 20px;
  }

  .fcalc__total-label {
    align-self: end;
    color: var(--c-text);
    font-size: 17px;
    font-weight: 600;
  }

  .fcalc__unit {
    align-self: start;
    font-size: 15px;
  }

  .fcalc__sum {
    grid-area: 1 / 2 / span 2 / auto;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 4px;
  }

  .fcalc__sum s {
    line-height: 20px;
  }
}

@media (max-width: 767px) {
  .fcalc__total {
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    gap: 2px 8px;
    min-height: 69px;
  }

  .fcalc__total-label {
    align-self: end;
    color: var(--c-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
  }

  .fcalc__unit {
    align-self: start;
    font-size: 13px;
    letter-spacing: -0.01em;
  }

  .fcalc__sum {
    grid-area: 1 / 2 / span 2 / auto;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 2px;
  }

  .fcalc__sum b {
    font-size: 30px;
    white-space: nowrap;
  }

  .fcalc__sum s {
    font-size: 14px;
    line-height: 18px;
  }
}

@media (max-width: 374px) {
  .fcalc__sum b {
    font-size: 24px;
  }

  .fcalc__total-label {
    font-size: 14px;
  }

  .fcalc__unit {
    font-size: 12px;
  }
}

@media (max-width: 344px) {
  .fcalc__sum b {
    font-size: 20px;
  }

  .fcalc__total-label {
    font-size: 13px;
    letter-spacing: -0.02em;
  }

  .fcalc__unit {
    font-size: 11px;
    letter-spacing: -0.02em;
  }
}

/* Отступы между блоками как у Proxy-Seller: ПК 120 + 120, телефон 64 + 64.
   Система та же, что на ПК: внутри цветного блока --section-y, снаружи до соседа — два --section-y */
@media (min-width: 1024px) {
  .section--green,
  .section--accent,
  .partner-strip.section--accent {
    padding-block: var(--section-y);
  }

  .footer {
    padding-top: 0;
  }
}

@media (max-width: 767px) {
  :root {
    --section-y: 64px;
  }

  main {
    display: flex;
    flex-direction: column;
  }

  main > * {
    min-width: 0;
  }

  main > .section,
  #partner {
    padding-block: var(--section-y);
  }

  .section--soft,
  .section--green,
  .section--accent,
  .section--dark,
  #promo,
  #farm,
  #partner,
  #compare {
    margin-block: var(--section-y);
  }

  .trust {
    padding-top: calc(var(--section-y) * 2);
    padding-bottom: var(--section-y);
  }

  .footer {
    margin-top: var(--section-y);
  }
}

@media (max-width: 767px) {
  /* У ленты логотипов свои 18 px воздуха снизу — вычитаем */
  .trust {
    padding-bottom: calc(var(--section-y) - 18px);
  }

  /* Переход по ссылке на блок: заголовок сразу под шапкой, чтобы блок был виден целиком */
  main > .section,
  #partner {
    scroll-margin-top: -72px;
  }
}

/* Шаги партнёрки на телефоне — строками друг под другом: слева действие, справа пояснение, стрелки вниз */
@media (max-width: 767px) {
  .pbanner__steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .pbanner__steps li {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 20px;
    white-space: nowrap;
  }

  .pbanner__steps b {
    font-size: 15px;
    line-height: 20px;
  }

  .pbanner__steps li > span:last-child {
    font-size: 14px;
    line-height: 20px;
  }

  .pbanner__steps li:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -14px;
    left: 50%;
    width: 14px;
    height: 14px;
    transform: translateX(-50%) rotate(90deg);
  }

  .pbanner__actions {
    flex-wrap: nowrap;
    gap: 16px;
  }

  .pbanner__link {
    gap: 8px;
    white-space: nowrap;
  }
}

@media (max-width: 374px) {
  .pbanner__steps b,
  .pbanner__btn,
  .pbanner__link {
    font-size: 14px;
  }

  .pbanner__btn {
    padding-inline: 14px;
  }

  .pbanner__steps li {
    padding-inline: 16px;
  }

  .pbanner__steps li > span:last-child {
    font-size: 13px;
  }
}

@media (max-width: 344px) {
  .pbanner__actions {
    flex-wrap: wrap;
  }

  .pbanner__steps li > span:last-child {
    font-size: 12px;
  }
}

@media (max-width: 767px) and (max-height: 739px) {
  .pcalc {
    gap: 8px;
    margin-top: 16px;
  }

  .pbanner__actions {
    margin-top: 16px;
  }

  .pbanner__text {
    margin-top: 10px;
  }
}

/* Сумма не сдвигается при смене срока: старая цена слева от неё (ПК), на телефоне её нет — скидку показывает «−10%» */
@media (min-width: 1024px) {
  .fcalc__sum {
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: baseline;
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .fcalc__sum s {
    display: none;
  }

  .fcalc__total {
    min-height: 56px;
  }
}

/* Шаги партнёрки на телефоне: без стрелок (порядок читается сверху вниз, плашки всё ярче), больше воздуха внутри */
@media (max-width: 767px) {
  .pbanner__steps {
    gap: 8px;
  }

  .pbanner__steps li {
    min-height: 46px;
  }

  .pbanner__steps li:not(:last-child)::after {
    content: none;
  }
}

@media (max-width: 767px) and (min-height: 740px) {
  .pbanner__steps li {
    min-height: 56px;
  }
}

/* Партнёрка на телефоне: текст короче, за счёт этого больше воздуха между частями блока */
.pbanner__short {
  display: none;
}

@media (max-width: 767px) {
  .pbanner__full {
    display: none;
  }

  .pbanner__short {
    display: inline;
  }

  #partner .pbanner__title {
    margin-top: 14px;
  }

  #partner .pbanner__text {
    margin-top: 12px;
  }

  #partner .pbanner__steps {
    margin-top: 22px;
  }

  #partner .pcalc {
    gap: 12px;
    margin-top: 24px;
  }

  #partner .pcalc__chips {
    padding: 0;
    background: none;
  }

  #partner .pcalc__note {
    margin-top: -4px;
  }

  #partner .pbanner__actions {
    margin-top: 24px;
  }
}

@media (max-width: 767px) and (min-height: 740px) {
  #partner .pbanner__title {
    margin-top: 16px;
  }

  #partner .pbanner__steps,
  #partner .pcalc,
  #partner .pbanner__actions {
    margin-top: 32px;
  }

  #partner .pcalc {
    gap: 16px;
  }
}

/* Сумма и старая цена — на одной базовой линии со строкой «за модем в месяц» */
@media (min-width: 1024px), (max-width: 767px) {
  .fcalc__unit,
  .fcalc__sum {
    align-self: last baseline;
  }
}

/* ==========================================================================
   Поддержка и футер на телефоне — по композиции ПК
   ========================================================================== */
.fdesk__toggle {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
}

@media (max-width: 767px) {
  #support .support__buttons {
    display: none;
  }

  .support__live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--c-primary-soft);
    color: var(--c-primary-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
  }

  .support__live::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-primary);
    box-shadow: 0 0 0 3px rgb(50 157 65 / 0.18);
  }

  .support-cards {
    display: grid;
    gap: 8px;
    margin-top: 24px;
  }

  .support-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto auto;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    column-gap: 12px;
    width: 100%;
    min-height: 88px;
    padding: 20px;
    border: 0;
    border-radius: 10px;
    background: var(--c-bg-soft);
    color: var(--c-text);
    font: inherit;
    text-align: left;
    text-decoration: none;
  }

  .support-card__icon {
    display: grid;
    grid-area: 1 / 1 / 3 / 2;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #fff;
    color: var(--c-link, var(--c-primary));
  }

  .support-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .support-card__name {
    grid-area: 1 / 2;
    align-self: end;
    font-size: 17px;
    font-weight: 700;
    line-height: 22px;
  }

  .support-card__sub {
    grid-area: 2 / 2;
    align-self: start;
    margin-top: 2px;
    color: var(--c-muted);
    font-size: 13px;
    line-height: 18px;
    white-space: nowrap;
  }

  .support-card__meta {
    grid-area: 1 / 3 / 3 / 4;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff;
    color: var(--c-primary-ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    white-space: nowrap;
  }

  .support-card__arrow {
    grid-area: 1 / 4 / 3 / 5;
    margin-right: -6px;
    color: var(--c-muted);
  }

  .support-card__arrow svg {
    display: block;
    width: 20px;
    height: 20px;
  }

  /* --- Футер: разделы раскрываются, ниже логотип и соцсети, способы оплаты, документы --- */
  .footer .footer-mob {
    display: none;
  }

  .footer .fdesk {
    display: block;
    padding-inline: 20px;
  }

  .footer:has(.fdesk) {
    padding-top: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .fdesk__cols > nav {
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
  }

  .fdesk__title {
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .fdesk__toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 52px;
    -webkit-tap-highlight-color: transparent;
  }

  .fdesk__toggle::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-right: -3px;
    background: var(--c-on-dark-muted);
    -webkit-mask: var(--arrow-mask) center / contain no-repeat;
    mask: var(--arrow-mask) center / contain no-repeat;
    transform: scaleY(1) rotate(90deg);
  }

  .is-open > .fdesk__title .fdesk__toggle::after {
    transform: scaleY(-1) rotate(90deg);
  }

  .footer .fdesk__cols ul {
    display: none;
    padding-bottom: 12px;
  }

  .footer .fdesk__cols .is-open ul {
    display: grid;
  }

  .footer .fdesk__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--c-on-dark-muted);
    font: inherit;
    font-size: 15px;
    text-align: left;
    text-decoration: none;
  }

  .fdesk__mid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px 12px;
    padding-block: 24px;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
  }

  .fdesk__brand {
    display: grid;
    gap: 10px;
    justify-items: start;
  }

  .fdesk__rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--c-on-dark-muted);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
  }

  .fdesk__rating b {
    color: #fff;
  }

  .fdesk__social .fdesk__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .fdesk__social-list {
    display: flex;
    gap: 8px;
  }

  .fdesk__social-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgb(255 255 255 / 0.08);
    color: #fff;
    text-decoration: none;
  }

  .fdesk__social-btn svg {
    display: block;
    width: 22px;
    height: 22px;
  }

  .fdesk__vk {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }

  .fdesk__pay {
    grid-column: 1 / -1;
    order: 2;
    text-align: center;
  }

  .fdesk__label {
    margin-bottom: 12px;
    color: var(--c-on-dark-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .footer .fdesk__pay-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  .fdesk__pay-list li {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    background: rgb(255 255 255 / 0.06);
    color: var(--c-on-dark-muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }

  .fdesk__bottom {
    display: grid;
    gap: 8px;
    justify-items: center;
    padding-top: 16px;
    text-align: center;
  }

  .fdesk__copy {
    order: 2;
    color: var(--c-on-dark-muted);
    font-size: 12px;
    line-height: 18px;
  }

  .footer .fdesk__legal {
    display: grid;
    justify-items: center;
  }

  .footer .fdesk__legal .fdesk__link {
    min-height: 32px;
    font-size: 13px;
  }

  .footer :focus-visible {
    outline: 3px solid var(--c-accent-light);
    outline-offset: 2px;
  }
}

@media (max-width: 374px) {
  .support-card {
    column-gap: 10px;
    padding-inline: 16px;
  }

  .support-card__sub {
    letter-spacing: -0.02em;
  }

  .fdesk__mid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .fdesk__brand {
    justify-items: center;
  }
}

@media (max-width: 767px) and (min-height: 740px) {
  .support-cards {
    gap: 12px;
    margin-top: 28px;
  }
}

@media (max-width: 767px) {
  .fdesk__rating {
    gap: 4px;
    font-size: 12px;
    letter-spacing: -0.02em;
  }

  .fdesk__social-list {
    gap: 6px;
  }
}

@media (max-width: 767px) and (max-height: 739px) {
  .footer:has(.fdesk) {
    padding-top: 12px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .fdesk__toggle {
    min-height: 48px;
  }

  .fdesk__mid {
    row-gap: 20px;
    padding-block: 20px;
  }
}

@media (max-width: 344px) {
  .support-card {
    grid-template-rows: auto auto;
    align-content: center;
    padding-block: 14px;
  }

  .support-card__sub {
    white-space: normal;
  }
}

/* Футер на телефоне: без рейтинга (он есть в «Отзывах»), логотип по центру ряда соцсетей */
@media (max-width: 767px) {
  .fdesk__rating {
    display: none;
  }
}

@media (min-width: 346px) and (max-width: 767px) {
  .fdesk__mid {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
    row-gap: 24px;
    padding-block: 24px;
  }

  .fdesk__brand {
    justify-items: start;
  }
}

/* ==========================================================================
   Бесплатный тест: окно в стиле входа и оплаты. Под поля заложена строка ошибки — высота не меняется
   ========================================================================== */
.modal--test .modal__head {
  padding-bottom: 8px;
}

.test {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.test[hidden],
.test [hidden] {
  display: none;
}

.test__lead {
  color: var(--c-muted);
  font-size: 15px;
  line-height: 20px;
}

.test__field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.test .co__label {
  display: block;
}

.test .co__input {
  margin-top: 8px;
}

.test .co__account {
  margin-top: 8px;
}

.test .field__error {
  min-height: 20px;
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 18px;
}

.test .check {
  margin: 0;
}

.test .test-types {
  margin-top: 8px;
}

.test .test-type__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 84px;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: var(--c-bg-soft);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.test .test-type__body b {
  padding-right: 24px;
  font-size: 15px;
  font-weight: 700;
  line-height: 18px;
}

.test .test-type__body small {
  margin-top: auto;
  font-size: 13px;
  line-height: 16px;
}

.test-type__check {
  position: absolute;
  top: 12px;
  right: 12px;
  display: none;
}

.test-type__check svg {
  width: 20px;
  height: 20px;
}

.test .test-type input:checked + .test-type__body {
  background: var(--c-primary);
  color: #fff;
}

.test .test-type input:checked + .test-type__body small {
  color: inherit;
}

.test .test-type input:checked + .test-type__body .test-type__check {
  display: grid;
}

@media (hover: hover) {
  .test .test-type:hover .test-type__body {
    background: var(--c-primary);
    color: #fff;
  }

  .test .test-type:hover .test-type__body small {
    color: inherit;
  }
}

#test-success .success-icon {
  color: var(--c-link, var(--c-primary));
}

#test-success .btn {
  margin-top: 10px;
}

#test-success[hidden] {
  display: none;
}

@media (max-width: 359px) {
  .test .test-type__body {
    padding: 12px;
  }

  .test .test-type__body b {
    font-size: 14px;
  }

  .test .check {
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .modal--test {
    width: 640px;
  }

  .modal--test .modal__head {
    padding-bottom: 12px;
  }

  .test {
    gap: 24px;
  }

  .test__lead {
    font-size: 17px;
    line-height: 24px;
  }

  .test .co__label {
    font-size: 18px;
  }

  .test .test-types {
    gap: 12px;
    margin-top: 12px;
  }

  .test .test-type__body {
    min-height: 92px;
    padding: 20px;
    border-radius: 12px;
  }

  .test .test-type__body b {
    font-size: 18px;
    line-height: 22px;
  }

  .test .test-type__body small {
    font-size: 15px;
    line-height: 20px;
  }

  .test-type__check {
    top: 18px;
    right: 18px;
  }

  .test-type__check svg {
    width: 24px;
    height: 24px;
  }

  .test .co__input,
  .test .co__account {
    min-height: 64px;
    margin-top: 12px;
    font-size: 18px;
  }

  .test .field__error {
    min-height: 26px;
    margin-top: 4px;
    font-size: 15px;
    line-height: 22px;
  }

  #test-success {
    padding: 8px 40px 40px;
    font-size: 18px;
  }

  #test-success h3 {
    font-size: 26px;
  }
}

.test .field__error:empty {
  display: block;
}

.test #test-consent-err {
  margin-top: 0;
}

@media (max-width: 767px) {
  .test {
    gap: 12px;
  }

  .test .test-types {
    grid-auto-rows: 1fr;
  }

  .test .test-type__body {
    min-height: 0;
    padding: 12px 14px;
    gap: 2px;
  }

  .test .field__error {
    margin-top: 4px;
  }

  .test .btn--xl {
    min-height: 56px;
    font-size: 18px;
  }

  .test #test-guest:not([hidden]) + .btn--xl {
    margin-top: -4px;
  }
}

@media (min-width: 768px) {
  .test #test-guest:not([hidden]) + .btn--xl {
    margin-top: -12px;
  }

  .test .check {
    margin-top: 4px;
  }
}

/* Окно чтения отзыва: автор в шапке, текст в серой плашке */
.modal--review .modal__head {
  gap: 12px;
}

.rview__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary-ink);
  font-size: 16px;
  font-weight: 700;
}

.rview__who {
  flex: 1;
  min-width: 0;
}

.modal--review .modal__title {
  font-size: 19px;
  line-height: 24px;
}

.rview__meta {
  margin-top: 2px;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 18px;
}

.rview {
  padding: 20px;
  border-radius: 10px;
  background: var(--c-bg-soft);
}

.rview__stars svg {
  width: 20px;
  height: 20px;
}

.rview__text {
  margin: 12px 0 -3px;
  font-size: 16px;
  line-height: 24px;
}

@media (min-width: 768px) {
  .modal--review {
    width: 640px;
  }

  .modal--review .modal__head {
    gap: 16px;
    padding: 40px 40px 24px;
  }

  .rview__avatar {
    width: 64px;
    height: 64px;
    font-size: 20px;
  }

  .modal--review .modal__title {
    font-size: 26px;
    line-height: 32px;
  }

  .rview__meta {
    font-size: 16px;
    line-height: 22px;
  }

  .rview {
    padding: 32px;
    border-radius: 12px;
  }

  .rview__stars svg {
    width: 24px;
    height: 24px;
  }

  .rview__text {
    margin-top: 16px;
    font-size: 18px;
    line-height: 28px;
  }
}

.rview__stars {
  color: var(--c-star);
}

/* Бесплатный тест: полные названия типов; на телефоне галочка — в нижнем углу, чтобы название не ломалось */
@media (max-width: 767px) {
  .test .test-type__body b {
    padding-right: 0;
    letter-spacing: -0.01em;
  }

  .test .test-type__body small {
    padding-right: 24px;
  }

  .test-type__check {
    top: auto;
    bottom: 12px;
  }
}

@media (min-width: 768px) {
  .test .test-type__body b {
    padding-right: 28px;
    font-size: 17px;
    letter-spacing: -0.02em;
  }

  .test .test-types {
    grid-auto-rows: 1fr;
  }
}

.test .test-type__body b span {
  display: block;
  white-space: nowrap;
}

@media (max-width: 359px) {
  .test .test-type__body b {
    font-size: 13px;
    letter-spacing: -0.02em;
  }
}

/* Оставить отзыв: выбор площадки */
.leave__lead {
  margin-bottom: 16px;
  color: var(--c-muted);
  font-size: 15px;
  line-height: 20px;
}

.leave {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leave__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--c-bg-soft);
  color: var(--c-text);
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.leave__item .platform__logo {
  flex: none;
}

.leave__name {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
}

.leave__arrow {
  width: 20px;
  height: 20px;
  margin-right: -6px;
  background: currentColor;
  -webkit-mask: var(--arrow-mask) center / contain no-repeat;
  mask: var(--arrow-mask) center / contain no-repeat;
}

@media (hover: hover) {
  .leave__item:hover {
    background: var(--c-primary);
    color: #fff;
  }
}

.leave__item:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

.modal--leave .modal__head {
  padding-bottom: 8px;
}

@media (min-width: 768px) {
  .modal--leave .modal__head {
    padding-bottom: 12px;
  }

  .leave__lead {
    margin-bottom: 24px;
    font-size: 17px;
    line-height: 24px;
  }

  .leave {
    gap: 12px;
  }

  .leave__item {
    min-height: 84px;
    border-radius: 12px;
  }

  .leave__name {
    font-size: 19px;
  }
}

/* Бесплатный тест: локация */
.test-loc {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.test-sel {
  position: relative;
  display: block;
  border-radius: 10px;
  background: var(--c-bg-soft);
}

.test-sel__label {
  position: absolute;
  top: 8px;
  left: 14px;
  color: var(--c-muted);
  font-size: 12px;
  line-height: 16px;
  pointer-events: none;
}

.test-sel select {
  width: 100%;
  height: 56px;
  padding: 22px 40px 6px 14px;
  border: 0;
  border-radius: inherit;
  background: none;
  color: var(--c-text);
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  appearance: none;
  cursor: pointer;
}

.test-sel select:disabled {
  color: var(--c-muted);
  font-weight: 500;
  opacity: 1;
  cursor: default;
}

.test-sel option,
.test-sel optgroup {
  color: var(--c-text);
  background: #fff;
}

.test-sel option:disabled {
  color: var(--c-muted);
}

.test-sel::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 14px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background: var(--c-muted);
  -webkit-mask: var(--arrow-mask) center / contain no-repeat;
  mask: var(--arrow-mask) center / contain no-repeat;
  transform: rotate(90deg);
  pointer-events: none;
}

.test-sel:has(select:disabled)::after {
  display: none;
}

.test-sel select:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

@media (hover: hover) {
  .test-sel:not(:has(select:disabled)):hover {
    background: var(--c-primary-soft);
  }
}

.test__note {
  color: var(--c-muted);
  font-size: 14px;
  line-height: 18px;
  text-align: center;
}

@media (min-width: 768px) {
  .test-loc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
  }

  .test-sel {
    border-radius: 12px;
  }

  .test-sel__label {
    top: 12px;
    left: 20px;
    font-size: 14px;
    line-height: 18px;
  }

  .test-sel select {
    height: 72px;
    padding: 30px 48px 10px 20px;
    font-size: 17px;
  }

  .test-sel::after {
    right: 20px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
  }

  .test__note {
    margin-bottom: -8px;
    font-size: 16px;
    line-height: 22px;
  }
}

.test .btn--xl {
  margin-top: 0;
}

#auth-order-text,
#test-success-text {
  white-space: pre-line;
}

@media (max-width: 767px) {
  .test .test__note {
    margin-bottom: 0;
  }
}

/* Бесплатный тест: описание у всех типов в одну строку, галочка — в верхнем углу */
.test .test-type__body small {
  padding-right: 0;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .test .test-type__body {
    gap: 6px;
  }

  .test-type__check {
    top: 11px;
    bottom: auto;
  }
}

@media (max-width: 359px) {
  .test .test-type__body small {
    font-size: 12px;
    letter-spacing: -0.03em;
  }

  .test .test-type__check {
    top: 12px;
    right: 8px;
  }

  .test .test-type__check svg {
    width: 16px;
    height: 16px;
  }
}

.test .test-types {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 359px) {
  .test .test-type__body {
    padding-inline: 10px;
  }

  .test .test-type__body small {
    font-size: 11px;
  }

  .test__note {
    font-size: 13px;
    letter-spacing: -0.02em;
  }
}

/* «Типы прокси»: ссылки рядом больше нет — кнопка сравнения ровно по центру */
@media (min-width: 1024px) {
  .section--green .compare-all {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .section--green .compare-all[open] {
    justify-self: stretch;
  }
}

/* ==========================================================================
   ПК: шапка без плашки. Первый экран — меню прямо на фоне; при прокрутке внутри
   него под шапкой сплошной цвет фона; со второго экрана — белая полоса.
   Как у Proxy-Seller, переход 0,3 с
   ========================================================================== */
@media (min-width: 768px) {
  :root {
    --header-gap: 0px;
    --header-bar: 88px;
  }

  .header {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  }

  .header::before {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .header.header--moved {
    background: var(--c-hero);
  }

  .header.header--light {
    background: var(--c-surface);
    color: var(--c-text);
    box-shadow: 0 1px 0 var(--c-border);
  }

  .header :is(.logo__mark, .logo__tagline, .nav__link, .header__login, .cart-btn, .lang, .lang__btn) {
    transition: color 0.3s ease, background-color 0.2s ease, border-color 0.3s ease, padding 0.3s ease;
  }

  .header.header--light :is(.nav__link, .header__login, .cart-btn) {
    color: var(--c-text);
  }

  .header.header--light .logo__mark {
    color: var(--c-link, var(--c-primary));
  }

  .header.header--light .logo__tagline,
  .header.header--light .lang__btn {
    color: var(--c-muted);
  }

  .header.header--light .lang {
    border-color: var(--c-border);
  }

  .header.header--light .lang__btn[aria-pressed='true'] {
    background: #eff0f2;
    color: var(--c-text);
  }

  .header.header--light :is(.nav__link, .header__login, .cart-btn):hover,
  .header.header--light .nav__link[aria-expanded='true'] {
    background: var(--c-bg-soft);
    color: var(--c-text);
  }

  .header.header--light .cart-btn__count {
    border-color: var(--c-surface);
  }

  .header.header--light :focus-visible {
    outline-color: var(--c-focus);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header,
  .header * {
    transition: none !important;
  }
}

/* Фон первого экрана: чисто под шапкой, тихо за текстом и формой, активнее по краям */
.hero__canvas {
  --hero-mask:
    radial-gradient(ellipse 52% 60% at 50% 52%, transparent 40%, rgb(0 0 0 / 0.35) 75%, #000 100%),
    linear-gradient(transparent calc(var(--header-h) * 0.9), #000 calc(var(--header-h) + 100px));
  -webkit-mask: var(--hero-mask);
  -webkit-mask-composite: source-in;
  mask: var(--hero-mask);
  mask-composite: intersect;
}

/* Форма: квадратик вокруг стрелки при наведении на плашку, фокусе и раскрытии */
.dd__chevron {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: -7px -7px -7px 0;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.dd__chevron svg {
  transition: transform 0.2s ease;
}

.dd__button[aria-expanded='true'] .dd__chevron {
  transform: none;
}

.dd__button[aria-expanded='true'] .dd__chevron svg {
  transform: rotate(180deg);
}

.dd__button[aria-expanded='true'] .dd__chevron,
.dd__button:focus-visible .dd__chevron {
  background: rgb(255 255 255 / 0.1);
}

@media (hover: hover) {
  .quickbuy__field:hover .dd__button:not(:disabled) .dd__chevron {
    background: rgb(255 255 255 / 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dd__chevron,
  .dd__chevron svg {
    transition: none;
  }
}

/* Списки ровно по ширине плашки: в узких меньше полей, чтобы пункты читались целиком */
@media (min-width: 768px) {
  .quickbuy__field:is(:nth-child(2), :nth-child(4)) .dd__option {
    gap: 10px;
    padding-inline: 12px;
  }

  .quickbuy__field:is(:nth-child(2), :nth-child(4)) .dd__opt-label {
    overflow: visible;
  }

  .quickbuy__field:nth-child(2) .dd__option[aria-disabled='true'] svg {
    display: none;
  }
}

/* ПК: ссылки первого экрана — прямо на фоне, без плашки */
@media (min-width: 768px) {
  .hero__bottom .hero__links {
    padding: 6px 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .hero__bottom .hero__links::before {
    content: none;
  }
}

/* Рейтинг на первом экране — прямо на фоне, без плашки; при наведении подчёркивается, как ссылки */
.hero__rating,
.hero__rating:hover {
  border-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: linear-gradient(currentColor, currentColor) right calc(50% + 14px) / 0 1px no-repeat;
  background-position: right 14px bottom 5px;
  transition: background-size 0.3s ease;
}

@media (hover: hover) {
  .hero__rating:hover {
    background-position: left 14px bottom 5px;
    background-size: calc(100% - 28px) 1px;
  }
}

/* Телефон: ссылки первого экрана тоже прямо на фоне, без плашки и линий */
@media (max-width: 767px) {
  .hero__bottom .container.hero__links {
    border-color: transparent;
    background: none;
    box-shadow: none;
  }

  .hero__bottom .container.hero__links::before {
    content: none;
  }

  .hero__bottom .hero__links > .hero__link.hero__link {
    border-color: transparent;
  }
}

/* Низкие телефоны: короткие названия, тест и бот в первой строке, подбор под ними */
@media (max-width: 767px) and (max-height: 663px) {
  .hero__bottom .hero__links > .hero__link.hero__link[href='#picker'] .hero__link-full {
    display: none;
  }

  .hero__bottom .hero__links > .hero__link.hero__link[href='#picker'] .hero__link-short {
    display: inline;
  }
}

@media (max-width: 767px) {
  .hero__bottom .hero__links > .hero__link.hero__link.hero__link.hero__link {
    border: 0;
  }
}

/* Телефон: шапка как на ПК — без стекла: на первом экране прямо на фоне, дальше белая полоса */
@media (max-width: 767px) {
  .header {
    border-bottom-color: transparent;
    background: transparent;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  }

  .header::before {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .header.header--moved {
    background: var(--c-hero);
  }

  .header.header--light {
    border-bottom-color: var(--c-border);
    background: var(--c-surface);
    color: var(--c-text);
  }

  .header :is(.logo__mark, .logo__tagline, .cart-btn, .burger) {
    transition: color 0.3s ease, background-color 0.2s ease;
  }

  .header.header--light :is(.logo__mark, .cart-btn, .burger) {
    color: var(--c-text);
  }

  .header.header--light .logo__tagline {
    color: var(--c-muted);
  }

  .header.header--light .cart-btn__count {
    border-color: var(--c-surface);
  }

  .header.header--light :focus-visible {
    outline-color: var(--c-focus);
  }
}

/* ПК: первый экран по центру между шапкой и низом окна — воздух над рейтингом и под ссылками равный;
   в плашках формы содержимое посередине, поля слева у всех 24 px */
@media (min-width: 1024px) {
  .hero {
    padding-top: var(--header-h);
  }

  .hero::before,
  .hero::after {
    content: '';
    flex: 1 1 0;
  }

  .hero .hero__bottom {
    flex: none;
    padding: clamp(20px, 5vh, 56px) 0 0;
    margin-bottom: -11px;
  }

  .hero h1 {
    margin-top: clamp(12px, 2.2vh, 24px);
  }

  .hero .quickbuy {
    margin-top: clamp(24px, 5.2vh, 56px);
  }

  .quickbuy .quickbuy__field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 28px 19px;
  }

  .quickbuy .quickbuy__field[hidden] {
    display: none;
  }

  .quickbuy .quickbuy__total {
    padding: 25px 24px 29px;
  }
}

/* Поле в фокусе: одна ровная линия по краю, без второй рамки с просветом */
.input.input:focus-visible,
select.input:focus-visible,
textarea.input:focus-visible {
  outline: 2px solid transparent;
  outline-offset: -2px;
  border-color: var(--c-primary);
  box-shadow: inset 0 0 0 1px var(--c-primary);
}
.input.input[aria-invalid='true']:focus-visible {
  border-color: var(--c-danger);
  box-shadow: inset 0 0 0 1px var(--c-danger);
}

/* Полосы прокрутки: тонкие светлые, на всём сайте и в кабинете */
html {
  scrollbar-color: #d3d7db transparent;
}

/* Шапка: список «Прокси-ферма» — ПО и сборка */
.nav__farm {
  position: relative;
}

.nav__dropdown--farm a {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  white-space: nowrap;
  line-height: 1.2;
}

.nav__dropdown--farm b {
  font-weight: 600;
}

.nav__dropdown--farm span {
  color: var(--c-muted);
  font-size: 14px;
}

@media (max-width: 767px) {
  .header .nav.is-open .nav__dropdown--farm a {
    align-content: center;
    min-height: 56px;
    color: var(--c-text);
  }

  .header .nav.is-open .nav__link[aria-expanded='true'] {
    border-bottom-color: transparent;
  }
}

@media (max-width: 767px) and (max-height: 620px) {
  .header .nav.is-open .nav__dropdown--farm a {
    gap: 2px;
    min-height: 48px;
  }
}

/* Шапка ПК: больше воздуха между пунктами меню */
@media (min-width: 1120px) {
  .header .nav__link {
    padding-inline: 22px;
  }
}

@media (max-width: 767px) {
  .header .nav.is-open .nav__dropdown--farm {
    min-width: 0;
  }

  .header .nav.is-open .nav__dropdown--farm a {
    display: grid;
    justify-items: start;
    padding-block: 8px;
    white-space: normal;
  }
}

/* Список «Прокси-ферма» на ПК: ширина — как у пункта меню; на первом экране тёмный, как списки формы */
@media (min-width: 768px) {
  .nav__dropdown--farm {
    width: 100%;
    min-width: 0;
    padding: 8px;
    border-radius: 10px;
  }

  .nav__dropdown--farm a {
    padding: 12px;
    border-radius: 8px;
    white-space: normal;
  }

  .nav__dropdown--farm span {
    text-wrap: balance;
  }

  .header--top .nav__dropdown {
    border-color: rgb(255 255 255 / 0.12);
    background: #1b2733;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 0.2), 0 16px 38px rgb(0 0 0 / 0.55);
  }

  .header.header--top .nav__dropdown a {
    color: #fff;
  }

  .header.header--top .nav__dropdown a:hover {
    background: rgb(255 255 255 / 0.12);
  }

  .header--top .nav__dropdown--farm span {
    color: rgb(255 255 255 / 0.66);
  }
}

/* ПК: «Купить прокси» в меню не дублирует форму и кнопку шапки; на телефоне пункт остаётся */
@media (min-width: 768px) {
  .header .nav__buy {
    display: none;
  }
}

/* Телефон (по скриншотам с iPhone): крестики окон квадратные со скруглением 10px, без кольца фокуса после касания; шапка не заезжает под статус-бар */
@media (max-width: 767px) {
  dialog .icon-btn { border-radius: 10px; }
  .header { padding-top: env(safe-area-inset-top); }
}
@media (max-width: 767px) and (hover: none) {
  dialog .icon-btn:focus-visible { outline: none; }
}

/* Телефон, «Типы прокси» (по скриншоту с iPhone): легче начертания, мельче текст, больше воздуха */
@media (max-width: 767px) {
  #compare .product .product__title { font-size: 18px; font-weight: 600; }
  #compare .product .product__best-title { font-size: 14px; font-weight: 500; }
  #compare .product .product__best { font-size: 14px; line-height: 1.6; }
  #compare .product .product__stats { font-size: 13px; }
  #compare .product .product__stats :is(b, strong, dd, dd *) { font-size: 13px; font-weight: 500; }
  #compare .product .product__main { padding-bottom: 4px; }
  #compare .product .product__stats { margin-block: 8px; }
  #compare .product .product__actions { gap: 12px; }
  #compare .product .product__actions .btn { min-height: 46px; padding-inline: 12px; font-size: 14px; font-weight: 600; }
}

/* Телефон, «Типы прокси»: всё внутри карточки обычным начертанием (Regular), между строками воздух */
@media (max-width: 767px) {
  .product .product__best, .product .product__best *, .product .product__stats, .product .product__stats * { font-weight: 400 !important; }
  .product .product__title { font-weight: 600 !important; }
  .product .product__best { line-height: 1.75 !important; }
  .product .product__best-title { margin-bottom: 6px !important; }
  .product .product__stats li, .product .product__stats > div, .product .product__stats dl > div { padding-block: 12px !important; line-height: 1.5 !important; }
}

/* Подвал ниже: документы — в колонке «Поддержка», снизу только тонкая строка копирайта */
@media (min-width: 1024px) {
  .fdesk__cols > nav { padding-block: 56px 32px; }
  .fdesk__mid { padding-block: 28px; border-bottom: 1px solid rgb(255 255 255 / 0.1); }
  .fdesk__bottom { justify-content: center; margin-top: 16px; }
  .footer:has(.fdesk) { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* Кабинет в шапке — только значок и подпись, без плашки */
.header .header__login,
.header.header--top .header__login,
.header .header__login:hover,
.header.header--top .header__login:hover { background: transparent; border-color: transparent; padding-inline: 10px; }
.header .header__login:hover { color: var(--c-primary); }
.header.header--light .header__login:hover { color: var(--c-primary); }

/* Вторичные кнопки в светлой теме: только тонкая серая окантовка, без заливки и тени */
html:not([data-theme='dark']) :is(.section--soft .btn--outline, .section--soft .steps-cta__test, .section--green .product__actions .btn--outline, #how .steps-cta__test, #reviews .reviews__actions .btn, #compare .product__actions .btn--outline, #compare .compare-all__body .btn--outline, #faq .faq__body .btn:not(.btn--primary)) {
  border: 1px solid var(--c-border-strong);
  background: transparent;
  color: var(--c-text);
  box-shadow: none;
}

@media (hover: hover) {
  html:not([data-theme='dark']) :is(.section--soft .btn--outline, .section--soft .steps-cta__test, .section--green .product__actions .btn--outline, #how .steps-cta__test, #reviews .reviews__actions .btn, #compare .product__actions .btn--outline, #compare .compare-all__body .btn--outline, #faq .faq__body .btn:not(.btn--primary)):hover {
    border-color: var(--c-primary);
    background: var(--c-primary);
    color: #fff;
  }

  html:not([data-theme='dark']) #reviews .reviews__actions .btn:hover .reviews__bonus {
    background: rgb(255 255 255 / 0.16);
    color: #fff;
  }
}

/* Кнопки на зелёной плашке FAQ: белая основная и вторичная с окантовкой, без чёрного */
html body .faq-side .faq-side__actions .faq-side__btn.btn {
  border: 1px solid #fff;
  background: #fff;
  color: #329d41;
  box-shadow: none;
}

html body .faq-side .faq-side__actions .faq-side__more.btn {
  border: 1px solid rgb(255 255 255 / 0.55);
  background: transparent;
  color: #fff;
  box-shadow: none;
}

@media (hover: hover) {
  html body .faq-side .faq-side__actions .faq-side__btn.btn:hover {
    background: transparent;
    color: #fff;
  }

  html body .faq-side .faq-side__actions .faq-side__more.btn:hover {
    border-color: #fff;
    background: #fff;
    color: #329d41;
  }
}

/* Больше воздуха в кнопке «Кабинет» на десктопе */
@media (min-width: 1120px) {
  html body .header.header .header__login.btn,
  html body .header.header .header__login.btn:hover {
    padding-inline: 20px;
  }
}

/* Кнопка темы: тот же фон при наведении, что у пунктов меню */
@media (hover: hover) {
  html body .header.header .theme-btn:hover {
    background: rgb(255 255 255 / 0.08);
  }

  html body .header.header.header--light .theme-btn:hover {
    background: var(--c-bg-soft);
  }
}

/* Кнопки, лежащие прямо на зелёном фоне блока: белая окантовка, при наведении белая заливка */
html body #compare.section--green .compare-all > summary.btn.btn--outline {
  border: 1px solid rgb(255 255 255 / 0.55);
  background: transparent;
  color: #fff;
}

@media (hover: hover) {
  html body #compare.section--green .compare-all > summary.btn.btn--outline:hover {
    border-color: #fff;
    background: #fff;
    color: #329d41;
  }
}

/* Прочие вторичные кнопки на зелёном фоне: тот же вид — белая окантовка вместо мутной заливки */
html body .btn.faq-side__more.faq-side__more,
html body #promo.section--accent .btn.btn--outline {
  border: 1px solid rgb(255 255 255 / 0.55);
  background: transparent;
  color: #fff;
  box-shadow: none;
}

html body #compare.section--green .ptab.ptab:not([aria-selected='true']) {
  background: rgb(255 255 255 / 0.12);
}

@media (hover: hover) {
  html body .btn.faq-side__more.faq-side__more:hover,
  html body #promo.section--accent .btn.btn--outline:hover {
    border-color: #fff;
    background: #fff;
    color: #329d41;
  }

  html body #compare.section--green .ptab.ptab:not([aria-selected='true']):hover {
    background: rgb(255 255 255 / 0.2);
  }
}

/* Таблица сравнения на зелёном фоне: мягкие линии без серой грязи */
html:not([data-theme='dark']) body #compare #compare-table :is(table, thead, tbody, tr, th, td) {
  border-color: #eef1f2;
}

html:not([data-theme='dark']) body #compare #compare-table {
  border-color: transparent;
}

html body #faq .btn.faq-side__more {
  border: 1px solid rgb(255 255 255 / 0.55);
  background: transparent;
  color: #fff;
}

@media (hover: hover) {
  html body #faq .btn.faq-side__more:hover {
    border-color: #fff;
    background: #fff;
    color: #329d41;
  }
}

/* Тёмная тема: блоки, синие в светлой версии, становятся зелёными */
html[data-theme='dark'] body :is(.st-head.st-head) {
  background: #329d41;
  color: #fff;
}

html[data-theme='dark'] body .st-head.st-head * {
  color: #fff;
}

/* Шапка: равные промежутки вокруг кнопки темы */
@media (min-width: 1120px) {
  html body .header .theme-btn {
    margin: 0 -8px 0 8px;
  }
}

/* Неактивные и вторичные элементы на зелёном фоне: полупрозрачная подложка без окантовки */
html body #faq .btn.faq-side__more:not(:hover),
html body .btn.faq-side__more.faq-side__more:not(:hover),
html body #promo.section--accent .btn.btn--outline:not(:hover),
html body #compare.section--green .compare-all > summary.btn.btn--outline:not(:hover) {
  border-color: transparent;
  background: rgb(255 255 255 / 0.12);
}

/* Мобильное меню: «Войти» / «Кабинет» — обычная сплошная зелёная кнопка в обеих темах */
html body .nav .nav__login.nav__login { background: #329d41; border-color: transparent; color: #fff; }

/* ---------- Правило кнопок: главная — с заливкой, вторая — с обводкой (обе темы) ---------- */
html body :is(.btn.btn--outline, .btn.steps-cta__test, #reviews .reviews__actions .btn:not(.btn--primary), .btn.ab-ask__more):not(#_, :is(.hero, #promo, .faq-side, .why__panel, .header, .pf-demo) *, .compare-all > summary) { background: transparent; border: 1px solid var(--c-border-strong); color: var(--c-text); }
@media (hover: hover) {
  html body :is(.btn.btn--outline:hover, .btn.steps-cta__test:hover, #reviews .reviews__actions .btn:not(.btn--primary):hover, .btn.ab-ask__more:hover):not(#_, :is(.hero, #promo, .faq-side, .why__panel, .header, .pf-demo) *, .compare-all > summary) { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
}

/* «Сравнить все типы» лежит на зелёном: белая обводка и белый текст, при наведении белая заливка */
html body #compare.section--green .compare-all.compare-all > summary.btn.btn--outline:not(:hover) { background: transparent; border: 1px solid rgb(255 255 255 / 0.55); color: #fff; }
@media (hover: hover) { html body #compare.section--green .compare-all.compare-all > summary.btn.btn--outline:hover { background: #fff; border-color: #fff; color: #329d41; } }

/* Фильтры и вкладки внутренних страниц: невыбранные — с обводкой, при наведении зелёная заливка */
html body :is(.up-filter, .bl-filter, .fq-tabs) button:not([aria-pressed='true'], [aria-selected='true']) { background: transparent; border: 1px solid var(--c-border-strong); color: var(--c-text); }
@media (hover: hover) { html body :is(.up-filter, .bl-filter, .fq-tabs) button:not([aria-pressed='true'], [aria-selected='true']):hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; } }
/* Вторые кнопки на светло-зелёных плашках */
html body :is(.st-copy.st-copy, .fa .fa-white.fa-white) { background: transparent; border: 1px solid var(--c-primary); color: var(--c-primary-ink); }
@media (hover: hover) { html body :is(.st-copy.st-copy:hover, .fa .fa-white.fa-white:hover) { background: var(--c-primary); color: #fff; } }

/* Галочка согласия: своя, тонкая и белая на зелёном в обеих темах */
html body .check input[type='checkbox'] { -webkit-appearance: none; appearance: none; flex: none; width: 18px; height: 18px; border: 1px solid var(--c-border-strong); border-radius: 5px; background: transparent no-repeat center / 12px 12px; cursor: pointer; }
html body .check input[type='checkbox']:checked { border-color: var(--c-primary); background-color: var(--c-primary); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.3 4.9 8.7 9.6 3.6'/%3E%3C/svg%3E"); }
html body .check input[type='checkbox']:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }

/* Акции: плашка кода копирует по нажатию, под ней — кнопка на страницу акции */
.st-card[id] { scroll-margin-top: 110px; }
#promo .promo .promo__code { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 0 44px; border: 0; font: inherit; color: inherit; position: relative; }
#promo .promo button.promo__code { cursor: pointer; user-select: none; }
#promo .promo .promo__code code { flex: none; padding: 0; }
#promo .promo .promo__code--personal { cursor: default; user-select: none; }
#promo .promo .promo__code--personal code { text-transform: uppercase; }
#promo .promo .promo__code svg { position: absolute; right: 16px; width: 18px; height: 18px; color: var(--c-muted); }
#promo .promo a.btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
@media (hover: hover) {
  #promo .promo button.promo__code:hover { background: var(--c-primary-soft); }
  #promo .promo button.promo__code:hover :is(code, svg) { color: var(--c-primary-ink); }
}

/* ---------- Вход: код из Telegram и звонок ---------- */
.auth__code { font-variant-numeric: tabular-nums; }
.auth__code:not(:placeholder-shown) { letter-spacing: 0.2em; }
/* подсказка и ошибка в одной строке — окно не меняет высоту */
.auth__note { display: grid; margin-top: 8px; color: var(--c-muted); font-size: 14px; line-height: 20px; }
.auth__note > * { grid-area: 1 / 1; margin: 0; font-size: inherit; line-height: inherit; }
.auth__note .field__error { display: block; min-height: 20px; }
.auth__note:has(.field__error:not(:empty)) #auth-code-hint { visibility: hidden; }
.auth__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.auth__pair .btn { padding-inline: 12px; }
.modal--auth .auth__call, .modal--call .call__close { border: 0; background: var(--c-primary-soft); color: var(--c-primary-ink); }

.modal.modal--call { width: min(480px, calc(100% - 40px)); height: fit-content; max-height: calc(100% - 40px); margin: auto; border-radius: 24px; }
.call { display: grid; justify-items: center; gap: 12px; padding: 40px; text-align: center; }
.call p { margin: 0; text-wrap: balance; }
.call__title { margin: 0; font-size: 26px; line-height: 1.2; }
.call__lead, .call__from, .call__free { color: var(--c-muted); font-size: 16px; line-height: 1.5; }
.call__from b { color: var(--c-ink-text, var(--c-ink)); font-weight: 600; white-space: nowrap; }
.call__number { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 72px; margin-block: 8px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--c-bg-soft); color: var(--c-ink-text, var(--c-ink)); font: inherit; cursor: pointer; }
.call__number b { font-size: 28px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.call__number span { display: grid; color: var(--c-muted); }
.call__number svg { width: 22px; height: 22px; }
.call__dial { display: none; }
.call__close { margin-top: 12px; }
.call :focus-visible, .auth__call:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
@media (hover: hover) {
  .modal--auth .auth__call:hover, .modal--call .call__close:hover { background: var(--c-primary); color: #fff; }
  .call__number:hover { background: var(--c-primary); color: #fff; }
  .call__number:hover span { color: #fff; }
}
@media (min-width: 768px) {
  .auth__note { margin-top: 10px; font-size: 16px; }
  .modal--auth .auth__pair .btn--xl { font-size: 18px; }
}
@media (max-width: 767px) {
  .modal.modal--call { border-radius: 10px; }
  .call { gap: 8px; padding: 20px; }
  .call__title { font-size: 22px; }
  .call__number { min-height: 64px; margin-block: 4px; padding: 0 12px; border-radius: 10px; }
  .call__number b { font-size: 22px; }
  .call__dial { display: flex; margin-top: 8px; }
  .call__close { margin-top: 0; }
  .auth__pair { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
html[data-theme='dark'] :is(.modal--auth .auth__call, .modal--call .call__close) { background: #26344c; color: #fff; }
@media (hover: hover) { html[data-theme='dark'] :is(.modal--auth .auth__call, .modal--call .call__close):hover { background: var(--c-primary); } }

/* под кнопками: два действия строками-плашками (наведение — зелёные), «Назад» — тихой ссылкой */
.auth__help { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 4px; }
.auth__row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 10px 20px; border: 0; border-radius: 12px; background: var(--c-bg-soft); color: var(--c-ink-text, var(--c-ink)); font: inherit; font-size: 15px; font-weight: 600; line-height: 1.3; text-align: left; text-decoration: none; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.auth__row > [data-icon] { display: grid; flex: none; }
.auth__row svg { width: 20px; height: 20px; }
.auth__row-icon { color: var(--c-link, var(--c-primary)); }
.auth__row-text { flex: 1; min-width: 0; text-wrap: balance; font-variant-numeric: tabular-nums; }
.auth__row-go { color: var(--c-muted); }
.auth__row-go svg { width: 16px; height: 16px; }
.auth__row[aria-disabled='true'] { color: var(--c-muted); cursor: default; }
.auth__row[aria-disabled='true'] .auth__row-icon { color: inherit; }
.auth__row[aria-disabled='true'] .auth__row-go { visibility: hidden; }
.auth__back { display: inline-flex; align-items: center; justify-self: center; gap: 8px; min-height: 44px; margin-top: 4px; padding: 0 12px; border: 0; background: none; color: var(--c-muted); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.auth__back > span { display: grid; transition: translate 0.2s ease; }
.auth__back svg { width: 16px; height: 16px; }
.auth__row:focus-visible, .auth__back:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
@media (hover: hover) {
  .auth__row:not([aria-disabled='true']):hover { background: var(--c-primary); color: #fff; }
  .auth__row:not([aria-disabled='true']):hover > [data-icon] { color: #fff; }
  .auth__back:hover { color: var(--c-link, var(--c-primary)); }
  .auth__back:hover > span { translate: -3px 0; }
}
@media (min-width: 768px) {
  .auth__row { min-height: 64px; font-size: 17px; }
  .auth__row svg { width: 22px; height: 22px; }
  .auth__row-go svg { width: 18px; height: 18px; }
  .auth__back { font-size: 16px; }
}
@media (max-width: 767px) {
  .auth__help { margin-top: 0; }
  .auth__row { min-height: 52px; padding: 8px 14px; border-radius: 10px; font-size: 14px; }
  .auth__back { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .auth__back > span, .auth__row { transition: none; }
}

/* ---------- Бесплатный тест: свои выпадающие списки вместо системных ---------- */
#test-dialog .test-sel { min-width: 0; transition: background-color 0.2s ease, box-shadow 0.2s ease; }
#test-dialog .test-sel::after { content: none; }
#test-dialog .test-sel .dd { padding: 10px 16px; }
#test-dialog .test-sel .quickbuy__label { display: block; margin: 0; color: var(--c-muted); font-size: 12px; line-height: 16px; }
#test-dialog .test-sel .dd__button { min-height: 26px; margin: 2px 0 0; color: var(--c-ink-text, var(--c-ink)); font-size: 16px; font-weight: 600; line-height: 1.3; cursor: pointer; }
#test-dialog .test-sel .dd__button::after { position: absolute; inset: 0; width: auto; height: auto; background: none; mask: none; translate: none; rotate: none; border: 0; }
#test-dialog .test-sel .flag { flex: none; }
#test-dialog .test-sel .dd__chevron { display: grid; color: var(--c-muted); }
#test-dialog .test-sel .dd__chevron svg { width: 18px; height: 18px; }
#test-dialog .test-sel:has(.dd__button[aria-expanded='true']) { box-shadow: inset 0 0 0 2px var(--c-primary); }
#test-dialog .test-sel:has(.dd__button:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 2px; }
#test-dialog .test-sel:has(.dd__button:disabled) { opacity: 0.6; }
#test-dialog .test-sel .dd__button:disabled { cursor: default; }
#test-dialog .test-sel:has(.dd__button:disabled) .dd__chevron { visibility: hidden; }

#test-dialog .test-sel .dd__popup { position: fixed; right: auto; z-index: 40; margin: 0; padding: 8px; transform: none; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface); box-shadow: 0 18px 48px rgb(14 23 38 / 0.18); }
#test-dialog .test-sel .dd__sheet-head { display: none; }
#test-dialog .test-sel .dd__list { display: grid; align-content: start; gap: 2px; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; outline: none; list-style: none; scrollbar-width: thin; }
#test-dialog .test-sel .dd__group { padding: 10px 12px 4px; border: 0; color: var(--c-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
#test-dialog .test-sel .dd__group:first-child { padding-top: 4px; }
#test-dialog .test-sel .dd__option { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--c-ink-text, var(--c-ink)); font-size: 15px; font-weight: 500; cursor: pointer; }
#test-dialog .test-sel .dd__opt-label { flex: 1; min-width: 0; }
#test-dialog .test-sel .dd__option[aria-selected='true'] { background: var(--c-primary-soft); color: var(--c-primary-ink); font-weight: 600; }
#test-dialog .test-sel .dd__option.is-active { background: var(--c-primary); color: #fff; }
#test-dialog .test-sel .dd__option[aria-disabled='true'] { background: none; color: var(--c-muted); cursor: default; }
#test-dialog .test-sel .dd__meta { color: inherit; font-size: 13px; }
#test-dialog .test-sel .dd__meta--off { display: inline-flex; align-items: center; gap: 4px; color: var(--c-muted); }
#test-dialog .test-sel .dd__meta--off svg { width: 14px; height: 14px; }
#test-dialog .test-sel .dd__check { display: grid; color: inherit; }
#test-dialog .test-sel .dd__check svg { width: 18px; height: 18px; }
@media (hover: hover) {
  #test-dialog .test-sel:not(:has(.dd__button:disabled)):hover { background: var(--c-primary-soft); }
  #test-dialog .test-sel .dd__option:not([aria-disabled='true']):hover { background: var(--c-primary); color: #fff; }
}

/* ---------- Бесплатный тест: экран «готов» ---------- */
#test-success:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; padding-top: 4px; text-align: center; }
#test-success .success-icon svg { width: 72px; height: 72px; }
#test-success h3 { margin: 0; text-wrap: balance; }
.test-done { display: grid; justify-self: stretch; margin: 8px 0 0; padding: 4px 20px; border-radius: 12px; background: var(--c-bg-soft); }
.test-done div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; }
.test-done div + div { border-top: 1px solid var(--c-border); }
.test-done dt { color: var(--c-muted); font-size: 15px; }
.test-done dd { margin: 0; color: var(--c-ink-text, var(--c-ink)); font-size: 16px; font-weight: 600; text-align: right; text-wrap: balance; }
#test-success #test-success-text { margin: 0 0 4px; color: var(--c-muted); font-size: 15px; line-height: 1.5; text-wrap: balance; }
#test-success #test-cabinet { display: flex; align-items: center; justify-content: center; margin: 0; text-decoration: none; }
#test-success .btn.test-done__buy { margin: 0; border: 0; background: var(--c-primary-soft); color: var(--c-primary-ink); }
html[data-theme='dark'] #test-success .btn.test-done__buy { background: #26344c; color: #fff; }
@media (hover: hover) {
  #test-success .btn.test-done__buy:hover, html[data-theme='dark'] #test-success .btn.test-done__buy:hover { background: var(--c-primary); color: #fff; }
}
@media (max-width: 767px) {
  #test-success:not([hidden]) { gap: 10px; padding: 0 20px calc(20px + env(safe-area-inset-bottom)); }
  #test-success .success-icon svg { width: 56px; height: 56px; }
  #test-success h3 { font-size: 22px; }
  .test-done { margin-top: 4px; padding: 2px 14px; border-radius: 10px; }
  .test-done div { padding: 12px 0; }
  .test-done dt { font-size: 14px; }
  .test-done dd { font-size: 14px; }
  #test-success .btn { min-height: 48px; border-radius: 10px; font-size: 16px; }
  #test-dialog .test-sel .dd { padding: 8px 14px; }
  #test-dialog .test-sel .dd__button { font-size: 14px; }
}

/* воздух внизу окна теста: поля → подпись о доступе → кнопка; между разделами тоже свободнее */
#test-dialog .test .test__field + .test__field { margin-top: 12px; }
#test-dialog .test .test__note { margin: 16px 0 8px; }
@media (max-width: 767px) {
  #test-dialog .test .test__field + .test__field { margin-top: 4px; }
  #test-dialog .test .test__note { margin: 8px 0 4px; }
}
@media (max-width: 767px) {
  #test-dialog .test-sel .dd__popup { top: auto; right: 0; bottom: 0; left: 0; width: auto; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); border: 0; border-radius: 16px 16px 0 0; box-shadow: none; }
  #test-dialog .test-sel .dd__sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 8px 12px; color: var(--c-ink-text, var(--c-ink)); font-size: 17px; font-weight: 700; }
  #test-dialog .test-sel .dd__sheet-head .icon-btn { background: var(--c-bg-soft); color: inherit; }
  #test-dialog .test-sel .dd__list { max-height: 55svh; }
  #test-dialog .test-sel .dd__option { min-height: 48px; }
}
#test-dialog .test-sel .dd__popup { inset: auto; width: auto; height: fit-content; overflow: visible; color: var(--c-text); }
@media (max-width: 767px) { #test-dialog .test-sel .dd__popup { inset: auto 0 0 0; width: 100%; max-width: 100%; max-height: none; margin: 0; } }
@media (max-width: 767px) {
  #test-dialog .test-sel .dd__popup { background: var(--c-surface); animation: none; transform: none; translate: none; }
  #test-dialog .test-sel .dd__popup::backdrop { background: rgb(14 23 38 / 0.45); }
}

/* «Стать партнёром»: при наведении не чернеет, а становится белой обводкой */
@media (min-width: 768px) and (hover: hover) {
  html body #partner .btn.pbanner__btn.pbanner__btn:hover { border-color: transparent; background: transparent; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.55); color: #fff; }
}

/* «Отзывы»: кнопка осталась одна — главная, зелёная */
html body #reviews .reviews__actions .btn.btn--primary:not(#_) { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
@media (hover: hover) { html body #reviews .reviews__actions .btn.btn--primary:not(#_):hover { background: var(--c-primary-hover, #278336); border-color: var(--c-primary-hover, #278336); color: #fff; } }
html body #reviews .reviews__actions .btn.btn--primary:not(#_) .reviews__bonus { background: #fff; color: var(--c-primary); }
