/* ═══════════════════════════════════════════════════
   DESIGN TOKENS — Agent247 v2
   Warmer, more sophisticated palette.
   ═══════════════════════════════════════════════════ */
:root {
  /* Dark theme — warm-deep with violet undertone */
  --color-abyss:   #080C17;
  --color-void:    #131A2C;
  --color-ink:     #EDF0F5;
  --color-stone:   #6F7787;
  --color-fog:     #29304A;

  /* Light theme — clean, airy */
  --color-crest:   #F7F8FC;
  --color-pearl:   #FFFFFF;
  --color-ember:   #E4E7EE;

  /* Accent — vibrant violet (visible on both dark & light) */
  --color-accent:        #8B5CF6;
  --color-accent-hover:  #7C3AED;
  --color-accent-light:  #F4F2FF;
  --color-accent-muted:  #A78BFA;
  --color-accent-glow:   rgba(139,92,246,0.25);

  /* Secondary accents for card differentiation */
  --color-teal:          #06B6D4;
  --color-teal-light:    #CFFAFE;
  --color-teal-muted:    #22D3EE;
  --color-amber:         #F59E0B;
  --color-amber-light:   #FEF3C7;
  --color-indigo:        #6366F1;
  --color-indigo-light:  #E0E7FF;

  /* Semantic */
  --color-success:       #10B981;
  --color-success-light: #D1FAE5;
  --color-danger:        #EF4444;
  --color-danger-light:  #FEE2E2;

  /* Typography */
  --font-display: 'Inter Tight', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Type scale */
  --text-hero:    clamp(2.1rem, 4.2vw, 3.25rem);
  --text-h1:      clamp(2rem, 4vw, 3rem);
  --text-h2:      clamp(1.75rem, 3vw, 2.25rem);
  --text-h3:      clamp(1.25rem, 2vw, 1.5rem);
  --text-lead:    clamp(1rem, 1.3vw, 1.125rem);
  --text-body:    1rem;
  --text-small:   0.875rem;
  --text-label:   0.75rem;
  --text-caption: 0.625rem;

  /* Spacing */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  24px;
  --radius-full: 50%;

  /* Shadows — softer, more depth */
  --shadow-card:    0 1px 3px rgba(8,12,23,0.06), 0 4px 12px rgba(8,12,23,0.05);
  --shadow-elevated: 0 4px 12px rgba(8,12,23,0.08), 0 8px 28px rgba(8,12,23,0.10);
  --shadow-glow:    0 0 60px var(--color-accent-glow);
  --shadow-btn:     0 4px 16px rgba(139,92,246,0.35);

  /* Transitions */
  --transition-fast:   180ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Backward compatibility */
  --md-sys-color-primary: var(--color-accent);
  --md-sys-color-on-primary: #FFFFFF;
  --md-sys-color-primary-container: var(--color-accent-light);
  --md-sys-color-on-primary-container: var(--color-accent);
  --md-sys-color-secondary: var(--color-teal);
  --md-sys-color-on-secondary: #FFFFFF;
  --md-sys-color-secondary-container: rgba(6,182,212,0.10);
  --md-sys-color-on-secondary-container: #0891B2;
  --md-sys-color-background: var(--color-crest);
  --md-sys-color-on-background: var(--color-abyss);
  --md-sys-color-surface: var(--color-pearl);
  --md-sys-color-on-surface: var(--color-abyss);
  --md-sys-color-surface-variant: var(--color-crest);
  --md-sys-color-on-surface-variant: var(--color-stone);
  --md-sys-color-outline: var(--color-ember);
  --md-sys-color-outline-variant: var(--color-ember);
  --md-sys-color-error: var(--color-danger);
  --md-sys-color-tertiary: var(--color-accent-muted);
  --md-sys-color-on-tertiary: #FFFFFF;
  --md-sys-color-tertiary-container: var(--color-accent-light);
  --md-sys-color-on-tertiary-container: var(--color-accent);
  --md-sys-elevation-0: none;
  --md-sys-elevation-1: var(--shadow-card);
  --md-sys-elevation-2: var(--shadow-card);
  --md-sys-elevation-3: var(--shadow-elevated);
  --md-sys-shape-corner-extra-small: var(--radius-sm);
  --md-sys-shape-corner-small: var(--radius-md);
  --md-sys-shape-corner-medium: var(--radius-md);
  --md-sys-shape-corner-large: var(--radius-lg);
  --md-sys-shape-corner-extra-large: var(--radius-xl);
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--color-abyss);
  background: var(--color-crest);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════ */
.text-nowrap { white-space: nowrap; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  padding: 0.3rem 0.875rem;
  border: 1px solid var(--color-accent-muted);
  background: var(--color-accent-light);
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════
   BAND — alternating backgrounds
   ═══════════════════════════════════════════════════ */
.band--dark {
  background: var(--color-abyss);
  color: var(--color-ink);
}

.band--dark .section-label {
  color: var(--color-accent-muted);
  border-color: rgba(139,92,246,0.25);
  background: rgba(139,92,246,0.08);
}

.band--light {
  background: var(--color-crest);
  color: var(--color-abyss);
}

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 600;
  padding: 0.8rem 1.875rem;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-smooth);
  white-space: nowrap;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent), #7C3AED);
  color: #fff;
  box-shadow: 0 2px 8px rgba(139,92,246,0.3);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  
  box-shadow: var(--shadow-btn);
}

.btn--outline {
  background: transparent;
  color: var(--color-ink);
  border: 1.5px solid rgba(237,240,245,0.2);
}
.btn--outline:hover {
  border-color: rgba(237,240,245,0.5);
  background: rgba(237,240,245,0.05);
}

.btn--outline-dark {
  background: transparent;
  color: var(--color-abyss);
  border: 1.5px solid var(--color-ember);
}
.btn--outline-dark:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-light);
}

.btn--ghost {
  background: transparent;
  color: rgba(237,240,245,0.7);
  font-weight: 500;
  padding: 0.5rem 1rem;
}
.btn--ghost:hover {
  color: var(--color-ink);
}
.btn--ghost i { display: none; }

.btn--large {
  padding: 1.125rem 2.5rem;
  font-size: var(--text-body);
  font-weight: 700;
  border-radius: var(--radius-xl);
  white-space: normal;
  text-align: center;
  letter-spacing: 0.01em;
}

.btn__price {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .btn--large {
    flex-wrap: wrap;
    justify-content: center;
  }
  .btn__price {
    white-space: normal;
  }
}

/* ═══════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8,12,23,0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(237,240,245,0.06);
  transition: background var(--transition-smooth);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.header__logo {
  display: flex;
  align-items: center;
  /* Знак с надписью не ужимается: шапка — flex-строка, и при нехватке
     места логотип сжимался первым. */
  flex: 0 0 auto;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

/* Надпись рядом со знаком — картинка, вырезанная из самого логотипа:
   у фирменной гарнитуры нет веб-версии, а набирать «Agent 247» обычным
   шрифтом значило бы поставить рядом две разные буквы A. Высота задана
   по прописной букве, ширина считается сама. */
.brand__word {
  height: 15px;
  width: auto;
  display: block;
  flex: none;
  /* Глобальное img{max-width:100%} при зажатой высоте сплющивало надпись
     по горизонтали: буквы сжимались, а высота оставалась 15px. */
  max-width: none;
}

.header__logo-mark {
  width: 38px;
  height: 38px;
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--color-accent);
  background: rgba(139,92,246,0.1);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.header__logo:hover .header__logo-mark {
  background: rgba(139,92,246,0.18);
  box-shadow: 0 0 20px rgba(139,92,246,0.2);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header__nav a {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 500;
  color: rgba(237,240,245,0.55);
  padding: 0.375rem 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.header__nav a:hover {
  color: var(--color-ink);
  border-color: rgba(237,240,245,0.1);
  background: rgba(237,240,245,0.03);
}

/* The one nav item that leaves the home page: an accented pill, set off from
   the numbered anchors by a rule so it does not read as "06." */
.header__nav-page {
  margin-left: 0.5rem;
  padding-left: 1rem !important;
  border-left: 1px solid rgba(237,240,245,0.14) !important;
  border-radius: 0 !important;
  color: var(--color-accent-muted) !important;
}
.header__nav-page:hover {
  color: var(--color-ink) !important;
  background: none !important;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── Mobile menu ──
   Below the breakpoint the nav used to be display:none with nothing in its
   place, so the sections were unreachable from a phone. The burger reopens the
   same nav as a drawer under the header bar. */
.header__burger {
  display: none;
  order: 3;                      /* the include sits before .header__actions */
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  background: rgba(237,240,245,0.04);
  border: 1px solid rgba(237,240,245,0.12);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.header__burger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-ink, #EDF0F5);
  border-radius: 2px;
  transition: transform 180ms cubic-bezier(.4,0,.2,1), opacity 180ms cubic-bezier(.4,0,.2,1);
}
.header__burger--open .header__burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger--open .header__burger-bar:nth-child(2) { opacity: 0; }
.header__burger--open .header__burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 1140, а не 768: логотип (204) + меню (587) + кнопки (до 264) + поля (64)
   требуют 1119 пикселей. Ниже этого меню уходит в выдвижной ящик, иначе
   шапку распирает и flex сжимает всё подряд. */
@media (max-width: 1140px) {
  .header__actions .btn--outline { display: none; }
  .header__burger { display: flex; }
  .header__nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    /* Solid, not translucent: a backdrop-filter nested inside the header's own
       backdrop-filter composites unpredictably and let the hero show through. */
    background: #080C17;
    border-bottom: 1px solid rgba(237,240,245,0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms cubic-bezier(.4,0,.2,1), transform 180ms cubic-bezier(.4,0,.2,1), visibility 180ms;
  }
  .header__nav--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .header__nav a { padding: 0.8rem 0.25rem; font-size: 0.75rem; }
  /* In the drawer the items stack, so the separator belongs above it. */
  .header__nav-page {
    margin-left: 0;
    padding-left: 0.25rem !important;
    border-left: none !important;
    border-top: 1px solid rgba(237,240,245,0.14) !important;
    margin-top: 0.25rem;
  }
}

/* На узком экране надпись в шапке не умещается: ужать её до читаемого
   минимума нельзя, поэтому остаётся один знак. В футере место есть. */
@media (max-width: 560px) {
  .header__logo .brand__word { display: none; }
}

@media (max-width: 480px) {
  .header__actions { gap: 0.5rem; }
  .header__actions .btn--primary {
    padding: 0.5rem 0.875rem;
    font-size: var(--text-label);
  }
  .header__logo { font-size: 0.875rem; }
  .btn--ghost { padding: 0.5rem; }
  .btn--ghost .btn__text { display: none; }
  .btn--ghost i { display: inline; font-size: 1.125rem; }
}

/* ═══════════════════════════════════════════════════
   HERO — the thesis
   ═══════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Floating accent dots — ambient atmosphere */
.hero__bg-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
}

/* Sizes: xs / sm / md / lg */
.hero__bg-dot--1  { width: 5px;  height: 5px;  background: var(--color-accent);       top: 18%; left: 10%;  animation: float-slow-a 6s ease-in-out 0s infinite; }
.hero__bg-dot--2  { width: 3px;  height: 3px;  background: var(--color-teal);          top: 55%; right: 18%; animation: float-slow-b 8s ease-in-out 1s infinite; }
.hero__bg-dot--3  { width: 6px;  height: 6px;  background: var(--color-accent-muted);  top: 72%; left: 55%; animation: float-slow-a 7s ease-in-out 2s infinite; }
.hero__bg-dot--4  { width: 4px;  height: 4px;  background: var(--color-accent);       top: 35%; right: 30%; animation: float-slow-b 7.5s ease-in-out 0.5s infinite; }
.hero__bg-dot--5  { width: 2px;  height: 2px;  background: var(--color-teal-muted);   top: 12%; left: 45%; animation: float-slow-a 9s ease-in-out 3s infinite; }
.hero__bg-dot--6  { width: 7px;  height: 7px;  background: var(--color-accent);       top: 80%; left: 22%; animation: float-slow-b 6.5s ease-in-out 1.5s infinite; }
.hero__bg-dot--7  { width: 3px;  height: 3px;  background: var(--color-accent-muted); top: 45%; right: 8%;  animation: float-slow-a 8.5s ease-in-out 2.5s infinite; }
.hero__bg-dot--8  { width: 5px;  height: 5px;  background: var(--color-teal);         top: 8%;  right: 42%; animation: float-slow-b 7s ease-in-out 4s infinite; }
.hero__bg-dot--9  { width: 2px;  height: 2px;  background: var(--color-teal-muted);   top: 68%; right: 55%; animation: float-slow-a 6.8s ease-in-out 1.8s infinite; }
.hero__bg-dot--10 { width: 6px;  height: 6px;  background: var(--color-accent);       top: 90%; left: 70%; animation: float-slow-b 7.2s ease-in-out 3.2s infinite; }
.hero__bg-dot--11 { width: 4px;  height: 4px;  background: var(--color-accent-muted); top: 28%; left: 78%; animation: float-slow-a 5.8s ease-in-out 0.8s infinite; }
.hero__bg-dot--12 { width: 3px;  height: 3px;  background: var(--color-teal);         top: 50%; left: 35%; animation: float-slow-b 6.3s ease-in-out 3.5s infinite; }
.hero__bg-dot--13 { width: 2px;  height: 2px;  background: var(--color-accent);       top: 22%; left: 62%; animation: float-slow-a 7.6s ease-in-out 1.2s infinite; }
.hero__bg-dot--14 { width: 5px;  height: 5px;  background: var(--color-accent-muted); top: 85%; left: 42%; animation: float-slow-b 5.5s ease-in-out 2.8s infinite; }
.hero__bg-dot--15 { width: 4px;  height: 4px;  background: var(--color-teal);         top: 40%; left: 5%;  animation: float-slow-a 8.2s ease-in-out 4.2s infinite; }
.hero__bg-dot--16 { width: 6px;  height: 6px;  background: var(--color-accent);       top: 65%; right: 65%;animation: float-slow-b 6.9s ease-in-out 0.3s infinite; }
.hero__bg-dot--17 { width: 2px;  height: 2px;  background: var(--color-teal-muted);   top: 15%; right: 12%;animation: float-slow-a 7.8s ease-in-out 3.1s infinite; }
.hero__bg-dot--18 { width: 7px;  height: 7px;  background: var(--color-accent-muted); top: 58%; left: 18%;animation: float-slow-b 6.1s ease-in-out 1.7s infinite; }
.hero__bg-dot--19 { width: 3px;  height: 3px;  background: var(--color-accent);       top: 93%; left: 82%;animation: float-slow-a 5.9s ease-in-out 2.2s infinite; }
.hero__bg-dot--20 { width: 4px;  height: 4px;  background: var(--color-teal);         top: 32%; right: 48%;animation: float-slow-b 7.3s ease-in-out 4.5s infinite; }
.hero__bg-dot--21 { width: 1px;  height: 1px;  background: var(--color-accent-muted); top: 5%;  left: 88%; animation: float-slow-a 9.2s ease-in-out 1.9s infinite; }
.hero__bg-dot--22 { width: 5px;  height: 5px;  background: var(--color-accent);       top: 75%; right: 38%;animation: float-slow-b 6.6s ease-in-out 3.8s infinite; }
.hero__bg-dot--23 { width: 2px;  height: 2px;  background: var(--color-teal-muted);   top: 48%; left: 92%;animation: float-slow-a 8.8s ease-in-out 0.6s infinite; }
.hero__bg-dot--24 { width: 6px;  height: 6px;  background: var(--color-accent-muted); top: 10%; left: 28%;animation: float-slow-b 7.1s ease-in-out 2.9s infinite; }

@keyframes float-slow-a {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50%      { transform: translateY(-14px) scale(1.5); opacity: 0.7; }
}

@keyframes float-slow-b {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50%      { transform: translateY(-10px) scale(1.3); opacity: 0.6; }
}

.hero__inner {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* The hero was two columns: text on the left, a demo GIF on the right. With the
   GIF gone, the 820px cap left a third of the band empty on wide screens. The
   text column now takes the whole container; drop a .hero__visual back in and
   flexbox shrinks this column again, so the two-column layout returns by itself. */
.hero__content {
  max-width: 100%;
  width: 100%;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-muted);
  margin-bottom: 1.5rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 999px;
  background: rgba(139,92,246,0.06);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  color: var(--color-ink);
  max-width: 980px;   /* the headline kept its own measure once the column stopped capping it */
}

.hero__title .highlight {
  background: linear-gradient(135deg, var(--color-accent-muted), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__lead {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(237,240,245,0.6);
  margin-bottom: 2.5rem;
  max-width: 620px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero__bullets {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.hero__bullets-row {
  display: flex;
  justify-content: flex-start;
  gap: 2.25rem;
  flex-wrap: wrap;
}

/* Tablet: prevent 3rd bullet wrap in second row (769px-1023px) */
@media (max-width: 1023px) {
  .hero__bullets-row {
    gap: 1rem;
  }
}

.hero__bullet {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8rem;
  color: rgba(237,240,245,0.78);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero__bullet-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent-glow);
  flex-shrink: 0;
}

/* Hero visual (desktop only — image to the right of hero__content) */
.hero__visual {
  display: none; /* hidden by default, shown via JS on desktop */
  flex: 0 0 auto;
  max-width: 420px;
  position: relative;
}

.hero__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  /* accent glow ring */
  padding: 1px;
  background: linear-gradient(135deg, var(--color-accent), rgba(102,0,255,0.2), var(--color-accent-muted));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.hero__visual-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elevated);
}

@media (min-width: 1024px) {
  .hero__visual.hero__visual--loaded {
    display: block;
  }

  .hero__inner {
    justify-content: space-between;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero__inner { text-align: left; }
  .hero__content { max-width: 100%; }
  .hero__lead { max-width: 100%; }
  .hero__actions { justify-content: flex-start; }
  .hero__bullets { gap: 0.875rem; }
  .hero__bullets-row { justify-content: flex-start; gap: 0.875rem; }
  .hero::before { right: -40%; }
}

/* ═══════════════════════════════════════════════════
   SECTION COMMON
   ═══════════════════════════════════════════════════ */
.section {
  padding: 6rem 0;
}

.section--tight {
  padding: 3rem 0 5rem;
}

.section__head {
  text-align: center;
  margin-bottom: 4rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.band--dark .section__title { color: var(--color-ink); }
.band--light .section__title { color: #0F172A; }

.section__lead {
  font-size: var(--text-lead);
  color: var(--color-stone);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.band--dark .section__lead { color: rgba(237,240,245,0.5); }

@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .section__head { margin-bottom: 2.5rem; }
}

/* ═══════════════════════════════════════════════════
   CATALOG — differentiated agent cards
   ═══════════════════════════════════════════════════ */
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.catalog__card {
  background: var(--color-pearl);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  transition: all var(--transition-smooth);
  border: 1px solid var(--color-ember);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.catalog__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.catalog__card:hover {
  
  box-shadow: var(--shadow-elevated);
}

/* Agent-specific accent colors */
.catalog__card--purple::before { background: linear-gradient(90deg, var(--color-accent), var(--color-accent-muted)); }
.catalog__card--teal::before   { background: linear-gradient(90deg, var(--color-teal), var(--color-teal-muted)); }
.catalog__card--indigo::before { background: linear-gradient(90deg, var(--color-indigo), #818CF8); }
.catalog__card--amber::before  { background: linear-gradient(90deg, var(--color-amber), #FBBF24); }

.catalog__card:hover.catalog__card--purple { border-color: rgba(139,92,246,0.2); }
.catalog__card:hover.catalog__card--teal   { border-color: rgba(6,182,212,0.2); }
.catalog__card:hover.catalog__card--indigo { border-color: rgba(99,102,241,0.2); }
.catalog__card:hover.catalog__card--amber  { border-color: rgba(245,158,11,0.2); }

.catalog__card-tag {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  display: inline-block;
  align-self: flex-start;
  line-height: 1.4;
}

/* Плашка-бейдж над заголовком (общий для подстраниц) */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  color: var(--color-accent);
  background: var(--color-accent-light);
  margin-bottom: 0.875rem;
}

/* Tag colors per agent */
.catalog__card--purple .catalog__card-tag {
  color: var(--color-accent);
  background: var(--color-accent-light);
}
.catalog__card--teal .catalog__card-tag {
  color: #0891B2;
  background: var(--color-teal-light);
}
.catalog__card--indigo .catalog__card-tag {
  color: var(--color-indigo);
  background: var(--color-indigo-light);
}
.catalog__card--amber .catalog__card-tag {
  color: #B45309;
  background: var(--color-amber-light);
}

.catalog__card-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  color: #0F172A;
  letter-spacing: -0.01em;
}

/* Кликабельное название агента → отдельная страница шаблона */
.catalog__card-title-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
.catalog__card-title-link:hover .catalog__card-title {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog__card-desc {
  font-size: var(--text-small);
  color: var(--color-stone);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex: 1;
}

.catalog__card-actions {
  display: flex;
  gap: 0.625rem;
}

.catalog__card-actions .btn--primary {
  flex: 1;
}

/* The fifth card is not a fifth role but the way out of the list, so it runs
   the full width of the grid instead of sitting alone in the left column. */
.catalog__card--wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.catalog__card--wide .catalog__card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.catalog__card--wide .catalog__card-desc { margin-bottom: 0; }
.catalog__card--wide .catalog__card-actions { flex: none; }

@media (max-width: 768px) {
  .catalog__grid { grid-template-columns: 1fr; }
  .catalog__card--wide {
    grid-column: span 1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .catalog__card--wide .catalog__card-desc { margin-bottom: 1.5rem; }
}

@media (max-width: 640px) {
  .catalog__card { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .catalog__card { padding: 1.25rem; }
  .catalog__card-actions { flex-direction: column; }
  .catalog__card-actions .btn--primary { flex: none; }
  .catalog__card-title { font-size: 1.125rem; }
}

/* ═══════════════════════════════════════════════════
   TRUST / ENBISYS
   ═══════════════════════════════════════════════════ */
.trust__lead {
  max-width: 720px;
}

.trust__lead strong {
  font-weight: 600;
  color: #0F172A;
}

.trust__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.trust__visual {
  width: 50%;
  flex-shrink: 0;
}

.trust__image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-elevated);
}

.trust__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.6s ease;
}

.trust__image-wrapper:hover .trust__image {
  filter: grayscale(0);
}

.trust__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.75) 0%, rgba(8,12,23,0.3) 60%);
  mix-blend-mode: multiply;
}

.trust__image-brand {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: #fff;
  z-index: 2;
}

.trust__image-brand-name {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trust__image-brand-desc {
  font-size: var(--text-small);
  opacity: 0.85;
  line-height: 1.4;
}

.trust__badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.6rem 1.125rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  z-index: 2;
  font-size: var(--text-small);
  font-weight: 600;
  color: #0F172A;
  border: 1px solid rgba(255,255,255,0.5);
}

.trust__badge svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* The left column of this row holds a photo of the team on the Russian site;
   the English page does not carry it, so the facts would otherwise sit in the
   left half of an empty row. Centred under the heading, and capped so the
   cards do not stretch across the full 1200px container. */
.trust__facts {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.trust__fact {
  background: var(--color-pearl);
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-ember);
  transition: all var(--transition-smooth);
}

.trust__fact:hover {
  border-color: var(--color-accent-muted);
  box-shadow: var(--shadow-card);
  
}

.trust__fact--wide {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.trust__fact-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.trust__fact--wide .trust__fact-icon { margin-bottom: 0; }

.trust__fact-icon--accent {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), #7C3AED);
  color: #fff;
  box-shadow: 0 4px 24px rgba(139,92,246,0.35);
}

.trust__fact-number {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.trust__fact-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.trust__fact-desc {
  font-size: var(--text-small);
  color: var(--color-stone);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .trust__content { flex-direction: column; gap: 2rem; }
  .trust__visual, .trust__facts { width: 100%; }
  .trust__facts { grid-template-columns: 1fr; }
  .trust__fact--wide { grid-column: span 1; flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════
   COMPARISON
   ═══════════════════════════════════════════════════ */
.comparison__list {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comparison__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-ember);
  position: relative;
  box-shadow: var(--shadow-card);
}

.comparison__row-label {
  position: absolute;
  top: -0.7rem;
  left: 2rem;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 700;
  color: var(--color-stone);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-crest);
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--color-ember);
  border-radius: 999px;
  z-index: 1;
}

.comparison__side {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.comparison__side--left {
  background: #FAFAFB;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

.comparison__side--right {
  background: linear-gradient(135deg, var(--color-accent-light), rgba(139,92,246,0.02));
  border-left: 1px solid rgba(139,92,246,0.1);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

.comparison__side-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.comparison__side--left .comparison__side-title {
  color: var(--color-stone);
}
.comparison__side--right .comparison__side-title {
  color: var(--color-accent);
}

.comparison__item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--text-small);
  line-height: 1.6;
}

.comparison__side--left .comparison__item {
  color: var(--color-stone);
}

.comparison__side--right .comparison__item {
  color: #0F172A;
  font-weight: 500;
}

.comparison__icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 1.125rem;
  font-weight: 700;
}

/* This column used to carry ten red crosses on one screen, which read as a
   scolding rather than a comparison. A quiet dash marks the same lines. */
.comparison__icon--fail {
  color: var(--color-stone);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
}

.comparison__icon--pass {
  color: var(--color-success);
  background: var(--color-success-light);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .comparison__row { grid-template-columns: 1fr; }
  .comparison__side--left  { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .comparison__side--right { border-radius: 0 0 var(--radius-xl) var(--radius-xl); border-left: none; border-top: 1px solid rgba(139,92,246,0.1); }
}

/* ═══════════════════════════════════════════════════
   SECURITY
   ═══════════════════════════════════════════════════ */
.security__intro {
  text-align: center;
  font-size: var(--text-lead);
  color: var(--color-stone);
  max-width: 740px;
  margin: 0 auto 3.5rem;
  line-height: 1.65;
}

.security__pillars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 840px;
  margin: 0 auto;
}

.security__pillar {
  display: flex;
  gap: 1.75rem;
  background: var(--color-pearl);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  border: 1px solid var(--color-ember);
  transition: all var(--transition-smooth);
}

.security__pillar:hover {
  border-color: var(--color-accent-muted);
  box-shadow: var(--shadow-card);
}

.security__pillar-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
}

.security__pillar-content { flex: 1; }

.security__pillar-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.security__pillar-desc {
  font-size: var(--text-small);
  color: var(--color-stone);
  line-height: 1.65;
}

.security__privacy-example {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  background: var(--color-crest);
  border-radius: var(--radius-md);
  padding: 1.125rem 1.375rem;
  line-height: 1.8;
  color: #0F172A;
  border: 1px solid var(--color-ember);
  margin-top: 1rem;
}

.security__privacy-example .before { color: var(--color-stone); }
.security__privacy-example .arrow  { color: var(--color-accent); font-weight: 700; margin: 0 0.25rem; }
.security__privacy-example .after  { color: #0F172A; font-weight: 600; }

@media (max-width: 768px) {
  .security__pillar { flex-direction: column; gap: 1rem; }
}

/* ═══════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════ */
/* Карточки тарифов живут в assets/plans.css: один компонент на главную
   и на /pricing/. Здесь остались только блоки вокруг них. */

/* Предложение настроить агента за клиента — единственный вход в форму
   заявки на настройку. Ширина уже сетки: это абзац, а не карточка. */
.pricing__assist {
  max-width: 920px;
  margin: 1.75rem auto 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-ember);
  border-radius: 1rem;
  background: var(--color-pearl);
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--color-stone);
}
.pricing__assist i {
  color: var(--color-accent);
  font-size: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.pricing__assist a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Token pricing block */
.pricing__tokens {
  background: var(--color-pearl);
  border-radius: 1.5rem;
  border: 1px solid var(--color-ember);
  overflow: hidden;
}

.pricing__tokens-header {
  padding: 1.75rem 2.25rem;
  border-bottom: 1px solid var(--color-ember);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pricing__tokens-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pricing__tokens-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pricing__tokens-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.pricing__tokens-subtitle {
  font-size: var(--text-small);
  color: var(--color-stone);
}

.pricing__tokens-badge {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-small);
  color: var(--color-stone);
  background: var(--color-crest);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-ember);
  white-space: nowrap;
}

.pricing__tokens-badge i { font-size: 0.875rem; }

.pricing__tokens-note {
  padding: 0.875rem 2.25rem 0;
  font-size: var(--text-caption);
  color: var(--color-stone);
  line-height: 1.5;
}

.pricing__tokens-body { padding: 1.5rem 2.25rem; }

.pricing__model { margin-bottom: 2rem; }
.pricing__model:last-child { margin-bottom: 0; }
.pricing__model + .pricing__model {
  padding-top: 2rem;
  border-top: 1px solid var(--color-ember);
}

.pricing__model-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pricing__model-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: #0F172A;
}

.pricing__model-badge {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing__model-badge--available {
  background: var(--color-success-light);
  color: #065F46;
}

.pricing__model-badge--soon {
  background: var(--color-amber-light);
  color: #92400E;
}

.pricing__model-subgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pricing__model-subcard {
  background: var(--color-pearl);
  border-radius: 0.875rem;
  padding: 1.375rem;
  border: 1px solid var(--color-ember);
  transition: border-color var(--transition-fast);
}
.pricing__model-subcard:hover {
  border-color: var(--color-accent-muted);
}

.pricing__model-subcard-label {
  font-size: var(--text-small);
  color: #0F172A;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.pricing__model-subcard-hint {
  font-size: var(--text-caption);
  color: var(--color-stone);
  margin-bottom: 0.375rem;
}

.pricing__model-subcard-price {
  font-size: 1.625rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.15rem;
}

.pricing__model-subcard-monthly {
  font-size: var(--text-caption);
  color: var(--color-stone);
}

.faq__more {
  text-align: center;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .pricing__model-subgrid { grid-template-columns: 1fr; }
  .pricing__tokens-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .pricing__tokens-body { padding: 1rem 1.25rem; }
  .pricing__tokens-header { padding: 1.25rem; }
  .pricing__tokens-note { padding: 0.5rem 1.25rem 0; }
}

/* ═══════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════ */
.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.faq__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-ember);
  transition: border-color var(--transition-fast);
}
.faq__item:hover {
  border-color: rgba(139,92,246,0.15);
}
.faq__item--open {
  border-color: rgba(139,92,246,0.25);
  box-shadow: 0 2px 12px rgba(139,92,246,0.06);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.375rem 1.75rem;
  background: var(--color-pearl);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  color: #0F172A;
  text-align: left;
  transition: all var(--transition-fast);
  line-height: 1.5;
}

.faq__question:hover {
  background: #FAFAFB;
}

.faq__question-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-smooth);
  color: var(--color-stone);
}

.faq__item--open .faq__question-icon {
  transform: rotate(45deg);
  color: var(--color-accent);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__item--open .faq__answer {
  max-height: 500px;
}

.faq__answer-inner {
  padding: 1.25rem 1.75rem 1.75rem;
  font-size: var(--text-small);
  color: var(--color-stone);
  line-height: 1.7;
  background: #FAFAFB;
  border-top: 1px solid var(--color-ember);
}

/* ═══════════════════════════════════════════════════
   HORIZONTAL CTA — dark accent block
   ═══════════════════════════════════════════════════ */
.cta-horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, var(--color-void), #161E33);
  border: 1px solid rgba(139,92,246,0.12);
  border-radius: var(--radius-xl);
  padding: 3rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.cta-horizontal::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-horizontal__content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.cta-horizontal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h3);
  color: var(--color-ink);
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}

.cta-horizontal__desc {
  font-size: var(--text-body);
  color: rgba(237,240,245,0.55);
}

.cta-horizontal__actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .cta-horizontal {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.75rem;
  }
  .cta-horizontal__actions { justify-content: center; }
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid rgba(237,240,245,0.06);
  padding: 3.5rem 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 0.875rem;
}

.footer__brand .brand__word { height: 14px; }

.footer__brand-mark {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.625rem;
  color: var(--color-accent);
  background: rgba(139,92,246,0.1);
  flex-shrink: 0;
}

.footer__brand-desc {
  font-size: var(--text-small);
  color: rgba(237,240,245,0.38);
  line-height: 1.6;
  max-width: 360px;
}

.footer__brand-desc + .footer__brand-desc {
  margin-top: 0.75rem;
}

.footer__col a {
  display: block;
  font-size: var(--text-small);
  color: rgba(237,240,245,0.4);
  margin-bottom: 0.55rem;
  transition: color var(--transition-fast);
}
.footer__col a:hover { color: var(--color-ink); }

.footer__col-title {
  font-family: var(--font-display);
  font-size: var(--text-small);
  font-weight: 700;
  color: rgba(237,240,245,0.85);
  margin-bottom: 0.6rem;
}
.footer__col-title a { color: inherit; }

.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(237,240,245,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: rgba(237,240,245,0.22);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__bottom a {
  color: rgba(237,240,245,0.3);
  transition: color var(--transition-fast);
}
.footer__bottom a:hover { color: var(--color-ink); }

/* Legal links in the bottom bar: navigation, not fine print, so they are
   brighter than the copyright line next to them. */
.footer__legal {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__legal a { color: rgba(237,240,245,0.45); }
.footer__legal a:hover { color: var(--color-ink); }

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  /* Мобилка: все колонки футера по левому краю (снимаем инлайн right/end последней колонки) */
  .footer__col { text-align: left !important; justify-self: start !important; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay--open { display: flex; }

.modal-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,12,23,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal {
  position: relative;
  z-index: 1;
  background: var(--color-pearl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-ember);
  padding: 2.25rem;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-elevated);
  animation: modal-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
  position: absolute;
  top: 1.125rem;
  right: 1.125rem;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 700;
  color: var(--color-stone);
  cursor: pointer;
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.modal__close:hover {
  color: #0F172A;
  background: var(--color-crest);
}

.modal__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-accent);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #0F172A;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.modal__desc {
  font-size: 0.925rem;
  color: var(--color-stone);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.modal__details {
  border-top: 1px solid var(--color-ember);
  border-bottom: 1px solid var(--color-ember);
  padding: 1.25rem 0;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #0F172A;
}

.modal__section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-stone);
  margin-bottom: 0.5rem;
}

.modal__skills { list-style: none; margin-bottom: 0.75rem; }
.modal__skills li {
  font-size: 0.875rem;
  color: #334155;
  padding: 0.3rem 0;
  padding-left: 1.125rem;
  position: relative;
}

.modal__adaptation {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #334155;
  margin: 0 0 1rem;
}
.modal__skills li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.modal__meta {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--color-stone);
  margin-bottom: 1.5rem;
}
.modal__meta strong { color: #0F172A; }

.modal__example-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 1rem 1.125rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.6;
}
.modal__example-box p { margin: 0; }

.modal__security-note {
  display: flex;
  gap: 0.625rem;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: #92400E;
  line-height: 1.55;
}
.modal__security-note p { margin: 0; }
.modal__security-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.modal__field-label {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-stone);
  margin-bottom: 0.375rem;
}

.modal__input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 1.5px solid var(--color-ember);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: #0F172A;
  background: var(--color-crest);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.modal__input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}
.modal__input::placeholder { color: var(--color-stone); }

textarea.modal__input { resize: vertical; min-height: 80px; }

select.modal__input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236F7787' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.modal__checks {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.modal__check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--text-small);
  color: var(--color-stone);
  cursor: pointer;
  line-height: 1.45;
}

.modal__check input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 0.25rem;
  accent-color: var(--color-accent);
}

.modal__check a {
  color: var(--color-accent);
  text-decoration: underline;
}
.modal__check a:hover { color: var(--color-accent-hover); }

/* Fine print under a form that has no consent checkbox of its own. */
.modal__fineprint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--color-stone);
}
.modal__fineprint a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.modal__fineprint a:hover { color: var(--color-accent-hover); }

.modal__success {
  text-align: center;
  padding: 2rem 0;
}

.modal__success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-success-light), rgba(16,185,129,0.15));
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 16px rgba(16,185,129,0.15);
}

.modal__success-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #0F172A;
  letter-spacing: -0.01em;
}

.modal__success-desc {
  font-size: var(--text-small);
  color: var(--color-stone);
  max-width: 340px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════
   SCROLL-REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════════════
   WELCOME BONUS — Icon + minimal
   ═══════════════════════════════════════════════════ */
.wb-icon__gift {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-accent-light);
  border: 1px solid rgba(139,92,246,0.18);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  color: var(--color-accent);
}
.wb-icon__lead {
  font-size: var(--text-lead);
  color: #4B5563;
  max-width: 640px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}
.wb-icon__highlight {
  font-weight: 700;
  color: var(--color-accent);
}
