/* ============================================================
   ILLUXIS — LANDING + LEGAL
   Единый файл.
   Порядок: TOKENS → BASE → LANDING → LEGAL → АДАПТИВ
   ============================================================ */


/* ============================================================
   1. TOKENS
   ============================================================ */

:root {
  --bg: #070810;
  --bg-2: #0a0b14;
  --paper: #0e1019;
  --paper-2: #131624;

  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --line-3: rgba(255, 255, 255, .20);

  --fg: #eef0f7;
  --fg-dim: #8f94a8;
  --fg-mute: #5a5f75;
  --fg-faint: #2c3040;

  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #a5b4fc;
  --accent-soft: rgba(99, 102, 241, .14);
  --accent-line: rgba(99, 102, 241, .35);
  --accent-glow: rgba(99, 102, 241, .55);
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #7c3aed 100%);
  --grad-soft: linear-gradient(180deg, rgba(255, 255, 255, .15) 0%, rgba(255, 255, 255, 0) 60%);

  --green: #34d399;
  --red: #f87171;
  --amber: #fbbf24;

  --morning: #f4b860;
  --morning-2: #f7d099;
  --morning-soft: rgba(244, 184, 96, .10);
  --morning-line: rgba(244, 184, 96, .32);
  --morning-glow: rgba(244, 184, 96, .35);
  --morning-grad: linear-gradient(135deg, rgba(244, 184, 96, .12) 0%, rgba(244, 184, 96, .02) 60%);

  --day: #7c7ff5;
  --day-2: #a5b4fc;
  --day-soft: rgba(124, 127, 245, .12);
  --day-line: rgba(124, 127, 245, .38);
  --day-glow: rgba(124, 127, 245, .45);
  --day-grad: linear-gradient(135deg, rgba(124, 127, 245, .14) 0%, rgba(139, 92, 246, .04) 60%);

  --evening: #5eead4;
  --evening-2: #99f6e4;
  --evening-soft: rgba(94, 234, 212, .10);
  --evening-line: rgba(94, 234, 212, .30);
  --evening-glow: rgba(94, 234, 212, .35);
  --evening-grad: linear-gradient(135deg, rgba(94, 234, 212, .10) 0%, rgba(52, 211, 153, .02) 60%);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --fs-xs: 11.5px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 17px;
  --fs-lg: 21px;
  --fs-xl: 28px;
  --fs-2xl: 40px;
  --fs-3xl: 56px;
  --fs-4xl: 76px;
  --fs-5xl: 104px;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: 240ms;
  --dur-slow: 560ms;

  --container-max: 1320px;
  --container-pad: clamp(24px, 5vw, 72px);
}


/* ============================================================
   2. KEYFRAMES
   ============================================================ */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes riseBig {
  from {
    opacity: 0;
    transform: translateY(48px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes riseFromLeft {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes lineGrow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes blink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}



@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .35;
    transform: scale(.75);
  }
}

@keyframes glowBreathe {

  0%,
  100% {
    opacity: .45;
    transform: scale(1);
  }

  50% {
    opacity: .85;
    transform: scale(1.1);
  }
}

@keyframes gridSlide {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 64px 64px;
  }
}

@keyframes aurora1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: .9;
  }

  33% {
    transform: translate(4%, -3%) scale(1.15);
    opacity: 1;
  }

  66% {
    transform: translate(-3%, 4%) scale(1.08);
    opacity: .8;
  }
}

@keyframes aurora2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: .8;
  }

  50% {
    transform: translate(-5%, 5%) scale(1.2);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {

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


/* ============================================================
   3. BASE
   ============================================================ */

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

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: clip;
  max-width: 100vw;
  font-feature-settings: 'cv11', 'ss01';
  position: relative;
}

html,
body {
  overflow-x: hidden;
}

@supports (overflow: clip) {

  html,
  body {
    overflow-x: clip;
  }
}

body::after {
  content: '';
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 600px 500px at 80% 70%, rgba(139, 92, 246, .22), transparent 60%),
    radial-gradient(ellipse 650px 500px at 15% 85%, rgba(99, 102, 241, .24), transparent 60%);
  animation: aurora2 30s var(--ease) infinite;
  will-change: transform, opacity;
  filter: blur(24px);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 40%, #000 25%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 40%, #000 25%, transparent 90%);
  animation: gridSlide 60s linear infinite;
  opacity: .9;
}

.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .9;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--fg);
}

h1 {
  font-size: clamp(48px, 7vw, var(--fs-5xl));
}

h2 {
  font-size: clamp(36px, 5vw, var(--fs-4xl));
}

h3 {
  font-size: clamp(22px, 2.4vw, var(--fs-xl));
  letter-spacing: -0.025em;
}

p {
  color: var(--fg-dim);
  line-height: 1.6;
}


/* ============================================================
   4. УТИЛИТЫ
   ============================================================ */

.u-mono {
  font-family: var(--mono);
  font-feature-settings: 'tnum';
  letter-spacing: -0.02em;
}

.u-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.u-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 110;
  pointer-events: none;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--fg-faint);
  border-radius: 4px;
}


.app__brand-mark {
  width: 140px;
  height: auto;
  flex-shrink: 0;
  display: block;
}

/* ============================================================
   5. КОНТЕЙНЕР
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  position: relative;
  z-index: 1;
  min-width: 0;
}


/* ============================================================
   6. КНОПКИ
   ============================================================ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 32px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  isolation: isolate;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.btn--sm {
  padding: 12px 22px;
  font-size: 14px;
  border-radius: var(--r-sm);
  gap: 8px;
}

.btn--lg {
  padding: 22px 40px;
  font-size: 16px;
  border-radius: 14px;
  gap: 14px;
}

.btn--block {
  display: flex;
  width: 100%;
  justify-content: center;
}

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .25),
    inset 0 -1px 0 rgba(0, 0, 0, .15),
    0 1px 2px rgba(0, 0, 0, .4),
    0 8px 24px -8px rgba(99, 102, 241, .65),
    0 16px 48px -16px rgba(139, 92, 246, .5);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad-soft);
  pointer-events: none;
  z-index: -1;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    inset 0 -1px 0 rgba(0, 0, 0, .15),
    0 2px 4px rgba(0, 0, 0, .4),
    0 12px 32px -8px rgba(99, 102, 241, .8),
    0 24px 64px -20px rgba(139, 92, 246, .65);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, .2),
    0 4px 12px -4px rgba(99, 102, 241, .5);
}

.btn--ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, .02) 100%);
  border-color: var(--line-2);
  color: var(--fg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 1px 2px rgba(0, 0, 0, .2),
    0 4px 12px -4px rgba(0, 0, 0, .25);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(99, 102, 241, .12) 0%, rgba(99, 102, 241, .04) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 8px 24px -6px rgba(99, 102, 241, .35);
}

.btn:disabled {
  opacity: .4;
  pointer-events: none;
}


/* ============================================================
   7. HEADER
   ============================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--container-pad);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    padding var(--dur) var(--ease);
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  transition: height var(--dur) var(--ease);
}

.header--scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.header--scrolled .header__inner {
  height: 64px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.025em;
  flex-shrink: 0;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header__link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg-dim);
  transition: color var(--dur) var(--ease);
  position: relative;
  padding: 8px 0;
}

.header__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 1px;
  width: 0;
  background: var(--accent-2);
  transition: width var(--dur) var(--ease);
}

.header__link:hover {
  color: var(--fg);
}

.header__link:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header__burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.header__burger:hover {
  background: rgba(255, 255, 255, .08);
}

.header__burger-line,
.header__burger-line::before,
.header__burger-line::after {
  content: '';
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--fg);
  position: relative;
  border-radius: 1px;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.header__burger-line::before {
  position: absolute;
  top: -6px;
}

.header__burger-line::after {
  position: absolute;
  top: 6px;
}

.header__burger--open .header__burger-line {
  background: transparent;
}

.header__burger--open .header__burger-line::before {
  top: 0;
  transform: rotate(45deg);
}

.header__burger--open .header__burger-line::after {
  top: 0;
  transform: rotate(-45deg);
}


/* ============================================================
   8. МОБИЛЬНОЕ МЕНЮ
   ============================================================ */

.mobile-nav {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  z-index: 99;
  background: color-mix(in srgb, var(--bg) 98%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  display: none;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease), top var(--dur) var(--ease);
}

.mobile-nav--open {
  max-height: calc(100vh - 76px);
  overflow-y: auto;
}

.mobile-nav__link {
  padding: 20px var(--container-pad);
  font-size: 17px;
  font-weight: 500;
  color: var(--fg-dim);
  border-bottom: 1px solid var(--line);
  transition: color var(--dur) var(--ease);
}

.mobile-nav__link:hover {
  color: var(--fg);
}

.mobile-nav__cta {
  padding: 24px var(--container-pad);
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* ============================================================
   9. HERO ЛЕНДИНГА
   ============================================================ */

.main {
  padding-top: 76px;
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: auto;
}

.hero__meta {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.8;
}

.hero__meta--right {
  text-align: right;
}

.hero__meta-value {
  color: var(--fg);
  display: block;
}

.hero__meta--live {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s var(--ease) infinite;
}

.hero__clock {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.hero__main {
  margin-top: clamp(48px, 8vw, 96px);
  max-width: 1200px;
}

.hero__title {
  font-size: clamp(48px, 9vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 500;
  animation: riseBig .8s var(--ease-out) .1s both;
}

.hero__lead {
  margin-top: 40px;
  max-width: 62ch;
  font-size: var(--fs-lg);
  line-height: 1.45;
  color: var(--fg-dim);
  animation: rise .8s var(--ease-out) .3s both;
  letter-spacing: -0.015em;
}

.hero__lead strong {
  color: var(--fg);
  font-weight: 500;
}

.hero__bottom {
  margin-top: 64px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  animation: rise .8s var(--ease-out) .5s both;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--fg-mute);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__scroll-bar {
  width: 40px;
  height: 1px;
  background: var(--fg-faint);
  position: relative;
  overflow: hidden;
}

.hero__scroll-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  animation: lineGrow 2s var(--ease) infinite;
}


/* ============================================================
   10. CHAPTER
   ============================================================ */

.chapter {
  padding-top: clamp(88px, 12vw, 160px);
  padding-bottom: clamp(88px, 12vw, 160px);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.chapter__tag {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 56px;
}

.chapter__num {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--accent-2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.chapter__num::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 10px;
  margin-bottom: 3px;
}

.chapter__label {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--fg-mute);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}


/* ============================================================
   11. PROBLEM
   ============================================================ */

.problem {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}

.problem__aside {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--fg-mute);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-top: 12px;
  position: sticky;
  top: 110px;
}

.problem__content {
  max-width: 900px;
}

.problem__title {
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin-bottom: 48px;
}

.problem__strike {
  position: relative;
  color: var(--fg-mute);
  display: inline-block;
}

.problem__strike::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  top: 52%;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  animation: lineGrow .8s var(--ease-out) 1s forwards;
}

.problem__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.problem__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 24px 24px 24px 0;
  border-radius: var(--r-md);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--fg-dim);
  align-items: baseline;
  transition: background var(--dur) var(--ease), padding-left var(--dur) var(--ease), transform var(--dur) var(--ease);
  opacity: 0;
  transform: translateX(-32px);
  position: relative;
  overflow: hidden;
}

.problem__item::before {
  content: attr(data-num);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  background: var(--paper-2);
  border: 1px solid var(--line-2);
  color: var(--fg-mute);
  transition: all var(--dur) var(--ease);
  align-self: flex-start;
}

.problem__item:nth-child(1)::before {
  background: rgba(248, 113, 113, .10);
  border-color: rgba(248, 113, 113, .30);
  color: #f87171;
}

.problem__item:nth-child(2)::before {
  background: rgba(251, 191, 36, .10);
  border-color: rgba(251, 191, 36, .30);
  color: #fbbf24;
}

.problem__item:nth-child(3)::before {
  background: rgba(167, 139, 250, .12);
  border-color: rgba(167, 139, 250, .32);
  color: #a78bfa;
}

.problem__item:nth-child(4)::before {
  background: rgba(96, 165, 250, .10);
  border-color: rgba(96, 165, 250, .30);
  color: #60a5fa;
}

.problem__item:nth-child(5)::before {
  background: rgba(52, 211, 153, .10);
  border-color: rgba(52, 211, 153, .30);
  color: #34d399;
}

.problem__item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur-slow) var(--ease-out);
}

.problem__item:hover {
  background: linear-gradient(90deg, var(--accent-soft) 0%, transparent 60%);
  padding-left: 16px;
}

.problem__item:hover::before {
  transform: scale(1.1);
}

.problem__item:hover::after {
  transform: scaleY(1);
}

.problem__item strong {
  color: var(--fg);
  font-weight: 500;
}

.problem__list.is-visible .problem__item {
  animation: riseFromLeft .7s var(--ease-out) both;
}

.problem__list.is-visible .problem__item:nth-child(1) {
  animation-delay: .1s;
}

.problem__list.is-visible .problem__item:nth-child(2) {
  animation-delay: .2s;
}

.problem__list.is-visible .problem__item:nth-child(3) {
  animation-delay: .3s;
}

.problem__list.is-visible .problem__item:nth-child(4) {
  animation-delay: .4s;
}

.problem__list.is-visible .problem__item:nth-child(5) {
  animation-delay: .5s;
}


/* ============================================================
   12. SOLUTION
   ============================================================ */

.solution__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.solution__left {
  position: sticky;
  top: 110px;
}

.solution__title {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin-bottom: 28px;
}

.solution__lead {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 44ch;
  margin-bottom: 48px;
}

.solution__sig {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.solution__sig-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  transition: padding-left var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.solution__sig-item:nth-child(1):hover {
  padding-left: 8px;
  border-color: var(--morning-line);
}

.solution__sig-item:nth-child(2):hover {
  padding-left: 8px;
  border-color: var(--day-line);
}

.solution__sig-item:nth-child(3):hover {
  padding-left: 8px;
  border-color: var(--evening-line);
}

.solution__sig-key {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-top: 2px;
  transition: color var(--dur) var(--ease);
}

.solution__sig-item:nth-child(1) .solution__sig-key {
  color: var(--morning);
}

.solution__sig-item:nth-child(2) .solution__sig-key {
  color: var(--day);
}

.solution__sig-item:nth-child(3) .solution__sig-key {
  color: var(--evening);
}

.solution__sig-value {
  color: var(--fg);
  line-height: 1.5;
}

.solution__right {
  display: flex;
  flex-direction: column;
  gap: 0;
}


/* ============================================================
   13. SCENE
   ============================================================ */

.scene {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  opacity: 0;
  transform: translateY(32px);
  isolation: isolate;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, .3),
    0 12px 32px -12px rgba(0, 0, 0, .4);
}

.scene.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.scene:hover {
  transform: translateY(-3px);
}

.scene__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.scene__time {
  font-family: var(--mono);
  font-size: 32px;
  letter-spacing: -0.03em;
  font-weight: 500;
  transition: color var(--dur) var(--ease);
}

.scene__label {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color var(--dur) var(--ease);
}

.scene__body {
  position: relative;
  z-index: 1;
}

.scene__note {
  margin-top: 22px;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--fg-dim);
  padding-left: 16px;
  border-left: 2px solid var(--line-2);
  transition: border-color var(--dur) var(--ease);
}

.scene--morning {
  background: var(--morning-grad), var(--paper);
  border-color: var(--morning-line);
}

.scene--morning:hover {
  border-color: var(--morning);
  box-shadow: 0 32px 80px -24px var(--morning-glow), 0 12px 32px -12px rgba(0, 0, 0, .4);
}

.scene--morning::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(400px 240px at 100% 0%, var(--morning-soft), transparent 60%);
  opacity: .9;
}

.scene--morning::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--morning) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.scene--morning.is-visible::after {
  opacity: 1;
}

.scene--morning .scene__time {
  color: var(--morning);
}

.scene--morning .scene__label {
  color: var(--morning);
}

.scene--morning .scene__note {
  border-left-color: var(--morning-line);
}

.scene--day {
  background: var(--day-grad), var(--paper);
  border-color: var(--day-line);
}

.scene--day:hover {
  border-color: var(--day);
  box-shadow: 0 32px 80px -24px var(--day-glow), 0 12px 32px -12px rgba(0, 0, 0, .4);
}

.scene--day::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(400px 240px at 100% 0%, var(--day-soft), transparent 60%);
  opacity: .9;
}

.scene--day::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--day) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.scene--day.is-visible::after {
  opacity: 1;
}

.scene--day .scene__time {
  color: var(--day-2);
}

.scene--day .scene__label {
  color: var(--day);
}

.scene--day .scene__note {
  border-left-color: var(--day-line);
}

.scene--evening {
  background: var(--evening-grad), var(--paper);
  border-color: var(--evening-line);
}

.scene--evening:hover {
  border-color: var(--evening);
  box-shadow: 0 32px 80px -24px var(--evening-glow), 0 12px 32px -12px rgba(0, 0, 0, .4);
}

.scene--evening::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(400px 240px at 100% 0%, var(--evening-soft), transparent 60%);
  opacity: .9;
}

.scene--evening::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--evening) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.scene--evening.is-visible::after {
  opacity: 1;
}

.scene--evening .scene__time {
  color: var(--evening);
}

.scene--evening .scene__label {
  color: var(--evening);
}

.scene--evening .scene__note {
  border-left-color: var(--evening-line);
}

/* Мини-панель */
.mini-panel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-2);
  transition: border-color var(--dur) var(--ease);
}

.mini-panel__row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  opacity: 0;
}

.mini-panel__row:last-child {
  border-bottom: none;
}

.mini-panel__row:hover {
  background: rgba(255, 255, 255, .02);
}

.mini-panel__time {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  transition: color var(--dur) var(--ease);
}

.mini-panel__name {
  color: var(--fg);
  font-weight: 500;
}

.mini-panel__service {
  color: var(--fg-mute);
  font-size: var(--fs-xs);
}

.scene--morning .mini-panel {
  background: linear-gradient(180deg, rgba(244, 184, 96, .04), transparent);
  border-color: var(--morning-line);
}

.scene--morning .mini-panel__time {
  color: var(--morning);
}

.scene--morning .mini-panel__row {
  border-bottom-color: rgba(244, 184, 96, .15);
}

/* Мини-уведомление */
.mini-notification {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  opacity: 0;
}

.mini-notification__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s var(--ease) infinite;
}

.mini-notification__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mini-notification__title {
  color: var(--fg);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.mini-notification__sub {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--fg-mute);
}

.mini-notification__badge {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scene--day .mini-notification {
  border-color: var(--day-line);
  background: linear-gradient(135deg, var(--day-soft), transparent);
}

.scene--day .mini-notification__dot {
  background: var(--day);
  box-shadow: 0 0 0 4px var(--day-soft);
}

.scene--day .mini-notification__badge {
  color: var(--day-2);
  background: var(--day-soft);
  border: 1px solid var(--day-line);
}

/* Мини-статы */
.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  opacity: 0;
}

.mini-stats__item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.mini-stats__key {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
}

.mini-stats__value {
  font-family: var(--mono);
  font-size: 20px;
  color: var(--fg);
  letter-spacing: -0.03em;
  font-weight: 500;
}

.mini-stats__value--accent {
  color: var(--accent-3);
}

.scene--evening .mini-stats__item {
  background: linear-gradient(180deg, var(--evening-soft), transparent);
  border-color: var(--evening-line);
}

.scene--evening .mini-stats__value--accent {
  color: var(--evening-2);
}

.scene.is-visible .mini-panel__row {
  animation: rise .5s var(--ease-out) both;
}

.scene.is-visible .mini-panel__row:nth-child(1) {
  animation-delay: .2s;
}

.scene.is-visible .mini-panel__row:nth-child(2) {
  animation-delay: .3s;
}

.scene.is-visible .mini-panel__row:nth-child(3) {
  animation-delay: .4s;
}

.scene.is-visible .mini-notification,
.scene.is-visible .mini-stats {
  animation: rise .6s var(--ease-out) .2s both;
}

/* Разделители */
.scene-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0;
  padding-left: 32px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}

.scene-divider.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scene-divider__line {
  width: 48px;
  height: 1px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}

.scene-divider__line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform-origin: left;
  animation: lineGrow 2s var(--ease) infinite;
}

.scene-divider__arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(90deg);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.solution__right .scene-divider:nth-of-type(1) .scene-divider__line::after {
  background: linear-gradient(90deg, var(--morning) 0%, var(--day) 100%);
}

.solution__right .scene-divider:nth-of-type(1) .scene-divider__arrow {
  color: var(--morning);
  background: var(--morning-soft);
  border-color: var(--morning-line);
}

.solution__right .scene-divider:nth-of-type(2) .scene-divider__line::after {
  background: linear-gradient(90deg, var(--day) 0%, var(--evening) 100%);
}

.solution__right .scene-divider:nth-of-type(2) .scene-divider__arrow {
  color: var(--day-2);
  background: var(--day-soft);
  border-color: var(--day-line);
}


/* ============================================================
   14. MANIFEST
   ============================================================ */

.manifest {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.manifest__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(32px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: padding-left var(--dur-slow) var(--ease-out);
  position: relative;
}

.manifest__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur-slow) var(--ease-out);
  box-shadow: 0 0 12px var(--accent-glow);
}

.manifest__item::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
  z-index: 2;
}

.manifest__item:hover {
  padding-left: 20px;
}

.manifest__item:hover::before {
  transform: scaleY(1);
}

.manifest__item:hover::after {
  transform: scaleX(.4);
}

.manifest__title {
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 500;
  max-width: 24ch;
  transition: color var(--dur) var(--ease);
}

.manifest__item:hover .manifest__title {
  color: var(--accent-3);
}

.manifest__desc {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 52ch;
  letter-spacing: -0.01em;
}

.manifest__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-3);
  padding: 3px 9px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: 2px;
}


/* ============================================================
   15. PRICE
   ============================================================ */

.price {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.price__tag {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--accent-2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.price__title {
  margin-bottom: 8px;
}

.price__display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 40px 0;
}

.price__amount {
  font-family: var(--mono);
  font-size: clamp(64px, 12vw, 128px);
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.06em;
  line-height: 1;
  position: relative;
}

.price__amount::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 0.75em;
  background: var(--accent-2);
  vertical-align: -0.06em;
  margin-left: 6px;
  animation: blink 1.1s steps(2) infinite;
}

.price__period {
  font-size: var(--fs-lg);
  color: var(--fg-mute);
  letter-spacing: -0.01em;
}

.price__note {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 52ch;
  margin: 0 auto 40px;
}

.price-compare {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .4);
}

.price-compare__col {
  padding: 36px;
  transition: background var(--dur) var(--ease);
}

.price-compare__col--before {
  border-right: 1px solid var(--line-2);
  background: var(--paper);
}

.price-compare__col--after {
  background: var(--paper-2);
  position: relative;
}

.price-compare__col--after::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--accent-soft), transparent 40%);
  pointer-events: none;
}

.price-compare__title {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 24px;
}

.price-compare__col--after .price-compare__title {
  color: var(--accent-2);
}

.price-compare__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.price-compare__item {
  display: flex;
  gap: 12px;
  font-size: var(--fs-sm);
  color: var(--fg-dim);
  line-height: 1.5;
  align-items: baseline;
}

.price-compare__item::before {
  content: '—';
  color: var(--fg-faint);
  flex-shrink: 0;
  font-family: var(--mono);
}

.price-compare__col--after .price-compare__item::before {
  content: '→';
  color: var(--accent-2);
}

.price-table {
  margin-top: 72px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  text-align: left;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .3);
}

.price-table__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 200px;
  border-bottom: 1px solid var(--line);
  align-items: stretch;
  font-size: var(--fs-md);
  position: relative;
  background: var(--paper);
}

.price-table__row>* {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease);
}

.price-table__name {
  justify-content: flex-start;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-left: 28px;
  padding-right: 24px;
}

.price-table__sub {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--fg-mute);
  font-weight: 400;
}

.price-table__team {
  background: linear-gradient(180deg, rgba(99, 102, 241, .14) 0%, rgba(99, 102, 241, .04) 100%);
  border-left: 1px solid var(--accent-line);
  border-right: 1px solid var(--accent-line);
  position: relative;
}

.price-table__team::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 100px at 50% 0%, var(--accent-glow), transparent 70%);
  opacity: .22;
  pointer-events: none;
}

.price-table__mark {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--fg-faint);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.price-table__mark--yes {
  color: var(--accent-2);
}

.price-table__team .price-table__mark--yes {
  color: var(--accent-3);
  font-weight: 700;
  font-size: 18px;
  text-shadow: 0 0 24px var(--accent-glow);
}

.price-table__row--head {
  border-bottom: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.price-table__row--head>* {
  padding: 20px;
  text-align: center;
}

.price-table__row--head .price-table__name {
  text-align: left;
  padding-left: 28px;
}

.price-table__row--head .price-table__team {
  color: var(--accent-3);
  font-weight: 600;
  position: relative;
}

.price-table__row--head .price-table__team::after {
  content: 'Выбор большинства';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-3);
  background: var(--bg);
  padding: 3px 10px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 4px 12px -4px var(--accent-glow);
}

.price-table__row:not(.price-table__row--head):not(.price-table__row--cta):hover .price-table__name {
  padding-left: 36px;
}

.price-table__row:not(.price-table__row--head):not(.price-table__row--cta):hover .price-table__mark--yes {
  transform: scale(1.2);
}

.price-table__row--cta {
  border-bottom: none;
  display: block;
  padding: 40px 24px;
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  text-align: center;
}

.price-table__row--cta .btn {
  margin: 0 auto;
}


/* ============================================================
   16. FAQ
   ============================================================ */

.faq-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.faq {
  max-width: 840px;
  width: 100%;
}

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

.faq__btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--fg);
  font-family: var(--font);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  transition: color var(--dur) var(--ease);
  cursor: pointer;
  line-height: 1.3;
}

.faq__btn:hover {
  color: var(--accent-3);
}

.faq__icon {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
  margin-top: 3px;
  transform: rotate(0deg);
  transition: transform var(--dur-slow) var(--ease);
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--fg-dim);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.faq__icon::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
}

.faq__icon::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
}

.faq__item.is-open .faq__icon {
  transform: rotate(180deg);
}

.faq__item.is-open .faq__icon::after {
  transform: scaleY(0);
}

.faq__item.is-open .faq__icon::before {
  background: var(--accent-2);
}

.faq__item.is-open .faq__btn {
  color: var(--accent-3);
}

.faq__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease);
}

.faq__answer {
  padding: 0 0 32px;
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--fg-dim);
  max-width: 65ch;
}


/* ============================================================
   17. FINALE + FOOTER
   ============================================================ */

.finale {
  padding-top: clamp(112px, 14vw, 200px);
  padding-bottom: clamp(112px, 14vw, 200px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.finale::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 800px 400px at 50% 100%, var(--accent-soft), transparent 70%);
  pointer-events: none;
  animation: glowBreathe 6s var(--ease) infinite;
}

.finale__inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.finale__title {
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.finale__lead {
  margin-top: 32px;
  font-size: var(--fs-lg);
  color: var(--fg-dim);
  letter-spacing: -0.01em;
}

.finale__actions {
  margin-top: 56px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.finale__foot {
  margin-top: 72px;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--fg-mute);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer {
  border-top: 1px solid var(--line);
  padding-top: 48px;
  padding-bottom: 48px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: var(--fs-sm);
  color: var(--fg-mute);
}

.footer__links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer__link {
  transition: color var(--dur) var(--ease);
}

.footer__link:hover {
  color: var(--accent-2);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   18. LEGAL PAGES
   Оферта и политика конфиденциальности.
   Desktop-правила.
   ============================================================ */

.legal-page {
  padding-top: clamp(104px, 12vw, 144px);
  padding-bottom: clamp(80px, 10vw, 120px);
}

/* ---------- HERO legal ---------- */
.legal-hero {
  max-width: 720px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  text-align: center;
  animation: rise .8s var(--ease-out) both;
}

.legal-hero__eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--accent-2);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 5px 12px;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  background: var(--accent-soft);
}

.legal-hero__title {
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 60%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.legal-hero__lead {
  font-size: var(--fs-md);
  color: var(--fg-dim);
  line-height: 1.55;
  max-width: 52ch;
  margin: 0 auto 24px;
}

.legal-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--fg-mute);
  letter-spacing: 0.02em;
}

.legal-hero__meta a {
  color: var(--accent-3);
  transition: color var(--dur) var(--ease);
}

.legal-hero__meta a:hover {
  color: var(--accent-2);
}

/* ---------- Раскладка legal: TOC + статья ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  min-width: 0;
}

/* ---------- TOC (desktop) ---------- */
.legal-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  padding-bottom: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-3) transparent;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  animation: rise .8s var(--ease-out) .05s both;
}

.legal-toc::-webkit-scrollbar {
  width: 4px;
}

.legal-toc::-webkit-scrollbar-thumb {
  background: var(--line-3);
  border-radius: 2px;
}

.legal-toc__title {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
  padding-left: 12px;
  position: relative;
}

.legal-toc__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 1px;
  background: var(--accent-2);
  transform: translateY(-50%);
}

.legal-toc__nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-left: 1px solid var(--line);
}

.legal-toc__link {
  display: block;
  padding: 7px 0 7px 16px;
  font-size: var(--fs-sm);
  color: var(--fg-mute);
  line-height: 1.4;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    padding-left var(--dur) var(--ease);
}

.legal-toc__link:hover {
  color: var(--fg);
  border-left-color: var(--accent-line);
  padding-left: 18px;
}

.legal-toc__link.is-active {
  color: var(--accent-3);
  border-left-color: var(--accent);
  background: linear-gradient(90deg, var(--accent-soft) 0%, transparent 100%);
  font-weight: 500;
}

/* ---------- Статья ---------- */
.legal {
  max-width: 720px;
  min-width: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg-dim);
  animation: rise .8s var(--ease-out) .1s both;
}

.legal__lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  padding: 22px 26px;
  background:
    linear-gradient(135deg, var(--accent-soft) 0%, transparent 60%),
    var(--paper);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  margin-bottom: 56px;
}

.legal__lead strong {
  color: var(--fg);
  font-weight: 600;
}

.legal__lead a {
  color: var(--accent-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal__section {
  margin-bottom: 64px;
  scroll-margin-top: 100px;
}

.legal__section:last-of-type {
  margin-bottom: 0;
}

.legal__h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.legal__h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 60px;
  height: 2px;
  background: var(--grad);
  border-radius: 1px;
}

.legal__h2-num {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.legal__h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.015em;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal__h3:first-child {
  margin-top: 0;
}

.legal p {
  margin-bottom: 14px;
  color: var(--fg-dim);
  line-height: 1.6;
}

.legal p:last-child {
  margin-bottom: 0;
}

.legal a {
  color: var(--accent-3);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}

.legal a:hover {
  color: var(--accent-2);
  text-decoration-color: var(--accent-2);
}

.legal strong {
  color: var(--fg);
  font-weight: 600;
}

.legal code,
.legal .mono {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--accent-3);
  background: var(--paper-2);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.legal__list {
  counter-reset: legal-list;
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal__list>li {
  counter-increment: legal-list;
  position: relative;
  padding-left: 36px;
  line-height: 1.65;
  color: var(--fg-dim);
}

.legal__list>li::before {
  content: counter(legal-list) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 0.9em;
  font-weight: 600;
  color: var(--accent-3);
  min-width: 24px;
}

.legal__list--nested {
  margin-top: 10px;
  margin-bottom: 4px;
  gap: 8px;
  counter-reset: legal-list;
}

.legal__list--nested>li {
  counter-increment: none;
  padding-left: 24px;
}

.legal__list--nested>li::before {
  content: '—';
  color: var(--fg-faint);
  font-weight: 400;
  font-family: var(--font);
  font-size: 1em;
}

.legal__list--dash {
  counter-reset: none;
  margin-bottom: 0;
}

.legal__list--dash>li {
  counter-increment: none;
  padding-left: 24px;
}

.legal__list--dash>li::before {
  content: '—';
  color: var(--fg-faint);
  font-weight: 400;
  font-family: var(--font);
  font-size: 1em;
}

.legal__defs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.legal__defs dt {
  font-weight: 600;
  color: var(--fg);
  font-size: var(--fs-md);
  margin-top: 20px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.legal__defs dt:first-child {
  margin-top: 0;
}

.legal__defs dd {
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid var(--line-2);
  color: var(--fg-dim);
  line-height: 1.6;
}

/* ---------- Реквизиты ---------- */
.legal__section--requisites {
  padding: 32px;
  background:
    linear-gradient(135deg, var(--accent-soft) 0%, transparent 60%),
    var(--paper);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}

.legal__section--requisites::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 2px;
  background: var(--grad);
}

.legal__section--requisites .legal__h2 {
  border-bottom-color: rgba(99, 102, 241, .2);
}

.legal__requisites {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
  margin: 0;
}

.legal__req-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.legal__req-row--wide {
  grid-column: 1 / -1;
}

.legal__req-row dt {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.legal__req-row dd {
  margin: 0;
  color: var(--fg);
  font-size: var(--fs-sm);
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.legal__req-row dd a {
  color: var(--accent-3);
  text-decoration: none;
}

.legal__req-row dd a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

.legal__req-row .mono {
  font-family: var(--mono);
  color: var(--fg-dim);
  background: transparent;
  border: none;
  padding: 0;
  font-size: inherit;
}

/* ---------- Footer статьи ---------- */
.legal-footer {
  max-width: 1100px;
  margin: 80px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.legal-footer__next {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  transition: transform var(--dur) var(--ease);
}

.legal-footer__next:hover {
  transform: translateX(4px);
}

.legal-footer__next-label {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--fg-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-footer__next-title {
  font-size: var(--fs-md);
  color: var(--accent-3);
  font-weight: 500;
}

.legal-footer__next:hover .legal-footer__next-title {
  color: var(--accent-2);
}


/* ============================================================
   19. АДАПТИВ
   ВСЁ В КОНЦЕ. От большого экрана к маленькому.
   ============================================================ */

@media (max-width: 1024px) {

  /* --- Header --- */
  .header__nav {
    gap: 24px;
  }

  .header__link {
    font-size: 14px;
  }

  /* --- Problem --- */
  .problem {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .problem__aside {
    position: static;
  }

  /* --- Solution --- */
  .solution__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .solution__left {
    position: static;
  }

  /* --- Manifest --- */
  .manifest__item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* --- Price --- */
  .price-compare {
    grid-template-columns: 1fr;
  }

  .price-compare__col--before {
    border-right: none;
    border-bottom: 1px solid var(--line-2);
  }

  .price-table__row {
    grid-template-columns: minmax(0, 1fr) 80px 120px;
    font-size: var(--fs-sm);
  }

  .price-table__row>* {
    padding: 18px 12px;
  }

  .price-table__name {
    padding-left: 20px;
    padding-right: 12px;
  }

  .price-table__row--head .price-table__team::after {
    display: none;
  }

  /* --- Legal: TOC полностью скрываем --- */
  .legal-layout {
    display: block;
    max-width: 720px;
    margin: 0 auto;
  }

  .legal-toc {
    display: none !important;
  }

  .legal {
    max-width: 100%;
  }
}


/* ---------- 900px: мобильное меню ---------- */
@media (max-width: 900px) {
  .header__nav {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }
}


/* ---------- 720px: мобильный ---------- */
@media (max-width: 720px) {
  .header__actions{
    display: none;
  }
  .chapter__tag {
    margin-bottom: 32px;
  }

  .mini-stats {
    grid-template-columns: 1fr;
  }

  /* Legal-страницы */
  .legal-page {
    padding-top: 100px;
    padding-bottom: 56px;
  }

  .legal-hero {
    margin-bottom: 32px;
  }

  .legal-hero__title {
    font-size: 30px;
  }

  .legal-hero__lead {
    font-size: var(--fs-sm);
  }

  .legal__lead {
    padding: 18px 20px;
    margin-bottom: 40px;
    font-size: 15px;
  }

  .legal__section {
    margin-bottom: 44px;
    scroll-margin-top: 130px;
  }

  .legal__h2 {
    font-size: 20px;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
  }

  .legal__h2-num {
    font-size: 10px;
  }

  .legal__h3 {
    font-size: 15px;
    margin-top: 22px;
    margin-bottom: 10px;
  }

  .legal {
    font-size: 15px;
    line-height: 1.65;
  }

  .legal__list {
    gap: 10px;
  }

  .legal__list>li {
    padding-left: 26px;
    font-size: 15px;
    line-height: 1.6;
  }

  .legal__list>li::before {
    min-width: 20px;
    font-size: 13px;
  }

  .legal__list--nested>li,
  .legal__list--dash>li {
    padding-left: 20px;
  }

  .legal__defs dt {
    font-size: 15px;
    margin-top: 16px;
    margin-bottom: 4px;
  }

  .legal__defs dd {
    padding-left: 12px;
    font-size: 14.5px;
    line-height: 1.55;
  }

  .legal__section--requisites {
    padding: 22px 20px;
    border-radius: var(--r-md);
  }

  .legal__section--requisites::before {
    width: 80px;
  }

  .legal__requisites {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .legal__req-row--wide {
    grid-column: auto;
  }

  .legal__req-row dd {
    font-size: 13.5px;
  }

  .legal-footer {
    margin-top: 48px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .legal-footer .btn {
    justify-content: center;
  }

  .legal-footer__next {
    text-align: left;
    padding: 14px 16px;
    background: var(--paper);
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
  }

  .legal-footer__next:hover {
    transform: none;
    border-color: var(--accent-line);
  }
}


/* ---------- 620px: узкий мобильный ---------- */
@media (max-width: 620px) {
  .hero__title {
    font-size: 44px;
  }

  .hero__lead {
    font-size: var(--fs-md);
  }

  .hero__bottom {
    margin-top: 40px;
  }

  .hero__scroll {
    display: none;
  }

  .problem__title {
    font-size: 30px;
  }

  .problem__item {
    grid-template-columns: 44px 1fr;
    gap: 16px;
    padding: 20px 0;
  }

  .problem__item::before {
    width: 32px;
    height: 32px;
    font-size: var(--fs-xs);
  }

  .manifest__title {
    font-size: 20px;
  }

  .manifest__desc {
    font-size: var(--fs-base);
  }

  .finale__title {
    font-size: 40px;
  }

  .finale__lead {
    font-size: var(--fs-md);
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
  }

  .footer__links {
    gap: 20px;
  }
}


/* ---------- 480px: очень узкий ---------- */
@media (max-width: 480px) {
  .legal-hero__title {
    font-size: 26px;
  }

  .legal-hero__meta {
    font-size: 10.5px;
    gap: 6px;
  }

  .legal__h2 {
    font-size: 18px;
  }

  .legal-toc {
    padding: 8px 0;
  }

  .legal-toc__link {
    padding: 7px 12px;
    font-size: 12px;
  }

  .legal-toc__link.is-active {
    padding-left: 12px;
  }
}


/* ---------- Отключаем лишние анимации для слабых устройств ---------- */
@media (prefers-reduced-motion: reduce) {

  .problem__item,
  .scene,
  .scene-divider,
  .mini-panel__row,
  .mini-notification,
  .mini-stats {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}