﻿/* ================================================================
           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: #1a1a2e;
            --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;
            --price-bg-start: #2196F3;
            --price-bg-end: #1976D2;
            --price-text: #ffffff;
            --logo-color-start: #0D47A1;
            --logo-color-end: #42A5F5;
            --list-marker-color: var(--accent-color);
            --order-title-color: #2196F3;
            --star-color: #2196F3;
            --incompatible-color: #dc3545;
            --incompatible-bg: rgba(220, 53, 69, 0.1);
        }

        [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: #E8E8F0;
            --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;
            --price-bg-start: #FF3A2F;
            --price-bg-end: #B8251A;
            --price-text: #ffffff;
            --logo-color-start: #FFB5A0;
            --logo-color-end: #FFD4C4;
            --list-marker-color: var(--accent-color);
            --order-title-color: #FF3A2F;
            --star-color: #FF3A2F;
            --incompatible-color: #ff6b6b;
            --incompatible-bg: rgba(255, 107, 107, 0.15);
        }

        * { 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;
            line-height: 1.5;
            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);
        }

        .page-wrapper {
            display: flex;
            gap: 30px;
            width: 100%;
            margin: 0 auto;
            padding: 0 5% 60px 10%;
            align-items: flex-start;
            flex-wrap: wrap;
        }

        .dropdowns-sidebar {
            flex: 0 0 280px;
            position: sticky;
            top: 100px;
            align-self: flex-start;
        }

        .dropdowns-card {
            background: var(--bg-card);
            backdrop-filter: blur(12px);
            border-radius: 24px;
            padding: 24px;
            border: 1px solid var(--border-color);
            box-shadow: 0 20px 35px -12px var(--shadow-color);
            transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        }

        .dropdown-section {
            margin-bottom: 20px;
        }
        .dropdown-section:last-of-type { margin-bottom: 0; }

        .dropdown-label {
            display: block;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--accent-color);
            font-size: 12px;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .dropdown-select {
            width: 100%;
            padding: 12px 40px 12px 16px;
            font-size: 14px;
            font-weight: 500;
            background-color: var(--bg-input);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            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 14px 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 {
            width: 100%;
            margin-top: 12px;
            padding: 12px 20px;
            background: linear-gradient(95deg, var(--accent-color) 0%, var(--accent-hover) 100%);
            border: none;
            border-radius: 40px;
            color: white;
            font-weight: 700;
            font-size: 14px;
            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:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255,58,47,0.4);
        }

        .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);
        }

        .container { flex: 1; min-width: 0; }

        .car-header {
            background: var(--bg-card);
            border-radius: 28px;
            padding: 24px;
            margin-bottom: 24px;
            border: 1px solid var(--border-color);
            box-shadow: 0 4px 20px var(--shadow-color);
            transition: background 0.3s ease, border-color 0.3s ease;
            width: 100%;
            max-width: 800px;
        }

        .car-page-title {
            font-size: 22px;
            font-weight: 800;
            letter-spacing: -0.3px;
            margin: 0 0 16px;
            line-height: 1.25;
        }

        .specs-container {
            background: var(--bg-secondary);
            border-radius: 20px;
            margin-bottom: 24px;
            border: 1px solid var(--border-color);
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 8px;
            transition: all 0.3s ease;
        }

        .specs-container:hover {
            border-color: var(--accent-color);
            box-shadow: 0 8px 25px var(--shadow-color);
        }

        .spec-item {
            text-align: center;
            padding: 8px 4px;
        }

        .spec-label {
            display: block;
            font-size: 10px;
            font-weight: 700;
            color: var(--accent-color);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-bottom: 4px;
        }

        .spec-value {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .header-dropdowns {
            display: none;
            background: var(--bg-secondary);
            border-radius: 20px;
            margin-bottom: 16px;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
            padding: 8px 6px;
        }

        .header-dropdowns .dropdown-select {
            padding: 6px 22px 6px 10px;
            font-size: 11px;
            border-radius: 12px;
            background-color: var(--bg-input);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            cursor: pointer;
            font-family: 'Inter', sans-serif;
            font-weight: 600;
            text-align: center;
            width: 100%;
            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 8px center;
            background-size: 12px 12px;
        }

        .header-dropdowns .dropdown-select:disabled {
            background-color: var(--bg-secondary);
            color: var(--text-muted);
            cursor: not-allowed;
        }

        .header-dropdowns .spec-item {
            padding: 6px 8px;
        }

        .header-dropdowns .spec-label {
            font-size: 8px;
            letter-spacing: 0.5px;
            margin-bottom: 2px;
        }

        .header-dropdowns-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 4px;
        }

        .car-info-wrapper {
            display: flex;
            gap: 20px;
            align-items: stretch;
        }

        .car-image-full {
            flex: 1;
            background: var(--bg-secondary);
            border-radius: 20px;
            padding: 20px;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 200px;
        }

        .car-image-full:hover {
            border-color: var(--accent-color);
            box-shadow: 0 8px 30px var(--shadow-hover);
        }

        .car-image {
            max-width: 100%;
            max-height: 250px;
            width: auto;
            height: auto;
            object-fit: contain;
            border-radius: 12px;
            transition: transform 0.3s ease;
            display: block;
        }

        .car-image:hover {
            transform: scale(1.02);
        }

        .no-image-placeholder {
            color: var(--text-muted);
            padding: 60px 20px;
            text-align: center;
        }

        .no-image-placeholder i {
            font-size: 64px;
            opacity: 0.3;
            display: block;
            margin-bottom: 16px;
        }

        .car-order-block {
            flex: 0 0 240px;
            display: flex;
            align-items: stretch;
            padding: 20px;
            background: var(--bg-card);
            border-radius: 20px;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
            box-shadow: 0 4px 20px var(--shadow-color);
        }

        .car-order-block:hover {
            border-color: var(--accent-color);
            transform: translateY(-3px);
            box-shadow: 0 8px 25px var(--shadow-hover);
        }

        .order-content {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            text-align: center;
            gap: 16px;
            width: 100%;
            flex: 1;
        }

        .order-text {
            display: flex;
            flex-direction: column;
            gap: 4px;
            width: 100%;
        }

        .order-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--order-title-color);
            letter-spacing: 0.3px;
            text-align: center;
        }

        .order-price {
            font-size: 22px;
            font-weight: 800;
            color: var(--accent-color);
        }

        .order-button {
            display: inline-block;
            padding: 12px 32px;
            background: linear-gradient(95deg, var(--accent-color) 0%, var(--accent-hover) 100%);
            border: none;
            border-radius: 40px;
            color: #ffffff;
            font-weight: 700;
            font-size: 14px;
            text-decoration: none;
            transition: all 0.3s ease;
            letter-spacing: 0.8px;
            text-transform: uppercase;
            box-shadow: 0 4px 15px rgba(255, 58, 47, 0.3);
            width: 100%;
            text-align: center;
            cursor: pointer;
        }

        .car-order-block .order-button {
            margin-top: auto;
        }

        .order-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255, 58, 47, 0.4);
        }

        #prices-section { 
            scroll-margin-top: 20px;
        }

        .info-block {
            background: var(--bg-card);
            border-radius: 24px;
            padding: 28px 32px;
            margin-bottom: 24px;
            border: 1px solid var(--border-color);
            transition: all 0.25s;
            box-shadow: 0 4px 20px var(--shadow-color);
            width: 100%;
        }

        .info-block:hover {
            border-color: var(--accent-color);
            transform: translateY(-3px);
        }

        .info-title {
            font-size: 17px;
            font-weight: 700;
            font-family: inherit;
            line-height: 1.3;
            margin: 0 0 16px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--accent-color);
            display: inline-block;
            letter-spacing: -0.3px;
            color: var(--text-primary);
        }

        .info-content {
            color: var(--text-secondary);
            font-size: 13px;
            line-height: 1.7;
        }

        .info-list-plain {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .info-list-plain li {
            position: relative;
            padding: 8px 0 8px 0;
            color: var(--text-secondary);
            font-size: 13px;
            line-height: 1.7;
            transition: color 0.2s ease;
            border-bottom: 1px solid var(--border-color);
        }

        .info-list-plain li:last-child { border-bottom: none; }
        .info-list-plain li:hover { color: var(--text-primary); }

        .info-list-star {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .info-list-star li {
            position: relative;
            padding: 8px 0 8px 32px;
            color: var(--text-secondary);
            font-size: 13px;
            line-height: 1.7;
            transition: color 0.2s ease;
            border-bottom: 1px solid var(--border-color);
        }

        .info-list-star li:last-child { border-bottom: none; }

        .info-list-star li::before {
            content: "★";
            position: absolute;
            left: 0;
            top: 8px;
            color: var(--star-color);
            font-weight: 700;
            font-size: 15px;
            transition: transform 0.3s ease;
        }

        .info-list-star li:hover::before {
            transform: scale(1.2) rotate(10deg);
        }

        .info-list-star li:hover { color: var(--text-primary); }

        /* ===== КОНСТРУКТОР ЦЕН ===== */
        .price-result {
            margin-top: 20px;
            padding-top: 16px;
            border-top: 2px solid var(--border-color);
        }

        .price-result-row {
            display: flex;
            align-items: baseline;
            justify-content: flex-end;
            gap: 8px;
            flex-wrap: wrap;
        }

        .price-result-label {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .price-result-value {
            font-size: 24px;
            font-weight: 800;
            color: var(--accent-color);
        }

        .price-result-value.incompatible {
            color: var(--incompatible-color);
        }

        .price-result-currency {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-muted);
        }

        .price-result-text {
            font-size: 16px;
            font-weight: 600;
            color: var(--accent-color);
            margin-left: 4px;
        }

        .price-result-text.incompatible {
            color: var(--incompatible-color);
        }

        .price-actions {
            display: flex;
            gap: 10px;
            margin-top: 12px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .price-actions button {
            padding: 6px 16px;
            border-radius: 20px;
            border: 1px solid var(--border-color);
            background: var(--bg-input);
            color: var(--text-secondary);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .price-actions button:hover {
            border-color: var(--accent-color);
            color: var(--accent-color);
            background: var(--bg-secondary);
        }

        .price-option-badge {
            font-size: 10px;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 20px;
            background: var(--accent-color);
            color: white;
            text-transform: uppercase;
            margin-left: 6px;
        }

        .price-option-badge.pro {
            background: #4CAF50;
        }

        .price-option-badge.from {
            background: #FF9800;
        }

        .price-option-badge.text {
            background: #9C27B0;
        }

        .price-option-badge.zero {
            background: #757575;
        }

        .price-option-badge.incompatible-badge {
            background: var(--incompatible-color);
            color: white;
        }

        .price-label {
            font-size: 17px;
            font-weight: 700;
            text-transform: none;
            letter-spacing: -0.3px;
            color: var(--text-primary);
            margin-bottom: 16px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--accent-color);
            display: inline-block;
        }

        .price-table-wrapper {
            margin-top: 15px;
            overflow-x: auto;
            border-radius: 12px;
            padding: 4px;
        }

        .price-table {
            width: 100%;
            border-collapse: collapse;
            border-radius: 10px;
            overflow: hidden;
        }

        .price-table thead th {
            padding: 10px 16px;
            text-align: left;
            font-weight: 700;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-primary);
            border-bottom: 1px solid var(--border-color);
        }

        .price-table thead th:not(:first-child) { text-align: center; }

        .price-table tbody tr {
            border-bottom: 1px solid var(--border-color);
            transition: background 0.2s ease;
        }

        .price-table tbody tr:last-child { border-bottom: none; }
        .price-table tbody tr:hover { background: var(--bg-secondary); }

        .price-table > tbody > tr > td {
            padding: 10px 16px;
            text-align: left;
            font-weight: 500;
            font-size: 13px;
            color: var(--text-primary);
        }

        .price-table > tbody > tr > td:not(:first-child) {
            text-align: center;
            font-weight: 700;
            font-size: 13px;
            color: var(--text-secondary);
        }

        .price-name-cell {
            display: flex;
            align-items: center;
            gap: 0px;
            flex-wrap: wrap;
        }

        .price-name-cell .info-btn {
            background: none;
            border: none;
            color: var(--accent-color);
            cursor: pointer;
            font-size: 15px;
            padding: 0 2px;
            transition: all 0.2s ease;
            opacity: 0.7;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            margin-left: 2px;
        }

        .price-name-cell .info-btn:hover {
            opacity: 1;
            transform: scale(1.2);
            color: var(--accent-hover);
        }

        .price-name-cell .info-btn i {
            font-size: 15px;
            pointer-events: none;
        }

        .price-dot {
            display: inline-block;
            width: 6px;
            height: 6px;
            background: var(--accent-color);
            border-radius: 50%;
            flex-shrink: 0;
        }

        .price-dot.zero-dot {
            background: #757575;
        }

        .price-dot.incompatible-dot {
            background: var(--incompatible-color);
        }

        .price-empty {
            font-size: 13px;
            color: var(--text-muted);
        }


        /* ===== ПК / МОБИЛКА: название + инфо ===== */
        .price-name-desktop { display: block; }

        .price-name-mobile,
        .price-name-mobile-wrap {
            display: none !important;
        }

        .name-info-table {
            width: max-content !important;
            max-width: 100%;
            border-collapse: collapse;
            border: none;
            margin: 0;
            padding: 0;
            table-layout: auto !important;
            vertical-align: middle;
            font: inherit;
            color: inherit;
            letter-spacing: inherit;
        }

        .name-info-table td {
            border: none !important;
            padding: 0 !important;
            margin: 0 !important;
            vertical-align: middle;
            background: transparent !important;
        }

        .name-info-table .name-cell {
            width: auto !important;
            white-space: normal;
            text-align: left;
            font-weight: inherit;
            font-size: inherit;
            line-height: inherit;
            color: inherit;
            font-family: inherit;
            letter-spacing: inherit;
            font-style: inherit;
            text-transform: none;
        }

        .name-info-table .info-cell {
            width: 1% !important;
            white-space: nowrap !important;
            padding: 0 0 0 4px !important;
            text-align: left !important;
            vertical-align: middle;
            line-height: 1;
        }

        .name-info-table .info-btn {
            display: inline-flex !important;
            align-items: center;
            background: none !important;
            border: none !important;
            color: var(--accent-color) !important;
            cursor: pointer;
            font-size: 14px !important;
            padding: 0 !important;
            margin: 0 !important;
            line-height: 1 !important;
            opacity: 0.85;
            vertical-align: middle;
        }

        .name-info-table .info-btn:hover {
            opacity: 1;
            color: var(--accent-hover) !important;
        }

        .name-info-table .info-btn i {
            font-size: 14px !important;
            pointer-events: none;
            vertical-align: middle;
        }

        @media (max-width: 768px) {
    .price-name-desktop { display: none !important; }

    .price-table-wrapper {
        overflow-x: hidden;
    }

    .price-table {
        width: 100% !important;
        table-layout: fixed !important;
    }

    .price-table .name-col {
        width: 50% !important;
        max-width: 50% !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    .price-table th:nth-child(2),
    .price-table td:nth-child(2) {
        width: 30% !important;
    }

    .price-table th:last-child,
    .price-table td:last-child {
        width: 20% !important;
        min-width: 36px !important;
        max-width: 48px !important;
    }

    .price-name-mobile-wrap {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        vertical-align: middle;
    }

    .price-name-mobile-wrap .name-info-table {
        display: table !important;
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
    }

    .name-info-table .name-cell {
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        width: auto !important;
    }

    .name-info-table .info-cell {
        width: 20px !important;
        white-space: nowrap !important;
        vertical-align: middle !important;
    }

    span.price-name-mobile {
        display: block !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
    }

    .price-table .info-col {
        display: none !important;
        width: 0 !important;
        max-width: 0 !important;
        min-width: 0 !important;
        padding: 0 !important;
        border: none !important;
        overflow: hidden !important;
    }

    .price-table .info-col .info-btn {
        display: none !important;
    }
}

        /* ===== СТИЛИ ДЛЯ КНОПКИ ИНФОРМАЦИИ ===== */
        .info-btn {
            background: none;
            border: none;
            color: var(--accent-color);
            cursor: pointer;
            font-size: 16px;
            padding: 0 4px;
            transition: all 0.2s ease;
            opacity: 0.7;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        .info-btn:hover {
            opacity: 1;
            transform: scale(1.2);
            color: var(--accent-hover);
        }

        .info-btn i {
            font-size: 16px;
            pointer-events: none;
        }

        /* ===== СТОЛБИК ДЛЯ ИНФО (ТОЛЬКО МОБИЛЬНАЯ ВЕРСИЯ) ===== */
        /* На ПК столбик сжат до нуля, но ячейка остаётся в таблице —
           иначе colspan/скрытые td ломают выравнивание колонок */
        .price-table .info-col {
            width: 0;
            max-width: 0;
            min-width: 0;
            white-space: nowrap;
            padding: 0 !important;
            border: none;
            overflow: hidden;
            text-align: center;
            vertical-align: middle;
        }

        .price-table .info-col .info-btn {
            display: none;
        }

        .price-table .name-col {
            padding-right: 8px !important;
        }

        .price-table .name-col .price-name-cell {
            display: flex;
            align-items: center;
            gap: 0px;
        }

        /* Иконка информации внутри ячейки названия (ПК) */
        .price-table .info-btn-inline {
            display: inline-flex;
            margin-left: 6px;
            flex-shrink: 0;
        }

        .price-table .info-col .info-btn {
            padding: 0 2px;
            font-size: 14px;
            opacity: 0.7;
        }

        .price-table .info-col .info-btn:hover {
            opacity: 1;
        }

        /* ===== МОДАЛЬНОЕ ОКНО ДЛЯ ИНФОРМАЦИИ ===== */
        .info-modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 3000;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(4px);
            animation: fadeIn 0.3s ease;
        }

        .info-modal-overlay.active { display: flex; }

        .info-modal-content {
            background: var(--bg-card);
            border-radius: 20px;
            padding: 30px 35px;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            border: 1px solid var(--border-color);
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
            position: relative;
            animation: slideUp 0.3s ease;
        }

        .info-modal-close {
            position: absolute;
            top: 12px;
            right: 16px;
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 28px;
            cursor: pointer;
            transition: all 0.2s;
            line-height: 1;
        }

        .info-modal-close:hover {
            color: var(--accent-color);
            transform: rotate(90deg);
        }

        .info-modal-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 16px;
            padding-right: 30px;
        }

        .info-modal-title i {
            color: var(--accent-color);
            margin-right: 10px;
        }

        .info-modal-body {
            color: var(--text-secondary);
            font-size: 15px;
            line-height: 1.7;
            white-space: pre-wrap;
        }

        .info-modal-body p { margin-bottom: 8px; }

        .grafic-grid { margin-top: 4px; }

        .grafic-mini-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
        }

        .grafic-mini-item {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 16px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 20px var(--shadow-color);
        }

        .grafic-mini-item:hover {
            transform: translateY(-4px);
            border-color: var(--accent-color);
            box-shadow: 0 8px 25px var(--shadow-hover);
        }

        .grafic-mini-item .mini-image {
            width: 100%;
            height: 120px;
            object-fit: contain;
            border-radius: 8px;
            background: var(--bg-secondary);
            transition: transform 0.3s ease;
        }

        .grafic-mini-item:hover .mini-image {
            transform: scale(1.05);
        }

        .grafic-mini-item .mini-name {
            margin-top: 10px;
            font-weight: 600;
            font-size: 14px;
            color: var(--text-primary);
        }

        .grafic-mini-item .mini-icon {
            font-size: 32px;
            color: var(--accent-color);
            margin-bottom: 8px;
            display: block;
        }

        .grafic-mini-item .click-hint {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 6px;
        }

        .grafic-empty {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-muted);
        }

        .grafic-empty i {
            font-size: 48px;
            opacity: 0.3;
            display: block;
            margin-bottom: 16px;
        }

        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(8px);
            animation: fadeIn 0.3s ease;
        }

        .modal-overlay.active { display: flex; }

        .modal-content {
            background: var(--bg-card);
            border-radius: 24px;
            padding: 35px;
            max-width: 900px;
            width: 95%;
            max-height: 90vh;
            overflow-y: auto;
            border: 1px solid var(--border-color);
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
            position: relative;
            animation: slideUp 0.3s ease;
        }

        .modal-close {
            position: sticky;
            top: 0;
            float: right;
            background: var(--accent-color);
            border: none;
            color: white;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            font-size: 22px;
            cursor: pointer;
            z-index: 10;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(255, 58, 47, 0.3);
        }

        .modal-close:hover {
            transform: rotate(90deg);
            box-shadow: 0 6px 25px rgba(255, 58, 47, 0.5);
        }

        .modal-title {
            color: var(--text-primary);
            margin-bottom: 25px;
            font-size: 28px;
            font-weight: 700;
            margin-top: 0;
        }

        .modal-title i {
            color: var(--accent-color);
            margin-right: 12px;
        }

        .modal-title span {
            font-size: 16px;
            font-weight: 400;
            color: var(--text-muted);
            margin-left: 12px;
        }

        .modal-grafic-container {
            text-align: center;
            padding: 20px 0;
        }

        .modal-grafic-container img {
            max-width: 100%;
            max-height: 70vh;
            object-fit: contain;
            border-radius: 8px;
        }

        .modal-grafic-container .no-image {
            height: 300px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
        }

        .modal-grafic-container .no-image i {
            font-size: 64px;
            opacity: 0.3;
        }

        .modal-footer {
            margin-top: 25px;
            padding-top: 15px;
            border-top: 1px solid var(--border-color);
            text-align: center;
            color: var(--text-muted);
            font-size: 13px;
        }

        .modal-footer i { margin-right: 8px; }

        .mobile-price-block {
            display: none;
            background: var(--bg-card);
            border-radius: 16px;
            padding: 16px 20px;
            margin: 12px 0 16px 0;
            border: 1px solid var(--border-color);
            box-shadow: 0 4px 12px var(--shadow-color);
        }

        .mobile-price-content {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 8px;
        }

        .mobile-price-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-muted);
        }

        .mobile-price-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--accent-color);
        }

        .mobile-price-empty {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-muted);
        }

        /* ===== НЕСОВМЕСТИМАЯ ОПЦИЯ ===== */
        .incompatible-row {
            background: var(--incompatible-bg) !important;
            border-left: 3px solid var(--incompatible-color);
        }

        .incompatible-row .price-name-cell span {
            color: var(--incompatible-color);
        }

        .incompatible-row .price-dot {
            background: var(--incompatible-color);
        }

        .incompatible-badge {
            display: inline-block;
            padding: 2px 10px;
            border-radius: 12px;
            font-size: 10px;
            font-weight: 700;
            color: white;
            background: var(--incompatible-color);
            margin-left: 8px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        .price-cell-incompatible {
            color: var(--incompatible-color) !important;
            font-weight: 700 !important;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideUp {
            from {
                transform: translateY(30px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .modal-content::-webkit-scrollbar {
            width: 6px;
        }

        .modal-content::-webkit-scrollbar-track {
            background: var(--bg-secondary);
            border-radius: 10px;
        }

        .modal-content::-webkit-scrollbar-thumb {
            background: var(--accent-color);
            border-radius: 10px;
        }

        @media (max-width: 700px) {
            .mobile-price-block { display: block; }

            .page-wrapper {
                flex-direction: column;
                gap: 0px;
                padding: 0 10px 0px 10px;
            }

            .dropdowns-sidebar { display: none; }

            .container { order: 0; width: 100%; }

            .car-header {
                max-width: 100%;
                padding: 16px;
                border-radius: 20px;
            }

            .header-dropdowns { display: block; }
            .specs-container.desktop-specs { display: none; }

            .car-info-wrapper {
                flex-direction: column;
                gap: 16px;
            }

            .car-image-full {
                flex: none;
                width: 100%;
                padding: 12px;
                border-radius: 16px;
                min-height: 150px;
            }

            .car-image {
                max-height: 200px;
                width: 100%;
                height: auto;
            }

            .car-order-block { display: none; }

            .info-block {
                padding: 16px 18px;
                max-width: 100%;
                width: 100%;
            }

            .info-title {
                font-size: 12px;
                margin: 0 0 12px;
                padding-bottom: 8px;
            }

            .info-content {
                font-size: 10px;
                line-height: 1.5;
            }

            .price-table thead th,
            .price-table > tbody > tr > td {
                padding: 8px 10px;
                font-size: 10px;
            }

            .price-table > tbody > tr > td:not(:first-child) { font-size: 10px; }

            .grafic-mini-grid {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
                gap: 12px;
            }

            .grafic-mini-item .mini-image { height: 80px; }
            .grafic-mini-item .mini-name { font-size: 12px; }
            .grafic-empty i { font-size: 36px; }

            .modal-content {
                padding: 20px;
                width: 98%;
                max-height: 95vh;
            }

            .modal-title {
                font-size: 20px;
                margin-bottom: 16px;
            }

            .modal-close {
                width: 36px;
                height: 36px;
                font-size: 18px;
            }

            .language-switcher {
                top: 12px;
                right: 12px;
                padding: 4px 10px;
                gap: 4px;
            }

            .language-switcher .lang-btn {
                padding: 4px 10px;
                font-size: 11px;
            }

            .btn-next-mobile { display: none; }
            .btn-next-mobile.show { display: block; }

            .info-list-plain li,
            .info-list li,
            .info-list-star li {
                padding: 6px 0 6px 0;
                font-size: 10px;
            }
            
            .info-list li::before,
            .info-list-star li::before {
                top: 6px;
                font-size: 12px;
            }
            
            .info-list li {
                padding: 6px 0 6px 24px;
            }
            
            .info-list-star li {
                padding: 6px 0 6px 28px;
            }

            .info-btn { font-size: 14px; }
            .info-btn i { font-size: 14px; }
            
            .info-modal-content {
                padding: 20px 24px;
                max-width: 95%;
            }
            
            .info-modal-title { font-size: 17px; }
            .info-modal-body { font-size: 13px; }
            
            .price-result-value { font-size: 20px; }
            .price-result-text { font-size: 14px; }

            .price-name-cell .info-btn {
                font-size: 12px;
            }
            .price-name-cell .info-btn i {
                font-size: 12px;
            }

            /* На телефоне иконка информации остаётся в отдельном столбике */
            .price-table .info-col {
                width: 7%;
                max-width: none;
                min-width: 16px;
                overflow: visible;
            }

            .price-table .info-col .info-btn {
                display: inline-flex;
            }

            .price-table .info-btn-inline {
                display: none !important;
            }

            .price-table .name-col {
                padding-right: 2px !important;
            }
        }

        @media (max-width: 480px) {
            .mobile-price-block {
                padding: 12px 16px;
                margin: 8px 0 12px 0;
                border-radius: 12px;
            }
            
            .mobile-price-title { font-size: 12px; }
            .mobile-price-value { font-size: 17px; }
            .mobile-price-empty { font-size: 12px; }

            .header-dropdowns {
                padding: 4px 4px;
                margin-bottom: 8px;
                border-radius: 12px;
            }

            .header-dropdowns-grid { gap: 2px; }

            .header-dropdowns .spec-item {
                padding: 2px 2px;
            }

            .header-dropdowns .spec-label {
                font-size: 6px;
                letter-spacing: 0.2px;
                margin-bottom: 1px;
            }

            .header-dropdowns .dropdown-select {
                padding: 3px 4px;
                font-size: 8px;
                border-radius: 6px;
                min-height: 22px;
                border-width: 1px;
            }

            .spec-divider { display: none; }

            .btn-next-mobile {
                font-size: 11px;
                padding: 8px 12px;
            }

            .info-list-plain li,
            .info-list li,
            .info-list-star li {
                padding: 4px 0 4px 0;
                font-size: 10px;
            }
            
            .info-list li::before,
            .info-list-star li::before {
                top: 4px;
                font-size: 10px;
            }
            
            .info-list li {
                padding: 4px 0 4px 20px;
            }
            
            .info-list-star li {
                padding: 4px 0 4px 24px;
            }
            
            .price-option-badge { font-size: 9px; padding: 1px 6px; }
            .price-result-value { font-size: 18px; }
            .price-result-text { font-size: 13px; }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .btn-next-mobile.show {
            display: block;
            animation: fadeInUp 0.3s ease;
        }

        /* ===== МОБИЛЬНАЯ ВЕРСИЯ ТАБЛИЦЫ ЦЕН ОПЦИЙ ===== */
        @media (max-width: 700px) {
            #optionsTable {
                table-layout: fixed;
                width: 100%;
            }
            
            #optionsTable thead th,
            #optionsTable tbody td {
                padding: 6px 3px;
                font-size: 9px;
            }

            /* Заголовки переносятся ТОЛЬКО по словам, слова не разрываются */
            #optionsTable thead th {
        white-space: normal !important;
        word-break: keep-all !important;      /* НЕ РАЗРЫВАЕТ СЛОВА */
        overflow-wrap: break-word !important; /* ПЕРЕНОСИТ ТОЛЬКО ПО СЛОВАМ */
        hyphens: none !important;             /* ОТКЛЮЧАЕМ ПЕРЕНОСЫ ПО СЛОГАМ */
        line-height: 1.3;
        letter-spacing: 0.2px;
        vertical-align: middle;
        text-align: center;
        word-wrap: break-word !important;
    }

            /* 1 — название, 2 — иконка инфо, 3 — цена без тюнинга,
               4 — доплата при тюнинге, 5 — выбрать */
            #optionsTable thead th:first-child,
            #optionsTable tbody td:first-child {
                width: 40% !important;
                text-align: left;
                word-break: normal;
                overflow-wrap: break-word;
                padding-right: 2px;
                font-size: 10px;
                font-weight: 600;
            }

            #optionsTable thead th:nth-child(2),
            #optionsTable tbody td:nth-child(2) {
                width: 22% !important;
                min-width: 80px !important; /* Не дает сжать слово "тюнинга" */
                text-align: center;
            }

            /* 3-й столбец: Доплата при тюнинге */
            #optionsTable thead th:nth-child(3),
            #optionsTable tbody td:nth-child(3) {
                width: 22% !important;
                min-width: 80px !important; /* Одинаковый размер со 2-м столбцом */
                text-align: center;
            }

            /* 4-й столбец: Чекбокс Выбрать */
            #optionsTable thead th:nth-child(4),
            #optionsTable tbody td:nth-child(4) {
                width: 12% !important;
                min-width: 35px !important;
                text-align: center;
            }
            
            #optionsTable .info-btn {
                font-size: 11px !important;
                padding: 0 2px;
            }
            
            #optionsTable .info-btn i {
                font-size: 11px !important;
            }
            
            #optionsTable input[type="checkbox"] {
                width: 14px !important;
                height: 14px !important;
            }
        }

        @media (max-width: 480px) {
            #optionsTable thead th,
            #optionsTable tbody td {
                padding: 5px 2px;
                font-size: 8px;
            }

            #optionsTable thead th {
                font-size: 8px;
                letter-spacing: 0.1px;
                line-height: 1.2;
            }

            #optionsTable thead th:first-child,
            #optionsTable tbody td:first-child {
                width: 33% !important;
                font-size: 9px;
            }

            #optionsTable thead th:nth-child(2),
            #optionsTable tbody td:nth-child(2),
            #optionsTable thead th:nth-child(3),
            #optionsTable tbody td:nth-child(3) {
                width: 22% !important;
                min-width: 60px !important;
            }

            #optionsTable tbody td:nth-child(2),
            #optionsTable tbody td:nth-child(3) {
                font-size: 8px;
                white-space: nowrap;
            }

            #optionsTable thead th:last-child,
            #optionsTable tbody td:last-child {
                width: 15% !important;
                min-width: 26px;
            }
        }
