/* Общие сбросы и переменные */
:root {
    --color-primary: #e50914; /* Красный акцент из оригинала */
    --color-dark: #141414;
    --color-light: #ffffff;
    --color-gray: #aaaaaa;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
html {
    scroll-behavior: smooth !important; /* Принудительный плавный скролл */
    scroll-padding-top: 80px;          /* Отступ сверху, чтобы шапка не перекрывала текст */
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

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

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-light);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: #b8070f;
    border-color: #b8070f;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-light);
    border: 2px solid var(--color-light);
}

.btn-outline:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
}

/* Шапка сайта */
.header {
    background-color: rgba(20, 20, 20, 0.95);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* --- СТИЛИ ДЛЯ КАРТИНКИ-ЛОГОТИПА --- */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
    line-height: 0; /* Убирает лишние нижние отступы у ссылки-обертки */
}

.logo-img {
    height: 68px;     /* Оптимальная высота логотипа для шапки */
    width: auto;      /* Пропорции сохраняются автоматически */
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.03); /* Легкий интерактивный эффект при наведении */
}

/* Корректировка для подвала (опционально, если хотите сделать логотип в футере крупнее) */
.footer-about .logo-img {
    height: 68px;
}

@media (max-width: 576px) {
    .logo-img {
        height: 40px; /* Уменьшаем высоту на смартфонах, чтобы бургер-кнопке справа было просторно */
    }
}


.nav a {
    color: var(--color-light);
    text-decoration: none;
    margin: 0 15px;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--color-primary);
}

/* Главная секция должна быть относительной */
.hero {
    position: relative;
    overflow: hidden; /* Прячет лишнее видео, если оно шире экрана */
    min-height: 100vh; /* Или ваша текущая высота секции */
    display: flex;
    align-items: center;
}

/* Стили для самого видео */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Растягивает видео без искажения пропорций */
    z-index: 1; /* Видео в самом низу */
}

/* Затемняющий слой и контент должны быть выше видео */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Полупрозрачный цвет, можно сделать светлее/темнее */
    backdrop-filter: blur(10px);        /* Сила размытия (чем больше px, тем сильнее блюр) */
    -webkit-backdrop-filter: blur(10px); /* Поддержка для старых версий Safari */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3; /* Текст на самом верхнем слое */
}

.hero h1 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #fff;
}

.hero h1 .text-light {
    font-weight: 300;
}

.hero p {
    font-size: 18px;
    color: var(--color-gray);
    margin-bottom: 40px;
}

/* --- АДАПТИВНОСТЬ (Медиа-запросы) --- */

@media (max-width: 992px) {
    .nav {
        display: none; /* Скрываем десктопное меню на планшетах */
    }
    .hero h1 {
        font-size: 38px;
    }
}
@media (max-width: 576px) {
    /* Переопределяем выравнивание в шапке для мобильных */
    .header-container {
        display: flex;         /* Включаем флекс-режим */
        flex-direction: row;   /* Элементы встают строго в строчку (горизонтально) */
        justify-content: space-between; /* Распихивает логотип влево, а бургер вправо */
        align-items: center;   /* Выравнивает их идеально по центру относительно друг друга */
        height: 70px;          /* Задаем фиксированную аккуратную высоту шапки */
        padding: 0 20px;       /* Внутренние отступы по бокам */
    }

    /* Отключаем абсолютное позиционирование шапки на мобильных, 
       чтобы баннер под ней не перекрывал элементы */
    .header {
        position: relative;
    }

    /* Подгоняем высоту главного баннера с учетом новой высоты шапки */
    .hero {
        height: calc(100vh - 70px);
        min-height: 450px;
    }
}




/* --- РАЗДЕЛ: КАК МЫ РАБОТАЕМ --- */
.workflow {
    padding: 80px 0;
    background-color: #ffffff;
}

/* Заголовок секции */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .subtitle {
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 5px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-dark);
    letter-spacing: 1px;
}

/* Сетка этапов (Таймлайн) */
.steps-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 60px;
}

.step-card {
    flex: 1;
    background: #f8f9fa;
    padding: 30px 20px;
    border-radius: 6px;
    border-top: 4px solid #e0e0e0;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-top-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.step-number {
    font-size: 36px;
    font-weight: 900;
    color: #e0e0e0;
    line-height: 1;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.step-card:hover .step-number {
    color: var(--color-primary);
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-dark);
}

.step-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Информационные плашки (Сроки и Гарантия) */
.info-banners {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.info-banner {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: #fcfcfc;
    border: 1px solid #eaeaea;
    padding: 25px;
    border-radius: 6px;
}

.info-banner-icon {
    font-size: 40px;
    margin-right: 20px;
    line-height: 1;
}

.info-banner-text h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 5px;
}

.info-banner-text p {
    font-size: 14px;
    color: #555;
}

.workflow-action {
    text-align: center;
}

/* --- АДАПТИВНОСТЬ ДЛЯ ДАННОГО РАЗДЕЛА --- */

/* Планшеты (до 992px) */
@media (max-width: 992px) {
    .steps-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    .step-card {
        flex: calc(50% - 20px);
        min-width: 250px;
    }
    .info-banners {
        flex-direction: column;
        gap: 15px;
    }
}

/* Мобильные телефоны (до 576px) */
@media (max-width: 576px) {
    .workflow {
        padding: 50px 0;
    }
    .section-header h2 {
        font-size: 26px;
    }
    .step-card {
        flex: 1 1 100%;
    }
    .info-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .info-banner-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* --- БЛОК: ТИПЫ АВТОМОБИЛЕЙ (ТЕМНЫЙ) --- */
.car-types {
    padding: 80px 0;
    background-color: #1a1a1a; /* Темный фон секции */
    color: var(--color-light);
}

/* Специфичные настройки для заголовка на темном фоне */
.section-header-light h2 {
    color: var(--color-light) !important;
}

.section-desc {
    max-width: 600px;
    margin: 15px auto 0 auto;
    font-size: 15px;
    color: var(--color-gray);
    line-height: 1.5;
}

/* Сетка карточек */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колонки в ряд на ПК */
    gap: 20px;
    margin-top: 40px;
}

/* Сама карточка автомобиля */
.car-card {
    position: relative;
    height: 350px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: flex-end; /* Текст прижат к низу */
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Затемняющий фильтр поверх картинки */
.car-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
    transition: background 0.3s ease;
    z-index: 1;
}

/* Белая плашка-заголовок внизу */
.car-card-title {
    position: relative;
    z-index: 2;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--color-light);
    text-align: center;
    padding: 15px 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* Эффекты при наведении */
.car-card:hover {
    transform: translateY(-5px);
}

.car-card:hover .car-card-overlay {
    background: linear-gradient(to top, rgba(229, 9, 20, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%); /* Красный оттенок при ховере */
}

.car-card:hover .car-card-title {
    background-color: var(--color-primary);
    color: var(--color-light);
    border-top-color: var(--color-primary);
}

/* --- АДАПТИВНОСТЬ ДЛЯ ДАННОГО БЛОКА --- */

/* Планшеты (до 992px) */
@media (max-width: 992px) {
    .cars-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки в ряд */
    }
    .car-card {
        height: 280px;
    }
}

/* Мобильные телефоны (до 576px) */
@media (max-width: 576px) {
    .car-types {
        padding: 50px 0;
    }
    .cars-grid {
        grid-template-columns: 1fr; /* 1 колонка в ряд */
        gap: 15px;
    }
    .car-card {
        height: 220px;
    }
}

/* --- БЛОК: ВИДЫ УСЛУГ (СВЕТЛЫЙ) --- */
.services {
    padding: 80px 0;
    background-color: #f8f9fa;
}

/* Сетка каталога услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки в ряд на десктопе */
    gap: 30px;
    margin-top: 40px;
}

/* Стилизация карточки */
.service-card {
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Картинка услуги */
.service-img {
    height: 200px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Текстовый блок карточки */
.service-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Чтобы нижние элементы всегда выравнивались по одной линии */
}

.service-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.service-desc-short {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

/* Нижняя строка с ценой и кнопкой */
.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eeeeee;
}

.service-price {
    font-size: 13px;
    color: #777;
    font-weight: 500;
}

.service-price span {
    display: block;
    font-size: 18px;
    color: var(--color-primary);
    font-weight: 700;
}

/* Маленькая красная кнопка для карточек */
.btn-sm-primary {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 8px 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.btn-sm-primary:hover {
    background-color: #b8070f;
}

/* --- АДАПТИВНОСТЬ ДЛЯ ДАННОГО БЛОКА --- */

/* Ноутбуки и планшеты (до 992px) */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* Сетка 2х3 */
        gap: 20px;
    }
}

/* Мобильные телефоны (до 576px) */
@media (max-width: 576px) {
    .services {
        padding: 50px 0;
    }
    .services-grid {
        grid-template-columns: 1fr; /* Карточки встают друг под друга */
        gap: 20px;
    }
    .service-img {
        height: 180px;
    }
    .service-info {
        padding: 20px;
    }
}

/* --- БЛОК: ЛОГОТИПЫ БРЕНДОВ --- */
.brands-ticker {
    background-color: #111111;
    padding: 30px 0;
    border-bottom: 1px solid #222222;
}

.brands-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.brand-item {
    color: #444444;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    cursor: default;
}

.brand-item:hover {
    color: var(--color-primary); /* Подсветка логотипа при наведении */
}

/* --- БЛОК: О КОМПАНИИ --- */
.about {
    padding: 80px 0;
    background-color: #ffffff;
}

.about-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-left, .about-right {
    flex: 1;
}

.about-text p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Мини-сетка преимуществ */
.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 35px;
}

.about-feat-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.about-feat-item .feat-icon {
    font-size: 24px;
    line-height: 1;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    border-bottom: 2px solid #e0e0e0;
}

.about-feat-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.about-feat-item p {
    font-size: 13px;
    color: #777;
    line-height: 1.4;
}

/* Двойная галерея фотографий справа */
.about-gallery {
    position: relative;
    height: 450px;
}

.gallery-img-large {
    width: 80%;
    height: 380px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gallery-img-small {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    border: 6px solid #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* --- АДАПТИВНОСТЬ ДЛЯ ДАННЫХ БЛОКОВ --- */

/* Планшеты (до 992px) */
@media (max-width: 992px) {
    .brands-wrapper {
        justify-content: center;
        gap: 40px;
    }
    
    .about-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-left, .about-right {
        width: 100%;
    }
    
    .about-gallery {
        height: 380px;
    }
    .gallery-img-large {
        width: 100%;
        height: 100%;
    }
    .gallery-img-small {
        display: none; /* Скрываем накладывающееся фото на планшетах для экономии места */
    }
}

/* Мобильные телефоны (до 576px) */
@media (max-width: 576px) {
    .brands-ticker {
        padding: 20px 0;
    }
    .brand-item {
        font-size: 16px;
    }
    .about {
        padding: 50px 0;
    }
    .about-features {
        grid-template-columns: 1fr; /* Иконки встают в одну колонку */
        gap: 20px;
    }
    .about-gallery {
        height: 250px;
    }
}

/* --- БЛОК: ФОРМА ОБРАТНОЙ СВЯЗИ (CTA) --- */
.cta-section {
    position: relative;
    background: url('https://unsplash.com') center center/cover no-repeat;
    padding: 80px 0;
    color: var(--color-light);
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.85);
    z-index: 1;
}

.cta-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.cta-info {
    flex: 1;
    max-width: 550px;
}

.cta-info h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--color-light);
}

.cta-info p {
    font-size: 16px;
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 30px;
}

.cta-phone span {
    display: block;
    font-size: 14px;
    color: var(--color-gray);
    margin-bottom: 5px;
}

.cta-phone a {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.cta-phone a:hover {
    color: #ffffff;
}

/* Сама форма */
.cta-form-block {
    flex: 1;
    max-width: 450px;
    width: 100%;
}

.cta-form {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 6px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.cta-form h3 {
    color: var(--color-dark);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
}

.cta-form input {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 15px;
    border: 1px solid #dddddd;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.cta-form input:focus {
    border-color: var(--color-primary);
}

.cta-form .btn {
    width: 100%;
    border: none;
    padding: 15px;
}

/* --- ПОДВАЛ САЙТА (FOOTER) --- */
.footer {
    background-color: #111111;
    color: var(--color-gray);
    padding-top: 60px;
    border-top: 4px solid var(--color-primary);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col {
    flex: 1;
}

.footer-about .logo {
    margin-bottom: 15px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-socials a {
    display: inline-block;
    color: var(--color-light);
    background-color: #222222;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 4px;
    margin-right: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.footer-socials a:hover {
    background-color: var(--color-primary);
}

.footer-col h4 {
    color: var(--color-light);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--color-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-contacts {
    list-style: none;
}

.footer-contacts li {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.footer-contacts a {
    color: var(--color-gray);
    text-decoration: none;
}

/* Нижняя панель копирайта */
.footer-bottom {
    background-color: #0a0a0a;
    padding: 20px 0;
    font-size: 13px;
    border-top: 1px solid #1f1f1f;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom a {
    color: #666;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--color-gray);
}

/* --- АДАПТИВНОСТЬ ДЛЯ ЭТИХ РАЗДЕЛОВ --- */

/* Планшеты (до 992px) */
@media (max-width: 992px) {
    .cta-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .cta-info {
        max-width: 100%;
    }
    .footer-container {
        flex-wrap: wrap;
    }
    .footer-col {
        flex: 1 1 calc(50% - 20px);
    }
    .footer-about {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }
}

/* Мобильные телефоны (до 576px) */
@media (max-width: 576px) {
    .cta-section {
        padding: 50px 0;
    }
    .cta-info h2 {
        font-size: 28px;
    }
    .cta-phone a {
        font-size: 22px;
    }
    .cta-form {
        padding: 25px 20px;
    }
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    .footer-col {
        width: 100%;
    }
    .footer-bottom-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
/* --- ОКНО КУКИ (COOKIE NOTICE) --- */
.cookie-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    color: var(--color-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
    padding: 20px;
    z-index: 9999;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

/* Скрытое состояние окна */
.cookie-hidden {
    opacity: 0;
    transform: translateY(50px);
    pointer-events: none; /* Чтобы скрытое окно не мешало кликам */
}

.cookie-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text {
    font-size: 14px;
    line-height: 1.5;
    color: #444444;
}

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

.cookie-text a:hover {
    text-decoration: none;
}

/* Специальная кнопка для окна */
.btn-cookie {
    background-color: var(--color-dark);
    color: var(--color-light);
    border: none;
    padding: 10px 25px;
    font-size: 13px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.btn-cookie:hover {
    background-color: var(--color-primary);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 576px) {
    .cookie-notice {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 15px;
    }
    .cookie-container {
        flex-direction: column;
        text-align: center;
    }
    .btn-cookie {
        width: 100%;
    }
}

/* --- СТИЛИ ДЛЯ ГАЛОЧКИ СОГЛАСИЯ --- */
.form-policy {
    margin-bottom: 20px;
    text-align: left;
}

.policy-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

/* Стилизуем встроенный чекбокс */
.policy-label input[type="checkbox"] {
    width: auto; /* Сбрасываем общую ширину инпутов из формы */
    margin: 3px 0 0 0;
    accent-color: var(--color-primary); /* Окрашивает стандартную галочку в красный цвет темы */
    cursor: pointer;
    flex-shrink: 0; /* Защищает чекбокс от сжатия при длинном тексте */
}

.policy-text {
    font-size: 13px;
    color: #666666;
    line-height: 1.4;
}

.policy-text a {
    color: var(--color-dark);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.policy-text a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/* --- СТИЛИ ДЛЯ БУРГЕР-МЕНЮ --- */

/* Скрываем телефон в меню на десктопе */
.mobile-phone-btn {
    display: none !important;
}

/* Кнопка бургера (по умолчанию скрыта на ПК) */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-light);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Анимация бургера в состояние "Крестик" при активации */
.burger-btn.is-active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.burger-btn.is-active span:nth-child(2) {
    opacity: 0;
}

.burger-btn.is-active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}


/* --- МЕДИА-ЗАПРОСЫ ДЛЯ АДАПТИВА --- */

@media (max-width: 992px) {
    /* Показываем кнопку бургера */
    .burger-btn {
        display: flex;
    }

    /* Скрываем десктопный телефон, чтобы не занимал место */
    .header-phone-btn {
        display: none !important;
    }

    /* Превращаем навигацию в выезжающую панель */
    .nav {
        position: fixed;
        top: 0;
        right: -100%; /* Изначально меню спрятано за экраном справа */
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background-color: rgba(20, 20, 20, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 100px 40px;
        display: flex;
        flex-direction: column;
        gap: 25px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 999;
    }

    /* Состояние, когда мобильное меню открыто */
    .nav.is-open {
        right: 0;
    }

    /* Стили ссылок внутри мобильного меню */
    .nav a {
        margin: 0;
        font-size: 20px;
        font-weight: 600;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 10px;
    }

    /* Показываем кнопку телефона внутри меню */
    .mobile-phone-btn {
        display: inline-block !important;
        text-align: center;
        margin-top: 20px !important;
        border-color: var(--color-primary) !important;
        background-color: var(--color-primary) !important;
    }
    
    /* Запрет скролла страницы при открытом меню */
    body.no-scroll {
        overflow: hidden;
    }
}


/* --- АНИМАЦИЯ ПОЯВЛЕНИЯ ПРИ СКРОЛЛЕ --- */

/* Начальное состояние: элемент прозрачный и немного смещен вниз на 30px */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform; /* Оптимизация для видеокарты */
}

/* Финальное состояние: элемент становится видимым и встает на свое место */
.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Дополнительно: небольшая задержка для карточек, чтобы они появлялись по очереди */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
/* --- КНОПКА НАВЕРХ --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary); /* Наш фирменный красный цвет */
    color: var(--color-light);
    border: none;
    border-radius: 50%; /* Делаем кнопку круглой */
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999; /* Кнопка должна быть поверх других элементов, но под окном куки (9999) */
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
    opacity: 1;
    transform: scale(1);
}

.scroll-top-btn:hover {
    background-color: #b8070f; /* Темно-красный при наведении */
    transform: scale(1.1); /* Легкое увеличение при ховере */
}

/* Скрытое состояние кнопки (когда пользователь на первом экране) */
.scroll-top-hidden {
    opacity: 0;
    transform: scale(0.7);
    pointer-events: none; /* Запрещаем клики по скрытой кнопке */
}

/* Адаптивность для мобильных телефонов */
@media (max-width: 576px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}


/* --- КРУПНОЕ ЦЕНТРАЛЬНОЕ УВЕДОМЛЕНИЕ (ФИКС) --- */
.toast {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Затемнение фона сайта */
    backdrop-filter: blur(5px);           /* Размытие заднего плана */
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10005; /* Поверх всех элементов */
    padding: 20px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1;
    visibility: visible;
}

/* Скрытое состояние (плавно исчезает) */
.toast-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Белая карточка внутри уведомления (сделана больше) */
.toast-content {
    background-color: #ffffff;
    padding: 40px 50px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-top: 6px solid #27ae60; /* Зеленая полоса успеха сверху */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 500px;
    width: 100%;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Легкое сжатие карточки при скрытии */
.toast-hidden .toast-content {
    transform: scale(0.85);
}

/* Большая иконка */
.toast-icon {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1;
}

/* Большие тексты */
.toast-message h4 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.toast-message p {
    font-size: 16px;
    color: #555555;
    line-height: 1.5;
    margin: 0;
}

/* Адаптивность для мобильных телефонов */
@media (max-width: 576px) {
    .toast-content {
        padding: 30px 20px;
    }
    .toast-message h4 {
        font-size: 20px;
    }
    .toast-message p {
        font-size: 14px;
    }
}
