/* FARVATER — безопасный международный VPN
   Палитра: мята + голубой на тёмно-синем и светлом фоне — те же токены, что в миниаппе VPN (vpn.css).
   Тема следует системной (prefers-color-scheme), как в миниаппе. */

/* ---------- Шрифт: тот же, что в миниаппе VPN ---------- */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/inter-tight.woff2) format('woff2');
}

/* ---------- Токены ---------- */
:root {
  color-scheme: light;
  --bg: #EEF4F9;
  --bg-rgb: 238 244 249;
  --bg-2: #FFFFFF;
  --ink: #0A1828;
  --muted: #33475B;
  --dim: #5B6E82;
  --line: rgba(10, 40, 70, .1);
  --line-2: rgba(18, 150, 160, .34);
  --accent: #12B89C;
  --accent-text: #0A7A78;
  --accent-rgb: 18 184 156;
  --blue: #3492F3;
  --glow-rgb: 52 146 243;
  --btn-text: #04131F;
  --grad: linear-gradient(110deg, #5EF5D3 0%, #4ED0EA 52%, #47A9FB 100%);
  --grad-text: linear-gradient(110deg, #0B8F79 0%, #1A66C9 100%);
  --glow-mint: rgba(30, 210, 176, .2);
  --glow-blue: rgba(52, 146, 243, .18);
  --glow-top: rgba(120, 190, 240, .28);
  --grid-dot: rgba(10, 40, 70, .12);
  --wave-opacity: .6;
  --ghost-bg: rgba(255, 255, 255, .7);
  --ghost-bg-hover: rgba(255, 255, 255, .95);
  --ghost-border-hover: rgba(18, 150, 160, .6);
  --header-bg: rgba(238, 244, 249, .8);
  --plan-bg: rgba(255, 255, 255, .8);
  --card-border: rgba(16, 70, 120, .1);
  --plan-hl: rgba(255, 255, 255, .9);
  --plan-spot: rgba(18, 184, 156, .1);
  --plan-spot-2: rgba(18, 184, 156, .06);
  --shadow-card: 0 10px 30px rgba(20, 60, 110, .1);
  --shadow-card-hover: 0 18px 40px rgba(20, 60, 110, .18);
  --badge-bg: #0A1828;
  --badge-text: #FFFFFF;
  --buoy-bg: radial-gradient(circle at 50% 30%, #FFFFFF, #DCEAF4 70%);
  --sel-text: #0A1828;
  --mark-a: #1ED2B0;
  --mark-b: #3492F3;
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font-display: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mark: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #07101B;
    --bg-rgb: 7 16 27;
    --bg-2: #0D1A29;
    --ink: #FFFFFF;
    --muted: #C3CFDC;
    --dim: #8D9DB2;
    --line: rgba(140, 190, 235, .12);
    --line-2: rgba(120, 190, 235, .26);
    --accent: #5EF2D4;
    --accent-text: #74F0DC;
    --accent-rgb: 94 242 212;
    --blue: #47A9FB;
    --glow-rgb: 78 208 234;
    --btn-text: #04131F;
    --grad: linear-gradient(110deg, #5EF5D3 0%, #4ED0EA 52%, #47A9FB 100%);
    --grad-text: linear-gradient(110deg, #6FF7DA 0%, #5BB8FF 100%);
    --glow-mint: rgba(46, 230, 190, .16);
    --glow-blue: rgba(52, 120, 255, .2);
    --glow-top: rgba(40, 100, 160, .3);
    --grid-dot: rgba(150, 200, 240, .12);
    --wave-opacity: 1;
    --ghost-bg: rgba(94, 242, 212, .05);
    --ghost-bg-hover: rgba(94, 242, 212, .12);
    --ghost-border-hover: rgba(94, 242, 212, .55);
    --header-bg: rgba(7, 16, 27, .74);
    --plan-bg: rgba(12, 25, 40, .8);
    --card-border: rgba(120, 190, 235, .14);
    --plan-hl: rgba(255, 255, 255, .05);
    --plan-spot: rgba(94, 242, 212, .1);
    --plan-spot-2: rgba(94, 242, 212, .05);
    --shadow-card: 0 14px 36px rgba(0, 0, 0, .38);
    --shadow-card-hover: 0 22px 48px rgba(0, 0, 0, .5);
    --badge-bg: #07101B;
    --badge-text: #FFFFFF;
    --buoy-bg: radial-gradient(circle at 50% 30%, #16283D, #0A1522 70%);
    --sel-text: #FFFFFF;
    --mark-a: #5EF5D3;
    --mark-b: #47A9FB;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

/* зерно поверх всего — убирает «пластиковость» градиентов */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .05;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, canvas { display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

::selection { background: rgb(var(--accent-rgb) / .35); color: var(--sel-text); }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.icon { width: 18px; height: 18px; flex: none; }
.nowrap { white-space: nowrap; }

/* ---------- Фон: как в миниаппе VPN ----------
   Слой неподвижен, страница прокручивается над ним. Размытие под карточками
   не используется: волны движутся, и оно пересчитывалось бы каждый кадр. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bd-tile {
  position: relative;
  height: 100%;
  background:
    radial-gradient(90% 40% at 50% -6%, var(--glow-top), transparent 70%),
    radial-gradient(70% 45% at 0% 64%, var(--glow-mint), transparent 70%),
    radial-gradient(65% 50% at 100% 80%, var(--glow-blue), transparent 72%);
}
.bd-tile::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 55%;
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(#000, transparent);
  mask-image: linear-gradient(#000, transparent);
}
.waves {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  /* волны растянуты по высоте слоя: выше этого предела на планшете и на большом экране они становятся крутыми */
  height: min(72%, 600px);
  opacity: var(--wave-opacity);
}
.stop-mint { stop-color: var(--mark-a); }
.stop-blue { stop-color: var(--mark-b); }
.wave-fill { opacity: .14; }
.wave-line { fill: none; stroke-width: 1.4; opacity: .75; }
.wave-line-soft { stroke-width: .9; opacity: .35; }
.waves-drift { animation: wave-drift 26s ease-in-out infinite alternate; }
.waves-drift-back { animation: wave-drift-back 34s ease-in-out infinite alternate; }
@keyframes wave-drift { to { transform: translateX(-180px); } }
@keyframes wave-drift-back {
  from { transform: translateX(-120px); }
  to { transform: translateX(60px); }
}

/* Телефон. Если прокручивать документ, браузер прячет и показывает свои панели: окно меняет высоту, нижняя часть
   фиксированного фона не успевает дорисоваться, а под панелью виден плоский цвет страницы — фон прыгал и снизу была
   полоса. Поэтому на телефоне прокручивается контейнер .page, а не документ: панели остаются на месте, окно не
   меняет высоту, фон неподвижен. Фон плавно переходит в цвет страницы и заканчивается за 60px до нижнего края:
   под плавающей панелью браузера (Telegram, iOS) система размывает содержимое, и там, где под размытием ещё
   есть свечение, виден резкий край. Если там уже плоский цвет страницы, края нет. */
@media (pointer: coarse) {
  /* документ выше окна на 240px: под нижней панелью браузера он закрашен цветом страницы, а не остаётся пустым
     (иначе там чёрная полоса — цвет самого браузера). Пальцы попадают только в .page, он закрывает весь экран */
  html, body { min-height: calc(100% + 240px); }
  .page {
    position: fixed;
    inset: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
  }
  /* Фон плавно переходит в цвет страницы (smoothstep) и полностью исчезает за 50px до нижнего края: под плавающей
     панелью браузера система размывает содержимое. Волны остаются у самого низа слоя: если их поднять, нижний
     край их заливки обрывается посреди экрана и даёт резкую линию. Градиент, а не mask-image: маска в WebView
     рисовалась ступеньками. */
  .bd-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(var(--bg-rgb) / 0.000) calc(100% - 220px), rgb(var(--bg-rgb) / 0.010) calc(100% - 210px), rgb(var(--bg-rgb) / 0.038) calc(100% - 200px), rgb(var(--bg-rgb) / 0.082) calc(100% - 190px), rgb(var(--bg-rgb) / 0.140) calc(100% - 180px), rgb(var(--bg-rgb) / 0.209) calc(100% - 170px), rgb(var(--bg-rgb) / 0.286) calc(100% - 160px), rgb(var(--bg-rgb) / 0.369) calc(100% - 150px), rgb(var(--bg-rgb) / 0.456) calc(100% - 140px), rgb(var(--bg-rgb) / 0.544) calc(100% - 130px), rgb(var(--bg-rgb) / 0.631) calc(100% - 120px), rgb(var(--bg-rgb) / 0.714) calc(100% - 110px), rgb(var(--bg-rgb) / 0.791) calc(100% - 100px), rgb(var(--bg-rgb) / 0.860) calc(100% - 90px), rgb(var(--bg-rgb) / 0.918) calc(100% - 80px), rgb(var(--bg-rgb) / 0.962) calc(100% - 70px), rgb(var(--bg-rgb) / 0.990) calc(100% - 60px), rgb(var(--bg-rgb) / 1.000) calc(100% - 50px), var(--bg) calc(100% - 40px));
  }
  /* зерно чуть сильнее: на тёмных оттенках градиент даёт заметные полосы, зерно их разбивает */
  body::after { opacity: .08; }
}

/* ---------- Мелкие элементы ---------- */
.beacon {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgb(var(--accent-rgb) / .9);
}
.beacon::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: beacon 2.4s var(--ease) infinite;
}
@keyframes beacon {
  0% { transform: scale(1); opacity: .9; }
  70%, 100% { transform: scale(3.2); opacity: 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 15px 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(var(--accent-rgb) / .08);
  color: var(--accent-text);
  font: 600 12px/1 var(--font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* запас снизу, чтобы не обрезались выносные «д», «р» */
  padding-bottom: .12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Кнопки ---------- */
.btn {
  --h: 56px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  background-size: 160% 100%;
  background-position: 0 0;
  color: var(--btn-text);
  font: 650 16px/1 var(--font-display);
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 12px 32px -12px rgb(var(--glow-rgb) / .75), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-position .5s var(--ease), background-color .3s, border-color .3s, color .3s;
}
/* блик, пробегающий при наведении */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .8s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 18px 40px -12px rgb(var(--glow-rgb) / .9), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn:hover::after { transform: translateX(130%); }
.btn:active { transform: translateY(0); }

.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--ghost {
  background: var(--ghost-bg);
  color: var(--ink);
  border: 1px solid var(--line-2);
  box-shadow: none;
}
.btn--ghost:hover {
  background: var(--ghost-bg-hover);
  border-color: var(--ghost-border-hover);
  box-shadow: 0 12px 30px -16px rgb(var(--glow-rgb) / .6);
}
.btn--ghost::after { background: linear-gradient(105deg, transparent 30%, rgb(var(--accent-rgb) / .16) 50%, transparent 70%); }

.btn--sm { --h: 42px; padding: 0 18px; font-size: 14.5px; gap: 8px; }
.btn--sm .icon { width: 16px; height: 16px; }
.btn--lg { --h: 64px; padding: 0 34px; font-size: 17px; }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  transition: background-color .35s, backdrop-filter .35s, border-color .35s;
}
.header.is-scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line-2);
}
.header__inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.header__link {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  color: var(--ink);
  font: 500 15px/1 var(--font-display);
  text-decoration: none;
  opacity: .85;
  transition: opacity .25s, color .25s;
}
.header__link:hover { opacity: 1; color: var(--accent-text); }
.header__cta { justify-self: end; }

.logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.logo__mark {
  width: 36px;
  height: 36px;
  flex: none;
  transition: transform .8s var(--ease);
}
.logo:hover .logo__mark { transform: translateX(-2px) scale(1.06); }
.logo__text { display: flex; flex-direction: column; align-items: center; }
/* разрядка добавляет пробел после последней буквы: отрицательное поле возвращает оптический центр */
.logo__word {
  margin-right: -.12em;
  font: 600 22px/1 var(--font-mark);
  letter-spacing: .12em;
}
.logo__sub {
  margin-top: 5px;
  margin-right: -.6em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font: 650 9px/1 var(--font-mark);
  letter-spacing: .6em;
}
.logo--lg .logo__mark { width: 46px; height: 46px; }
.logo--lg .logo__word { font-size: 29px; }
.logo--lg .logo__sub { margin-top: 6px; font-size: 11px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + clamp(32px, 6vh, 72px)) 0 clamp(32px, 5vh, 56px);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.h1 {
  /* «Безопасный международный» (~15,2em) помещается в одну строку контейнера, «VPN» — на второй */
  font: 800 clamp(44px, 6vw, 78px)/.98 var(--font-display);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.lead {
  max-width: 44em;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 19px);
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

/* ---------- Секции ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 760px; }
.section-head--center { margin: 0 auto; text-align: center; }
.h2 {
  font: 800 clamp(34px, 4.6vw, 58px)/1.02 var(--font-display);
  letter-spacing: -.02em;
  text-wrap: balance;
}

/* ---------- Тарифы ---------- */
.tariffs { padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(56px, 7vw, 96px); }
.how { padding-top: clamp(56px, 7vw, 96px); }

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.plan {
  --mx: 50%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 38px 30px 30px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--plan-bg);
  box-shadow: var(--shadow-card), inset 0 1px 0 var(--plan-hl);
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s;
}
/* подсветка, бегущая за курсором */
.plan::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(420px circle at var(--mx) var(--my), var(--plan-spot), transparent 45%),
    var(--plan-spot-2);
  opacity: 0;
  transition: opacity .4s;
}
.plan:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow-card-hover), inset 0 1px 0 var(--plan-hl); }
.plan:hover::before { opacity: 1; }

.plan__badge {
  position: absolute;
  top: 0;
  left: 26px;
  transform: translateY(-50%);
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font: 800 12px/1 var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px -8px rgba(4, 19, 31, .5);
}
.plan__title {
  font: 700 23px/1.2 var(--font-display);
  letter-spacing: -.015em;
}
.plan__size {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 24px 0 0;
}
.plan__num {
  display: inline-block;
  padding: .04em .03em 0 0;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font: 800 clamp(76px, 7.4vw, 100px)/.9 var(--font-display);
  letter-spacing: -.03em;
}
.plan__x {
  display: inline-block;
  margin: 0 .06em;
  font-size: .5em;
  letter-spacing: 0;
  vertical-align: .22em;
}
.plan__unit {
  color: var(--muted);
  font: 600 26px/1 var(--font-display);
  letter-spacing: -.01em;
}
.plan__text {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 16px;
}

.plan__facts {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.plan__facts li {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink);
  font: 600 14px/1.2 var(--font-body);
}
/* число людей в семейном тарифе — главное отличие от персонального */
.plan__facts .plan__people {
  border-color: transparent;
  background: var(--grad);
  color: var(--btn-text);
  font-weight: 800;
}

.plan__prices {
  margin: 0 0 22px;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.plan__prices li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.plan__term {
  color: var(--muted);
  font: 600 16px/1.2 var(--font-body);
}
.plan__price {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 2px 10px;
  text-align: right;
}
.plan__price b {
  font: 800 23px/1.1 var(--font-display);
  letter-spacing: -.015em;
  white-space: nowrap;
}
.plan__price s {
  color: var(--dim);
  font: 600 16px/1.1 var(--font-display);
  white-space: nowrap;
}
.plan__price small {
  flex-basis: 100%;
  color: var(--muted);
  font: 500 13px/1.3 var(--font-body);
}
.plan__price .plan__off { color: var(--accent-text); font-weight: 700; }
.plan__note {
  margin: -6px 0 22px;
  color: var(--dim);
  font-size: 14px;
}
.plan__cta { width: 100%; margin-top: auto; }

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

/* самый выгодный: бегущая по рамке подсветка */
@property --spin {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.plan--best { border-color: var(--line-2); }
.plan--best::after {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--spin), transparent 0deg, var(--accent) 50deg, var(--blue) 90deg, transparent 140deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 6s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { --spin: 360deg; } }
.plan--best .plan__badge {
  background: var(--grad);
  color: var(--btn-text);
  box-shadow: 0 10px 26px -8px rgb(var(--glow-rgb) / .75);
}

.plans__note {
  margin-top: 30px;
  text-align: center;
  color: var(--dim);
  font-size: 15px;
}

/* ---------- Как подключиться ---------- */
.how { overflow: hidden; }
.how::before {
  /* мягкое свечение за маршрутом */
  content: '';
  position: absolute;
  left: 50%;
  top: 55%;
  width: min(1100px, 120vw);
  height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgb(var(--glow-rgb) / .09), transparent);
  pointer-events: none;
}

.route {
  --buoy: 68px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}
/* пунктир маршрута между буями */
.route::before {
  content: '';
  position: absolute;
  top: calc(var(--buoy) / 2 - 1px);
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 2px;
  background: repeating-linear-gradient(90deg, rgb(var(--accent-rgb) / .75) 0 10px, transparent 10px 20px);
  animation: route-flow 1.4s linear infinite;
}
@keyframes route-flow { to { background-position: 20px 0; } }

.route__step {
  position: relative;
  padding: 0 12px;
  text-align: center;
}
.route__buoy {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--buoy);
  height: var(--buoy);
  margin: 0 auto 24px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--buoy-bg);
  color: var(--accent-text);
  font: 800 19px/1 var(--font-display);
  letter-spacing: -.02em;
  /* «вырез» в пунктире вокруг буя */
  box-shadow: 0 0 0 7px var(--bg), 0 0 36px rgb(var(--glow-rgb) / .26);
}
.route__buoy::after {
  /* проблесковый огонь буя */
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgb(var(--accent-rgb) / .7);
  opacity: 0;
  animation: flash 3.6s var(--ease) infinite;
}
.route__step:nth-child(2) .route__buoy::after { animation-delay: 1.2s; }
.route__step:nth-child(3) .route__buoy::after { animation-delay: 2.4s; }
@keyframes flash {
  0% { transform: scale(.9); opacity: 0; }
  8% { opacity: 1; }
  40%, 100% { transform: scale(1.5); opacity: 0; }
}
.route__title {
  margin-bottom: 10px;
  font: 700 22px/1.25 var(--font-display);
  letter-spacing: -.015em;
}
.route__text { color: var(--muted); }

.how__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 64px;
}
.how__note { color: var(--dim); font-size: 14px; }

/* ---------- Подвал ---------- */
.footer {
  position: relative;
  overflow: hidden;
  padding-top: 64px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgb(var(--glow-rgb) / .06));
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 36px 48px;
}
.footer__tag {
  max-width: 22em;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 6px;
}
.footer__links a {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  transition: color .25s;
}
.footer__links a:hover,
.footer__links a[aria-current='page'] { color: var(--accent-text); }
.footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
}
.footer__giant {
  margin-top: 18px;
  margin-bottom: -.2em;
  background: linear-gradient(180deg, rgb(var(--accent-rgb) / .2), rgb(var(--accent-rgb) / 0) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font: 600 clamp(48px, 12.4vw, 196px)/1 var(--font-mark);
  letter-spacing: .12em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

/* ---------- Документы ---------- */
.header--doc { background: var(--header-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.header--doc .header__inner { grid-template-columns: 1fr auto; }
.back-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 500 15px/1 var(--font-display);
  text-decoration: none;
  transition: color .25s;
}
.back-link .icon { transform: rotate(180deg); width: 16px; height: 16px; }
.back-link:hover { color: var(--accent-text); }

.doc { padding: calc(var(--header-h) + 64px) 0 96px; }
.doc__inner { max-width: calc(780px + var(--gutter) * 2); }
.doc h1 {
  font: 800 clamp(32px, 4.4vw, 50px)/1.05 var(--font-display);
  letter-spacing: -.015em;
  text-wrap: balance;
}
.doc__meta { margin-top: 14px; color: var(--dim); font-size: 15px; }
.doc h2 {
  margin: 44px 0 14px;
  font: 700 22px/1.3 var(--font-display);
  letter-spacing: -.01em;
}
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc ul { margin: 0; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--accent); }
.doc a { color: var(--accent-text); text-underline-offset: 3px; }
.doc mark {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgb(var(--accent-rgb) / .16);
  color: var(--accent-text);
}
/* реквизиты оператора: строки «название — значение» */
.doc__card {
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgb(var(--accent-rgb) / .05);
  overflow: hidden;
}
.doc__card > div {
  display: grid;
  grid-template-columns: minmax(150px, 230px) 1fr;
  gap: 4px 24px;
  padding: 14px 22px;
}
.doc__card > div + div { border-top: 1px solid var(--line); }
.doc__card dt { color: var(--dim); font-size: 15px; }
.doc__card dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.doc__note { display: block; margin-top: 2px; color: var(--dim); font-size: 14px; }

/* ---------- Появление при прокрутке ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .hero__copy { max-width: 680px; }
  .h1 { font-size: clamp(32px, calc(10.6vw - 2px), 76px); }
}

@media (min-width: 901px) {
  .plan__facts { min-height: 78px; }
}

@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; gap: 34px; }
  .route { grid-template-columns: 1fr; gap: 0; max-width: 460px; margin-left: auto; margin-right: auto; }
  .route::before {
    top: calc(var(--buoy) / 2);
    bottom: calc(var(--buoy) / 2 + 40px);
    left: calc(var(--buoy) / 2 - 1px);
    right: auto;
    width: 2px;
    height: auto;
    background: repeating-linear-gradient(180deg, rgb(var(--accent-rgb) / .75) 0 10px, transparent 10px 20px);
    animation-name: route-flow-y;
  }
  .route__step {
    display: grid;
    grid-template-columns: var(--buoy) 1fr;
    column-gap: 22px;
    padding: 0 0 36px;
    text-align: left;
  }
  .route__step:last-child { padding-bottom: 0; }
  .route__buoy { grid-row: span 2; margin: 0; }
  .route__title { align-self: end; margin: 8px 0 6px; }
}
@keyframes route-flow-y { to { background-position: 0 20px; } }

@media (max-width: 720px) {
  :root { --header-h: 64px; --radius: 24px; }
  .header__link { display: none; }
  .header__inner { grid-template-columns: 1fr auto; }
  .logo__mark { width: 32px; height: 32px; }
  .logo__word { font-size: 19px; }
  .hero__actions .btn { flex: 1 1 220px; }
  .plan { padding: 34px 24px 24px; }
  .footer__top { flex-direction: column; }
  .doc__card > div { grid-template-columns: 1fr; padding: 13px 18px; }
}

@media (max-width: 380px) {
  .logo { gap: 8px; }
  .logo__word { font-size: 17px; }
  .header__cta { padding: 0 14px; }
  .header__cta .icon { display: none; }
}

@media (hover: none) {
  .plan:hover { transform: none; }
  .plan::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html, .page { scroll-behavior: auto; }
  .waves-drift, .waves-drift-back { animation: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
