/* ═══════════════════════════════════════════════════════════
   AI AGENTS PRO — MAIN STYLES
   Premium editorial design · Dark mode first
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   CSS RESET
   ───────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.5;
}

img, svg, video {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* ─────────────────────────────────────────────
   ДИЗАЙН-ТОКЕНЫ
   ───────────────────────────────────────────── */
:root {
    /* Цвета */
    --bg: #0a0a0a;
    --bg-2: #111111;
    --bg-3: #161616;
    --surface: #1a1a1a;
    --surface-2: #222222;
    
    --fg: #f5f5f5;
    --fg-2: rgba(245, 245, 245, 0.7);
    --fg-3: rgba(245, 245, 245, 0.5);
    --fg-4: rgba(245, 245, 245, 0.3);
    
    --border: rgba(245, 245, 245, 0.08);
    --border-2: rgba(245, 245, 245, 0.14);
    --border-3: rgba(245, 245, 245, 0.24);
    
    /* Единственный акцент — electric lime */
    --accent: #c6ff00;
    --accent-glow: rgba(198, 255, 0, 0.25);
    --accent-dim: rgba(198, 255, 0, 0.12);
    
    /* Семантика */
    --success: #00d97e;
    --warning: #ffb800;
    --danger: #ff4d4d;
    
    /* Типографика */
    --font-sans: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Courier New', monospace;
    
    /* Размеры (fluid typography) */
    --text-xs: clamp(11px, 0.7vw, 12px);
    --text-sm: clamp(13px, 0.85vw, 14px);
    --text-base: clamp(15px, 1vw, 16px);
    --text-lg: clamp(17px, 1.15vw, 18px);
    --text-xl: clamp(20px, 1.4vw, 24px);
    --text-2xl: clamp(28px, 2.2vw, 40px);
    --text-3xl: clamp(40px, 3.5vw, 64px);
    --text-4xl: clamp(56px, 6vw, 120px);
    --text-5xl: clamp(72px, 9vw, 180px);
    
    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 64px;
    --space-2xl: 96px;
    --space-3xl: 128px;
    
    /* Layout */
    --container-max: 1440px;
    --container-padding: clamp(20px, 4vw, 64px);
    --header-height: 72px;
    
    /* Кривые анимаций */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);
    
    /* Радиусы */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 999px;
    
    /* z-index */
    --z-preloader: 9999;
    --z-chat: 10050;
    --z-cursor: 9998;
    --z-modal: 1000;
    --z-header: 100;
    --z-toast: 8000;
}

/* ─────────────────────────────────────────────
   БАЗА
   ───────────────────────────────────────────── */
body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 400;
    letter-spacing: -0.01em;
}

html.has-custom-cursor,
html.has-custom-cursor body {
    cursor: none;
}

html.has-custom-cursor a,
html.has-custom-cursor button,
html.has-custom-cursor [data-cursor] {
    cursor: none;
}

html.has-custom-cursor.cursor-native,
html.has-custom-cursor.cursor-native *,
html.has-custom-cursor .ai-chat,
html.has-custom-cursor .ai-chat *,
html.has-custom-cursor .cookie-banner,
html.has-custom-cursor .cookie-banner * {
    cursor: auto !important;
}

html.has-custom-cursor.cursor-native a,
html.has-custom-cursor.cursor-native button,
html.has-custom-cursor .ai-chat a,
html.has-custom-cursor .ai-chat button,
html.has-custom-cursor .cookie-banner button {
    cursor: pointer !important;
}

html.has-custom-cursor input,
html.has-custom-cursor textarea,
html.has-custom-cursor .ai-chat textarea,
html.has-custom-cursor .ai-chat input {
    cursor: text !important;
}

html.has-custom-cursor select {
    cursor: pointer !important;
}

/* Селекция */
::selection {
    background: var(--accent);
    color: var(--bg);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-2);
}
::-webkit-scrollbar-thumb {
    background: var(--surface-2);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--border-3);
}

/* Focus */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ─────────────────────────────────────────────
   КОНТЕЙНЕР
   ───────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
}

/* ─────────────────────────────────────────────
   ТИПОГРАФИКА
   ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
}

em {
    font-style: normal;
    color: var(--accent);
    font-weight: 400;
}

strong {
    font-weight: 600;
    color: var(--fg);
}

/* ═══════════════════════════════════════════════════════════
   ПРЕЛОАДЕР
   ═══════════════════════════════════════════════════════════ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: var(--z-preloader);
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader__inner {
    text-align: center;
    max-width: 400px;
    padding: var(--space-lg);
}

.preloader__logo {
    display: inline-block;
    color: var(--accent);
    margin-bottom: var(--space-lg);
    animation: preloader-pulse 2s ease-in-out infinite;
}

.preloader__logo svg {
    animation: preloader-rotate 3s linear infinite;
}

.preloader__circle {
    stroke-dasharray: 138;
    stroke-dashoffset: 138;
    animation: preloader-stroke 1.5s ease-out forwards;
}

@keyframes preloader-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes preloader-rotate {
    to { transform: rotate(360deg); }
}

@keyframes preloader-stroke {
    to { stroke-dashoffset: 0; }
}

.preloader__text {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--fg-2);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.preloader__dots {
    display: inline-flex;
    gap: 2px;
    margin-left: 4px;
}

.preloader__dots span {
    animation: preloader-dot 1.4s infinite;
}

.preloader__dots span:nth-child(2) { animation-delay: 0.2s; }
.preloader__dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes preloader-dot {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; }
}

.preloader__progress {
    width: 240px;
    height: 2px;
    background: var(--surface-2);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto var(--space-sm);
}

.preloader__bar {
    height: 100%;
    width: 0;
    background: var(--accent);
    border-radius: var(--radius-full);
    transition: width 0.3s var(--ease-out);
    box-shadow: 0 0 12px var(--accent-glow);
}

.preloader__percent {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--fg-3);
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════
   ГЕО-БАННЕР
   ═══════════════════════════════════════════════════════════ */
.geo-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: calc(var(--z-header) + 1);
    background: var(--accent);
    color: var(--bg);
    padding: 10px 20px;
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease-out);
}

.geo-banner:not([hidden]) {
    display: block;
}

.geo-banner.is-visible {
    transform: translateY(0);
}

.geo-banner__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: var(--text-sm);
    font-weight: 500;
}

.geo-banner__flag {
    font-size: 20px;
}

.geo-banner__text strong {
    color: var(--bg);
}

.geo-banner__close {
    margin-left: auto;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: var(--bg);
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.geo-banner__close:hover {
    opacity: 1;
}

/* Сдвигаем контент когда баннер видим */
body.has-geo-banner .header {
    top: 42px;
}

body.has-geo-banner {
    padding-top: 42px;
}

/* ═══════════════════════════════════════════════════════════
   ПРОГРЕСС СКРОЛЛА
   ═══════════════════════════════════════════════════════════ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    z-index: calc(var(--z-header) + 2);
    pointer-events: none;
}

.scroll-progress::after {
    content: '';
    display: block;
    height: 100%;
    width: var(--progress, 0%);
    background: var(--accent);
    transition: width 0.1s linear;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* ═══════════════════════════════════════════════════════════
   ХЕДЕР
   ═══════════════════════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    padding: 16px 0;
    transition: all 0.4s var(--ease-out);
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out), border-color 0.4s;
    z-index: -1;
}

.header.is-scrolled::before {
    opacity: 1;
    border-bottom-color: var(--border);
}

.header__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

/* Логотип */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--fg);
    transition: transform 0.3s var(--ease-out);
}

.logo:hover {
    transform: translateY(-1px);
}

.logo__mark {
    color: var(--accent);
    display: grid;
    place-items: center;
}

.logo__text {
    display: inline-flex;
    align-items: center;
}

.logo__pro {
    color: var(--accent);
    font-weight: 600;
}

/* Навигация */
.nav {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav__link {
    position: relative;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--fg-2);
    padding: 8px 0;
    transition: color 0.3s;
}

.nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out);
}

.nav__link:hover {
    color: var(--fg);
}

.nav__link:hover::after {
    width: 100%;
}

/* Actions */
.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Переключатель языка */
.lang-switch {
    position: relative;
}

.lang-switch__current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--fg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: all 0.3s;
}

.lang-switch__current:hover {
    color: var(--fg);
    border-color: var(--border-2);
}

.lang-switch__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s var(--ease-out);
    box-shadow: var(--shadow-lg);
}

.lang-switch:hover .lang-switch__dropdown,
.lang-switch.is-open .lang-switch__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switch__dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    font-size: var(--text-sm);
    color: var(--fg-2);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.lang-switch__dropdown button:hover {
    background: var(--surface-2);
    color: var(--fg);
}

.lang-switch__dropdown button.is-active {
    color: var(--accent);
    background: var(--accent-dim);
}

/* Бургер */
.burger {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

.burger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--fg);
    margin: 0 auto;
    transition: all 0.3s var(--ease-out);
}

.burger.is-open span:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════
   КНОПКИ
   ═══════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: -0.01em;
    border-radius: var(--radius-full);
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1;
}

.btn svg {
    transition: transform 0.3s var(--ease-out);
    flex-shrink: 0;
}

.btn:hover svg {
    transform: translateX(3px);
}

/* Primary */
.btn--primary {
    background: var(--accent);
    color: var(--bg);
    font-weight: 600;
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(10, 10, 10, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s var(--ease-out), height 0.6s var(--ease-out);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--accent-glow);
}

.btn--primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--primary > * {
    position: relative;
    z-index: 1;
}

/* Ghost */
.btn--ghost {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--border-2);
}

.btn--ghost:hover {
    background: var(--surface);
    border-color: var(--border-3);
    transform: translateY(-2px);
}

/* Sizes */
.btn--sm {
    padding: 10px 18px;
    font-size: var(--text-xs);
}

.btn--lg {
    padding: 18px 32px;
    font-size: var(--text-base);
}

.btn--full {
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   ЧИПЫ
   ═══════════════════════════════════════════════════════════ */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--fg-2);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.chip__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    animation: chip-pulse 2s infinite;
}

@keyframes chip-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Фоновая сетка */
.hero__grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(245, 245, 245, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 245, 245, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
    pointer-events: none;
}

/* Свечение в центре */
.hero::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0.6;
}

.hero__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero__meta {
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fade-up 0.8s var(--ease-out) 0.2s forwards;
}

.hero__title {
    font-size: var(--text-4xl);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-lg);
}

.hero__line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fade-up 1s var(--ease-out) forwards;
}

.hero__line:nth-child(1) { animation-delay: 0.3s; }
.hero__line:nth-child(2) { animation-delay: 0.5s; }

.hero__line--accent {
    font-style: italic;
    color: var(--accent);
    font-weight: 300;
}

.hero__subtitle {
    max-width: 640px;
    margin: 0 auto var(--space-xl);
    font-size: var(--text-lg);
    color: var(--fg-2);
    line-height: 1.5;
    opacity: 0;
    animation: fade-up 1s var(--ease-out) 0.7s forwards;
}

.hero__actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
    opacity: 0;
    animation: fade-up 1s var(--ease-out) 0.9s forwards;
}

/* Статистика в hero */
.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
    opacity: 0;
    animation: fade-up 1s var(--ease-out) 1.1s forwards;
}

.stat {
    text-align: center;
}

.stat__value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--fg);
    line-height: 1;
    margin-bottom: 6px;
}

.stat__label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--fg-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Индикатор скролла */
.hero__scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--fg-3);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0;
    animation: fade-up 1s var(--ease-out) 1.3s forwards;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--fg-3));
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.3; }
    50% { transform: scaleY(1); opacity: 1; }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════════════════════ */
.marquee-section {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee__track {
    display: inline-flex;
    align-items: center;
    gap: var(--space-lg);
    animation: marquee 40s linear infinite;
    white-space: nowrap;
    padding-right: var(--space-lg);
}

.marquee__item {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 400;
    color: var(--fg-3);
    letter-spacing: -0.03em;
    transition: color 0.3s;
}

.marquee:hover .marquee__item {
    color: var(--fg);
}

.marquee__sep {
    color: var(--accent);
    font-size: var(--text-2xl);
    opacity: 0.5;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════
   ЗАГОЛОВКИ СЕКЦИЙ
   ═══════════════════════════════════════════════════════════ */
.section-head {
    max-width: 900px;
    margin: 0 auto var(--space-2xl);
    text-align: center;
}

.section-head__label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-md);
}

.section-head__title {
    font-size: var(--text-3xl);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.section-head__title em {
    font-style: italic;
    color: var(--accent);
    font-weight: 300;
}

.section-head__subtitle {
    font-size: var(--text-lg);
    color: var(--fg-2);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   ПРОБЛЕМА
   ═══════════════════════════════════════════════════════════ */
.problem {
    padding: var(--space-3xl) 0;
    background: var(--bg-2);
}

.problem__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin-bottom: var(--space-xl);
}

.problem__item {
    background: var(--bg-2);
    padding: var(--space-xl);
    transition: background 0.3s;
    position: relative;
}

.problem__item:hover {
    background: var(--bg-3);
}

.problem__num {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent);
    letter-spacing: 0.2em;
    margin-bottom: var(--space-lg);
}

.problem__item h3 {
    font-size: var(--text-xl);
    font-weight: 500;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.problem__item p {
    font-size: var(--text-base);
    color: var(--fg-2);
    line-height: 1.55;
    margin-bottom: var(--space-lg);
}

.problem__cost {
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
    font-size: var(--text-sm);
    color: var(--fg-3);
}

.problem__cost strong {
    color: var(--danger);
    font-family: var(--font-mono);
    font-weight: 500;
    margin-left: 8px;
}

.problem__summary {
    text-align: center;
    padding: var(--space-xl);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 720px;
    margin: 0 auto;
}

.problem__summary-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--fg-3);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
}

.problem__summary-value {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 500;
    color: var(--danger);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.problem__summary-note {
    font-size: var(--text-base);
    color: var(--fg-2);
}

.problem__summary-note strong {
    color: var(--accent);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   АГЕНТЫ
   ═══════════════════════════════════════════════════════════ */
.agents {
    padding: var(--space-3xl) 0;
}

.agents__filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.filter-btn {
    padding: 10px 18px;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--fg-2);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: all 0.3s var(--ease-out);
}

.filter-btn:hover {
    color: var(--fg);
    border-color: var(--border-2);
}

.filter-btn.active {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    font-weight: 600;
}

.agents__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-md);
}

/* Карточка агента */
.agent-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    transition: all 0.4s var(--ease-out);
    overflow: hidden;
    min-height: 460px;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transition: transform 0.6s var(--ease-out);
    transform-origin: left;
}

.agent-card:hover {
    background: var(--surface-2);
    border-color: var(--border-2);
    transform: translateY(-4px);
}

.agent-card:hover::before {
    transform: scaleX(1);
}

.agent-card.is-hidden {
    display: none;
}

.agent-card__tag {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--accent);
    color: var(--bg);
    border-radius: var(--radius-full);
    font-weight: 600;
}

.agent-card__tag--new {
    background: var(--fg);
}

.agent-card__num {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--fg-3);
    letter-spacing: 0.2em;
    margin-bottom: var(--space-lg);
}

.agent-card__title-block {
    margin-bottom: var(--space-lg);
    flex: 1;
}

.agent-card__title-block h3 {
    font-size: var(--text-xl);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

.agent-card__title-block p {
    font-size: var(--text-sm);
    color: var(--fg-2);
    line-height: 1.55;
}

.agent-card__features {
    margin-bottom: var(--space-lg);
}

.agent-card__features li {
    font-size: var(--text-sm);
    color: var(--fg-2);
    padding: 6px 0;
    border-bottom: 1px dashed var(--border);
}

.agent-card__features li:last-child {
    border-bottom: none;
}

.agent-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.agent-card__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.agent-card__price-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--fg-3);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.agent-card__price-value {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1;
}

.agent-card__price-unit {
    font-size: var(--text-xs);
    color: var(--fg-3);
}

.agent-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--fg);
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: var(--radius-full);
    transition: all 0.3s;
}

.agent-card__cta:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.agent-card__cta svg {
    transition: transform 0.3s;
}

.agent-card__cta:hover svg {
    transform: translateX(3px);
}

/* Custom карточка */
.agent-card--custom {
    background: linear-gradient(135deg, var(--surface), var(--surface-2));
    border: 1px dashed var(--border-2);
    display: grid;
    place-items: center;
    text-align: center;
}

.agent-card__custom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.agent-card__custom-icon {
    color: var(--accent);
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--accent-dim);
    display: grid;
    place-items: center;
    margin-bottom: var(--space-sm);
}

.agent-card__custom-list {
    text-align: left;
    margin-bottom: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.agent-card__custom-list li {
    font-size: var(--text-sm);
    color: var(--fg-2);
    padding-left: 20px;
    position: relative;
}

.agent-card__custom-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   ПРОЦЕСС
   ═══════════════════════════════════════════════════════════ */
.process {
    padding: var(--space-3xl) 0;
    background: var(--bg-2);
}

.process__timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    position: relative;
}

.process__timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-2), var(--border-2), transparent);
}

.process__step {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.process__step:hover {
    border-color: var(--border-2);
    transform: translateY(-4px);
}

.process__step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.process__step-num {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent);
    letter-spacing: 0.2em;
}

.process__step-time {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 4px 10px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.process__step h3 {
    font-size: var(--text-lg);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.process__step p {
    font-size: var(--text-sm);
    color: var(--fg-2);
    line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════
   КЕЙСЫ
   ═══════════════════════════════════════════════════════════ */
.cases {
    padding: var(--space-3xl) 0;
}

.cases__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.case {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    transition: all 0.4s var(--ease-out);
}

.case:hover {
    background: var(--surface-2);
    border-color: var(--border-2);
    transform: translateY(-4px);
}

.case__metric {
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.case__metric-value {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 500;
    color: var(--accent);
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 8px;
}

.case__metric-value sub {
    font-size: 0.4em;
    color: var(--fg-2);
    vertical-align: baseline;
    margin-left: 6px;
    font-weight: 400;
}

.case__metric-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--fg-3);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.case__quote {
    flex: 1;
    font-size: var(--text-base);
    color: var(--fg-2);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    font-style: italic;
    position: relative;
    padding-left: var(--space-md);
}

.case__quote::before {
    content: '"';
    position: absolute;
    top: -8px;
    left: 0;
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--accent);
    line-height: 1;
    opacity: 0.5;
}

.case__footer {
    display: flex;
    align-items: center;
}

.case__author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.case__author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg);
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: var(--text-sm);
    letter-spacing: -0.02em;
}

.case__author-name {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 2px;
}

.case__author-role {
    font-size: var(--text-xs);
    color: var(--fg-3);
}

/* ═══════════════════════════════════════════════════════════
   ТАРИФЫ
   ═══════════════════════════════════════════════════════════ */
.pricing {
    padding: var(--space-3xl) 0;
    background: var(--bg-2);
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto var(--space-xl);
}

.plan {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    transition: all 0.4s var(--ease-out);
}

.plan:hover {
    border-color: var(--border-2);
    transform: translateY(-4px);
}

.plan--featured {
    background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
    border-color: var(--accent);
    box-shadow: 0 20px 60px var(--accent-glow);
}

.plan__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: var(--accent);
    color: var(--bg);
    border-radius: var(--radius-full);
    font-weight: 600;
    white-space: nowrap;
}

.plan__header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.plan__header h3 {
    font-size: var(--text-2xl);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    line-height: 1;
}

.plan__header p {
    font-size: var(--text-sm);
    color: var(--fg-3);
}

.plan__price {
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.plan__price-value {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 500;
    color: var(--fg);
    letter-spacing: -0.03em;
    line-height: 1;
}

.plan--featured .plan__price-value {
    color: var(--accent);
}

.plan__price-value--custom {
    font-size: var(--text-2xl);
}

.plan__price-unit {
    font-size: var(--text-sm);
    color: var(--fg-3);
}

.plan__features {
    flex: 1;
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan__features li {
    font-size: var(--text-sm);
    color: var(--fg-2);
    padding-left: 24px;
    position: relative;
    line-height: 1.4;
}

.plan__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 14px;
    height: 8px;
    border-left: 1.5px solid var(--accent);
    border-bottom: 1.5px solid var(--accent);
    transform: rotate(-45deg);
}

/* Гарантия */
.pricing__guarantee {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-lg);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.pricing__guarantee-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.pricing__guarantee div:last-child {
    font-size: var(--text-sm);
    color: var(--fg-2);
    line-height: 1.5;
}

.pricing__guarantee strong {
    color: var(--fg);
    margin-right: 6px;
}

/* ═══════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════ */
.faq {
    padding: var(--space-3xl) 0;
}

.faq__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
    align-items: start;
}

.faq__left .section-head__label {
    margin-bottom: var(--space-md);
}

.faq__left .section-head__title {
    text-align: left;
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.faq__left p {
    font-size: var(--text-base);
    color: var(--fg-2);
    margin-bottom: var(--space-lg);
    line-height: 1.55;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    background: var(--surface-2);
    border-color: var(--border-2);
}

.faq-item[open] {
    background: var(--surface-2);
    border-color: var(--accent);
}

.faq-item summary {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--fg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    list-style: none;
    user-select: none;
    transition: color 0.3s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item[open] summary {
    color: var(--accent);
}

.faq-item__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border-2);
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 300;
    color: var(--fg);
    transition: all 0.4s var(--ease-out);
    flex-shrink: 0;
}

.faq-item[open] .faq-item__icon {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    transform: rotate(45deg);
}

.faq-item__answer {
    padding: 0 var(--space-lg) var(--space-lg);
    font-size: var(--text-sm);
    color: var(--fg-2);
    line-height: 1.6;
}

.faq-item__answer strong {
    color: var(--fg);
}

/* ═══════════════════════════════════════════════════════════
   CTA / КОНТАКТЫ
   ═══════════════════════════════════════════════════════════ */
.cta {
    padding: var(--space-3xl) 0;
    background: var(--bg-2);
}

.cta__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-2xl);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.cta__inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-dim), transparent 70%);
    pointer-events: none;
}

.cta__content {
    position: relative;
    z-index: 1;
}

.cta__title {
    font-size: var(--text-3xl);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: var(--space-md) 0 var(--space-md);
}

.cta__subtitle {
    font-size: var(--text-base);
    color: var(--fg-2);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    line-height: 1.55;
}

/* Форма */
.cta__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--fg-3);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-left: 2px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--fg);
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    transition: all 0.3s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--fg-4);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface-2);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
    font-family: var(--font-sans);
}

.form-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23c6ff00' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.cta__alt {
    font-size: var(--text-sm);
    color: var(--fg-3);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cta__alt a {
    color: var(--accent);
    font-weight: 500;
    transition: opacity 0.3s;
}

.cta__alt a:hover {
    opacity: 0.7;
}

/* Сайдбар с преимуществами */
.cta__side {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    position: relative;
    z-index: 1;
}

.cta__benefit {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.3s;
}

.cta__benefit:hover {
    background: var(--surface-2);
    border-color: var(--border-2);
    transform: translateX(4px);
}

.cta__benefit-num {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--accent);
    letter-spacing: 0.15em;
    padding-top: 4px;
    flex-shrink: 0;
}

.cta__benefit h4 {
    font-size: var(--text-base);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.cta__benefit p {
    font-size: var(--text-xs);
    color: var(--fg-3);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
    padding: var(--space-2xl) 0 var(--space-lg);
    border-top: 1px solid var(--border);
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-xl);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.footer__brand p {
    margin-top: var(--space-sm);
    max-width: 280px;
    font-size: var(--text-sm);
    color: var(--fg-3);
    line-height: 1.55;
}

.footer__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer__col h4 {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--fg);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.footer__col a {
    display: block;
    padding: 6px 0;
    font-size: var(--text-sm);
    color: var(--fg-3);
    transition: color 0.2s;
}

.footer__col a:hover {
    color: var(--fg);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--text-xs);
    color: var(--fg-3);
    flex-wrap: wrap;
}

.footer__legal {
    display: flex;
    gap: var(--space-lg);
}

.footer__legal a {
    color: var(--fg-3);
    transition: color 0.2s;
}

.footer__legal a:hover {
    color: var(--fg);
}

/* ═══════════════════════════════════════════════════════════
   SCROLL TOP
   ═══════════════════════════════════════════════════════════ */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border-2);
    color: var(--fg);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-out);
    z-index: 90;
    backdrop-filter: blur(10px);
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    transform: translateY(-4px);
}

/* ═══════════════════════════════════════════════════════════
   ТОСТ УВЕДОМЛЕНИЯ
   ═══════════════════════════════════════════════════════════ */
.toast-container {
    position: fixed;
    top: 90px;
    right: 24px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    min-width: 320px;
    max-width: 400px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    transform: translateX(120%);
    animation: toast-in 0.4s var(--ease-out) forwards;
}

.toast.is-hiding {
    animation: toast-out 0.4s var(--ease-out) forwards;
}

.toast--success { border-left-color: var(--success); }
.toast--error { border-left-color: var(--danger); }
.toast--info { border-left-color: var(--accent); }

.toast__icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    background: var(--accent-dim);
    color: var(--accent);
}

.toast--success .toast__icon {
    background: rgba(0, 217, 126, 0.15);
    color: var(--success);
}

.toast--error .toast__icon {
    background: rgba(255, 77, 77, 0.15);
    color: var(--danger);
}

.toast__content {
    flex: 1;
}

.toast__title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 2px;
}

.toast__text {
    font-size: var(--text-xs);
    color: var(--fg-2);
    line-height: 1.5;
}

@keyframes toast-in {
    to { transform: translateX(0); }
}

@keyframes toast-out {
    to { transform: translateX(120%); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .process__timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process__timeline::before {
        display: none;
    }
    
    .cases__grid,
    .pricing__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .faq__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .cta__inner {
        grid-template-columns: 1fr;
        padding: var(--space-lg);
    }
    
    .footer__inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-lg);
        z-index: 99;
    }
    
    .nav.is-open {
        display: flex;
    }
    
    .nav__link {
        font-size: var(--text-xl);
    }
    
    .burger {
        display: flex;
    }
    
    .header__actions .btn {
        display: none;
    }
    
    .problem__grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .agents__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__nav {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .scroll-top {
        bottom: 90px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
    
    .toast-container {
        top: 80px;
        right: 12px;
        left: 12px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 20px;
    }
    
    .hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
        padding-top: var(--space-md);
    }
    
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero__actions .btn {
        width: 100%;
    }
    
    .agent-card {
        min-height: auto;
    }
    
    .cta__inner {
        padding: var(--space-md);
    }
}

/* ═══════════════════════════════════════════════════════════
   REVEAL АНИМАЦИИ
   ═══════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Hide на мобильных */
@media (hover: none) or (pointer: coarse) {
    .cursor {
        display: none;
    }
    
    body,
    body * {
        cursor: auto !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   УТИЛИТЫ
   ═══════════════════════════════════════════════════════════ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-field--hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.form-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--fg-2);
    margin: 0 0 var(--space-lg);
    line-height: 1.45;
}

.form-consent input {
    margin-top: 3px;
}

.form-consent a {
    color: var(--accent);
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 80;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 18px;
    max-width: 720px;
    margin: 0 auto;
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner p {
    margin: 0;
    color: var(--fg-2);
    font-size: 14px;
}

.cookie-banner a {
    color: var(--accent);
}

.legal-page {
    max-width: 760px;
    margin: 120px auto 80px;
    padding: 0 24px 80px;
    color: var(--fg-1);
    line-height: 1.65;
}

.legal-page h1 {
    font-size: 32px;
    margin-bottom: 16px;
}

.legal-page h2 {
    font-size: 20px;
    margin: 28px 0 10px;
}

.legal-page a {
    color: var(--accent);
}

.calc-box,
.ops-lead {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin: var(--space-lg) 0;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.calc-grid label,
.ops-gate label,
.ops-page label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--fg-2);
}

.calc-grid input,
.calc-grid select,
.ops-page input,
.ops-page textarea {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: var(--fg);
}

.calc-result p {
    margin: 0 0 8px;
}

.audit-steps {
    padding-left: 20px;
    margin: 16px 0 24px;
}

.audit-steps li {
    margin-bottom: 10px;
}

.audit-template {
    white-space: pre-wrap;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.5;
    overflow-x: auto;
}

.ops-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0 24px;
}

.ops-tabs button {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--fg-2);
}

.ops-tabs button.is-on {
    border-color: var(--accent);
    color: var(--accent);
}

.ops-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.ops-meta {
    color: var(--fg-3);
    font-size: 12px;
}

.ops-gate {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
}

@media (max-width: 768px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }
}

[hidden] {
    display: none !important;
}