/* ════════════════════════════════════════════════════════════════
   AZA.PRO — landing styles
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg: #0b0b10;
  --bg-2: #101018;
  --surface: #14141d;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f2f5;
  --muted: #9a9aa8;
  --accent: #c6ff3d;
  --accent-dim: rgba(198, 255, 61, 0.12);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --radius: 20px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* лёгкое зерно поверх всего */
body::after {
  content: "";
  position: fixed;
  inset: -10%; /* минимальный запас под сдвиг: меньше площадь перерисовки */
  pointer-events: none;
  z-index: 9998;
  opacity: 0.05;
  will-change: transform;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(9) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-5%, -2%); }
  80% { transform: translate(4%, 4%); }
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
em { font-style: normal; }

.container {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}
.container--narrow { width: min(880px, 100% - 48px); }

/* ─── Прелоадер ─────────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(80px, 16vw, 160px);
  line-height: 1;
  color: var(--accent);
}
.preloader__bar {
  width: min(280px, 60vw);
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}

/* ─── Кастомный курсор ──────────────────────────────────────── */
.cursor, .cursor-dot { display: none; }
@media (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 44px; height: 44px;
    margin: -22px 0 0 -22px;
    border: 1.5px solid rgba(198, 255, 61, 0.65);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    /* позиция — через translate, масштаб — через transform:
       так браузер не пересчитывает раскладку на каждом кадре */
    translate: -100px -100px;
    will-change: translate, transform;
    transition: transform 0.18s ease, opacity 0.3s ease, background 0.25s ease;
  }
  .cursor-dot {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    translate: -100px -100px;
    will-change: translate;
  }
  .cursor.is-hover {
    transform: scale(1.7);
    background: rgba(198, 255, 61, 0.08);
  }
  .cursor.is-down { transform: scale(0.8); }
}

/* ─── Доступность ───────────────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Прогресс скролла ──────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(198, 255, 61, 0.6);
  z-index: 1001;
  pointer-events: none;
  /* масштабируем трансформом, а не шириной: без пересчёта раскладки */
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ─── Шапка ─────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(11, 11, 16, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
}
.logo__text {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.logo__text em {
  font-style: normal;
  color: var(--accent);
}
.logo__text i {
  display: inline-block;
  font-style: normal;
  font-size: 11px;
  color: var(--accent);
  vertical-align: super;
  margin-left: 3px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.logo:hover .logo__text i { transform: rotate(180deg) scale(1.25); }

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  transition: color 0.25s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--accent); }
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

/* переключатель языков */
.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.lang__item {
  color: var(--muted);
  transition: color 0.25s ease;
}
a.lang__item:hover { color: var(--text); }
.lang__item.is-active { color: var(--accent); }
.lang::after {
  content: "";
  order: -1;
  width: 1px;
  height: 14px;
  background: var(--line);
  margin-right: 8px;
}
.lang__item + .lang__item { position: relative; padding-left: 9px; }
.lang__item + .lang__item::before {
  content: "/";
  position: absolute;
  left: 0;
  color: rgba(154, 154, 168, 0.5);
}

.burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-left: auto;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.is-open span:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ─── Кнопки ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  border-radius: 100px;
  padding: 16px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.btn--big { padding: 19px 38px; font-size: 17px; }
.btn--small { padding: 11px 22px; font-size: 14px; }
.btn--accent {
  background: var(--accent);
  color: #0b0b10;
}
.btn--accent:hover { box-shadow: 0 8px 40px rgba(198, 255, 61, 0.35); }
.btn--accent::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.5) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.btn--accent:hover::before { transform: translateX(120%); }
.btn--ghost {
  border: 1.5px solid var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn svg { transition: transform 0.25s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }
.btn.is-loading { pointer-events: none; }
.btn.is-loading svg { display: none; }
.btn.is-loading::after {
  content: "";
  width: 18px; height: 18px;
  border: 2.5px solid rgba(11, 11, 16, 0.25);
  border-top-color: #0b0b10;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ─── Хиро ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__letter {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(300px, 46vw, 780px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(198, 255, 61, 0.16);
  pointer-events: none;
  user-select: none;
  transition: opacity 0.45s ease;
  z-index: 0;
  will-change: transform;
}
.hero__letter.is-swap { opacity: 0; }
.hero__inner { position: relative; z-index: 1; will-change: transform, opacity; }

.hero__badge {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 30px;
}
.hero__badge::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 8.6vw, 118px);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero__line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: lineUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero__line:nth-child(1) > span { animation-delay: 0.35s; }
.hero__line:nth-child(2) > span { animation-delay: 0.5s; }
.hero__line:nth-child(3) > span { animation-delay: 0.65s; }
@keyframes lineUp { to { transform: translateY(0); } }

/* статичное свечение: анимация text-shadow заставляла браузер
   перерисовывать огромный заголовок каждый кадр */
.hero__line--accent .accent-letter {
  color: var(--accent);
  position: relative;
  display: inline-block;
  text-shadow: 0 0 45px rgba(198, 255, 61, 0.5);
}

.hero__sub {
  max-width: 560px;
  margin-top: 30px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 42px;
}
.hero__scroll { margin-top: 56px; }
.hero__spinner {
  position: relative;
  width: 108px; height: 108px;
}
.hero__spinner svg:first-child {
  width: 100%; height: 100%;
  animation: spin 14s linear infinite;
}
.hero__spinner text {
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  fill: var(--muted);
}
.hero__spinner-arrow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Бегущая строка ────────────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg-2);
  transform: rotate(-1.2deg) scale(1.02);
  margin-block: -10px 30px;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.marquee__track i { color: var(--accent); font-style: normal; font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee--reverse {
  transform: rotate(1.2deg) scale(1.02);
  margin-block: 30px -10px;
}
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 30s; }
.marquee--reverse .marquee__track span { color: var(--accent); }
.marquee--reverse .marquee__track i { color: var(--text); }

/* ─── Секции ────────────────────────────────────────────────── */
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }

.section__head { margin-bottom: clamp(44px, 6vw, 80px); }
.section__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.12;
  text-transform: uppercase;
}
.section__title em { color: var(--accent); }

/* пословное появление заголовков */
.section__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.section__title .word > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--wi, 0) * 70ms);
}
[data-reveal].is-visible .section__title .word > span,
html:not(.js) .section__title .word > span { transform: translateY(0); }

section[id], footer { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ─── Услуги ────────────────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(198, 255, 61, 0.1), transparent 45%);
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: rgba(198, 255, 61, 0.35); }
.card:hover::before { opacity: 1; }
.card__num {
  position: absolute;
  top: 22px; right: 26px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.14);
  transition: color 0.35s ease;
}
.card:hover .card__num { color: var(--accent); }
.card__icon {
  color: var(--accent);
  margin-bottom: 22px;
}
.card__icon svg {
  width: 38px;
  height: 38px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .card__icon svg { transform: rotate(-8deg) scale(1.12); }
.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 14px;
}
.card__text {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
}
.card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(242, 242, 245, 0.85);
  margin-bottom: 8px;
}
.card__list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
  top: 3px;
}

/* ─── Кейсы ─────────────────────────────────────────────────── */
.cases__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.case {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.case::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 50%), rgba(198, 255, 61, 0.08), transparent 45%);
  pointer-events: none;
}
.case:hover::before { opacity: 1; }
.case::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}
.case:hover { border-color: rgba(198, 255, 61, 0.35); transform: translateY(-4px); }
.case:hover::after { transform: scaleY(1); }
.case__tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.case__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 28px);
  margin-bottom: 12px;
}
.case__text {
  color: var(--muted);
  font-size: 15.5px;
  max-width: 580px;
  margin-bottom: 20px;
}
.case__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.case__chips li {
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 14px;
  color: rgba(242, 242, 245, 0.85);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.case:hover .case__chips li { border-color: rgba(198, 255, 61, 0.3); }
.case__metrics {
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
  border-left: 1px solid var(--line);
  padding-left: clamp(24px, 3vw, 44px);
}
.case__metric b {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 42px);
  color: var(--accent);
  line-height: 1.15;
  margin-bottom: 4px;
}
.case__metric span {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
}

/* ─── Процесс ───────────────────────────────────────────────── */
.process { background: var(--bg-2); }
.process__wrap { position: relative; }
.process__line {
  position: absolute;
  left: 31px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}
.process__line span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 18px rgba(198, 255, 61, 0.5);
  transform: scaleY(0);
  transform-origin: top center;
  will-change: transform;
}
.process__steps {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 64px);
}
.step {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  align-items: flex-start;
}
.step__num {
  flex: 0 0 auto;
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  color: var(--accent);
  background: var(--bg);
  border: 1.5px solid rgba(198, 255, 61, 0.35);
  border-radius: 50%;
  position: relative;
  z-index: 1;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.step:hover .step__num {
  background: var(--accent);
  color: #0b0b10;
  transform: scale(1.08);
}
.step__body { padding-top: 6px; max-width: 640px; }
.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 24px);
  margin-bottom: 10px;
}
.step__text { color: var(--muted); margin-bottom: 12px; }
.step__time {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.step__time::before { content: "— "; }

/* ─── Цифры ─────────────────────────────────────────────────── */
.stats { padding-block: clamp(60px, 8vw, 100px); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  text-align: center;
  padding: 38px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.stat:hover { border-color: rgba(198, 255, 61, 0.35); transform: translateY(-4px); }
.stat__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 5vw, 60px);
  color: var(--accent);
  line-height: 1.1;
}
.stat__label {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

/* ─── Почему мы ─────────────────────────────────────────────── */
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.why__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.why__item::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}
.why__item:hover { border-color: rgba(198, 255, 61, 0.3); }
.why__item:hover::after { transform: scaleY(1); }
.why__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}
.why__item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
}
.why__item p { color: var(--muted); font-size: 15.5px; }

/* ─── FAQ ───────────────────────────────────────────────────── */
.faq { background: var(--bg-2); }
.faq__list { display: flex; flex-direction: column; gap: 14px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq__item[open] { border-color: rgba(198, 255, 61, 0.35); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 60px 24px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  position: relative;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.3s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p {
  padding: 0 28px 26px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 720px;
}
.faq__item[open] p { animation: faqIn 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ─── Контакт / форма ───────────────────────────────────────── */
.contact { overflow: hidden; }
.contact__glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 255, 61, 0.09), transparent 60%);
  top: 50%; left: 0;
  transform: translate(-40%, -50%);
  pointer-events: none;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
  position: relative;
}
.contact__text {
  margin-top: 24px;
  color: var(--muted);
  max-width: 440px;
}
.contact__tg {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  font-weight: 700;
  color: var(--accent);
  border: 1.5px solid rgba(198, 255, 61, 0.35);
  border-radius: 100px;
  padding: 14px 26px;
  transition: background 0.3s ease, color 0.3s ease;
}
.contact__tg:hover { background: var(--accent); color: #0b0b10; }

.form {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form__field { display: block; margin-bottom: 18px; }
.form__label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.form input, .form textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(154, 154, 168, 0.55); }
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(198, 255, 61, 0.12);
}
.form__field.is-invalid input {
  border-color: #ff5d5d;
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}
.form__error {
  display: none;
  font-size: 13px;
  color: #ff8383;
  margin-top: 8px;
}
.form__field.is-invalid .form__error { display: block; }
.form__submit { width: 100%; margin-top: 6px; }
.form__submit:disabled { opacity: 0.6; pointer-events: none; }
.form__note {
  margin-top: 16px;
  font-size: 12.5px;
  color: rgba(154, 154, 168, 0.7);
  text-align: center;
}

/* квиз */
fieldset { border: 0; min-width: 0; }
.form--quiz { display: flex; flex-direction: column; }
.quiz__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.quiz__label {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.quiz__bar {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.quiz__bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(198, 255, 61, 0.5);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.quiz__step { display: none; }
.quiz__step.is-active { display: block; animation: quizIn 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes quizIn {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}
.quiz__q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 22px;
}
.quiz__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quiz__opt {
  text-align: left;
  border: 1.5px solid var(--line);
  background: var(--bg);
  border-radius: 14px;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 15px;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.quiz__opt:hover { border-color: var(--accent); transform: translateY(-2px); }
.quiz__opt.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0b10;
}
.quiz__back {
  margin-top: 20px;
  align-self: flex-start;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  transition: color 0.25s ease;
}
.quiz__back:hover { color: var(--accent); }

.form__success {
  position: absolute;
  inset: 0;
  background: var(--surface);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.form.is-sent .form__success { opacity: 1; visibility: visible; }
.form__fail {
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 93, 93, 0.4);
  border-radius: 12px;
  background: rgba(255, 93, 93, 0.08);
  font-size: 14.5px;
  color: #ffb0b0;
}
.form__fail a { color: var(--accent); font-weight: 700; text-decoration: underline; }

.form__success-tg {
  margin-top: 18px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.form__success-tg:hover { border-bottom-color: var(--accent); }

.form__success h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 22px 0 10px;
}
.form__success p { color: var(--muted); }
.form__success-icon svg {
  width: 76px; height: 76px;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form__success-icon circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
}
.form__success-icon path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}
.form.is-sent .form__success-icon circle { animation: draw 0.7s ease forwards 0.2s; }
.form.is-sent .form__success-icon path { animation: draw 0.5s ease forwards 0.8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ─── Футер ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 36px;
  background: var(--bg-2);
  overflow: hidden;
}
.footer__big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 13.5vw, 200px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.14);
  user-select: none;
  transition: -webkit-text-stroke-color 0.5s ease;
  cursor: default;
}
.footer__big:hover { -webkit-text-stroke-color: rgba(198, 255, 61, 0.6); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer__tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.footer__links { display: flex; gap: 26px; }
.footer__links a {
  font-weight: 700;
  color: var(--text);
  transition: color 0.25s ease;
}
.footer__links a:hover { color: var(--accent); }
.footer__copy { font-size: 13.5px; color: rgba(154, 154, 168, 0.6); }

/* ─── Reveal-анимации ───────────────────────────────────────── */
/* прячем блоки до появления, только если скрипт работает (класс js на <html>);
   при любой ошибке скрипта контент остаётся видимым */
[data-reveal] {
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
html.js [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(36px);
}

/* после появления возвращаем элементам их быстрые hover-переходы */
[data-reveal].reveal-done { transition-delay: 0s; }
.card.reveal-done { transition: transform 0.35s ease, border-color 0.35s ease; }
.case.reveal-done { transition: transform 0.3s ease, border-color 0.3s ease; }
.stat.reveal-done { transition: transform 0.3s ease, border-color 0.3s ease; }
.why__item.reveal-done, .faq__item.reveal-done { transition: border-color 0.3s ease; }

/* ─── Адаптив ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  /* на телефонах отключаем самые дорогие эффекты */
  body::after { animation: none; }          /* анимация зерна */
  .header.is-scrolled {
    background: rgba(11, 11, 16, 0.94);
    backdrop-filter: none;                  /* размытие под шапкой */
    -webkit-backdrop-filter: none;
  }
  .hero__line--accent .accent-letter { text-shadow: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 4px;
    background: rgba(11, 11, 16, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 28px;
    margin: 0;
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__link { padding: 14px 0; font-size: 18px; }
  .header__cta { display: none; }
  .burger { display: flex; margin-left: 12px; }
  .lang { margin-left: auto; }
  .lang::after { display: none; }
  .hero__letter { right: -22%; opacity: 0.7; }
  .services__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .quiz__options { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .case__metrics {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 22px;
    flex-direction: row;
    gap: 36px;
  }
  .marquee__track span { font-size: 17px; }
  .process__line { left: 23px; }
  .step__num { width: 48px; height: 48px; font-size: 18px; }
  .hero__scroll { margin-top: 44px; }
  .hero__spinner { width: 88px; height: 88px; }
}

/* ─── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__line > span { transform: none; animation: none; }
  body::after { display: none; }
}

/* ─── Правки вёрстки ────────────────────────────────────────── */
/* цифры не разрываются посреди числа */
.case__metric b, .stat__value, .step__time, .card__num { white-space: nowrap; }
.case__metrics { flex-wrap: wrap; }
.case__metric { min-width: 0; }
@media (max-width: 760px) {
  .case__metric b { font-size: clamp(24px, 7.4vw, 34px); }
  .case__metrics { gap: 20px 32px; }
}

/* линия процесса заканчивается на последнем кружке, а не торчит ниже */
.step { position: relative; z-index: 1; }
.step:last-child { background: var(--bg-2); }
.step__num { background: var(--bg-2); }

/* свечение и выносные элементы букв не обрезаются после появления */
.hero__line.is-in { overflow: visible; }
.section__title .word { padding-top: 0.14em; margin-top: -0.14em; }
[data-reveal].reveal-done .section__title .word { overflow: visible; }
/* наклонные бегущие строки не создают горизонтальную прокрутку */
html { overflow-x: clip; }
.marquee { max-width: 100vw; }
