/* Базовые настройки */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #1a1a1a; 
    color: #ffffff;
    overflow-x: hidden;
}

/* --- ШАПКА (HEADER) - СТИЛЬ КАПСУЛЫ --- */
header {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background: rgba(12, 12, 12, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    z-index: 1000;
    padding: 12px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

/* ЛОГОТИП */
.logo-link {
    text-decoration: none;
    color: #ffffff;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
}

#logo-img {
    height: 35px;
    margin-right: 12px;
}

.logo-red {
    color: #ff3333;
}

/* НАВИГАЦИЯ (МЕНЮ) - ЦЕНТРИРОВАНИЕ */
.main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Возвращаем меню в горизонтальную линию и убираем точки */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: #a0a0a0;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Сделали шрифт жирнее */
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block; /* Нужно для правильной анимации вылета */
}

/* ИГРОВОЙ ЭФФЕКТ ПРИ НАВЕДЕНИИ НА СЛОВА */
.main-nav a:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.05); /* Вылет вверх и легкое увеличение */
    text-shadow: 2px 2px 0px #ff3333; /* Жесткая красная тень */
}

/* ПРАВЫЙ БЛОК (Кнопка и язык) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* КНОПКА В ХЕДЕРЕ */
.btn-header-bw {
    background-color: transparent;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Сделали шрифт жирнее */
    font-size: 13px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

/* ИГРОВОЙ ЭФФЕКТ ПРИ НАВЕДЕНИИ НА КНОПКУ */
.btn-header-bw:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ff3333;
    transform: translateY(-3px) scale(1.05); /* Вылет */
    text-shadow: 2px 2px 0px #ff3333; /* Жесткая тень текста */
    box-shadow: 3px 3px 0px #ff3333; /* Жесткая тень самой кнопки */
}

/* ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА */
.lang-switch-bw {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.lang-switch-bw:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-lang img, .lang-dropdown-bw img {
    width: 20px;
    height: auto;
    border-radius: 3px;
    display: block;
}

.current-lang i {
    font-size: 12px;
    color: #ffffff;
    transition: 0.3s;
}

.lang-switch-bw:hover .current-lang i {
    transform: rotate(180deg);
}

.lang-dropdown-bw {
    position: absolute;
    top: 140%; 
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(12, 12, 12, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lang-switch-bw:hover .lang-dropdown-bw {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.lang-dropdown-bw a {
    display: block;
    transition: 0.3s;
}

.lang-dropdown-bw a:hover {
    transform: scale(1.15); 
}

/* --- ПЕРВЫЙ ЭКРАН (HERO) --- */
.hero {
    height: 100vh; /* Возвращаем высоту на весь экран */
    position: relative; /* Чтобы статистика и оверлей не улетали */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('images/hero-bg.jpg'); /* Возвращаем грузовики! */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Эффект параллакса для грузовиков */
    background-color: #080808; 
    z-index: 10; /* Держим первый экран строго поверх 3D-кубов */
    overflow: hidden; 
    font-family: 'Montserrat', sans-serif !important;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* МАГІЯ ТУТ: Останній колір #0d0d0d ідеально зшиває 1 і 2 блоки */
    background: linear-gradient(to bottom, rgba(13,13,13,0.3) 0%, rgba(13,13,13,0.7) 65%, #0d0d0d 100%);
    z-index: 1;
}

/* --- СТИЛИ КНОПОК ПЕРВОГО ЭКРАНА (ПО ЦЕНТРУ) --- */
.hero-action {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Чтобы на телефонах переносились красиво */
}

/* Настройки для круглых кнопок-иконок */
.btn-cyber-social {
    background-color: #000; 
    color: #fff; 
    border: 2px solid #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 3;
    width: 60px; /* Сделали их чуть крупнее для центра экрана */
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
}

/* ЭФФЕКТ ПРИ НАВЕДЕНИИ */
.btn-cyber-social:hover {
    background-color: transparent; 
    color: #ff3333; 
    border-color: #ff3333; 
    transform: translate(-6px, -6px); /* Кибер-сдвиг */
    box-shadow: 6px 6px 0px #ff3333; /* Жесткая тень */
}

/* --- КОНТЕНТ ПО ЦЕНТРУ --- */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-welcome {
    font-size: 20px;
    font-weight: 500;
    color: #cccccc;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0; 
}

/* --- ГЛАВНЫЙ ЗАГОЛОВОК NEOCRIME --- */
.hero-title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 110px; 
    font-weight: 900; 
    color: #ffffff; 
    margin: 0;
    line-height: 1;
    letter-spacing: 8px; 
    text-shadow: 4px 4px 0px #ff3333; /* Жесткая красная тень */
}

.hero-slogan {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 19px;
    font-weight: 400; 
    color: #ffffff;
    margin-top: 15px;
    margin-bottom: 45px;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0; 
}

/* --- АНИМАЦИЯ ВЫЛЕТАЮЩИХ СИМВОЛОВ --- */
.char-span {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    animation: textRise 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.char-space {
    display: inline-block;
    width: 0.35em;
}

@keyframes textRise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- АДАПТАЦИЯ ПОД ТЕЛЕФОНЫ --- */
@media (max-width: 992px) {
    .hero-title { font-size: 55px; letter-spacing: 3px; }
    .hero-slogan { font-size: 12px; letter-spacing: 2px; }
    
    .btn-cyber-social {
        width: 50px; /* На телефонах возвращаем компактный размер */
        height: 50px;
        font-size: 20px;
    }
}

/* --- СТАТИСТИКА ВНИЗУ (DYNAMIC ISLAND СТИЛЬ) --- */
.hero-stats-wrapper {
    position: absolute;
    bottom: 40px; /* Отступ от низа, чтобы плавало */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.hero-stats-island {
    background: rgba(10, 10, 10, 0.95); /* Строгий черный */
    backdrop-filter: blur(15px); /* Легкое размытие заднего фона */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Чуть заметная грань для объема */
    border-radius: 50px; /* Форма капсулы */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; 
    padding: 15px 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9); /* Мощная тень вниз */
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number-wrapper {
    font-size: 32px; /* Чуть компактнее для элегантности */
    font-weight: 900;
    color: #ffffff; /* Полностью белый */
    display: flex;
    align-items: center;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-plus {
    color: #ffffff; /* Никакого красного */
    margin-left: 5px;
}

/* Элегантная серая линия между двумя блоками статистики */
.stat-divider {
    width: 1px;
    height: 35px;
    background: rgba(255, 255, 255, 0.15); 
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    color: #888888; /* Строгий серый цвет */
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Адаптация плашки под мобильные устройства */
@media (max-width: 768px) {
    .hero-stats-island {
        flex-direction: column;
        gap: 15px;
        padding: 20px 40px;
        border-radius: 30px;
    }
    .stat-divider {
        width: 80%;
        height: 1px;
    }
}

/* --- БЛОК ПЕРЕВАГ (FEATURES) --- */
.features-section {
    padding: 100px 0 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Обгортка для того, щоб не ламалася анімація появи (AOS) */
.feature-wrapper {
    display: flex;
    height: 100%;
}

.feature-card {
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    
    /* Дуже красива і плавна анімація "з пружинкою" */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease; 
}

/* --- ЕФЕКТ ПРИ НАВЕДЕННІ НА ОБГОРТКУ --- */
.feature-wrapper:hover .feature-card {
    /* Картка цілком їде на 8px вліво і 8px вгору */
    transform: translate(-8px, -8px); 
    
    /* Розсіяна напівпрозора червона тінь */
    box-shadow: 12px 12px 18px rgba(255, 51, 51, 0.4); 
}

.feature-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Легкий зум фотографії при наведенні */
.feature-wrapper:hover .feature-img img {
    transform: scale(1.05);
}

.feature-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.feature-number {
    color: #ff3333;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 5px;
}

.feature-title {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.feature-text {
    color: #b3b3b3;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Адаптація під планшети та телефони */
@media (max-width: 1100px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* --- ГЛАВНЫЙ ФОН САЙТА --- */
body {
    background-color: #080808; 
    color: #ffffff;
    overflow-x: hidden;
}

/* --- ОБЕРТКА --- */
.cyber-wrapper {
    position: relative;
    z-index: 2;
}

/* Удаляем старый #bg, он больше не нужен */

/* --- ЧЕРЕДОВАНИЕ ФОНОВ ДЛЯ БЛОКОВ --- */
/* Темно-серый (Блоки 2, 4, 6...) */
.team-section,
.partners-section,
.about-section,
.ats-section,
.gallery-section {
    background-color: #0d0d0d; 
}

/* Темно-серый, но чуть светлее (Блоки 3, 5, 7...) */
.news-section,
.features-section,
.crimeadmin-section,
.faq-section {
    background-color: #141414; 
}

/* Добавляем внутренние отступы секциям, чтобы текст не прилипал к краям фона */
.team-section, .news-section, .partners-section, 
.features-section, .about-section, .crimeadmin-section, 
.ats-section, .faq-section, .gallery-section {
    padding: 100px 0;
}

/* --- КОНТЕЙНЕРЫ КОНТЕНТА --- */
.container {
    max-width: 1300px; 
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2; /* Выше лазеров */
}

/* --- СЕКЦИИ --- */
.team-section, .about-section {
    padding: 100px 0;
    position: relative;
}

/* --- ЗАГОЛОВКИ --- */
.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ff3333;
    margin: 15px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.6);
}

/* --- КАРТОЧКИ КОМАНДЫ --- */
.team-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Нова обгортка, як у feature-wrapper */
.team-wrapper {
    display: flex;
    height: 100%;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background-color: #1e1e1e; 
    border: none;
    border-radius: 10px; 
    padding: 40px 20px;
    width: 280px;
    text-align: center;
    position: relative;
    z-index: 1; 
    
    /* Точно така ж анімація, як у feature-card */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

/* ЕФЕКТ ПРИ НАВЕДЕННІ НА ОБГОРТКУ (аналог feature-wrapper:hover .feature-card) */
.team-wrapper:hover .team-card {
    transform: translate(-8px, -8px);
    box-shadow: 12px 12px 18px rgba(255, 51, 51, 0.4);
    z-index: 10; 
}

/* Обгортка аватару */
.team-img-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px auto;
    position: relative;
}

/* Червоне неонове кільце (рамка) */
.team-img-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    border: 3px solid #ff3333;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.4);
    z-index: 1;
}

.team-img-wrapper img {
    position: relative;
    z-index: 2; 
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease-in-out;
}

/* Аватар вилітає з рамки і провертається при наведенні на обгортку */
.team-wrapper:hover .team-img-wrapper img {
    transform: scale(1.3) rotate(15deg); 
    box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.7); 
}

.team-card h3 {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.team-wrapper:hover h3 {
    color: #ff3333; 
}

.team-card .role {
    font-size: 13px;
    color: #b3b3b3; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 1024px) {
    .team-grid {
        flex-wrap: wrap;
    }
}

/* --- БЛОК ПРО НАС (ОНОВЛЕНИЙ) --- */
.about-container-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.about-left {
    flex: 1;
    max-width: 600px;
}

.about-left h2.section-title {
    text-align: left;
}

.about-left h2.section-title::after {
    margin: 15px 0 0 0;
}

.about-text-content p {
    text-align: justify; 
    font-size: 16px;
    line-height: 1.8;
    color: #eeeeee;
    margin-bottom: 20px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.about-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- ВАНТАЖІВКА (СТАТИЧНА ПІСЛЯ ВИЛЬОТУ) --- */
.truck-parallax {
    width: 100%;
    max-width: 700px;
    height: auto;
    filter: drop-shadow(5px 5px 15px rgba(0, 0, 0, 0.5));
}

@media (max-width: 992px) {
    .about-container-new {
        flex-direction: column;
        text-align: center;
    }
    .about-left {
        max-width: 100%;
    }
    .about-left h2.section-title {
        text-align: center;
    }
    .about-left h2.section-title::after {
        margin: 15px auto 0;
    }
    .about-text-content p {
        text-align: center;
    }
    
    .truck-parallax:hover {
        transform: translate(0, 0);
    }

}

/* --- БЛОК БОТА CrimeADMIN --- */
.crimeadmin-section {
    padding: 50px 0 100px; /* Відступи секції */
    overflow: hidden; /* Щоб збільшене фото не робило горизонтальний скролл */
}

.crimeadmin-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px; /* Відстань між фото і текстом */
}

/* Ліва колонка (Фото) */
.crimeadmin-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* --- СТАТИЧНЕ ФОТО БОТА CrimeADMIN --- */
.bot-img-static {
    width: 100%;
    max-width: 475px; 
    height: auto;
    transform: translateX(-30px);
    filter: drop-shadow(-5px 10px 20px rgba(0, 0, 0, 0.6));
}

/* Права колонка (Текст) */
.crimeadmin-right {
    flex: 1;
    max-width: 600px;
}

/* Заголовок притискаємо вправо */
.crimeadmin-right h2.section-title {
    text-align: right;
}

/* Лінію під заголовком теж притискаємо вправо */
.crimeadmin-right h2.section-title::after {
    margin: 15px 0 0 auto;
}

/* Текст вирівнюємо в лінійку (по ширині) */
.crimeadmin-text-content p {
    text-align: justify; 
    font-size: 16px;
    line-height: 1.8;
    color: #eeeeee;
    margin-bottom: 20px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Адаптація для телефонів та планшетів */
@media (max-width: 992px) {
    .crimeadmin-container {
        /* На мобільних міняємо порядок: спочатку текст, потім фото */
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }
    
    .bot-img-static {
        /* На мобільних прибираємо початковий зсув вліво */
        transform: translateX(0);
        max-width: 90%; /* Робимо компактнішим на телефоні */
    }
    
    .bot-img-static:hover {
        /* На мобільних прибираємо рух при наведенні, залишаємо тільки тінь */
        transform: translateX(0) translateY(0);
    }

    .crimeadmin-right {
        max-width: 100%;
    }
    
    .crimeadmin-right h2.section-title {
        text-align: center;
    }
    
    .crimeadmin-right h2.section-title::after {
        margin: 15px auto 0;
    }
    
    .crimeadmin-text-content p {
        text-align: center;
    }
}

/* --- БЛОК ATS (АНАЛОГ CrimeROUTE) --- */
.ats-section {
    padding: 50px 0 100px;
    overflow: hidden;
}

.ats-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Ліва колонка (Текст) */
.ats-left {
    flex: 1;
    max-width: 600px;
}

.ats-left h2.section-title {
    text-align: left;
}

.ats-left h2.section-title::after {
    margin: 15px 0 0 0;
}

.ats-text-content p {
    text-align: justify; 
    font-size: 16px;
    line-height: 1.8;
    color: #eeeeee;
    margin-bottom: 20px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* Права колонка (Фото) */
.ats-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* --- СТАТИЧНЕ ФОТО ATS --- */
.ats-img-static {
    width: 850px; 
    max-width: none; 
    flex-shrink: 0; 
    height: auto;
    transform: translateX(80px); 
    filter: drop-shadow(5px 10px 20px rgba(0, 0, 0, 0.6));
}
/* Блок .ats-img-static:hover ПОВНІСТЮ ВИДАЛИ */

/* Адаптація для телефонів */
@media (max-width: 992px) {
    .ats-container {
        flex-direction: column; 
        text-align: center;
        gap: 30px;
    }
    
    .ats-left {
        max-width: 100%;
    }
    .ats-left h2.section-title {
        text-align: center;
    }
    .ats-left h2.section-title::after {
        margin: 15px auto 0;
    }
    .ats-text-content p {
        text-align: center;
    }

    .ats-img-static {
        width: 100%; 
        max-width: 90%;
        transform: translateX(0);
    }
    
    .ats-img-static:hover {
        transform: translateX(0) translateY(0);
    }
}

/* --- БЛОК ПАРТНЕРИ --- */
.partners-section {
    padding: 100px 0;
    position: relative;
}

.partners-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partner-card {
    display: block;
    text-decoration: none;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    width: 200px;
}

.partner-card:hover {
    transform: translateY(-10px);
}

.partner-img-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px auto;
    border-radius: 25px; /* Скругленный квадрат, как на твоем скриншоте */
    overflow: hidden;
    background-color: #111111; /* Темный фон на случай прозрачного логотипа */
    border: 2px solid #222222;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Чтобы логотип красиво заполнял квадрат */
    transition: transform 0.5s ease;
}

/* Эффекты при наведении */
.partner-card:hover .partner-img-wrapper {
    border-color: #ff3333;
    box-shadow: 0 10px 30px rgba(255, 51, 51, 0.4);
}

.partner-card:hover .partner-img-wrapper img {
    transform: scale(1.1); /* Легкое увеличение логотипа */
}

.partner-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    transition: color 0.3s ease;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8); /* Тень для читаемости поверх лазеров */
}

.partner-card:hover h3 {
    color: #ff3333;
}

/* --- КНОПКА "ПОДАТИ ЗАЯВКУ" (В СТИЛЕ ХЕДЕРА) --- */
.btn-primary {
    background-color: transparent;
    color: #ffffff;
    padding: 15px 35px; /* Слегка крупнее, чем в шапке */
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3); /* Светлая рамка */
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    margin-top: 10px;
}

/* ИГРОВОЙ ЭФФЕКТ ПРИ НАВЕДЕНИИ */
.btn-primary:hover {
    background-color: transparent;
    color: #ffffff;
    border-color: #ff3333;
    transform: translateY(-3px) scale(1.05); /* Вылет */
    text-shadow: 2px 2px 0px #ff3333; /* Жесткая тень текста */
    box-shadow: 4px 4px 0px #ff3333; /* Жесткая тень кнопки */
}

/* --- БЛОК FAQ --- */
.faq-section {
    padding: 100px 0;
    position: relative;
}

.faq-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
}

/* Ліва колонка */
.faq-left {
    flex: 1;
    max-width: 500px;
}

.faq-left h2 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.faq-left p {
    font-size: 16px;
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 35px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
}

/* Права колонка (Акордеон) */
.faq-right {
    flex: 1;
    width: 100%;
}

.accordion-item {
    background: rgba(17, 17, 17, 0.7);
    border: 1px solid #222222;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.accordion-item.active {
    border-color: #ff3333;
    box-shadow: 0 5px 25px rgba(255, 51, 51, 0.2);
    background: rgba(17, 17, 17, 0.9);
}

.accordion-header {
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.accordion-header:hover {
    color: #ff3333;
}

.accordion-header i {
    transition: transform 0.4s ease;
    color: #ff3333;
}

/* Переворот стрілочки при відкритті */
.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

/* Схований текст відповіді */
.accordion-content {
    max-height: 0; /* Висота 0 за замовчуванням */
    overflow: hidden;
    transition: max-height 0.4s ease; /* Плавне розкриття */
}

.accordion-content p {
    padding: 0 25px 20px 25px;
    color: #aaaaaa;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Адаптація для телефонів та планшетів */
@media (max-width: 992px) {
    .faq-container {
        flex-direction: column;
    }
    .faq-left {
        max-width: 100%;
        text-align: center;
        margin-bottom: 40px;
    }
    .faq-left h2 {
        font-size: 42px;
    }
}

/* --- БЛОК ГАЛЕРЕЯ --- */
.gallery-section {
    padding: 100px 0;
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.gallery-item {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 2px solid transparent;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: #ff3333;
    box-shadow: 0 10px 25px rgba(255, 51, 51, 0.4);
    z-index: 2;
    position: relative;
}

/* --- LIGHTBOX (Повноекранний перегляд) - ОНОВЛЕНО --- */
.lightbox {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* НОВЕ: Початковий стан - приховано, але готово до анімації */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Щоб не перекривало кліки, коли невидиме */
    transition: all 0.4s ease-in-out; /* Плавна поява/зникнення фону */
}

/* Клас active робить його видимим */
.lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-content {
    /* НОВЕ: Зменшений розмір (було 85%) */
    max-width: 75%;
    max-height: 75vh;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(255, 51, 51, 0.4);
    border: 2px solid #ff3333;
    object-fit: contain;
    
    /* НОВЕ: Базовий стан для анімації відкриття/закриття */
    transform: scale(0.9); /* Трохи зменшене */
    opacity: 0;
    transition: all 0.4s ease-in-out;
}

/* Коли lightbox активний, картинка стає нормальною */
.lightbox.active .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

/* НОВЕ: Клас для плавного перемикання між фото */
.lightbox-content.switching {
    opacity: 0 !important;
    transform: scale(0.95) !important;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.lightbox-close:hover {
    color: #ff3333;
    text-shadow: 0 0 10px #ff3333;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(17, 17, 17, 0.8);
    color: #fff;
    border: 1px solid #ff3333;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: #ff3333;
    box-shadow: 0 0 20px #ff3333;
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

@media (max-width: 768px) {
    .lightbox-content { max-width: 90%; max-height: 60vh; }
    .lightbox-prev { left: 10px; width: 45px; height: 45px; font-size: 18px; }
    .lightbox-next { right: 10px; width: 45px; height: 45px; font-size: 18px; }
    .gallery-item { height: 150px; }
}

/* --- ФУТЕР (ПІДВАЛ САЙТУ) --- */
.site-footer {
    background-color: #080808; /* Глибокий темний фон, трохи темніший за основний сайт */
    padding: 70px 0 20px;
    border-top: 2px solid #222;
    position: relative;
    z-index: 10; /* Щоб футер точно був поверх усього */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

/* 1 колонка: Лого і текст */
.about-col .logo {
    margin-bottom: 15px;
}

.about-col p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* 4 картинки соцмереж */
.social-img-links {
    display: flex;
    gap: 15px;
}

.social-img-links a {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 8px; /* Легке заокруглення квадратів */
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.3s ease;
    background-color: #111;
}

.social-img-links a img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Щоб картинка не обрізалась */
    padding: 5px; /* Невеликий відступ всередині кнопки */
    transition: all 0.3s ease;
}

.social-img-links a:hover {
    border-color: #ff3333;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.3);
}

/* Заголовки колонок */
.footer-col h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
}

/* Червона рисочка під заголовками (як у референсі, але червона) */
.footer-col h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: #ff3333;
    margin-top: 10px;
}

/* Списки посилань */
.nav-col ul, .contact-col ul {
    list-style: none;
}

.nav-col li, .contact-col li {
    margin-bottom: 15px;
}

.nav-col a, .contact-col a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Стрілочки для навігації */
.nav-col a::before {
    content: '\f054'; /* Іконка стрілочки з FontAwesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ff3333;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-col a:hover, .contact-col a:hover {
    color: #ff3333;
}

.nav-col a:hover::before {
    transform: translateX(3px); /* Стрілочка їде вправо при наведенні */
}

/* Іконки для контактів */
.contact-col i {
    color: #ff3333;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Копірайт внизу */
.footer-bottom {
    text-align: center;
    padding-top: 25px;
}

.footer-bottom p {
    color: #555;
    font-size: 13px;
}

/* Адаптація під мобільні */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
}

/* Стилі для юридичних сторінок (Privacy/Terms) */
.legal-page {
    background-color: #1a1a1a;
}

.legal-section {
    padding: 150px 0 100px;
}

.last-updated {
    text-align: center;
    color: #ff3333;
    font-size: 14px;
    margin-top: -40px;
    margin-bottom: 50px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(17, 17, 17, 0.5);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #333;
    line-height: 1.8;
}

.legal-content h3 {
    color: #ff3333;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 22px;
}

.legal-content p, .legal-content li {
    color: #ccc;
    font-size: 16px;
}

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.contact-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.contact-list i {
    color: #ff3333;
    margin-right: 10px;
}

.contact-list a {
    color: #fff;
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;

}

/* --- АДАПТАЦІЯ ХЕДЕРА --- */
.mobile-menu-btn {
    display: none; /* Ховаємо кнопку на комп'ютерах */
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    z-index: 1001; /* Щоб кнопка завжди була поверх меню */
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

@media (max-width: 992px) {
    header {
        width: 90%;
        padding: 10px 20px;
        border-radius: 30px;
    }

    /* ДОБАВЬ ЭТОТ БЛОК, чтобы на телефоне меню вернулось в шторку */
    .main-nav {
        position: static; 
        transform: none;
    }

    .mobile-menu-btn {
        display: block; 
    }

    .header-content {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 260px;
        height: 100vh;
        background: rgba(12, 12, 12, 0.98); /* Черный фон */
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1); /* Серая полоска вместо красной */
        z-index: 1000;
        padding: 50px 20px;
        border-radius: 30px 0 0 30px; /* Скругление шторки слева */
    }

    .header-content.active {
        right: 0; 
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        margin-bottom: 40px;
    }

    .header-actions {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .btn-header-bw {
        text-align: center;
        width: 100%; 
    }
}

/* --- СЕКЦІЯ НОВИН --- */
.news-section {
    padding: 100px 0 50px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Нова обгортка, як у feature-wrapper */
.news-wrapper {
    display: flex;
    height: 100%;
}

.news-card {
    background-color: #1e1e1e; 
    border: none; 
    border-radius: 10px; 
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 100%;
    
    /* Точно така ж анімація, як у feature-card */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

/* ЕФЕКТ ПРИ НАВЕДЕННІ НА ОБГОРТКУ (аналог feature-wrapper:hover .feature-card) */
.news-wrapper:hover .news-card {
    transform: translate(-8px, -8px); 
    box-shadow: 12px 12px 18px rgba(255, 51, 51, 0.4);
}

.news-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-wrapper:hover .news-img-wrapper img {
    transform: scale(1.05);
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: transparent;
}

.news-date {
    color: #ff3333;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-title {
    font-size: 20px;
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.4;
    font-weight: 700;
}

.news-author {
    color: #b3b3b3; /* Зробили світлішим, щоб гармоніювало з фоном */
    font-size: 13px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    color: #ff3333;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-card:hover .read-more {
    color: #ffffff;
}

.news-card:hover .read-more i {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

/* --- МОДАЛЬНЕ ВІКНО НОВИН (ВІДКРИТА НОВИНА) --- */
.news-modal-content {
    background-color: #1e1e1e; /* Такий самий суворий фон */
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    border-radius: 10px; /* Суворі кути */
    border: none; /* Прибрали червону обводку */
    
    /* Додали глибоку 3D-тінь, щоб вікно красиво "висіло" над сайтом */
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 51, 51, 0.2);
    
    overflow-y: auto;
    position: relative;
}

.news-modal-content img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-bottom: 3px solid #ff3333; /* Залишили червону лінію для акценту */
}

.news-modal-text {
    padding: 40px;
    color: #cccccc;
    font-size: 16px;
    line-height: 1.8;
}

.news-modal-text h3 {
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.3;
    text-transform: uppercase; /* Робить заголовок більш суворим */
}

.news-modal-text .news-date {
    color: #ff3333;
    display: flex;
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 700;
}

.news-modal-text p {
    margin-bottom: 15px;
}

.news-modal-text blockquote {
    background: #111111; /* Ще темніший фон для цитат */
    border-left: 4px solid #ff3333;
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #fff;
    font-size: 18px;
    border-radius: 0 10px 10px 0;
}

/* Кастомний скроллбар для попапа новин */
.news-modal-content::-webkit-scrollbar {
    width: 8px;
}

.news-modal-content::-webkit-scrollbar-track {
    background: #111111;
    border-radius: 0 10px 10px 0;
}

.news-modal-content::-webkit-scrollbar-thumb {
    background: #ff3333;
    border-radius: 4px;
}

/* --- КНОПКА "ВСІ НОВИНИ" --- */
.btn-news {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ff3333; /* Фірмовий червоний контур */
    border-radius: 30px; /* Капсульна форма під стиль сайту */
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-news i {
    transition: transform 0.3s ease;
}

/* Ефект при наведенні: заливка, виліт вгору та рух стрілочки */
.btn-news:hover {
    background-color: #ff3333;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(255, 51, 51, 0.4);
    transform: translateY(-4px);
}

.btn-news:hover i {
    transform: translateX(6px);
}

/* Адаптація для телефонів (щоб кнопка красиво ставала під заголовком) */
@media (max-width: 768px) {
    .news-header {
        flex-direction: column;
        gap: 20px;
    }
}