@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@300;400;500&display=swap');

:root {
    --bg-main: #040a0e; 
    --bg-card: rgba(12, 22, 28, 0.92);
    --border-light: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --text-heading: #f4f4f5; 
    --text-body: #a1a1aa;
    --text-muted: #71717a;
    
    --glow-emerald: rgba(16, 185, 129, 0.3); 
    --glow-cyan: rgba(6, 182, 212, 0.3);
    
    --card-glow-ice: rgba(6, 182, 212, 0.12);
    --card-glow-sapphire: rgba(59, 130, 246, 0.15);
    --accent-neon: #34d399; 
    
    --font-heading: 'Manrope', sans-serif;
    --font-body: 'Inter', sans-serif;
    --fs-hero: clamp(2.5rem, 5vw, 4rem);
    --fs-h2: clamp(1.8rem, 3.5vw, 2.8rem);
    --fs-h3: 1.15rem;
    --fs-p: 1.05rem;
    
    --cursor-x: 50%;
    --cursor-y: 50%;
    
    --glass-blur: blur(24px);
    --transition-smooth: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at 50% -10%, #081d24 0%, var(--bg-main) 60%);
    background-attachment: fixed;
    color: var(--text-body);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 9999; opacity: 0.8;
}

a { text-decoration: none; color: inherit; }

.global-glow {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 0; overflow: hidden;
}
.global-glow::before {
    content: '';
    position: absolute; width: 40vmax; height: 40vmax; 
    background: radial-gradient(circle, var(--glow-emerald) 0%, var(--glow-cyan) 40%, transparent 70%);
    left: var(--cursor-x); top: var(--cursor-y); transform: translate(-50%, -50%);
    filter: blur(80px); opacity: 0.8;
    transition: left 0.15s ease-out, top 0.15s ease-out;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--text-heading); font-weight: 600; letter-spacing: -0.02em; position: relative; z-index: 1; text-wrap: balance; }

h1, .indicator-val {
    background: linear-gradient(180deg, #ffffff 0%, #6b6b73 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; color: transparent;
    filter: drop-shadow(0px 8px 7px rgba(0, 0, 0, 0.95)) drop-shadow(0px 3px 2px rgba(255, 255, 255, 0.3)) drop-shadow(0px -1px 1px rgba(255, 255, 255, 0.12));
}

/* Объемный 3D-градиент для Новой нормы */
.norma h2 {
    background: linear-gradient(180deg, #ffffff 0%, #6b6b73 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; color: transparent;
    filter: drop-shadow(0px -1px 0.5px rgba(255, 255, 255, 0.5)) drop-shadow(0px 1.5px 0.4px rgba(0, 0, 0, 0.65)) drop-shadow(0px 3px 0.6px rgba(0, 0, 0, 0.5)) drop-shadow(0px 7px 9px rgba(0, 0, 0, 0.5));
    text-align: left;
    margin-bottom: 0;
}

h1 { font-size: var(--fs-hero); line-height: 1.15; margin-bottom: 1.5rem; text-align: center; background: linear-gradient(180deg, #ffffff 0%, #ededf0 22%, #c2c2c9 55%, #76767f 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0px -1px 0.5px rgba(255, 255, 255, 0.5)) drop-shadow(0px 1.5px 0.4px rgba(0, 0, 0, 0.65)) drop-shadow(0px 3px 0.6px rgba(0, 0, 0, 0.5)) drop-shadow(0px 7px 9px rgba(0, 0, 0, 0.5)); }
h2 {
    font-size: var(--fs-h2); line-height: 1.2; margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #6b6b73 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent;
    filter: drop-shadow(0px -1px 0.5px rgba(255, 255, 255, 0.5)) drop-shadow(0px 1.5px 0.4px rgba(0, 0, 0, 0.65)) drop-shadow(0px 3px 0.6px rgba(0, 0, 0, 0.5)) drop-shadow(0px 7px 9px rgba(0, 0, 0, 0.5));
}
h3 { font-size: var(--fs-h3); margin-bottom: 0.8rem; }
p { font-size: var(--fs-p); position: relative; z-index: 1; margin-bottom: 1.2rem; text-wrap: pretty; }

@media (min-width: 1280px) { .nowrap-desktop { white-space: nowrap; } }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
section { padding: 90px 0; position: relative; z-index: 1; }
.legal-page { padding-top: 120px; overflow-x: hidden; }
.legal-page h1 { font-size: clamp(1.6rem, 4vw, var(--fs-hero)); }
.subtitle-text { text-align: center; margin: 0 auto 3rem; color: var(--text-muted); }
.mobile-break { display: none; }

.hl-neon { color: var(--accent-neon); text-shadow: 0 0 8px rgba(52, 211, 153, 0.3); font-weight: 500; }
.hl-white { color: #ffffff; font-weight: 500; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    white-space: nowrap; flex-shrink: 0;
    padding: 16px 36px; border-radius: 12px; font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600;
    background: rgba(12, 22, 28, 0.92); 
    border: 1px solid rgba(52, 211, 153, 0.5); 
    box-shadow: inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.18), inset -1px -1px 3px rgba(0, 0, 0, 0.6), 0 12px 28px -6px rgba(0, 0, 0, 0.55), 0 0 22px 2px rgba(52, 211, 153, 0.55);
    color: var(--text-heading);
    backdrop-filter: var(--glass-blur); cursor: pointer; transition: var(--transition-smooth);
    position: relative; z-index: 2; overflow: hidden;
}
@media (hover: hover) {
    .btn:hover { 
        background: rgba(52, 211, 153, 0.08); 
        color: #ffffff; 
        border-color: rgba(52, 211, 153, 0.95);
        transform: translateY(-3px); 
        box-shadow: inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.18), inset -1px -1px 3px rgba(0, 0, 0, 0.6), 0 18px 36px -6px rgba(0, 0, 0, 0.6), 0 0 36px 6px rgba(52, 211, 153, 0.8);
        animation: neon-breathe 4.5s infinite ease-in-out;
    }
}

.btn.header-cta { padding: clamp(10px, 1.1vw, 13px) clamp(16px, 1.9vw, 26px); margin-right: 0; font-size: clamp(0.78rem, 1vw, 0.95rem); }

.site-header { position: fixed; top: 0; width: 100%; z-index: 100; background: rgba(4, 10, 14, 0.7); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-bottom: 1px solid var(--border-light); transition: transform 0.4s ease; padding-top: env(safe-area-inset-top); }
.site-header.hidden { transform: translateY(-100%); }
.site-header.site-header--static.hidden { transform: translateY(0); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; max-width: 1400px; margin: 0 auto; padding: 0 clamp(56px, 5vw, 80px) 0 clamp(16px, 1.5vw, 24px); }

.logo-block { display: flex; flex-direction: column; justify-content: center; perspective: 1000px; cursor: pointer; flex-shrink: 0; }
.logo-text { font-family: var(--font-heading); font-weight: 800; letter-spacing: clamp(2px, 0.3vw, 4px); font-size: clamp(1.2rem, 1.6vw, 1.8rem); display: flex; line-height: 1; }
.logo-text span {
    display: inline-block; color: #e4e4e7; 
    text-shadow: -1px -1px 1px rgba(255, 255, 255, 0.1), 1px 1px 2px rgba(0, 0, 0, 0.8), 2px 2px 4px rgba(0, 0, 0, 0.6), 3px 3px 6px rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d; transform-origin: center; animation: livingFlip 14s infinite cubic-bezier(0.4, 0.0, 0.2, 1);
}
.logo-text span:nth-child(1) { animation-delay: 0s; } .logo-text span:nth-child(2) { animation-delay: 0.8s; } .logo-text span:nth-child(3) { animation-delay: 1.6s; } .logo-text span:nth-child(4) { animation-delay: 2.4s; }

/* Исправленный градиент и блик для подписи логотипа */
.logo-sub {
    font-size: clamp(0.5rem, 0.7vw, 0.65rem); font-weight: 600; letter-spacing: clamp(1.5px, 0.25vw, 2.5px); margin-top: 4px; padding-left: 2px; text-transform: uppercase; white-space: nowrap;
    background: linear-gradient(90deg, var(--accent-neon) 0%, var(--accent-neon) 50%, #71717a 50%, #71717a 100%);
    background-size: 200% 100%; 
    background-position: 100% 0; 
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    animation: livingSweep 14s infinite ease-in-out;
}

@keyframes livingFlip { 
    0% { transform: rotateX(0deg) rotateY(0deg); color: #f4f4f5; } 
    14%, 53% { transform: rotateX(360deg) rotateY(0deg); color: var(--accent-neon); text-shadow: 0px 4px 10px rgba(52, 211, 153, 0.4), 0px 0px 15px rgba(52, 211, 153, 0.3); } 
    67%, 100% { transform: rotateX(360deg) rotateY(360deg); background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; } 
}
@keyframes livingSweep { 
    0%, 12% { background-position: 0% 0; } 
    35%, 52% { background-position: 100% 0; } 
    72%, 100% { background-position: 0% 0; } 
}

.nav-links { display: flex; gap: clamp(10px, 1.5vw, 24px); flex-shrink: 0; }
.nav-links a { 
    position: relative; font-size: clamp(0.65rem, 0.95vw, 0.82rem); font-weight: 600; text-transform: uppercase; letter-spacing: clamp(1px, 0.18vw, 1.5px); color: #e4e4e7; 
    text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.8), 1px 1px 1px rgba(255, 255, 255, 0.08);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), text-shadow 0.3s ease, color 0.3s ease; display: inline-block;
}
.nav-links a:hover { transform: scale(1.08) translateY(-1px); color: #ffffff; text-shadow: 0 0 12px rgba(52, 211, 153, 1), 0 0 24px rgba(52, 211, 153, 0.8), 0 0 36px rgba(52, 211, 153, 0.4); }

.burger { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 101; background: transparent; border: none; }
.burger span { width: 28px; height: 2px; background: var(--text-heading); transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); transform-origin: left center; }
.burger.open span:nth-child(1) { transform: rotate(45deg); width: 32px; } .burger.open span:nth-child(2) { opacity: 0; } .burger.open span:nth-child(3) { transform: rotate(-45deg); width: 32px; }

.hero { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 100dvh; padding-top: 80px; }
.hero-subtitle { max-width: 800px; margin: 0 auto 40px; font-size: 1.15rem; }

.norma-text { max-width: 100%; text-align: left; }
@media (min-width: 768px) { 
    .norma-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem; align-items: start; max-width: 900px; margin: 0 auto; } 
    .norma-sticky { align-self: start; position: sticky; top: 120px; } 
    .norma-sticky h2 { margin-top: 0; }
    .norma-text p:first-child { margin-top: 0; }
    .norma-text p:last-child { margin-bottom: 0; }
}

.metrics { padding: 40px 0 80px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 20px 0; }
.metric-item { text-align: center; }
.metric-item:first-child { border-left: none; padding-left: 0; }
.metric-value { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; line-height: 1; margin-bottom: 12px; display: inline-flex; align-items: baseline; justify-content: center; background: linear-gradient(180deg, #ffffff 0%, #6b6b73 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent; filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.9)) drop-shadow(0px 1px 1px rgba(255, 255, 255, 0.22)); }
.metric-label { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.features h2, .scenarios h2 { text-align: center; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.aurora-card { position: relative; background: var(--bg-card); border: 1px solid rgba(52, 211, 153, 0.5); box-shadow: inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.18), inset -1px -1px 3px rgba(0, 0, 0, 0.6), 0 12px 28px -6px rgba(0, 0, 0, 0.55), 0 0 22px 2px rgba(52, 211, 153, 0.55); border-radius: 20px; overflow: hidden; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: var(--transition-smooth); display: flex; flex-direction: column; }
.aurora-glow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, transparent 0%, var(--card-glow-ice) 40%, var(--card-glow-sapphire) 60%, transparent 100%); background-size: 300% 300%; opacity: 0; pointer-events: none; z-index: 0; filter: blur(20px); transition: opacity 0.6s ease; }
@media (hover: hover) {
    .aurora-card:hover { border-color: rgba(52, 211, 153, 0.95); transform: translateY(-3px); box-shadow: inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.18), inset -1px -1px 3px rgba(0, 0, 0, 0.6), 0 18px 36px -6px rgba(0, 0, 0, 0.6), 0 0 36px 6px rgba(52, 211, 153, 0.8); animation: neon-breathe 4.5s infinite ease-in-out; }
    .aurora-card:hover .aurora-glow { opacity: 1; animation: aurora-wave 4s ease-in-out infinite alternate; }
}
@keyframes aurora-wave { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }
.card-content { position: relative; z-index: 1; padding: 32px 24px; display: flex; flex-direction: column; height: 100%; }
.card-content .icon { margin-bottom: 24px; color: var(--text-heading); }
.card-content p { font-size: 0.95rem; color: var(--text-body); margin-bottom: 0; }

/* ============================================
   КАРТОЧКИ СЦЕНАРИЕВ С ЖИВЫМ ДЫХАНИЕМ
   ============================================ */
.niche-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(52, 211, 153, 0.5);
    box-shadow: inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.18), inset -1px -1px 3px rgba(0, 0, 0, 0.6), 0 12px 28px -6px rgba(0, 0, 0, 0.55), 0 0 22px 2px rgba(52, 211, 153, 0.55);
    border-radius: 20px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.niche-card .card-content {
    padding: 0;
}

.niche-header { 
    padding: 24px 24px 20px 24px; 
    display: flex; 
    flex-direction: column-reverse;
    justify-content: flex-end; 
    align-items: flex-start;
    gap: 16px;
    box-sizing: border-box;
}

.niche-titles {
    flex: 1;
    min-width: 0; 
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.niche-header h3 { 
    font-size: 1.15rem; 
    margin-bottom: 0; 
    transition: color 0.3s; 
    white-space: nowrap; 
    line-height: 1.3;
}

.niche-subtitle { 
    font-size: 0.85rem; 
    color: #a1a1aa; 
    line-height: 1.4;
    white-space: normal; 
    transition: color 0.4s ease; 
    max-width: 180px;
}

.niche-icon {
    width: 32px; 
    height: 32px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0; 
    color: rgba(52, 211, 153, 0.6); 
    transition: all 0.4s ease;
    align-self: flex-start;
}
.niche-icon svg { width: 100%; height: 100%; stroke-width: 1.5; }

.niche-body { 
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    overflow: hidden;
    transition: grid-template-rows 0.75s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease 0.05s;
}

.niche-body-inner { 
    min-height: 0;
    overflow: hidden;
    padding: 0 24px 24px; 
    border-top: 1px solid rgba(52, 211, 153, 0.2); 
    padding-top: 24px;
}

.niche-section-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin: 20px 0 8px; font-weight: 600; }
.niche-body-inner p { font-size: 0.95rem; color: #d4d4d8; line-height: 1.6; margin-bottom: 16px; display: block; }
.niche-indicator { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-light); display: flex; flex-direction: column; gap: 8px; }

/* «Подробнее ↓» — зелёный, внизу справа карточки */
.niche-more {
    position: absolute;
    top: 40px;
    right: 24px;
    transform: translateY(-50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-neon);
    cursor: pointer;
    transition: color 0.3s ease, opacity 0.3s ease;
    letter-spacing: 0.5px;
    opacity: 1;
    pointer-events: auto;
}
.niche-card.active .niche-more { opacity: 0; pointer-events: none; }

/* «Свернуть ↑» — зелёный, внизу справа карточки */
.niche-collapse {
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-neon);
    cursor: pointer;
    transition: color 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}
.niche-collapse:hover { color: #fff; }
.niche-card.active .niche-collapse { opacity: 1; pointer-events: auto; }

@media (min-width: 1025px) {
    .scenarios-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; }
    .niche-card { cursor: pointer; }
    @media (hover: hover) {
        .niche-card:hover { border-color: rgba(52, 211, 153, 0.95); box-shadow: inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.18), inset -1px -1px 3px rgba(0, 0, 0, 0.6), 0 18px 36px -6px rgba(0, 0, 0, 0.6), 0 0 36px 6px rgba(52, 211, 153, 0.8); z-index: 10; animation: neon-breathe 4.5s infinite ease-in-out; }
        .niche-card:hover .niche-header h3 { color: #fff; }
        .niche-card:hover .niche-subtitle { color: var(--accent-neon); }
        .niche-card:hover .niche-icon { color: #fff; filter: drop-shadow(0 0 20px rgba(52, 211, 153, 1)); transform: scale(1.15); }
        .niche-card:hover .niche-more { color: #a1a1aa; }
    }
    .niche-card.active .niche-body { grid-template-rows: 1fr; opacity: 1; }
}

@media (max-width: 1024px) {
    .scenarios-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .niche-header { cursor: pointer; }
    .niche-card.active .niche-body { grid-template-rows: 1fr; opacity: 1; }
}
@media (max-width: 768px) {
    .scenarios-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ПРЕЦЕДЕНТ (ШОУ-РУМ)
   ============================================ */
.precedent h2 { text-align: left; }
.precedent-label { font-size: 0.8rem; text-align: left; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-neon); margin-bottom: 16px; font-weight: 700; text-shadow: 0 0 10px rgba(52, 211, 153, 0.3); }
.precedent-cases { display: flex; flex-direction: column; gap: 60px; margin-top: 40px; }
.precedent-case-label { display: inline-block; padding: 6px 16px; border-radius: 8px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; border: 1px solid rgba(52, 211, 153, 0.3); color: var(--accent-neon); margin-bottom: 16px; background: rgba(52, 211, 153, 0.05); }
.precedent-wrapper { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.precedent-cases .precedent-wrapper:nth-child(2) { align-items: start; }
.precedent-cases .precedent-wrapper:nth-child(2) .precedent-info { margin-top: 16px; }
.precedent-cases .precedent-wrapper:nth-child(2) .precedent-info h3 { margin-top: 28px; }
.precedent-info { }
.precedent-list { margin: 24px 0; padding-left: 20px; color: var(--text-body); }
.precedent-list li { margin-bottom: 12px; position: relative; list-style: none; }
.precedent-list li::before { content: '◆'; position: absolute; left: -20px; color: var(--accent-neon); font-size: 0.8rem; top: 2px; }

.mockup-glass { background: var(--bg-card); border: 1px solid rgba(52, 211, 153, 0.5); border-radius: 20px; padding: 20px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.18), inset -1px -1px 3px rgba(0, 0, 0, 0.6), 0 12px 28px -6px rgba(0, 0, 0, 0.55); overflow: hidden; }
.mockup-header { display: flex; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.dots { display: flex; gap: 6px; margin-right: 16px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-hover); }
.mockup-title { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.mockup-body { display: flex; flex-direction: column; gap: 16px; }

.chat-animation-container { min-height: 400px; display: flex; flex-direction: column; gap: 16px; justify-content: flex-end; }

/* Чат-сообщения: невидимые, но занимают место (нет прыжков) */
.chat-hidden { opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.chat-hidden.chat-visible { opacity: 1; pointer-events: auto; }
.chat-bubble { padding: 12px 16px; border-radius: 12px; font-size: 0.9rem; max-width: 85%; line-height: 1.4; }
.incoming { background: rgba(255,255,255,0.05); color: var(--text-body); align-self: flex-start; border-bottom-left-radius: 4px; }
.outgoing { background: rgba(52, 211, 153, 0.1); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; border: 1px solid rgba(52, 211, 153, 0.2); }

.chat-action-buttons { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.chat-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(52, 211, 153, 0.4); color: var(--accent-neon); padding: 8px 16px; border-radius: 8px; font-weight: 500; text-align: center; cursor: default; }

.typing-indicator { align-self: flex-end; background: rgba(52, 211, 153, 0.1); border-radius: 12px; border-bottom-right-radius: 4px; padding: 12px 16px; display: flex; gap: 4px; border: 1px solid rgba(52, 211, 153, 0.2); width: fit-content; }
.typing-indicator span { width: 6px; height: 6px; background: var(--accent-neon); border-radius: 50%; animation: bounce 1.4s infinite ease-in-out both; }
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; } .typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

.hidden { display: none !important; }
.animate-msg { }
.chat-hidden.chat-visible { animation: slideUpFade 0.45s ease; }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================
   ГОЛОСОВОЙ ПЛЕЕР С НЕЙРО-МАТРИЦЕЙ И КНОПКОЙ HOVER
   ============================================ */

/* Отключаем обрезку рамок (решает проблему срезанных граней) */
.mockup-glass.voice-insight-glass { padding: 0; background: transparent; border: none; box-shadow: none; display: flex; flex-direction: column; gap: 32px; overflow: visible !important; justify-content: center; }

.voice-player { 
    background: var(--bg-card); 
    border: 1px solid rgba(52, 211, 153, 0.5); 
    box-shadow: inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.18), inset -1px -1px 3px rgba(0, 0, 0, 0.6), 0 12px 28px -6px rgba(0, 0, 0, 0.55);
    border-radius: 16px; 
    padding: 16px 20px; 
    display: flex; 
    align-items: center; 
    justify-content: flex-start;
    gap: 24px; 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
    position: relative;
}
@media (hover: hover) {
    .voice-player:hover { 
        border-color: rgba(52, 211, 153, 0.95); 
        box-shadow: inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.18), inset -1px -1px 3px rgba(0, 0, 0, 0.6), 0 12px 28px -6px rgba(0, 0, 0, 0.55);
    }
}

@keyframes playBtnBreathe {
    0% { box-shadow: 0 0 8px rgba(52, 211, 153, 0.4); }
    50% { box-shadow: 0 0 22px rgba(52, 211, 153, 1), 0 0 40px rgba(52, 211, 153, 0.5), 0 0 10px rgba(52, 211, 153, 0.5) inset; }
    100% { box-shadow: 0 0 8px rgba(52, 211, 153, 0.4); }
}

/* Кнопка Play: неоновый голубой треугольник без круга */
@media (hover: hover) {
    .voice-player:hover .play-btn {
        animation: playBtnBreatheGreen 2s infinite ease-in-out;
    }
}

.play-btn { 
    width: 36px;
    height: 36px; 
    border-radius: 50%; 
    background: transparent; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #38bdf8; 
    flex-shrink: 0; 
    cursor: pointer; 
    transition: box-shadow 0.4s ease, color 0.4s ease;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}
.play-btn svg { width: 22px; height: 22px; margin-left: 2px; fill: currentColor; filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.8)); }

@keyframes playBtnBreatheGreen {
    0% { box-shadow: 0 0 8px rgba(52, 211, 153, 0.3); color: #38bdf8; }
    50% { box-shadow: 0 0 22px rgba(52, 211, 153, 0.9), 0 0 40px rgba(52, 211, 153, 0.4); color: var(--accent-neon); }
    100% { box-shadow: 0 0 8px rgba(52, 211, 153, 0.3); color: #38bdf8; }
}

.player-info { display: flex; align-items: center; min-width: 0; flex-grow: 1; gap: 12px; }
.player-title { font-size: 0.85rem; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Нейро-матрица: 3 строки точек, ровно по центру между названием и временем */
.player-matrix {
    display: grid;
    grid-template-rows: repeat(3, 5px);
    grid-auto-flow: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    height: 26px;
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
}
.player-matrix span {
    width: 5px;
    height: 5px;
    background: rgba(52, 211, 153, 0.25);
    border-radius: 50%;
    display: inline-block;
}

/* Пульсация точек при воспроизведении (анимация через JS) */
.voice-player.playing .player-matrix span {
    background: var(--accent-neon);
    box-shadow: 0 0 8px var(--accent-neon);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.player-time { font-size: 0.75rem; color: #38bdf8; font-variant-numeric: tabular-nums; flex-shrink: 0; text-shadow: 0 0 8px rgba(56, 189, 248, 0.5); margin-left: auto; }

/* Стабильная монолитная светящаяся рамка CRM (Без прыжков) */
.crm-export-card { 
    background: var(--bg-card); 
    border: 1px solid rgba(52, 211, 153, 0.5); 
    box-shadow: inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.18), inset -1px -1px 3px rgba(0, 0, 0, 0.6), 0 12px 28px -6px rgba(0, 0, 0, 0.55); 
    border-radius: 16px; 
    padding: 20px; 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    position: relative;
}

.crm-header { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-neon); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(52, 211, 153, 0.1); }
.crm-header svg { width: 18px; height: 18px; }
.crm-body { display: flex; flex-direction: column; gap: 12px; font-size: 0.85rem; line-height: 1.5; }
.crm-row { display: flex; flex-direction: column; gap: 4px; }
.crm-label { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; }
.crm-val { color: #fff; }
.crm-val.success { color: var(--accent-neon); font-weight: 500; }

/* ============================================
   ПАНЕЛИ ПОДХОДОВ И ШАГОВ
   ============================================ */
.approach-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 1000px; margin: 50px auto 0; border-radius: 20px; overflow: hidden; border: 1px solid rgba(52, 211, 153, 0.5); box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.55), 0 0 22px 2px rgba(52, 211, 153, 0.55); transition: var(--transition-smooth); }
@media (hover: hover) {
    .approach-split:hover { border-color: rgba(52, 211, 153, 0.95); box-shadow: inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.18), inset -1px -1px 3px rgba(0, 0, 0, 0.6), 0 18px 36px -6px rgba(0, 0, 0, 0.6), 0 0 36px 6px rgba(52, 211, 153, 0.8); animation: neon-breathe 4.5s infinite ease-in-out; }
}
.approach-side { padding: 48px 40px; display: flex; flex-direction: column; gap: 20px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.approach-side p { margin: 0; font-size: 1.05rem; }
.approach-side-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; margin-bottom: 8px; display: block; }
.approach-old { background: rgba(255, 255, 255, 0.01); opacity: 0.5; border-right: 1px solid var(--border-light); }
.approach-old .approach-side-label { color: var(--text-muted); }
.approach-new { background: rgba(14, 32, 36, 0.45); position: relative; }
.approach-new .approach-side-label { color: var(--accent-neon); }
.approach-new::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(52, 211, 153, 0.03), rgba(56, 189, 248, 0.03)); pointer-events: none; }

.trajectory h2 { text-align: center; }
.trajectory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px; margin-top: 60px; }
.trajectory-step-wrapper { position: relative; z-index: 1; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.trajectory-card { position: relative; background: var(--bg-card); border: 1px solid rgba(52, 211, 153, 0.5); box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.55), 0 0 22px 2px rgba(52, 211, 153, 0.55); border-radius: 20px; padding: 40px 28px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); height: 100%; z-index: 2; transition: border-color 1s ease, box-shadow 1s ease; overflow: hidden; }
@media (hover: hover) {
    .trajectory-step-wrapper:hover { transform: translateY(-2px) scale(1.005); }
    .trajectory-step-wrapper:hover .trajectory-card { border-color: rgba(52, 211, 153, 0.95); box-shadow: inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.18), inset -1px -1px 3px rgba(0, 0, 0, 0.6), 0 18px 36px -6px rgba(0, 0, 0, 0.6), 0 0 36px 6px rgba(52, 211, 153, 0.8); animation: neon-breathe 4.5s infinite ease-in-out; }
}

/* Циклическое свечение на активном шаге */
.trajectory-card.trajectory-active { border-color: rgba(52, 211, 153, 0.95); box-shadow: inset 1.5px 1.5px 1px rgba(255,255,255,0.18), inset -1px -1px 3px rgba(0,0,0,0.6), 0 18px 36px -6px rgba(0,0,0,0.6), 0 0 36px 6px rgba(52, 211, 153, 0.8); }
.trajectory-card .aurora-glow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, transparent 0%, var(--card-glow-ice) 40%, var(--card-glow-sapphire) 60%, transparent 100%); background-size: 300% 300%; opacity: 0; pointer-events: none; z-index: 0; filter: blur(20px); transition: opacity 1.2s ease; }
.trajectory-card.trajectory-active .aurora-glow { opacity: 1; animation: aurora-wave 4s ease-in-out infinite alternate; }
.trajectory-card .step-number { transition: -webkit-text-stroke 1s ease, text-shadow 1s ease; }
.trajectory-card.trajectory-active .step-number { -webkit-text-stroke: 1.5px var(--accent-neon); text-shadow: 0 0 24px rgba(52, 211, 153, 0.6), 0 0 48px rgba(52, 211, 153, 0.3); }
.trajectory-glow { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: 20px; background: linear-gradient(135deg, rgba(52, 211, 153, 0.4), rgba(6, 182, 212, 0.4)); filter: blur(25px); opacity: 0.05; z-index: 0; animation: drop-glow-wave 8s infinite ease-in-out; }
.glow-1 { animation-delay: 0s; } .glow-2 { animation-delay: 2s; } .glow-3 { animation-delay: 4s; } .glow-4 { animation-delay: 6s; }
@keyframes drop-glow-wave { 0%, 100% { opacity: 0.05; transform: scale(0.98); } 15% { opacity: 0.35; transform: scale(1.02); } 30%, 90% { opacity: 0.05; transform: scale(0.98); } }
.step-number { display: flex; align-items: center; font-family: var(--font-heading); font-size: 4.5rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15); margin-bottom: 20px; line-height: 1; }
.step-word { font-size: 0.9rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-neon); -webkit-text-stroke: 0; text-shadow: 0 0 15px rgba(52, 211, 153, 0.4); opacity: 1; margin-right: 16px; }

.faq h2 { text-align: center; margin-bottom: 50px; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1024px) { .faq-list { gap: 32px; } }
.faq-item { border: 1px solid rgba(52, 211, 153, 0.5); box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.55), 0 0 22px 2px rgba(52, 211, 153, 0.55); border-radius: 16px; background: var(--bg-card); transition: var(--transition-smooth); }
@media (hover: hover) {
    .faq-item:hover { border-color: rgba(52, 211, 153, 0.95); box-shadow: inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.18), inset -1px -1px 3px rgba(0, 0, 0, 0.6), 0 18px 36px -6px rgba(0, 0, 0, 0.6), 0 0 36px 6px rgba(52, 211, 153, 0.8); animation: neon-breathe 4.5s infinite ease-in-out; }
}
.faq-question { padding: 24px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 1.05rem; font-weight: 500; }
.faq-question span { background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent; }
.faq-icon svg { width: 24px; height: 24px; stroke: var(--text-muted); transition: transform 0.4s ease; }
.faq-item.active .faq-icon svg { transform: rotate(45deg); stroke: #ffffff; }
.faq-answer { max-height: 0; overflow: hidden; transition: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.faq-answer-inner { padding: 0 24px 24px; color: var(--text-body); }

.cinematic-pause { display: flex; align-items: center; justify-content: center; padding: 80px 0; }
.pause-text { font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--text-heading); font-weight: 300; opacity: 0.6; white-space: nowrap; text-align: center; }
.mobile-break { display: none; }

.final-cta { text-align: center; padding: 90px 0 60px; }
.final-cta p { max-width: 720px; margin: 0 auto; }
.footer-cta-wrapper { display: flex; justify-content: center; margin-top: 50px; margin-bottom: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--border-light); }
.footer-btn { font-size: 1.1rem; padding: 20px 48px; border-radius: 16px; }

.site-footer { padding: 0 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; font-size: 0.85rem; }
.footer-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.copy-sym, .copy-brand, .copy-manifest { color: #71717a; text-shadow: -1px -1px 1px rgba(0,0,0,0.8), 1px 1px 1px rgba(255,255,255,0.12); }
.copy-sym { font-weight: 500; } .copy-brand { font-weight: 700; letter-spacing: 1px; } .copy-manifest { font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-left: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--text-muted); position: relative; transition: color 0.3s ease; }
.footer-links a:hover { color: #ffffff; }

.reveal { opacity: 0; transform: translateY(30px); transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.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; }

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .metric-item { margin-bottom: 24px; border-left: none; }
    .precedent-wrapper { grid-template-columns: minmax(0, 1fr); }
    .trajectory-grid { grid-template-columns: repeat(2, 1fr); }
    .desktop-break { display: none; }
}

.mobile-nav { display: none; }
@media (max-width: 768px) {
    section { padding: 50px 0; }
    .features-grid, .scenarios-grid { grid-template-columns: 1fr; }
    .approach-split { grid-template-columns: 1fr; }
    .approach-old { opacity: 0.6; border-right: none; border-bottom: 1px solid var(--border-light); }
    .trajectory-grid { grid-template-columns: 1fr; gap: 32px; }
    .norma-grid { grid-template-columns: 1fr; gap: 2rem; }
    .nav-links, .header-cta { display: none; }
    .burger { display: flex; }
    .mobile-nav { position: fixed; inset: 0; background: var(--bg-main); z-index: 99; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px; opacity: 0; pointer-events: none; transition: 0.3s; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
    
    /* Уменьшаем отступы плеера на мобильных */
    .voice-player {
        gap: 12px;
        padding: 12px 14px;
    }
    .crm-export-card {
        padding: 16px;
    }
    .mobile-nav.open { opacity: 1; pointer-events: all; }
    .mobile-nav a { font-size: 1.5rem; color: #ffffff; font-family: var(--font-heading); }
    .mobile-nav .btn:active { transform: scale(0.95); }
    .hero { padding-top: 100px; }
    .metrics-grid { grid-template-columns: 1fr; border: none; padding: 0; }
    .metric-item { border-bottom: 1px solid var(--border-light); padding-bottom: 24px; }
    .footer-inner { flex-direction: column; align-items: center; gap: 20px; text-align: center; }
    .cinematic-pause { padding: 60px 0; } 
    .pause-text { white-space: normal; font-size: 1.5rem; } 
    .mobile-break { display: inline; }

    /* Гармошка: показываем 7 центральных столбцов (4–10), прячем крайние */
    .player-matrix span:nth-child(-n+9),
    .player-matrix span:nth-child(n+31) {
        display: none;
    }
    .player-matrix {
        justify-content: center;
    }

    /* Шаги: облегчение для мобиле (убирает фриз + баг рамки шага 04) */
    .trajectory-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .trajectory-glow {
        animation: none;
        opacity: 0;
    }
    .trajectory-card .aurora-glow {
        filter: none;
    }

    /* Юридические страницы: бургер внутри экрана + контент ниже шапки */
    .legal-page ~ footer,
    .legal-page {
        /* сдвиг контента ниже шапки нужен только для legal-page, но padding задаём ниже */
    }
    .site-header .header-inner {
        padding-right: 16px;
    }
    .legal-page h1 {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* ГЛУБОКОЕ И ПЛАВНОЕ ДЫХАНИЕ ЖИВОЙ СИСТЕМЫ (4.5 СЕКУНДЫ) */
@keyframes neon-breathe {
    0% { box-shadow: inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.18), inset -1px -1px 3px rgba(0, 0, 0, 0.6), 0 24px 48px -8px rgba(0, 0, 0, 0.7), 0 10px 22px -6px rgba(0, 0, 0, 0.5), 0 0 8px rgba(52, 211, 153, 0.35); border-color: rgba(52, 211, 153, 0.4); }
    50% { box-shadow: inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.18), inset -1px -1px 3px rgba(0, 0, 0, 0.6), 0 24px 48px -8px rgba(0, 0, 0, 0.7), 0 10px 22px -6px rgba(0, 0, 0, 0.5), 0 0 26px rgba(52, 211, 153, 0.75); border-color: rgba(52, 211, 153, 0.95); }
    100% { box-shadow: inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.18), inset -1px -1px 3px rgba(0, 0, 0, 0.6), 0 24px 48px -8px rgba(0, 0, 0, 0.7), 0 10px 22px -6px rgba(0, 0, 0, 0.5), 0 0 8px rgba(52, 211, 153, 0.35); border-color: rgba(52, 211, 153, 0.4); }
}