/* ============================================================
   REMZ — QA agency
   1. Токены        5. Навигация      9.  Процесс
   2. База          6. Hero           10. Форматы
   3. Утилиты       7. Манифест       11. FAQ
   4. Прелоадер     8. Услуги         12. Контакт / подвал
   ============================================================ */

/* ── 1. Токены ─────────────────────────────────────────────── */
:root {
  --bg:          #08090a;
  --bg-soft:     #0c0e10;
  --bg-card:     #0e1113;
  --fg:          #f2f0ec;
  --fg-dim:      #a4a8ad;
  --muted:       #71767c;
  --accent:      #c8ff4d;
  --accent-dim:  #8fb339;

  --line:        rgba(255, 255, 255, .09);
  --line-soft:   rgba(255, 255, 255, .05);
  --line-strong: rgba(255, 255, 255, .16);

  --sans:  "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --shell:  1320px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease:     cubic-bezier(.16, 1, .3, 1);
  --ease-io:  cubic-bezier(.65, .05, .36, 1);
  --dur:      .7s;

  --nav-h: 84px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 350;
  line-height: 1.6;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

html.is-loading body,
html.menu-open body { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: normal; }

::selection { background: var(--accent); color: #0a0a0a; }

/* Фокус — только с клавиатуры */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip {
  position: fixed;
  top: -100px; left: 24px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--accent);
  color: #0a0a0a;
  border-radius: 100px;
  font-size: 14px;
  transition: top .3s var(--ease);
}
.skip:focus { top: 24px; }

/* ── 3. Утилиты ────────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Фоновое полотно */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease 0.2s;
}
html.is-ready .bg-canvas { opacity: 1; }

/* Плёночное зерно */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 3;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  17% { transform: translate(-4%, -3%); }
  34% { transform: translate(3%, -5%); }
  51% { transform: translate(-2%, 4%); }
  68% { transform: translate(5%, 2%); }
  85% { transform: translate(-3%, -2%); }
}

/* Курсор */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 120;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .4s;
}
html.is-ready .cursor { opacity: 1; }

.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__dot {
  width: 6px; height: 6px;
  background: #fff;
  transition: width .3s var(--ease), height .3s var(--ease), opacity .3s;
}
.cursor__ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, .45);
  transition: width .4s var(--ease), height .4s var(--ease),
              border-color .4s, background-color .4s;
}
.cursor__label {
  position: absolute;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0a0a0a;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .25s;
}
.cursor.is-hover .cursor__ring {
  width: 64px; height: 64px;
  background: #fff;
  border-color: transparent;
}
.cursor.is-hover .cursor__dot { width: 0; height: 0; }
.cursor.is-label .cursor__ring { width: 84px; height: 84px; }
.cursor.is-label .cursor__label { opacity: 1; }

/* Кнопки */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 30px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 450;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease),
              border-color .5s var(--ease);
  will-change: transform;
}
.btn--primary { background: var(--accent); color: #0a0a0a; }
.btn--primary:hover { background: #fff; }
.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--fg);
}
.btn--ghost:hover { background: var(--fg); color: #0a0a0a; border-color: var(--fg); }
.btn--sm { padding: 12px 22px; font-size: 14px; }

/* Бегущий вверх текст на кнопке */
.btn__label {
  position: relative;
  display: block;
  overflow: hidden;
  height: 1.35em;
}
.btn__label span {
  display: block;
  transition: transform .5s var(--ease);
}
.btn__label span:last-child { position: absolute; top: 100%; left: 0; }
.btn:hover .btn__label span { transform: translateY(-100%); }

.btn__arrow {
  font-size: 15px;
  transition: transform .5s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Заголовок секции */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: clamp(48px, 7vw, 88px);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sec-head__idx { color: var(--accent); }
.sec-head__title { color: var(--muted); }

.sec-title {
  font-size: clamp(38px, 6.4vw, 86px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.sec-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--fg-dim);
  letter-spacing: -.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, .02);
  backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(200, 255, 77, .6);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200, 255, 77, .5); }
  70%  { box-shadow: 0 0 0 10px rgba(200, 255, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 255, 77, 0); }
}

/* Появление по скроллу — прячем только если JS жив и сможет показать обратно */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Посимвольное появление заголовков */
.char {
  display: inline-block;
  transform: translateY(105%) rotate(4deg);
  opacity: 0;
  will-change: transform;
}
.is-split-in .char {
  transform: none;
  opacity: 1;
  transition: transform .95s var(--ease), opacity .7s ease;
  transition-delay: var(--d, 0ms);
}
.line {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;
  margin-bottom: -.06em;
}

/* ── 4. Прелоадер ──────────────────────────────────────────── */
.preloader {
  display: none;                 /* без JS прелоадера не существует */
  position: fixed;
  inset: 0;
  z-index: 500;
  place-items: center;
  background: var(--bg);
  transition: opacity .8s var(--ease), visibility .8s;
}
html.js .preloader { display: grid; }
.preloader.is-done { opacity: 0; visibility: hidden; }

.preloader__inner { width: min(440px, 78vw); }

.preloader__word {
  display: flex;
  justify-content: center;
  gap: .04em;
  font-size: clamp(52px, 9vw, 78px);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1;
}
.preloader__word span {
  opacity: 0;
  transform: translateY(28px);
  animation: plIn .9s var(--ease) forwards;
}
.preloader__word span:nth-child(1) { animation-delay: .05s; }
.preloader__word span:nth-child(2) { animation-delay: .13s; }
.preloader__word span:nth-child(3) { animation-delay: .21s; }
.preloader__word span:nth-child(4) { animation-delay: .29s; color: var(--accent); }
@keyframes plIn { to { opacity: 1; transform: none; } }

.preloader__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 26px 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}
.preloader__bar {
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.preloader__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

/* ── 5. Навигация ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
  padding-inline: var(--gutter);
  transition: height .5s var(--ease), background-color .5s var(--ease),
              border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  height: 66px;
  background: rgba(8, 9, 10, .72);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line-soft);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav { transition: transform .5s var(--ease), height .5s var(--ease),
                   background-color .5s var(--ease), border-color .5s var(--ease); }

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  will-change: transform;
}
.nav__mark {
  width: 26px; height: 26px;
  fill: var(--accent);
  transition: transform .6s var(--ease);
}
.nav__logo:hover .nav__mark { transform: rotate(-8deg) scale(1.08); }
.nav__word {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.03em;
}
.nav__sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--line);
}

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  position: relative;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 15px;
  color: var(--fg-dim);
  overflow: hidden;
  transition: color .4s var(--ease);
}
.nav__links a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: rgba(255, 255, 255, .07);
  transform: scale(.85);
  opacity: 0;
  transition: transform .5s var(--ease), opacity .4s;
}
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::before { transform: none; opacity: 1; }
.nav__links a span { position: relative; }
.nav__links a.is-active { color: var(--fg); }
.nav__links a.is-active::before { transform: none; opacity: 1; }

.burger {
  display: none;
  width: 44px; height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.burger i {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .45s var(--ease), opacity .3s;
}
.burger i + i { margin-top: 5px; }
html.menu-open .burger i:first-child { transform: translateY(3.25px) rotate(45deg); }
html.menu-open .burger i:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* Мобильное меню */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--nav-h) var(--gutter) 40px;
  background: var(--bg-soft);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease);
  pointer-events: none;
}
html.menu-open .menu { clip-path: inset(0 0 0 0); pointer-events: auto; }

.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: clamp(30px, 9vw, 46px);
  font-weight: 400;
  letter-spacing: -.03em;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s;
}
html.menu-open .menu__links a { opacity: 1; transform: none; }
.menu__links a:nth-child(1) { transition-delay: .18s; }
.menu__links a:nth-child(2) { transition-delay: .24s; }
.menu__links a:nth-child(3) { transition-delay: .30s; }
.menu__links a:nth-child(4) { transition-delay: .36s; }
.menu__links a:nth-child(5) { transition-delay: .42s; }
.menu__links a:active { color: var(--accent); }
.menu__links em {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .1em;
}
.menu__foot {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.menu__foot a { color: var(--accent); }

/* ── Smooth-scroll обёртка ─────────────────────────────────────
   По умолчанию — обычный поток документа и нативный скролл.
   Фиксацию включает только сам SmoothScroll, когда он реально запущен. */
.smooth { position: relative; z-index: 2; }
html:not(.smooth-on) { scroll-behavior: smooth; }

html.smooth-on .smooth {
  position: fixed;
  inset: 0;
  overflow: hidden;
}
html.smooth-on .smooth__content { will-change: transform; }

/* Аварийный режим: JS сломался — возвращаем нативный скролл и весь контент */
html.is-degraded .smooth__content { transform: none !important; }
html.is-degraded [data-reveal],
html.is-degraded .char {
  opacity: 1 !important;
  transform: none !important;
}
html.is-degraded .word { color: var(--fg); }

/* ── 6. Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 120px;
}
.hero__shell { width: 100%; }

.hero__title {
  margin: 32px 0 clamp(48px, 6vw, 76px);
  font-size: clamp(46px, 8.6vw, 132px);
  font-weight: 400;
  line-height: .93;
  letter-spacing: -.045em;
}
.hero__title em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  letter-spacing: -.02em;
}

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero__lead {
  max-width: 52ch;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--fg-dim);
  line-height: 1.65;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: clamp(60px, 8vw, 110px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__num {
  font-size: clamp(34px, 3.6vw, 54px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.stat__cap {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeIn 1s ease 1.6s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.hero__scroll i {
  position: relative;
  display: block;
  width: 1px; height: 44px;
  background: var(--line-strong);
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: scrollDot 2.2s var(--ease-io) infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ── Бегущая строка ────────────────────────────────────────── */
.marquee {
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, .015);
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track { display: flex; width: max-content; }
.marquee__row {
  display: flex;
  align-items: center;
  gap: 42px;
  padding-right: 42px;
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 300;
  letter-spacing: -.03em;
  color: var(--fg-dim);
}
.marquee__row i {
  font-style: normal;
  font-size: .5em;
  color: var(--accent);
}

/* ── 7. Манифест ───────────────────────────────────────────── */
.manifesto { padding: clamp(100px, 14vw, 200px) 0; }
.manifesto__text {
  font-size: clamp(26px, 3.6vw, 52px);
  font-weight: 300;
  line-height: 1.28;
  letter-spacing: -.03em;
  max-width: 22ch;
  max-width: 1000px;
}
.manifesto__text em {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: -.015em;
}
.word {
  display: inline-block;
  color: rgba(242, 240, 236, .14);
  transition: color .45s ease;
}
.word.is-lit { color: var(--fg); }
.manifesto__text em .word.is-lit { color: var(--accent); }

/* ── 8. Услуги ─────────────────────────────────────────────── */
.services { padding: clamp(80px, 10vw, 130px) 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  overflow: hidden;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 340px;
  padding: 34px 30px;
  background: var(--bg);
  transition: background-color .6s var(--ease);
  transform-style: preserve-3d;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  background: radial-gradient(
    460px circle at var(--mx, 50%) var(--my, 50%),
    rgba(200, 255, 77, .1),
    transparent 62%
  );
  pointer-events: none;
}
.card:hover { background: var(--bg-card); }
.card:hover::before { opacity: 1; }

.card__idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  transition: color .4s;
}
.card:hover .card__idx { color: var(--accent); }

.card__title {
  font-size: 22px;
  font-weight: 450;
  letter-spacing: -.028em;
  line-height: 1.2;
}
.card__text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  transition: color .4s;
}
.card:hover .card__text { color: var(--fg-dim); }

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
}
.card__tags li {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--muted);
  transition: border-color .4s, color .4s;
}
.card:hover .card__tags li { border-color: var(--line-strong); color: var(--fg-dim); }

/* ── 9. Процесс ────────────────────────────────────────────── */
.process { padding: clamp(80px, 10vw, 130px) 0; }

.steps { position: relative; padding-left: clamp(0px, 4vw, 56px); }
.steps__line {
  position: absolute;
  top: 12px; bottom: 12px;
  left: 0;
  width: 1px;
  background: var(--line);
}
.steps__line i {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-dim));
  box-shadow: 0 0 14px rgba(200, 255, 77, .5);
}

.step {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 44px);
  align-items: start;
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color .5s ease;
}
.step:first-child { border-top: 1px solid var(--line-soft); }
.step:hover { background: rgba(255, 255, 255, .015); }

.step__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--accent);
  padding-top: 6px;
}
.step__body h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}
.step__body p {
  max-width: 62ch;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.65;
}
.step__time {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  white-space: nowrap;
}

/* ── 10. Форматы ───────────────────────────────────────────── */
.formats { padding: clamp(80px, 10vw, 130px) 0; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 38px 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .012);
  transition: border-color .5s var(--ease), transform .6s var(--ease),
              background-color .5s var(--ease);
}
.plan:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .028);
  transform: translateY(-6px);
}
.plan--featured {
  border-color: rgba(200, 255, 77, .3);
  background:
    linear-gradient(180deg, rgba(200, 255, 77, .07), transparent 44%),
    rgba(255, 255, 255, .014);
}
.plan--featured:hover { border-color: rgba(200, 255, 77, .5); }

.plan__badge {
  position: absolute;
  top: -1px; right: 24px;
  transform: translateY(-50%);
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--accent);
  color: #0a0a0a;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.plan__head h3 {
  font-size: 28px;
  font-weight: 450;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}
.plan__head p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
}

.plan__list { display: flex; flex-direction: column; gap: 12px; padding: 26px 0 32px; }
.plan__list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--fg-dim);
  line-height: 1.5;
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: 11px; height: 6px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.plan__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.plan__term {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--accent);
  will-change: transform;
}
.plan__cta span { transition: transform .4s var(--ease); }
.plan__cta:hover span { transform: translateX(4px); }

.plans__note {
  max-width: 64ch;
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── 11. FAQ ───────────────────────────────────────────────── */
.faq { padding: clamp(80px, 10vw, 130px) 0; }

.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }

.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: clamp(22px, 2.6vw, 32px) 0;
  text-align: left;
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 400;
  letter-spacing: -.025em;
  color: var(--fg-dim);
  transition: color .4s var(--ease);
}
.acc__btn:hover,
.acc__item.is-open .acc__btn { color: var(--fg); }

.acc__btn i {
  position: relative;
  flex-shrink: 0;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color .4s, background-color .4s, transform .5s var(--ease);
}
.acc__btn i::before,
.acc__btn i::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 13px; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .5s var(--ease), opacity .3s;
}
.acc__btn i::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__item.is-open .acc__btn i {
  border-color: var(--accent);
  transform: rotate(180deg);
}
.acc__item.is-open .acc__btn i::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }

.acc__panel {
  height: 0;
  overflow: hidden;
  transition: height .6s var(--ease);
}
.acc__inner {
  max-width: 76ch;
  padding: 0 60px 32px 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease .1s, transform .5s var(--ease) .1s;
}
.acc__item.is-open .acc__inner { opacity: 1; transform: none; }

/* ── 12. Контакт ───────────────────────────────────────────── */
.contact {
  position: relative;
  padding: clamp(110px, 15vw, 210px) 0;
  overflow: hidden;
}
.contact__shell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact__glow {
  position: absolute;
  top: 50%; left: 50%;
  width: min(1000px, 130vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(200, 255, 77, .09), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .85; }
  50%      { transform: translate(-50%, -50%) scale(1.14); opacity: 1; }
}

.contact__title {
  position: relative;
  margin: 30px 0 26px;
  font-size: clamp(40px, 7.4vw, 108px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.045em;
}
.contact__title em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
}
.contact__lead {
  position: relative;
  max-width: 46ch;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--fg-dim);
}

.contact__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 44px;
  padding: 20px 34px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  overflow: hidden;
  will-change: transform;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.contact__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .6s var(--ease);
}
.contact__link:hover { color: #0a0a0a; border-color: var(--accent); }
.contact__link:hover::before { transform: none; }
.contact__link > * { position: relative; }
.contact__link svg { width: 22px; height: 22px; fill: currentColor; }
.contact__handle {
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 450;
  letter-spacing: -.02em;
}
.contact__arrow { transition: transform .5s var(--ease); }
.contact__link:hover .contact__arrow { transform: translateX(5px); }

.contact__meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.dotsep { color: var(--accent-dim); }

/* ── Подвал ────────────────────────────────────────────────── */
.footer {
  padding: 70px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 52px;
}
.footer__brand { display: flex; gap: 16px; align-items: flex-start; }
.footer__mark { width: 30px; height: 30px; fill: var(--accent); flex-shrink: 0; }
.footer__brand p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__nav a {
  font-size: 14.5px;
  color: var(--fg-dim);
  transition: color .3s;
}
.footer__nav a:hover { color: var(--accent); }

.footer__bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__bot a { transition: color .3s; }
.footer__bot a:hover { color: var(--accent); }
.footer__up {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  will-change: transform;
  transition: color .3s;
}
.footer__up:hover { color: var(--accent); }

/* ── Адаптив ───────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .plan--featured { order: -1; }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: grid; }
  .nav__sub { display: none; }
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__actions { justify-content: flex-start; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .hero__scroll { display: none; }
  .step { grid-template-columns: 44px 1fr; }
  .step__time { grid-column: 2; justify-self: start; }
  .steps { padding-left: 0; }
  .steps__line { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; padding: 30px 24px; }
  .acc__inner { padding-right: 0; }
  .contact__link { width: 100%; justify-content: center; padding-inline: 20px; }
  .footer__top { flex-direction: column; gap: 32px; }
  .footer__bot { justify-content: flex-start; }
}

/* Отключаем движение для тех, кто его не хочет */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal], .char, .word { opacity: 1 !important; transform: none !important; color: var(--fg); }
  .cursor, .grain, .bg-canvas { display: none; }
  html { scroll-behavior: auto; }
}

/* Курсор скрываем на тач-устройствах */
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}
