/* ===== CSS VARIABLES ===== */
/* ===== CSS VARIABLES (ОБНОВЛЕНО СОГЛАСНО БРЕНДБУКУ) ===== */
:root {
  
    /* --- ЦВЕТА ИЗ БРЕНДБУКА --- */
    --color-green-primary: #38b54a;      /* Основной фирменный зеленый */
    --color-blue-slate: #425463;        /* Фирменный темно-синий/сланцевый */
    --color-black-brand: #000000;       /* Фирменный черный */
    --color-white: #ffffff;        
--color-grey-dark: #333333; /* Фирменный белый */

    /* --- ГРАДИЕНТ ИЗ БРЕНДБУКА --- */
    --gradient-green-start: #00b11c;
    --gradient-green-end: #a9ea1c;
    
    /* --- Производные и системные цвета --- */
    --color-green-secondary: #2d9a3c;    /* Затемненный зеленый для ховеров (производный) */
    --color-background-main: var(--color-black-brand);
    --color-text-primary: var(--color-white); 
    --color-text-readable: #E0E0E0;      /* Оставляем для основного текста для лучшей читаемости */
    --color-grey-light: #BDBDBD;
    --color-grey-medium: #828282;
    --color-error: #ff5459;
    --color-black-primary: #121212;
    --color-black-tertiary: #1c1c1c; 
    
    /* Typography */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem; 
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Transitions */
    --transition-fast: all 0.2s ease-in-out;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-green: 0 10px 30px rgba(56, 181, 74, 0.2);

    /* Border Radius */
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Container */
    --container-max-width: 1200px;
    --container-padding: 1rem;
}
    
    /* ===== FONTS ===== */
    @font-face {
      font-display: swap; 
      font-family: 'Inter';
      font-style: normal;
      font-weight: 100 900; /* Variable font weight */
      src: url('fonts/inter/inter-v19-cyrillic_latin-regular.woff2') format('woff2');
    }
    
    /* ===== RESET & BASE STYLES ===== */
    *,
    *::before,
    *::after {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    html, body {
        width: 100%;
        overflow-x: hidden;
    }
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 100px;
    }
    
    body {
        font-family: var(--font-family-primary);
        font-size: 18px;
        line-height: 1.6;
        color: var(--color-grey-light); 
        background: var(--color-background-main); 
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* ===== TYPOGRAPHY (from strategic plan) ===== */
    h1, h2, h3, h4 {
        line-height: 1.3;
        color: var(--color-white);
        letter-spacing: -0.02em;
    }
    h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; } /* 64px */
    h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; } /* 48px */
    h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; color: #E0E0E0; } /* 32px */
    h4 { font-size: 1.25rem; font-weight: 600; color: #E0E0E0; } /* 20px */
    
    p { margin-bottom: var(--spacing-md); }
    
    a {
        color: var(--color-green-primary);
        text-decoration: none;
        transition: var(--transition-fast);
    }
    a:hover { color: var(--color-green-light); }
    
    /* ===== UTILITIES ===== */
    .container {
        max-width: var(--container-max-width);
        margin: 0 auto;
        padding: 0 var(--container-padding);
    }
    
    .section { padding: var(--spacing-3xl) 0; }
    
    .section__header {
        text-align: center;
        margin-bottom: var(--spacing-3xl);
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .section__title {
        /* Градиент из брендбука: слева направо */
        background: linear-gradient(to right, var(--gradient-green-start), var(--gradient-green-end));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        margin-bottom: var(--spacing-md);
    }
    
    .section__subtitle {
        font-size: 1.125rem; /* 18px */
        color: var(--color-grey-light);
    }
    
    /* ===== BUTTONS ===== */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-sm);
        padding: 14px 28px;
        font-size: 16px;
        font-weight: 500;
        text-decoration: none;
        border: 2px solid transparent;
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: var(--transition-smooth);
        white-space: nowrap;
        line-height: 1;
        letter-spacing: 0.03em;
    }
    
    .btn--primary {
        background-image: linear-gradient(to right, var(--gradient-green-start) 0%, var(--gradient-green-end) 51%, var(--gradient-green-start) 100%);
        background-size: 200% auto;
        color: var(--color-black-brand); /* <-- Исправила на существующую переменную */
        border: none; /* <-- Убираем рамку, градиент смотрится лучше без нее */
        transition: background-position 0.4s ease;
    }
    
    .btn--primary:hover {
        background-position: right center; /* <-- Магия для анимации при наведении */
        border-color: var(--color-green-secondary);
        transform: translateY(-3px);
        box-shadow:var(--shadow-green);
        color: var(--color-white); /* <-- Сделаем текст белым при наведении для контраста */
    }
    
    .btn--outline {
        background: transparent;
        color: var(--color-white);
        border-color: var(--color-blue-slate); /* Используем фирменный сланцевый */
    }
    
    .btn--outline:hover {
        background: var(--color-white);
        color: var(--color-black-brand);
        border-color: var(--color-white);
    }
    
    .btn--lg {
        padding: 18px 36px;
        font-size: 18px;
    }
    
    /* ===== HEADER (ИСПРАВЛЕНО) ===== */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        /* СТАЛО */
background: linear-gradient(to left, rgba(18, 18, 18, 0.85), rgb(80, 85, 80, 0.60));
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--color-black-tertiary);
        z-index: 1000;
        transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .header.scrolled {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    
    
    .nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--spacing-md) 0;
    }
    
    .nav__logo {
        display: flex;       
        align-items: center; 
        gap: 8px; /* Уменьшен отступ */
    }
    
    .nav__logo-img {
        height: 60px; /* Увеличен размер */
        width: auto;  
        display: block; 
    }

    .nav__logo-text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        min-width: 0;
    }
    
    .nav__logo-text h1,
    .nav__logo-text .nav__logo-title {
        font-size: 1.5rem;
        margin: 0;
        font-weight: 800;
        background: linear-gradient(145deg, var(--color-white), var(--color-green-light));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: 1;
        white-space: nowrap;
    }
    
    .nav__tagline {
        font-size: 0.62rem;
        font-weight: 500;
        background: linear-gradient(145deg, var(--color-white), var(--color-green-light));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        display: block;
        margin-top: 0;
        line-height: 1.1;
        white-space: nowrap;
    }
    
    .nav__menu {
        display: flex;
        list-style: none;
        gap: var(--spacing-xl);
    }
    
    .nav__link {
        color: var(--color-grey-light);
        font-weight: 500;
        padding: var(--spacing-sm) 0;
        position: relative;
        transition: var(--transition-fast);
    }
    
    .nav__link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--color-green-primary);
        transition: var(--transition-fast);
    }
    
    .nav__link:hover, .nav__link.active {
        color: var(--color-white);
    }
    
    .nav__link:hover::after, .nav__link.active::after {
        width: 100%;
    }

    /* Спец. стиль для ссылки "Анализ ГПЗУ с ИИ" в шапке */
    .nav__link--ai {
        color: var(--color-white) !important;
        font-weight: 600;
        border-bottom: 2px solid var(--color-green-primary); /* Постоянное подчеркивание */
        padding-bottom: 2px;
    }
    
    .nav__link--ai::after {
        display: none; /* Убираем стандартную анимацию подчеркивания, так как у нас свое постоянное */
    }
    
    .nav__link--ai:hover {
        color: var(--color-green-primary) !important;
        border-color: var(--color-white);
    }
    
    .nav__toggle {
        display: none;
    }
    
    /* ===== HERO SECTION (ИСПРАВЛЕНО) ===== */
    .hero {
        min-height: 100vh; 
        display: flex;
        align-items: flex-start;
        position: relative;
        overflow: hidden;
        padding-top: 120px; /* Добавлен отступ сверху */
    }
    .hero__layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: var(--spacing-xl);
        width: 100%;
        position: relative;
    }
    .hero__layout::before {
        content: '';
        position: absolute;
        top: 15%; 
        bottom: 15%; 
        left: 50%;
        transform: translateX(-50%);
        width: 5px; 
        background: linear-gradient(to bottom, 
            transparent, 
            rgba(79, 219, 38, 0.4) 50%, 
            transparent
        );
        opacity: 0.5;
    }
    .hero__content {
        position: relative;
        z-index: 2;
        text-align: left;
    }
    
    .hero__title {
        font-weight: 800; 
        /* Градиент из брендбука: слева направо */
        background: linear-gradient(to right, var(--gradient-green-start), var(--gradient-green-end));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: -0.03em;
        font-size: clamp(2rem, 5vw, 3.2rem); 
    }
    .hero__subtitle {
        font-size: 1.15rem; 
        color: var(--color-white);
        margin-bottom: var(--spacing-md);
        font-weight: 500;
        letter-spacing: 0.5px;
    }
    .hero__tagline {
        font-size: 0.95rem; 
        color: var(--color-grey-light);
        margin-bottom: 6rem;
        font-style: italic;
    }
    
    /* НОВАЯ СЕТКА ДЛЯ СТАТИСТИКИ */
    .hero__stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
        
        /* МАГИЯ: Занимает всё доступное место по вертикали, центрируя себя */
        margin: auto 0; 
    }
    
    .hero__stat {
        display: flex;
        flex-direction: column; 
        align-items: center;
        text-align: center;
        gap: var(--spacing-sm);
    }
    .hero__stat-number {
        font-size: 2rem; 
        font-weight: 700;
        color: var(--color-green-primary);
        line-height: 1;
        white-space: nowrap; 
    }
    .hero__stat-label {
        line-height: 1.3; 
        font-size: 0.75rem; 
        color: var(--color-grey-medium);
    }
   /* ЗАМЕНИТЬ НА ЭТОТ БЛОК */
.hero__buttons {
    display: flex;
    gap: var(--spacing-lg);
    /* Убираем justify-content, так как шириной будут управлять сами кнопки */
}



/* --- ФИНАЛЬНЫЙ БЛОК ДЛЯ ЛЕВОЙ КОЛОНКИ HERO --- */

/* 1. Отступ ПОСЛЕ верхнего текста */
.hero__tagline {
    font-size: 0.95rem; 
    color: var(--color-grey-light);
    margin-bottom: 4rem; /* <-- РАССТОЯНИЕ МЕЖДУ ТЕКСТОМ И СТАТИСТИКОЙ */
    font-style: italic;
}

/* 2. Блок статистики */
.hero__stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

/* 3. Блок кнопок и отступ над ним */
.hero__buttons {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: 2rem;
    margin-bottom: 6rem;
}

/* 4. Растягивание самих кнопок */
.hero__buttons .btn {
    flex-grow: 1;
    text-align: center;
}

/* --- КОНЕЦ БЛОКА --- */

.hero__buttons .btn {
    flex-grow: 1;
    text-align: center;
}
  
.hero__price-block {
    position: absolute; /* Самое главное: позволяет размещать блок поверх других */
    bottom: 11%; /* Прижимаем к низу картинки */
    right: 3%;  /* Сдвигаем на половину ширины родителя */
    z-index: 5; /* Располагаем над картинкой */
    
    /* Стили для красивой плашки */
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(18, 18, 18, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .hero__price-block {
        bottom: 12%;
    }
}
    
    .hero__canvas-container {
        position: relative;
        z-index: 1;
        width: 100%;
        height: 80vh;
        overflow: hidden;
    }
    
    .hero__scroll-indicator {
        position: absolute;
        bottom: var(--spacing-xl);
        left: 50%;
        transform: translateX(-50%);
        color: var(--color-grey-medium);
        font-size: 0.875rem;
        z-index: 3;
    }
    .scroll-arrow {
        width: 24px;
        height: 24px;
        border: 2px solid var(--color-green-primary);
        border-top: none;
        border-left: none;
        transform: rotate(45deg);
        margin: var(--spacing-sm) auto 0;
        animation: bounce 2s infinite;
    }
    
    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
        40% { transform: translateY(-10px) rotate(45deg); }
        60% { transform: translateY(-5px) rotate(45deg); }
    }
    
    .hero__canvas-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    /* ===== ADVANTAGES (Redesigned) SECTION (ИСПРАВЛЕНО) ===== */
    #about {
        background: var(--color-blue-slate); /* Используем фирменный сланцевый */
        position: relative;
        margin-top: -8vh;
        padding-top: 12vh;
        clip-path: polygon(0 8vh, 50% 0, 100% 8vh, 100% 100%, 0 100%);
    }
    
    .advantages-list {
        display: flex;
        flex-direction: column;
        gap: 5rem; 
        max-width: 900px; 
        margin: 0 auto; 
    }
    
    .advantage-row {
        display: grid;
        grid-template-columns: 1fr 2fr; 
        align-items: center;
        gap: 3rem;
        padding: var(--spacing-md);
        border-radius: var(--radius-lg);
        transition: var(--transition-fast);
    }
    
    .advantage-row:hover {
        transform: scale(1.02);
        background-color: rgba(79, 219, 38, 0.1); /* Зеленоватая пелена */
    }
    
    .advantage-row:nth-child(even) {
        grid-template-columns: 2fr 1fr; 
    }
    
    .advantage-row:nth-child(even) .advantage-row__icon-side {
        grid-column: 2;
        grid-row: 1;
    }
    .advantage-row:nth-child(even) .advantage-row__text-side {
        grid-column: 1;
        grid-row: 1;
        text-align: right; 
    }
    
    .advantage-row__icon-side {
        font-size: 5rem; 
        color: var(--color-green-primary);
        text-align: center;
        line-height: 1;
        transition: transform 0.3s ease;
    }
    
    .advantage-row:hover .advantage-row__icon-side {
        transform: scale(1.1); 
    }
    
    .advantage-row__text-side h4 {
        font-size: 2rem;
        margin-bottom: 1rem;
        color: var(--color-white);
    }
    
    .advantage-row__text-side p {
        font-size: 1.1rem;
        color: var(--color-grey-light);
        margin: 0;
        line-height: 1.6;
    }
    
    /* ===== SERVICES (New List Design) SECTION ===== */
    .services { 
        background: var(--color-black-primary); 
    }
    
    .service-item {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: var(--spacing-xl);
        align-items: center;
        padding: var(--spacing-xl) 0;
        border-bottom: none;
        transition: background-color 0.3s ease;
        position: relative;
    }
    
    .service-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, var(--color-green-primary) 0%, rgba(42, 42, 42, 0) 100%);
        opacity: 0.7;
    }
    
    .service-item:last-child::after {
        display: none;
    }
    
    .service-item:hover {
        background-color: rgba(79, 219, 38, 0.05);
    }
    
    .service-item__number {
        font-size: 3rem;
        font-weight: 900;
        line-height: 1;
        color: transparent;
        -webkit-text-stroke: 1.5px var(--color-green-primary);
        opacity: 0.5;
    }
    
    .service-item__title {
        font-size: 1.5rem; 
        color: var(--color-white);
        margin-bottom: var(--spacing-sm);
    }
    
    .service-item__description {
        color: var(--color-grey-light);
        margin: 0;
        line-height: 1.5;
    }
    
    /* ===== FAQ SECTION (ИСПРАВЛЕНО) ===== */
    .faq {
        background: var(--color-blue-slate); /* Используем фирменный сланцевый */
    }
    .faq__list {
        max-width: 800px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .faq__item {
        border-radius: var(--radius-lg);
        overflow: hidden;
        position: relative;
        z-index: 1;
        padding: 1px;
    }
    
   /* style.css (ИСПРАВЛЕННЫЙ ВАРИАНТ) */
/* style.css (ИСПРАВЛЕННЫЙ ВАРИАНТ) */
.faq__item::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    /* ИЗМЕНЯЕМ ГРАДИЕНТ ДЛЯ ЭФФЕКТА ЗАТУХАНИЯ */
     background: linear-gradient(to right, var(--gradient-green-start), var(--gradient-green-end));
    z-index: -2;
    border-radius: inherit;
    transition: background var(--transition-fast), opacity var(--transition-fast); 
    opacity: 1; 
}
    
    .faq__item.active::before {
        opacity: 1;
    }
   
.faq__item:hover::before {
    opacity: 0;
}
    .faq__item-content {
         background: transparent;
        border-radius: var(--radius-lg);
        z-index: -1;
    }
    
    .faq__question {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--spacing-lg);
        cursor: pointer;
        font-size: 1.125rem;
        font-weight: 500;
        color: var(--color-white);
    }
    .faq__question i {
        transition: transform 0.3s ease;
    }
    .faq__item.active .faq__question i {
        transform: rotate(180deg);
    }
    .faq__answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
    }
    .faq__answer p {
        padding: 0 var(--spacing-lg) var(--spacing-lg);
        margin: 0;
        color: var(--color-white);
        line-height: 1.9;
    }
    .faq__item.active .faq__answer {
        max-height: 300px;
    }
    
    /* ===== CONTACT SECTION ===== */
    #contact { background: var(--color-black-primary); }
    
    .contact__content-wrapper {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: var(--spacing-3xl);
        align-items: stretch;
    }
    
    .contact__info-block {
        background: var(--color-black-tertiary);
        color: var(--color-white);
        padding: var(--spacing-xl);
        border-radius: var(--radius-xl);
        display: flex;
        flex-direction: column;
        /* ДОБАВЛЕНО: Светло-зеленая полупрозрачная рамка */
        border: 2px solid #00b11c;
        transition: all 0.3s ease;
    }
    
    /* ДОБАВЛЕНО: Эффект свечения при наведении мыши */
    .contact__info-block:hover {
        border-color: #00b11c;
        box-shadow: 0 0 20px rgba(169, 234, 28, 0.15);
    }
    
    .contact__info-block h3 {
        font-size: 2rem;
        margin-bottom: var(--spacing-sm);
        background: linear-gradient(to right, var(--gradient-green-start), var(--gradient-green-end));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        display: inline-block;
    }
    
    .contact__info-block p {
        color: var(--color-grey-light);
        margin-bottom: var(--spacing-xl);
    }
    
    .contact__details {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-xl);
    }
    
    .contact__item {
        display: flex;
        align-items: center;
        gap: var(--spacing-md);
    }
    .contact__item i {
        font-size: 1.25rem;
        color: var(--color-green-primary);
        width: 24px;
        text-align: center;
    }
    .contact__item a, .contact__item span {
        color: var(--color-grey-light);
        font-weight: 500;
        font-size: 1rem;
    }
    .contact__item a:hover {
        color: var(--color-white);
        text-decoration: none;
    }
    
    .contact__form-block {
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* ДОБАВЛЕНО: Стили, чтобы блок выглядел так же, как левый */
        background: var(--color-black-tertiary);
        padding: var(--spacing-xl);
        border-radius: var(--radius-xl);
        border: 2px solid #00b11c;
        transition: all 0.3s ease;
    }
    
    /* ДОБАВЛЕНО: Такой же эффект свечения при наведении */
    .contact__form-block:hover {
        border-color: #00b11c;
        box-shadow: 0 0 20px rgba(169, 234, 28, 0.15);
    }
    
    /* ===== FORMS ===== */
    .contact__form {
        max-width: 500px;
        width: 100%;
    }
    
    .form-group { 
        margin-bottom: 4px;
    }
    
    #submit-btn {
        margin-top: var(--spacing-xl);
    }
    
    .form-label {
        display: block;
        margin-bottom: var(--spacing-xs); 
        color: var(--color-white);
        font-weight: 500;
    }
    
    .form-control {
        width: 100%;
        padding: 12px;
        background: rgba(255, 255, 255, 0.05); /* <-- Слегка осветляем фон */
         border: 1px solid var(--color-blue-slate);
        border-radius: var(--radius-md);
        color: var(--color-white);
        font-size: 1rem;
        transition: var(--transition-fast);
    }
    
    .form-control:focus {
        outline: none;
        border-color: var(--color-green-primary);
        box-shadow: 0 0 0 3px rgba(79, 219, 38, 0.2); 
    }
    
    textarea.form-control {
        min-height: 80px; 
        resize: vertical;
    }
    
    .form-error {
        display: block;
        color: var(--color-error);
        font-size: 0.875rem;
        margin-top: var(--spacing-xs);
        min-height: 1em;
    }
    
    .form-group--checkbox {
        display: flex;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .checkbox-label {
        display: flex;
        align-items: flex-start;
        gap: var(--spacing-sm);
        cursor: pointer;
        font-size: 0.875rem;
        color: var(--color-grey-light);
    }
    
    .checkbox-label input[type="checkbox"] { display: none; }
    
    .checkbox-custom {
        width: 20px;
        height: 20px;
        border: 2px solid var(--color-green-primary);
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-top: 2px;
        transition: background-color 0.2s;
    }
    .checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
        background-color: var(--color-green-primary);
    }
    .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
        content: '✓';
        color: var(--color-black-primary);
        font-weight: bold;
    }
    .checkbox-label span a {
        color: var(--color-green-light);
    }
    .checkbox-label span a:hover {
        text-decoration: underline;
    }
    
    /* ===== FOOTER ===== */
    .footer {
        background: var(--color-blue-slate); /* Используем фирменный сланцевый */
        border-top: 1px solid var(--color-grey-dark);
        padding: var(--spacing-xl) 0;
    }
    
    .footer__content {
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        gap: var(--spacing-2xl);
        padding-bottom: var(--spacing-xl);
        border-bottom: 1px solid var(--color-grey-dark);
    }
    
    .footer__brand .footer__logo h3 {
        color: var(--color-white);
        margin-bottom: var(--spacing-xs);
        font-size: 1.25rem;
    }
    
    .footer__nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .footer__nav-section h4 {
        color: var(--color-white);
        margin-bottom: var(--spacing-md);
        font-size: 1rem;
    }
    
    .footer__links {
        list-style: none;
        padding-left: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .footer__links a, .footer__links span, .footer__description {
        color: var(--color-grey-light);
        font-size: 0.8rem;
    }
    .footer__links a:hover {
        color: var(--color-white);
    }
    
    
    .footer__bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: var(--spacing-xl);
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }
    
    .footer__legal p,
    .footer__legal-links a {
        font-size: 0.75rem; 
        color: var(--color-grey-medium);
        margin: 0;
    }
    .footer__info {
        font-size: 0.75rem; /* Уменьшаем размер шрифта (стандартный 0.8rem) */
        color: var(--color-grey-medium); /* Делаем цвет более тусклым */
        margin-top: var(--spacing-lg); /* Добавляем отступ сверху для отделения */
    }
    
    /* ===== ANIMATIONS ===== */
    .fade-in {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    .fade-in.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* ===== RESPONSIVE DESIGN ===== */
    @media (max-width: 1024px) {
        .hero__layout {
            grid-template-columns: 1fr;
        }
        
        .hero__layout::before {
            display: none;
        }
        .hero__canvas-container {
            height: auto;
            grid-row: 1; 
        }
        .hero__content {
            text-align: center;
        }
        
        
        .footer__content {
            grid-template-columns: 1fr;
        }
        .contact__content-wrapper {
            grid-template-columns: 1fr;
        }
        .contact__form {
            margin: 0 auto;
        }
    }
    
    @media (max-width: 768px) {
        :root { --container-padding: 1rem; } 
        
        .nav__logo-text { display: none; }
        .nav__logo-img { font-size: 28px; }
        
        .nav__menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--color-black-primary);
            flex-direction: column;
            padding: var(--spacing-lg);
            border-top: 1px solid var(--color-black-tertiary);
        }
        
        .nav__menu.active { display: flex; }
        
        .nav__toggle {
            display: flex;
            flex-direction: column;
            gap: 4px;
            cursor: pointer;
            padding: var(--spacing-sm);
        }
        .nav__toggle span {
            width: 24px;
            height: 2px;
            background: var(--color-white);
            transition: var(--transition-fast);
        }
    
        .hero__stats-grid { 
            grid-template-columns: 1fr; /* Статистика в одну колонку на мобильных */
            gap: var(--spacing-xl); 
        }
    
        .hero__buttons { 
            flex-direction: column; 
            align-items: center; 
            margin-top: var(--spacing-xl);
            margin-bottom: 90px;
        }
        
        
        /* ЗАМЕНИТЬ НА ЭТОТ БЛОК */
    .advantage-row, .advantage-row:nth-child(even) {
        text-align: center;
        /* Используем Flexbox для управления порядком на мобильных */
        display: flex;
        flex-direction: column;
    }
    
    /* Сбрасываем grid-свойства, которые могли остаться от десктопной версии */
    .advantage-row:nth-child(even) .advantage-row__text-side,
    .advantage-row:nth-child(even) .advantage-row__icon-side {
        grid-column: auto;
    }
    
    /* Задаем порядок элементов для ВСЕХ строк с помощью flex order */
    .advantage-row__icon-side {
        order: 1; /* Иконка всегда первая */
    }
    
    .advantage-row__text-side {
        order: 2; /* Текст всегда второй */
    }
        
        .advantage-row:nth-child(even) .advantage-row__text-side {
            text-align: center;
        }
    
        .footer__nav { grid-template-columns: 1fr; }
        
        .footer__bottom { flex-direction: column; text-align: center; }
    }
    /* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-black-tertiary);
    border-top: 1px solid var(--color-grey-dark);
    padding: var(--spacing-lg);
    z-index: 2000;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.cookie-banner.hidden {
    transform: translateY(150%);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-grey-light);
    flex-grow: 1;
}

.cookie-banner p a {
    color: var(--color-green-primary);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: var(--spacing-md);
    flex-shrink: 0;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-banner__actions {
        width: 100%;
        justify-content: center;
    }
    .cookie-banner__actions .btn {
        flex-grow: 1;
    }
}



.header .nav a.nav__logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Применяем градиент к тексту с максимальным приоритетом */
.header .nav a.nav__logo .nav__logo-text h1,
.header .nav a.nav__logo .nav__logo-text .nav__tagline {
    background: linear-gradient(to right, var(--gradient-green-start), var(--gradient-green-end));
    -webkit-background-clip: text;
    background-clip: text;
    
    color: transparent;
    -webkit-text-fill-color: transparent;
}
/* Стили для дополнительного текста в главном заголовке */
.hero__title-addendum {
  /* Делаем шрифт на 6% меньше */
 font-size: 0.70em;
  /* Заставляем этот блок перенестись на новую строку */
  display: block;
  /* Убираем лишний отступ сверху, который может появиться */
  margin-top: 0.1em;
}

/* Стили для уведомления от Мии (Dark & Brand Style) */
.ai-toast {
    position: fixed;
    /* Поднимаем выше, чтобы не перекрывать Cookie Banner */
    bottom: 120px; 
    left: 30px; /* Перенесли влево по просьбе */
    z-index: 1999; /* Чуть меньше чем у cookie-banner (2000), чтобы не лез вперед, если что */
    font-family: 'Inter', sans-serif;
    transform: translateY(0);
    opacity: 1;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.ai-toast.hidden {
    transform: translateY(50px);
    opacity: 0;
    pointer-events: none;
}

.ai-toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
    /* ТЕМНАЯ ТЕМА: Фирменный черный + прозрачность */
    background: rgba(28, 28, 28, 0.95); 
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 12px;
    /* Фирменная зеленая обводка */
    border: 1px solid var(--color-green-primary); 
    /* Зеленое свечение */
    box-shadow: 0 10px 30px rgba(56, 181, 74, 0.15); 
    max-width: 400px;
}

.ai-icon-box {
    /* Градиент из брендбука */
    background: linear-gradient(135deg, var(--gradient-green-start), var(--gradient-green-end));
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-white); /* Белый цвет иконки */
    font-size: 18px; /* Размер иконки */
}

.ai-text {
    display: flex;
    flex-direction: column;
}

.ai-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--color-white); /* Белый текст */
}

.ai-desc {
    font-size: 12px;
    color: var(--color-grey-light); /* Серый текст описания */
    margin-top: 2px;
}

.ai-btn {
    /* Кнопка в стиле Outline, чтобы не перегружать */
    background: transparent;
    color: var(--color-green-primary);
    border: 1px solid var(--color-green-primary);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.ai-btn:hover {
    background: var(--color-green-primary);
    color: var(--color-white);
}

.ai-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--color-grey-medium);
    cursor: pointer;
    margin-left: 5px;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.ai-close:hover {
    color: var(--color-white);
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
    .ai-toast {
        bottom: 100px; /* Оставляем место под Cookie баннер */
        right: 15px;
        left: 15px;
        width: auto;
    }
    .ai-toast-content {
        padding: 12px 15px; /* Чуть компактнее */
        justify-content: space-between;
    }
    .ai-icon-box {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    .ai-text {
        flex: 1; /* Текст занимает все свободное место */
        margin: 0 10px;
    }
    .ai-desc {
        display: block; /* ПОКАЗЫВАЕМ описание на мобильных */
        font-size: 11px;
        line-height: 1.2;
    }
    .ai-title {
        font-size: 13px;
        margin-bottom: 2px;
    }
    .ai-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* ===== VISUALIZATION SECTION OPTIMIZATION ===== */
.canvas-wrapper {
    width: 100%;
    height: 60vh; /* Reduced height for compactness */
    min-height: 400px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: var(--radius-lg);
    background: #0f0f0f;
    margin-bottom: 15px;
}

.disclaimer {
    background: rgba(255, 193, 7, 0.15); /* Yellow tint */
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #ffeb3b;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    margin: 10px 0 20px 0;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* --- B2B MAIN PAGE REDESIGN --- */
.b2b-main-page .hero {
    display: flex;
    align-items: center;
    /* Улучшенная высота для мобильных с резервным значением */
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 140px;
    padding-bottom: 80px;
    background: radial-gradient(circle at 70% 50%, rgba(56, 181, 74, 0.05), transparent 60%);
}

.b2b-main-page .hero__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.b2b-main-page .hero__trust-markers {
    margin-bottom: var(--spacing-lg);
}

.b2b-main-page .trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--color-grey-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

.b2b-main-page .trust-badge i {
    color: var(--color-green-primary);
}

.b2b-main-page .hero__title {
    font-size: clamp(1.6rem, 3.2vw, 2.7rem); /* Сильно ограничили потолок шрифта для гигантских слов */
    line-height: 1.3;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em; 
    max-width: 95%; /* Воздушный зазор до разделительной линии */
    color: var(--color-white); /* Принудительный белый для солидности */
    overflow-wrap: break-word; /* Жестко переносить слишком длинные слова */
    word-break: break-word;    
    hyphens: auto;             /* Разрешает мягкий перенос по слогам там где это возможно */
}

/* Акцентная приписка "ОТ 500 М²" */
.b2b-main-page .hero__title .text-accent {
    display: block;
    color: var(--color-green-primary);
    font-size: 0.85em;
    margin-top: 0.1em;
}

.b2b-main-page .hero__title-addendum {
    display: block;
    color: var(--color-green-primary);
    font-size: 0.85em;
    margin-top: 0.1em;
}

.b2b-main-page .hero__subtitle {
    font-size: 1.15rem; /* Слегка уменьшен для баланса со скорректированным H1 */
    color: var(--color-grey-light);
    margin-bottom: var(--spacing-2xl);
    max-width: 90%;
    line-height: 1.5;
}

.b2b-main-page .hero__buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.b2b-main-page .hero__visual {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.b2b-main-page .hero__canvas-container {
    position: absolute;
    top: 50%; 
    left: 0; 
    transform: translateY(-50%); /* Центрирование по вертикали */
    width: calc(50vw - 2rem); /* Математически точная дистанция: от центра колонки до правого края монитора */
    height: auto; /* Позволяем контейнеру принять естественные пропорции видео */
    z-index: 1;
    overflow: visible; /* Отключаем жесткую обрезку (crop) контейнером */
}

.b2b-main-page .hero__video-bg {
    position: relative; /* Встает в естественный поток контейнера */
    width: 100%; 
    height: auto; /* Сохраняет истинные пропорции видео без зума и обрезки */
    display: block;
    opacity: 0.45; /* Слегка повышена яркость */
    z-index: 1;
    pointer-events: none; 
    
    /* Изящный альфа-градиент слева, чтобы граница не "рубила" глаз */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%);
}

/* B2B Form UI Adjustments */
.b2b-main-page .form-row {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}
.b2b-main-page .form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}
.b2b-main-page select.form-control {
    appearance: none;
    background-color: transparent;
    cursor: pointer;
}

/* Base Responsive rules for Hero cards */
@media (max-width: 1024px) {
    /* Hero — позиционирующий контейнер для фона */
    .b2b-main-page .hero {
        position: relative;
        overflow: hidden;
        min-height: 100vh;
        min-height: 100dvh;
    }
    .b2b-main-page .hero__layout {
        grid-template-columns: 1fr;
        gap: 0;
        position: relative;
        z-index: 2;
    }
    /* Видео — абсолютный фон за текстом */
    .b2b-main-page .hero__visual {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        margin-top: 0 !important;
        z-index: 0;
        pointer-events: none;
    }
    .b2b-main-page .hero__canvas-container {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        overflow: hidden;
        transform: none;
    }
    .b2b-main-page .hero__video-bg {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        opacity: 0.45;
        -webkit-mask-image: none;
        mask-image: none;
    }
    /* Тёмный оверлей для читаемости текста */
    .b2b-main-page .hero__visual::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.55) 0%,
            rgba(0,0,0,0.25) 50%,
            rgba(0,0,0,0.65) 100%
        );
        z-index: 1;
    }
    /* Контент — поверх видео */
    .b2b-main-page .hero__content {
        position: relative;
        z-index: 2;
    }
}
@media (max-width: 768px) {
    .b2b-main-page .hero__buttons { flex-direction: column; width: 100%; }
    .b2b-main-page .hero__buttons .btn { width: 100%; }
    .b2b-main-page .form-row { flex-direction: column; gap: 0; margin-bottom: 0;}
    .b2b-main-page .form-row .form-group { margin-bottom: var(--spacing-md); }
}

/* --- B2B NEW BLOCKS STYLES --- */
.b2b-main-page .b2b-objects { background: var(--color-black-tertiary); }
.b2b-main-page .b2b-objects__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-xl); }
.b2b-main-page .b2b-object-card {
    background: var(--color-black-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-smooth);
}
.b2b-main-page .b2b-object-card:hover { border-color: rgba(56, 181, 74, 0.3); transform: translateY(-5px); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.b2b-main-page .b2b-object-card__image {
    aspect-ratio: 4 / 3; min-height: 240px; background: linear-gradient(135deg, var(--color-black-tertiary), #111);
    background-size: cover; background-position: center; border-bottom: 2px solid var(--color-green-primary);
}
.b2b-main-page .b2b-object-card__content { padding: var(--spacing-xl); }
.b2b-main-page .b2b-object-card h3 { font-size: 1.8rem; margin-bottom: var(--spacing-md); color: var(--color-white); }
.b2b-main-page .b2b-object-card__list { list-style: none; margin-bottom: var(--spacing-xl); }
.b2b-main-page .b2b-object-card__list li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--color-grey-light); }
.b2b-main-page .b2b-object-card__list i { color: var(--color-green-primary); }
.b2b-main-page .b2b-object-card__footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1rem; }
.b2b-main-page .badge {
    background: rgba(56, 181, 74, 0.1); color: var(--color-green-primary);
    padding: 6px 12px; border-radius: 4px; font-weight: 700; font-size: 0.9rem;
}

.b2b-main-page .b2b-trust { background: var(--color-black-primary); }
.b2b-main-page .b2b-trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-xl); }
.b2b-main-page .b2b-trust-item {
    padding: var(--spacing-xl); background: var(--color-black-tertiary);
    border-top: 2px solid var(--color-green-primary); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.b2b-main-page .b2b-trust-item__number {
    font-size: 3rem; font-weight: 900; color: rgba(255,255,255,0.05); margin-bottom: -20px; font-family: sans-serif;
    transform: translateY(-10px);
}
.b2b-main-page .b2b-trust-item h3 { font-size: 1.5rem; margin-bottom: var(--spacing-sm); position: relative; z-index: 1; color: var(--color-white);}
.b2b-main-page .b2b-trust-item p { color: var(--color-grey-light); font-size: 0.95rem; }

.b2b-main-page .b2b-pipeline { background: var(--color-black-tertiary); overflow: hidden; }
.b2b-main-page .b2b-pipeline__grid { display: flex; justify-content: space-between; gap: var(--spacing-md); position: relative; }
.b2b-main-page .b2b-pipeline__grid::before {
    content: ''; position: absolute; top: 40px; left: 5%; right: 5%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(56, 181, 74, 0.5), transparent); z-index: 0;
}
.b2b-main-page .b2b-pipeline-step { flex: 1; min-width: 150px; text-align: center; position: relative; z-index: 1; }
.b2b-main-page .b2b-pipeline-step i {
    width: 80px; height: 80px; background: var(--color-black-primary); border: 2px solid var(--color-green-primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--color-white); margin: 0 auto var(--spacing-md); box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
}
.b2b-main-page .b2b-pipeline-step:hover i { background: var(--color-green-primary); color: var(--color-black-brand); box-shadow: 0 10px 20px rgba(56, 181, 74, 0.3); transform: scale(1.1); }
.b2b-main-page .b2b-pipeline-step h4 { font-size: 1.1rem; color: var(--color-white); }

.b2b-main-page .b2b-timeline { background: var(--color-black-primary); }
.b2b-main-page .b2b-timeline__wrapper { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-lg); max-width: 1000px; margin: 0 auto; }
.b2b-main-page .b2b-timeline-item { text-align: left; }
.b2b-main-page .b2b-timeline-item__dot {
    width: 40px; height: 40px; background: rgba(56, 181, 74, 0.1); color: var(--color-white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.2rem; margin-bottom: var(--spacing-md); border: 2px solid var(--color-green-primary);
}
.b2b-main-page .b2b-timeline-item h4 { font-size: 1.2rem; margin-bottom: 8px; color: var(--color-white); }
.b2b-main-page .b2b-timeline-item p { font-size: 0.95rem; color: var(--color-grey-light); }

.b2b-main-page .b2b-projects { background: var(--color-black-tertiary); }
.b2b-main-page .b2b-projects__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-xl); max-width: 900px; margin: 0 auto;}
.b2b-main-page .b2b-project-card {
    background: var(--color-black-primary); padding: var(--spacing-xl); border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; justify-content: space-between;
}
.b2b-main-page .b2b-project-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--spacing-lg); }
.b2b-main-page .b2b-project-card h3 { margin: 0; font-size: 1.5rem; color: var(--color-white);}
.b2b-main-page .b2b-project-card p { color: var(--color-grey-light); margin-bottom: var(--spacing-lg); line-height: 1.6;}

/* --- Inline CTA strip --- */
.b2b-main-page .b2b-inline-cta {
    background: linear-gradient(135deg, rgba(0, 177, 28, 0.08), rgba(169, 234, 28, 0.06));
    border-top: 1px solid rgba(56, 181, 74, 0.2);
    border-bottom: 1px solid rgba(56, 181, 74, 0.2);
    padding: var(--spacing-xl) 0;
}
.b2b-main-page .b2b-inline-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
}
.b2b-main-page .b2b-inline-cta__text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
}
@media (max-width: 768px) {
    .b2b-main-page .b2b-inline-cta__inner {
        flex-direction: column;
        text-align: center;
    }
    .b2b-main-page .b2b-inline-cta__text {
        font-size: 1.1rem;
    }
}
@media (max-width: 430px) {
    .b2b-main-page .b2b-inline-cta .btn {
        width: 100%;
    }
}



/* --- Premium Scroll Indicator --- */
.b2b-main-page .hero__scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--color-white);
    opacity: 0.9;
    transition: var(--transition-smooth, all 0.3s ease);
    z-index: 10;
}

.b2b-main-page .hero__scroll-indicator:hover {
    opacity: 1;
    cursor: pointer;
    transform: translateX(-50%) translateY(-5px);
}

.b2b-main-page .hero__scroll-indicator span {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-white);
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
    text-align: center;
}

.b2b-main-page .scroll-arrow {
    position: relative;
    width: 24px;
    height: 24px;
    border-right: 4px solid var(--color-green-primary);
    border-bottom: 4px solid var(--color-green-primary);
    transform: rotate(45deg);
    animation: b2bScrollBounce 2s infinite;
    filter: drop-shadow(0 0 12px rgba(56, 181, 74, 0.8)); /* Неоновое свечение */
}

/* Эффект двойной шеврон-стрелки */
.b2b-main-page .scroll-arrow::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    width: 24px;
    height: 24px;
    border-right: 4px solid rgba(56, 181, 74, 0.4);
    border-bottom: 4px solid rgba(56, 181, 74, 0.4);
}

@keyframes b2bScrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-12px) rotate(45deg); }
    60% { transform: translateY(-6px) rotate(45deg); }
}

/* --- B2B Portfolio Carousel --- */
.b2b-main-page .b2b-portfolio {
    background: var(--color-black-secondary);
    overflow: hidden;
}

.b2b-main-page .portfolio-carousel {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.b2b-main-page .portfolio-track {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.b2b-main-page .portfolio-track::-webkit-scrollbar {
    display: none;
}

.b2b-main-page .portfolio-card {
    flex: 0 0 calc(50% - (var(--spacing-lg) / 2));
    scroll-snap-align: start;
    background: var(--color-black-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth, all 0.3s ease);
    display: flex;
    flex-direction: column;
}

.b2b-main-page .portfolio-card:hover {
    border-color: rgba(56, 181, 74, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.b2b-main-page .portfolio-card__image {
    aspect-ratio: 4 / 3;
    min-height: 250px;
    background-size: cover;
    background-position: center;
    background-color: #222;
    position: relative;
}

.b2b-main-page .portfolio-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,15,15,1) 0%, rgba(15,15,15,0) 50%);
}

.b2b-main-page .portfolio-card__content {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.b2b-main-page .portfolio-card__title {
    font-size: 1.3rem;
    color: var(--color-white);
    margin-bottom: 8px;
}

.b2b-main-page .portfolio-card__client {
    font-size: 0.9rem;
    color: var(--color-grey-light);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.b2b-main-page .portfolio-card__client span {
    color: var(--color-green-primary);
    font-weight: 500;
}

.b2b-main-page .portfolio-card__specs {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.b2b-main-page .spec-item {
    font-size: 0.85rem;
    color: var(--color-grey-light);
    display: flex;
    align-items: center;
    gap: 6px;
}
.b2b-main-page .spec-item i {
    color: var(--color-green-primary);
}

.b2b-main-page .portfolio-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
}

.b2b-main-page .portfolio-btn {
    padding: 12px 24px;
    border-radius: 40px; /* B2B Pill Shape */
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth, all 0.3s ease);
}

.b2b-main-page .portfolio-btn.prev-btn {
    color: var(--color-grey-light);
}

.b2b-main-page .portfolio-btn.next-btn {
    background: var(--color-green-primary);
    color: var(--color-black-brand);
    border-color: var(--color-green-primary);
    box-shadow: 0 0 15px rgba(56, 181, 74, 0.4);
    animation: pulseNextPortfolio 2s infinite;
}

.b2b-main-page .portfolio-btn:hover {
    transform: translateY(-3px);
}

.b2b-main-page .portfolio-btn.prev-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
}

.b2b-main-page .portfolio-btn.next-btn:hover {
    box-shadow: 0 0 25px rgba(56, 181, 74, 0.8);
    background: var(--color-white);
}

@keyframes pulseNextPortfolio {
    0% { box-shadow: 0 0 0 0 rgba(56, 181, 74, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(56, 181, 74, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 181, 74, 0); }
}

.b2b-main-page .portfolio-swipe-hint {
    display: none; /* Скрыто на десктопах, где есть клики мышью */
}

/* --- B2B Premium FAQ Workflow --- */
.b2b-main-page .b2b-faq { background: var(--color-black-brand); position: relative; padding: var(--spacing-3xl) 0; }
.b2b-main-page .b2b-faq__layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--spacing-3xl); align-items: start; }
.b2b-main-page .b2b-faq__intro { position: sticky; top: 100px; padding-right: var(--spacing-lg); }

/* Отвязываем заголовок FAQ от огромного зеленого градиента для лучшей читаемости в сетке */
.b2b-main-page .b2b-faq__intro .section__title {
    background: none;
    -webkit-text-fill-color: var(--color-white);
    color: var(--color-white);
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.b2b-main-page .b2b-faq__intro .section__subtitle {
    max-width: 95%;
    margin-bottom: var(--spacing-xl);
    line-height: 1.5;
    font-size: 1rem;
}

.b2b-main-page .b2b-faq__contact-prompt { margin-top: var(--spacing-lg); padding-top: var(--spacing-xl); border-top: 1px solid rgba(255, 255, 255, 0.1); }
.b2b-main-page .b2b-faq__contact-prompt p { color: var(--color-grey-light); margin-bottom: var(--spacing-md); font-size: 0.95rem; }
.b2b-main-page .b2b-faq__list { display: flex; flex-direction: column; gap: 16px; }
.b2b-main-page .b2b-faq__item { background: var(--color-black-primary); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition-smooth, all 0.3s ease); }
.b2b-main-page .b2b-faq__item:hover { border-color: rgba(56, 181, 74, 0.3); background: rgba(25, 25, 25, 0.9); }
.b2b-main-page .b2b-faq__item.active { border-color: var(--color-green-primary); box-shadow: 0 5px 20px rgba(56, 181, 74, 0.1); background: var(--color-black-brand); }
.b2b-main-page .b2b-faq__question { padding: 24px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; }
.b2b-main-page .b2b-faq__question span { font-size: 1.15rem; font-weight: 500; color: var(--color-white); padding-right: 20px; line-height: 1.4; transition: var(--transition-smooth, color 0.3s ease); }
.b2b-main-page .b2b-faq__item.active .b2b-faq__question span, .b2b-main-page .b2b-faq__item:hover .b2b-faq__question span { color: var(--color-green-primary); }
.b2b-main-page .b2b-faq__toggle { width: 30px; height: 30px; position: relative; flex-shrink: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center; transition: var(--transition-smooth, all 0.3s ease); }
.b2b-main-page .b2b-faq__item.active .b2b-faq__toggle { background: var(--color-green-primary); transform: rotate(45deg); }
.b2b-main-page .b2b-faq__toggle::before, .b2b-main-page .b2b-faq__toggle::after { content: ''; position: absolute; background: var(--color-white); transition: var(--transition-smooth, all 0.3s ease); }
.b2b-main-page .b2b-faq__toggle::before { width: 12px; height: 2px; }
.b2b-main-page .b2b-faq__toggle::after { width: 2px; height: 12px; }
.b2b-main-page .b2b-faq__item.active .b2b-faq__toggle::before, .b2b-main-page .b2b-faq__item.active .b2b-faq__toggle::after { background: var(--color-black-brand); }
.b2b-main-page .b2b-faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.b2b-main-page .b2b-faq__answer-inner { padding: 0 24px 24px 24px; color: var(--color-grey-light); line-height: 1.6; font-size: 0.95rem; }

/* B2B Responsive Queries */
@media (max-width: 1024px) {
    .b2b-main-page .b2b-faq__layout { grid-template-columns: 1fr; gap: var(--spacing-xl); }
    .b2b-main-page .b2b-faq__intro { position: relative; top: 0; }
    .b2b-main-page .b2b-trust__grid { grid-template-columns: 1fr 1fr; }
    .b2b-main-page .b2b-timeline__wrapper { grid-template-columns: 1fr 1fr; }
    .b2b-main-page .b2b-pipeline__grid { flex-wrap: wrap; gap: var(--spacing-xl); }
    .b2b-main-page .b2b-pipeline__grid::before { display: none; }
}

@media (max-width: 768px) {
    .b2b-main-page .b2b-objects__grid { grid-template-columns: 1fr; }
    .b2b-main-page .b2b-trust__grid { grid-template-columns: 1fr; }
    .b2b-main-page .b2b-timeline__wrapper { grid-template-columns: 1fr; }
    .b2b-main-page .b2b-projects__grid { grid-template-columns: 1fr; }
    .b2b-main-page .b2b-pipeline-step { min-width: 45%; margin-bottom: var(--spacing-md); }
    .b2b-main-page .b2b-pipeline-step i { width: 60px; height: 60px; font-size: 1.4rem; }
    .b2b-main-page .portfolio-card { flex: 0 0 85%; }
    .b2b-main-page .portfolio-card__specs { flex-direction: column; gap: 10px; }
    
    /* Reveal Swipe Hint on Mobile */
    .b2b-main-page .portfolio-swipe-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: var(--color-green-primary);
        font-size: 0.9rem;
        margin-top: 1rem;
        margin-bottom: -0.5rem;
        animation: swipeHintPulse 2s infinite;
    }
    @keyframes swipeHintPulse {
        0%, 100% { transform: translateX(0); opacity: 0.7;}
        50% { transform: translateX(-10px); opacity: 1;}
    }
}

/* --- IPHONE 16 PRO & MOBILE (<430px) HERO ADAPTATION --- */
@media (max-width: 430px) {

    /* 1. Hero — якорь позиционирования + скрытие выхода видео за границы */
    .b2b-main-page .hero {
        position: relative;
        overflow: hidden;
        padding-top: calc(env(safe-area-inset-top, 20px) + 100px);
        padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 80px);
    }

    /* 2. Заголовок — правильный перенос заглавных слов */
    .b2b-main-page .hero__title {
        font-size: clamp(22px, 7vw, 30px) !important;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        max-width: 100%;
        text-align: center;
        margin-bottom: 1.2rem;
    }

    /* 3. Подзаголовок */
    .b2b-main-page .hero__subtitle {
        font-size: clamp(15px, 4.5vw, 17px);
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    /* 4. Бейдж доверия */
    .b2b-main-page .trust-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
        text-align: center;
        line-height: 1.3;
    }
    .b2b-main-page .hero__trust-markers {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    /* 5. Кнопки */
    .b2b-main-page .hero__buttons {
        gap: 16px;
    }
    .b2b-main-page .hero__buttons .btn {
        height: 58px;
        font-size: 16px;
        justify-content: center;
    }

    /* 6. Видео-блок — абсолютный фон за текстом */
    .b2b-main-page .hero__visual {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        margin-top: 0 !important;
        z-index: 0;
        pointer-events: none;
    }

    /* 7. Контейнер видео */
    .b2b-main-page .hero__canvas-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        border-radius: 0 !important;
        overflow: hidden !important;
        transform: none !important;
    }

    /* 8. Само видео — покрывает весь экран */
    .b2b-main-page .hero__video-bg {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center center;
        opacity: 0.40;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }

    /* 9. Тёмный оверлей для читаемости текста */
    .b2b-main-page .hero__visual::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.60) 0%,
            rgba(0,0,0,0.25) 50%,
            rgba(0,0,0,0.70) 100%
        );
        z-index: 1;
        pointer-events: none;
    }

    /* 10. Контент — поверх видео */
    .b2b-main-page .hero__content {
        position: relative;
        z-index: 2;
        width: 100%;
    }

    /* 11. Layout — флекс-колонка для центрирования контента */
    .b2b-main-page .hero__layout {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center;
        height: 100%;
        gap: 0;
    }

    /* 12. Индикатор прокрутки с учётом home indicator */
    .b2b-main-page .hero__scroll-indicator {
        bottom: calc(env(safe-area-inset-bottom, 20px) + 2rem);
        z-index: 3;
    }






    /* 15. FAQ layout — одна колонка */
    .b2b-main-page .b2b-faq__layout {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-xl);
    }
    .b2b-main-page .b2b-faq__intro {
        position: relative;
        top: 0;
    }
    .b2b-main-page .b2b-faq__question span {
        font-size: 1rem;
        padding-right: 12px;
    }

    /* 16. Форма — переводим form-row в колонку */
    .b2b-main-page .form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }
    .b2b-main-page .form-row .form-group {
        margin-bottom: var(--spacing-md);
    }

    /* 17. Секция контактов — одна колонка */
    .contact__content-wrapper {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-xl);
    }

    /* 18. Footer — одна колонка */
    .footer__content {
        grid-template-columns: 1fr !important;
    }
    .footer__nav {
        grid-template-columns: 1fr !important;
    }

    /* ===== MOBILE AUDIT FIXES ===== */

    /* FIX #1 — AI-toast: опускаем ниже кнопок Hero, не перекрываем CTA */
    .ai-toast {
        bottom: calc(env(safe-area-inset-bottom, 20px) + 100px) !important;
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
    }

    /* FIX #2 — Objects grid: 2 колонки → 1 на 430px */
    .b2b-main-page .b2b-objects__grid {
        grid-template-columns: 1fr !important;
    }
    .b2b-main-page .b2b-object-card__image {
        min-height: 180px !important;
    }

    /* FIX #3 — Pipeline: все шаги в 1 колонку */
    .b2b-main-page .b2b-pipeline__grid {
        flex-direction: column !important;
        align-items: stretch;
    }
    .b2b-main-page .b2b-pipeline-step {
        flex: 1 1 100% !important;
        min-width: 0 !important;
        text-align: center;
    }
    /* Убираем горизонтальную линию-соединитель */
    .b2b-main-page .b2b-pipeline__grid::before {
        display: none !important;
    }

    /* FIX #4 — Object card footer: кнопка на всю ширину */
    .b2b-main-page .b2b-object-card__footer {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: stretch !important;
    }
    .b2b-main-page .b2b-object-card__footer .btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* FIX #5 — Portfolio controls: кнопки крупнее и на всю ширину */
    .portfolio-controls {
        display: flex !important;
        gap: 12px !important;
    }
    .portfolio-btn {
        flex: 1 !important;
        min-height: 48px !important;
        justify-content: center !important;
    }

    /* FIX #6 — FAQ CTA кнопка на всю ширину */
    .b2b-main-page .b2b-faq__contact-prompt .btn {
        width: 100% !important;
        text-align: center !important;
    }

    /* FIX #7 — Trust grid: 3 колонки → 1 */
    .b2b-main-page .b2b-trust__grid {
        grid-template-columns: 1fr !important;
    }

    /* FIX #8 — Timeline: 4 колонки → 2 */
    .b2b-main-page .b2b-timeline__wrapper {
        grid-template-columns: 1fr 1fr !important;
        gap: var(--spacing-lg) !important;
    }

    /* FIX #9 — Checkbox: увеличиваем зону нажатия */
    .checkbox-custom {
        min-width: 24px !important;
        min-height: 24px !important;
        width: 24px !important;
        height: 24px !important;
    }
    .checkbox-label {
        font-size: 0.8rem !important;
        padding: 4px 0;
    }

    /* FIX #10 — Footer: уменьшаем gap */
    .footer__content {
        gap: var(--spacing-lg) !important;
    }
}




