/* ============================================================
   SIGMA — лендинг в дизайн-системе десктоп-приложения
   Палитра/типографика/компоненты перенесены 1:1 из клиента.
   Светлая тема по умолчанию; тёмная — через [data-theme="dark"].
   ============================================================ */

:root {
  /* Общие токены */
  --maxw: 1180px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* Dark palette — по умолчанию (как в приложении) */
  --c-background: #0E0F12;
  --c-surface: #17181C;
  --c-surfaceMuted: #232429;
  --c-onSurface: #F1F2F4;
  --c-onSurfaceMuted: #9A9CA4;
  --c-divider: #2E3036;
  --c-ctaBg: #F1F2F4;
  --c-ctaFg: #111114;
  --c-success: #34D17A;
  --c-warning: #FBB040;
  --c-danger: #FF5A5F;
  --c-premiumGreen: #2ED573;
  --c-brand: #19B6C8;
  --c-brand-strong: #0EA5B7;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 16px 40px -18px rgba(0,0,0,.7);
  --shadow-lg: 0 30px 80px -30px rgba(0,0,0,.8);
}

[data-theme="light"] {
  --c-background: #F1F1F3;
  --c-surface: #FFFFFF;
  --c-surfaceMuted: #E9E9EC;
  --c-onSurface: #111114;
  --c-onSurfaceMuted: #8E8E93;
  --c-divider: #E5E5EA;
  --c-ctaBg: #111114;
  --c-ctaFg: #FFFFFF;
  --c-success: #22C55E;
  --c-warning: #F59E0B;
  --c-danger: #EF4444;
  --c-premiumGreen: #16A34A;
  --c-brand: #0EA5B7;
  --c-brand-strong: #0B8C9B;

  --shadow-sm: 0 1px 2px rgba(17,17,20,.05), 0 1px 3px rgba(17,17,20,.06);
  --shadow-md: 0 12px 32px -16px rgba(17,17,20,.28);
  --shadow-lg: 0 30px 70px -30px rgba(17,17,20,.40);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--c-background);
  color: var(--c-onSurface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

::selection { background: color-mix(in srgb, var(--c-brand) 28%, transparent); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--c-divider); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-onSurfaceMuted); }
::-webkit-scrollbar-track { background: transparent; }

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

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 650; letter-spacing: .9px; text-transform: uppercase;
  color: var(--c-onSurfaceMuted);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-brand) 16%, transparent); }
.eyebrow svg { color: var(--c-brand); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-title {
  font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -1.2px; line-height: 1.08;
}
.section-subtitle { margin-top: 14px; font-size: 16px; color: var(--c-onSurfaceMuted); line-height: 1.55; }

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

/* ---------- Wordmark ---------- */
.wordmark { display: block; width: auto; height: 24px; color: var(--c-onSurface); }

/* ---------- Splash / preloader (как в десктоп-приложении) ---------- */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-background);
  transition: opacity .5s ease, transform .5s ease;
}
#splash .wordmark { color: var(--c-onSurface); }
#splash.splash-out { opacity: 0; transform: scale(1.06); pointer-events: none; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: var(--r-md); cursor: pointer;
  font-size: 15px; font-weight: 600; letter-spacing: -.1px; line-height: 1;
  padding: 13px 22px; transition: transform .12s ease, filter .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.975); }
.btn svg { display: block; flex: 0 0 auto; }

.btn-cta { background: var(--c-ctaBg); color: var(--c-ctaFg); box-shadow: var(--shadow-sm); }
.btn-cta:hover { filter: brightness(1.08); box-shadow: var(--shadow-md); }

.btn-brand { background: var(--c-brand); color: #fff; box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--c-brand) 70%, transparent); }
.btn-brand:hover { background: var(--c-brand-strong); box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--c-brand) 70%, transparent); }

.btn-ghost { background: var(--c-surface); color: var(--c-onSurface); border-color: var(--c-divider); }
.btn-ghost:hover { background: var(--c-surfaceMuted); border-color: var(--c-onSurfaceMuted); }

.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: var(--r-md); }
.btn-block { width: 100%; }

.btn .sub { font-size: 11px; font-weight: 500; opacity: .65; }
.btn-stack { flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px 20px; }
.btn-stack .lead { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 650; }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--c-background) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--c-divider);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 18px; }
.logo { display: flex; align-items: center; }
.logo .wordmark { height: 26px; }
.logo-mark { display: none; height: 30px; width: 30px; border-radius: 7px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 14.5px; font-weight: 550; color: var(--c-onSurfaceMuted);
  padding: 8px 12px; border-radius: var(--r-sm); transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--c-onSurface); background: var(--c-surfaceMuted); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--c-divider);
  background: var(--c-surface); color: var(--c-onSurface); display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s, transform .1s;
}
.icon-btn:hover { background: var(--c-surfaceMuted); }
.icon-btn:active { transform: scale(.93); }
.icon-btn .moon { display: none; }
.icon-btn .sun { display: block; }
[data-theme="light"] .icon-btn .moon { display: block; }
[data-theme="light"] .icon-btn .sun { display: none; }

.nav-cta { padding: 9px 18px; font-size: 14px; }
.header .btn-ghost.nav-login { padding: 9px 16px; font-size: 14px; }

.burger { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; }
.hero-ambient {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.hero-ambient::before {
  content: ""; position: absolute; top: -160px; left: 60%; width: 720px; height: 720px;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c-brand) 22%, transparent) 0%, transparent 62%);
  filter: blur(20px); opacity: .55; animation: amb-breathe 8s ease-in-out infinite;
}
@keyframes amb-breathe { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.08); } }

.hero .container {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: 1.05fr .95fr; column-gap: 56px; row-gap: 0;
  grid-template-areas: "trust visual" "title visual" "content visual";
  align-items: center;
}
.hero-trust { grid-area: trust; align-self: end; }
.hero-title { grid-area: title; align-self: center; }
.hero-content { grid-area: content; align-self: start; max-width: 560px; }
.hero-visual { grid-area: visual; }

.hero-trust { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; width: fit-content;
  padding: 6px 14px 6px 6px; background: var(--c-surface); border: 1px solid var(--c-divider); border-radius: 999px; box-shadow: var(--shadow-sm); }
.trust-avatars { display: flex; }
.trust-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--c-surface); margin-left: -9px; background: var(--c-surfaceMuted); }
.trust-avatar:first-child { margin-left: 0; }
.trust-text { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--c-onSurfaceMuted); font-weight: 550; }
.trust-stars { color: var(--c-warning); font-size: 12px; letter-spacing: 1px; }

.hero-title {
  font-size: clamp(40px, 6vw, 64px); font-weight: 300; letter-spacing: -2.5px; line-height: 1.02;
}
.hero-title .accent { font-weight: 600; }
.hero-title .brand-text { font-weight: 600; }
.hero-subtitle { margin-top: 20px; font-size: 18px; color: var(--c-onSurfaceMuted); line-height: 1.55; max-width: 480px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-cta .platform-ic { width: 20px; height: 20px; }

.hero-note { margin-top: 16px; font-size: 13px; color: var(--c-onSurfaceMuted); display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { color: var(--c-success); }

.hero-sec-links { margin-top: 20px; display: flex; align-items: center; gap: 16px; font-size: 14px; }
.hero-sec-links a { color: var(--c-onSurfaceMuted); display: inline-flex; align-items: center; gap: 7px; font-weight: 550; transition: color .15s; }
.hero-sec-links a:hover { color: var(--c-onSurface); }
.hero-sec-links a.tg:hover { color: var(--c-brand); }
.hero-sec-links .sep { width: 1px; height: 14px; background: var(--c-divider); }

/* ---------- App window mockup (hero visual) ---------- */
.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.appwin {
  width: 100%; max-width: 420px; background: var(--c-background);
  border: 1px solid var(--c-divider); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.appwin-bar { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--c-divider); }
.appwin-bar .wordmark { height: 18px; }
.appwin-dots { display: flex; gap: 8px; }
.appwin-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--c-surfaceMuted); display: block; }
.appwin-body {
  position: relative; padding: 26px 22px 22px; display: flex; flex-direction: column; align-items: center; gap: 18px;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--c-brand) 18%, transparent) 0%, transparent 58%),
    var(--c-background);
}

.ring { position: relative; width: 188px; height: 188px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ring .disc {
  position: absolute; inset: 12px; border-radius: 50%; background: var(--c-surface);
  border: 1px solid color-mix(in srgb, var(--c-brand) 55%, var(--c-divider));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-brand) 22%, transparent), 0 18px 50px -20px color-mix(in srgb, var(--c-brand) 65%, transparent);
}
.ring .progress {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--c-brand) 100%, transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
}
.ring .label { position: relative; z-index: 2; text-align: center; }
.ring .label .big { font-size: 15px; font-weight: 650; letter-spacing: -.2px; }
.ring .label .timer { font-size: 34px; font-weight: 300; letter-spacing: -1.6px; line-height: 1; }
.ring .label .sub { font-size: 12px; color: var(--c-onSurfaceMuted); margin-top: 5px; display: inline-flex; align-items: center; gap: 6px; }
.ring .label .sub .pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-success); box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-success) 60%, transparent); animation: pingPulse 1.8s ease-out infinite; }
@keyframes pingPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-success) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.appwin-loc { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.appwin-loc .loc-row {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r-md);
  background: var(--c-surface); border: 1px solid var(--c-divider);
}
.appwin-loc .loc-row.active { border-color: color-mix(in srgb, var(--c-brand) 55%, transparent); background: color-mix(in srgb, var(--c-brand) 8%, var(--c-surface)); }
.appwin-loc .flag-circle { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.appwin-loc .loc-name { flex: 1; font-size: 14px; font-weight: 550; }
.appwin-loc .loc-ms { font-size: 12.5px; color: var(--c-onSurfaceMuted); }
.appwin-loc .bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.appwin-loc .bars i { width: 3px; border-radius: 1px; background: var(--c-success); }
.appwin-loc .bars i:nth-child(1){ height: 5px } .appwin-loc .bars i:nth-child(2){ height: 8px } .appwin-loc .bars i:nth-child(3){ height: 11px } .appwin-loc .bars i:nth-child(4){ height: 13px }

/* ---------- Hero stats strip ---------- */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.hero-stat-item {
  text-align: center; padding: 22px 16px;
  background: var(--c-surface); border: 1px solid var(--c-divider); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.hero-stat-value { font-size: 30px; font-weight: 700; letter-spacing: -1px; }
.hero-stat-value .brand-text { color: var(--c-brand); }
.hero-stat-label { margin-top: 4px; font-size: 12px; color: var(--c-onSurfaceMuted); font-weight: 550; text-transform: uppercase; letter-spacing: .6px; }

/* ============================================================
   Sections base
   ============================================================ */
section { position: relative; }
.block { padding: 80px 0; }
.block-tight { padding: 64px 0; }

/* ============================================================
   Download section
   ============================================================ */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl-card {
  display: flex; flex-direction: column; gap: 16px; padding: 26px; border-radius: var(--r-lg);
  background: var(--c-surface); border: 1px solid var(--c-divider); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.dl-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c-brand) 40%, var(--c-divider)); box-shadow: var(--shadow-md); }
.dl-card.soon { opacity: .72; }
.dl-top { display: flex; align-items: center; gap: 14px; }
.dl-icon {
  width: 52px; height: 52px; border-radius: var(--r-md); flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--c-brand) 12%, transparent); color: var(--c-brand);
}
.dl-icon svg { width: 28px; height: 28px; }
.dl-name { font-size: 18px; font-weight: 650; letter-spacing: -.3px; }
.dl-meta { font-size: 13px; color: var(--c-onSurfaceMuted); margin-top: 2px; }
.dl-card .btn { margin-top: auto; }
.dl-soon-tag { margin-top: auto; text-align: center; font-size: 13px; font-weight: 600; color: var(--c-onSurfaceMuted); padding: 13px; border: 1px dashed var(--c-divider); border-radius: var(--r-md); }

/* ============================================================
   Features
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card {
  padding: 20px 20px 22px; border-radius: var(--r-lg); background: var(--c-surface);
  border: 1px solid var(--c-divider); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c-brand) 40%, var(--c-divider)); box-shadow: var(--shadow-md); }
/* ключевая фишка — выделяем бренд-рамкой */
.feature-card.feature-key { border-color: color-mix(in srgb, var(--c-brand) 50%, var(--c-divider)); background: color-mix(in srgb, var(--c-brand) 6%, var(--c-surface)); }
.feature-icon {
  width: 44px; height: 44px; border-radius: var(--r-md); margin-bottom: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--c-brand) 12%, transparent); color: var(--c-brand);
  transition: transform .25s ease;
}
.feature-card:hover .feature-icon { transform: scale(1.06); }
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 16.5px; font-weight: 650; letter-spacing: -.3px; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--c-onSurfaceMuted); line-height: 1.5; }

/* ============================================================
   Network / globe + locations
   ============================================================ */
.network .container { position: relative; }
.network-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.globe-container { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
#globeCanvas { width: 100%; height: 100%; position: relative; z-index: 2; cursor: grab; user-select: none; }
#globeCanvas:active { cursor: grabbing; }
.globe-glow {
  position: absolute; width: 78%; height: 78%; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--c-brand) 32%, transparent) 0%, transparent 68%);
  filter: blur(38px); animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.1); opacity: 1; } }

/* Globe tooltip */
.globe-tooltip {
  position: fixed; background: var(--c-onSurface); color: var(--c-background);
  padding: 10px 14px; border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  pointer-events: none; opacity: 0; transition: opacity .15s ease; z-index: 10000;
  display: flex; align-items: center; gap: 11px; white-space: nowrap; transform: translate(15px, -50%);
}
.globe-tooltip.visible { opacity: 1; }
.tooltip-flag { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.tooltip-flag .fi { width: 100%; height: 100%; border-radius: 50%; background-size: cover; background-position: center; }
.tooltip-content { display: flex; flex-direction: column; gap: 1px; }
.tooltip-country { font-size: 14px; font-weight: 650; }
.tooltip-city { font-size: 12px; opacity: .7; }
.tooltip-ping { font-size: 17px; font-weight: 700; }
.tooltip-ping.ping-excellent { color: var(--c-success); }
.tooltip-ping.ping-good { color: var(--c-warning); }
.tooltip-ping.ping-poor { color: var(--c-danger); }
.tooltip-ping-unit { font-size: 11px; opacity: .7; margin-left: 2px; }

/* Locations list (app sidebar style) */
.locations-head { margin-bottom: 14px; }
.locations-list { display: flex; flex-direction: column; gap: 4px; }
.location-card {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: var(--r-md);
  background: var(--c-surface); border: 1px solid var(--c-divider); cursor: default;
  transition: border-color .15s, background .15s, transform .12s;
}
.location-card:hover { border-color: color-mix(in srgb, var(--c-brand) 45%, var(--c-divider)); background: color-mix(in srgb, var(--c-brand) 6%, var(--c-surface)); }
.location-flag { width: 30px; height: 22px; border-radius: 4px; flex: 0 0 auto; background-size: cover; background-position: center; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.location-info { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.location-name { font-size: 14.5px; font-weight: 600; }
.location-city { font-size: 12.5px; color: var(--c-onSurfaceMuted); }
.location-ping { display: flex; align-items: baseline; gap: 2px; }
.ping-value { font-size: 17px; font-weight: 700; min-width: 34px; text-align: right; transition: color .3s, opacity .3s; }
.ping-value.ping-excellent { color: var(--c-success); }
.ping-value.ping-good { color: var(--c-warning); }
.ping-value.ping-poor { color: var(--c-danger); }
.ping-unit { font-size: 11px; color: var(--c-onSurfaceMuted); font-weight: 500; }

/* ============================================================
   Pricing
   ============================================================ */
.pricing-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; max-width: 1040px; margin: 0 auto; }
.pricing-plan {
  position: relative; display: flex; flex-direction: column; padding: 26px;
  background: var(--c-surface); border: 1px solid var(--c-divider); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.pricing-plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--c-brand) 35%, var(--c-divider)); }
.pricing-plan.featured-plan { border-color: var(--c-brand); box-shadow: 0 0 0 1px var(--c-brand), var(--shadow-md); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--c-brand); color: #fff; padding: 5px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 650; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--c-brand) 80%, transparent);
}
.plan-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.plan-icon { width: 44px; height: 44px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c-brand) 12%, transparent); color: var(--c-brand); }
.plan-icon svg { width: 24px; height: 24px; }
.plan-name { font-size: 21px; font-weight: 700; letter-spacing: -.4px; }
.plan-features { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; flex: 1; }
.feature-item { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--c-onSurface); }
.feature-item svg { color: var(--c-success); flex: 0 0 auto; }
.plan-price-block { padding-top: 18px; border-top: 1px solid var(--c-divider); }
.plan-price { display: flex; align-items: baseline; gap: 3px; margin-bottom: 14px; }
.price-amount { font-size: 38px; font-weight: 700; letter-spacing: -1.5px; line-height: 1; }
.price-currency { font-size: 22px; font-weight: 600; color: var(--c-onSurfaceMuted); }
.price-period { font-size: 14px; color: var(--c-onSurfaceMuted); margin-left: 2px; }
.plan-button {
  display: block; text-align: center; width: 100%; padding: 13px; border-radius: var(--r-md);
  background: var(--c-ctaBg); color: var(--c-ctaFg); font-size: 15px; font-weight: 600;
  transition: filter .15s, transform .1s, box-shadow .15s; box-shadow: var(--shadow-sm);
}
.plan-button:hover { filter: brightness(1.08); box-shadow: var(--shadow-md); }
.plan-button:active { transform: scale(.98); }
.featured-plan .plan-button { background: var(--c-brand); }
.featured-plan .plan-button:hover { background: var(--c-brand-strong); }

/* Standard plan periods */
.plan-periods { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--c-divider); }
.period-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--c-background); border: 1px solid var(--c-divider); transition: border-color .15s, background .15s; }
.period-option:hover { border-color: color-mix(in srgb, var(--c-brand) 45%, var(--c-divider)); }
.period-option.highlight { border-color: var(--c-brand); background: color-mix(in srgb, var(--c-brand) 8%, var(--c-background)); }
.period-duration { font-size: 13.5px; font-weight: 600; }
.period-price { display: flex; align-items: center; gap: 12px; }
.period-amount { font-size: 15px; font-weight: 700; min-width: 52px; text-align: right; }
.period-select { padding: 7px 16px; border-radius: var(--r-sm); background: var(--c-brand); color: #fff; font-size: 12.5px; font-weight: 650; white-space: nowrap; transition: background .15s, transform .1s; }
.period-select:hover { background: var(--c-brand-strong); }
.period-select:active { transform: scale(.96); }

/* ============================================================
   Testimonials
   ============================================================ */
/* Горизонтальная лента отзывов (ПК + мобильный): листается свайпом по горизонтали */
.testimonials-grid {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 16px; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--c-divider) transparent;
}
.testimonials-grid::-webkit-scrollbar { height: 8px; }
.testimonials-grid::-webkit-scrollbar-thumb { background: var(--c-divider); border-radius: 8px; }
.testimonials-grid::-webkit-scrollbar-thumb:hover { background: var(--c-onSurfaceMuted); }
.testimonials-grid::-webkit-scrollbar-track { background: transparent; }
.testimonial-card {
  flex: 0 0 340px; max-width: 86vw; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--r-lg);
  background: var(--c-surface); border: 1px solid var(--c-divider); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--c-brand) 30%, var(--c-divider)); }
.testimonial-card.featured-review { border-color: color-mix(in srgb, var(--c-brand) 50%, var(--c-divider)); background: color-mix(in srgb, var(--c-brand) 5%, var(--c-surface)); }
.testimonial-header { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; border: 1px solid var(--c-divider); }
.testimonial-author { flex: 1; min-width: 0; }
.testimonial-name { font-size: 15px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.testimonial-handle { font-size: 13px; color: var(--c-brand); font-weight: 550; }
.testimonial-verify { color: var(--c-brand); flex: 0 0 auto; }
.testimonial-stars { color: var(--c-warning); font-size: 15px; letter-spacing: 1.5px; line-height: 1; }
.testimonial-text { font-size: 14px; line-height: 1.6; color: var(--c-onSurface); }
.testimonial-meta { margin-top: auto; }
.testimonial-tag { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--c-surfaceMuted); font-size: 12px; font-weight: 550; color: var(--c-onSurfaceMuted); }
.testimonials-footer { display: flex; justify-content: center; margin-top: 36px; }
.testimonials-aggregate { display: inline-flex; align-items: center; gap: 14px; padding: 14px 24px; background: var(--c-surface); border: 1px solid var(--c-divider); border-radius: 999px; box-shadow: var(--shadow-sm); }
.aggregate-rating { display: flex; align-items: baseline; gap: 8px; }
.aggregate-score { font-size: 28px; font-weight: 700; letter-spacing: -1px; }
.aggregate-stars { color: var(--c-warning); font-size: 15px; letter-spacing: 1.5px; }
.aggregate-text { font-size: 14px; color: var(--c-onSurfaceMuted); }
.aggregate-text strong { color: var(--c-onSurface); font-weight: 700; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--c-surface); border: 1px solid var(--c-divider); border-radius: var(--r-md); overflow: hidden; transition: border-color .15s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--c-brand) 40%, var(--c-divider)); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 16px; font-weight: 600; letter-spacing: -.2px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { flex: 0 0 auto; color: var(--c-onSurfaceMuted); transition: transform .2s ease; }
.faq-item[open] summary .chev { transform: rotate(180deg); color: var(--c-brand); }
.faq-item .faq-body { padding: 0 20px 18px; font-size: 14.5px; color: var(--c-onSurfaceMuted); line-height: 1.6; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band .container {
  position: relative; overflow: hidden; text-align: center;
  padding: 56px 32px; border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--c-brand) 22%, transparent) 0%, transparent 60%),
    var(--c-surface);
  border: 1px solid var(--c-divider); box-shadow: var(--shadow-md);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -1.2px; }
.cta-band p { margin-top: 14px; font-size: 17px; color: var(--c-onSurfaceMuted); max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band .hero-cta { justify-content: center; margin-top: 28px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--c-divider); padding: 56px 0 28px; background: var(--c-surface); }
.footer-content { display: grid; grid-template-columns: 1.6fr 2fr; gap: 56px; margin-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 360px; }
.footer-brand .wordmark { height: 26px; }
.footer-description { color: var(--c-onSurfaceMuted); font-size: 14px; line-height: 1.6; }
.footer-telegram { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: var(--r-md); background: var(--c-background); border: 1px solid var(--c-divider); transition: border-color .15s, background .15s; width: fit-content; }
.footer-telegram:hover { border-color: var(--c-brand); }
.footer-telegram svg { color: var(--c-brand); flex: 0 0 auto; }
.telegram-info { display: flex; flex-direction: column; }
.telegram-title { font-size: 14px; font-weight: 650; }
.telegram-subscribers { font-size: 12px; color: var(--c-onSurfaceMuted); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-column { display: flex; flex-direction: column; gap: 11px; }
.footer-column h4 { font-size: 12px; font-weight: 650; letter-spacing: .8px; text-transform: uppercase; color: var(--c-onSurfaceMuted); margin-bottom: 4px; }
.footer-column a { color: var(--c-onSurface); font-size: 14px; transition: color .15s; }
.footer-column a:hover { color: var(--c-brand); }
.subscriber-count { color: var(--c-onSurfaceMuted); font-size: 12px; }
.footer-bottom { text-align: center; padding-top: 26px; border-top: 1px solid var(--c-divider); color: var(--c-onSurfaceMuted); font-size: 13px; }

/* ============================================================
   Floating support button
   ============================================================ */
.floating-support {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px;
  background: var(--c-ctaBg); color: var(--c-ctaFg); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg); transition: transform .15s, filter .15s;
}
.floating-support:hover { transform: translateY(-2px); filter: brightness(1.08); }
.floating-support svg { flex: 0 0 auto; }

/* ============================================================
   Promo popup
   ============================================================ */
.promo-popup-overlay {
  position: fixed; inset: 0; background: color-mix(in srgb, var(--c-onSurface) 35%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease;
}
.promo-popup-overlay.active { opacity: 1; visibility: visible; }
.promo-popup {
  position: relative; width: 100%; max-width: 440px; padding: 36px;
  background: var(--c-background); border: 1px solid var(--c-divider); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); transform: scale(.94); transition: transform .35s ease;
}
.promo-popup-overlay.active .promo-popup { transform: scale(1); }
.promo-popup-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--c-surface); border: 1px solid var(--c-divider); color: var(--c-onSurfaceMuted);
  font-size: 18px; display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s;
}
.promo-popup-close:hover { background: var(--c-surfaceMuted); color: var(--c-onSurface); }
.promo-popup-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--c-premiumGreen) 14%, transparent); color: var(--c-premiumGreen);
  border: 1px solid color-mix(in srgb, var(--c-premiumGreen) 35%, transparent);
  font-size: 12.5px; font-weight: 650; margin-bottom: 20px;
}
.promo-popup-icon { width: 60px; height: 60px; border-radius: var(--r-lg); display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c-brand) 12%, transparent); color: var(--c-brand); margin-bottom: 18px; }
.promo-popup-icon svg { width: 32px; height: 32px; }
.promo-popup h2 { font-size: 26px; font-weight: 700; letter-spacing: -.6px; line-height: 1.15; margin-bottom: 12px; }
.promo-popup h2 .highlight { color: var(--c-brand); }
.promo-popup-description { font-size: 15px; color: var(--c-onSurfaceMuted); line-height: 1.6; margin-bottom: 22px; }
.promo-popup-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.promo-popup-features li { display: flex; align-items: center; gap: 11px; font-size: 14.5px; }
.promo-popup-features li::before {
  content: ""; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  background: color-mix(in srgb, var(--c-success) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2322C55E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.promo-popup-cta { display: block; text-align: center; width: 100%; padding: 15px; border-radius: var(--r-md); background: var(--c-ctaBg); color: var(--c-ctaFg); font-size: 15px; font-weight: 650; transition: filter .15s, transform .1s; }
.promo-popup-cta:hover { filter: brightness(1.08); }
.promo-popup-cta:active { transform: scale(.98); }
.promo-popup-note { text-align: center; margin-top: 14px; font-size: 12.5px; color: var(--c-onSurfaceMuted); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero .container { display: flex; flex-direction: column; align-items: center; gap: 22px; grid-template-areas: none; }
  .hero-trust { order: 1; align-self: center; margin-bottom: 0; }
  .hero-title { order: 2; text-align: center; }
  .hero-visual { order: 3; width: 100%; display: flex; justify-content: center; }
  .hero-content { order: 4; max-width: 620px; margin: 0 auto; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .network-layout { grid-template-columns: 1fr; gap: 32px; }
  .network-layout .globe-side { order: -1; }
  .footer-content { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 880px) {
  .nav { display: none; }
  .download-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-card { flex-basis: 320px; }
  .pricing-plans { grid-template-columns: 1fr; max-width: 440px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .block { padding: 44px 0; }
  .block-tight { padding: 40px 0; }

  /* header: компактнее + лого-иконка вместо wordmark */
  .header .container { height: 56px; }
  .logo-full { display: none; }
  .logo-mark { display: block; }
  .nav-cta { padding: 8px 14px; font-size: 13.5px; }
  .icon-btn { width: 36px; height: 36px; }

  /* hero компактнее */
  .hero { padding: 24px 0 32px; }
  .hero .container { gap: 20px; }
  .hero-title { font-size: 33px; letter-spacing: -1.2px; }
  .hero-subtitle { font-size: 15px; margin-top: 12px; }
  .hero-cta { margin-top: 20px; gap: 10px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .btn-lg { padding: 14px 20px; font-size: 15px; }
  .hero-note { margin-top: 12px; font-size: 12.5px; }

  /* app-mockup мельче, чтобы не растягивал экран */
  .appwin { max-width: 320px; }
  .appwin-body { padding: 20px 16px 16px; gap: 14px; }
  .ring { width: 150px; height: 150px; }
  .ring .disc { inset: 10px; }
  .ring .label .timer { font-size: 27px; }
  .appwin-loc .loc-row { padding: 9px 11px; }

  /* stats 2×2 */
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 26px; }
  .hero-stat-item { padding: 15px 10px; }
  .hero-stat-value { font-size: 23px; }

  /* секции компактнее */
  .section-head { margin-bottom: 24px; }
  .section-title { font-size: 26px; }
  .section-subtitle { font-size: 14px; }
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 20px; }
  .feature-icon { width: 44px; height: 44px; margin-bottom: 14px; }
  .testimonials-grid { gap: 12px; }
  .testimonial-card { flex-basis: 80vw; padding: 18px; gap: 11px; }
  .testimonial-text { font-size: 13.5px; line-height: 1.55; }
  .testimonial-avatar { width: 40px; height: 40px; }
  /* Сеть: список локаций компактнее по высоте — 2 колонки (только мобильный) */
  .locations-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .location-card { padding: 8px 10px; gap: 9px; }
  .location-flag { width: 26px; height: 19px; }
  .location-info { gap: 0; }
  .location-name { font-size: 12.5px; }
  .location-city { font-size: 10.5px; }
  .ping-value { font-size: 15px; min-width: 24px; }
  .ping-unit { font-size: 10px; }
  .download-grid { gap: 12px; }
  .dl-card { padding: 20px; }
  .pricing-plan { padding: 22px; }
  .faq-item summary { padding: 15px 16px; font-size: 15px; }
  .cta-band .container { padding: 36px 20px; }
}
