/* ===== Переменные ===== */
:root {
    --bg: #0a0e1a;
    --surface: #111827;
    --surface-2: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    
    --neon-teal: #2dd4bf;
    --neon-teal-glow: rgba(45, 212, 191, 0.4); 
    --neon-red: #ef4444;
    --neon-red-glow: rgba(239, 68, 68, 0.4);
    --neon-yellow: #facc15;
    
    --gradient-teal: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
    --gradient-red: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    
    --border: rgba(255, 255, 255, 0.08);
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    --radius: 20px;
    --radius-sm: 12px;
}

/* ===== Сброс ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; cursor: auto; }

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   ЖИВОЙ ФОН (Неоновые пятна)
   ========================================= */
.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    will-change: transform;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 { width: 50vw; height: 50vw; background: var(--neon-teal); top: -10%; left: -10%; }
.blob-2 { width: 40vw; height: 40vw; background: var(--neon-red); bottom: -10%; right: -10%; animation-delay: -7s; }
.blob-3 { width: 30vw; height: 30vw; background: var(--neon-yellow); top: 40%; left: 40%; opacity: 0.15; animation-duration: 25s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.1); }
}

/* ===== Типографика ===== */
a { color: inherit; text-decoration: none; cursor: pointer; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
.container { width: min(1280px, 92%); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
em { font-style: italic; color: var(--neon-teal); }

.section__index {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--neon-teal);
    margin-bottom: 1.5rem;
}

.section__title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; }
.section__sub { color: var(--text-muted); max-width: 600px; font-size: 1.1rem; margin-bottom: 3rem; }

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn--primary {
    background: var(--gradient-teal);
    color: #0a0e1a;
    font-weight: 600;
    box-shadow: 0 4px 20px var(--neon-teal-glow);
}

.btn--primary:hover {
    box-shadow: 0 8px 30px var(--neon-teal-glow);
    transform: translateY(-2px);
}

.btn--text {
    padding: 1rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid transparent;
    border-radius: 0;
}

.btn--text:hover {
    color: var(--neon-teal);
    border-bottom-color: var(--neon-teal);
}

.btn--sos {
    background: var(--gradient-red);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 1.2rem 2.5rem;
    box-shadow: 0 0 30px var(--neon-red-glow);
    animation: sosPulse 2s infinite;
    border: 2px solid rgba(255,255,255,0.2);
}

.btn--sos:hover {
    animation: none;
    box-shadow: 0 0 50px var(--neon-red-glow);
    transform: scale(1.02);
}

.btn--sos .sos-text { font-size: 1.2rem; margin-right: 10px; }
.btn--sos .sos-label { font-weight: 500; font-size: 0.9rem; margin-right: 10px; }

@keyframes sosPulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ===== Шапка ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
}

.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; }
.logo__mark {
    display: grid; place-items: center;
    width: 40px; height: 40px;
    background: var(--gradient-red);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 10px;
    box-shadow: 0 0 15px var(--neon-red-glow);
}
.logo__text { letter-spacing: -0.02em; }
.logo__text strong { color: var(--neon-teal); }

.nav { display: flex; gap: 2.5rem; }
.nav__link {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition);
}
.nav__link:hover { color: var(--neon-teal); }

.header__actions { display: flex; align-items: center; gap: 1.5rem; }
.header__phone { font-weight: 600; font-size: 1rem; color: var(--text); transition: var(--transition); }
.header__phone:hover { color: var(--neon-teal); }

.burger { display: none; flex-direction: column; gap: 6px; width: 28px; }
.burger span { display: block; height: 2px; background: var(--text); transition: var(--transition); }

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 10rem 0 4rem;
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--neon-teal);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 8px; height: 8px;
    background: var(--neon-teal);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-teal);
    animation: blink 1.5s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero__title { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1.05; margin-bottom: 1.5rem; }
.hero__desc { font-size: 1.15rem; color: var(--text-muted); max-width: 500px; margin-bottom: 2.5rem; font-weight: 300; }
.hero__actions { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; margin-bottom: 2rem; }

.hero__trust { display: flex; align-items: center; gap: 1rem; font-size: 0.85rem; color: var(--text-muted); flex-wrap: wrap; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--neon-teal); }

/* =========================================
   РАДАР (ВОЛНЫ СТАЛИ РЕЖЕ)
   ========================================= */
.hero__visual { display: flex; justify-content: center; align-items: center; }
.radar-container { position: relative; width: 320px; height: 320px; display: flex; justify-content: center; align-items: center; }

.radar-circle {
    position: absolute;
    border: 2px solid rgba(45, 212, 191, 0.8); 
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.4); 
    animation: radarPulse 3.5s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

.radar-circle--1 { width: 100%; height: 100%; animation-delay: 0s; }
.radar-circle--2 { width: 100%; height: 100%; animation-delay: 1.1s; } 
.radar-circle--3 { width: 100%; height: 100%; animation-delay: 2.2s; } 

.radar-center {
    width: 140px; 
    height: 140px;
    background: var(--surface);
    border-radius: 50%;
    display: grid; 
    place-items: center;
    border: 2px solid var(--neon-teal);
    box-shadow: 0 0 40px var(--neon-teal-glow); 
    z-index: 2;
}

@keyframes radarPulse {
    0% { transform: scale(0.6); opacity: 0.8; } 
    100% { transform: scale(1.8); opacity: 0; }
}

/* ===== Секции ===== */
.section { padding: 8rem 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__header { margin-bottom: 3rem; }

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--neon-teal);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(45, 212, 191, 0.1);
}

.service-card__icon { margin-bottom: 1.5rem; }
.service-card__num {
    position: absolute;
    top: 2rem; right: 2rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-teal);
    opacity: 0.3;
}

.service-card h3 { font-size: 1.3rem; margin-bottom: 0.8rem; font-family: var(--font-body); font-weight: 600; }
.service-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-grow: 1; }
.service-card__link { font-size: 0.9rem; font-weight: 600; color: var(--neon-teal); display: inline-flex; align-items: center; gap: 0.3rem; transition: var(--transition); }
.service-card:hover .service-card__link { gap: 0.6rem; }

/* Почему мы */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.about__title { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; }
.about__text { font-size: 1.15rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 3rem; font-weight: 300; }

.features { display: flex; flex-direction: column; gap: 2rem; }
.feature { display: flex; gap: 1.5rem; align-items: flex-start; }
.feature__num {
    display: grid; place-items: center;
    min-width: 40px; height: 40px;
    background: rgba(45, 212, 191, 0.1);
    color: var(--neon-teal);
    font-weight: 700;
    border-radius: 10px;
    font-size: 0.9rem;
}
.feature h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.3rem; }
.feature p { font-size: 0.9rem; color: var(--text-muted); }

/* =========================================
   КАК РАБОТАЕМ (КАСКАДНАЯ АНИМАЦИЯ)
   ========================================= */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.steps .step:nth-child(1) { transition-delay: 0.1s; }
.steps .step:nth-child(2) { transition-delay: 0.25s; }
.steps .step:nth-child(3) { transition-delay: 0.4s; }
.steps .step:nth-child(4) { transition-delay: 0.55s; }

.step:hover { 
    border-color: var(--neon-teal); 
    transform: translateY(-5px); 
}

.step__num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-teal);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 1rem;
    transition: all 0.4s ease;
}

.step:hover .step__num {
    opacity: 1;
    text-shadow: 0 0 20px var(--neon-teal-glow);
    transform: scale(1.1);
}

.step h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; color: var(--text-muted); }

/* =========================================
   КОНТАКТЫ И ПАНЕЛЬ ДЕЙСТВИЙ
   ========================================= */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.contact__title { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; }
.contact__text { color: var(--text-muted); margin-bottom: 2.5rem; max-width: 380px; }
.contact__info { display: flex; flex-direction: column; gap: 0.5rem; }
.contact__phone { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--neon-teal); transition: var(--transition); }
.contact__phone:hover { color: #fff; }
.contact__info span { font-size: 0.9rem; color: var(--text-muted); }

.contact__right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.action-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.action-panel::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, var(--neon-teal-glow) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

.action-panel__title {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.action-panel__desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.messengers {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.messenger-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.messenger-btn--max {
    background: rgba(45, 212, 191, 0.1);
    color: var(--neon-teal); 
    border-color: rgba(45, 212, 191, 0.2);
}
.messenger-btn--max:hover {
    background: var(--gradient-teal);
    color: #0a0e1a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--neon-teal-glow);
}

.messenger-btn--tg {
    background: rgba(0, 136, 204, 0.1);
    color: #0088cc;
    border-color: rgba(0, 136, 204, 0.2);
}
.messenger-btn--tg:hover {
    background: #0088cc;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 136, 204, 0.2);
}

.memo-card {
    background: var(--surface-2);
    border-left: 3px solid var(--neon-yellow);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.5rem;
}

.memo-card__title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--neon-yellow);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.memo-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.memo-card__list li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    padding-left: 1.2rem;
    position: relative;
}

.memo-card__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--neon-teal);
    font-weight: bold;
}

.memo-card__list li:last-child {
    margin-bottom: 0;
    color: var(--text);
}

.memo-card__list li strong {
    color: var(--neon-teal);
}

/* Подвал */
.footer { padding: 3rem 0; border-top: 1px solid var(--border); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer__brand p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }
.footer__copy { font-size: 0.8rem; color: var(--text-muted); text-align: right; }

/* Плавающая SOS */
.floating-sos {
    position: fixed;
    bottom: 30px; right: 30px;
    z-index: 999;
    background: var(--gradient-red);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 20px var(--neon-red-glow);
    animation: floatSos 3s infinite;
    transition: var(--transition);
}
.floating-sos:hover { transform: scale(1.05); }
.floating-sos span { font-size: 1rem; letter-spacing: 0.05em; }

@keyframes floatSos {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Общие анимации появления */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   КУКИ БАННЕР
   ========================================= */
.cookie-banner {
    position: fixed; 
    bottom: 20px; 
    left: 50%; 
    transform: translateX(-50%);
    width: min(900px, 95%); 
    background-color: rgba(17, 24, 39, 0.95); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(45, 212, 191, 0.2); 
    border-radius: 16px;
    padding: 1.5rem 2rem; 
    z-index: 3000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    display: none; 
    align-items: center; 
    justify-content: space-between; 
    gap: 2rem;
}

.cookie-banner.show { 
    display: flex; 
    animation: slideUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

.cookie-banner p { 
    font-size: 0.85rem; 
    color: var(--text);
    margin: 0; 
    line-height: 1.5;
}

.cookie-banner a { 
    color: var(--neon-teal); 
    text-decoration: underline; 
    transition: color var(--transition);
}

.cookie-banner a:hover {
    color: #fff;
}

.cookie-banner__actions { 
    display: flex; 
    gap: 1rem; 
    flex-shrink: 0; 
}

.cookie-banner__actions .btn--text {
    border: 1px solid var(--border);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    color: var(--text-muted);
}
.cookie-banner__actions .btn--text:hover {
    border-color: var(--neon-teal);
    color: var(--neon-teal);
}

@keyframes slideUp { 
    from { bottom: -100px; opacity: 0; } 
    to { bottom: 20px; opacity: 1; } 
}

/* ===== Адаптив ===== */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero__actions { justify-content: center; }
    .hero__desc { margin-inline: auto; }
    .hero__visual { order: -1; }
    .radar-container { width: 240px; height: 240px; }
    .radar-center { width: 100px; height: 100px; }
    .about { grid-template-columns: 1fr; gap: 3rem; }
    .steps { grid-template-columns: 1fr 1fr; }
    .contact { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .nav {
        position: fixed; top: 0; right: 0; width: 100%; height: 100vh;
        flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
        background: var(--bg); transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1); z-index: 999;
    }
    .nav.open { transform: translateX(0); }
    .nav__link { font-size: 1.2rem; }
    .burger { display: flex; z-index: 1001; }
    .burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .burger.active span:nth-child(2) { transform: rotate(-45deg) translate(5px, -5px); }

    .hero { padding: 8rem 0 3rem; min-height: auto; }
    .hero__title { font-size: clamp(2.2rem, 9vw, 4rem); }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .btn--sos { justify-content: center; }

    .section { padding: 5rem 0; }
    .services-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .footer__inner { flex-direction: column; text-align: center; }
    .footer__copy { text-align: center; }
    .header__phone { display: none; }
    .logo__text { display: none; }
    .floating-sos { bottom: 20px; right: 20px; padding: 0.8rem 1.2rem; }
    
    .action-panel { padding: 2rem 1.5rem; }
    .messengers { flex-direction: column; }
    
    /* ФИКС: Поднимаем баннер выше кнопки SOS */
    .cookie-banner { 
        flex-direction: column; 
        align-items: flex-start; 
        padding: 1.5rem; 
        bottom: 80px; /* Чтобы не перекрывать кнопку SOS */
    }
    .cookie-banner__actions { width: 100%; margin-top: 10px; }
    .cookie-banner__actions .btn { flex: 1; }
}

/* ===== Ссылки в подвале ===== */
.footer__links {
    display: flex;
    gap: 1.5rem;
}

.footer__links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--neon-teal);
    text-decoration-color: var(--neon-teal);
}