

:root {
  /* Бренд — используется акцентно */
  --brand: #4ec392;
  --brand-bright: #6ee0a9;
  --brand-deep: #26a96b;
  --brand-rgb: 78, 195, 146;

  /* Тёмная база */
  --bg: #050709;
  --bg-2: #0a0e13;
  --bg-3: #11161d;
  --bg-card: #0f141b;
  --bg-card-2: #141a23;

  /* Поверхности — нейтральные тёмные */
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --surface-3: rgba(255, 255, 255, 0.07);

  /* Границы — холодные нейтральные */
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.12);
  --border-brand: rgba(78, 195, 146, 0.3);

  /* Текст */
  --text: #f1f5f9;
  --text-dim: #94a3b8;
  --text-mute: #64748b;

  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 10px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, .5);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .55);
  --shadow-glow: 0 12px 40px rgba(78, 195, 146, .18);

  --container: 1240px;

  --t-fast: .2s ease;
  --t-mid: .35s cubic-bezier(.2,.8,.2,1);
}

/* =================== Reset =================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* fallback для старых iOS Safari */
  overflow-x: clip;   /* современные браузеры — без скролл-контекста */
}
body {
  position: relative; /* containing block для абсолютов и корректного клиппинга */
  font-family: 'Saira', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Дополнительная защита: главный контейнер тоже клипает по горизонтали,
   чтобы декоративные элементы (свечения, карусель) не давали body распухнуть */
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: 'Saira', sans-serif; line-height: 1.15; letter-spacing: -.01em; }

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

/* =================== Background decor (минимально, только намёк) =================== */
.bg-decor {
  position: fixed; inset: 0;
  z-index: -1; pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(78, 195, 146, .08), transparent 60%),
    radial-gradient(700px 500px at -10% 40%, rgba(78, 195, 146, .05), transparent 60%),
    linear-gradient(180deg, #050709 0%, #030506 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .12;
  animation: floatY 18s ease-in-out infinite;
}
.blob-1 { width: 460px; height: 460px; top: -120px; right: -80px; background: radial-gradient(circle, #4ec392, transparent 70%); }
.blob-2 { width: 380px; height: 380px; top: 60%; left: -120px; background: radial-gradient(circle, #2c5fcf, transparent 70%); animation-delay: -6s; opacity: .08; }
.blob-3 { width: 280px; height: 280px; top: 120%; right: 15%; background: radial-gradient(circle, #6ee0a9, transparent 70%); opacity: .08; animation-delay: -10s; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at top, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top, #000 20%, transparent 70%);
}
@keyframes floatY {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-30px) translateX(20px); }
}

/* =================== Buttons =================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  border: 1px solid transparent;
  white-space: nowrap;
  user-select: none;
  min-height: 44px;
}
.btn-sm { padding: 9px 14px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-bright) 0%, var(--brand-deep) 100%);
  color: #052015;
  box-shadow: 0 8px 24px rgba(78, 195, 146, .25), inset 0 -2px 0 rgba(0,0,0,.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(78, 195, 146, .4); }

.btn-outline {
  border: 1px solid var(--border-2);
  color: var(--text);
  background: var(--surface);
}
.btn-outline:hover { border-color: var(--brand); background: rgba(78, 195, 146, .08); transform: translateY(-2px); color: var(--brand-bright); }

.btn-dark {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-dark:hover { border-color: var(--border-2); background: var(--bg-3); transform: translateY(-2px); }

.btn-ghost { color: var(--text-dim); }
.btn-ghost:hover { color: var(--brand-bright); background: var(--surface); }

/* =================== Header =================== */
.header {
  position: sticky; top: 0; z-index: 100;
  padding: 14px 0;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(5, 7, 9, .6);
  border-bottom: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast), padding var(--t-fast);
}
.header.scrolled {
  background: rgba(5, 7, 9, .9);
  border-bottom-color: var(--border);
  padding: 10px 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.01em;
}
.logo img { height: 36px; width: auto; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 8px;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.active { color: var(--brand-bright); }
.nav-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: .75;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.nav-link:hover .nav-ico { opacity: 1; }
.nav-link.active .nav-ico { opacity: 1; transform: scale(1.05); }

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

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-dim);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  min-width: 32px;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: linear-gradient(135deg, var(--brand-bright), var(--brand));
  color: #052015;
  box-shadow: 0 4px 12px rgba(78, 195, 146, .25);
}

.burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
}
.burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--t-fast); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =================== Hero =================== */
.hero { padding: 80px 0 60px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 50px;
  align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.pill-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 0 4px rgba(110, 224, 169, .2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(110, 224, 169, .25); }
  50% { box-shadow: 0 0 0 10px rgba(110, 224, 169, 0); }
}

.hero-title {
  font-size: clamp(34px, 5.6vw, 68px);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 18px;
  color: var(--text);
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.grad {
  background: linear-gradient(135deg, #6ee0a9 0%, #4ec392 50%, #26a96b 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-trust { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.trust-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.trust-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-brand);
  background: var(--surface-2);
}
.trust-item img { height: 28px; width: auto; }
.trust-rate strong { font-size: 14px; font-weight: 700; color: var(--text); display: block; line-height: 1.1; }
.trust-rate small { font-size: 11px; color: var(--text-mute); }

/* hero visual — реальный баннер приложения */
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: visible;
}
.hero-banner-wrap {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin-right: -8%;
}
.hero-banner-wrap::before {
  content: '';
  position: absolute;
  inset: 5% 10%;
  background: radial-gradient(circle at center, rgba(78, 195, 146, .35), transparent 60%);
  filter: blur(50px);
  z-index: -1;
}
.hero-banner-wrap img {
  width: 100%;
  height: auto;
  mix-blend-mode: lighten;
  animation: heroFloat 6s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  animation: floatCard 5s ease-in-out infinite;
  z-index: 2;
}
.fc-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(78, 195, 146, .12);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-bright);
}
.fc-title { font-weight: 700; font-size: 14px; color: var(--text); }
.fc-sub { font-size: 11px; color: var(--text-mute); }
.fc-flag { display: inline-flex; gap: 4px; align-items: center; }
.fc-flag .flag-icon {
  width: 22px; height: 22px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .4));
  margin-left: -6px;
}
.fc-flag .flag-icon:first-child { margin-left: 0; }

.card-shield { top: 10%; left: -2%; }
.card-speed { bottom: 18%; right: -2%; animation-delay: -2s; }
.card-flag { bottom: 4%; left: 8%; animation-delay: -3.5s; }

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

/* =================== Stats =================== */
.stats { padding: 40px 0 60px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  position: relative;
  padding: 22px 24px 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-mid), border-color var(--t-mid);
}

/* Декоративные подсветки и градиентная рамка при hover */
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(78, 195, 146, .55), transparent 40%, transparent 60%, rgba(78, 195, 146, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t-mid);
  pointer-events: none;
  z-index: 1;
}
.stat-card::after {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  top: -80px; right: -80px;
  background: radial-gradient(circle, rgba(78, 195, 146, .18), transparent 60%);
  filter: blur(20px);
  opacity: 0;
  transition: opacity var(--t-mid);
  pointer-events: none;
  z-index: 0;
}
.stat-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover::after { opacity: 1; }
.stat-card:hover .stat-watermark { opacity: .14; transform: translate(-4px, -4px) rotate(-4deg); }
.stat-card.in .stat-bar span { width: var(--p); }

/* Watermark — большая полупрозрачная иконка справа сзади */
.stat-watermark {
  position: absolute;
  top: -10px; right: -18px;
  width: 130px; height: 130px;
  color: var(--brand-bright);
  opacity: .07;
  z-index: 0;
  pointer-events: none;
  transition: opacity var(--t-mid), transform var(--t-mid);
}
.stat-watermark svg { width: 100%; height: 100%; }

/* Топ-ряд: pill с категорией */
.stat-top {
  position: relative; z-index: 2;
  display: flex; justify-content: flex-start;
}
.stat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(78, 195, 146, .08);
  border: 1px solid var(--border-brand);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brand-bright);
}
.stat-pill .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 6px var(--brand-bright);
}

/* Большое число с градиентом */
.stat-num {
  position: relative; z-index: 2;
  font-size: clamp(36px, 3.8vw, 52px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin-top: 2px;
  background: linear-gradient(180deg, #ffffff 0%, #c7e7d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-num .plus {
  background: linear-gradient(180deg, var(--brand-bright), var(--brand-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-right: -2px;
}
.stat-num .stat-unit {
  font-size: .5em;
  font-weight: 700;
  background: linear-gradient(180deg, var(--brand-bright), var(--brand-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: -2px;
}
.stat-num .stat-suffix {
  font-size: .35em;
  font-weight: 700;
  color: var(--text-dim);
  background: none;
  -webkit-text-fill-color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-left: 8px;
  position: relative;
  top: -.18em;
}

/* Карточка-акцент (выделенная, для второй с +31.5k) */
.stat-card.accent {
  background:
    linear-gradient(180deg, rgba(78, 195, 146, .08), transparent 50%),
    var(--bg-card-2);
  border-color: var(--border-brand);
}
.stat-card.accent .stat-watermark { opacity: .1; }

.stat-label {
  position: relative; z-index: 2;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
}

/* Прогресс-бар внизу */
.stat-bar {
  position: relative; z-index: 2;
  margin-top: auto;
  padding-top: 4px;
  height: 3px;
  background: rgba(255, 255, 255, .06);
  border-radius: 999px;
  overflow: hidden;
}
.stat-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand-bright));
  border-radius: 999px;
  transition: width 1.4s cubic-bezier(.2,.8,.2,1) .2s;
  box-shadow: 0 0 10px rgba(78, 195, 146, .5);
}

/* =================== Section common =================== */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .15em;
  color: var(--brand-bright);
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(78, 195, 146, .08);
  border: 1px solid var(--border-brand);
}
.section-title {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 12px;
  color: var(--text);
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.section-sub { color: var(--text-dim); font-size: 16px; }

/* =================== Features =================== */
.features { padding: 80px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  position: relative;
  padding: 30px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .015) 0%, transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition:
    transform .35s cubic-bezier(.2,.8,.2,1),
    border-color .25s ease,
    box-shadow .35s ease,
    background .25s ease;
  isolation: isolate;
  overflow: hidden;
}
/* Угловое радиальное свечение бренда — появляется на hover */
.feature-card::before {
  content: '';
  position: absolute;
  top: -45%; right: -25%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(78, 195, 146, .14), transparent 60%);
  z-index: -1;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
/* Тонкая градиентная окантовка по краю — gradient-border-glow */
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(78, 195, 146, .45) 0%, transparent 35%, transparent 65%, rgba(78, 195, 146, .25) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(78, 195, 146, .22);
  box-shadow:
    0 22px 40px -22px rgba(0, 0, 0, .65),
    0 0 0 1px rgba(78, 195, 146, .06);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after  { opacity: 1; }

.feat-ico {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(78, 195, 146, .22), rgba(78, 195, 146, .05));
  color: var(--brand-bright);
  margin-bottom: 22px;
  border: 1px solid rgba(78, 195, 146, .28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 4px 12px -2px rgba(0, 0, 0, .25);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
/* Мягкий «глянец» в углу иконки */
.feat-ico::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 28% 22%, rgba(255, 255, 255, .18), transparent 55%);
  pointer-events: none;
}
.feature-card:hover .feat-ico {
  transform: rotate(-6deg) scale(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 10px 24px -6px rgba(78, 195, 146, .35);
}

.feature-card h3 {
  font-family: 'Saira', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.005em;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.55;
}

/* =================== Plans =================== */
.plans { padding: 80px 0; }
.plan-toggle {
  display: inline-flex;
  padding: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-top: 20px;
}
.pt-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  border-radius: 999px;
  transition: var(--t-fast);
  display: inline-flex; align-items: center; gap: 8px;
}
.pt-btn.active {
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  color: #052015;
  box-shadow: 0 4px 14px rgba(78, 195, 146, .3);
}
.pt-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.2);
}
.pt-btn:not(.active) .pt-badge { background: rgba(78, 195, 146, .15); color: var(--brand-bright); }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 50px;
}
.plan-card {
  position: relative;
  padding: 26px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  transition: transform var(--t-mid), border-color var(--t-mid), box-shadow var(--t-mid);
  overflow: hidden;
}
.plan-card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: var(--shadow-md); }

.plan-card.featured {
  border-color: var(--brand);
  background:
    linear-gradient(180deg, rgba(78, 195, 146, .08), transparent 50%),
    var(--bg-card-2);
  box-shadow: var(--shadow-glow);
  transform: scale(1.04);
  z-index: 1;
}
.plan-card.featured:hover { transform: scale(1.05) translateY(-4px); }

.plan-card.lifetime {
  border-color: rgba(255, 184, 77, .35);
  background:
    linear-gradient(180deg, rgba(255, 184, 77, .05), transparent 50%),
    var(--bg-card);
}

.plan-tag {
  position: absolute;
  top: 0; right: 22px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  color: #052015;
  border-radius: 0 0 8px 8px;
}
.plan-tag.tag-gold { background: linear-gradient(135deg, #ffd166, #ff9e3d); color: #2a1700; }

.plan-period {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.plan-price {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  row-gap: 4px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.plan-price .rub { font-size: 22px; margin-top: 8px; margin-right: 4px; color: var(--text-dim); }
.price-value { font-size: 40px; color: var(--text); white-space: nowrap; }
.plan-card.featured .price-value { color: var(--brand-bright); }
.price-old {
  align-self: flex-end;
  margin-left: 10px;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mute);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 90, 95, .85);
  text-decoration-thickness: 2px;
  letter-spacing: 0;
  white-space: nowrap;
}
.plan-permonth { font-size: 13px; color: var(--text-mute); margin-bottom: 22px; min-height: 18px; }
.plan-permonth .dim { color: var(--brand); font-weight: 600; }

.plan-features {
  display: flex; flex-direction: column;
  gap: 10px; margin-bottom: 24px;
  flex: 1;
}
.plan-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-dim);
}
.bullet {
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--brand-bright);
  flex-shrink: 0;
}

/* =================== Protocols & Countries =================== */
.protocols {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.proto-title, .countries-title {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.countries-title { margin-top: 28px; }
.proto-list { display: flex; flex-wrap: wrap; gap: 8px; }
.proto {
  padding: 8px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: var(--t-fast);
}
.proto:hover { background: rgba(78, 195, 146, .12); border-color: var(--border-brand); color: var(--brand-bright); transform: translateY(-2px); }

.countries {
  display: flex; flex-wrap: wrap;
  gap: 10px;
}
.countries .flag-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: block;
  transition: transform var(--t-fast), filter var(--t-fast);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
}
.countries .flag-icon:hover {
  transform: translateY(-3px) scale(1.15);
  filter: drop-shadow(0 4px 10px rgba(78, 195, 146, .35));
}

/* Универсальная круглая флаг-иконка */
.flag-icon {
  display: inline-block;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  vertical-align: middle;
}
.flag-icon[data-country] { cursor: help; }

/* Плавающий тултип названия страны */
.flag-tip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  padding: 6px 10px;
  background: rgba(15, 19, 24, .96);
  color: var(--text);
  border: 1px solid var(--border-brand);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(78, 195, 146, .12);
  opacity: 0;
  transform: translateY(4px) scale(.96);
  transition: opacity .15s ease, transform .15s ease;
  left: 0; top: 0;
}
.flag-tip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* Стрелка (направлена вниз — тултип сверху от флага) */
.flag-tip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: rgba(15, 19, 24, .96);
  border-right: 1px solid var(--border-brand);
  border-bottom: 1px solid var(--border-brand);
}
/* Если тултип снизу от флага — переворачиваем стрелку наверх */
.flag-tip.below::after {
  bottom: auto;
  top: -5px;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid var(--border-brand);
  border-top: 1px solid var(--border-brand);
}

/* Плавающий тултип с описанием протокола (многострочный, шире) */
.proto[data-proto] { cursor: help; }
.proto[data-proto]:focus-visible {
  outline: 2px solid var(--brand-bright);
  outline-offset: 2px;
}
.proto-tip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  padding: 10px 13px;
  background: rgba(15, 19, 24, .97);
  color: var(--text);
  border: 1px solid var(--border-brand);
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .01em;
  max-width: 280px;
  white-space: normal;
  text-align: left;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, .6),
    0 0 0 1px rgba(78, 195, 146, .12);
  opacity: 0;
  transform: translateY(4px) scale(.96);
  transition: opacity .15s ease, transform .15s ease;
  left: 0; top: 0;
}
.proto-tip .proto-tip-name {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-bright);
  font-family: 'Saira', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
}
.proto-tip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.proto-tip::after {
  content: '';
  position: absolute;
  left: var(--arrow-x, 50%);
  bottom: -5px;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: rgba(15, 19, 24, .97);
  border-right: 1px solid var(--border-brand);
  border-bottom: 1px solid var(--border-brand);
}
.proto-tip.below::after {
  bottom: auto;
  top: -5px;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid var(--border-brand);
  border-top: 1px solid var(--border-brand);
}

.proto-note { margin-top: 18px; font-size: 12px; color: var(--text-mute); font-style: italic; }

/* =================== Apps =================== */
.apps { padding: 100px 0; }
.apps-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.apps-text .section-title { text-align: left; }
.apps-text .section-head { text-align: left; margin: 0 0 30px; }
.store-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 540px;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
  text-decoration: none;
  min-height: 64px;
}
.store-btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-brand);
  background: var(--bg-card-2);
}
.store-ico {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.store-ico svg,
.store-ico img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.store-text small {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 2px;
}
.store-text strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Phone mockup в секции "Приложения" ===== */
.apps-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 320px;
  max-width: 100%;
}
.phone-glow {
  position: absolute;
  inset: -8% 0 -4% 0;
  background: radial-gradient(circle at 50% 50%, rgba(78, 195, 146, .35), transparent 60%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

.phone-frame {
  position: relative;
  background: #0a0a0e;
  border-radius: 44px;
  padding: 14px 12px;
  border: 2px solid #1c1f25;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .55),
    inset 0 0 0 1px rgba(255, 255, 255, .04),
    0 0 0 6px #050709;
  aspect-ratio: 9 / 19;
}
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #050505;
  border-radius: 999px;
  z-index: 5;
}

.phone-screen {
  position: relative;
  height: 100%;
  background: linear-gradient(180deg, #0d0d11 0%, #050507 100%);
  border-radius: 32px;
  padding: 56px 16px 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
}

/* iOS-like status bar */
.ph-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  padding: 0 8px 6px;
}
.ph-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
}

/* App header */
.ph-app-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  font-size: 13px;
}
.ph-h-icon {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #cfd4dc;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.ph-avatar { background: rgba(255, 255, 255, .12); }
.ph-crown { display: inline-flex; }
.ph-title {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  letter-spacing: .02em;
}

/* Server info */
.ph-server {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 13px;
}
.ph-flag.flag-icon {
  width: 28px; height: 28px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5));
}
.ph-server-info { flex: 1; min-width: 0; }
.ph-server-info strong { display: block; font-size: 13px; color: #fff; line-height: 1.1; }
.ph-server-info small { font-size: 10px; color: #6e7682; }
.ph-signal {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-bright);
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

/* State row */
.ph-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 0 8px;
  font-size: 12px;
  color: #cfd4dc;
}
.ph-wifi-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(78, 195, 146, .15);
  color: var(--brand-bright);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}
.ph-state-text {
  font-style: normal;
  font-weight: 700;
  color: #ff5a5f;
  transition: color var(--t-fast);
}
.phone-mockup.connecting .ph-state-text { color: #f5b942; }
.phone-mockup.connected .ph-state-text { color: var(--brand-bright); }

/* Power button */
.ph-power-wrap {
  position: relative;
  margin: 12px auto 8px;
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph-power-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: ringSpin 22s linear infinite;
}
.phone-mockup.connecting .ph-power-rings { animation-duration: 4s; }
.phone-mockup.connected .ph-power-rings { animation-duration: 12s; }
@keyframes ringSpin { to { transform: rotate(360deg); } }

/* Тики рисуются JS-ом внутри <svg id="phRings"> */
.ph-tick {
  stroke: rgba(78, 195, 146, .35);
  stroke-width: 2;
  stroke-linecap: round;
  transition: stroke var(--t-mid);
}
.phone-mockup.connecting .ph-tick { stroke: rgba(245, 185, 66, .65); }
.phone-mockup.connected .ph-tick {
  stroke: var(--brand-bright);
  filter: drop-shadow(0 0 4px rgba(78, 195, 146, .8));
}
/* Дуга прогресса в состоянии connecting */
.ph-power-wrap::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: var(--brand-bright);
  border-right-color: var(--brand);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-mid);
}
.phone-mockup.connecting .ph-power-wrap::before {
  opacity: 1;
  animation: arcSpin 1.2s linear infinite;
  filter: drop-shadow(0 0 8px var(--brand-bright));
}
@keyframes arcSpin {
  to { transform: rotate(360deg); }
}
.ph-power-wrap::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 195, 146, .12), transparent 70%);
  pointer-events: none;
}

.ph-power {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1a1d22, #0c0e12);
  border: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  z-index: 2;
  transition: background var(--t-mid), color var(--t-mid), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.ph-power:hover { transform: scale(1.04); }
.ph-power:active { transform: scale(0.96); }
.phone-mockup.connecting .ph-power { color: #f5b942; }
.phone-mockup.connected .ph-power {
  color: #052015;
  background: radial-gradient(circle at 30% 30%, var(--brand-bright), var(--brand-deep));
  border-color: var(--brand-bright);
  box-shadow: 0 0 30px rgba(78, 195, 146, .5);
}
.ph-power-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--brand-bright);
  opacity: 0;
  pointer-events: none;
}
.phone-mockup.connected .ph-power-pulse {
  animation: pwrPulse 2s ease-out infinite;
}
@keyframes pwrPulse {
  0% { opacity: .7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.5); }
}

.ph-timer {
  text-align: center;
  font-family: 'Saira', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .04em;
  color: #fff;
  margin: -4px 0 8px;
  font-variant-numeric: tabular-nums;
}

/* Mini chart */
.ph-chart {
  height: 40px;
  margin: 4px 0 8px;
  opacity: .55;
}
.ph-chart svg { width: 100%; height: 100%; display: block; }
.ph-line {
  transition: stroke-dashoffset 1s ease;
}

/* Speed stats */
.ph-speeds {
  display: flex;
  align-items: stretch;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  margin-bottom: auto;
}
.ph-speed {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
}
.ph-speed-divider { width: 1px; background: rgba(255,255,255,.06); }
.ph-speed-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: #cfd4dc;
}
.ph-speed-arrow {
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}
.ph-speed-arrow.up { background: rgba(78, 195, 146, .15); color: var(--brand-bright); }
.ph-speed-arrow.dn { background: rgba(245, 185, 66, .15); color: #f5b942; }
.ph-speed-value {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ph-speed-value small { font-size: 11px; font-weight: 500; color: #8a93a0; margin-left: 2px; }

/* Tab bar */
.ph-tabs {
  display: flex;
  justify-content: space-between;
  padding: 8px 0 6px;
  margin: 0 -16px -8px;
  background: rgba(0, 0, 0, .3);
}
.ph-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  color: #6e7682;
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px 2px;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}
.ph-tab span { white-space: nowrap; }
.ph-tab.active { color: var(--brand-bright); }
.ph-tab svg { display: block; }

/* Подзаголовок внутри секции "Приложения" — между сетками кнопок */
.apps-subhead {
  margin: 26px 0 14px;
  font-family: 'Saira', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 12px;
}
.apps-subhead::before,
.apps-subhead::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* =================== Reviews =================== */
.reviews { padding: 80px 0; }
.reviews-track-wrap {
  position: relative;
  overflow: hidden;
}
.reviews-track {
  display: flex;
  gap: 20px;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.review-card {
  flex: 0 0 calc((100% - 40px) / 3);
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  gap: 18px;
  min-height: 240px;
  transition: var(--t-mid);
  position: relative;
}
.review-card:hover { border-color: var(--border-2); transform: translateY(-4px); }
.review-source {
  display: flex; justify-content: space-between; align-items: center;
}
.review-source img { height: 22px; width: auto; opacity: .85; }
.review-stars { display: flex; gap: 2px; }
.review-stars svg { width: 14px; height: 14px; fill: #fbbf24; }

.quote {
  font-size: 15px;
  color: var(--text);
  line-height: 1.55;
  flex: 1;
}
.reviewer {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.r-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.r-name { font-weight: 700; font-size: 15px; color: var(--text); }
.r-role { font-size: 12px; color: var(--text-mute); }

.reviews-controls {
  display: flex; gap: 10px;
  justify-content: center;
  margin-top: 30px;
}
.rc-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: var(--t-fast);
}
.rc-btn:hover { background: var(--brand); color: #052015; border-color: var(--brand); transform: translateY(-2px); }

/* =================== Partners =================== */
.partners { padding: 60px 0 80px; }
.partners-head { text-align: center; margin-bottom: 32px; }
.partners-head h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--text-mute);
}
.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  padding: 30px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.partners-row img {
  height: 36px;
  width: auto;
  opacity: .55;
  filter: grayscale(1) brightness(1.5);
  transition: var(--t-mid);
}
.partners-row img:hover { opacity: 1; filter: none; transform: translateY(-2px); }

/* =================== Final CTA =================== */
.final-cta { padding: 60px 0 100px; }
.cta-card {
  text-align: center;
  padding: 60px 40px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(78, 195, 146, .15), transparent 70%),
    var(--bg-card);
  border: 1px solid var(--border-brand);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: ''; position: absolute;
  bottom: -100px; right: -50px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .12;
  filter: blur(60px);
  pointer-events: none;
}
.cta-card h2 {
  position: relative;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}
.cta-card p { position: relative; color: var(--text-dim); margin-bottom: 28px; font-size: 17px; }
.cta-card p b {
  display: inline-block;
  padding: 2px 9px;
  margin: 0 1px;
  background: rgba(78, 195, 146, .14);
  border: 1px solid rgba(78, 195, 146, .35);
  border-radius: 6px;
  color: var(--brand-bright);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  font-size: .92em;
  letter-spacing: .04em;
}
.cta-buttons { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =================== Footer =================== */
.footer { padding: 60px 0 0; border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-desc { color: var(--text-dim); font-size: 14px; max-width: 360px; margin-bottom: 18px; }
.contact { display: flex; flex-direction: column; gap: 6px; }
.contact-title { font-size: 13px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.contact a { color: var(--brand-bright); font-size: 14px; }
.contact a:hover { text-decoration: underline; }

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-dim);
  transition: var(--t-fast);
}
.footer-col a:hover { color: var(--text); padding-left: 4px; }

.footer-bottom { border-top: 1px solid var(--border); padding: 24px 0; }
.fb-row { display: flex; justify-content: space-between; align-items: center; color: var(--text-mute); font-size: 13px; }
.fb-socials { display: flex; gap: 8px; }
.fb-socials a {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: var(--t-fast);
}
.fb-socials a:hover { color: var(--brand-bright); border-color: var(--border-brand); transform: translateY(-2px); }

/* =================== Reveal animations =================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .blob, .float-card, .pill-dot, .hero-banner-wrap img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =================== Responsive =================== */

/* ------- Планшет / небольшой десктоп ≤ 1024px ------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(5, 7, 9, .98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .nav.open .nav-link {
    padding: 14px 16px;
    width: 100%;
    border-radius: 10px;
    font-size: 15px;
    gap: 12px;
    justify-content: flex-start;
  }
  .nav.open .nav-ico { width: 18px; height: 18px; opacity: .85; }
  .burger { display: inline-flex; }
  .header-actions .btn-sm.btn-ghost { display: none; }

  .hero { padding: 60px 0 50px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .hero-banner-wrap { margin-right: 0; max-width: 100%; }
  .phone-mockup { width: 300px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-card.featured { transform: none; }
  .plan-card.featured:hover { transform: translateY(-4px); }

  .apps { padding: 70px 0; }
  .apps-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .apps-text .section-head { text-align: center; margin: 0 auto 30px; }
  .apps-text .section-title { text-align: center; }
  .store-buttons { margin: 0 auto; }

  .review-card { flex: 0 0 calc((100% - 20px) / 2); }

  .partners-row { gap: 30px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* ------- Планшет / большой смартфон ≤ 768px ------- */
@media (max-width: 768px) {
  .container { padding: 0 18px; }

  .header { padding: 12px 0; }
  .header.scrolled { padding: 8px 0; }
  .logo img { height: 32px; }

  .hero { padding: 40px 0 30px; }
  .hero-title { font-size: clamp(28px, 7vw, 42px); margin-bottom: 14px; }
  .hero-title br { display: none; }
  .hero-sub { font-size: 15px; margin-bottom: 26px; }
  .pill { margin-bottom: 18px; font-size: 12px; padding: 6px 12px; }
  .hero-cta { gap: 10px; margin-bottom: 28px; }
  .hero-cta .btn { flex: 1 1 0; min-width: 140px; }
  .hero-trust { gap: 10px; }
  .trust-item { padding: 6px 12px 6px 6px; }
  .trust-item img { height: 24px; }
  .trust-rate strong { font-size: 13px; }

  .features { padding: 60px 0; }
  .features-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card { padding: 22px; }

  .plans { padding: 60px 0; }
  .plans-grid { grid-template-columns: 1fr; gap: 14px; }
  .plan-card.featured { transform: none !important; }
  .protocols { padding: 22px; }
  .countries { gap: 8px; }
  .countries .flag-icon { width: 28px; height: 28px; }

  .apps-subhead { font-size: 13px; margin: 20px 0 10px; }

  .reviews { padding: 60px 0; }
  .review-card { flex: 0 0 100%; min-height: auto; padding: 22px; }
  .quote { font-size: 14.5px; }

  .partners { padding: 40px 0 60px; }
  .partners-row { gap: 24px; padding: 22px 18px; }
  .partners-row img { height: 30px; }

  .final-cta { padding: 40px 0 70px; }
  .cta-card { padding: 40px 22px; }
  .cta-buttons { width: 100%; }
  .cta-buttons .btn { flex: 1 1 0; }

  .footer { padding: 50px 0 0; }
  .footer-grid { gap: 28px; padding-bottom: 40px; }

  .section-head { margin-bottom: 32px; }
  .section-title { font-size: clamp(24px, 5vw, 36px); }
}

/* ------- Смартфон ≤ 640px ------- */
@media (max-width: 640px) {
  .header-inner { gap: 8px; }
  .logo img { height: 30px; }
  .header-actions .btn-sm.btn-dark { display: none; }

  /* "Личный кабинет" → иконка */
  .header-actions .btn-sm.btn-primary { padding: 10px 12px; font-size: 0; gap: 0; min-height: 40px; }
  .header-actions .btn-sm.btn-primary svg { width: 18px; height: 18px; }

  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-trust { width: 100%; }
  .trust-item { flex: 1 1 calc(50% - 6px); justify-content: center; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 16px 16px 18px; gap: 10px; }
  .stat-watermark { width: 100px; height: 100px; top: -8px; right: -14px; }
  .stat-pill { font-size: 9.5px; padding: 3px 8px; }
  .stat-num {
    font-size: 30px;
    flex-wrap: wrap;
    gap: 2px;
    white-space: normal;
  }
  .stat-num .stat-suffix {
    width: 100%;
    font-size: 10px;
    letter-spacing: .14em;
    margin-left: 0;
    top: 0;
    margin-top: 6px;
  }
  .stat-num .stat-unit { font-size: .55em; }
  .stat-label { font-size: 12px; }

  .store-buttons { grid-template-columns: 1fr; max-width: 100%; }
  .store-btn { padding: 12px 14px; min-height: 60px; }
  .store-ico { width: 32px; height: 32px; }
  .store-text strong { font-size: 14px; }

  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-desc { max-width: 100%; }
  .fb-row { flex-direction: column; gap: 12px; text-align: center; }

  .float-card { padding: 8px 12px; transform: scale(.85); }
  .float-card .fc-icon { width: 32px; height: 32px; }
  .card-shield { top: 4%; left: -2%; }
  .card-speed { bottom: 12%; right: -4%; }
  .card-flag { display: none; }

  .partners-row { gap: 18px; padding: 18px 14px; }
  .partners-row img { height: 26px; }
}

/* ------- Малый смартфон ≤ 380px ------- */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .stat-num { font-size: 26px; }
  .price-value { font-size: 36px; }
  .plan-card { padding: 22px 18px; }
  .review-card { padding: 20px; }
  .countries .flag-icon { width: 26px; height: 26px; }
}
