/* ==========================================================================
   Demure VPN — дизайн-система по постерам: монохром, «разрез» под ~35°,
   логотип d, вордмарк DEMURE / V P N, «проклятое пламя» в углу.
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg: #0B0B0C;
  --bg-1: #111113;
  --bg-2: #161618;
  --bg-3: #1E1E21;
  --fg: #FFFFFF;
  --fg-2: #B9B9BD;
  --fg-3: #77777D;
  --slash: #2E2E31;
  --border: #1F1F22;
  --border-2: #2C2C30;
  --inv-bg: #FFFFFF;
  --inv-fg: #0B0B0C;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
  --glass: rgba(11, 11, 12, .72);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-1: #F7F7F8;
  --bg-2: #F1F1F3;
  --bg-3: #E8E8EB;
  --fg: #0B0B0C;
  --fg-2: #4A4A4F;
  --fg-3: #8A8A90;
  --slash: #D9D9DC;
  --border: #ECECEF;
  --border-2: #DCDCE0;
  --inv-bg: #0B0B0C;
  --inv-fg: #FFFFFF;
  --shadow: 0 24px 60px -28px rgba(11, 11, 12, .28);
  --glass: rgba(255, 255, 255, .78);
  color-scheme: light;
}

:root {
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --radius: 20px;
  --radius-sm: 12px;
  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
p { margin: 0; }
.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding-left: .05em;
}
.muted { color: var(--fg-2); }
.dim { color: var(--fg-3); }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, opacity .2s;
  user-select: none;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--inv-bg); color: var(--inv-fg); }
.btn--primary:hover { opacity: .88; }
.btn--ghost { border-color: var(--border-2); background: transparent; }
.btn--ghost:hover { border-color: var(--fg); }
.btn--soft { background: var(--bg-2); }
.btn--soft:hover { background: var(--bg-3); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--xs { --h: 32px; padding: 0 14px; font-size: 13px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .4; pointer-events: none; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border-radius: 999px; border: 1px solid var(--border-2); background: transparent;
  transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--fg); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { height: 30px; width: auto; fill: currentColor; }
.brand__word { height: 13px; width: auto; fill: currentColor; }
.brand__tag { font-size: 10px; letter-spacing: .5em; color: var(--fg-3); font-weight: 600; margin-left: -2px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-solid {
  background: var(--glass);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--border);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--fg-2);
  transition: color .2s, background-color .2s;
}
.nav a:hover, .nav a.is-active { color: var(--fg); background: var(--bg-2); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav + .header-actions { margin-left: 8px; }
.burger { display: none; }
.theme-toggle .i-sun { display: none; }
[data-theme="light"] .theme-toggle .i-sun { display: block; }
[data-theme="light"] .theme-toggle .i-moon { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  background: var(--bg);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  overflow: hidden;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a.mm-link { font-size: 30px; font-weight: 700; letter-spacing: -.02em; padding: 8px 0; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 20px; }
.mobile-menu .flames { width: 70vw; opacity: .9; }
body.menu-open { overflow: hidden; }

/* ---------- slash / flames motifs ---------- */
.slash-line { stroke: var(--slash); stroke-width: 1.25; fill: none; }
.slash {
  position: absolute; left: var(--sx, 50%); top: var(--sy, 50%);
  width: 400vmax; height: 1px; background: var(--slash);
  transform: translate(-50%, -50%) rotate(-35deg);
  pointer-events: none;
}
.flames {
  position: absolute; right: 0; bottom: 0;
  width: clamp(200px, 30vw, 520px);
  aspect-ratio: 1220 / 1040;
  background: var(--fg);
  -webkit-mask: url(../img/flames.svg) right bottom / contain no-repeat;
  mask: url(../img/flames.svg) right bottom / contain no-repeat;
  pointer-events: none;
}
.flames--drift { animation: drift 9s ease-in-out infinite alternate; transform-origin: 100% 100%; }
@keyframes drift {
  0% { transform: translate(0, 0) rotate(0); }
  100% { transform: translate(-10px, -8px) rotate(-1.2deg); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100svh, 980px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 120px;
}
.hero__grid {
  --mark-h: clamp(300px, 56vh, 540px);
  position: relative; z-index: 2;
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.hero__mark { height: var(--mark-h); }
.hero__mark svg { height: 100%; width: auto; overflow: visible; fill: var(--fg); }
.hero__mark .slash-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: slash 1.1s var(--ease) .15s forwards; }
.hero__mark .mark-top { animation: slice 1.2s var(--ease) .75s both; }
.hero__mark .slash-line { pointer-events: none; }
/* Шаринган в «глазке» буквы d — еле заметная отсылка к Саске.
   Полупрозрачный цвет разреза, медленно вращается; при наведении слегка краснеет и делает оборот. */
.hero__mark .eye { fill: var(--slash); color: var(--slash); opacity: 0; animation: eye-in 1.6s ease 1.9s forwards; transition: fill .6s ease, color .6s ease; }
.hero__mark .eye-spin { transform-origin: 0 0; transform-box: view-box; animation: eye-spin 48s linear infinite; }
.hero__mark .eye-turn { transform-origin: 0 0; transform-box: view-box; opacity: .14; transition: transform 1.4s var(--ease), opacity .6s ease; }
.hero__mark:hover .eye { fill: #C1121F; color: #C1121F; }
.hero__mark:hover .eye-turn { transform: rotate(360deg); opacity: .3; }
@keyframes eye-in { to { opacity: 1; } }
@keyframes eye-spin { to { transform: rotate(360deg); } }
@keyframes slash { to { stroke-dashoffset: 0; } }
@keyframes slice { from { transform: translate(-48px, 33.6px); } to { transform: none; } }

.hero__content { padding-top: calc(var(--mark-h) * .27); max-width: 540px; }
.hero__word { width: min(100%, 520px); height: auto; fill: var(--fg); }
.hero__vpn { width: calc(min(100%, 520px) * .29); height: auto; fill: var(--fg-2); margin-top: calc(min(100%, 520px) * .095); }
.hero__lead { margin-top: 32px; font-size: 18px; color: var(--fg-2); max-width: 500px; }
.hero__lead b { color: var(--fg); font-weight: 700; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--fg-3); font-weight: 600; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--fg-2); }
.hero .flames { width: min(30vw, 44vh, 540px); right: -1.5vw; bottom: -5vh; z-index: 1; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; z-index: 2; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .4em; color: var(--fg-3); text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint::after { content: ""; width: 1px; height: 36px; background: linear-gradient(var(--fg-3), transparent); animation: hint 2s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--border);
  overflow: hidden; white-space: nowrap;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: inline-flex; animation: marquee 38s linear infinite; }
.marquee__track span { font-size: 13px; font-weight: 600; letter-spacing: .5em; text-transform: uppercase; color: var(--fg-2); padding-right: 3.2em; }
.marquee__track span::after { content: "/"; margin-left: 3.2em; color: var(--fg-3); letter-spacing: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(40px, 6vw, 64px); max-width: 720px; }
.section-head h2 { font-size: clamp(34px, 5vw, 56px); }
.section-head p { color: var(--fg-2); font-size: 17px; max-width: 560px; }
.section-head--row { max-width: none; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.section-head--row > div { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }

/* ---------- cards / features ---------- */
.card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { position: relative; overflow: hidden; min-height: 230px; display: flex; flex-direction: column; transition: border-color .3s, transform .3s var(--ease); }
.feature:hover { border-color: var(--border-2); transform: translateY(-2px); }
.feature__icon { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--border-2); display: grid; place-items: center; margin-bottom: auto; }
.feature__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 20px; margin-top: 72px; }
.feature p { margin-top: 10px; color: var(--fg-2); font-size: 15px; }
.feature p a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.feature__num { position: absolute; top: 24px; right: 26px; font-size: 12px; color: var(--fg-3); letter-spacing: .2em; font-weight: 600; }
/* разрез на карточке при наведении: отсекает угол с иконкой от текста.
   Линия идёт из левого края на высоте 148px вверх под 35° —
   посередине между нижним правым углом иконки и началом заголовка. */
.feature::after {
  content: ""; position: absolute; left: 0; top: 148px; width: 420px; height: 1px;
  background: var(--slash); transform: rotate(-35deg) scaleX(0); transform-origin: 0 50%;
  transition: transform .6s var(--ease); pointer-events: none;
}
.feature:hover::after { transform: rotate(-35deg) scaleX(1); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 32px 28px 30px; }
.step__num { font-size: 64px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--fg-3); }
.step h3 { margin-top: 28px; font-size: 20px; }
.step p { margin-top: 10px; color: var(--fg-2); font-size: 15px; }
.step .btn { margin-top: 22px; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 28px 24px 24px; transition: border-color .3s, transform .3s var(--ease); }
.plan:hover { border-color: var(--border-2); transform: translateY(-3px); }
.plan__period { font-size: 14px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--fg-2); }
.plan__price { margin-top: 26px; font-size: 46px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.plan__price small { font-size: .5em; font-weight: 700; margin-left: 4px; letter-spacing: 0; }
.plan__month { margin-top: 10px; font-size: 14px; color: var(--fg-3); font-weight: 600; min-height: 22px; }
.plan__list { list-style: none; margin: 24px 0 28px; padding: 22px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--fg-2); }
.plan__list li { display: flex; gap: 10px; align-items: center; }
.plan__list svg { width: 16px; height: 16px; stroke: var(--fg); fill: none; stroke-width: 2; flex: none; }
.plan .btn { margin-top: auto; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px;
  border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  border: 1px solid var(--border-2); color: var(--fg-2); white-space: nowrap;
}
.plan .badge { position: absolute; top: 22px; right: 20px; }
.plan--featured { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-bg); }
.plan--featured .plan__period, .plan--featured .plan__list { color: color-mix(in srgb, var(--inv-fg) 72%, transparent); }
.plan--featured .plan__month { color: color-mix(in srgb, var(--inv-fg) 55%, transparent); }
.plan--featured .plan__list { border-color: color-mix(in srgb, var(--inv-fg) 14%, transparent); }
.plan--featured .plan__list svg { stroke: var(--inv-fg); }
.plan--featured .badge { background: var(--inv-fg); color: var(--inv-bg); border-color: var(--inv-fg); }
.plan--featured .btn--primary { background: var(--inv-fg); color: var(--inv-bg); }
.plan--featured::before {
  content: ""; position: absolute; width: 160%; height: 1px; left: -30%; top: 64%;
  background: color-mix(in srgb, var(--inv-fg) 14%, transparent); transform: rotate(-35deg); pointer-events: none;
}

.trial {
  margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 26px 28px; border-style: dashed; border-color: var(--border-2); background: transparent;
}
.trial__main { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.trial__price { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.trial__text strong { display: block; font-size: 17px; }
.trial__text span { color: var(--fg-2); font-size: 14px; }

.paybar { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; color: var(--fg-2); font-size: 14px; }
.paybar .label { margin-right: 6px; }
.paybar__item { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--fg); }
.paybar__item svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.paybar__note { margin-left: auto; color: var(--fg-3); }
.paybar__note a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- apps / tabs ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: nowrap; padding: 6px; border: 1px solid var(--border); border-radius: 999px; width: max-content; max-width: 100%; }
.tab {
  flex: none; white-space: nowrap;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent;
  font-weight: 700; font-size: 14px; color: var(--fg-2); transition: background-color .2s, color .2s;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { background: var(--inv-bg); color: var(--inv-fg); }
.tabs-scroll { overflow-x: auto; scrollbar-width: none; margin-bottom: 24px; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.app-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.app-list { display: flex; flex-direction: column; gap: 10px; }
.app-item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg-1); transition: border-color .2s; }
.app-item:hover { border-color: var(--fg-3); }
.app-item__logo { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-3); display: grid; place-items: center; font-weight: 800; font-size: 17px; flex: none; }
.app-item__name { font-weight: 700; }
.app-item__note { font-size: 13px; color: var(--fg-3); }
.app-item__go { margin-left: auto; width: 18px; height: 18px; stroke: var(--fg-3); fill: none; stroke-width: 2; flex: none; }
.howto { counter-reset: howto; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.howto li { counter-increment: howto; display: grid; grid-template-columns: 36px 1fr; gap: 14px; color: var(--fg-2); font-size: 15px; }
.howto li::before { content: counter(howto, decimal-leading-zero); font-weight: 800; color: var(--fg); font-size: 14px; padding-top: 1px; }
.howto b { color: var(--fg); }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 14px; height: 14px; flex: none;
  background:
    linear-gradient(var(--fg), var(--fg)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--fg), var(--fg)) center / 1.5px 100% no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 48px 26px 0; color: var(--fg-2); font-size: 15.5px; }
.faq .faq__a a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.faq .faq__a p + p { margin-top: 10px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: 28px; background: var(--bg-1);
  padding: clamp(40px, 7vw, 88px) clamp(28px, 6vw, 72px);
  min-height: 420px; display: flex; flex-direction: column; justify-content: center;
}
.cta svg.cta__line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta h2 { font-size: clamp(36px, 6vw, 72px); max-width: 640px; position: relative; }
.cta p { margin-top: 18px; color: var(--fg-2); max-width: 440px; font-size: 17px; position: relative; }
.cta .hero__actions { position: relative; }
.cta .flames { width: clamp(200px, 34%, 440px); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-grid ul a { overflow-wrap: break-word; }
.footer-grid h4 { font-size: 12px; letter-spacing: .38em; text-transform: uppercase; color: var(--fg-3); font-weight: 600; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-grid ul a { color: var(--fg-2); transition: color .2s; }
.footer-grid ul a:hover { color: var(--fg); }
.footer-about p { margin-top: 18px; color: var(--fg-3); font-size: 14px; max-width: 320px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--fg-3); }
.footer-word { margin-top: 56px; width: 100%; height: auto; fill: var(--bg-3); }

/* ---------- support widget ---------- */
.support { position: fixed; right: 20px; bottom: 20px; z-index: 40; }
.support__btn {
  height: 52px; padding: 0 20px 0 16px; border-radius: 999px; border: 1px solid var(--border-2);
  background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow);
  transition: transform .2s var(--ease), border-color .2s;
}
.support__btn:hover { border-color: var(--fg); }
.support__btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.support__panel {
  position: absolute; right: 0; bottom: 64px; width: min(340px, calc(100vw - 32px));
  background: var(--bg-1); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px) scale(.98); transform-origin: bottom right; visibility: hidden;
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.support.is-open .support__panel { opacity: 1; transform: none; visibility: visible; }
.support__panel h3 { font-size: 18px; }
.support__panel > p { margin-top: 6px; color: var(--fg-2); font-size: 14px; }
.support__links { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.support__link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); transition: border-color .2s; }
.support__link:hover { border-color: var(--fg-3); }
.support__link svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.support__link b { display: block; font-size: 14px; }
.support__link span { font-size: 12.5px; color: var(--fg-3); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .07s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .14s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .21s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .28s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .35s; }
html:not(.js) .reveal, html:not(.js) .reveal-stagger > * { opacity: 1; transform: none; }

/* ==========================================================================
   Документы (оферта / политика)
   ========================================================================== */
.doc-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 72px) 0 64px; border-bottom: 1px solid var(--border); }
.doc-hero h1 { margin-top: 20px; font-size: clamp(28px, 5.4vw, 64px); max-width: 820px; overflow-wrap: break-word; hyphens: auto; }
.doc-hero__meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--fg-3); font-size: 14px; }
.doc-hero .flames { width: clamp(160px, 22vw, 340px); opacity: .95; }
.doc-hero svg.doc-hero__line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.doc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); padding: 56px 0 120px; align-items: start; }
.doc-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.doc-toc ol { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--border); }
.doc-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14px; color: var(--fg-3); font-weight: 600; transition: color .2s, border-color .2s; }
.doc-toc a:hover { color: var(--fg); }
.doc-toc a.is-active { color: var(--fg); border-left-color: var(--fg); }
.doc-toc .doc-switch { margin-top: 28px; }
.doc-body { max-width: 760px; }
.doc-body section + section { margin-top: 56px; }
.doc-body h2 { font-size: clamp(22px, 2.6vw, 28px); display: flex; gap: 14px; align-items: baseline; }
.doc-body h2 .n { font-size: 13px; letter-spacing: .2em; color: var(--fg-3); font-weight: 700; min-width: 28px; }
.doc-body .cl { margin-top: 16px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 0 12px; color: var(--fg-2); font-size: 16px; line-height: 1.7; }
.doc-body .cl > .n { font-family: var(--mono); font-size: 13px; color: var(--fg-3); padding-top: 3px; }
.doc-body .cl a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.doc-body .cl strong { color: var(--fg); }
.doc-body ul.prices { list-style: none; margin: 14px 0 4px; padding: 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.doc-body ul.prices li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--fg-2); }
.doc-body ul.prices li:last-child { border-bottom: 0; }
.doc-body ul.prices b { color: var(--fg); }
.doc-note { margin-top: 64px; padding: 22px 24px; border: 1px dashed var(--border-2); border-radius: 16px; color: var(--fg-3); font-size: 14px; }
.doc-note a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }


/* ---------- 404 ---------- */
.nf { position: relative; overflow: hidden; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 24px) var(--gutter) 80px; }
.nf h1 { font-size: clamp(96px, 20vw, 220px); letter-spacing: -.06em; line-height: .9; position: relative; }
.nf p { margin: 18px auto 30px; color: var(--fg-2); max-width: 380px; position: relative; }
.nf > svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1200px) and (min-width: 901px) {
  .hero { padding-bottom: 190px; }
}

@media (max-width: 1080px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav, .header-actions .btn-cabinet { display: none; }
  .burger { display: inline-grid; }
  .header-actions, .nav + .header-actions { margin-left: auto; }
  .hero { min-height: auto; padding: calc(var(--header-h) + 36px) 0 200px; }
  .hero__grid { --mark-h: clamp(190px, 34vh, 260px); grid-template-columns: 1fr; row-gap: 36px; }
  .hero__mark { justify-self: start; margin-left: 8px; }
  .hero__content { padding-top: 0; }
  .hero__lead { margin-top: 26px; font-size: 16.5px; }
  .hero .flames { width: clamp(180px, 52vw, 300px); }
  .scroll-hint { display: none; }
  .steps { grid-template-columns: 1fr; }
  .app-panel { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap .section-head { position: static; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static; display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .brand__word { height: 11px; }
  .brand__mark { height: 26px; }
  .features { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .feature::after { top: 138px; }
  .plans { grid-template-columns: 1fr; }
  .plan__price { font-size: 40px; }
  .card { padding: 22px; }
  .faq summary { font-size: 16px; padding: 20px 0; }
  .faq .faq__a { padding-right: 0; }
  .paybar__note { margin-left: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .support { right: 12px; bottom: 12px; }
  .support__btn span { display: none; }
  .support__btn { padding: 0; width: 52px; justify-content: center; }
  .trial { padding: 22px; }
  .doc-body .cl { grid-template-columns: 36px minmax(0, 1fr); font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__mark .slash-line { stroke-dashoffset: 0; }
  .marquee__track { animation: none; }
}
