/* ==========================================================================
   1. СБРОС СТИЛЕЙ, ПЕРЕМЕННЫЕ И ГЛОБАЛЬНЫЕ НАСТРОЙКИ
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-light: #F8FAFC;         /* Благородный светлый фон */
    --bg-white: #FFFFFF;         /* Чистый белый для карточек */
    --bg-dark-blue: #0F172A;     /* Глубокий премиальный темно-синий */
    --bg-dark-card: #1E293B;     /* Контрастный сине-серый */
    --accent-orange: #FF5A00;    /* Раллийный оранжевый (строго для акцентов) */
    --accent-orange-hover: #D44B00;
    --text-main: #1E293B;        
    --text-gray: #64748B;        
    --text-light-gray: #94A3B8;  
    --border-color: #E2E8F0;     
}

html {
    scroll-behavior: smooth; /* Включает нативный плавный скролл по всему сайту */
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

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

.accent-orange {
    color: var(--accent-orange);
}

section {
    padding: 140px 0;
}

/* Общие заголовки секций в журнальном стиле */
.section-header {
    text-align: left; /* Асимметричная верстка влево */
    margin-bottom: 80px;
    max-width: 600px;
}

.section-subtitle {
    color: var(--accent-orange);
    text-transform: uppercase;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-size: 44px;
    font-weight: 900;
    color: var(--bg-dark-blue);
    letter-spacing: -1px;
    text-transform: uppercase;
}

.logo {
    text-decoration: none; /* Полный запрет на подчеркивание для всех логотипов */
    color: #ffffff;        /* Чтобы цвет оставался белым и не перебивался браузером */
}

/* Расширяем правило: теперь и внутри .section--dark, и внутри .contacts заголовок будет БЕЛЫМ */
.section--dark .section-title,
.contacts .section-title {
    color: var(--bg-white) !important;
}

/* ==========================================================================
   2. КОМПОНЕНТЫ: КНОПКИ (С АНИМАЦИЕЙ ГОНОЧНОГО БЛИКА)
   ========================================================================== */
.btn {
    position: relative;
    overflow: hidden;
    padding: 16px 35px;
    border-radius: 4px; /* Строгая геометрия */
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    text-decoration: none;
}

/* Эффект пролетающей вспышки при наведении */
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: none;
}

.btn:hover::before {
    animation: speed-flash 0.6s forwards;
}

@keyframes speed-flash {
    100% {
        left: 150%;
    }
}

.btn--primary {
    background-color: var(--accent-orange);
    color: var(--bg-white);
    border: none;
}

.btn--primary:hover {
    background-color: var(--accent-orange-hover);
    box-shadow: 0 10px 25px rgba(255, 90, 0, 0.3);
    transform: translateY(-2px);
}

/* ТА САМАЯ КНОПКА: ТЕМНЫЙ ФОН И ЧИСТО БЕЛЫЙ ТЕКСТ 🔥 */
.btn--hero-order {
    background-color: var(--bg-dark-blue) !important; 
    color: #FFFFFF !important;                        /* БЕЛЫЙ ЦВЕТ ТЕКСТА */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--hero-order:hover {
    background-color: var(--bg-dark-card) !important;
    color: #FFFFFF !important;                        /* Текст остается белым */
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.4);
    transform: translateY(-2px);
}

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

.btn--outline:hover {
    background-color: var(--bg-dark-blue);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* ==========================================================================
   3. ШАПКА САЙТА (HEADER)
   ========================================================================== */
.header {
    padding: 24px 0;
    background: rgba(15, 23, 42, 0.85); /* Монолитный темный полупрозрачный фон */
    backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Тонкая строгая грань */
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    color: var(--bg-white);
    font-size: 26px;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: -1px;
}

.header .nav {
    display: flex;
    align-items: center;
}

.header .nav__link {
    color: #94A3B8;
    text-decoration: none;
    margin-right: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.header .nav__link:hover {
    color: var(--bg-white);
}

/* Элементы управления (телефон + кнопка звонка для ПК) */
.header__actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header .phone {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

/* Мобильный телефон изначально прячем на компьютерах */
.header .phone--mobile {
    display: none;
}

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

.header .btn--outline:hover {
    background-color: var(--bg-white);
    color: var(--bg-dark-blue);
}

/* ==========================================================================
   4. ГЛАВНЫЙ ЭКРАН (HERO — СДВИГ ВЛЕВО И ЖУРНАЛЬНЫЙ КОНТРАСТ)
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('media/banner_01.avif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 100px;
    padding-bottom: 80px;
}

/* Глубокий градиент: слева уходит в тотальный черный, чтобы буквы читались идеально */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.98) 35%, rgba(15, 23, 42, 0.3) 100%);
    z-index: 1;
}

/* Сбрасываем центрирование только для секции Hero, чтобы увести текст влево */
.hero .container {
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 10% !important; /* Стильный отступ от левого края монитора */
    width: 100%;
}

.hero__container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start !important; 
    text-align: left !important;            
}

.hero__content {
    max-width: 650px;
    margin-left: 0 !important;                         
    margin-right: auto !important;                     
}

.hero__subtitle {
    color: var(--accent-orange);
    text-transform: uppercase;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 4px;
    display: inline-block;
    margin-bottom: 20px;
}

/* Контрастная типографика */
.hero__title {
    font-size: 42px;                        
    font-weight: 500;                       
    line-height: 1.1;
    color: var(--bg-white);
    margin-bottom: 30px;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.hero__title--huge {
    font-size: 82px;                        /* Огромное первое слово */
    font-weight: 900;                       
    letter-spacing: -3px;
    line-height: 0.85;
    display: inline-block;
    color: var(--bg-white);
}

.hero__descr {
    color: #CBD5E1;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero__btns {
    display: flex;
    gap: 20px;
}

.hero .btn--outline {
    border-color: var(--bg-white);
    color: var(--bg-white);
}

.hero .btn--outline:hover {
    background-color: var(--bg-white);
    color: var(--bg-dark-blue);
}

/* ==========================================================================
   5. СЕКЦИЯ УСЛУГ (SERVICES — ПОЛНАЯ СЕТКА С КАРТИНКАМИ)
   ========================================================================== */
.services {
    background-color: var(--bg-white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card__img-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-card__img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card__content {
    padding: 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card__title {
    font-size: 22px;
    font-weight: 900;
    color: var(--bg-dark-blue);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-card__descr {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-card__price {
    font-weight: 900;
    color: var(--bg-dark-blue);
    font-size: 20px;
    letter-spacing: -0.5px;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--bg-dark-blue);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

.service-card:hover .service-card__img-box img {
    transform: scale(1.06);
}

/* ==========================================================================
   6. СЕКЦИЯ О НАС (ABOUT)
   ========================================================================== */
.about {
    background-color: var(--bg-dark-blue);
    color: var(--bg-white);
}

.about__container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about__image {
    width: 45%;
}

.about__img {
    width: 100%;
    border-radius: 0; 
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.about__content {
    max-width: 550px;
}

.about__text {
    color: #94A3B8;
    font-size: 16px;
    line-height: 1.8;
    margin-top: 30px;
}

.about__stats {
    display: flex;
    gap: 60px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;    /* Центрирует весь блок на любых экранах */
    text-align: center;
}

.stat-item__digits {
    display: flex;
    justify-content: center; /* Центрирует цифры по горизонтали */
    align-items: baseline;   /* Выравнивает плюс/процент ровно по нижней линии шрифта */
}

.stat-item__num {
    font-size: 48px;
    font-weight: 900;
    color: var(--bg-white);
}

.stat-item__num-suffix {
    font-size: 32px;
    font-weight: 900;
    color: var(--accent-orange);
    margin-left: 2px;
}

.stat-item__text {
    color: var(--text-light-gray);
    font-size: 13px;
    font-weight: 600;
    margin-top: 5px;
}

/* ==========================================================================
   7. ОТЗЫВЫ (РАСПОРЕДЕЛЕНИЕ ИЗ МАКЕТА С АВАТАРКАМИ)
   ========================================================================== */
.reviews {
    padding: 120px 0;
    background-color: var(--bg-light);
}

.reviews__list {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Уменьшили зазор между карточками */
    max-width: 900px; /* Немного сузили контейнер для аккуратности */
    margin: 0 auto;
}

.review-card {
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px; /* Чуть уменьшили радиус под меньший размер */
    padding: 25px 30px; /* Сделали внутренние отступы меньше */
    display: flex;
    gap: 25px; /* Меньше расстояние между аватаркой и контентом */
    align-items: flex-start;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
}

/* Красивая круглая аватарка клиента — сделали меньше */
.review-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-card__content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.review-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px; /* Меньше отступ снизу */
}

.review-card__name {
    font-size: 16px; /* Чуть компактнее шрифт имени */
    font-weight: 700;
    color: var(--bg-dark-blue);
}

.review-card__stars {
    display: flex;
    gap: 3px;
}

.star-icon {
    width: 16px; /* Чуть меньше звездочки */
    height: 16px;
    color: #dfb33a;
}

.review-card__text {
    font-size: 14px; /* Меньше шрифт самого отзыва */
    line-height: 1.5;
    color: #333333;
    margin-bottom: 15px;
}

.review-card__date {
    font-size: 12px; /* Меньше дата */
    color: var(--text-gray);
    font-weight: 500;
}

@media (max-width: 768px) {
    .review-card {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        border-radius: 16px;
    }
    .review-card__top {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .review-card__avatar {
        width: 50px;
        height: 50px;
    }
}

/* ==========================================================================
   8. КОНТАКТЫ И ФОРМА ОБРАТНОЙ СВЯЗИ
   ========================================================================== */
.contacts {
    background-color: var(--bg-dark-blue);
    color: var(--bg-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contacts__container {
    display: flex;
    gap: 80px;
}

.contacts__form-side, .contacts__info-side {
    flex: 1;
}

.contacts__descr {
    color: var(--text-light-gray);
    margin-top: 15px;
    margin-bottom: 35px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form__input {
    background: #1E293B;
    border: none;
    padding: 18px 20px;
    color: var(--bg-white);
    font-family: inherit;
    font-size: 15px;
    border-radius: 4px;
}

.form__input:focus {
    outline: 2px solid var(--accent-orange);
}

.contacts__card {
    background: #1E293B;
    padding: 40px;
    border-left: 4px solid var(--accent-orange);
    border-radius: 4px;
    margin-bottom: 30px;
}

.contacts__card h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

.contacts__card p {
    color: #CBD5E1;
    margin-bottom: 12px;
    font-size: 15px;
}

.contacts__map {
    height: 320px;
    overflow: hidden;
    border-radius: 4px;
}

.contacts__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg) grayscale(100%);
}

/* ==========================================================================
   9. МОНУМЕНТАЛЬНЫЙ ФУТЕР
   ========================================================================== */
.footer {
    background-color: #090D16; 
    color: var(--bg-white);
    padding: 100px 0 40px 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 60px;
    margin-bottom: 40px;
}

.footer__brand .logo {
    color: var(--bg-white);
    font-size: 30px;
    letter-spacing: -1px;
    text-decoration: none;
    font-weight: 900;
}

.footer__brand-text {
    color: #64748B;
    font-size: 14px;
    line-height: 1.7;
    margin-top: 25px;
}

.footer__title {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: #94A3B8; 
}

.footer__list-item {
    margin-bottom: 15px;
    list-style: none;
}

.footer__link {
    color: #64748B;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer__link:hover {
    color: var(--bg-white);
}

.footer__info-text {
    color: #94A3B8;
    font-size: 14px;
    margin-bottom: 15px;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #475569;
    font-size: 13px;
}

.footer__socials {
    display: flex;
    gap: 25px;
}

.footer__social-link {
    color: #64748B;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.footer__social-link:hover {
    color: var(--bg-white);
}

/* ==========================================================================
   10. АДАПТИВНОСТЬ ПОД МОБИЛЬНЫЕ УСТРОЙСТВА
   ========================================================================== */
@media (max-width: 992px) {
    .hero .container {
        max-width: 100% !important;
        margin: 0 auto !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .hero__container { 
        justify-content: center !important; 
        text-align: center !important;
    }
    .hero__content {
        margin: 0 auto !important;
    }
    .hero__title { font-size: 32px; }
    .hero__title--huge { font-size: 58px; }

    .about__container, .contacts__container { 
        flex-direction: column; 
        text-align: center;
    }
    .section-header {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .about__image { 
        width: 100%; 
    }
    .gallery__grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .footer__grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .header .nav {
        display: none; 
    }
}

@media (max-width: 576px) {
    section {
        padding: 80px 0;
    }
    .hero__title {
        font-size: 26px;
    }
    .hero__title--huge { 
        font-size: 44px; 
    }
    .gallery__grid { 
        grid-template-columns: 1fr; 
    }
    .footer__grid { 
        grid-template-columns: 1fr; 
    }
    .footer__bottom { 
        flex-direction: column; 
        gap: 25px; 
    }
}

/* ==========================================================================
   11. СТРАНИЦА 404 (УЛЬТРА-КОНТРАСТ И ТЕМНАЯ ТЕМАТИКА)
   ========================================================================== */
.body-404 {
    background-color: #0b0f19; /* Фирменный глубокий темный */
    color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Декоративное неоновое свечение на заднем плане */
.body-404::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 74, 0, 0.08) 0%, rgba(0,0,0,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.error-page {
    width: 100%;
    position: relative;
    z-index: 2;
    padding: 40px 0;
}

.error-page__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    text-align: center;
}

.error-page__logo {
    font-size: 28px;
    margin-bottom: 40px;
    text-decoration: none; /* Убираем подчеркивание */
    display: inline-block; /* Чтобы нормально работали отступы, если это ссылка */
}

.error-page__content {
    max-width: 600px;
    margin: auto 0;
}

/* Огромный журнальный шрифт для 404 */
.error-page__code {
    font-size: clamp(100px, 15vw, 180px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -4px;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-transform: uppercase;
}

.error-page__title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.error-page__descr {
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.6;
    color: #94a3b8; /* Приглушенный серый */
    margin-bottom: 40px;
}

.error-page__actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

/* Адаптация кнопок под темный фон 404 */
.error-page__actions .btn--outline {
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.error-page__actions .btn--outline:hover {
    border-color: var(--primary-orange);
    background-color: var(--primary-orange);
}

.error-page__footer {
    margin-top: 40px;
    font-size: 13px;
    color: #475569;
}

@media (max-width: 480px) {
    .error-page__actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    .error-page__actions .btn {
        width: 100%;
    }
}

/* ==========================================================================
   10. АДАПТИВНОСТЬ И ФИКСЫ (МОБИЛЬНАЯ ВЕРСИЯ & БУРГЕР)
   ========================================================================== */

/* Блокируем скролл сайта при открытом бургере (класс вешается из JS) */
body.no-scroll {
    overflow: hidden;
}

@media (max-width: 992px) {
    /* 1. Фикс счетчиков "Про Команду" — теперь жестко по центру */
    .about__stats {
        flex-direction: column;
        gap: 35px;
        align-items: center;
    }
    
    .stat-item {
        display: inline-flex;
        flex-direction: row;      /* Выстраиваем цифру и плюс в одну строку */
        align-items: baseline;    /* Выравниваем их по нижней линии шрифта */
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }

    .stat-item__text {
        width: 100%;             /* Текст описания скидываем строго под цифру */
        margin-top: 8px;
    }

    /* 2. Прячем десктопные контакты из шапки на мобильных */
    .header__actions {
        display: none !important;
    }

    /* 3. Кнопка «Бургер» в виде трех горизонтальных точек */
    .burger-btn {
        display: flex;
        flex-direction: row; 
        gap: 5px;            
        background: none;
        border: none;
        cursor: pointer;
        padding: 15px 10px;
        z-index: 110;
        position: relative;
        width: 38px;  /* Жесткие размеры контейнера */
        height: 36px;
        align-items: center;
        justify-content: center;
    }

    .burger-btn__line {
        display: block;
        width: 6px;          
        height: 6px;
        background-color: #ffffff;
        border-radius: 50%;  
        position: absolute;  /* Абсолют, чтобы при клике они съезжались строго в центр */
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                    background-color 0.3s ease,
                    opacity 0.2s ease,
                    width 0.3s ease,
                    height 0.3s ease,
                    border-radius 0.3s ease;
    }

    /* Выстраиваем точки в ряд в спокойном состоянии */
    .burger-btn__line:nth-child(1) { transform: translateX(-11px); }
    .burger-btn__line:nth-child(2) { transform: translateX(0); }
    .burger-btn__line:nth-child(3) { transform: translateX(11px); }

    /* ИДЕАЛЬНЫЙ КОМПАКТНЫЙ КРЕСТИК ИЗ ТОЧЕК 🔥 */
    .burger-btn.is-active .burger-btn__line {
        border-radius: 2px;   /* Слегка скругляем края палочек крестика */
        width: 20px;          /* Длина палочки аккурат под размер трех точек */
        height: 3px;          /* Толщина линии */
        background-color: var(--accent-orange); /* При открытии крестик станет оранжевым */
    }

    /* Первая превращается в левую диагональ крестика */
    .burger-btn.is-active .burger-btn__line:nth-child(1) {
        transform: translateX(0) rotate(45deg);
    }

    /* Вторая (центральная) просто исчезает */
    .burger-btn.is-active .burger-btn__line:nth-child(2) {
        opacity: 0;
    }

    /* Третья превращается в правую диагональ крестика */
    .burger-btn.is-active .burger-btn__line:nth-child(3) {
        transform: translateX(0) rotate(-45deg);
    }

    /* 5. АКУРАТНОЕ ВЫЕЗЖАЮЩЕЕ МЕНЮ */
    .header .nav {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 25px;
        padding: 100px 40px; 
        
        position: fixed;
        top: 0;
        right: -320px;       
        width: 320px;        
        height: 100vh;
        
        /* ДЕЛАЕМ ГУЩЕ (0.9 вместо 0.75) 🔥 */
        background: rgba(30, 41, 59, 0.9); 
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        
        /* Разрешаем скролл внутри меню, если контент не влезает */
        overflow-y: auto; 
        
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.4); 
        z-index: 90;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Класс открытия (не забудь в JS поменять left на right, если менял!) */
    .header .nav.is-open {
        right: 0; /* Плавно выезжает справа */
    }

    /* Стили ссылок в выезжающем меню */
    .header .nav__link {
        margin-right: 0;
        font-size: 18px;
        font-weight: 500;
        width: 100%;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Легкое подчеркивание */
    }

    /* Показываем телефон внутри выезжающего меню */
    .header .phone--mobile {
        display: block !important;
        font-size: 20px;
        margin-top: 25px;
        color: var(--accent-orange);
        font-weight: 800;
        text-decoration: none;
    }
}

/* ==========================================================================
   ЛЮКСОВЫЙ СТИЛЬ ДЛЯ МОДАЛЬНОГО ОКНА (CSS-ONLY)
   ========================================================================== */

/* Размываем весь сайт на фоне, когда модалка открыта 🔥 */
/* Базовый контейнер модалки (вырываем его из конца страницы и фиксируем на весь экран) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999; /* Чтобы точно была поверх всех картинок и блоков */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Изначально полностью скрываем */
    opacity: 0;
    visibility: hidden; 
    pointer-events: none;
    
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Оверлей (затемненный фон) */
.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Темный фон */
}

/* Само окошко с формой */
.modal__content {
    position: relative;
    z-index: 10000; /* Должно быть выше оверлея */
    max-width: 500px;
    width: 100%;
    padding: 40px;
    background-color: #1a1a1a; /* Или какой там у тебя фоновый цвет СТО */
    border: 1px solid #ff5c00;  /* Твой фирменный оранжевый для стиля */
    border-radius: 8px;
    
    /* Эффект легкого появления снизу */
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

/* --- МАГИЯ ВКЛЮЧЕНИЯ --- */
/* Когда JS добавляет класс .is-visible, модалка плавно появляется */
.modal.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Окошко встает на место при открытии */
.modal.is-visible .modal__content {
    transform: translateY(0);
}

/* Стили заголовков модалки */
.modal__title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.modal__subtitle {
    font-size: 14px;
    color: #94a3b8; /* Мягкий серый */
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Кнопка закрытия (крестик) */
.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.modal__close:hover {
    color: #ff5a00; /* Твой оранжевый акцент */
    transform: rotate(90deg); /* Крутой микро-поворот крестика */
}

/* Стилизация полей ввода */
.modal__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal__input {
    width: 100%;
    padding: 16px 20px;
    background: #0f172a; /* Очень темный инпут, контрастный к окну */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Неоновое оранжевое свечение при фокусе на инпуте */
.modal__input:focus {
    border-color: #ff5a00;
    box-shadow: 0 0 12px rgba(255, 90, 0, 0.2);
}

.modal__btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

/* ==========================================================================
   СВІТЛА СЕКЦІЯ ПЕРЕВАГ З ТЕКСТУРОЮ БЕТОНУ ТА АНІМАЦІЄЮ
   ========================================================================== */

.features--light {
    /* ТЕКСТУРА НА ПОЛНЫЙ ЭКРАН (БЕЗ ПОВТОРЕНИЙ) */
    background-color: #d1d5db;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2) 0%, rgba(0, 0, 0, 0.25) 100%),
        url('media/banner_02.jpg');
    
    background-repeat: no-repeat; /* Запрещаем рип (повторение) картинки */
    background-position: center center; /* Центрируем текстуру */
    background-size: cover; /* Растягиваем на всю ширину и высоту блока */
    background-blend-mode: multiply;
    
    /* Затемняем общую атмосферу, чтобы белый текст и карточки читались идеально */
    box-shadow: inset 0 40px 80px rgba(0, 0, 0, 0.4),
                inset 0 -40px 80px rgba(0, 0, 0, 0.4);
    
    padding: 120px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.features__header {
    text-align: center;
    margin-bottom: 60px;
}

.features__subtitle {
    color: var(--accent-orange); /* Твой оранжевый */
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: inline-block;
    margin-bottom: 10px;
}

.features__main-title {
    color: #FFFFFF; /* Сделали заголовок «Стандарти, яким довіряють» полностью белым */
    font-size: 38px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Добавили легкую тень тексту для ультимативной читаемости */
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Карточки в светлой теме */
.features--light .feature-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 45px 35px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease;
}

/* Эффектный ховер: карточка приподнимается, падает мягкая глубокая тень */
.features--light .feature-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent-orange);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.features--light .feature-item__icon-box {
    width: 54px;
    height: 54px;
    color: #0F172A; /* Иконки изначально темные */
    margin-bottom: 25px;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* При ховере иконка плавно окрашивается в оранжевый и делает легкий рывок вверх */
.features--light .feature-item:hover .feature-item__icon-box {
    color: var(--accent-orange);
    transform: scale(1.05);
}

.features--light .feature-item__title {
    font-size: 20px;
    font-weight: 800;
    color: #0F172A;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.features--light .feature-item__descr {
    color: #64748B; /* Мягкий читаемый серый для светлого фона */
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================================================
   КРУТЫЕ ЭФФЕКТЫ ДЛЯ КНОПОК И ТЕКСТА
   ========================================================================== */

/* Премиальная анимация блика (Flash) на все основные кнопки при ховере */
.btn, .modal__btn {
    position: relative;
    overflow: hidden;
}

.btn::after, .modal__btn::after {
    content: '';
    position: absolute;
    top: 0; left: -50%;
    width: 30%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0s;
}

.btn:hover::after, .modal__btn:hover::after {
    left: 150%;
    transition: .7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Базовые стили для анимации появления элементов при скролле */
.js-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal.is-active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .features--light { padding: 80px 0; }
    .features__main-title { font-size: 30px; }
}

/* ==========================================================================
   ЧИСТИЙ МІНІМАЛІСТИЧНИЙ ПРАЙС З КАРТИНКАМИ (СВІТЛА ТЕМА)
   ========================================================================== */

.price-main--clean {
    background-color: #FFFFFF !important;
}

/* Фикс темной шапки, чтобы она четко стояла над белой страницей */
.price-page .header {
    background: #0F172A !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.price-page .header .logo,
.price-page .header .phone { color: #FFFFFF !important; }
.price-page .header .nav__link { color: #94A3B8 !important; }
.price-page .header .nav__link:hover { color: #FFFFFF !important; }

/* МАСОНРИ-СЕТКА: Убираем grid, включаем колонки, чтобы скрыть пустоту */
.price-grid-layout {
    display: block;                  /* Переключаем с grid */
    column-count: 2;                 /* Разбиваем на 2 колонки на десктопе */
    column-gap: 40px;                /* Расстояние между колонками */
    margin-top: 50px;
}

/* Карточка категории нового образца */
.price-card-category {
    display: inline-block;           /* Чтобы карточки корректно вели себя в колонках */
    width: 100%;                     /* Растягиваем на всю ширину колонки */
    break-inside: avoid;             /* КРИТИЧЕСКИ ВАЖНО: запрещает карточке рваться напополам! */
    margin-bottom: 40px;             /* Отступ снизу между карточками (заменяет gap) */
    
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;                /* Чтобы картинка не вылезала за скругленные углы */
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease, 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.price-card-category:hover {
    transform: translateY(-6px);
    border-color: var(--accent-orange);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.09);
}

/* Контейнер для картинок в карточках */
.price-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.price-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.price-card-category:hover .price-card-image img {
    transform: scale(1.05); /* Легкий зум картинки при наведении */
}

/* Контентная область внутри карточки */
.price-card-content {
    padding: 35px;
}

/* Заголовки категорий */
.price-category-title {
    font-size: 22px;
    font-weight: 800;
    color: #0F172A;
    text-transform: uppercase;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.category-icon {
    margin-right: 12px;
    color: var(--accent-orange);
}

/* Список внутренних услуг */
.price-blocks-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Индивидуальная плашка услуги */
.price-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F8FAFC; /* Мягкая светлая подложка */
    border: 1px solid #E2E8F0;
    padding: 20px;
    border-radius: 8px;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.price-block:hover {
    background: #FFFFFF;
    border-color: rgba(255, 90, 0, 0.3);
    transform: translateX(4px);
}

.price-block__info {
    flex: 1;
    padding-right: 20px;
}

.price-block__name {
    color: #0F172A;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    transition: color 0.2s ease;
}

.price-block:hover .price-block__name {
    color: var(--accent-orange);
}

.price-block__descr {
    color: #64748B;
    font-size: 13px;
    line-height: 1.5;
}

/* Стильный ценник */
.price-block__cost {
    color: #0F172A;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.price-block:hover .price-block__cost {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(255, 90, 0, 0.2);
}

/* Адаптивность под планшеты и смартфоны */
@media (max-width: 992px) {
    .price-grid-layout {
        column-count: 1; /* Перестраиваем макет в одну колонку на планшетах */
    }
}

@media (max-width: 576px) {
    .price-card-image {
        height: 160px;
    }
    .price-card-content {
        padding: 25px 20px;
    }
    .price-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .price-block__cost {
        align-self: flex-end;
    }
}