﻿/* ==========================================
           CSS ПЕРЕМЕННЫЕ ДЛЯ ТЕМ
           ========================================== */

        /* Светлая тема (по умолчанию) */
        :root {
            --bg-primary: #ffffff;
            --bg-secondary: #f5f5f5;
            --bg-card: #ffffff;
            --bg-input: #f0f0f0;
            --bg-overlay: rgba(255, 255, 255, 0.9);
            --text-primary: #1a1a2e;
            --text-secondary: #4a4a5e;
            --text-muted: #88889a;
            --border-color: #e0e0e0;
            --shadow-color: rgba(0, 0, 0, 0.08);
            --shadow-hover: rgba(0, 0, 0, 0.15);
            --accent-color: #2196F3;
            --accent-hover: #1976D2;
            --gradient-start: #f8f9fa;
            --gradient-end: #e9ecef;
            --slider-overlay: rgba(255, 255, 255, 0.4);
            --block-bg: #ffffff;
            --block-border: #e0e0e0;
            --frame-bg: rgba(255, 255, 255, 0.95);
            --frame-text: #1a1a2e;
            --logo-color-start: #0D47A1;
            --logo-color-end: #42A5F5;

            --title-gradient-start: #ADD8E6; 
            --title-gradient-end: #2563EB; 
            --title-shadow: rgba(0, 0, 0, 0.15);
        }

        /* Тёмная тема */
        [data-theme="dark"] {
            --bg-primary: #0A0A0F;
            --bg-secondary: #14141C;
            --bg-card: #111118;
            --bg-input: #1a1a24;
            --bg-overlay: rgba(10, 10, 15, 0.9);
            --text-primary: #E8E8F0;
            --text-secondary: #C0C0D0;
            --text-muted: #88889a;
            --border-color: #2A2A35;
            --shadow-color: rgba(0, 0, 0, 0.3);
            --shadow-hover: rgba(0, 0, 0, 0.5);
            --accent-color: #FF3A2F;
            --accent-hover: #D62B1F;
            --gradient-start: #111118;
            --gradient-end: #0D0D14;
            --slider-overlay: rgba(0, 0, 0, 0.85);
            --block-bg: #111118;
            --block-border: #252530;
            --frame-bg: rgba(10, 10, 15, 0.85);
            --frame-text: #E8E8F0;
            --logo-color-start: #FFB5A0;
            --logo-color-end: #FFD4C4;

            --title-gradient-start: #E8E8F0;
            --title-gradient-end: #FF3A2F;
            --title-shadow: rgba(0, 0, 0, 0.5);
        }

        /* ==========================================
           ОБЩИЕ СТИЛИ
           ========================================== */

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            overflow-x: hidden;
            transition: background 0.3s ease, color 0.3s ease;
        }

        ::-webkit-scrollbar {
            width: 6px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-secondary);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--accent-color);
            border-radius: 10px;
        }

        /* ========== ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА ========== */
        .language-switcher {
            position: fixed;
            top: 24px;
            right: 24px;
            display: flex;
            gap: 8px;
            z-index: 1100;
            background: var(--bg-overlay);
            backdrop-filter: blur(12px);
            padding: 6px 12px;
            border-radius: 60px;
            border: 1px solid var(--border-color);
            box-shadow: 0 8px 20px var(--shadow-color);
            transition: background 0.3s ease, border-color 0.3s ease;
        }

        .language-switcher .lang-btn {
            background: transparent;
            border: none;
            padding: 6px 14px;
            cursor: pointer;
            font-weight: 600;
            border-radius: 40px;
            transition: all 0.2s ease;
            font-size: 13px;
            color: var(--text-muted);
            letter-spacing: 0.3px;
        }

        .language-switcher .lang-btn:hover {
            color: var(--text-primary);
            background: rgba(255,58,47,0.1);
        }

        .language-switcher .lang-btn.active {
            background: var(--accent-color);
            color: white;
            box-shadow: 0 0 8px rgba(255,58,47,0.5);
        }

        /* ========== HERO SLIDER ========== */
        .hero-section {
            position: relative;
            height: 580px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .slider-container {
            position: absolute;
            top: 0;
            left: 0;
            left: 50%;
            transform: translateX(-50%);
            max-width: 2800px;
            width: 100%;
            height: 100%;
            z-index: 0;
        }

        .slider {
            width: 100%;
            height: 100%;
        }

        .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            opacity: 0;
            transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
            transform: scale(1.05);
        }

        .slide.active {
            opacity: 1;
            transform: scale(1);
        }

        .slider-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: var(--bg-overlay);
            backdrop-filter: blur(8px);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
            width: 44px;
            height: 44px;
            cursor: pointer;
            font-size: 20px;
            border-radius: 50%;
            transition: all 0.2s;
            z-index: 15;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .slider-btn:hover {
            background: var(--accent-color);
            border-color: var(--accent-color);
            color: white;
        }

        .prev {
            left: 30px;
        }

        .next {
            right: 30px;
        }

        .slider-dots {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 12px;
            z-index: 15;
        }

        .dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--text-muted);
            cursor: pointer;
            transition: all 0.2s;
            opacity: 0.5;
        }

        .dot.active {
            background: var(--accent-color);
            width: 28px;
            border-radius: 10px;
            box-shadow: 0 0 8px var(--accent-color);
            opacity: 1;
        }

        .overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at center, rgba(0,0,0,0.3) 0%, var(--slider-overlay) 100%);
            z-index: 1;
            transition: background 0.3s ease;
        }

        /* ===================================== */
        /* ========== ОСНОВНОЙ КОНТЕНТ ========== */
        /* ===================================== */

        .content-wrapper {
            position: relative;
            z-index: 10;
            max-width: 2500px;
            width: 100%;
            padding: 40px 24px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
        }

        /* ===================================== */
        /* ===== ДРОПДАУНЫ (БАЗОВЫЕ СТИЛИ) ===== */
        /* ===================================== */

        .dropdowns-container {
            background: transparent;
            /*backdrop-filter: blur(20px);*/
            border-radius: 32px;
            padding: 40px 36px;
            max-width: 2000px;
            width: 65%;
            margin: 0 auto;
            border: 1px solid transparent/*var(--border-color)*/;
            box-shadow: 0 25px 45px -12px transparent/*var(--shadow-color)*/;
            transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .dropdowns-row {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 24px;
        }

        .dropdown-section {
            min-width: 0;
            width: 100%;
        }

        .dropdown-label {
            display: block;
            font-weight: 600;
            margin-bottom: 10px;
            color: var(--accent-color);
            font-size: 16px;
            letter-spacing: 1px;
            text-transform: uppercase;
            text-align: center;
        }

        .dropdown-select {
            width: 100%;
            padding: 14px 44px 14px 18px;
            font-size: 15px;
            font-weight: 500;
            background-color: var(--bg-input);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            color: var(--text-primary);
            cursor: pointer;
            transition: border-color 0.2s, box-shadow 0.2s, color 0.2s, background-color 0.2s;
            font-family: 'Inter', monospace;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2388889a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 16px center;
            background-size: 14px 14px;
        }

        .dropdown-select::-ms-expand {
            display: none;
        }

        .dropdown-select:focus {
            border-color: var(--accent-color);
            outline: none;
            box-shadow: 0 0 0 3px rgba(255,58,47,0.2);
        }

        .dropdown-select:disabled {
            background-color: var(--bg-secondary);
            color: var(--text-muted);
            cursor: not-allowed;
            border-color: var(--border-color);
        }

        .btn-next {
            margin-top: 40px;
            padding: 14px 42px;
            background: linear-gradient(95deg, var(--accent-color) 0%, var(--accent-hover) 100%);
            border: none;
            border-radius: 60px;
            color: white;
            font-weight: 700;
            font-size: 16px;
            letter-spacing: 1.2px;
            cursor: pointer;
            transition: all 0.2s;
            display: none;
            text-transform: uppercase;
            box-shadow: 0 8px 20px rgba(255,58,47,0.3);
        }

        .btn-next:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 28px rgba(255,58,47,0.5);
        }

        .hero-titles {
            position: absolute;
            bottom: 70px;
            left: 0;
            right: 0;
            z-index: 20;
            text-align: center;
            pointer-events: none;
            max-width: 90%;
            margin: 0 auto;
        }

        .main-title-bottom {
            font-size: 20px;
            font-weight: 600;
            margin: 0;
            background: linear-gradient(135deg, var(--title-gradient-start) 0%, var(--title-gradient-end) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            letter-spacing: -0.2px;
            text-shadow: 0 2px 10px var(--title-shadow);
        }

        .main-offer-bottom {
            margin: 6px 0 0;
            font-size: 14px;
            font-weight: 500;
            line-height: 1.35;
            color: var(--text-secondary);
            text-shadow: 0 1px 8px var(--title-shadow);
        }

        /* ===================================== */
        /* ========== МОБИЛЬНЫЕ ДРОПДАУНЫ ========== */
        /* ===================================== */

        .header-dropdowns {
            display: none;
            background: transparent ;
            border-radius: 16px;
            margin-bottom: 16px;
            border: 1px solid transparent ;
            transition: all 0.3s ease;
            padding: 12px 10px;
            width: 100%;
        }

        .header-dropdowns-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
        }

        .header-dropdowns .spec-item {
            padding: 4px 4px;
            text-align: center;
        }

        .header-dropdowns .spec-label {
            display: block;
            font-size: 11px;
            font-weight: 700;
            color: var(--accent-color);
            text-transform: uppercase;
            letter-spacing: 0.2px;
            margin-bottom: 4px;
        }

        /* ===== СТИЛИ ДЛЯ ДРОПДАУНОВ СО СТРЕЛКАМИ ===== */
        .header-dropdowns .dropdown-select {
            width: 100%;
            padding: 8px 4px;
            font-size: 11px;
            font-weight: 600;
            background-color: transparent;
            border: 0;
            border-radius: 0;
            color: var(--text-primary);
            cursor: pointer;
            font-family: 'Inter', sans-serif;
            text-align: center;
            min-height: 34px;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
        }

        /* Стрелка влево для заблокированных дропдаунов (без текста) */
        .header-dropdowns .dropdown-select:disabled {
            background-color: transparent;
            color: var(--text-muted);
            cursor: not-allowed;
            padding-left: 20px;
            padding-right: 4px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2388889a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: 4px center;
            background-size: 12px 12px;
        }

        .header-dropdowns .dropdown-select:disabled option {
            display: none;
        }

        .header-dropdowns .select-shell:has(> select:disabled)::after {
            display: none;
        }

        /* Стрелку вниз рисует .select-shell::after. Свой background-image
           на select даёт вторую стрелку и двоит правый угол на мобильных. */
        .header-dropdowns .dropdown-select:not(:disabled) {
            background-image: none;
            padding-right: 22px;
        }

        .header-dropdowns .dropdown-select option {
            font-size: 11px;
            padding: 6px;
            font-weight: 400;
        }

        .btn-next-mobile {
            width: 100%;
            margin-top: 8px;
            padding: 10px 16px;
            background: linear-gradient(95deg, var(--accent-color) 0%, var(--accent-hover) 100%);
            border: none;
            border-radius: 40px;
            color: white;
            font-weight: 700;
            font-size: 13px;
            letter-spacing: 1px;
            cursor: pointer;
            transition: all 0.2s;
            display: none;
            text-transform: uppercase;
            box-shadow: 0 4px 15px rgba(255,58,47,0.3);
        }

        .btn-next-mobile:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255,58,47,0.4);
        }

        .btn-next-mobile.show {
            display: block;
            animation: fadeInUp 0.3s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ===================================== */
        /* ========== БЛОКИ 1-6 ========== */
        /* ===================================== */

        .blocks-section {
            padding: 20px 24px;
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
            transition: background 0.3s ease, border-color 0.3s ease;
        }

        .blocks-container {
            max-width: 70%;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(30%, 1fr));
            gap: 28px;
        }

        .block-card {
            background: var(--block-bg);
            padding: 32px 28px;
            border-radius: 28px;
            border: 1px solid var(--block-border);
            transition: all 0.25s;
            text-align: left;
            box-shadow: 0 4px 20px var(--shadow-color);
        }

        .block-card:hover {
            transform: translateY(-8px);
            border-color: var(--accent-color);
            box-shadow: 0 20px 30px -12px rgba(255,58,47,0.2);
        }

        .block-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--accent-color);
            margin-bottom: 12px;
            letter-spacing: -0.3px;
            line-height: 1.3;
        }

        .block-text {
            font-size: 16px;
            line-height: 1.5;
            color: var(--text-secondary);
            font-weight: 400;
        }

        /* ========== СЕКЦИЯ С РАМКОЙ ========== */

        .info-section {
            padding: 40px 24px;
            background: var(--bg-primary);
            transition: background 0.3s ease;
        }

        .section-title {
            text-align: center;
            font-size: 38px;
            font-weight: 800;
            margin-bottom: 48px;
            letter-spacing: -0.5px;
            background: linear-gradient(120deg, var(--text-primary), var(--accent-color));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .image-frame-container {
            --frame-radius: 64px;
            --frame-pad: 40px;
            position: relative;
            background: var(--bg-primary);
            border-radius: var(--frame-radius);
            padding: var(--frame-pad);
            min-height: 520px;
            max-width: 2500px;
            width: 85%;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 0 1px var(--border-color), 0 30px 40px -20px var(--shadow-color);
            transition: box-shadow 0.3s ease;
            overflow: hidden;
            isolation: isolate;
        }

        .image-frame-bg {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
            z-index: 0;
            isolation: isolate;
        }

        .image-frame-bg::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, var(--slider-overlay) 90%, var(--bg-primary) 100%);
            pointer-events: none;
            transition: background 0.3s ease;
        }

        .frame-content {
            position: relative;
            z-index: 2;
            background: var(--frame-bg);
            background-clip: padding-box;
            backdrop-filter: blur(12px);
            border-radius: max(0px, calc(var(--frame-radius) - var(--frame-pad)));
            padding: 48px 52px;
            max-width: 900px;
            width: 100%;
            text-align: center;
            box-shadow: 0 0 0 1px var(--border-color);
            overflow: hidden;
            transition: background 0.3s ease, box-shadow 0.3s ease;
        }

        .info-text {
            font-size: 18px;
            line-height: 1.6;
            color: var(--frame-text);
            font-weight: 400;
            transition: color 0.3s ease;
        }

        /* ========== БЛОК С КНОПКАМИ БРЕНДОВ (ВНИЗУ) ========== */
        .brands-section-bottom {
            padding: 20px 24px 40px;
            background: var(--bg-primary);
            border-top: 1px solid var(--border-color);
            transition: background 0.3s ease, border-color 0.3s ease;
        }

        .brands-title-bottom {
            text-align: center;
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 30px;
            color: var(--text-primary);
        }

        .brands-title-bottom i {
            color: var(--accent-color);
            margin-right: 10px;
        }

        .brands-grid-bottom {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
            max-width: 800px;
            margin: 0 auto;
        }

        .brand-card-bottom {
            background: var(--bg-card);
            border: 2px solid var(--border-color);
            border-radius: 24px;
            padding: 40px 30px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            color: var(--text-primary);
            box-shadow: 0 4px 20px var(--shadow-color);
        }

        .brand-card-bottom:hover {
            transform: translateY(-8px);
            border-color: var(--accent-color);
            box-shadow: 0 20px 30px -12px var(--shadow-hover);
        }

        .brand-card-bottom .brand-logo {
            font-size: 64px;
            display: block;
            margin-bottom: 12px;
        }

        .brand-card-bottom .brand-name {
            font-size: 28px;
            font-weight: 800;
            display: block;
            margin-bottom: 4px;
        }

        .brand-card-bottom .brand-count {
            font-size: 14px;
            color: var(--text-muted);
        }

        .brand-card-bottom.honda:hover {
            border-color: #E63946;
        }

        .brand-card-bottom.acura:hover {
            border-color: #1A1A2E;
        }

        .brand-logo {
            display: block;
            position: relative;
            width: 64px;
            height: 64px;
            margin: 0 auto 12px;
        }

        .brand-logo img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .brand-logo .logo-light {
            display: block !important;
        }
        .brand-logo .logo-dark {
            display: none !important;
        }

        [data-theme="dark"] .brand-logo .logo-light {
            display: none !important;
        }
        [data-theme="dark"] .brand-logo .logo-dark {
            display: block !important;
        }

        /* ==========================================
           АДАПТИВНОСТЬ
           ========================================== */

        @media (max-width: 1600px) and (min-width: 701px) {
            .dropdowns-container {
                width: 90%;
                padding: 32px 24px;
            }

            .dropdowns-row {
                gap: 16px;
            }
        }

        @media (max-width: 700px) {
            .hero-section {
                height: 430px;
                margin: 0;   
            }

            .hero-titles {
                bottom: 8px;
                max-width: 92%;
            }

            .main-title-bottom {
                font-size: 14px;
            }

            .main-offer-bottom {
                font-size: 11px;
                margin-top: 4px;
            }

            .slider-dots {
                display: none;
            }

            .slider-btn {
                width: 40px;
                height: 40px;
                font-size: 18px;
            }

            .content-wrapper {
                padding: 52px 12px 0;
                min-height: 0;
                height: 100%;
                align-self: stretch;
                justify-content: flex-start;
            }

            .language-switcher {
                top: 12px;
                right: 12px;
                padding: 4px 10px;
                gap: 4px;
            }
            
            .language-switcher .lang-btn {
                padding: 4px 10px;
                font-size: 11px;
            }

            .dropdowns-container {
                padding: 0 8px;
                width: 100%;
                margin-top: 0;
                border-radius: 24px;
            }

            /* Скрываем десктопные дропдауны */
            .dropdowns-row {
                display: none;
            }

            .btn-next {
                display: none !important;
            }



            /* Показываем мобильные дропдауны */
            .header-dropdowns {
                display: block;
                
            }

            .blocks-section {
                padding: 20px 12px;
            }

            .block-card {
                padding: 20px 18px;
                border-radius: 20px;
            }

            .blocks-container {
                grid-template-columns: 1fr 1fr;
                gap: 16px;
                max-width: 100%;
                padding: 0;
            }

            .block-title {
                font-size: 14px;
                margin-bottom: 8px;
            }

            .block-text {
                font-size: 10px;
                line-height: 1.5;
            }

            .info-section {
                padding: 30px 16px;
            }

            .section-title {
                font-size: 15px;
                margin-bottom: 24px;
            }

            .image-frame-container {
                --frame-radius: 32px;
                --frame-pad: 16px;
                min-height: 320px;
                width: 100%;
            }

            .frame-content {
                padding: 24px 20px;
                max-width: 100%;
            }

            .info-text {
                font-size: 10px;
                line-height: 1.6;
            }

            .brands-section-bottom {
                padding: 24px 16px 30px;
            }

            .brands-title-bottom {
                font-size: 22px;
                margin-bottom: 20px;
            }

            .brands-grid-bottom {
                grid-template-columns: repeat(2, 1fr);
                gap: 16px;
                max-width: 100%;
            }

            .brand-card-bottom {
                padding: 24px 20px;
                border-radius: 20px;
            }

            .brand-card-bottom .brand-logo {
                font-size: 52px;
                margin-bottom: 8px;
            }

            .brand-card-bottom .brand-name {
                font-size: 22px;
            }

            .brand-logo img {
                width: 56px;
                height: 56px;
            }

            .brand-card-bottom.acura:hover,
            .brand-card-bottom.honda:hover {
                transform: translateY(-4px);
            }
        }

        @media (max-width: 480px) {
            .header-dropdowns {
                padding: 8px 6px;
                border-radius: 12px;
            }

            .header-dropdowns-grid {
                gap: 4px;
            }

            .header-dropdowns .spec-item {
                padding: 2px 2px;
            }

            .header-dropdowns .spec-label {
                font-size: 11px;
                letter-spacing: 0.1px;
                margin-bottom: 4px;
            }

            .header-dropdowns .dropdown-select {
                padding: 6px 4px;
                font-size: 9px;
                border-radius: 0;
                min-height: 28px;
            }

            .header-dropdowns .dropdown-select:disabled {
                padding-left: 16px;
                padding-right: 2px;
                background-size: 10px 10px;
                background-position: 3px center;
            }

            .header-dropdowns .dropdown-select:not(:disabled) {
                padding-right: 18px;
            }

            .header-dropdowns .dropdown-select option {
                font-size: 9px;
                padding: 4px;
            }

            .btn-next-mobile {
                font-size: 11px;
                padding: 8px 12px;
                margin-top: 6px;
            }
        }
