/* engivpn — лендинг. Один файл стилей; палитра — как в личном кабинете. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("./assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("./assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("./assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000;
  --surface: #0f0f0f;
  --surface-2: #151515;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #f4f6fa;
  --muted: #a2a9b6;
  --accent: #0045ad;
  --accent-hover: #0754c7;
  --accent-bright: #4d8dff;
  --accent-light: #8fb6ff;
  --accent-soft: rgba(0, 69, 173, .16);
  --glow: rgba(0, 69, 173, .55);
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

/* Фон только у html: иначе фон body закроет звёздное небо (canvas с z-index: -1). */
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main, .site-footer { overflow-x: clip; }

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.starfield { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

.grad {
  background: linear-gradient(100deg, #b7d0ff 0%, #6aa0ff 45%, #2f74f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Кнопки ---------- */

.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px;
  border: 1px solid transparent; border-radius: 12px;
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1;
  color: var(--text); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn .i { width: 18px; height: 18px; }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 12px 32px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 16px 40px -12px rgba(7, 84, 199, .75), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-strong); }
.btn-ghost:hover { color: #fff; background: rgba(0, 69, 173, .14); border-color: rgba(77, 141, 255, .55); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Шапка и меню ---------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, .72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.brand:hover { color: #fff; }
.brand-icon { width: 36px; height: 36px; border-radius: 24%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 6px 20px -6px var(--glow); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none;
  transition: color .2s, background-color .2s, box-shadow .2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a.is-active { color: #fff; background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(77, 141, 255, .3); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-link { padding: 8px 12px; color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; }
.header-link:hover { color: var(--text); }

.burger {
  position: relative; display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: rgba(15, 15, 15, .6); cursor: pointer;
}
.burger[hidden] { display: none !important; }
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #fff;
  transition: top .35s var(--ease), transform .35s var(--ease);
}
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 26px; }
.menu-open .burger { border-color: rgba(77, 141, 255, .5); background: rgba(0, 69, 173, .2); }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* Полноэкранное меню. Лежит вне шапки: backdrop-filter шапки сломал бы position: fixed. */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; overflow-y: auto;
  padding: calc(var(--header-h) + 28px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background:
    radial-gradient(90% 55% at 50% 115%, rgba(0, 69, 173, .55), transparent 70%),
    radial-gradient(60% 40% at 100% 0%, rgba(0, 69, 173, .18), transparent 70%),
    rgba(0, 0, 0, .94);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  visibility: hidden; opacity: 0;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.menu-open .mobile-menu { visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
.menu-open, .menu-open body { overflow: hidden; }
.menu-open .site-header { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a,
.mobile-menu-actions { opacity: 0; transform: translateY(18px); transition: opacity .25s, transform .25s; }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none;
  font-size: clamp(30px, 8.5vw, 40px); font-weight: 750; letter-spacing: -.035em;
}
.mobile-nav a .i { width: 26px; height: 26px; color: var(--accent-bright); }
.mobile-nav a:hover, .mobile-nav a:active { color: var(--accent-light); }
.menu-open .mobile-nav a,
.menu-open .mobile-menu-actions {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease) calc(var(--i) * 60ms + 90ms), transform .5s var(--ease) calc(var(--i) * 60ms + 90ms);
}
.mobile-menu-actions { display: grid; gap: 12px; margin-top: auto; padding-top: 32px; }

/* ---------- Первый экран ---------- */

.hero { position: relative; padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(24px, 4vw, 48px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 55% at 78% 42%, rgba(0, 69, 173, .32), transparent 70%),
    radial-gradient(35% 40% at 10% 0%, rgba(0, 69, 173, .14), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero-copy { animation: rise .9s var(--ease) both; }
.hero h1 { font-size: clamp(44px, 6.1vw, 80px); line-height: .98; letter-spacing: -.05em; margin-bottom: 24px; }
.lead { max-width: 520px; margin-bottom: 36px; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); }

.hero-visual {
  position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; justify-self: center;
  animation: fade 1.2s var(--ease) .15s both;
}
.orbit-system {
  position: absolute; inset: 0;
  transform: translate3d(calc(var(--mx, 0) * 12px), calc(var(--my, 0) * 12px), 0);
  transition: transform .8s var(--ease);
}
.halo {
  position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 69, 173, .6) 0%, rgba(0, 69, 173, .2) 42%, transparent 70%);
  animation: pulse 7s ease-in-out infinite;
}
.ring {
  --dir: normal; --dir-inv: reverse;
  position: absolute; inset: var(--inset); border-radius: 50%;
  border: 1px solid rgba(143, 182, 255, .16);
  animation: spin var(--dur) linear infinite var(--dir);
}
.ring::after {
  content: ""; position: absolute; top: 50%; left: -3px;
  width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: var(--accent-bright); box-shadow: 0 0 14px 2px rgba(77, 141, 255, .8);
}
.ring-1 { --inset: 29%; --dur: 40s; }
.ring-2 { --inset: 15%; --dur: 80s; --dir: reverse; --dir-inv: normal; }
.ring-3 { --inset: 1%; --dur: 120s; border-style: dashed; border-color: rgba(143, 182, 255, .12); }
.sat {
  position: absolute;
  left: 50%; top: 0;
  left: calc(50% + 50% * cos(var(--a)));
  top: calc(50% + 50% * sin(var(--a)));
  translate: -50% -50%;
  animation: spin var(--dur) linear infinite var(--dir-inv);
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px 8px 10px; border-radius: 999px;
  background: rgba(10, 12, 18, .85); border: 1px solid rgba(143, 182, 255, .24);
  box-shadow: 0 10px 28px -10px rgba(0, 69, 173, .7);
  font-size: 14px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.core {
  position: absolute; inset: 37%; border-radius: 24%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 80px -20px rgba(0, 69, 173, .95), 0 0 70px rgba(0, 69, 173, .45);
  transform: translate3d(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -10px), 0);
  transition: transform .8s var(--ease);
}
.core img { width: 100%; height: 100%; border-radius: inherit; }

.horizon { position: relative; height: clamp(120px, 17vw, 240px); margin-top: -20px; overflow: hidden; pointer-events: none; }
.horizon::before {
  content: ""; position: absolute; left: 50%; top: 58%;
  width: 200vw; height: 200vw; transform: translateX(-50%); border-radius: 50%;
  border-top: 1px solid rgba(143, 182, 255, .55);
  background: #000;
  box-shadow: 0 -40px 120px -30px rgba(0, 69, 173, .9), inset 0 40px 90px -50px rgba(77, 141, 255, .45);
}
.horizon-word {
  position: absolute; left: 50%; bottom: 30%; transform: translateX(-50%);
  font-size: clamp(92px, 21vw, 300px); font-weight: 800; letter-spacing: -.06em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(143, 182, 255, .12); white-space: nowrap;
}

.stats {
  list-style: none; margin: 0; padding: 28px 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.stats li { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.stats b { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.stats li:first-child b { color: var(--accent-light); }
.stats span { color: var(--muted); font-size: 14px; }

/* ---------- Секции ---------- */

.section { position: relative; padding: clamp(80px, 11vw, 150px) 0 0; }
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 760px; margin-bottom: 44px; }
h2 { font-size: clamp(36px, 5.2vw, 64px); letter-spacing: -.045em; }
.section-head p { color: var(--muted); font-size: 18px; }

/* ---------- «Всё нужное»: секция замирает, карточки едут ---------- */

.features { position: relative; padding-top: clamp(80px, 11vw, 150px); }
.features-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 44px; }
.features-head p { max-width: 380px; color: var(--muted); font-size: 18px; }
.features-track {
  position: relative; list-style: none; margin: 0 auto; padding: 0 var(--gutter);
  max-width: calc(var(--container) + 2 * var(--gutter));
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.fcard {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; min-height: 380px; padding: 32px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 60%), var(--surface);
}
.fcard::before {
  content: ""; position: absolute; z-index: -1; right: -35%; top: -45%; width: 90%; height: 90%;
  background: radial-gradient(closest-side, rgba(0, 69, 173, .38), transparent);
  transform: translate3d(var(--gx, 0px), 0, 0);
}
.fcard-icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 28px;
  border-radius: 16px; color: #fff;
  background: linear-gradient(145deg, #1b6cf2 0%, var(--accent) 55%, #00307a 100%);
  box-shadow: 0 14px 30px -12px rgba(0, 69, 173, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
  transform: translate3d(0, var(--iy, 0px), 0);
}
.fcard-icon .i { width: 26px; height: 26px; }
.fcard h3 { margin-bottom: 12px; font-size: 26px; }
.fcard p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 28px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  color: #dfe6f3; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.tag-accent { border-color: rgba(77, 141, 255, .35); background: var(--accent-soft); color: var(--accent-light); }
.features-progress { display: none; height: 3px; margin-top: 40px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.features-progress span {
  display: block; height: 100%; transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  box-shadow: 0 0 12px rgba(77, 141, 255, .6);
}

/* Режим «закрепления»: включает app.js, если позволяет экран и нет prefers-reduced-motion. */
.features.is-pinned { padding-top: 0; }
.features.is-pinned .features-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h);
}
.features.is-pinned .features-track {
  display: flex; gap: 24px; width: max-content; max-width: none; margin: 0;
  padding-inline: var(--edge, var(--gutter));
  will-change: transform;
}
.features.is-pinned .fcard {
  flex: none; width: clamp(300px, 33vw, 420px);
  transform: scale(var(--s, 1)); opacity: var(--o, 1);
}
.features.is-pinned .features-progress { display: block; }

/* ---------- Тарифы ---------- */

.pricing::before {
  content: ""; position: absolute; inset: 10% 0 auto; height: 70%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 69, 173, .18), transparent 70%);
}
.period-switch {
  display: inline-flex; gap: 4px; padding: 4px; margin-top: 8px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(15, 15, 15, .8);
}
.period-switch[hidden] { display: none; }
.period-switch button {
  padding: 10px 18px; border: 0; border-radius: 10px; background: none;
  color: var(--muted); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.period-switch button:hover { color: var(--text); }
.period-switch button[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px var(--glow); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 32px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
}
.plan h3 { font-size: 24px; }
.plan-desc { margin-top: 6px; color: var(--muted); font-size: 15px; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 28px; }
.plan-price b { font-size: clamp(40px, 4.2vw, 52px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.plan-price span { color: var(--muted); font-weight: 600; }
.plan-note { min-height: 1.6em; margin-top: 8px; color: var(--accent-light); font-size: 14px; font-weight: 700; }
.plan-list { list-style: none; margin: 24px 0 32px; padding: 20px 0 0; display: grid; gap: 12px; border-top: 1px solid var(--line); }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #dfe6f3; }
.plan-list .i { width: 18px; height: 18px; margin-top: 3px; color: var(--accent-bright); stroke-width: 2.4; }
.plan-btn { margin-top: auto; width: 100%; }
.plan-featured {
  border-color: rgba(77, 141, 255, .45);
  background: radial-gradient(120% 60% at 50% 0%, rgba(0, 69, 173, .32), transparent 60%), var(--surface);
  box-shadow: 0 30px 80px -40px rgba(0, 69, 173, .9), inset 0 1px 0 rgba(143, 182, 255, .2);
}
.plan-featured .plan-price b { color: #fff; }

.trial {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  margin-top: 20px; padding: 28px 32px;
  border: 1px solid rgba(77, 141, 255, .28); border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(0, 69, 173, .22), rgba(0, 69, 173, .04) 70%), var(--surface);
}
.trial h3 { font-size: 26px; }
.trial p { margin-top: 6px; color: var(--muted); }

/* ---------- Шаги ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.step-n {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 28px;
  border-radius: 14px; border: 1px solid rgba(77, 141, 255, .4);
  background: var(--accent-soft); color: var(--accent-light); font-size: 20px; font-weight: 800;
}
.step h3 { margin-bottom: 10px; font-size: 22px; }
.step p { color: var(--muted); }

/* ---------- Рефералка ---------- */

.referral { margin-top: clamp(64px, 8vw, 100px); }
.referral-card {
  display: flex; align-items: center; gap: 24px 28px; padding: 32px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: radial-gradient(60% 120% at 0% 50%, rgba(0, 69, 173, .22), transparent 70%), var(--surface);
}
.referral-icon {
  display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 18px; color: #fff;
  background: linear-gradient(145deg, #1b6cf2, var(--accent) 55%, #00307a);
  box-shadow: 0 14px 30px -12px rgba(0, 69, 173, .9);
}
.referral-icon .i { width: 30px; height: 30px; }
.referral-text { flex: 1; }
.referral-text h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.035em; }
.referral-text p { margin-top: 8px; color: var(--muted); }

/* ---------- Вопросы ---------- */

.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 32px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.faq-head p { color: var(--muted); font-size: 18px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  position: relative; display: block; padding: 22px 48px 22px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 700; letter-spacing: -.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before,
.faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; margin-top: -1px;
  border-radius: 2px; background: var(--accent-bright); transition: transform .3s var(--ease);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list summary:hover { color: var(--accent-light); }
.faq-list details p { padding: 0 48px 24px 0; color: var(--muted); }

/* ---------- Финал и подвал ---------- */

.final { margin-top: clamp(80px, 11vw, 150px); }
.final-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
  padding: clamp(48px, 7vw, 88px) 24px;
  border: 1px solid rgba(77, 141, 255, .3); border-radius: 32px; background: var(--surface);
}
.final-card::before {
  content: ""; position: absolute; inset: auto -20% -60%; height: 120%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 69, 173, .6), transparent 70%);
}
.final-icon { width: 88px; height: 88px; border-radius: 24%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 20px 60px -15px rgba(0, 69, 173, .95); }
.final-card h2 { font-size: clamp(30px, 5vw, 60px); }
.final-card p { color: var(--muted); font-size: 18px; }
.final-card .actions { justify-content: center; margin-top: 8px; }

.site-footer { margin-top: clamp(64px, 8vw, 100px); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; padding-block: 32px; }
.footer-inner .brand { font-size: 18px; }
.footer-inner .brand-icon { width: 32px; height: 32px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.footer-nav a, .copyright { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer-nav a:hover { color: var(--text); }

.cookie {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70;
  display: flex; align-items: center; gap: 16px; max-width: 460px; padding: 14px 14px 14px 18px;
  border: 1px solid var(--line-strong); border-radius: 16px;
  background: rgba(15, 15, 15, .92); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease);
}
.cookie.is-shown { opacity: 1; transform: none; }
.cookie p { color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ---------- Флаги (чтобы не зависеть от эмодзи в Windows) ---------- */

.flag { flex: none; width: 20px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.flag-pl { background: linear-gradient(#fff 50%, #dc143c 50%); }
.flag-nl { background: linear-gradient(#ae1c28 33.3%, #fff 33.3% 66.6%, #21468b 66.6%); }
.flag-de { background: linear-gradient(#000 33.3%, #dd0000 33.3% 66.6%, #ffce00 66.6%); }
.flag-ru { background: linear-gradient(#fff 33.3%, #0039a6 33.3% 66.6%, #d52b1e 66.6%); }
.flag-fi {
  background:
    linear-gradient(90deg, transparent 28%, #002f6c 28% 45%, transparent 45%),
    linear-gradient(transparent 36%, #002f6c 36% 64%, transparent 64%),
    #fff;
}

/* ---------- Появление при прокрутке (app.js прячет только то, что ниже экрана) ---------- */

.reveal-ready .reveal:not(.is-in) { opacity: 0; transform: translateY(28px); }
.reveal-ready .reveal { transition: opacity .8s var(--ease) calc(var(--d, 0) * 90ms), transform .8s var(--ease) calc(var(--d, 0) * 90ms); }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes fade { from { opacity: 0; transform: scale(.96); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .7; transform: scale(1.05); } }

/* ---------- Адаптив ---------- */

@media (max-width: 1080px) {
  .features-track, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans .plan-featured { grid-column: span 2; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav, .header-link, .header-actions .btn { display: none; }
  .header-actions { margin-left: auto; }
  .burger { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero-visual { max-width: min(420px, 88vw); }
  .features-head { flex-direction: column; align-items: flex-start; }
  .plans, .steps { grid-template-columns: 1fr; }
  .plans .plan-featured { grid-column: auto; }
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq-head { position: static; }
  .referral-card { flex-direction: column; align-items: flex-start; }

  /* Без JS бургер не работает — показываем ссылки строкой под логотипом. */
  html:not(.js) .site-header { position: absolute; height: auto; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .nav { display: flex; order: 3; width: 100%; margin: 0; overflow-x: auto; }
  html:not(.js) .hero { padding-top: calc(var(--header-h) + 96px); }
}

@media (min-width: 901px) {
  .mobile-menu { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .features-head p { display: none; }
  .features-track { grid-template-columns: 1fr; }
  .features.is-pinned .features-track { gap: 14px; }
  .features.is-pinned .fcard { width: min(84vw, 360px); min-height: 360px; }
  .fcard, .plan, .step, .referral-card { padding: 26px; }
  .features-head { margin-bottom: 28px; }
  .features-progress { margin-top: 28px; }
  .chip { padding: 6px 10px 6px 8px; font-size: 12px; gap: 6px; }
  .chip .flag { width: 16px; height: 11px; }
  .hero .actions .btn, .final-card .actions .btn { width: 100%; }
  .trial { padding: 26px; }
  .trial .btn { width: 100%; }
  .faq-list summary { font-size: 17px; }
  .footer-nav { margin-left: 0; }
  .cookie { right: 16px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
