:root {
    --color-carrot: #FF6B35;
    --color-purple: #6366F1;
    --color-purple-dark: #4338CA;
    --color-bg: #0B0B0F;
    --color-text: #E2E8F0;
    --color-white: #FFFFFF;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Syne', sans-serif;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(11, 11, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
}

.logo__dot {
    width: 12px;
    height: 12px;
    background: var(--color-carrot);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--color-carrot);
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn--header {
    background: var(--color-purple);
    color: white;
}

.btn--header:hover {
    background: var(--color-carrot);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #07070a;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer__title {
    font-family: var(--font-heading);
    color: var(--color-white);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer__links li { margin-bottom: 12px; }
.footer__links a { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }
.footer__links a:hover { color: var(--color-purple); padding-left: 5px; }

.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.footer__contact i { color: var(--color-carrot); width: 20px; }

.footer__bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Mobile Adaptive */
.burger { display: none; }

@media (max-width: 992px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .nav { display: none; }
    .burger { display: block; background: none; border: none; }
}

@media (max-width: 576px) {
    .footer__grid { grid-template-columns: 1fr; }
}
/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

#hero-network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__content {
    max-width: 700px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    color: var(--color-purple);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(90deg, var(--color-carrot), #ff9e7d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__description {
    font-size: 1.1rem;
    color: rgba(226, 232, 240, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero__actions {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn--primary {
    background: var(--color-carrot);
    color: white;
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn--primary:hover {
    background: #e65a2b;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.btn--outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 16px 32px;
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-purple);
}

/* Stats */
.hero__stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item__num {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-white);
}

.stat-item__text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .hero__actions { flex-direction: column; }
    .hero__stats { gap: 20px; }
}
/* Section Common */
.section-header { margin-bottom: 60px; text-align: center; }
.section-title { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 15px; }
.section-subtitle { color: rgba(255,255,255,0.6); max-width: 600px; margin: 0 auto; }

/* Strategies */
.strategies { padding: 100px 0; }
.strategies__grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.strategy-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 24px;
    transition: var(--transition);
}

.strategy-card:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: var(--color-purple);
    transform: translateY(-10px);
}

.strategy-card__icon {
    width: 60px;
    height: 60px;
    background: var(--color-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 25px;
}

.strategy-card__title { font-family: var(--font-heading); margin-bottom: 15px; }
.strategy-card__text { color: rgba(255,255,255,0.6); font-size: 0.95rem; }

/* Cases & Comparison Slider */
.cases { position: relative; padding: 100px 0; overflow: hidden; background: #0c0c12; }
#cases-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.4; }

.comparison-slider { max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }
.case-item__label { text-align: center; margin-bottom: 20px; font-weight: 600; color: var(--color-carrot); }

.compare-box {
    position: relative;
    height: 450px;
    border-radius: 30px;
    overflow: hidden;
    cursor: ew-resize;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.compare-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 60px;
}

.compare-pane--before { background: #1a1a24; z-index: 1; }
.compare-pane--after { 
    background: linear-gradient(135deg, var(--color-purple-dark), #2d1b4e); 
    z-index: 2; 
    width: 50%; /* Начальное положение */
    border-right: 2px solid var(--color-carrot);
}

.compare-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 20px;
}
.compare-tag--after { background: var(--color-carrot); color: white; }

.compare-list { list-style: none; }
.compare-list li { 
    margin-bottom: 15px; 
    font-size: 1.2rem; 
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.compare-handle {
    position: absolute;
    top: 0;
    left: 50%;
    bottom: 0;
    width: 2px;
    background: var(--color-carrot);
    z-index: 3;
    transform: translateX(-50%);
    pointer-events: none;
}

.compare-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--color-carrot);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 20px var(--color-carrot);
}
.compare-pane--after { 
    background: linear-gradient(135deg, var(--color-purple-dark), #2d1b4e); 
    z-index: 1; /* Слой под низом */
    width: 100%;
    justify-content: flex-end; /* Контент прижат к правому краю */
    text-align: right;
}

.compare-pane--after .compare-content {
    align-items: flex-end;
}

.compare-pane--before { 
    background: #1a1a24; 
    z-index: 2; /* Слой сверху */
    width: 50%; /* Начальное положение */
    border-right: 2px solid var(--color-carrot);
    overflow: hidden; /* Важно: обрезаем контент */
}

.compare-pane--before .compare-content {
    min-width: 860px; /* Фиксируем ширину контента, чтобы он не сжимался при движении слайдера */
}

.compare-list li i {
    width: 20px;
    height: 20px;
}
.compare-pane--before .compare-list li i { color: #ef4444; }
.compare-pane--after .compare-list li i { color: #10b981; }

.compare-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* Methodology */
.methodology { padding: 100px 0; background: var(--color-bg); }

.method__path {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.method__path::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 1px; height: 100%;
    background: linear-gradient(to bottom, var(--color-carrot), var(--color-purple), transparent);
    transform: translateX(-50%);
}

.method__step {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    width: 100%;
}

.method__step:nth-child(even) { flex-direction: row-reverse; }

.method__num {
    width: 60px; height: 60px;
    background: var(--color-bg);
    border: 2px solid var(--color-carrot);
    color: var(--color-carrot);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem; font-weight: 800;
    z-index: 2;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
}

.method__info {
    width: 42%;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.method__info h3 { font-family: var(--font-heading); margin-bottom: 10px; color: var(--color-white); }
.method__info p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }

/* Blog */
.blog { padding: 100px 0; background: #08080c; }
.blog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog__card {
    background: #111118;
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog__card:hover {
    transform: translateY(-10px);
    border-color: var(--color-purple);
}

.blog__img { position: relative; height: 200px; }
.blog__img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }

.blog__tag {
    position: absolute;
    top: 20px; left: 20px;
    background: var(--color-purple);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.blog__body { padding: 25px; }
.blog__date { font-size: 0.8rem; color: var(--color-carrot); margin-bottom: 10px; display: block; }
.blog__card-title { font-family: var(--font-heading); margin-bottom: 15px; line-height: 1.3; }
.blog__card-text { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 20px; }

.blog__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.9rem;
}

.blog__link:hover { color: var(--color-carrot); }

@media (max-width: 768px) {
    .method__path::before { left: 30px; }
    .method__step, .method__step:nth-child(even) { flex-direction: row; justify-content: flex-start; gap: 20px; }
    .method__info { width: calc(100% - 80px); }
}
/* Contact Section */
.contact { padding: 120px 0; background: var(--color-bg); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.contact__card { display: flex; flex-direction: column; gap: 30px; }
.contact__card-item { display: flex; align-items: center; gap: 20px; }
.contact__card-item i { width: 50px; height: 50px; background: rgba(99, 102, 241, 0.1); color: var(--color-purple); display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.contact__card-item span { font-size: 0.8rem; color: rgba(255,255,255,0.5); text-transform: uppercase; }
.contact__card-item p { font-size: 1.2rem; font-weight: 600; color: var(--color-white); }

/* Form Styling */
.form { background: rgba(255,255,255,0.02); padding: 40px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.05); }
.form__group { margin-bottom: 20px; }
.form__input { width: 100%; padding: 16px 20px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: white; font-family: inherit; transition: var(--transition); }
.form__input:focus { outline: none; border-color: var(--color-purple); background: rgba(255,255,255,0.08); }

.form__captcha { margin: 20px 0; display: flex; align-items: center; gap: 15px; }
.form__captcha label { font-size: 0.9rem; color: var(--color-carrot); font-weight: 600; white-space: nowrap; }

.form__agreement { margin-bottom: 30px; }
.checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.checkbox__box { width: 20px; height: 20px; border: 2px solid var(--color-purple); border-radius: 4px; position: relative; }
.checkbox input { display: none; }
.checkbox input:checked + .checkbox__box::after { content: '✓'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--color-carrot); font-weight: 800; }
.checkbox__text { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.checkbox__text a { text-decoration: underline; }

.form__btn { width: 100%; justify-content: center; }
.form__message { margin-top: 20px; padding: 15px; border-radius: 10px; display: none; text-align: center; }
.form__message.success { display: block; background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid #10b981; }

/* Mobile Menu */
.mobile-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: var(--color-bg); z-index: 999; transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1); display: flex; align-items: center; justify-content: center; }
.mobile-menu.active { right: 0; }
.mobile-menu__list { text-align: center; }
.mobile-menu__link { font-family: var(--font-heading); font-size: 2.5rem; color: white; margin-bottom: 20px; display: block; }
.mobile-menu .btn { margin-top: 20px; padding: 20px 40px; }

/* Burger Animation */
.burger.active span { background: transparent; }
.burger.active span::before { transform: rotate(45deg); top: 0; }
.burger.active span::after { transform: rotate(-45deg); top: 0; }
.burger span, .burger span::before, .burger span::after { display: block; width: 25px; height: 2px; background: white; position: relative; transition: 0.3s; }
.burger span::before, .burger span::after { content: ''; position: absolute; }
.burger span::before { top: -8px; }
.burger span::after { top: 8px; }

/* Cookie Popup */
.cookie-popup { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); width: calc(100% - 40px); max-width: 600px; background: rgba(17, 17, 24, 0.95); backdrop-filter: blur(15px); padding: 20px 30px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); z-index: 2000; transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1); }
.cookie-popup.active { bottom: 20px; }
.cookie-popup__content { display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.cookie-popup p { font-size: 0.85rem; color: rgba(255,255,255,0.7); line-height: 1.4; }
.cookie-popup a { color: var(--color-carrot); font-weight: 600; }

@media (max-width: 992px) {
    .contact__grid { grid-template-columns: 1fr; gap: 40px; }
}
/* =========================================
   MOBILE FIXES FOR CASES SECTION
   ========================================= */
   @media (max-width: 768px) {
    /* Отключаем интерактивность слайдера */
    .compare-box {
        height: auto;
        pointer-events: none; /* Отключаем события мыши/тача */
        border-radius: 20px;
        display: flex;
        flex-direction: column;
    }

    /* Скрываем ручку слайдера */
    .compare-handle {
        display: none;
    }

    /* Переопределяем стили панелей для статического отображения */
    .compare-pane {
        position: relative; /* Возвращаем в поток */
        width: 100% !important; /* На всю ширину */
        height: auto;
        padding: 30px 20px;
        /* Сбрасываем обрезку контента */
        overflow: visible;
    }

    /* Стилизация блока "ДО" */
    .compare-pane--before {
        z-index: 1;
        border-right: none;
        border-bottom: 2px solid var(--color-carrot);
        border-radius: 20px 20px 0 0;
    }

    /* Сбрасываем фиксированную ширину контента, которая ломала мобайл */
    .compare-pane--before .compare-content {
        min-width: auto;
    }

    /* Стилизация блока "ПОСЛЕ" */
    .compare-pane--after {
        z-index: 1;
        /* Возвращаем выравнивание влево */
        text-align: left;
        justify-content: flex-start;
        border-radius: 0 0 20px 20px;
    }

    .compare-pane--after .compare-content {
        align-items: flex-start;
    }

    .compare-list li {
        font-size: 1rem; /* Чуть уменьшаем шрифт списка */
    }

    /* Уменьшаем отступы в секциях для мобайла */
    .strategies, .cases, .methodology, .blog, .contact {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }
}
/* =========================================
   LEGAL & INFO PAGES STYLES
   ========================================= */

   .legal-page {
    padding-top: 120px; /* Отступ под фиксированный хедер */
    min-height: 80vh;
    background: var(--color-bg);
}

.pages {
    padding: 60px 0 100px;
    position: relative;
}

/* Декоративный элемент на фоне */
.pages::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.pages .container {
    position: relative;
    z-index: 1;
    max-width: 900px; /* Сужаем для лучшей читаемости текста */
}

.section-tag {
    display: inline-block;
    color: var(--color-carrot);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.legal-page h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(90deg, var(--color-white), rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 50px;
}

.lead-text strong {
    color: var(--color-purple);
}

/* Сетка карточек контактов */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 35px;
    border-radius: 24px;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--color-purple);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-5px);
}

.contact-card__icon {
    width: 50px;
    height: 50px;
    background: var(--color-carrot);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.2);
}

.contact-card h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--color-white);
}

.contact-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    line-height: 1.4;
}

.contact-link {
    display: inline-block;
    color: var(--color-purple);
    font-weight: 600;
    font-size: 1.1rem;
    word-break: break-all;
}

.contact-link:hover {
    color: var(--color-carrot);
}

.contact-address {
    font-style: normal;
    color: var(--color-white);
    line-height: 1.6;
    font-weight: 500;
}

.contact-extra {
    margin-top: 60px;
    padding: 30px;
    border-left: 3px solid var(--color-purple);
    background: rgba(99, 102, 241, 0.03);
    border-radius: 0 20px 20px 0;
}

.contact-extra p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.contact-extra a {
    color: var(--color-carrot);
    text-decoration: underline;
}

/* Адаптив для страниц */
@media (max-width: 768px) {
    .legal-page { padding-top: 100px; }
    .contact-cards { grid-template-columns: 1fr; }
    .lead-text { font-size: 1.1rem; }
}