/* =========================================================================
   DWIGHT — стили лендинга
   Порядок: токены → сброс → типографика → кнопки/чипы → шапка → hero/HUD
            → программы → карточки → тарифы → FAQ → отзывы → футер
            → документ-окно → анимации → адаптив
   ====================================================================== */

/* -------------------------------------------------------------------------
   1. ТОКЕНЫ
   Меняешь тему — меняешь только этот блок.
   ---------------------------------------------------------------------- */
:root {
  /* Палитра «тушь и нефрит» */
  --ink:        #070b14;   /* фон страницы */
  --ink-2:      #0b1220;   /* фон секций-подложек */
  --panel:      #0e1626;   /* карточки */
  --panel-2:    #121c30;   /* карточки при наведении */
  --line:       #1b2740;   /* хайрлайны */
  --line-soft:  #14203a;

  --text:       #e9eefb;
  --muted:      #8092b0;
  --dim:        #5d6d8a;

  --jade:       #3de0b4;   /* основной акцент */
  --violet:     #8b6bff;   /* второй акцент */
  --gold:       #f0b429;   /* цены и «горячее» */

  --grad: linear-gradient(115deg, var(--violet) 0%, #4f8dff 45%, var(--jade) 100%);

  /* Типографика */
  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body:    "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "Consolas", monospace;

  /* Ритм */
  --shell:   1200px;
  --pad:     20px;
  --r-sm:    10px;
  --r:       16px;
  --r-lg:    22px;

  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* -------------------------------------------------------------------------
   2. СБРОС И БАЗА
   ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }   /* при открытом меню/модалке */

img, svg { max-width: 100%; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 700; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s var(--ease);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; border: 0; background: none; }

/* Фокус виден всегда — но не мешает мыши */
:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--jade);
  color: #04150f;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip:focus { left: 16px; }

/* Сетка-контейнер */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.shell--narrow { max-width: 820px; }

/* -------------------------------------------------------------------------
   3. ФОН
   Два размытых пятна + техническая сетка. Не перехватывает клики.
   ---------------------------------------------------------------------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.backdrop__glow {
  position: absolute;
  width: 60vw;
  height: 60vw;
  min-width: 420px;
  min-height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .16;
}
.backdrop__glow--jade   { top: -18vw; right: -12vw; background: var(--jade); }
.backdrop__glow--violet { top: 42vh;  left: -20vw;  background: var(--violet); opacity: .13; }

.backdrop__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 0%, transparent 75%);
}

/* Весь контент — над фоном */
.header, main, .footer { position: relative; z-index: 1; }

/* -------------------------------------------------------------------------
   4. ТИПОГРАФИКА И ОБЩИЕ БЛОКИ СЕКЦИЙ
   ---------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--jade);
}

.eyebrow__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 0 rgba(61, 224, 180, .55);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61, 224, 180, .5); }
  70%  { box-shadow: 0 0 0 9px rgba(61, 224, 180, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 224, 180, 0); }
}

.section { padding: 92px 0; }

.section__head {
  max-width: 660px;
  margin-bottom: 44px;
}

.section__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.section__lead {
  color: var(--muted);
  font-size: 17px;
}

/* -------------------------------------------------------------------------
   5. КНОПКИ И ЧИПЫ
   ---------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease),
              background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.btn--lg   { padding: 15px 30px; font-size: 16px; }
.btn--full { width: 100%; }

/* Основная — градиентная заливка */
.btn--primary {
  background: var(--grad);
  color: #05140f;
  box-shadow: 0 6px 22px -10px rgba(61, 224, 180, .8);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -12px rgba(61, 224, 180, .9);
}
.btn--primary:active { transform: translateY(0); }

/* Вторичная — стеклянная */
.btn--ghost {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(61, 224, 180, .45);
  color: #fff;
  transform: translateY(-2px);
}

/* Чипы-метки */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip--live {
  border-color: rgba(61, 224, 180, .35);
  background: rgba(61, 224, 180, .08);
  color: var(--jade);
}
.chip--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
}
.chip--soon { border-style: dashed; color: var(--dim); }
.chip--mono { color: var(--dim); }

/* -------------------------------------------------------------------------
   6. ШАПКА
   ---------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}

/* Класс вешает script.js после прокрутки */
.header.is-stuck {
  background: rgba(7, 11, 20, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--jade);
  transition: border-color .25s var(--ease), transform .35s var(--ease);
}
.brand__mark svg { width: 21px; height: 21px; }
.brand:hover .brand__mark {
  border-color: rgba(61, 224, 180, .45);
  transform: rotate(-8deg);
}

.brand__text { display: grid; line-height: 1.1; }
.brand__text b {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .12em;
}
.brand__text i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  position: relative;
  font-size: 15px;
  color: var(--muted);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1.5px;
  background: var(--jade);
  transition: width .25s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }

.nav__cta { display: none; }        /* показывается только в мобильном меню */

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--panel);
  place-items: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 17px;
  height: 1.7px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger.is-open span:first-child { transform: translateY(3.4px) rotate(45deg); }
.burger.is-open span:last-child  { transform: translateY(-3.4px) rotate(-45deg); }

/* -------------------------------------------------------------------------
   7. HERO
   ---------------------------------------------------------------------- */
.hero { padding: 64px 0 92px; }

.hero__inner {
  display: grid;
  gap: 56px;
  align-items: center;
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(34px, 5.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -.035em;
  margin-bottom: 22px;
}

.hero__title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 520px;
  margin-bottom: 32px;
  font-size: 18px;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

/* Строка тех. фактов под кнопками */
.specline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--dim);
}
.specline li {
  display: flex;
  align-items: center;
  gap: 9px;
}
.specline li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--jade);
  opacity: .6;
}

/* -------------------------------------------------------------------------
   8. HUD — сигнатурный элемент (монитор ресвапа)
   ---------------------------------------------------------------------- */
.hero__hud { position: relative; }

.hud {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(139, 107, 255, .06), transparent 40%),
    var(--panel);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .95);
  overflow: hidden;
}

.hud__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}

.hud__led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade);
  animation: pulse 2.4s infinite;
}

.hud__name { color: var(--muted); }
.hud__ping { margin-left: auto; }
.hud__ping b { color: var(--jade); font-weight: 500; }

/* Три сета */
.hud__sets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 20px 18px 16px;
}

.setcard {
  padding: 14px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .015);
  text-align: center;
  transition: border-color .25s var(--ease), background-color .25s var(--ease),
              transform .25s var(--ease), box-shadow .25s var(--ease);
}

.setcard__n {
  display: block;
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--dim);
  transition: color .25s var(--ease);
}

.setcard__l {
  display: block;
  margin-top: 7px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Активный сет подсвечивается */
.setcard.is-active {
  border-color: rgba(61, 224, 180, .5);
  background: rgba(61, 224, 180, .07);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px -18px var(--jade);
}
.setcard.is-active .setcard__n { color: var(--jade); }
.setcard.is-active .setcard__l { color: var(--jade); }

/* Полоса каста */
.hud__track { padding: 4px 18px 16px; }

.hud__track > .hud__fill {
  height: 4px;
  border-radius: 999px;
  background: var(--grad);
  width: 0;
  box-shadow: 0 0 14px rgba(61, 224, 180, .6);
}

.hud__track {
  position: relative;
}
.hud__track::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
}
.hud__fill { position: relative; }

.hud__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
}
.hud__timer b { color: var(--muted); font-weight: 500; }

/* Лог событий.
   Высота фиксированная под максимум строк (в JS лог держит не больше 4),
   чтобы карточка HUD не меняла размер при появлении новых строк. */
.hud__log {
  height: 124px;
  overflow: hidden;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, .25);
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--muted);
}

.hud__log li {
  display: flex;
  gap: 12px;
  animation: logIn .3s var(--ease) both;
}
.hud__log time { color: var(--dim); }
.hud__log .ok  { color: var(--jade); }

@keyframes logIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------------------
   9. ПРОГРАММЫ
   ---------------------------------------------------------------------- */
.programs {
  display: grid;
  gap: 20px;
}

.program {
  position: relative;
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color .3s var(--ease), background-color .3s var(--ease),
              transform .3s var(--ease);
}
.program:hover {
  border-color: rgba(139, 107, 255, .35);
  background: var(--panel-2);
  transform: translateY(-3px);
}

/* Обычные карточки — колонка, чтобы футер с кнопкой прижимался к низу
   и кнопки были на одной линии у карточек разной длины */
.program:not(.program--flagship) {
  display: flex;
  flex-direction: column;
}
.program:not(.program--flagship) .program__foot {
  margin-top: auto;
}

/* Флагман — двухколоночный, с рейкой характеристик */
.program--flagship {
  display: grid;
  gap: 30px;
  padding: 32px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(139, 107, 255, .10), transparent 55%),
    var(--panel);
}

.program__top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.program__name {
  font-family: var(--f-display);
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.program__tag {
  margin: 8px 0 16px;
  font-size: 15px;
  color: var(--jade);
}

.program__desc {
  max-width: 62ch;
  margin-bottom: 22px;
  color: var(--muted);
}

.program__list {
  display: grid;
  gap: 14px;
}
.program__list li {
  display: flex;
  gap: 13px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}
.program__list b { color: var(--text); font-weight: 600; }

.program__list--compact li { font-size: 14.5px; }

.i {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--violet);
}

.program__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

/* Рейка характеристик */
.spec {
  align-self: start;
  padding: 22px;
  border-radius: var(--r);
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, .28);
}

.spec__title {
  margin-bottom: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}

.spec__list { display: grid; gap: 9px; }
.spec__list > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13.5px;
}
.spec__list dt {
  flex: 0 0 auto;
  color: var(--dim);
}
.spec__list > div::after {          /* точечный лидер между термином и значением */
  content: "";
  order: 1;
  flex: 1 1 auto;
  height: 1px;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-3px);
}
.spec__list dd {
  order: 2;
  flex: 0 0 auto;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text);
}

.spec__buy {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.price {
  margin-bottom: 14px;
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--gold);
  line-height: 1;
}
.price span {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--dim);
  margin-right: 4px;
}
.price i {
  font-style: normal;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--dim);
}
.price--muted { color: var(--dim); font-size: 20px; margin-bottom: 0; }

.spec__note {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--dim);
}

/* -------------------------------------------------------------------------
   10. КАРТОЧКИ «ЧТО ВЫ ПОЛУЧАЕТЕ»
   ---------------------------------------------------------------------- */
.cards {
  display: grid;
  gap: 18px;
}

.card {
  padding: 26px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color .3s var(--ease), transform .3s var(--ease),
              background-color .3s var(--ease);
}
.card:hover {
  border-color: rgba(61, 224, 180, .35);
  background: var(--panel-2);
  transform: translateY(-4px);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(139, 107, 255, .09);
  color: var(--jade);
  transition: transform .3s var(--ease);
}
.card__icon svg { width: 22px; height: 22px; }
.card:hover .card__icon { transform: translateY(-2px) scale(1.04); }

.card__title {
  margin-bottom: 9px;
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.01em;
}

.card__text {
  font-size: 14.5px;
  color: var(--muted);
}

/* -------------------------------------------------------------------------
   11. ТАРИФЫ
   ---------------------------------------------------------------------- */
.plans {
  display: grid;
  gap: 18px;
  align-items: start;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.plan:hover {
  border-color: rgba(61, 224, 180, .35);
  transform: translateY(-4px);
}

/* Выделенный тариф — градиентная рамка через маску */
.plan--featured {
  border-color: transparent;
  background:
    linear-gradient(var(--panel-2), var(--panel-2)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
}
.plan--featured:hover { transform: translateY(-6px); }

.plan__badge {
  position: absolute;
  top: -11px;
  left: 26px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--grad);
  color: #05140f;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.plan__name {
  margin-bottom: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan__price {
  margin-bottom: 6px;
  font-family: var(--f-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
}
.plan--featured .plan__price { color: var(--gold); }

.plan__note {
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--dim);
}

.plan__list {
  display: grid;
  gap: 11px;
  margin-bottom: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.plan__list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--muted);
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 9px;
  height: 5px;
  border-left: 1.8px solid var(--jade);
  border-bottom: 1.8px solid var(--jade);
  transform: rotate(-45deg);
}

.plan .btn { margin-top: auto; }

/* Переключатель программ над тарифами */
.pricing-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.pricing-tabs:empty { display: none; }   /* если JS не построил вкладки */

.pricing-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-family: var(--f-body);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .2s var(--ease), border-color .2s var(--ease),
              background-color .2s var(--ease), transform .2s var(--ease);
}
.pricing-tab:hover {
  color: var(--text);
  border-color: rgba(61, 224, 180, .4);
  transform: translateY(-1px);
}

/* Активная вкладка — градиентная рамка через маску */
.pricing-tab.is-active {
  color: #fff;
  border-color: transparent;
  background:
    linear-gradient(var(--panel-2), var(--panel-2)) padding-box,
    var(--grad) border-box;
}

/* Переключатель вариантов внутри программы (Reswap / Reswap + Charge, Lite / Full) */
.plan-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.plan-switch[hidden] { display: none; }

.plan-variants {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}

.plan-variant {
  padding: 8px 20px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease),
              transform .2s var(--ease);
}
.plan-variant:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .08);
  transform: translateY(-1px);
}
.plan-variant.is-active {
  color: #05140f;
  background: var(--grad);
  transform: none;
}

/* Метка «скоро» у программы в разработке */
.pricing-tab__soon {
  margin-left: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Цена программы, у которой она ещё не назначена */
.plan__price--soon {
  color: var(--dim);
  font-size: 24px;
}

/* -------------------------------------------------------------------------
   12. FAQ
   ---------------------------------------------------------------------- */
.faq {
  border-top: 1px solid var(--line-soft);
}

.faq__item { border-bottom: 1px solid var(--line-soft); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--f-body);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--text);
  transition: color .2s var(--ease);
}
.faq__q:hover { color: var(--jade); }

/* Плюс, который превращается в минус */
.faq__sign {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: border-color .25s var(--ease), transform .35s var(--ease),
              background-color .25s var(--ease);
}
.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.6px;
  background: var(--muted);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), background-color .25s var(--ease);
}
.faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq__q[aria-expanded="true"] .faq__sign {
  border-color: rgba(61, 224, 180, .5);
  background: rgba(61, 224, 180, .1);
  transform: rotate(180deg);
}
.faq__q[aria-expanded="true"] .faq__sign::before,
.faq__q[aria-expanded="true"] .faq__sign::after { background: var(--jade); }
.faq__q[aria-expanded="true"] .faq__sign::after { transform: translate(-50%, -50%) rotate(0deg); }

/* Раскрытие по высоте — max-height задаётся из JS для плавности */
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}
.faq__inner {
  padding: 0 4px 24px;
  max-width: 68ch;
  color: var(--muted);
  font-size: 15px;
}
.faq__inner p + p { margin-top: 12px; }

/* -------------------------------------------------------------------------
   13. ОТЗЫВЫ
   ---------------------------------------------------------------------- */
.reviews {
  display: grid;
  gap: 18px;
}

.review {
  margin: 0;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.review:hover {
  border-color: rgba(139, 107, 255, .35);
  transform: translateY(-3px);
}

.review blockquote {
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
}
.review blockquote::before {
  content: "«";
  margin-right: 3px;
  color: var(--violet);
  font-family: var(--f-display);
  font-size: 20px;
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.review__ava {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad);
  color: #05140f;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
}

.review__who { display: grid; line-height: 1.35; }
.review__who b { font-size: 14.5px; font-weight: 600; }
.review__who i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--dim);
}

/* -------------------------------------------------------------------------
   14. ФИНАЛЬНЫЙ CTA
   ---------------------------------------------------------------------- */
.closer { padding-top: 0; }

.closer__box {
  position: relative;
  padding: 56px 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(90% 130% at 50% 0%, rgba(139, 107, 255, .16), transparent 60%),
    var(--panel);
}

.closer__title {
  max-width: 18ch;
  margin: 0 auto 14px;
  font-family: var(--f-display);
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.14;
}

.closer__text {
  max-width: 48ch;
  margin: 0 auto 28px;
  color: var(--muted);
}

.closer__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* -------------------------------------------------------------------------
   15. ФУТЕР
   ---------------------------------------------------------------------- */
.footer {
  padding: 56px 0 34px;
  border-top: 1px solid var(--line-soft);
  background: var(--ink-2);
}

.footer__inner {
  display: grid;
  gap: 34px;
}

.footer__about {
  max-width: 34ch;
  margin-top: 16px;
  font-size: 14px;
  color: var(--dim);
}

.footer__col { display: grid; align-content: start; gap: 10px; }

.footer__h {
  margin: 0 0 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer__col a {
  font-size: 14.5px;
  color: var(--muted);
  justify-self: start;
}
.footer__col a:hover { color: var(--jade); }

.footer__hours { font-size: 13px; color: var(--dim); }

.footer__bottom {
  display: grid;
  gap: 10px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--dim);
}
.footer__legal { max-width: 70ch; line-height: 1.55; }

/* -------------------------------------------------------------------------
   16. ДОКУМЕНТ-ОКНО (политика возврата и подобные тексты)
   Открывается поверх страницы, а не уводит на отдельный адрес.
   ---------------------------------------------------------------------- */

/* Ссылка-открывашка внутри текста */
.doclink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--jade);
  font-weight: 500;
  border-bottom: 1px solid rgba(61, 224, 180, .3);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.doclink svg { flex: 0 0 auto; width: 15px; height: 15px; }
.doclink:hover { border-bottom-color: var(--jade); }

/* Само окно. <dialog> в top-layer, поэтому z-index шапки ему не мешает. */
.doc {
  width: min(720px, calc(100vw - var(--pad) * 2));
  max-height: min(85vh, 860px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .65);
  overflow: hidden;
  /* flex, чтобы шапка и подвал не уезжали, а прокручивалась только середина */
  display: flex;
  flex-direction: column;
}
/* Авторские стили сильнее UA — закрытое окно прячем сами */
.doc:not([open]) { display: none; }

.doc::backdrop {
  background: rgba(4, 7, 14, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Фолбэк для браузеров без showModal(): позиционируем вручную */
.doc.is-fallback {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 300;
  transform: translate(-50%, -50%);
}

.doc__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}

.doc__eyebrow {
  margin: 0 0 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--jade);
}

.doc__title {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -.02em;
}

.doc__close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.doc__close svg { width: 17px; height: 17px; }
.doc__close:hover {
  color: var(--text);
  border-color: rgba(61, 224, 180, .45);
  background: rgba(61, 224, 180, .1);
}

.doc__body {
  padding: 24px 26px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 15px;
  color: var(--muted);
}
.doc__body:focus { outline: none; }

.doc__lead {
  margin-bottom: 26px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--jade);
  border-radius: var(--r-sm);
  background: rgba(61, 224, 180, .05);
  color: var(--text);
}

.doc__block + .doc__block { margin-top: 26px; }

.doc__h {
  margin: 0 0 10px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
}

.doc__list { display: grid; gap: 9px; }
.doc__list li {
  position: relative;
  padding-left: 22px;
}
/* Галочка у «возвращаем», крестик у «не возвращаем» */
.doc__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: rgba(61, 224, 180, .8);
}
.doc__list--no li::before { background: rgba(240, 180, 41, .75); }

.doc__block p + p,
.doc__block p + .doc__list,
.doc__block .doc__list + p { margin-top: 12px; }

.doc__foot {
  display: grid;
  gap: 14px;
  padding: 18px 26px 22px;
  border-top: 1px solid var(--line-soft);
  background: var(--ink-2);
}

.doc__note {
  font-size: 13px;
  color: var(--dim);
}

/* На узких экранах окно занимает почти весь экран */
@media (max-width: 560px) {
  .doc {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border: 0;
    border-radius: 0;
  }
  .doc__head { padding: 20px 18px 16px; }
  .doc__body { padding: 20px 18px 24px; }
  .doc__foot { padding: 16px 18px 20px; }
  .doc__title { font-size: 20px; }
}

@media (min-width: 640px) {
  .doc__foot {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* -------------------------------------------------------------------------
   17. АНИМАЦИИ ПОЯВЛЕНИЯ ПРИ СКРОЛЛЕ
   Класс is-in вешает IntersectionObserver в script.js.
   ---------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

/* -------------------------------------------------------------------------
   18. АДАПТИВ (mobile-first: выше — базовые мобильные стили)
   ---------------------------------------------------------------------- */

/* Планшет */
@media (min-width: 600px) {
  .cards    { grid-template-columns: repeat(2, 1fr); }
  .reviews  { grid-template-columns: repeat(2, 1fr); }
  .closer__box { padding: 64px 48px; }
}

/* Малый десктоп */
@media (min-width: 860px) {
  :root { --pad: 28px; }

  .section { padding: 110px 0; }
  .hero    { padding: 80px 0 110px; }

  .programs { grid-template-columns: repeat(2, 1fr); }
  .program--flagship { grid-column: 1 / -1; }

  .plans { grid-template-columns: repeat(3, 1fr); }

  /* Бренд + три колонки ссылок: разделы, документы, связь */
  .footer__inner {
    grid-template-columns: 1.35fr .85fr .95fr 1.05fr;
    gap: 34px;
  }
  .footer__bottom {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
  }
}

/* Десктоп */
@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; }
  .cards       { grid-template-columns: repeat(4, 1fr); }
  .reviews     { grid-template-columns: repeat(3, 1fr); }
  .program--flagship { grid-template-columns: 1.55fr .95fr; }
}

/* --- Мобильное меню: до 860px навигация уезжает в панель --- */
@media (max-width: 859px) {
  .burger { display: grid; }
  .header__cta { display: none; }

  .nav {
    position: fixed;
    inset: 72px 0 auto;
    display: grid;
    gap: 4px;
    padding: 22px var(--pad) 30px;
    background: rgba(7, 11, 20, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__link {
    padding: 13px 2px;
    font-size: 17px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--text);
  }
  .nav__link::after { display: none; }

  .nav__cta { display: inline-flex; margin-top: 16px; }
}

/* Мелкие экраны */
@media (max-width: 480px) {
  .section { padding: 74px 0; }
  .hero    { padding: 46px 0 74px; }

  .program, .program--flagship { padding: 22px; }
  .hero__actions .btn, .closer__actions .btn { width: 100%; }
  .program__foot { flex-direction: column; align-items: stretch; }
  .program__foot .btn { width: 100%; }
}

/* -------------------------------------------------------------------------
   19. ДОСТУПНОСТЬ: уважаем отключённую анимацию
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
}
