  /* -----------------------------------------------------------
           Общие стили
           ----------------------------------------------------------- */
        :root {
            --bg-light: #F1F1F2;
            --grey-text: #BCBABE;
            --accent-light: #A1D6E2;
            --accent-dark: #1995AD;
            --main-font: 'Montserrat', sans-serif;
        }

      html, body {
            font-family: var(--main-font);
            margin: 0;
            background-color: #fcfcfc;
            color: #333;
            /* МЕНЯЕМ hidden НА clip, ЧТОБЫ МЕНЮ ПРИЛИПАЛО К ВЕРХУ */
            overflow-x: clip; 
            max-width: 100%; 
        }

        a {
            text-decoration: none;
            transition: color 0.3s;
        }

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

        button {
            cursor: pointer;
            transition: all 0.3s;
        }

        /* -----------------------------------------------------------
           Верхняя часть шапки
           ----------------------------------------------------------- */
        .header-top {
            background-color: var(--bg-light);
            padding: 15px 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        }

        .header-info-wrapper {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo-descriptor-block {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .logo-img {
            height: 55px;
            width: auto;
        }

        .logo-descriptor {
            font-size: 13px;
            color: var(--grey-text);
            line-height: 1.4;
            max-width: 280px;
            margin: 0;
        }

        .header-right-blocks {
            display: flex;
            align-items: center;
            gap: 30px;
        }

        .working-hours {
            font-size: 12px;
            color: #666;
            line-height: 1.3;
        }

        .header-contacts-group {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 5px;
        }

        .phone-number {
            font-size: 24px;
            font-weight: 700;
            color: var(--accent-dark);
        }

        .messenger-icons {
            display: flex;
            gap: 10px;
        }

        .messenger-link {
            font-size: 20px;
            color: var(--accent-dark);
        }

        .messenger-link:hover {
            opacity: 0.7;
        }

        .phone-icon-mobile {
            display: none;
            font-size: 28px;
            color: var(--accent-dark);
        }

        .callback-btn {
            background-color: var(--accent-dark);
            color: white;
            border: none;
            padding: 14px 28px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 600;
            white-space: nowrap;
        }

        .callback-btn:hover {
            background-color: #157b8e;
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(25, 149, 173, 0.3);
        }

        .mobile-burger-container {
            display: none;
            cursor: pointer;
            padding: 5px;
        }

        .mobile-burger-icon {
            font-size: 26px;
            color: var(--accent-dark);
        }

        /* -----------------------------------------------------------
           Нижняя панель (Меню Навигации)
           ----------------------------------------------------------- */
        .main-nav {
            /* Сделали еще более прозрачным (0.55 вместо 0.85) и чуть усилили размытие */
            background-color: rgba(161, 214, 226, 0.55);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);

            padding: 12px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            transition: box-shadow 0.3s ease;
        }

        .main-nav.is-sticky {
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .nav-links {
            display: flex;
            justify-content: center;
            list-style: none;
            margin: 0;
            padding: 0;
            gap: 35px;
        }

        .nav-links li a {
            color: #333;
            font-size: 15px;
            font-weight: 500;
            padding: 5px 0;
            position: relative;
        }

        .nav-links li a:hover {
            color: var(--accent-dark);
        }

        .nav-links li a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 0;
            background-color: var(--accent-dark);
            transition: width 0.3s;
        }

        .nav-links li a:hover::after {
            width: 100%;
        }

        .mobile-menu-contacts {
            display: none;
        }

        /* -----------------------------------------------------------
           ГЛАВНЫЙ ЭКРАН (ПОЛНОЭКРАННОЕ ФОТО)
           ----------------------------------------------------------- */
        /* -----------------------------------------------------------
           ГЛАВНЫЙ ЭКРАН (ПОЛНОЭКРАННОЕ ФОТО СО СЛАЙДЕРОМ)
           ----------------------------------------------------------- */
        .hero {
            position: relative;
            padding: 90px 0 180px;
            color: white;
            overflow: hidden; /* Чтобы новые фоны не вылезали за края */
        }

        /* Слои с картинками */
        .hero-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center 30%;
            background-repeat: no-repeat;
            z-index: 0;
            opacity: 0;
            transition: opacity 1.5s ease-in-out; /* Плавное перетекание (1.5 секунды) */
        }

        .hero-bg.active {
            opacity: 1;
        }

        /* Темный градиент поверх картинок (чтобы текст читался) */
        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 30%, transparent 55%);
            z-index: 1;
        }

        .hero-container {
            position: relative;
            z-index: 2;
            display: block;
        }

        .hero-content {
            max-width: 650px;
        }

        .hero-title {
            font-size: 48px;
            color: #fff;
            margin: 0 0 20px;
            line-height: 1.2;
            font-weight: 800;
        }

        .hero-title span {
            color: var(--accent-light);
        }

        .hero-subtitle {
            font-size: 18px;
            color: #f1f1f1;
            line-height: 1.6;
            margin: 0 0 40px;
            font-weight: 500;
        }

        .hero-buttons {
            display: flex;
            gap: 20px;
            margin-bottom: 50px;
            flex-wrap: wrap;
        }

        .btn-primary {
            background-color: var(--accent-dark);
            color: white;
            padding: 18px 36px;
            border-radius: 30px;
            font-size: 16px;
            font-weight: 600;
            display: inline-block;
            transition: all 0.3s;
            border: 2px solid var(--accent-dark);
            text-align: center;
        }

        .btn-primary:hover {
            background-color: #157b8e;
            border-color: #157b8e;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(25, 149, 173, 0.5);
            color: white;
        }

        .btn-secondary {
            background-color: transparent;
            color: #fff;
            padding: 18px 36px;
            border-radius: 30px;
            font-size: 16px;
            font-weight: 600;
            display: inline-block;
            transition: all 0.3s;
            border: 2px solid #fff;
            text-align: center;
        }

        .btn-secondary:hover {
            background-color: #fff;
            color: #333;
            transform: translateY(-2px);
        }

        .trust-badges {
            display: flex;
            gap: 30px;
            flex-wrap: wrap;
        }

        .badge-item {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 15px;
            font-weight: 600;
            color: #fff;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .badge-item i {
            color: var(--accent-light);
            font-size: 24px;
        }

        /* -----------------------------------------------------------
           Адаптивность
           ----------------------------------------------------------- */
        @media (max-width: 1024px) {
            .nav-links {
                gap: 15px;
                font-size: 14px;
            }

            .logo-descriptor {
                font-size: 12px;
                max-width: 220px;
            }

            .hero-title {
                font-size: 40px;
            }
        }

        @media (max-width: 900px) {
            .header-top {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                z-index: 1001;
                padding: 12px 0;
                height: 69px;
                box-sizing: border-box;
                box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
            }

            .logo-img {
                height: 45px;
            }

            .logo-descriptor,
            .working-hours,
            .phone-number,
            .callback-btn {
                display: none;
            }

            .header-contacts-group {
                flex-direction: row;
                align-items: center;
                gap: 15px;
            }

            .phone-icon-mobile {
                display: block;
                font-size: 22px;
            }

            .messenger-icons {
                gap: 15px;
            }

            .messenger-link {
                font-size: 22px;
            }

            .mobile-burger-container {
                display: block;
            }

            .main-nav {
                display: flex;
                flex-direction: column;
                position: fixed;
                top: 69px;
                left: -100%;
                width: 100%;
                height: calc(100vh - 69px);

                /* Больше прозрачности для мобильного меню (0.75 вместо 0.95) */
                background-color: rgba(241, 241, 242, 0.75);
                backdrop-filter: blur(15px);
                -webkit-backdrop-filter: blur(15px);

                z-index: 1000;
                padding-top: 20px;
                transition: left 0.4s ease-in-out;
                border-top: 1px solid rgba(0, 0, 0, 0.05);
                box-sizing: border-box;
                overflow-y: auto;
            }

            .main-nav.mobile-active {
                left: 0;
            }

            .main-nav .nav-links {
                flex-direction: column;
                align-items: center;
                gap: 20px;
                padding-top: 20px;
                margin-bottom: 40px;
            }

            .main-nav .nav-links li a {
                color: #333;
                font-size: 18px;
                font-weight: 600;
                padding: 10px;
                display: block;
                text-align: center;
            }

            .main-nav .nav-links li a::after {
                display: none;
            }

            .mobile-menu-contacts {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 15px;
                /* Прозрачность для нижнего блока с контактами в мобильном меню */
                margin-top: auto;
                padding: 30px 20px;
                background-color: rgba(232, 232, 233, 0.6);
                border-top: 1px solid #ddd;
            }

            .mobile-callback-btn {
                background-color: var(--accent-dark);
                color: white;
                border: none;
                padding: 15px 30px;
                border-radius: 30px;
                font-size: 16px;
                font-weight: 600;
                width: 100%;
                max-width: 300px;
                margin-bottom: 10px;
            }

            .mobile-callback-btn:hover {
                background-color: #157b8e;
            }

            .mobile-menu-phone {
                font-size: 20px;
                font-weight: 700;
                color: var(--accent-dark);
            }

            .mobile-menu-socials {
                display: flex;
                gap: 25px;
                margin-top: 10px;
            }

            .mobile-menu-socials a {
                font-size: 28px;
                color: var(--accent-dark);
            }

            .hero {
                padding: 110px 0 100px;
            }

            .hero-container {
                text-align: center;
            }

            .hero-content {
                margin: 0 auto;
            }

            .hero::before {
                display: block;
                background: rgba(0, 0, 0, 0.6); /* Включаем равномерное затемнение для мобилок */
            }

            .hero-title,
            .hero-subtitle {
                text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
            }

            .hero-buttons {
                justify-content: center;
            }

            .trust-badges {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .hero-title {
                font-size: 32px;
            }

            .hero-subtitle {
                font-size: 16px;
            }

            .hero-buttons {
                flex-direction: column;
                width: 100%;
                gap: 15px;
            }

            .btn-primary,
            .btn-secondary {
                width: 100%;
                box-sizing: border-box;
            }

            .btn-secondary {
                background-color: rgba(0, 0, 0, 0);
            }

            .btn-secondary:hover {
                background-color: #fff;
            }

            .trust-badges {
                flex-direction: column;
                align-items: center;
                gap: 15px;
                display: inline-flex;
            }
        }

        /* -----------------------------------------------------------
           МОДАЛЬНОЕ ОКНО
           ----------------------------------------------------------- */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(3px);
            z-index: 9999;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background-color: #fff;
            border-radius: 20px;
            padding: 45px 30px 30px;
            width: 90%;
            max-width: 420px;
            position: relative;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
            transform: translateY(-30px);
            transition: transform 0.3s ease;
            box-sizing: border-box;
        }

        .modal-overlay.active .modal-content {
            transform: translateY(0);
        }

        .modal-top-icon {
            position: absolute;
            top: -35px;
            left: 50%;
            transform: translateX(-50%);
            width: 70px;
            height: 70px;
            background-color: var(--accent-dark);
            border: 6px solid #fff;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 5px 15px rgba(25, 149, 173, 0.3);
        }

        .modal-top-icon i {
            color: #fff;
            font-size: 28px;
        }

        .close-modal-btn {
            position: absolute;
            top: 15px;
            right: 20px;
            background: none;
            border: none;
            font-size: 30px;
            color: var(--grey-text);
            cursor: pointer;
            transition: color 0.3s;
            line-height: 1;
        }

        .close-modal-btn:hover {
            color: #333;
        }

        .modal-title {
            text-align: center;
            margin: 15px 0 10px;
            color: #333;
            font-size: 24px;
        }

        .modal-subtitle {
            text-align: center;
            color: #666;
            font-size: 14px;
            margin-bottom: 25px;
            line-height: 1.5;
        }

        .callback-form .form-group {
            margin-bottom: 15px;
        }

        .callback-form input[type="text"],
        .callback-form input[type="tel"],
        .callback-form textarea {
            width: 100%;
            padding: 15px;
            border: 1px solid #e0e0e0;
            background-color: #f9f9f9;
            border-radius: 10px;
            font-family: var(--main-font);
            font-size: 14px;
            box-sizing: border-box;
            outline: none;
            transition: border-color 0.3s, background-color 0.3s;
        }

        .callback-form input[type="tel"]:invalid:not(:placeholder-shown) {
            border-color: #ff4d4f;
        }

        .callback-form input:focus,
        .callback-form textarea:focus {
            border-color: var(--accent-light);
            background-color: #fff;
        }

        .callback-form textarea {
            resize: vertical;
            min-height: 100px;
        }

        .submit-modal-btn {
            width: 100%;
            background-color: var(--accent-dark);
            color: white;
            border: none;
            padding: 16px;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s, transform 0.2s;
            margin-bottom: 15px;
            margin-top: 5px;
        }

        .submit-modal-btn:hover {
            background-color: #157b8e;
            transform: translateY(-2px);
        }

        .checkbox-group {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            font-size: 12px;
            color: #666;
            line-height: 1.4;
        }

        .checkbox-group input[type="checkbox"] {
            margin-top: 3px;
            cursor: pointer;
            accent-color: var(--accent-dark);
        }

        .checkbox-group a {
            color: #666;
            text-decoration: underline;
        }

        .checkbox-group a:hover {
            color: var(--accent-dark);
        }

        /* Заглушка, чтобы можно было поскроллить и увидеть эффект стекла */
        .long-content {
            height: 1500px;
            background: #fff;
        }
       /* -----------------------------------------------------------
       НОВЫЙ ДИЗАЙН КВИЗА
       Цвета: #F1F1F2, #BCBABE, #A1D6E2, #1995AD
       ----------------------------------------------------------- */
    :root {
        --q-bg-light: #F1F1F2;
        --q-grey-text: #BCBABE;
        --q-accent-light: #A1D6E2;
        --q-accent-dark: #1995AD;
    }

    .modal-content.quiz-modern-content {
        max-width: 750px;
        padding: 40px 45px;
        border-radius: 24px;
        background: #fff;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    }

    /* Прогресс-бар */
    .quiz-progress-header {
        margin-bottom: 35px;
    }
    .quiz-progress-text {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 15px;
        font-weight: 500;
        color: #333;
        margin-bottom: 12px;
    }
    .quiz-progress-text span:last-child {
        color: var(--q-grey-text);
        font-size: 14px;
    }
    .quiz-progress-bar {
        width: 100%;
        height: 6px;
        background-color: var(--q-bg-light);
        border-radius: 10px;
        overflow: hidden;
    }
    .quiz-progress-fill {
        height: 100%;
        background-color: var(--q-accent-light);
        border-radius: 10px;
        transition: width 0.4s ease;
    }

    /* Заголовки */
    .quiz-step-title {
        font-size: 26px;
        font-weight: 700;
        color: #333;
        margin: 0 0 8px 0;
        letter-spacing: -0.5px;
    }
    .quiz-step-subtitle {
        font-size: 15px;
        color: var(--q-grey-text);
        margin: 0 0 30px 0;
    }

    /* Сетка ответов */
    .quiz-answers-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Карточки */
    .quiz-card-label {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 24px;
        border: 2px solid var(--q-bg-light);
        border-radius: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
        background: #fff;
        user-select: none;
    }
    .quiz-card-label:hover {
        border-color: var(--q-grey-text);
    }
    .quiz-card-text b {
        display: block;
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
    }
    .quiz-card-text span {
        display: block;
        font-size: 13px;
        color: #888;
    }

    /* Кружки (Радиокнопки) */
    .quiz-indicator {
        width: 24px;
        height: 24px;
        border: 2px solid var(--q-grey-text);
        border-radius: 50%;
        position: relative;
        flex-shrink: 0;
        margin-left: 15px;
        transition: all 0.3s ease;
    }

    /* Квадраты (Чекбоксы для 4 шага) */
    .quiz-indicator.square {
        border-radius: 6px;
    }

    /* Скрытые инпуты */
    .quiz-radio, .quiz-checkbox {
        display: none;
    }

    /* Активное состояние */
    .quiz-radio:checked + .quiz-card-label,
    .quiz-checkbox:checked + .quiz-card-label {
        border-color: var(--q-accent-light);
        box-shadow: 0 4px 15px rgba(161, 214, 226, 0.15);
    }
    .quiz-radio:checked + .quiz-card-label .quiz-indicator,
    .quiz-checkbox:checked + .quiz-card-label .quiz-indicator {
        border-color: var(--q-accent-light);
    }
    .quiz-radio:checked + .quiz-card-label .quiz-indicator::after,
    .quiz-checkbox:checked + .quiz-card-label .quiz-indicator::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 12px;
        height: 12px;
        background-color: var(--q-accent-light);
        border-radius: 50%;
    }

    /* Нижняя навигация */
    .quiz-footer-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 40px;
        padding-top: 25px;
        border-top: 1px solid var(--q-bg-light);
    }
    .btn-q-nav {
        font-family: inherit;
        font-size: 15px;
        font-weight: 500;
        cursor: pointer;
        border: none;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
        background: transparent;
    }
    .btn-q-prev {
        color: #333;
        padding: 10px 0;
    }
    .btn-q-prev:hover {
        color: var(--q-accent-dark);
    }
    .btn-q-next {
        background-color: var(--q-accent-light);
        color: #fff;
        padding: 14px 32px;
        border-radius: 12px;
    }
    .btn-q-next:hover:not(:disabled) {
        background-color: var(--q-accent-dark);
    }
    .btn-q-next:disabled {
        background-color: var(--q-bg-light);
        color: var(--q-grey-text);
        cursor: not-allowed;
    }

    @media (max-width: 650px) {
        .quiz-answers-grid { grid-template-columns: 1fr; }
        .modal-content.quiz-modern-content { padding: 30px 20px; }
        .quiz-step-title { font-size: 22px; }
    }
    /* Анимация и скрытие шагов квиза */
.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease;
}
.quiz-step.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}









/* -----------------------------------------------------------
   Стили Каталога и Фильтров
   ----------------------------------------------------------- */
.catalog-wrapper {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    /* Заменили 1fr */
    gap: 30px;
    align-items: start;
}

.filters-sidebar {
    background-color: var(--bg-light);
    border-radius: 16px;
    padding: 25px;
    box-sizing: border-box;
}

.filter-group {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 20px;
}

.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-group h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #333;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    cursor: pointer;
    color: #444;
}

.filter-checkbox input {
    accent-color: var(--accent-dark);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.price-inputs input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--main-font);
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}

.price-inputs input:focus {
    border-color: var(--accent-dark);
}

/* Сетка карточек */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.product-card {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: var(--accent-light);
}

/* -----------------------------------------------------------
   СЛАЙДЕР ИЗОБРАЖЕНИЙ В КАРТОЧКЕ
   ----------------------------------------------------------- */
.carousel-container {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #fafafa;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Кнопки перелистывания */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(25, 149, 173, 0.7);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
    z-index: 2;
    opacity: 0; /* Скрываем по умолчанию, покажем при наведении */
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(25, 149, 173, 1);
}

.carousel-btn.prev { left: 5px; }
.carousel-btn.next { right: 5px; }

/* Точки внизу картинок */
.carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 2;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    transition: 0.3s;
}

.dot.active {
    background: var(--accent-dark);
    width: 10px;
    border-radius: 4px;
}

.product-img-wrapper img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-brand {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--grey-text);
    font-weight: 700;
    margin-bottom: 5px;
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.3;
    min-height: 42px; /* чтобы выравнивать кнопки */
}

.product-specs {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.spec-item {
    font-size: 13px;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.spec-item span:last-child {
    font-weight: 600;
    color: #333;
}

/* -----------------------------------------------------------
   ПОДВАЛ КАРТОЧКИ (Цена и Кнопки)
   ----------------------------------------------------------- */
.product-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column; /* Выстраиваем цену и кнопки друг над другом */
    align-items: flex-start; /* Прижимаем влево */
    gap: 15px; /* Отступ между ценой и блоком кнопок */
}

.product-price {
    font-size: 22px; /* Чуть увеличили для красоты */
    font-weight: 800;
    color: var(--accent-dark);
    white-space: nowrap;
}

.product-actions {
    display: flex;
    gap: 10px;
    width: 100%; /* Заставляем кнопки занять всю доступную ширину */
}

/* Общие стили для обеих кнопок, чтобы они были строго одинаковыми */
.product-btn-outline,
.product-btn {
    flex: 1; /* Каждая кнопка занимает ровно половину места (50/50) */
    padding: 10px 5px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box; /* Чтобы рамка не увеличивала ширину */
    cursor: pointer;
    transition: all 0.3s;
}

.product-btn-outline {
    background-color: transparent;
    color: var(--accent-dark);
    border: 2px solid var(--accent-dark); /* Рамка 2px смотрится солиднее */
}

.product-btn-outline:hover {
    background-color: var(--accent-dark);
    color: white;
}

.product-btn {
    background-color: var(--accent-dark);
    color: white;
    border: 2px solid var(--accent-dark);
}

.product-btn:hover {
    background-color: #157b8e;
    border-color: #157b8e;
}

/* Адаптивность для планшетов и мобилок */
@media (max-width: 900px) {
    .catalog-wrapper {
        grid-template-columns: 1fr;
    }
    .filters-sidebar {
        position: relative;
    }
}
/* -----------------------------------------------------------
   СЛАЙДЕР ДО/ПОСЛЕ УЛЬТРА-ПРЕМИУМ (10k$)
   ----------------------------------------------------------- */
.luxury-ba-section {
    position: relative;
    padding: 120px 20px;
    background-color: var(--bg-light);
    overflow: hidden;
    z-index: 1;
}

/* Окружающее свечение (Ambient Glow) на фоне */
.luxury-ambient-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    max-width: 1200px;
    max-height: 1200px;
    background: radial-gradient(circle, rgba(161, 214, 226, 0.6) 0%, rgba(25, 149, 173, 0.05) 40%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.lba-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

/* Шильдик над заголовком */
.lba-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(25, 149, 173, 0.1);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.lba-title {
    font-size: 46px;
    font-weight: 800;
    color: #222;
    margin: 0 0 20px;
    letter-spacing: -1px;
}

/* Градиентный текст */
.lba-title span {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lba-subtitle {
    font-size: 18px;
    color: #555;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Главный контейнер - как экран дорогого ТВ */
.luxury-ba-container {
    position: relative;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    border-radius: 40px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e0e0e0;
    box-shadow: 
        0 40px 100px -20px rgba(25, 149, 173, 0.3), 
        0 20px 40px -20px rgba(0,0,0,0.2),
        inset 0 0 0 1px rgba(255,255,255,0.6); /* Имитация фаски стекла */
    cursor: ew-resize;
    z-index: 2;
    transform: translateZ(0); /* Аппаратное ускорение */
}

.lba-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.lba-before-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    clip-path: inset(0 50% 0 0); /* Режем пополам по умолчанию */
    pointer-events: none;
    z-index: 2;
    filter: brightness(0.85); /* Делаем картинку ДО чуть тусклее для драмы */
}

/* Линия разделителя - тонкая и светящаяся */
.lba-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 15px rgba(255,255,255,0.9), 0 0 30px var(--accent-light);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 3;
}

/* Ультра-премиальная ручка с размытием (Glassmorphism) */
.lba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.15),
        inset 0 2px 10px rgba(255,255,255,0.6);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Анимация пульсации, чтобы привлечь внимание */
.lba-handle::before {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

.luxury-ba-container:hover .lba-handle {
    transform: translate(-50%, -50%) scale(1.1);
}
.luxury-ba-container:hover .lba-handle::before {
    display: none; /* Убираем пульсацию, когда человек уже навел мышь */
}

.lba-arrows {
    display: flex;
    gap: 15px;
    color: #fff;
    font-size: 16px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Бирки - минимализм в стиле Apple */
.lba-labels {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 4;
}

.lba-label {
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.l-after {
    background: rgba(25, 149, 173, 0.75);
    border-color: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
    .luxury-ba-section { padding: 80px 15px; }
    .lba-title { font-size: 30px; }
    .luxury-ba-container { border-radius: 24px; aspect-ratio: 4 / 3; }
    .lba-handle { width: 56px; height: 56px; }
    .lba-arrows { gap: 10px; font-size: 14px; }
    .lba-labels { bottom: 15px; left: 15px; right: 15px; }
    .lba-label { padding: 8px 16px; font-size: 10px; border-radius: 8px; }
}




/* -----------------------------------------------------------
   УНИВЕРСАЛЬНЫЕ ЗАГОЛОВКИ СЕКЦИЙ
   ----------------------------------------------------------- */
.section-header { margin-bottom: 50px; }
.text-center { text-align: center; }
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(161, 214, 226, 0.2);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 15px;
}
.section-title {
    font-size: 36px;
    font-weight: 800;
    color: #333;
    margin: 0 0 15px;
}
.section-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* -----------------------------------------------------------
           СЕКЦИЯ ПРЕИМУЩЕСТВ (УЛЬТРА-ПРЕМИУМ BENTO GRID)
           ----------------------------------------------------------- */
        .premium-features-section {
            padding: 120px 0;
            background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
            position: relative;
            overflow: hidden;
        }

        .pf-header {
            margin-bottom: 60px;
        }

        .pf-badge {
            display: inline-block;
            padding: 8px 20px;
            background: rgba(25, 149, 173, 0.1);
            color: var(--accent-dark);
            font-size: 14px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            border-radius: 40px;
            margin-bottom: 20px;
            border: 1px solid rgba(25, 149, 173, 0.2);
        }

        .pf-title {
            font-size: 42px;
            font-weight: 800;
            color: #222;
            margin: 0 0 20px;
            letter-spacing: -1px;
        }

        .pf-title span {
            background: linear-gradient(135deg, var(--accent-dark), var(--accent-light));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .pf-subtitle {
            font-size: 18px;
            color: #666;
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.6;
        }

        /* Сетка Bento */
        .pf-bento-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
        }
.pf-card {
            position: relative;
            background: #fff;
            border-radius: 30px;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            z-index: 1;
            overflow: hidden;
            /* Сразу применяем "парящую" фирменную тень навсегда */
            box-shadow: 0 25px 50px rgba(25, 149, 173, 0.15);
            border: 1px solid rgba(0, 0, 0, 0.04);
        }

        /* Обертка для текста (чтобы он был поверх картинки) */
        .pf-card-inner {
            padding: 40px;
            position: relative;
            z-index: 2;
            height: 100%;
            display: flex;
            flex-direction: column;
            box-sizing: border-box;
            pointer-events: none;
        }

       /* Стили для интегрированных картинок */
        .pf-card-img {
            position: absolute;
            z-index: 0;
            user-select: none;
            /* Картинка всегда немного увеличена */
            transform: scale(1.08); 
        }

        /* 1. Большая карточка: Меньше растворения, больше картинки */
       .img-large {
            bottom: -10%;
            right: -10%;
            width: 70%;
            height: auto;
            object-fit: contain;
            opacity: 0.85;
            /* Растворение начинается дальше: полностью прозрачно до 20%, картинка появляется к 55% */
            -webkit-mask-image: linear-gradient(to right, transparent 20%, black 55%);
            mask-image: linear-gradient(to right, transparent 20%, black 55%);
        }
        .pf-card-large .pf-card-inner { width: 60%; }

        /* 2. Маленькие карточки: Чуть выше подняли маску */
      .img-small {
            bottom: 0;
            right: 0; /* Сместили картинку вправо */
            left: auto;
            width: 90%;  /* Занимает правую часть карточки */
            height: 100%;
            object-fit: cover;
            opacity: 0.35; /* Сделали чуть ярче, так как часть скрыта маской */
            /* Тень слева направо с большой границей */
            -webkit-mask-image: linear-gradient(to right, transparent 25%, black 75%);
            mask-image: linear-gradient(to right, transparent 5%, black 15%);
        }

        /* 3. Широкая карточка: Больше картинки */
      .img-wide {
            top: 0;
            right: 0;
            width: 60%;
            height: 100%;
            object-fit: cover;
            opacity: 0.5;
            /* Белая тень заходит еще глубже на картинку */
            -webkit-mask-image: linear-gradient(to right, transparent 5%, black 60%);
            mask-image: linear-gradient(to right, transparent 1%, black 50%);
        }
        .pf-card-wide .pf-card-inner { width: 55%; }

        /* Эффект вращающегося свечения внутри карточки (теперь работает всегда) */
        .pf-card-glow {
            position: absolute;
            top: -50%; left: -50%;
            width: 200%; height: 200%;
            background: radial-gradient(circle, rgba(161, 214, 226, 0.2) 0%, transparent 50%);
            pointer-events: none;
            z-index: 1;
            /* Делаем его видимым и запускаем анимацию по умолчанию */
            opacity: 1;
            animation: spin-glow 8s linear infinite;
        }

        @keyframes spin-glow {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Иконка (сразу в ярком цвете и под наклоном) */
        .pf-icon-wrapper {
            width: 60px; height: 60px;
            border-radius: 18px;
            display: flex; align-items: center; justify-content: center;
            font-size: 24px; 
            margin-bottom: 25px;
            backdrop-filter: blur(5px);
            /* Перенесли стили из :hover сюда: градиент, цвет, тень и наклон */
            transform: scale(1.1) rotate(5deg);
            background: linear-gradient(135deg, var(--accent-dark), var(--accent-light));
            color: #fff;
            box-shadow: 0 10px 20px rgba(25, 149, 173, 0.3);
        }

        .pf-content h3 {
            font-size: 22px; font-weight: 800; color: #222; margin: 0 0 15px; letter-spacing: -0.5px;
        }
        .pf-content p {
            font-size: 15px; color: #444; line-height: 1.6; margin: 0;
        }

        /* Индивидуальные размеры карточек для модульной сетки */
        .pf-card-large { grid-column: span 2; }
        .pf-card-wide { grid-column: span 2; }

        /* Адаптивность для планшетов */
        @media (max-width: 992px) {
            .pf-bento-grid { grid-template-columns: repeat(1, 1fr); }
            .pf-card-large, .pf-card-wide { grid-column: span 2; }
            .img-large { width: 50%; bottom: 0; }
            .pf-card-large .pf-card-inner { width: 70%; }
        }

      /* Адаптивность для телефонов */
      /* Адаптивность для телефонов */
        @media (max-width: 768px) {
            .premium-features-section { padding: 80px 0; }
            .pf-title { font-size: 32px; }
            
            /* ТЕКСТ: жестко прижимаем к верхнему краю */
            .pf-card-inner { 
                padding: 25px; 
                width: 100% !important; 
                justify-content: flex-start !important; 
            }
            
            .pf-card-large, .pf-card-wide { grid-column: span 1; }
            
            /* ЖЕСТКИЙ РАЗМЕР: Все карточки одинаковой высоты */
            .pf-card {
                min-height: 500px; 
            }
            
            /* КАРТИНКИ: Опускаем вниз и освобождаем верх для текста */
            .pf-card-img {
                width: 100% !important; 
                height: 65% !important; /* Снизили высоту, теперь фото только в нижней половине */
                bottom: 0 !important; 
                top: auto !important;
                right: 0 !important; 
                left: 0 !important;
                opacity: 0.6 !important; /* Сделали чуть ярче, так как тексту оно больше не мешает */
                object-fit: cover !important;
                /* Плавное растворение кверху, чтобы граница не была резкой */
                -webkit-mask-image: linear-gradient(to top, black 0%, transparent 95%) !important;
                mask-image: linear-gradient(to top, black 0%, transparent 100%) !important;
            }

            /* Белая тень-обводка для текста (оставляем для дополнительного контраста) */
            .pf-content h3 {
                text-shadow: 
                    -1px -1px 0 #fff,  
                     1px -1px 0 #fff,
                    -1px  1px 0 #fff,
                     1px  1px 0 #fff,
                     0 0 15px #fff; 
            }

            .pf-content p {
                text-shadow: 
                    
                  
                     0 0 12px #fff;
                font-weight: 500; 
            }
        }
/* -----------------------------------------------------------
   СЕКЦИЯ ЭТАПОВ РАБОТЫ (ПРЕМИУМ С ФОТО И БЕЛЫМ ЗАТЕМНЕНИЕМ)
/* -----------------------------------------------------------
   СЕКЦИЯ ЭТАПОВ РАБОТЫ (ПРЕМИУМ С ФОТО ВНИЗУ БЕЗ АНИМАЦИЙ)
   ----------------------------------------------------------- */
.steps-premium-section {
    padding: 100px 0;
    background-color: var(--bg-light); 
    position: relative;
    overflow: hidden;
}

.steps-premium-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    position: relative;
    z-index: 2;
}

/* Вытягиваем карточку в высоту, убираем эффекты при наведении */
.step-premium-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 520px; /* Вытянутая карточка */
    background-color: #fff; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Опускаем фото в самый низ вытянутой карточки */
.step-bg {
    position: absolute;
    top: auto; 
    bottom: 0; 
    left: 0;
    width: 100%; 
    height: 45%; /* Фото занимает только нижнюю треть */
    background-size: cover;
    background-position: center;
    z-index: 0;
    /* Плавное растворение верхней границы фото для перехода в белый фон */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
}

/* Прячем белую пелену */
.step-white-overlay {
    display: none;
}

.step-content {
    position: relative;
    z-index: 2;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    box-sizing: border-box;
}

.step-number-watermark {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 80px;
    font-weight: 800;
    color: var(--accent-light);
    opacity: 0.25;
    line-height: 1;
    pointer-events: none;
}

.step-icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent-light));
    color: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(25, 149, 173, 0.3);
}

.step-content h3 {
    font-size: 20px;
    font-weight: 800;
    color: #222;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
    text-shadow: 0 0 10px #fff;
}

.step-content p {
    font-size: 14px;
    color: #444; 
    line-height: 1.6;
    margin: 0;
    font-weight: 600; 
    text-shadow: 0 0 5px #fff;
    /* Выравниваем текст по всей ширине карточки */
    text-align: justify; 
    /* Включаем автоматические переносы слов, чтобы не было "дыр" из пробелов */
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .steps-premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Адаптивность для телефонов */
@media (max-width: 600px) {
    .steps-premium-grid {
        grid-template-columns: 1fr;
    }
    .step-premium-card {
        min-height: 400px; /* На мобилках можно сделать чуть короче */
    }
    .step-content {
        padding: 30px 20px;
    }
}
/* -----------------------------------------------------------
   СЕКЦИЯ ЦЕН НА МОНТАЖ
   ----------------------------------------------------------- */
.pricing-section { padding: 80px 0; background: #fff; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}
.price-card {
    background: var(--bg-light);
    border-radius: 24px;
    padding: 40px 30px;
    border: 1px solid #eef0f2;
    display: flex; flex-direction: column;
}
.price-card.premium-card {
    background: var(--accent-dark);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(25, 149, 173, 0.2);
}
.price-header h3 { font-size: 22px; margin: 0 0 15px; }
.price-header span { font-size: 14px; font-weight: 500; opacity: 0.8; }
.price-value { font-size: 36px; font-weight: 800; margin-bottom: 30px; }
.premium-card .price-value { color: #fff; }
.price-list { list-style: none; padding: 0; margin: 0 0 20px; flex-grow: 1; }
.price-list li {
    font-size: 15px; margin-bottom: 12px;
    display: flex; align-items: flex-start; gap: 10px;
}
.price-list i { color: var(--accent-dark); margin-top: 3px; }
.premium-card .price-list i { color: var(--accent-light); }
.premium-card h3 { color: #fff; }

/* -----------------------------------------------------------
   СЕКЦИЯ ОТЗЫВОВ (БЕСКОНЕЧНАЯ ЛЕНТА)
   ----------------------------------------------------------- */
.reviews-section {
    padding: 80px 0;
    background: var(--bg-light);
    overflow: hidden; /* Важно, чтобы лента не вылазила за экран */
}

.reviews-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    /* Эффект плавного растворения ленты по краям экрана */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reviews-track {
    display: flex;
    gap: 30px;
    width: max-content;
    /* Анимация прокрутки: 50 секунд, линейно, бесконечно */
    animation: scrollReviews 50s linear infinite;
}

/* Ставим ленту на паузу, когда клиент наводит мышку, чтобы он мог прочитать */
.reviews-track:hover {
    animation-play-state: paused;
}

.review-card {
    width: 300px; /* Было 380px. Сделали карточку немного уже и аккуратнее */
    flex-shrink: 0;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #eef0f2;
    transition: transform 0.3s, box-shadow 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(25, 149, 173, 0.1);
    border-color: var(--accent-light);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stars {
    color: #FFD700;
    font-size: 14px;
}

.review-date {
    font-size: 13px;
    color: #999;
}

.review-text {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 25px;
    flex-grow: 1; /* Растягивает текст, чтобы футеры отзывов были на одном уровне */
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Красивые градиентные аватарки с инициалами */
.author-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.author-info h4 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #333;
    font-weight: 700;
}

.author-info span {
    font-size: 13px;
    color: #777;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 
   Анимация сдвига.
   У нас 9 карточек и 9 отступов в одном блоке.
   Формула сдвига: ровно 50% ширины минус половина одного отступа (15px), 
   чтобы дубликат встал ровно на место оригинала.
*/
@keyframes scrollReviews {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

@media (max-width: 768px) {
    .reviews-track {
        align-items: flex-start; 
    }
    
    .review-card {
        width: 280px; 
        padding: 20px;
        height: 320px; /* ФИКСИРОВАННАЯ ВЫСОТА НА МОБИЛКАХ */
    }

    .review-text {
        font-size: 14px;
        margin-bottom: 20px;
        /* Опционально: обрезаем текст, если он слишком длинный для такой высоты */
        display: -webkit-box;
        -webkit-line-clamp: 8; /* Максимум 8 строк текста */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}
/* -----------------------------------------------------------
   СЕКЦИЯ ОТЗЫВОВ (УМНЫЙ СВАЙП И КНОПКИ)
   ----------------------------------------------------------- */
.reviews-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.reviews-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;

    /* Делаем блок скроллируемым (нативный свайп для телефонов) */
    overflow-x: auto;

    /* Прячем стандартные уродливые скроллбары браузера */
    scrollbar-width: none;
    -ms-overflow-style: none;

    /* Курсор-рука для ПК */
    cursor: grab;

    /* Плавное растворение краев экрана */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reviews-carousel-wrapper::-webkit-scrollbar {
    display: none;
    /* Прячем скроллбар в Chrome/Safari */
}

.reviews-carousel-wrapper:active {
    cursor: grabbing;
    /* Курсор при зажатии левой кнопки мыши */
}

.reviews-track {
    display: flex;
    gap: 30px;
    width: max-content;
    /* Удалили CSS-анимацию, теперь всем управляет крутой JS */
}

/* Стили для кнопок управления */
.reviews-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.review-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--accent-dark);
    color: var(--accent-dark);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.review-nav-btn:hover {
    background-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 149, 173, 0.3);
}

/* Оставляем старые стили для карточек (.review-card, .author-avatar и т.д.) без изменений */
/* -----------------------------------------------------------
   ПОДВАЛ (FOOTER)
   ----------------------------------------------------------- */
.site-footer { background: #1a1a1a; color: #fff; padding: 60px 0 20px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo { max-width: 150px; margin-bottom: 20px; }.branding-col p { font-size: 14px; color: #999; line-height: 1.6; margin-bottom: 20px; }
.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    color: #fff; border-radius: 50%;
    margin-right: 10px; transition: 0.3s;
}
.social-links a:hover { background: var(--accent-dark); transform: translateY(-3px); }
.footer-col h3 { font-size: 18px; margin: 0 0 20px; color: #fff; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: #999; font-size: 14px; transition: 0.3s; }
.footer-col ul a:hover { color: var(--accent-light); padding-left: 5px; }
.contact-col p { font-size: 14px; color: #999; margin-bottom: 12px; display: flex; gap: 10px; }
.contact-col i { color: var(--accent-light); margin-top: 3px; }
.contact-col a { color: #fff; font-weight: 600; font-size: 16px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: #666;
}
.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: #fff; }
/* -----------------------------------------------------------
   АДАПТИВНОСТЬ ПОДВАЛА (ЦЕНТРИРОВАНИЕ НА МОБИЛКАХ)
   ----------------------------------------------------------- */
/* -----------------------------------------------------------
   АДАПТИВНОСТЬ ПОДВАЛА (ЦЕНТРИРОВАНИЕ НА МОБИЛКАХ)
   ----------------------------------------------------------- */
@media (max-width: 768px) {

    /* Добавляем отступ снизу, чтобы текст не прятался за кнопку "Наверх" */
    .site-footer {
        padding-bottom: 80px !important;
        text-align: center !important;
    }

    /* Выстраиваем колонки строго по вертикали */
    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
    }

    /* --- ЖЕСТКИЙ ФИКС ДЛЯ СОЦСЕТЕЙ --- */
    .site-footer .social-links {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        gap: 15px !important;
        /* Идеально ровный отступ между кружками */
        margin: 0 auto 20px auto !important;
    }

    .site-footer .social-links a {
        margin: 0 !important;
        /* ПРИНУДИТЕЛЬНО убиваем старый кривой отступ */
    }

    /* --------------------------------- */

    /* Центрируем логотип */
    .footer-logo,
    .site-footer img {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }

    /* Центрируем списки навигации */
    .footer-col ul {
        padding-left: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Центрируем контакты (иконка + текст) */
    .contact-col p {
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        width: 100%;
    }

    .contact-col i {
        margin-left: 0 !important;
        margin-right: 8px !important;
    }
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .price-card.premium-card { transform: none; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .section-title { font-size: 28px; }
}





/* -----------------------------------------------------------
   СЕКЦИЯ ПОРТФОЛИО (БЕСШОВНАЯ НА ВЕСЬ ЭКРАН)
   ----------------------------------------------------------- */
.portfolio-seamless-section {
    padding: 80px 0;
    background: #fff;
}

/* Сетка растянута на 100% ширины, gap: 0 убирает отступы */
.portfolio-seamless-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
}

.portfolio-seamless-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3; /* Поддерживаем красивые пропорции фото */
    cursor: pointer;
    background: #222;
}

.portfolio-seamless-card img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
    /* Убрали transition, так как анимации увеличения больше нет */
}

/* Градиент для читабельности текста */
.portfolio-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 1;
    transition: opacity 0.4s ease;
}

/* Контейнер для текста поверх картинки */
.portfolio-card-info {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
}

/* Плашка с геолокацией */
.portfolio-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-dark);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
    width: fit-content;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.portfolio-card-info h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.portfolio-card-info p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    color: #f1f1f1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    /* Убрали скрытие текста (-webkit-line-clamp), теперь он виден сразу и полностью */
}



/* Блок кнопок под портфолио */
.portfolio-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Адаптивность для планшетов */
@media (max-width: 992px) {
    .portfolio-seamless-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Адаптивность для телефонов */
@media (max-width: 650px) {
    .portfolio-seamless-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-seamless-card {
        aspect-ratio: 1 / 1; /* На телефоне делаем квадратом */
    }
    .portfolio-actions {
        flex-direction: column;
    }
    .portfolio-actions button {
        width: 100%;
    }
}

/* -----------------------------------------------------------
   ПАГИНАЦИЯ (Постраничная навигация каталога)
   ----------------------------------------------------------- */
.pagination-container {
    display: flex;
    flex-wrap: wrap;
    /* Добавлено: разрешаем перенос кнопок */
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}
.page-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.page-btn:hover:not(:disabled) {
    border-color: var(--accent-dark);
    color: var(--accent-dark);
}
.page-btn.active {
    background-color: var(--accent-dark);
    color: #fff;
    border-color: var(--accent-dark);
}
.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-light);
}
/* -----------------------------------------------------------
           ФИКС СЕТОК ДЛЯ УЗКИХ ТЕЛЕФОНОВ
       /* -----------------------------------------------------------
           ФИКС СЕТОК ДЛЯ УЗКИХ ТЕЛЕФОНОВ
           ----------------------------------------------------------- */
        @media (max-width: 600px) {
            .products-grid,
            .pricing-grid,
            .reviews-grid,
            .features-grid {
                grid-template-columns: 1fr; /* Жестко в 1 колонку на мобилках */
            }
            .pagination-container {
                flex-wrap: wrap; /* Защита: чтобы кнопки страниц не разрывали экран */
            }
        }

        /* -----------------------------------------------------------
  /* -----------------------------------------------------------
   МОДАЛЬНОЕ ОКНО ДЛЯ ПОРТФОЛИО (БЕСШОВНОЕ КАК ОСНОВНОЙ БЛОК)
   ----------------------------------------------------------- */
.portfolio-modal-content {
    max-width: 1100px !important; /* Широкое окно для красивой сетки */
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 !important; /* Убираем отступы окна, чтобы фото прилегали к краям */
    background: #fff;
    border-radius: 20px;
}

/* Скрываем скроллбар для эстетики (Webkit) */
.portfolio-modal-content::-webkit-scrollbar {
    width: 8px;
}
.portfolio-modal-content::-webkit-scrollbar-thumb {
    background-color: var(--accent-light);
    border-radius: 10px;
}

/* Обертка для текста внутри окна без отступов */
.portfolio-modal-header {
    padding: 40px 40px 20px 40px;
    text-align: center;
}

.portfolio-modal-header .modal-title {
    margin-top: 0;
}

.modal-portfolio-grid {
    display: grid;
    /* Как в основном портфолио: 3 колонки, без отступов (gap: 0) */
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
}

/* Кнопка закрытия окна поверх бесшовной сетки */
#portfolioModal .close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Адаптивность для планшетов */
@media (max-width: 992px) {
    .modal-portfolio-grid {
        grid-template-columns: repeat(2, 1fr); /* По 2 карточки */
    }
}

/* Адаптивность для телефонов */
@media (max-width: 650px) {
    .modal-portfolio-grid {
        grid-template-columns: 1fr; /* По 1 карточке */
    }
    .portfolio-modal-header {
        padding: 30px 20px 10px;
    }
}

/* -----------------------------------------------------------
   БАННЕР ПОДБОРА МОДЕЛИ (В КАТАЛОГЕ)
   ----------------------------------------------------------- */
.custom-request-banner {
    margin-top: 50px;
    margin-bottom: 20px;
    width: 100%;
}

.cr-banner-inner {
    display: flex;
    align-items: center;
    background: var(--accent-dark);
    border-radius: 20px;
    /* Убираем нижний паддинг слева, чтобы картинка ровно встала на пол */
    padding: 40px 50px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(25, 149, 173, 0.2);
}

/* Декоративные круги */
.cr-banner-inner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: rgba(161, 214, 226, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

/* Абсолютное позиционирование картинки строго по левому нижнему краю */
.cr-banner-image {
    position: absolute;
    bottom: 0; /* Прижимаем к самому низу */
    left: 40px; /* Отступ слева */
    width: 220px;
    z-index: 2;
}

.cr-banner-image img {
    width: 100%;
    display: block; /* Убирает лишние отступы под картинкой */
    filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.15));
}

/* Сдвигаем контент вправо, чтобы он не наезжал на картинку */
.cr-banner-content {
    margin-left: 280px; 
    flex: 1;
    z-index: 2;
}

.cr-banner-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #fff;
    letter-spacing: -0.5px;
}

.cr-banner-content p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 25px 0;
    color: var(--bg-light);
    font-weight: 500;
}

/* Поля ввода */
.cr-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cr-inputs {
    display: flex;
    gap: 20px;
}

.cr-inputs input {
    flex: 1;
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid transparent;
    font-family: var(--main-font);
    font-size: 15px;
    background: #fff;
    color: #333;
    outline: none;
    transition: all 0.3s;
}

.cr-inputs input:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 4px rgba(161, 214, 226, 0.3);
}

/* Нижний ряд */
.cr-form-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cr-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--bg-light);
}

.cr-checkbox input[type="checkbox"] {
    accent-color: var(--accent-light);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cr-checkbox a {
    color: #fff;
    text-decoration: underline;
}

/* Кнопка */
.cr-submit-btn {
    background-color: var(--bg-light);
    color: var(--accent-dark);
    border: none;
    padding: 16px 45px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cr-submit-btn:hover {
    background-color: #fff;
    color: #157b8e;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
/* Адаптивность для телефонов и планшетов (Баннер подбора модели) */
@media (max-width: 900px) {
    .cr-banner-inner {
        padding: 40px 20px 30px; /* Делаем аккуратные отступы по краям */
        flex-direction: column; /* Выстраиваем элементы колонкой (фото будет сверху) */
        text-align: center; /* Центрируем текст для красоты на мобилке */
    }
    
    .cr-banner-image {
        display: block; /* ВОЗВРАЩАЕМ КАРТИНКУ */
        position: relative; /* Вытаскиваем её из жесткой привязки к нижнему краю */
        bottom: auto;
        left: auto;
        width: 260px; /* Делаем фото чуть меньше, чтобы оно не занимало весь экран */
        margin: 0 auto 20px; /* Выравниваем строго по центру и даем отступ снизу */
    }

    .cr-banner-content {
        margin-left: 0; /* Убираем большой отступ слева, который был на ПК */
    }
    
    .cr-inputs {
        flex-direction: column;
    }
    
    .cr-form-bottom {
        flex-direction: column;
        align-items: center;
    }
    
    .cr-checkbox {
        text-align: center;
        justify-content: center; /* Центрируем галочку с текстом */
    }
    
    .cr-submit-btn {
        width: 100%; /* Кнопка на всю ширину для удобного нажатия пальцем */
    }
}
/* -----------------------------------------------------------
   СЕКЦИЯ БЫСТРОЙ ЗАЯВКИ (В ФИРМЕННОМ СТИЛЕ САЙТА)
   ----------------------------------------------------------- */
.inline-lead-section {
    padding: 80px 0;
    background-color: #fff; 
}

.il-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: var(--bg-light); /* Используем твой серый фон */
    border-radius: 24px;
    padding: 20px; /* Рамка вокруг формы и фото */
    border: 1px solid #eef0f2;
}

/* --- ЛЕВАЯ ЧАСТЬ --- */
.il-left {
    display: flex;
    flex-direction: column;
    padding: 20px 10px 10px 20px;
}

.il-form-card {
    background: #fff;
    padding: 35px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin-bottom: 35px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.il-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

/* Фирменная бирюзовая пульсирующая точка */
.il-dot {
    width: 14px;
    height: 14px;
    background-color: var(--accent-dark);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    flex-shrink: 0; /* ЗАПРЕЩАЕМ ТОЧКЕ СЖИМАТЬСЯ НА МОБИЛКАХ */
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(25, 149, 173, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(25, 149, 173, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 149, 173, 0); }
}

.il-form-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #222;
}

.il-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.il-input-group {
    position: relative;
    flex: 1;
}

/* Инпуты в стиле твоих модальных окон */
.il-input-group input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    border-radius: 10px;
    font-size: 14px;
    font-family: var(--main-font);
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s, background-color 0.3s;
}

.il-input-group input:focus {
    border-color: var(--accent-light);
    background-color: #fff;
}

.il-req {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--accent-dark);
    font-weight: bold;
}

/* Кнопка на всю ширину формы */
.il-submit-btn {
    background-color: var(--accent-dark);
    color: #fff;
    border: none;
    padding: 18px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.il-submit-btn:hover {
    background-color: #157b8e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 149, 173, 0.4);
}

/* Контакты под формой */
.il-contacts {
    padding: 10px 10px 0 10px;
}

.il-contacts-header {
    display: flex;
    justify-content: space-between; /* Раскидываем текст и соцсети по краям */
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08); /* Линия-разделитель */
}

.il-c-title {
    font-size: 19px;
    font-weight: 800;
    color: #333;
    margin: 0;
}

.il-socials {
    display: flex;
    gap: 10px;
}

.il-soc {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    transition: 0.3s;
}
.il-soc.tg { background-color: #0088cc; }
.il-soc.vb { background-color: #8f5db7; }
/* Фирменный градиент для Instagram */
.il-soc.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

.il-soc:hover { opacity: 0.8; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.il-phone-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    /* Собираем телефон и текст-подсказку в общую аккуратную подложку */
    background: rgba(255, 255, 255, 0.5); 
    padding: 15px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Телефон использует фирменные цвета */
.il-phone-link {
    display: inline-block;
    border: 2px solid var(--accent-dark);
    color: #333;
    font-size: 20px;
    font-weight: 800;
    padding: 12px 25px;
    border-radius: 14px;
    background: #fff;
    transition: all 0.3s;
    flex-shrink: 0; /* Запрещаем кнопке сжиматься */
}

.il-phone-link i {
    color: var(--accent-dark);
}

.il-phone-link:hover {
    background: var(--accent-dark);
    color: #fff;
    box-shadow: 0 5px 15px rgba(25, 149, 173, 0.3);
}
.il-phone-link:hover i {
    color: #fff;
}

.il-hint {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
    margin: 0;
}

.il-bottom-text {
    font-size: 13px;
    color: #555;
    margin: 0;
}
.il-bottom-text strong {
    font-size: 16px;
    color: #222;
}

/* --- ПРАВАЯ ЧАСТЬ (ФОТО С ПЕРЕЛИВАЮЩЕЙСЯ ТЕНЬЮ) --- */
.il-right {
    height: 100%;
    /* Добавим небольшой отступ, чтобы тени было куда "светить" */
    padding: 10px; 
    box-sizing: border-box;
}

.il-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    /* Идеально плавная анимация переливания тени */
    animation: shimmer-shadow 6s ease-in-out infinite;
}
/* --- ПЛАШКА С ОТЗЫВОМ ПОВЕРХ ФОТО --- */
.il-right {
    position: relative; /* Обязательно, чтобы плашка держалась внутри фото */
    height: 100%;
    padding: 10px; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Прижимаем отзыв к низу */
}

/* Красивая стеклянная карточка с отзывом */
.il-review-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: rgba(232, 229, 229, 0.438); /* Полупрозрачный белый */
    
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
    z-index: 2;
    transition: transform 0.3s ease;
}

.il-right:hover .il-review-overlay {
    transform: translateY(-5px); /* Плашка слегка приподнимается при наведении */
}

.il-ro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.il-ro-header .stars {
    color: #FFD700;
    font-size: 14px;
}

.il-ro-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.il-ro-text {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
    margin: 0;
    font-style: italic;
    font-weight: 500;
}

/* Адаптивность для плашки на телефонах */
@media (max-width: 900px) {
    .il-review-overlay {
        bottom: 20px;
        left: 20px;
        right: 20px;
        padding: 15px;
    }
    .il-ro-text {
        font-size: 13px;
    }
    .il-ro-header .stars {
        font-size: 12px;
    }
}
/* Анимация переливания тени: Бирюзовый (#1995AD) + Серебристый (#BCBABE) */
@keyframes shimmer-shadow {
    0% {
        box-shadow: 
            8px 15px 25px rgba(25, 149, 173, 0.3), 
           -8px -10px 20px rgba(188, 186, 190, 0.3); /* Совпадает со 100% */
    }
    50% {
        /* Тень расплывается и становится ярче */
        box-shadow: 
            15px 25px 40px rgba(25, 149, 173, 0.5), 
           -15px -15px 35px rgba(208, 206, 210, 0.6);
    }
    100% {
        box-shadow: 
            8px 15px 25px rgba(25, 149, 173, 0.3), 
           -8px -10px 20px rgba(188, 186, 190, 0.3); /* Совпадает с 0% */
    }
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 900px) {
    .il-wrapper {
        grid-template-columns: 1fr;
    }
    .il-left {
        padding: 10px;
    }
    .il-form-card {
        padding: 25px 20px;
    }
    .il-inputs {
        flex-direction: column;
    }
    
    /* Настраиваем правую часть для мобилок */
    .il-right {
        height: auto; /* Разрешаем блоку растягиваться */
    }
    
    .il-right img {
        height: 350px; /* Делаем фото чуть выше, чтобы Ивана было отлично видно */
        margin-bottom: 15px; /* Отступ между фотографией и отзывом */
    }
    
    /* Вытаскиваем отзыв из-под наложения и ставим ВНИЗ */
    .il-review-overlay {
        position: relative; /* Отключаем наложение поверх фото */
        bottom: auto;
        left: auto;
        right: auto;
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Отключаем эффект подпрыгивания отзыва на телефонах */
    .il-right:hover .il-review-overlay {
        transform: none; 
    }
    
    .il-ro-text {
        font-size: 13px;
    }
    .il-ro-header .stars {
        font-size: 12px;
    }
}
@media (max-width: 500px) {
    .il-header {
        align-items: flex-start; 
    }
    .il-dot {
        margin-top: 6px; 
    }
    .il-form-title {
        font-size: 18px; 
    }
    .il-phone-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 20px 15px; /* Больше "воздуха" внутри рамки на мобилке */
    }
    .il-phone-link {
        font-size: 18px; 
        padding: 12px 10px; 
        white-space: nowrap; 
        text-align: center; 
    }
    .il-hint {
        text-align: center;
    }
}





/* -----------------------------------------------------------
   СЕКЦИЯ: КОЛЕСО ФОРТУНЫ
   ----------------------------------------------------------- */
.wheel-modal-content {
    max-width: 800px;
    padding: 0;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;

    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    -webkit-font-smoothing: antialiased;

    /* --- ДОБАВЬ ВОТ ЭТО ВМЕСТО СТАРЫХ СТИЛЕЙ СТРОЛЛБАРА --- */
    scrollbar-width: thin;
    /* Делает скролл аккуратным и тонким */
    scrollbar-color: var(--accent-light) transparent;
    /* Цвет ползунка и прозрачный фон */
}


.wheel-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 40px;
    gap: 40px;
}

.wheel-left {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.wheel-right {
    flex: 1.2;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Контейнер колеса и стрелка */
.wheel-container {
    position: relative;
    width: 320px;
    height: 320px;
}

/* Стрелка-указатель справа */
.wheel-arrow {
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-right: 40px solid #ff3b30; /* Ярко-красная стрелка */
    z-index: 10;
    filter: drop-shadow(-3px 0px 5px rgba(0,0,0,0.3));
}

/* Само колесо */
.wheel-spinner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
    /* Добавили from 90deg, чтобы сектора идеально совпали с текстом */
    background: conic-gradient(from 90deg,
        var(--accent-dark) 0 60deg,
        #fff 60deg 120deg,
        var(--accent-light) 120deg 180deg,
        #fff 180deg 240deg,
        var(--accent-dark) 240deg 300deg,
        #fff 300deg 360deg
    );
    transition: transform 5s cubic-bezier(0.15, 0.85, 0.15, 1);
}

/* Текст на секторах колеса */
.wheel-text {
    position: absolute;
    width: 50%;
    height: 36px;
    top: calc(50% - 18px); /* Идеальное выравнивание по вертикали */
    left: 50%;
    transform-origin: 0 50%;
    text-align: right;
    padding-right: 15px;
    box-sizing: border-box;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.2;
    color: #333;
    text-transform: uppercase;
    /* Flexbox для того, чтобы 2 строчки стояли идеально ровно */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

/* Поворачиваем текст на каждый сектор */
.wheel-text:nth-child(1) { transform: rotate(30deg); color: #fff; }
.wheel-text:nth-child(2) { transform: rotate(90deg); }
.wheel-text:nth-child(3) { transform: rotate(150deg); }
.wheel-text:nth-child(4) { transform: rotate(210deg); }
.wheel-text:nth-child(5) { transform: rotate(270deg); color: #fff; }
.wheel-text:nth-child(6) { transform: rotate(330deg); }

/* Текст на секторах колеса */
.wheel-text {
    position: absolute;
    width: 50%;
    height: 36px;
    top: calc(50% - 18px); /* Идеальное выравнивание по вертикали */
    left: 50%;
    transform-origin: 0 50%;
    text-align: right;
    padding-right: 15px;
    box-sizing: border-box;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.2;
    color: #333;
    text-transform: uppercase;
    /* Flexbox для того, чтобы 2 строчки стояли идеально ровно */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

/* Поворачиваем текст на каждый сектор */
.wheel-text:nth-child(1) { transform: rotate(30deg); color: #fff; }
.wheel-text:nth-child(2) { transform: rotate(90deg); }
.wheel-text:nth-child(3) { transform: rotate(150deg); }
.wheel-text:nth-child(4) { transform: rotate(210deg); }
.wheel-text:nth-child(5) { transform: rotate(270deg); color: #fff; }
.wheel-text:nth-child(6) { transform: rotate(330deg); }

/* Правая часть с текстом */
.wheel-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 15px;
    color: #222;
}

.wheel-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.wheel-hint {
    font-size: 13px;
    color: #999;
    margin-top: 15px;
}

/* Универсальная кнопка для колеса */
.wheel-btn {
    color: #fff;
    border: none;
    padding: 18px 30px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    box-shadow: 0 5px 15px rgba(25, 149, 173, 0.4);
}

.wheel-btn.spin-btn { background-color: #ff3b30; box-shadow: 0 5px 15px rgba(255, 59, 48, 0.4); }
.wheel-btn.spin-btn:hover { background-color: #e6352b; transform: translateY(-2px); }

.wheel-btn.claim-btn { background-color: var(--accent-dark); }
.wheel-btn.claim-btn:hover { background-color: #157b8e; transform: translateY(-2px); }

/* Блок после выигрыша */
.wheel-prize-alert {
    background: rgba(25, 149, 173, 0.1);
    padding: 15px;
    border-radius: 16px;
    color: #333;
    font-size: 16px;
    margin-bottom: 20px;
    border: 2px dashed var(--accent-dark);
}

.wheel-prize-alert strong {
    font-size: 22px;
    color: var(--accent-dark);
    display: block;
    margin-top: 5px;
}

.wheel-action-text {
    font-size: 15px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #444;
}

.wheel-input { margin-bottom: 15px; }

/* Адаптивность для телефонов */
@media (max-width: 768px) {
    .wheel-wrapper {
        flex-direction: column;
        padding: 35px 20px 25px;
        gap: 25px;
    }
    .wheel-container {
        width: 260px;
        height: 260px;
    }
    .wheel-arrow {
        right: -15px;
        border-top-width: 20px;
        border-bottom-width: 20px;
        border-right-width: 30px;
    }
    .wheel-text { font-size: 11px; }
    .wheel-title { font-size: 26px; }
}
/* -----------------------------------------------------------
   КНОПКА "НАВЕРХ"
   ----------------------------------------------------------- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-dark);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(25, 149, 173, 0.4);
    z-index: 999; /* Чтобы была поверх всех блоков */
    
    /* Скрыта по умолчанию */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* Класс, который будет добавлять JS при скролле */
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #157b8e;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(25, 149, 173, 0.6);
}

/* На мобилках делаем чуть меньше и сдвигаем, чтобы не мешала */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
/* === ЖЕСТКИЕ СТИЛИ ДЛЯ ВЫИГРЫША В КОЛЕСЕ === */

/* Перекрашиваем сам текст приза (Точное обращение по ID) */
#wheelPrizeText {
    font-size: 42px !important;
    /* Огромный размер */
    font-weight: 900 !important;
    /* Максимально жирный шрифт */
    color: #e60000 !important;
    /* Ярко-красный цвет */
    text-transform: uppercase !important;
    line-height: 1.2 !important;
    text-align: center !important;
    display: block !important;
    margin-top: 15px !important;
    margin-bottom: 5px !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* На телефонах делаем чуть меньше, чтобы помещалось в экран */
@media (max-width: 576px) {
    #wheelPrizeText {
        font-size: 32px !important;
    }
}