/* ==========================================================================
   1. ГЛОБАЛЬНЫЕ СТИЛИ И ПЕРЕМЕННЫЕ
   ========================================================================== */

:root {
    --bg-color: #000000;
    --accent-color: #AFFC00;
    --text-primary: #EFEFEF;
    --text-secondary: rgba(239, 239, 239, 0.6);
    --card-border: rgba(239, 239, 239, 0.2);
    --card-border-hover: #EFEFEF;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    max-width: 100%; /* <-- ГЛАВНОЕ ПРАВИЛО: Запрещаем любому элементу быть шире родителя */
}

html {
    /* Устанавливаем 90% от настроек браузера пользователя. Более доступно, чем жесткое значение в px 
    /*font-size: 90%; */
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility; /* Улучшает читаемость текста */
    overflow-x: hidden;
    cursor: none; /* Скрываем системный курсор для кастомного */
}

/* 
 * ВАЖНО: Возвращаем стандартный курсор для интерактивных элементов,
 * чтобы пользователи понимали, куда можно нажимать.
 */
a, button, input, textarea, .accordion-button {
    cursor: pointer;
}

/* ==========================================================================
   2. УТИЛИТЫ И КОМПОНЕНТЫ
   ========================================================================== */

/* --- Контейнер --- */
.container {
    max-width: 1200px;
    width: 100%; /* <-- ДОБАВЬТЕ ЭТУ СТРОКУ */
    margin-inline: auto;
    padding-inline: 20px; /* Уменьшим боковые отступы для мобильных */
}

/* --- Анимация появления --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Кнопки --- */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
}
.btn:hover {
    transform: scale(1.05);
}
.btn-primary {
    background-color: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}
.btn-primary:hover {
    background-color: #fff;
    border-color: #fff;
    color: #000;
}
.btn-secondary {
    border: 2px solid var(--card-border);
    color: var(--text-primary);
}
.btn-secondary:hover {
    border-color: var(--text-primary);
}

/* --- Логотип --- */
.logo {
    display: flex;         /* Включаем Flexbox для выравнивания */
    align-items: center;   /* Вертикальное выравнивание по центру */
    gap: 12px;             /* Расстояние между картинкой и текстом */
    text-decoration: none;
    color: var(--text-primary);
}

.logo img {
    height: 32px; /* Задаем высоту для логотипа, ширина подстроится автоматически */
    width: auto;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ==========================================================================
   3. КАСТОМНЫЙ КУРСОР
   ========================================================================== */

.cursor-container {
    position: fixed;
    inset: 0; /* Современная замена top, left, right, bottom: 0 */
    pointer-events: none;
    z-index: 1001;
    filter: url(#goo);
}
.cursor-dot,
.cursor-trail-particle {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

#contact {
    position: relative; /* Необходимо для позиционирования псевдо-элемента */
    overflow: hidden;   /* Предотвращает "вылезание" сияния за края блока */
}

/* 2. Создаем и стилизуем само сияние */
#contact::before {
    content: '';
    position: absolute;

    /* Центрируем элемент */
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* Задаем размер вспышки (можете менять эти значения) */
    width: 700px;
    height: 700px;
    
    /* Создаем радиальный градиент от акцентного цвета к прозрачному */
    background: radial-gradient(circle, var(--accent-color), transparent 70%);

    /* Размываем градиент, чтобы получить эффект мягкого свечения */
    filter: blur(200px);

    /* Интенсивность свечения (можете менять это значение) */
    opacity: 0.6;

    /* Помещаем свечение ПОД контент */
    z-index: -1;
}

/* 3. Поднимаем контент формы НАД сиянием */
.contact-container {
    position: relative;
    z-index: 1; /* Убедимся, что заголовок и форма будут выше свечения */
}

/* ==========================================================================
   4. СТИЛИ СЕКЦИЙ И СТРУКТУРНЫХ БЛОКОВ
   ========================================================================== */

/* --- Шапка --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding-block: 20px;
    z-index: 100;
    
    /* Стили, которые мы делаем постоянными */
    background-color: rgba(0, 0, 0, 0.75); /* Чуть больше прозрачности */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(32, 32, 32, 0.75);

    /* Добавляем transition для плавного скрытия/появления */
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.header--hidden {
    transform: translateY(-100%);
}

.header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.nav-links { 
    display: flex; 
    gap: 40px; 
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-links a:hover { 
    color: var(--text-primary); 
}

/* --- Главный экран (Hero) --- */
/* --- Главный экран (Hero) --- */
.hero {
    /* Свойства из первого блока */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Свойства из второго блока */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
        url('../images/2.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;

    /* Свойства из третьего блока */
    position: relative;
    overflow: hidden;
    padding-inline: 20px;
    padding-top: 60px;
    padding-bottom: 200px;
    mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
}
.hero h1 {
    font-size: clamp(3rem, 10vw, 5.5rem); /* Адаптивный и крупный шрифт */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em; /* Немного сжимаем буквы для плотности */
    line-height: 1.1;
    margin-bottom: 32px;
    text-align: center;
    
    /* --- НОВЫЕ СВОЙСТВА ДЛЯ ПЕРЕНОСА --- */
    word-wrap: break-word; /* Разрешаем разрыв длинных слов, если они не помещаются */
    overflow-wrap: break-word; /* Современный аналог word-wrap */
    hyphens: auto; /* По возможности добавляем переносы (не все браузеры поддерживают для русского) */
}
.hero h1 span {
    display: inline-block; /* Необходимо для применения padding */
    background-color: var(--accent-color);
    color: var(--bg-color); /* Делаем текст черным, как фон сайта */
    padding: 0.1em 0.5em; /* em-единицы позволяют отступам масштабироваться с размером шрифта */
    border-radius: 100px; /* Большое значение для создания идеальной "пилюли" */
    line-height: 1; /* Корректируем высоту строки внутри плашки */
    transform: translateY(-5px); /* Слегка поднимаем плашку для лучшего баланса */
    margin-top: 0.25em;
}

.hero-separator {
    position: absolute;
    bottom: -1px; /* -1px чтобы избежать микро-полосок на некоторых экранах */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.hero-separator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px; /* Высота волны. Можете менять значение */
}
.hero-separator .shape-fill {
    fill: var(--bg-color); /* Используем вашу переменную для черного цвета */
}
/* Контейнер для контента: помещаем его поверх всего */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Контейнер для волны: помещаем его под контент */
.hero-separator {
    position: absolute;
    bottom: 0; /* Прижимаем к самому низу */
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1; /* z-index ниже, чем у .hero-content */
}

.hero-separator svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

.hero-separator .shape-fill {
    fill: var(--bg-color);
}


/* 2. Создаем общие стили для обоих углов */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 50px; /* Размер углов */
    height: 50px;
    border-color: var(--card-border); /* Используем цвет рамки карточек для консистентности */
    opacity: 0.5; /* Делаем их полупрозрачными, чтобы не отвлекали */
    transition: all 0.4s ease; /* Плавный переход для будущих анимаций */
}

/* 3. Позиционируем левый верхний угол */
.hero::before {
    top: 40px;
    left: 40px;
    border-top: 2px solid;
    border-left: 2px solid;
}



@media (min-width: 768px) {
  .hero {
    /*
     * Вместо того чтобы центрировать контент идеально (justify-content: center),
     * мы прижимаем его к верху (flex-start) и затем двигаем вниз с помощью padding.
     * Это дает точный и предсказуемый контроль над положением.
    */
    justify-content: flex-start;
    padding-top: 18vh; /* Можете менять это значение (например, 20vh или 30vh) */
  }
}
.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 50px auto; /* Увеличили отступ снизу */
    line-height: 1.6;
}
.hero .buttons { 
    display: flex; 
    gap: 20px; /* Увеличили расстояние между кнопками */
    justify-content: center; 
}

/* --- Общие стили секций --- */
.section {
    padding-block: 70px; 
    position: relative;
    overflow: hidden; /* Важно, чтобы сетка не вылезала за края */
}
.section-title {
    font-size: clamp(2.5rem, 8vw, 3.5rem); /* Можно сделать шрифт чуть больше на мобильных */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    text-align: center;
    margin-bottom: 60px;
    max-width: 100%; /* <-- ГЛАВНОЕ ИЗМЕНЕНИЕ: Запрещаем заголовку быть шире родителя */
}
.section-subtitle {
    padding-block: 20px; 
    max-width: 700px; 
    margin: -40px auto 40px; /* Уменьшаем верхний отступ, чтобы было ближе к заголовку */
    color: var(--text-secondary); 
    text-align: center;
    line-height: 1.6; 
    font-size: 1.2rem; 
}

/* ================================================== */
/* --- КОРРЕКЦИЯ ЯКОРНЫХ ССЫЛОК ДЛЯ ФИКСИРОВАННОЙ ШАПКИ --- */
/* ================================================== */

/* 
 * Добавляем верхний отступ для прокрутки ко всем секциям, 
 * на которые есть ссылки в навигации.
 */
#solutions,
#why-us,
#process,
#contact {
    scroll-margin-top: 200px; /* Отступ, равный или чуть больше высоты шапки */
}

/* ======================================================= */
/* --- ФОНОВАЯ СЕТКА (ШАХМАТНЫЙ ПОРЯДОК) --- */
/* ======================================================= */

/* 1. Базовый стиль для элемента сетки. По умолчанию он скрыт. */
.has-grid::before,
.has-grid::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20%;
    background-image: url('../images/grid2.png'); /* Проверьте путь! */
    background-size: 700px;
    opacity: 0.3; /* Настройте по вкусу */
    z-index: -1;
    display: none; /* Прячем по умолчанию */
}

/* 2. Показываем сетку СЛЕВА для НЕЧЕТНЫХ блоков (1-й, 3-й, 5-й и т.д.) */
.has-grid:nth-of-type(odd)::before {
    display: block; /* Показываем элемент */
    left: 0;
}

/* 3. Показываем сетку СПРАВА для ЧЕТНЫХ блоков (2-й, 4-й, 6-й и т.д.) */
.has-grid:nth-of-type(even)::after {
    display: block; /* Показываем элемент */
    right: 0;
}

/* --- Адаптивность: скрываем сетку на мобильных --- */
@media (max-width: 992px) {
    .has-grid::before,
    .has-grid::after {
        display: none;
    }
}

/* ========================================================= */
/* --- ЭФФЕКТНЫЙ ДИЗАЙН БЛОКА "ВРЕМЯ ДЛЯ ПЕРЕМЕН" --- */
/* ========================================================= */

/* 1. Обертка для позиционирования сияния */
.transformation-wrapper {
    position: relative;
    max-width: 950px;
    margin: 0 auto;
}

/* 2. Фоновое сияние "Аврора" */
.transformation-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    /* Создаем большое размытое пятно акцентного цвета */
    background: radial-gradient(circle at 50% 50%, var(--accent-color), transparent 60%);
    filter: blur(150px);
    opacity: 0.15; /* Интенсивность сияния */
    z-index: -1;
}

/* 3. Сетка карточек */
.transformation-grid {
    display: grid;
    gap: 24px;
}

/* 4. "Стеклянная" карточка */
.transformation-card {
    display: flex;
    align-items: center;
    gap: 24px;
    
    /* Эффект Glassmorphism */
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px 32px;
    transition: transform 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
}

.transformation-card:hover {
    border-color: rgb(80, 80, 80);
    box-shadow: 0 4px 20px rgba(171, 171, 171, 0.1);
}

/* 5. Иконка-плейсхолдер */
.transformation-icon {
    flex-shrink: 0;
    width: 64px;   /* Ширина контейнера */
    height: 64px;  /* Высота контейнера */
    
    /* Добавляем стили для центрирования иконки внутри */
    display: flex;
    align-items: center;
    justify-content: center;

    /* --- НОВЫЕ СТИЛИ ДЛЯ ФОНА --- */
    background-color: rgba(255, 255, 255, 0.05); /* Полупрозрачный белый фон */
    border-radius: 16px; /* Скругляем углы фона */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Легкая граница */
    /* ------------------------------------ */
    
    /* Стили для самой иконки */
    font-size: 2.2rem; /* Немного уменьшим иконку, чтобы она помещалась в фон */
    color: var(--accent-color);
}

/* 6. Текстовый контент */
.transformation-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.transformation-content h4 {
    margin: 0;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2); /* Легкая тень для читаемости */
}

.transformation-content h4 span {
    display: block;
}

/* Стили для блока "Проблема" */
.problem h4 {
    color: var(--text-secondary); /* Делаем текст проблемы приглушеннее */
    font-size: 1.5rem;
    font-weight: 500;
}

/* Стили для блока "Решение" */
.solution h4 {
    text-align: right;
}

.solution h4 span:first-child {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    text-transform: none;
    margin-bottom: 4px;
}

.solution h4 .highlight {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 800;
}


/* --- Блок "Решения" (Solutions) --- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}
.solution-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease;
}

.solution-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Соотношение сторон 1:1 */
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 2px solid var(--card-border);
    transition: border-color 0.3s ease;
}

.solution-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}


.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    width: 70px;
    height: 70px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-size: 1.5rem;
    text-decoration: none;
    z-index: 2;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* --- Стили для кликабельной карточки --- */

/* 1. Делаем ссылку-обертку блочным элементом и убираем подчеркивание */
.solution-card-link {
    display: block; /* Важно, чтобы ссылка заняла всю ширину */
    text-decoration: none; /* Убираем синее подчеркивание у текста */
    color: inherit; /* Наследуем цвет текста от родителя (т.е. он останется белым) */
    border-radius: 20px; /* Копируем скругление с карточки для корректного фокуса */
    outline: none; /* Убираем стандартный синий контур при фокусе */
}

/* 2. Добавляем красивый контур при фокусе (для доступности) */
.solution-card-link:focus-visible .solution-card {
    box-shadow: 0 0 0 3px var(--bg-color), 0 0 0 5px var(--accent-color);
}

/* 3. Стилизуем наш новый div, чтобы он выглядел как кнопка "Play" */
.play-button-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    width: 70px;
    height: 70px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-size: 1.5rem;
    z-index: 2;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Показываем кнопку при наведении */
.solution-card-link:hover .play-button-visual,
.js-show-alert:hover .play-button-visual { /* <-- ДОБАВИЛИ */
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Анимируем саму карточку */
.solution-card-link:hover .solution-card,
.js-show-alert:hover { /* <-- ДОБАВИЛИ и упростили */
    transform: translateY(-8px);
}

/* Анимируем тень у картинки */
.solution-card-link:hover .solution-image,
.js-show-alert:hover .solution-image { /* <-- ДОБАВИЛИ */
    box-shadow: 0 15px 15px rgba(255, 255, 255, 0.3);
}

/* Анимируем саму картинку */
.solution-card-link:hover .solution-image img,
.js-show-alert:hover .solution-image img { /* <-- ДОБАВИЛИ */
    transform: scale(1.05);
    filter: brightness(70%);
}
.solution-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.solution-content hr {
    border: none;
    height: 2px;
    background-color: var(--accent-color);
    width: 80px;
    margin: 0 auto 16px;
}
.solution-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}


/* ======================================================= */
/* --- ДИЗАЙН БЛОКА "ПОЧЕМУ МЫ" (СИММЕТРИЧНАЯ СЕТКА) --- */
/* ======================================================= */

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 220px; /* <-- ДОБАВЛЕНО: Все ряды будут равной высоты */
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

/* 1. ОБЩИЕ стили для ВСЕХ ячеек сетки (карточек и декораторов) */
.why-us-decorator {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    /* Убираем фон и рамку, чтобы они "растворились" */
    background-color: transparent;
    border: none;
}

/* 2. Специфичные стили ТОЛЬКО для карточек с контентом */
.why-us-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* <-- Добавили это сюда */
    padding: 32px;
    background-color: #080808;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    min-height: 220px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 3. ОБЪЕДИНЕННЫЙ ховер-эффект для карточек */
.why-us-card:hover {
    border-color: rgb(80, 80, 80);
    box-shadow: 0 4px 20px rgba(171, 171, 171, 0.1);
}

.why-us-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.why-us-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.why-us-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: auto; /* Прижимает текст вниз */
}

/* --- 4. Стили для декоративных элементов --- */
.why-us-decorator {
    align-items: center;
    justify-content: center;
}

/* 4.1. Декоратор с анимированными линиями */
.decorator--animation svg {
    width: 100%;
    height: 100%;
}

.decorator--animation path {
    stroke: var(--accent-color);
    stroke-width: 2;
    stroke-dasharray: 20 80;
    stroke-linecap: round;
    animation: move-lines 10s linear infinite;
}

.decorator--animation .line-2 { animation-delay: -2.5s; }
.decorator--animation .line-3 { animation-delay: -5s; }
.decorator--animation .line-4 { animation-delay: -7.5s; }

@keyframes move-lines {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -100; }
}

/* --- 5. Интерактивное сияние (spotlight) для карточек --- */
.why-us-card::before {
    content: '';
    position: absolute;
    top: var(--y);
    left: var(--x);
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-color), transparent 60%);
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.why-us-card:hover::before {
    opacity: 0.1;
}

/* Убираем сияние для декоративных блоков */
.why-us-decorator::before {
    display: none;
}


/* ================================================== */
/* --- ФИНАЛЬНЫЙ ДИЗАЙН АККОРДЕОНА "КАК МЫ РАБОТАЕМ" --- */
/* ================================================== */

.accordion { 
    max-width: 900px; 
    margin: 0 auto; 
    border: 1px solid var(--card-border); 
    border-radius: 20px; 
    overflow: hidden;
}

.accordion-item { 
    border-bottom: 1px solid var(--card-border); 
}

.accordion-item:last-child { 
    border-bottom: none; 
}

.accordion-header {
    margin: 0;
}

.accordion-button {
    display: flex;
    align-items: flex-start; /* ИЗМЕНЕНО: Выравниваем по верху для контроля */
    width: 100%;
    padding: 24px 32px;
    background-color: transparent;
    border: none;
    color: var(--text-primary);
    text-align: left;
    font-family: inherit;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.accordion-button:hover {
    border-color: rgb(80, 80, 80);
    box-shadow: 0 4px 20px rgba(171, 171, 171, 0.3);
}

/* ИЗМЕНЕНО: Создаем flex-контейнер для номера и заголовка */
.accordion-title-wrapper {
    display: flex;
    align-items: flex-start; /* Выравнивание по верху */
    gap: 24px;
}

/* ИЗМЕНЕНО: Стили для номера */
.accordion-number {
    color: var(--text-secondary);
    font-size: 1.8rem; /* Увеличили размер до уровня заголовка */
    font-weight: 700;  /* Сделали жирнее */
    line-height: 1.35; /* Тонкая подстройка для вертикального выравнивания */
    transition: color 0.3s ease, transform 0.4s ease;
}

/* ИЗМЕНЕНО: Стили для заголовка */
.accordion-main-title {
    font-size: 1.8rem;
    /*padding-top: 2px; /* Небольшая коррекция для идеального выравнивания с номером */
}

/* Иконка "+" справа */
.accordion-icon {
    margin-left: auto;
    padding-top: 2px; /* Выравниваем с заголовком */
    font-size: 2rem;
    font-weight: 400;
    color: var(--accent-color);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- Стили в активном состоянии --- */
.accordion-item.active .accordion-number {
    color: var(--accent-color);
    transform: scale(1.2); /* ДОБАВЛЕНО: Плавное увеличение цифры */
}

.accordion-item.active .accordion-icon { 
    transform: rotate(45deg); 
}

/* Выпадающий контент */
.accordion-content { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

/* ИЗМЕНЕНО: Выравнивание текста описания */
.accordion-content p {
    padding-bottom: 32px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
    max-width: 650px;
    /* ИЗМЕНЕНО: Отступ слева теперь равен сумме ширины номера, отступа и паддинга кнопки */
    /* 32px (padding) + 36px (ширина номера) + 24px (gap) = 92px */
    padding-left: 98px; 
    padding-right: 32px;
}



/* --- Блок "Контакты" (Contact) --- */
.contact-container { 
    text-align: center; 
}
.contact-form { 
    max-width: 500px; 
    margin-inline: auto; 
    display: grid; 
    gap: 20px; 
}
#contact .section-subtitle {
    /* Стили для больших экранов (десктоп) */
    max-width: 450px; /* Немного уменьшим ширину, чтобы текст сам перенесся на 2 строки */
}
.form-group { 
    text-align: left; 
}
.form-group label { 
    display: block; 
    margin-bottom: 8px; 
    font-weight: 500; 
    color: var(--text-secondary); 
}
.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid var(--card-border);
    background-color: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit; /* Наследуем шрифт от body */
    transition: border-color 0.3s ease;
}
.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}
.form-group textarea { 
    min-height: 120px; 
    resize: vertical; 
}

/* ========================================= */
/* --- НОВЫЙ СТИЛЬНЫЙ ДИЗАЙН ПОДВАЛА --- */
/* ========================================= */

.footer {
    position: relative; /* Необходимо для позиционирования градиентной линии */
    padding: 80px 0 40px;
    background-color: #050505; /* Чуть светлее основного фона для выделения */
}

/* 1. Эффектная градиентная линия сверху */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px; /* Соответствует ширине .container */
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.3;
}

/* 2. Основной блок с колонками */
.footer-main {
    display: grid;
    /* Создаем адаптивную сетку из 3 колонок */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Стили для заголовков колонок (Навигация, Связаться с нами) */
.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

/* Стили для ссылок в навигации */
.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.footer-nav a:hover {
    color: var(--accent-color);
    padding-left: 8px; /* Эффект сдвига при наведении */
}

/* Стили для блока "О компании" */
.footer-about .logo {
    margin-bottom: 0;
}
.footer-about p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Стили для контактов с иконками */
.footer-contacts .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.footer-contacts .contact-item i {
    color: var(--accent-color);
}
.footer-contacts .contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-contacts .contact-item a:hover {
    color: var(--text-primary);
}

/* 3. Нижняя планка (копирайт и соцсети) */
/* СТАЛО */
.footer-bottom {
    padding-top: 24px; /* Уменьшили верхний отступ */
    border-top: 1px solid var(--card-border);
    text-align: center; /* Центрируем текст копирайта */
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}


/* --- Кнопка "Наверх" --- */
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.scroll-to-top:hover {
    transform: scale(1.1);
    /* Transition уже задан на .btn, этот можно убрать */
}

/* 4.2. Декоратор с текстовым логотипом */
.decorator--logo {
    font-size: 5rem;
    font-weight: 800;
    color: var(--accent-color);
    opacity: 0.2;
    user-select: none;
}

/* --- НОВЫЕ СТИЛИ ДЛЯ БОЛЬШОГО ЛОГОТИПА-КАРТИНКИ --- */
.decorator--big-logo {
    padding: 0;
}

.decorator--big-logo img {
    max-width: 30%;
    height: auto;
    opacity: 0.2;
    user-select: none;
}


/* ==========================================================================
   5. АДАПТИВНЫЕ СТИЛИ (ОБЪЕДИНЕННЫЙ БЛОК)
   ========================================================================== */

@media (max-width: 768px) {
    /* --- Шапка и Гамбургер --- */
    .header .container {
        justify-content: space-between; 
        position: relative;
    }
    .nav-links, .header-btn {
        display: none;
    }
    .hamburger {
        display: inline-block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* --- Главный экран (Hero) --- */
    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 50px;
        mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
    }
    .hero h1 {
        font-size: clamp(3.5rem, 10vw, 4rem); /* Слегка скорректировал для баланса */
        line-height: 1.2;
        margin-bottom: 24px;
    }
    .hero p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 40px;
    }
    .hero .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    .hero-separator svg {
        height: 70px;
    }
    .hero::before, .hero::after {
        display: none; /* Прячем углы */
    }

    /* --- Другие секции --- */
    .section {
        padding-block: 60px;
    }
    .transformation-card {
        padding: 24px;
    }
    .transformation-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .solution h4 {
        text-align: left;
    }
    .problem h4, .solution h4 .highlight {
        font-size: 1.2rem;
    }
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    .why-us-decorator {
        display: none;
    }
    .accordion-button {
        padding: 20px;
    }
    .accordion-title-wrapper {
        gap: 16px;
    }
    .accordion-main-title {
        font-size: 1.4rem;
    }
    .accordion-content p {
        padding-left: 64px;
        padding-right: 20px;
        font-size: 1rem;
    }
    #contact .section-subtitle {
        max-width: 250px;
    }
    .footer-main {
        text-align: center;
    }
    .footer-column {
        align-items: center;
    }
    .footer-contacts .contact-item {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 24px;
    }
    .scroll-to-top {
        display: none !important;
    }
    
}

/* --- Адаптивность: скрываем сетку на мобильных --- */
@media (max-width: 992px) { /* Прячем на планшетах и мобильных */
    #solutions::before, #solutions::after,
    #process::before, #process::after,
    #why-us::before, #why-us::after {
        display: none;
    }
}

/* ==========================================================================
   6. СПЕЦИАЛЬНЫЕ СТИЛИ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ========================================================================== */

/* Отключаем кастомный курсор на сенсорных устройствах */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto; /* Возвращаем системный курсор */
    }
    .cursor-container {
        display: none; /* Полностью скрываем наш контейнер для курсора */
    }
}

/* --- СТИЛИ ДЛЯ МОБИЛЬНОГО МЕНЮ И ГАМБУРГЕРА --- */
.hamburger {
    display: none; /* Скрыт по умолчанию на больших экранах */
    padding: 15px;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0;
    overflow: visible;
}
.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}
.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}
.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}
.hamburger-inner::before { top: -10px; }
.hamburger-inner::after { bottom: -10px; }

/* Анимация гамбургера в крестик */
.hamburger.is-active .hamburger-inner {
    transform: rotate(45deg);
}
.hamburger.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
}
.hamburger.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
}

/* Стили для выезжающего меню */
.mobile-nav {
    position: fixed;
    top: 85px; /* Высота шапки */
    left: 0;
    width: 100%;
    height: calc(100vh - 85px);
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out;
    z-index: 1000;
}
.mobile-nav.is-active {
    transform: translateX(0);
}
.mobile-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Адаптивность: показываем гамбургер и прячем обычное меню */
@media (max-width: 768px) {
    .nav-links, .header-btn {
        display: none;
    }
    .hamburger {
        display: inline-block; /* Показываем кнопку */
        position: absolute;    /* Вынимаем из потока, чтобы не мешать логотипу */
        right: 20px;           /* Прижимаем к правому краю с отступом */
        top: 50%;              /* Центрируем по вертикали */
        transform: translateY(-50%); /* Точная вертикальная центровка */
    }
}