/* ============================================
   vpnsf.ru - основные стили
   Палитра: #FFFFFF #B9B9B9 #000000 #565452
   Шрифт: SF Pro Rounded
   ============================================ */

:root {
  --white: #ffffff;
  --gray: #b9b9b9;
  --black: #000000;
  --blue: #565452;
  --blue-dark: #3A3836;
  --bg-soft: #F6F5F4;
  --radius: 20px;
  --radius-sm: 14px;
  --max-width: 1160px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --shadow-blue: 0 16px 40px rgba(86, 84, 82, 0.28);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration: none;
  color: inherit;
}

img,
svg {
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--bg-soft);
  color: var(--black);
}

/* Кнопки в шапке — одного размера */
.nav .btn {
  min-width: 152px;
}

.btn-ghost:hover {
  background: #ebedf0;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 38px;
  font-size: 18px;
}

/* ---------- Хедер ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Прогрессивный edge-blur: сильный у верха, плавно затухает книзу */
.header__blur {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(100% + 36px);
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.72) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
}

/* Второй слой блюра - усиливает прогрессию у верхней кромки */
.header__blur::after {
  content: '';
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 76%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 76%);
}

.header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  /* Логотип — ссылка на главную, поэтому тоже 44px по высоте */
  min-height: 44px;
  align-self: center;
}

.logo__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.logo__mark img,
.logo__mark svg {
  width: 100%;
  height: 100%;
}

.logo b {
  color: var(--black);
  font-weight: 700;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo__tag {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0;
  color: var(--gray);
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav__links {
  display: flex;
  gap: 30px;
}

.nav__links a {
  font-weight: 500;
  font-size: 16px;
  color: #333;
  transition: color 0.15s ease;
}

.nav__links a:hover {
  color: var(--blue);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  /* 44×44 — минимальный тач-таргет; отрицательный margin держит иконку у края */
  width: 44px;
  height: 44px;
  padding: 0;
  margin-right: -10px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Бургер → крестик */
.nav.open .nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.open .nav__toggle span:nth-child(2) {
  opacity: 0;
}

.nav.open .nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Секции ---------- */
.section {
  padding: 100px 0;
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
  background: rgba(86, 84, 82, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section__title {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section__subtitle {
  margin-top: 16px;
  font-size: 18px;
  color: #5a5a5a;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 80px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 50px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  color: #444;
  background: var(--bg-soft);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #23c16b;
  box-shadow: 0 0 0 4px rgba(35, 193, 107, 0.18);
}

.hero__title {
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero__title .accent {
  color: var(--blue);
}

.hero__text {
  margin-top: 22px;
  font-size: 19px;
  color: #4f4f4f;
  max-width: 480px;
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__stats {
  margin-top: 46px;
  display: flex;
  gap: 40px;
}

.hero__stat b {
  display: block;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.hero__stat span {
  font-size: 14px;
  color: var(--gray);
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}

.hero__glow {
  position: absolute;
  inset: 12%;
  background: radial-gradient(circle, rgba(86, 84, 82, 0.35), transparent 62%);
  filter: blur(30px);
}

.hero__globe {
  position: relative;
  width: 78%;
  max-width: 420px;
  animation: float 6s ease-in-out infinite;
}

.hero__globe img,
.hero__globe svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(86, 84, 82, 0.25));
  overflow: visible;
}

/* Кликабельные сегменты глобуса - улетают за экран */
.globe-piece {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.15s ease;
}

.globe-piece:hover {
  opacity: 0.8;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Логотипы-полоска ---------- */
.marquee {
  padding: 34px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.marquee__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--gray);
  font-weight: 600;
  font-size: 18px;
}

.marquee__row span {
  opacity: 0.75;
}

/* ---------- Фичи ---------- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.feature__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(86, 84, 82, 0.1);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.feature__icon svg {
  width: 28px;
  height: 28px;
}

.feature h3 {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.feature p {
  font-size: 16px;
  color: #5a5a5a;
}

/* ---------- Тарифы ---------- */
.plans__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.plan--featured {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.plan__tag {
  position: absolute;
  top: 22px;
  right: 22px;
  font-weight: 600;
  font-size: 12px;
  color: var(--white);
  background: var(--blue);
  padding: 5px 12px;
  border-radius: 999px;
}

.plan__name {
  font-weight: 600;
  font-size: 20px;
}

.plan__desc {
  margin-top: 6px;
  font-size: 15px;
  color: #6a6a6a;
}

.plan--featured .plan__desc {
  color: var(--gray);
}

.plan__price {
  margin: 26px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan__price b {
  font-weight: 700;
  font-size: 46px;
  letter-spacing: -0.03em;
}

.plan__price span {
  color: var(--gray);
  font-size: 16px;
}

.plan__note {
  font-size: 14px;
  color: #6a6a6a;
  margin-bottom: 26px;
}

.plan--featured .plan__note {
  color: var(--gray);
}

.plan__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.plan__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.plan__list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.plan--featured .plan__list svg {
  color: #A6A3A0;
}

.plan .btn {
  width: 100%;
}

.plan--featured .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.plan--featured .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---------- Как работает ---------- */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

.step {
  text-align: left;
}

.step__num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 20px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.step h3 {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 8px;
}

.step p {
  color: #5a5a5a;
  font-size: 16px;
}

/* ---------- CTA-баннер ---------- */
.cta {
  padding: 80px 0;
}

.cta__box {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  border-radius: 32px;
  padding: 70px 40px;
  text-align: center;
  color: var(--white);
}

.cta__box::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  right: -120px;
  top: -180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 60%);
}

.cta__box h2 {
  position: relative;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.cta__box p {
  position: relative;
  margin: 16px auto 32px;
  max-width: 520px;
  font-size: 18px;
  opacity: 0.9;
}

.cta__box .btn {
  position: relative;
  background: #ffffff;
  color: #1B1A19;
}

.cta__box .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq__q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 19px;
  color: var(--black);
  text-align: left;
  padding: 26px 40px 26px 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq__q::after {
  content: '+';
  font-weight: 500;
  font-size: 28px;
  color: var(--blue);
  transition: transform 0.25s ease;
}

.faq__item.open .faq__q::after {
  transform: rotate(45deg);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq__a p {
  padding: 0 0 26px;
  color: #5a5a5a;
  font-size: 16px;
}

/* ---------- Футер ---------- */
.footer {
  background: var(--bg-soft);
  padding: 70px 0 34px;
  margin-top: 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 40px;
}

.footer__about {
  max-width: 300px;
}

.footer__about p {
  margin-top: 16px;
  color: #6a6a6a;
  font-size: 15px;
}

.footer__col h4 {
  font-weight: 600;
  font-size: 15px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.footer__col a {
  display: block;
  color: #333;
  font-size: 16px;
  margin-bottom: 12px;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.footer__col a:hover {
  color: var(--blue);
}

.footer__bottom {
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--gray);
  font-size: 14px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  /* Ссылки футера: 24px строка → 44px тач-таргет без роста общей высоты */
  .footer__col a {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 0;
  }

  /* Ссылки и кнопки уезжают в выпадающее меню одним блоком */
  .nav__menu { display: none; }
  .nav__toggle { display: flex; }

  .nav.open .nav__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 14px 24px calc(20px + env(safe-area-inset-bottom));
    gap: 14px;
    box-shadow: var(--shadow);
    border-bottom: 1px solid currentColor;
    border-bottom-color: rgba(128, 128, 128, 0.18);
    /* Меню не должно уезжать за экран на низких телефонах в альбомной ориентации */
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav.open .nav__links {
    flex-direction: column;
    gap: 2px;
  }

  /* Строки списка ростом 44px — попадаем пальцем без промаха */
  .nav.open .nav__links a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .nav.open .nav__menu .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta__box { padding: 50px 24px; }
}

/* ---------- Анимация появления ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__globe { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Тарифы: капсулы + одна карточка ---------- */
.plan-picker {
  max-width: 760px;
  margin: 0 auto;
}

.plan-switch {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.plan-switch__opt {
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.plan-switch__opt:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}

.plan-switch__opt.is-active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: var(--shadow-blue);
}

/* Центральная «Бесплатно» - выделена синей обводкой всегда */
.plan-switch__opt--free {
  color: var(--blue);
  border-color: var(--blue);
}

.plan-switch__save {
  font-weight: 600;
  font-size: 12px;
  color: var(--blue);
  background: rgba(86, 84, 82, 0.12);
  padding: 2px 9px;
  border-radius: 999px;
}

.plan-switch__opt.is-active .plan-switch__save {
  color: var(--white);
  background: rgba(255, 255, 255, 0.25);
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(86, 84, 82, 0.12);
}

.plan-card__tag {
  position: absolute;
  top: 24px;
  right: 24px;
  font-weight: 600;
  font-size: 12px;
  color: var(--white);
  background: var(--blue);
  padding: 5px 12px;
  border-radius: 999px;
}

.plan-card__tag:empty {
  display: none;
}

.plan-card__name {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.plan-card__desc {
  margin-top: 6px;
  font-size: 15px;
  color: #6a6a6a;
}

.plan-card__price {
  margin: 24px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-card__price b {
  font-weight: 700;
  font-size: 48px;
  letter-spacing: -0.03em;
}

.plan-card__price span {
  color: var(--gray);
  font-size: 16px;
}

.plan-card__note {
  font-size: 14px;
  color: #6a6a6a;
  margin-bottom: 26px;
}

.plan-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.plan-card__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.plan-card__list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.plan-card__btn {
  width: 100%;
  margin-top: auto;
}

.plan-card__trial {
  width: 100%;
  margin-top: 12px;
  background: rgba(86, 84, 82, 0.1);
  color: var(--blue);
}

.plan-card__trial:hover {
  background: rgba(86, 84, 82, 0.18);
  transform: translateY(-2px);
}

/* ---------- Тарифы: сетка ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.plan-grid .plan-card {
  margin: 0;
  max-width: none;
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.plan-grid .plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Выделение выбранного тарифа - только hover-свечение, без постоянной обводки */

/* 920, а не 900: между 901 и 920 карточка тарифа в 4 колонки сжимается до ~198px,
   что мало для цены в 36px. Сознательно расходится с брейкпоинтом меню. */
@media (max-width: 920px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .plan-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

/* ---------- Эффекты для тарифов: ClickSpark + BorderGlow (порт React Bits) ---------- */
#plans {
  position: relative;
}

/* Канвас с искрами поверх секции, клики пропускает */
.click-spark-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

/* BorderGlow: карточка со свечением у краёв (тарифы и «Возможности») */
.glow-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 20;
  --color-sensitivity: 40;
  --cone-spread: 25;
  --glow-padding: 26px;
  position: relative;
  isolation: isolate;
}

/* Цветная градиентная рамка, следующая за курсором (конусная маска) */
.glow-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  border: 2px solid transparent;
  border-radius: calc(var(--radius) + 2px);
  pointer-events: none;
  background:
    linear-gradient(var(--white) 0 100%) padding-box,
    radial-gradient(at 80% 55%, #565452 0px, transparent 50%) border-box,
    radial-gradient(at 8% 6%, #D5D3D1 0px, transparent 50%) border-box,
    radial-gradient(at 41% 38%, #A6A3A0 0px, transparent 50%) border-box,
    radial-gradient(at 86% 85%, #D5D3D1 0px, transparent 50%) border-box,
    linear-gradient(#565452 0 100%) border-box;
  mask-image: conic-gradient(
    from var(--cursor-angle) at center,
    black calc(var(--cone-spread) * 1%),
    transparent calc((var(--cone-spread) + 15) * 1%),
    transparent calc((100 - var(--cone-spread) - 15) * 1%),
    black calc((100 - var(--cone-spread)) * 1%)
  );
  -webkit-mask-image: conic-gradient(
    from var(--cursor-angle) at center,
    black calc(var(--cone-spread) * 1%),
    transparent calc((var(--cone-spread) + 15) * 1%),
    transparent calc((100 - var(--cone-spread) - 15) * 1%),
    black calc((100 - var(--cone-spread)) * 1%)
  );
  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  transition: opacity 0.25s ease-out;
}

/* Внешнее мягкое свечение за пределами карточки */
.glow-card > .edge-light {
  position: absolute;
  inset: calc(var(--glow-padding) * -1);
  z-index: 1;
  border-radius: var(--radius);
  pointer-events: none;
  mask-image: conic-gradient(
    from var(--cursor-angle) at center,
    black 2.5%, transparent 10%, transparent 90%, black 97.5%
  );
  -webkit-mask-image: conic-gradient(
    from var(--cursor-angle) at center,
    black 2.5%, transparent 10%, transparent 90%, black 97.5%
  );
  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  transition: opacity 0.25s ease-out;
}

.glow-card > .edge-light::before {
  content: '';
  position: absolute;
  inset: var(--glow-padding);
  border-radius: var(--radius);
  box-shadow:
    inset 0 0 0 1px hsl(210deg 100% 55% / 80%),
    inset 0 0 3px 0 hsl(210deg 100% 55% / 50%),
    inset 0 0 6px 0 hsl(210deg 100% 55% / 40%),
    inset 0 0 15px 0 hsl(210deg 100% 55% / 30%),
    inset 0 0 25px 2px hsl(210deg 100% 55% / 20%),
    0 0 3px 0 hsl(210deg 100% 55% / 50%),
    0 0 6px 0 hsl(210deg 100% 55% / 40%),
    0 0 15px 0 hsl(210deg 100% 55% / 30%),
    0 0 25px 2px hsl(210deg 100% 55% / 22%),
    0 0 50px 2px hsl(210deg 100% 55% / 14%);
}

/* Вне наведения свечение плавно гаснет */
.glow-card:not(:hover)::before,
.glow-card:not(:hover) > .edge-light {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

/* Свечение показывается только при наведении курсора. На тач-устройствах его
   не увидеть, а inset:-26px вылезает за вьюпорт — отключаем совсем. */
@media (hover: none) {
  .glow-card > .edge-light { display: none; }
}

/* ---------- Dither: дизеринг-волны в hero (порт React Bits) ---------- */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__bg canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Белая вуаль для читаемости текста поверх волн */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.72) 46%, rgba(255, 255, 255, 0.28) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 26%);
}

.hero__grid {
  position: relative;
  z-index: 1;
}

/* ---------- Шаг 2: список приложений ---------- */
.step__apps {
  font-size: 16px;
  color: #5a5a5a;
}

.step__platform {
  font-weight: 600;
  color: var(--black);
  margin-top: 12px;
}

.step__platform:first-child {
  margin-top: 0;
}

.step__apps ul {
  list-style: none;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step__apps a {
  color: var(--blue);
  font-weight: 600;
  white-space: nowrap;
}

.step__apps a:hover {
  text-decoration: underline;
}

.step__link {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 600;
}

.step__link:hover {
  text-decoration: underline;
}

/* ---------- Переключатель языка (круглые флаги) ---------- */
.lang {
  position: relative;
}

.lang__current {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

/* Кружок остаётся 36px, но палец попадает в 44px */
.lang__current::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.lang__current:hover {
  border-color: var(--blue);
  transform: scale(1.08);
}

.lang__current img,
.lang__item img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.lang__menu {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 170px;
  padding: 6px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 60;
}

.lang.open .lang__menu {
  display: flex;
}

.lang__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  text-align: left;
  transition: background 0.15s ease;
}

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

.lang__item.is-active {
  color: var(--blue);
  font-weight: 700;
}

/* ---------- Правовые страницы ---------- */
.legal {
  padding: 60px 0 90px;
}

.legal .container {
  max-width: 820px;
}

.legal__title {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.legal__updated {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 36px;
}

.legal__body h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 10px;
}

.legal__body p {
  color: #333;
}

/* ---------- Флаги в бегущей строке ---------- */
.marquee__flag {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: -3px;
}

/* ---------- Переключатель темы ---------- */
.footer__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  color: var(--black);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

/* Кружок остаётся 36px, но палец попадает в 44px */
.theme-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
}

.theme-toggle:hover {
  border-color: var(--blue);
  transform: scale(1.08);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* ---------- Hero без глобуса: контент по центру ---------- */
.hero__grid {
  grid-template-columns: 1fr;
  justify-items: center;
}

.hero__content {
  max-width: 760px;
  text-align: center;
}

.hero__actions {
  justify-content: center;
}

/* ---------- Тёмная тема ---------- */
html[data-theme="dark"] {
  --white: #141312;
  --black: #F3F2F1;
  --bg-soft: #1D1C1B;
  --gray: #948F8B;
  --blue: #D5D3D1;
  --blue-dark: #EFEEEC;
  --shadow-blue: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .header__blur {
  background: linear-gradient(
    to bottom,
    rgba(20, 19, 18, 0.92) 0%,
    rgba(20, 19, 18, 0.72) 55%,
    rgba(20, 19, 18, 0) 100%
  );
}

[data-theme="dark"] .nav__links a,
[data-theme="dark"] .footer__col a {
  color: #cfd4dc;
}

[data-theme="dark"] .hero__text,
[data-theme="dark"] .legal__body p {
  color: #b3bac4;
}

[data-theme="dark"] .section__subtitle,
[data-theme="dark"] .faq__a p,
[data-theme="dark"] .feature p,
[data-theme="dark"] .step p,
[data-theme="dark"] .step__apps {
  color: #a7aeb9;
}

[data-theme="dark"] .plan-card__desc,
[data-theme="dark"] .plan-card__note,
[data-theme="dark"] .plan__desc,
[data-theme="dark"] .plan__note,
[data-theme="dark"] .footer__about p {
  color: #98a0ab;
}

[data-theme="dark"] .btn-ghost:hover {
  background: #232830;
}

[data-theme="dark"] .feature {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .plan,
[data-theme="dark"] .plan-grid .plan-card,
[data-theme="dark"] .plan-switch__opt {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .faq__item {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .marquee {
  border-top-color: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .footer__bottom {
  border-top-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .lang__menu {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav.open .nav__links {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* ---------- Плашка пробного доступа над тарифами ---------- */
.plans__trial {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto 40px;
  padding: 16px 20px 16px 26px;
  background: var(--white);
  border: 2px dashed var(--blue);
  border-radius: var(--radius);
}

.plans__trial p {
  font-weight: 600;
}

.plans__trial .btn {
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .plans__trial {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Компактные карточки тарифов ---------- */
.plan-grid .plan-card {
  padding: 24px 22px;
}

.plan-grid .plan-card__name {
  font-size: 19px;
}

.plan-grid .plan-card__desc {
  font-size: 14px;
}

.plan-grid .plan-card__price {
  margin: 14px 0 4px;
}

.plan-grid .plan-card__price b {
  font-size: 36px;
}

.plan-grid .plan-card__note {
  margin-bottom: 14px;
}

.plan-grid .plan-card__list {
  gap: 8px;
  margin-bottom: 18px;
}

.plan-grid .plan-card__list li {
  font-size: 14px;
}

.plan-grid .plan-card__tag {
  top: 18px;
  right: 18px;
}

/* ---------- ЛК, вход, оформление подписки ---------- */
.nav__account {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  transition: color 0.15s ease;
}

.nav__account:hover {
  color: var(--blue);
}

.auth__wrap {
  display: grid;
  place-items: center;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.auth-card__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.auth-card__tab {
  flex: 1;
  padding: 10px;
  font: inherit;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--black);
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

.auth-card__tab.is-active {
  background: var(--blue);
  color: #fff;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--black);
  background: var(--bg-soft);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  outline: none;
}

.field input:focus {
  border-color: var(--blue);
}

.auth-card__error {
  color: #e5484d;
  font-size: 14px;
  margin-bottom: 12px;
}

.auth-card__submit {
  width: 100%;
}

.auth-card__hint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--gray);
  text-align: center;
}

.lk__wrap {
  max-width: 860px;
}

.lk__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lk__email {
  color: var(--gray);
  margin: 6px 0 28px;
}

.lk__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.lk-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius);
  padding: 24px;
}

.lk-card h3 {
  margin-bottom: 8px;
}

.lk-card__status {
  color: #5a5a5a;
  font-size: 15px;
}

.lk-card__actions {
  margin-top: 16px;
}

.lk-key {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
}

.lk-key code {
  flex: 1;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: 12px;
  font-size: 13px;
  word-break: break-all;
}

.co-block {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
}

.co-block h3 {
  margin-bottom: 14px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  font: inherit;
  color: var(--black);
  background: var(--bg-soft);
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.tile:hover {
  border-color: rgba(0, 0, 0, 0.12);
}

.tile.is-active {
  border-color: var(--blue);
}

.tile b {
  font-weight: 600;
}

.tile span {
  font-size: 13px;
  color: var(--gray);
}

.tile--pay {
  flex-direction: row;
  justify-content: center;
  gap: 10px;
}

.tile--pay img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 2px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.co-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.co-summary p {
  font-weight: 600;
}

.co-requisites {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0;
}

.co-requisites code {
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: 12px;
  font-size: 14px;
  word-break: break-all;
}

.co-note {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 16px;
}

@media (max-width: 720px) {
  .co-summary {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

[data-theme="dark"] .nav__account {
  color: #cfd4dc;
}

[data-theme="dark"] .auth-card,
[data-theme="dark"] .lk-card,
[data-theme="dark"] .co-block {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .field input {
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .lk-card__status {
  color: #a7aeb9;
}

[data-theme="dark"] .tile:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

/* ---------- Вход/регистрация v2: круглее и наряднее ---------- */
.auth-card {
  max-width: 440px;
  padding: 36px 32px;
  border: none;
  border-radius: 28px;
}

.auth-card__title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-card__subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 20px;
}

.auth-card__tabs {
  background: var(--bg-soft);
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}

.auth-card__tab {
  background: transparent;
  border-radius: 999px;
  padding: 11px;
}

.auth-card__tab.is-active {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}

.field input {
  border-radius: 999px;
  padding: 13px 20px;
}

.field span {
  padding-left: 8px;
}

[data-theme="dark"] .auth-card {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* ---------- Верификация, соцвход, копирование ---------- */
.auth-card__codehint {
  text-align: center;
  font-size: 15px;
  margin-bottom: 16px;
}

.auth-card__devcode {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  background: rgba(86, 84, 82, 0.08);
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 12px;
}

.auth-card__resend {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: none;
  border: none;
  font: inherit;
  font-size: 14px;
  color: var(--gray);
  cursor: pointer;
}

.auth-card__resend:hover {
  color: var(--blue);
}

.auth-social {
  margin-top: 20px;
  text-align: center;
}

.auth-social__label {
  display: block;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 12px;
}

.auth-social__btns {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.social-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow);
}

#tgWidget {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.lk-key {
  position: relative;
}

.copy-btn {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.copy-btn svg {
  width: 20px;
  height: 20px;
}

.copy-btn .ic-check {
  display: none;
}

.copy-btn:hover {
  transform: scale(1.08);
}

.copy-btn.copied {
  background: #23c16b;
}

.copy-btn.copied .ic-copy {
  display: none;
}

.copy-btn.copied .ic-check {
  display: block;
}

.copy-toast {
  position: absolute;
  top: -34px;
  right: 0;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background: var(--black);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.copy-toast.show {
  opacity: 1;
  transform: none;
}

/* ---------- Компактные отступы по всему сайту ---------- */
.section {
  padding: 52px 0;
}

.section__head {
  margin-bottom: 34px;
}

.hero {
  padding: 44px 0 52px;
}

.hero__actions {
  margin-top: 30px;
}

.marquee {
  padding: 22px 0;
}

.cta {
  padding: 44px 0;
}

.cta__box {
  padding: 44px 32px;
}

.footer {
  padding: 44px 0 24px;
  margin-top: 24px;
}

.footer__bottom {
  margin-top: 32px;
  padding-top: 20px;
}

.steps__grid {
  gap: 24px;
}

.features__grid {
  gap: 20px;
}

.plans__trial {
  margin-bottom: 26px;
}

.legal {
  padding: 36px 0 64px;
}

.legal__updated {
  margin-bottom: 24px;
}

.lk {
  padding: 36px 0 64px;
}

.lk__email {
  margin: 4px 0 20px;
}

.auth {
  padding: 44px 0 64px;
}

@media (max-width: 900px) {
  .section {
    padding: 40px 0;
  }
  .hero {
    padding: 28px 0 40px;
  }
}

/* ---------- Анимации входа/ЛК и чекаут v2 ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.auth-card {
  animation: fadeUp 0.45s ease both;
}

.anim {
  animation: fadeUp 0.3s ease;
}

.lk__title,
.lk__email {
  animation: fadeUp 0.4s ease both;
}

.lk-card,
.co-block {
  animation: fadeUp 0.45s ease both;
}

.lk__grid .lk-card:nth-child(2) {
  animation-delay: 0.07s;
}

.lk-card--key {
  animation-delay: 0.14s;
}

.co-block:nth-of-type(2) {
  animation-delay: 0.07s;
}

.co-block:nth-of-type(3) {
  animation-delay: 0.14s;
}

.co-block:nth-of-type(4) {
  animation-delay: 0.21s;
}

/* Кнопки карточек ЛК на одной высоте */
.lk-card {
  display: flex;
  flex-direction: column;
}

.lk-card__actions {
  margin-top: auto;
  padding-top: 16px;
}

/* Чекаут: номера шагов, плитки, итог */
.co-step {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.tile {
  position: relative;
  border-radius: 16px;
  padding: 16px 10px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.tile:hover {
  transform: translateY(-2px);
}

.tile.is-active {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);
}

.tile.is-active::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
}

.co-summary__label {
  font-weight: 600;
}

.co-summary__total {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .auth-card,
  .anim,
  .lk__title,
  .lk__email,
  .lk-card,
  .co-block {
    animation: none;
  }
}

/* Кнопка-ссылка и кнопка-button одной высоты */
.btn {
  line-height: 1.5;
}

/* Платёжные иконки на весь круг */
.tile--pay img {
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 50%;
}

/* ---------- Запомнить меня / Забыли пароль ---------- */
.auth-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -2px 2px 14px;
  font-size: 14px;
}

.auth-card__remember {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #5a5a5a;
  cursor: pointer;
}

.auth-card__remember input {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
}

.auth-card__forgot {
  background: none;
  border: none;
  font: inherit;
  font-size: 14px;
  color: var(--blue);
  cursor: pointer;
  padding: 0;
}

.auth-card__forgot:hover {
  text-decoration: underline;
}

[data-theme="dark"] .auth-card__remember {
  color: #a7aeb9;
}

/* ---------- Чекаут: компактнее и круглее ---------- */
.co-block {
  padding: 16px 20px;
  margin-bottom: 12px;
  border-radius: 24px;
}

.co-block h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.co-step {
  width: 24px;
  height: 24px;
  font-size: 13px;
  margin-right: 8px;
}

.tiles {
  gap: 8px;
}

.tile {
  padding: 12px 8px;
  border-radius: 18px;
}

.tile b {
  font-size: 15px;
}

.tile span {
  font-size: 12px;
}

.tile--pay img {
  width: 30px;
  height: 30px;
}

.co-summary__total {
  font-size: 24px;
}

.co-requisites {
  margin: 10px 0;
}

.co-requisites code {
  padding: 10px 14px;
}

.lk .lk__title {
  font-size: clamp(24px, 3.2vw, 32px);
}

.lk__email {
  margin: 4px 0 16px;
}

/* Кнопка «Подключить в один клик» */
.lk-oneclick {
  margin-bottom: 12px;
}

/* ---------- Красивый чекбокс «Запомнить меня» ---------- */
.auth-card__remember {
  position: relative;
  user-select: none;
}

.auth-card__remember input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.checkbox {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  border: 2px solid rgba(0, 0, 0, 0.18);
  border-radius: 7px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.checkbox svg {
  width: 12px;
  height: 10px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  transition: stroke-dashoffset 0.25s ease 0.05s;
}

.auth-card__remember input:checked + .checkbox {
  background: var(--blue);
  border-color: var(--blue);
  animation: checkbox-pop 0.3s ease;
}

.auth-card__remember input:checked + .checkbox svg {
  stroke-dashoffset: 0;
}

.auth-card__remember:hover .checkbox {
  border-color: var(--blue);
}

.auth-card__remember:active .checkbox {
  transform: scale(0.88);
}

@keyframes checkbox-pop {
  0% {
    transform: scale(0.8);
  }
  60% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

[data-theme="dark"] .checkbox {
  border-color: rgba(255, 255, 255, 0.25);
}

/* Hero-текст строго по центру */
.hero__content .hero__text {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Чекаут: тарифы и способы оплаты (по образцу) ---------- */
.pm__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pm__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.pm__list--plans {
  grid-template-columns: repeat(4, 1fr);
}

.pm__method {
  display: flex;
}

.pm__button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 98px;
  padding: 14px 10px 12px;
  border-radius: 18px;
}

.pm__country {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
}

.pm__country img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm__images {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pm__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 32px;
  max-width: 72px;
}

.pm__image img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.pm__name {
  font-weight: 600;
  font-size: 14px;
}

.pm__subtitle {
  font-size: 12px;
  color: var(--gray);
}

.pm__notation {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--gray);
  text-align: center;
}

.pm__terms {
  color: var(--blue);
}

/* тарифы */
.pm__plan-name {
  font-weight: 600;
  font-size: 14px;
}

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

.pm__off {
  position: absolute;
  top: 8px;
  left: 8px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: #e5484d;
  border-radius: 999px;
  padding: 3px 7px;
}

/* выбранная плитка */
.tile.is-active {
  background: color-mix(in srgb, var(--blue) 7%, var(--bg-soft));
}

.tile.is-active::after {
  display: grid;
  place-items: center;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  font-size: 11px;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

@media (max-width: 720px) {
  .pm__list--plans {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* доводка: цвета названий в плитках */
.pm__name,
.pm__plan-name,
.pm__plan-price {
  color: var(--black);
}

/* перебиваем базовый .tile span */
.tile .pm__name,
.tile .pm__plan-name {
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
}

.tile .pm__plan-price {
  color: var(--black);
  font-size: 22px;
  font-weight: 700;
}

.tile .pm__subtitle {
  font-size: 12px;
  color: var(--gray);
}

/* ---------- Экран оплаты: order id + таймер ---------- */
.co-payhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 8px;
}

.co-order,
.co-timer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  background: var(--bg-soft);
  border: none;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  color: var(--black);
}

.co-order {
  cursor: pointer;
}

.co-order > span {
  color: var(--gray);
}

.co-order svg,
.co-timer svg {
  width: 16px;
  height: 16px;
  color: var(--gray);
  flex: none;
}

.co-order.is-copied svg {
  color: #23c16b;
}

.co-timer {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.co-timer.is-expired,
.co-timer.is-expired svg {
  color: #e5484d;
}

/* флаг справа, галочка выбора у способов оплаты — слева */
#methodTiles .tile.is-active::after {
  left: 8px;
  right: auto;
}

/* заголовок чекаута: order id + таймер справа */
.lk__titlerow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.lk__titlerow .co-payhead {
  margin: 0 0 16px;
}

@media (max-width: 720px) {
  .lk__titlerow {
    align-items: flex-start;
  }
}

/* hidden-атрибут сильнее display:flex */
.co-payhead[hidden] {
  display: none;
}

/* Адаптив: не допускаем горизонтальный скролл на мобильных.
   Именно clip, а не hidden: hidden делает body скролл-контейнером
   и ломает position:sticky у шапки. clip обрезает, не создавая контейнер. */
html { overflow-x: clip; }
body { max-width: 100%; overflow-x: clip; }
.cta__box { overflow: hidden; }

/* ============================================================
   Sota-style дополнения: плашка «Работает в РФ», секция устройств,
   шаги «как начать»
   ============================================================ */

:root { --green: #12a150; }
html[data-theme="dark"] { --green: #35d07a; }

/* --- Плашка «Работает в РФ, проверено ...» в hero --- */
.hero__verified {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--green);
}
.hero__verified svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.hero__verified span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
@media (min-width: 768px) {
  .hero__verified span { font-size: 16px; }
}

/* --- Шаги «Начните за 3 шага» ---
   База (телефон, <768): список строк — номер слева, текст справа (образец Sota).
   От 768: три колонки в ряд, номер сверху. */
.steps--sota {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.stepx {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.stepx__num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-blue);
}
.stepx__text {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--black);
  min-width: 0;
}
/* Планшет */
@media (min-width: 768px) {
  .steps--sota {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 100%;
  }
  .stepx {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .stepx__num { width: 56px; height: 56px; border-radius: 18px; font-size: 32px; }
  .stepx__text { font-size: 16px; max-width: 280px; }
}
/* Десктоп */
@media (min-width: 1024px) {
  .steps--sota { gap: 32px; }
  .stepx { gap: 18px; }
  .stepx__num { width: 64px; height: 64px; border-radius: 20px; font-size: 36px; }
  .stepx__text { font-size: 17px; max-width: 320px; }
}

/* --- Секция «Для всех ваших устройств» --- */
.devices {
  background: linear-gradient(135deg, #A6A3A0 0%, var(--blue) 48%, var(--blue-dark) 100%);
  border-radius: 32px;
  padding: 48px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-shadow: var(--shadow-blue);
}
.devices__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.devices__subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 500;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
}
.devices__list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.device {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}
.device:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}
.device svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .devices { padding: 32px 24px; border-radius: 24px; }
}


/* --- Тёмная тема: акцентные блоки остаются тёмными, кнопки на них белые --- */
[data-theme="dark"] .cta__box {
  background: #2B2926;
  color: #F3F2F1;
}
[data-theme="dark"] .cta__box .btn {
  background: #ffffff;
  color: #1B1A19;
}
[data-theme="dark"] .devices {
  background: linear-gradient(135deg, #3A3835 0%, #2B2926 48%, #201F1D 100%);
  color: #F3F2F1;
}

/* Тёмная тема: квадрат шага светлый (акцент инвертирован) — цифра тёмная */
[data-theme="dark"] .stepx__num {
  color: #1B1A19;
}
