/* =========================================
   1. FONTS
   ========================================= */
@font-face {
    font-family: 'Mulish';
    src: url('../fonts/Mulish-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Mulish';
    src: url('../fonts/Mulish-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Mulish';
    src: url('../fonts/Mulish-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Mulish';
    src: url('../fonts/Mulish-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   RESET & VARIABLES
   ========================================= */
:root {
    --bg-color: #212121;
    --text-color: #ffffff;
    --content-ratio: 177.77vh; 
    --max-content-width: 1800px;
    --header-height: 80px;
    --glass-bg: rgba(42, 42, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0; padding: 0;
}

*:focus, *:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent; 
}

input:focus, textarea:focus {
    outline: none; 
}

html {
    width: 100%;
    height: 100%;
    /* Скрываем нативный скроллбар, так как используем Lenis или Swiper */
    scrollbar-width: none; 
}
html::-webkit-scrollbar {
    display: none;
}

body {
    width: 100%;
    /* ВАЖНО: height: auto позволяет Lenis вычислить реальную высоту страницы */
    height: auto; 
    min-height: 100%;
    
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Mulish', sans-serif;
    margin: 0; 
    padding: 0;
    
    overflow-y: auto; 
    overflow-x: hidden;
    overscroll-behavior: none;

    /* ... остальные стили user-select и т.д. ... */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Разрешаем выделение в формах */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 3. Блокируем скролл ТОЛЬКО на Главной (Desktop), чтобы работал Swiper */
@media (min-width: 1025px) {
    body.home-page {
        overflow: hidden;
    }
}

/* Фон для внутренних страниц (чтобы не был серым) */
body.has-page-background {
    background-color: transparent !important;
}


/* СКРЫВАЕМ СКРОЛЛ ТОЛЬКО НА ГЛАВНОЙ (ДЕСКТОП) */
body.home-page {
    height: 100%; /* Возвращаем 100% только для главной, чтобы работал Swiper */
    overflow: hidden; 
    overscroll-behavior: none;
}

/* Разрешаем выделять текст в формах, иначе нельзя печатать */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* =========================================
   SWIPER CONFIGURATION (DESKTOP)
   ========================================= */

/* Контейнер слайдера занимает ровно экран */
.swiper.main-page-slider {
    width: 100%;
    height: 100vh;
}

/* Слайд тоже */
.swiper-slide {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.swiper-wrapper {
    height: 100%;
    /* Это нужно для работы vertical слайдера */
    box-sizing: content-box; 
}

/* =========================================
   CONSTRAINT SYSTEM
   ========================================= */
.constraint-wrapper {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
    max-width: var(--content-ratio); 
    position: relative;
    z-index: 10 !important; /* Важно, чтобы перебить Swiper */
    pointer-events: none;
}
.constraint-wrapper > * {
    pointer-events: auto;
}


@media (min-width: 2000px) {
    .constraint-wrapper {
        max-width: var(--max-content-width);
    }
}

.content-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    position: relative;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo img { height: 60px; display: block; }
.burger-menu { cursor: pointer; z-index: 101; }

/* =========================================
   FULLSCREEN SECTIONS & BACKGROUNDS
   ========================================= */
.fullscreen-section {
    position: relative;
    width: 100%;
    /* На десктопе высота задается Swiper-ом (100%), 
       но базово ставим 100vh */
    height: 100vh; 
}

.section-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}
.section-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.35);
}

/* Изображения */
.bg-hero { background-image: url('../img/pic1.webp'); }
.bg-projects { background-image: url('../img/pic4.webp'); }
.bg-advantages { background-image: url('../img/pic5.webp'); }
.bg-contact { background-image: url('../img/pic6.webp'); }


/* =========================================
   FAB SOCIALS
   ========================================= */
.social-wrapper-fixed {
    position: fixed; bottom: 0; left: 0; width: 100%; height: 0;
    z-index: 90; overflow: visible;
}
.relative-holder { height: 0; position: relative; }

/* Контейнер ссылок (сама капсула) */
.social-links {
    position: absolute;
    bottom: 30px; 
    left: 40px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    
    /* Стили для закрытого состояния */
    background: transparent;
    padding: 0;
    border-radius: 40px;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ОТКРЫТОЕ СОСТОЯНИЕ (Капсула) */
.social-links.active {
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(15px);
    border-color: rgba(255, 255, 255, 0.15);
    /* Уменьшили отступы (было 20px сверху) */
    padding: 12px 6px 6px 6px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* Список иконок (скрыт по умолчанию) */
.social-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    align-items: center;
    
    /* Анимация скрытия */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-bottom: 0;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Список иконок (показан) */
.social-links.active .social-items {
    max-height: 150px; /* Уменьшили высоту, так как иконок теперь 2 */
    opacity: 1;
    margin-bottom: 15px; /* Отступ до главной кнопки */
}

/* Сами иконки внутри списка */
.social-items a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: transform 0.2s;
}
.social-items a:hover { transform: scale(1.15); }
.social-items a img {
    width: 28px; height: 28px;
    object-fit: contain; display: block;
}

/* Главная кнопка-тоггл */
.mobile-social-toggle {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: transparent;
    border: none; cursor: pointer; padding: 0; outline: none; 
    position: relative;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
    transition: all 0.3s ease;
}

/* Убираем тень кнопки, когда капсула открыта (тень переходит на капсулу) */
.social-links.active .mobile-social-toggle { filter: none; }

.mobile-social-toggle svg {
    position: absolute;
    top: 50%; left: 50%;
    width: 30px; height: 30px;
    margin-top: -15px; margin-left: -15px;
    transition: all 0.3s ease;
}

.mobile-social-toggle .icon-close { opacity: 0; transform: rotate(-180deg) scale(0.5); }
.mobile-social-toggle .icon-msg { opacity: 1; transform: rotate(0) scale(1); }

.social-links.active .mobile-social-toggle .icon-msg { opacity: 0; transform: rotate(180deg) scale(0.5); }
.social-links.active .mobile-social-toggle .icon-close { opacity: 1; transform: rotate(0) scale(1); }

/* Адаптив */
@media (max-width: 1024px) {
    .mobile-social-toggle { width: 48px; height: 48px; }
    .mobile-social-toggle svg { width: 28px; height: 28px; margin-top: -14px; margin-left: -14px; }
}

/* Стили уведомления о копировании */
#copy-notification {
    position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 20px);
    background-color: rgba(42, 42, 42, 0.9);
    backdrop-filter: blur(10px); color: #dcdcdc;
    padding: 15px 25px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center; font-size: 14px;
    z-index: 9999;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    pointer-events: none;
}
#copy-notification.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }



/* =========================================
   MENU OVERLAY & ANIMATION
   ========================================= */

/* Анимация иконок в хедере */
.burger-menu {
    position: relative;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    
    /* ДОБАВЛЕНО: Плавное перемещение самой кнопки */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    
    /* ДОБАВЛЕНО: Чтобы кнопка летела ПОВЕРХ выезжающей панели */
    z-index: 2000; 
}

.burger-menu svg {
    position: absolute;
    transition: all 0.4s ease;
}

/* Состояния иконок */
.burger-menu .icon-close { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.burger-menu .icon-burger { opacity: 1; transform: rotate(0deg) scale(1); }

/* Состояние "Открыто" (класс вешается на body) */
body.menu-is-open .burger-menu .icon-burger { opacity: 0; transform: rotate(90deg) scale(0.5); }
body.menu-is-open .burger-menu .icon-close { opacity: 1; transform: rotate(0deg) scale(1); }

/* Затемнение фона */
.menu-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 95; /* Под хедером (100), но над контентом */
    visibility: hidden; opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

body.menu-is-open .menu-overlay { visibility: visible; opacity: 1; }

/* Выезжающая панель */
.menu-panel {
    position: absolute; top: 0; right: 0;
    width: 100%; max-width: 400px; height: 100%;
    background-color: #2e2e2e;
    padding: 150px 40px 50px; /* Отступ сверху под хедер */
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    transform: translateX(100%); /* Скрыто справа */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex; flex-direction: column; justify-content: space-between;
}

body.menu-is-open .menu-panel { transform: translateX(0); }

/* Ссылки меню */
.menu-column {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 25px;
}

.menu-column a {
    color: #dcdcdc; text-decoration: none;
    font-size: 1.5rem; font-weight: 700;
    display: block; position: relative;
    padding-bottom: 5px; transition: color 0.3s ease;
}

/* Подчеркивание при наведении */
.menu-column a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background-color: #ffffff;
    transition: width 0.4s ease;
}
.menu-column a:hover { color: #ffffff; }
.menu-column a:hover::after { width: 100%; }

/* Контакты внизу меню */
.menu-contact-email {
    margin-top: 30px;
    border-bottom: 1px solid rgba(220, 220, 220, 0.3);
    padding-bottom: 15px;
    display: flex; flex-direction: column; gap: 15px;
}
.menu-contact-email a {
    text-decoration: none; font-size: 18px; color: #b0b0b0; transition: color 0.3s ease;
}
.menu-contact-email a:hover { color: #ffffff; }

/* Адаптив меню */
@media (max-width: 768px) {
    .menu-panel { max-width: 100%; padding: 120px 30px 70px 30px; }
}

/* =========================================
   NUCLEAR FIX FOR HERO TITLE (STYLED BY REQUEST)
   ========================================= */

/* Контекст */
section[data-index="0"] {
    position: relative !important;
    z-index: 5 !important;
}

/* Обертка на весь экран */
section[data-index="0"] .constraint-wrapper {
    position: absolute !important;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 10 !important;
    pointer-events: none; 
}

/* Блок с текстом (ПОЗИЦИЯ И РАЗМЕРЫ) */
/* Блок с текстом (ПОЗИЦИЯ И РАЗМЕРЫ) */
.hero-content {
    display: block !important;
    position: absolute !important;
    bottom: 100px !important;      
    left: 50% !important;
    transform: translateX(-50%) !important; 
    width: 100% !important;
    max-width: 1200px !important; 
    text-align: center !important;
    color: #ffffff !important;
    z-index: 9999 !important;
    padding: 0 20px !important;
}

/* ЗАГОЛОВОК (CentreSvet Style: Bold, Uppercase, Spacing) */
h1.hero-title {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: #ffffff !important;
    
    /* Шрифт и размер */
    font-family: 'Mulish', sans-serif !important;
    font-size: 2.8rem !important; /* Увеличили */
    font-weight: 800 !important;  /* Жирный */
    text-transform: uppercase !important; /* Все буквы заглавные */
    letter-spacing: 3px !important; /* Разрядка букв */
    line-height: 1.1 !important;
    
    margin: 0 0 15px 0 !important; /* Отступ снизу до подзаголовка */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7) !important;
}

/* ПОДЗАГОЛОВОК (Новый стиль) */
p.hero-subtitle {
    display: block !important;
    font-family: 'Mulish', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    text-transform: uppercase !important; /* Тоже капсом, но маленьким */
    letter-spacing: 2px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7) !important;
}

/* Адаптив для текста */
@media (max-width: 768px) {
    h1.hero-title {
        font-size: 1.8rem !important; 
        letter-spacing: 1.5px !important;
        margin-bottom: 10px !important;
    }
    p.hero-subtitle {
        font-size: 0.85rem !important;
        letter-spacing: 1px !important;
    }
    .hero-content {
        bottom: 140px !important; /* Поднимаем выше из-за кнопок на мобилке */
        width: 90% !important;
    }
}

/* =========================================
   PROJECTS SLIDER (GLASS & CONTROLS)
   ========================================= */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px; /* Чуть меньше отступ */
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.project-slider-area {
    width: 100%;
    /* Сделали контейнер уже (было 1600px) */
    max-width: 1450px; 
}

/* СТЕКЛЯННАЯ ПОДЛОЖКА */
.slider-wrapper {
    margin: 0;
    width: 100%;
    
    padding: 25px 30px; 
    
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    box-sizing: border-box;
}

/* Слайдер внутри */
.splide {
    width: 100%;
    /* Увеличиваем лимит высоты, чтобы влезали высокие карточки */
    max-height: 85vh; 
}

/* КАРТОЧКА */
.project-card {
    display: block;
    position: relative;
    width: 100%;
    
    /* ИЗМЕНЕНИЕ: Делаем карточки высокими (было 3 / 4) */
    aspect-ratio: 9 / 14; 
    
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    background: #000;
    transition: transform 0.4s ease;
}

.project-card:hover {
    transform: none;
    box-shadow: none;
}

.card-image { width: 100%; height: 100%; position: relative; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .card-image img { transform: scale(1.05); }

.card-info {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%); z-index: 2;
}
.card-info h3 { margin: 0 0 5px 0; font-size: 1.1rem; font-weight: 700; }
.card-info p { margin: 0; font-size: 0.85rem; color: #dcdcdc; }


/* --- НИЖНЯЯ ПАНЕЛЬ (FOOTER) --- */
.slider-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 85%; 
    margin: 25px auto 0 auto; 
    padding: 0; 
}

/* ОБЩИЕ СТИЛИ ДЛЯ ОБЕИХ КАПСУЛ (чтобы были близнецами) */
.splide-controls,
.view-all-button {
    height: 54px; /* Фиксированная высота для идеального совпадения */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50px;
}

/* --- ЛЕВАЯ КАПСУЛА (Управление) --- */
.splide-controls {
    padding: 0 30px; /* Отступы только по бокам */
    gap: 20px;
}

/* Стрелки внутри */
.splide-arrow--custom {
    width: 24px; height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.splide-arrow--custom:hover {
    transform: scale(1.2);
    opacity: 1;
}

.splide-arrow--custom:disabled {
    opacity: 0.3; cursor: default; transform: none;
}

.splide-arrow--custom svg {
    width: 100%; height: 100%;
    stroke: #ffffff;
}

/* Прогресс бар */
.splide-pagination-custom {
    display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.9rem;
}
.splide-pagination-custom__track {
    width: 80px; height: 2px;
    background-color: rgba(255,255,255,0.2);
    position: relative;
    border-radius: 2px;
}
.splide-pagination-custom__bar {
    position: absolute; top: 0; left: 0;
    height: 100%; width: 0;
    background-color: #ffffff;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* --- ПРАВАЯ КАПСУЛА (Кнопка) --- */
.view-all-button {
    /* Справа отступ меньше (8px), так как там круг */
    padding: 0 8px 0 25px; 
    gap: 15px;
    color: #ffffff; text-decoration: none; font-weight: 600; font-size: 0.95rem;
    transition: background 0.3s ease, transform 0.3s ease;
}

.view-all-button:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

.view-all-button__icon {
    width: 38px; height: 38px; /* Чуть увеличили круг под высоту 54px */
    border-radius: 50%; 
    background: #ffffff; 
    display: flex; align-items: center; justify-content: center;
}
.view-all-button__icon svg { 
    stroke: #000; 
    width: 20px; height: 20px; 
}
/* Анимация появления */
.fade-in-up {
    opacity: 0; transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.section-active .fade-in-up {
    opacity: 1; transform: translateY(0);
}

/* =========================================
   MOBILE OVERRIDES (MASTER BLOCK)
   ========================================= */
@media (max-width: 1024px) {
    
    /* --- 1. ГЛОБАЛЬНЫЙ СКРОЛЛ --- */
    html, body {
        overflow-y: auto !important; 
        overflow-x: hidden;
        height: auto !important;
    }

    /* --- 2. СТРУКТУРА СЕКЦИЙ (FLEX) --- */
    
    .fullscreen-section {
        display: flex !important;
        flex-direction: column;
        min-height: 100vh;
        padding-top: var(--header-height); 
        padding-bottom: 80px; /* Отступ под FAB */
        box-sizing: border-box;
    }

    .constraint-wrapper {
        padding: 0 20px;
        display: flex !important;
        flex-direction: column;
        flex-grow: 1;
    }

    /* ПО УМОЛЧАНИЮ: Контент сверху (Hero, Contacts) */
    .content-center {
        flex-grow: 1;
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start !important; /* Прибиваем к верху */
        align-items: center !important;         /* Центруем по горизонтали */
        width: 100%;
        padding-top: 20px; /* Небольшой отступ от хедера */
    }

    /* СПЕЦИАЛЬНО ДЛЯ СЛАЙДЕРА (data-index="1"): Строгий центр */
    section[data-index="1"] .content-center {
        justify-content: center !important; /* Вертикальный центр */
        padding-top: 0; 
    }

    .section-bg { position: absolute; }
    .social-links { left: 20px; bottom: 25px; }


    /* --- 2. ОТКЛЮЧЕНИЕ ВЕРТИКАЛЬНОГО СЛАЙДЕРА (SWIPER) --- */
    
    /* Контейнер главного слайдера */
    .swiper.main-page-slider {
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        position: static !important;
    }

    /* ИСПРАВЛЕНИЕ: Используем > чтобы не ломать вложенные слайдеры (Hero BG) */
    .swiper.main-page-slider > .swiper-wrapper {
        width: 100% !important;
        height: auto !important;
        display: block !important; 
        transform: none !important; 
        position: static !important;
    }

    /* ИСПРАВЛЕНИЕ: Аналогично для слайдов */
    .swiper.main-page-slider > .swiper-wrapper > .swiper-slide {
        width: 100% !important;
        height: auto !important;
        min-height: 100vh; 
        display: flex !important;
        flex-direction: column;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        margin-bottom: 0 !important;
    }

    /* --- FIX: ФОНОВЫЙ СЛАЙДЕР НА МОБИЛЬНОМ --- */
    
    /* Принудительно возвращаем абсолютное позиционирование контейнеру */
    .hero-bg-slider {
        position: absolute !important;
        top: 0; left: 0;
        width: 100% !important;
        height: 100% !important;
        z-index: 0 !important;
    }

    /* Возвращаем высоту обертке swiper-wrapper внутри фона */
    .hero-bg-slider .swiper-wrapper {
        height: 100% !important;
        position: relative !important;
        transform: translate3d(0,0,0); /* Включает аппаратное ускорение */
    }

    /* САМОЕ ГЛАВНОЕ: Отменяем height: auto для слайдов фона */
    .hero-bg-slider .swiper-slide {
        width: 100% !important;
        height: 100% !important; 
        min-height: 0 !important; /* Убираем min-height: 100vh, если он наследовался */
        position: relative !important;
        background-size: cover !important;
        background-position: center !important;
    }


    /* --- 4. СЛАЙДЕР ПРОЕКТОВ (FIXED FULL WIDTH) --- */
    
    .project-slider-area {
        /* Ширина = 100% родителя + 40px (компенсация паддингов) */
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        overflow: hidden; 
    }

    .section-title,
    .slider-footer {
        padding: 0 20px; 
        box-sizing: border-box;
    }

    .slider-wrapper {
        padding: 0;
        background: transparent;
        border: none;
        backdrop-filter: none;
        border-radius: 0;
        width: 100%;
    }
    
    .project-card {
        width: 100%;
        aspect-ratio: auto !important;
        height: 55vh; 
        border-radius: 12px;
    }
    
    .splide-controls { display: none !important; }
    
    .slider-footer {
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }

    /* --- 5. FAB КНОПКА --- */
    .mobile-social-toggle { width: 48px; height: 48px; }
    .mobile-social-toggle svg { width: 28px; height: 28px; margin-top: -14px; margin-left: -14px; }
}


/* --- СТИЛИ ДЛЯ КИНЕМАТОГРАФИЧНОГО ПРЕЛОАДЕРА --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000; /* Самый высокий слой */
    background-color: #212121; /* Жесткий цвет фона */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    
    /* Состояние по умолчанию */
    opacity: 1;
    visibility: visible;
    
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

/* Обёртка 16:9 */
.preloader-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: calc(100vh * (16 / 9));
    max-height: calc(100vw * (9 / 16));
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Центральный блок */
.preloader-central-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    color: #dcdcdc;
    font-weight: 500;
}

/* Начальные состояния для анимации (скрыты) */
.preloader-logo-row { transform: scale(0.8); opacity: 0; }
.preloader-logo-row img { width: 250px; display: block; }
.preloader-separator { width: 0%; height: 3px; background-color: #dcdcdc54; border-radius: 2px; }
.preloader-tagline span { display: block; opacity: 0; }

/* Текстовые блоки */
.preloader-services-top,
.preloader-services-bottom {
    position: absolute;
    width: 90%;
    left: 5%;
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}
.preloader-services-top { bottom: 80px; }
.preloader-services-bottom { bottom: 30px; }

.preloader-services-top span,
.preloader-services-bottom span {
    opacity: 0;
}

/* Адаптив прелоадера */
@media (max-width: 768px) {
    .preloader-content-wrapper { max-width: none; max-height: none; }
    
    .preloader-services-top {
        top: 30px; bottom: auto; left: 25px; width: auto;
        flex-direction: column; align-items: flex-start; gap: 10px; font-size: 14px;
    }
    .preloader-services-bottom {
        bottom: 30px; right: 25px; left: auto; width: auto;
        flex-direction: column; align-items: flex-end; gap: 10px; font-size: 14px;
    }
    .preloader-logo-row img { width: 180px; }
}

/* =========================================
   HERO BACKGROUND SLIDER
   ========================================= */

/* Контейнер слайдера */
.hero-bg-slider {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
}

/* Отдельный слайд */
.hero-bg-slide {
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Убрали opacity: 0, теперь они всегда видны, смену делает Swiper */
}

/* Оверлей затемнения */
.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.35); 
    z-index: 1; 
    pointer-events: none; 
}

/* =========================================
   ADVANTAGES SECTION
   ========================================= */
.advantages-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
    width: 100%;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.advantage-icon { height: 50px; margin-bottom: 25px; }
.advantage-card h3 { font-size: 1.3rem; font-weight: 700; margin: 0 0 15px 0; }
.advantage-card p { font-size: 0.95rem; font-weight: 300; line-height: 1.6; color: #c0c0c0; margin: 0; }


/* =========================================
   CONTACT FORM SECTION
   ========================================= */
.form-container {
    width: 100%;
    max-width: 600px; /* Чуть уже для эстетики */
    background: rgba(255, 255, 255, 0.05); /* Легкая подложка под всей формой */
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-subtitle {
    text-align: center; color: #dcdcdc; margin-bottom: 30px; margin-top: -10px;
}

.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: #dcdcdc; }

.form-group input, 
.form-group textarea {
    width: 100%; padding: 15px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-family: 'Mulish', sans-serif; font-size: 1rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none; 
    border-color: #ffffff; 
    background-color: rgba(0, 0, 0, 0.6);
}

.form-group textarea { resize: none; }

/* Кнопка отправки */
.cta-button {
    width: 100%;
    padding: 15px;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s;
}
.cta-button:hover { transform: scale(1.02); background: #e0e0e0; }
.cta-button:disabled { opacity: 0.7; cursor: not-allowed; }

/* Переключатель мессенджеров */
.contact-method-selector {
    position: relative; display: flex; gap: 5px; padding: 5px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
}

.active-method-pill {
    position: absolute; top: 5px; left: 0;
    height: calc(100% - 10px);
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    z-index: 0;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), width 0.3s;
}

.contact-method-selector button {
    flex-grow: 1; height: 44px;
    background-color: transparent; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1;
}

.contact-method-selector img { 
    width: 24px; height: 24px; 
    transition: filter 0.3s ease, transform 0.3s; 
}
.contact-method-selector button:not(.active) img { filter: grayscale(1) brightness(0.6); }
.contact-method-selector button.active img { transform: scale(1.1); }

/* Статус отправки */
#form-status { text-align: center; margin-top: 15px; font-weight: 600; font-size: 0.9rem; min-height: 20px; }
#form-status.success { color: #4CAF50; }
#form-status.error { color: #F44336; }





















/* --- СТИЛИ ДЛЯ ТЕСТОВОЙ КНОПКИ (ВРЕМЕННО) --- */
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255, 255, 255, 0.1); transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: #b0b0b0; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #ffffff; }
input:checked + .slider:before { transform: translateX(24px); background-color: #000; }