        /* ============================================
           ГЛОБАЛЬНЫЕ СТИЛИ И ПЕРЕМЕННЫЕ
           ============================================ */
           :root {
            --primary-blue: #0D47A1;
            --accent-teal: #00796B;
            --accent-orange: #EF6C00;
            --gray-dark: #212121;
            --gray-medium: #B0BEC5;
            --gray-light: #ECEFF1;
            --background-white: #FFFFFF;
            --background-light: #F8F9FA;
            --border-color: #CFD8DC;
            --text-primary: #212121;
            --text-secondary: #546E7A;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', Arial, sans-serif;
            line-height: 1.6;
            color: var(--text-primary);
            background-color: var(--background-light);
            overflow-x: hidden;
        }

/* ============================================
           HEADER - ШАПКА САЙТА (ОБНОВЛЕННАЯ)
           ============================================ */
           .header {
            /* Здесь мы накладываем синий фильтр поверх картинки */
            background: linear-gradient(rgba(13, 71, 161, 0.85), rgba(13, 71, 161, 0.9)), 
            url('../img/header-bg.webp');
            
            /* Настройки фона */
            background-size: cover;    /* Растянуть картинку на всю ширину */
            background-position: center; /* Центрировать картинку */
            background-repeat: no-repeat;
            
            color: var(--background-white);
            
            /* УВЕЛИЧЕННЫЕ ОТСТУПЫ (было 60px, стало 120px) */
            padding: 120px 20px; 
            
            text-align: center;
            position: relative;
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        }

        .header h1 {
            font-size: 2.8em;
            font-weight: 700;
            margin-bottom: 15px;
            letter-spacing: -0.5px;
        }

        .header p {
            font-size: 1.2em;
            font-weight: 300;
            max-width: 800px;
            margin: 0 auto;
            opacity: 0.95;
        }

        .header-stats {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin-top: 40px;
            flex-wrap: wrap;
        }

        .stat-item {
            text-align: center;
        }

        .stat-number {
            font-size: 2.5em;
            font-weight: 700;
            color: var(--accent-orange);
            display: block;
        }

        .stat-label {
            font-size: 0.9em;
            opacity: 0.9;
            margin-top: 5px;
        }

        /* ============================================
           НАВИГАЦИЯ
           ============================================ */
           .navigation {
            background-color: var(--background-white);
            padding: 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 4px rgba(0,0,0,0.08);
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
        }

        .nav-container a {
            color: var(--text-primary);
            text-decoration: none;
            padding: 18px 24px;
            font-weight: 500;
            font-size: 0.95em;
            border-bottom: 3px solid transparent;
            transition: all 0.3s ease;
        }

        .nav-container a:hover {
            background-color: var(--gray-light);
            border-bottom-color: var(--accent-teal);
            color: var(--accent-teal);
        }

        /* ============================================
           КОНТЕЙНЕР И СЕКЦИИ
           ============================================ */
           .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        .section {
            background-color: var(--background-white);
            border: 1px solid var(--border-color);
            border-radius: 4px;
            padding: 40px;
            margin-bottom: 30px;
            position: relative;
        }

        .section-number {
            position: absolute;
            top: -15px;
            left: 30px;
            background-color: var(--primary-blue);
            color: white;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.1em;
        }

        .section h2 {
            color: var(--primary-blue);
            font-size: 2em;
            margin-bottom: 25px;
            padding-top: 10px;
            font-weight: 600;
        }

        .section h3 {
            color: var(--accent-teal);
            font-size: 1.4em;
            margin-top: 30px;
            margin-bottom: 15px;
            font-weight: 600;
        }

        .section p {
            margin-bottom: 15px;
            color: var(--text-secondary);
            line-height: 1.7;
        }

        /* ============================================
           КАЛЬКУЛЯТОР (НОВЫЕ СТИЛИ)
           ============================================ */
           .calc-wrapper {
            display: grid;
            grid-template-columns: 1fr 350px;
            gap: 30px;
            margin-top: 20px;
        }
        
        @media (max-width: 900px) {
            .calc-wrapper {
                grid-template-columns: 1fr;
            }
        }

        .calc-controls {
            padding-right: 20px;
        }

        .calc-control-group {
            margin-bottom: 10px;
        }

        .calc-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .calc-value {
            color: var(--accent-teal);
            font-weight: 700;
        }

        /* Стиль ползунка (Range) */
        input[type=range] {
            -webkit-appearance: none;
            width: 100%;
            height: 8px;
            background: var(--gray-light);
            border-radius: 5px;
            outline: none;
            margin: 10px 0;
        }

        input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--primary-blue);
            cursor: pointer;
            transition: background .15s ease-in-out;
            border: 2px solid white;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

        input[type=range]::-webkit-slider-thumb:hover {
            background: var(--accent-orange);
            transform: scale(1.1);
        }

        /* Контейнер для двух ползунков в одной строке */
        .calc-row {
            display: flex;
            gap: 20px;
            margin-bottom: 10px; /* при необходимости отступ снизу */
        }

        /* Каждый контрол внутри строки занимает равную ширину */
        .calc-row .calc-control-group {
            flex: 1;
            margin-bottom: 0; /* убираем стандартный нижний отступ */
        }

        /* Адаптивность для мобильных устройств */
        @media (max-width: 600px) {
            .calc-row {
                flex-direction: column;
                gap: 10px;
            }
        }

        /* Радио-кнопки (Тип здания) */
        .calc-radio-group {
            display: flex;
            gap: 15px;
            margin-top: 10px;
        }

        .calc-radio-label {
            flex: 1;
            position: relative;
            cursor: pointer;
        }

        .calc-radio-input {
            position: absolute;
            opacity: 0;
            cursor: pointer;
        }

        .calc-radio-tile {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background-color: var(--background-light);
            border: 2px solid var(--border-color);
            border-radius: 8px;
            padding: 15px;
            transition: all 0.3s ease;
            height: 100%;
            text-align: center;
        }

        .calc-radio-input:checked + .calc-radio-tile {
            background-color: rgba(0, 121, 107, 0.05);
            border-color: var(--accent-teal);
            color: var(--accent-teal);
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        }
        
        .calc-radio-tile:hover {
            border-color: var(--gray-medium);
        }

        /* Блок результата */
        .calc-result-box {
            background-color: var(--primary-blue);
            color: white;
            padding: 30px;
            border-radius: 8px;
            position: sticky;
            top: 80px;
            box-shadow: 0 10px 20px rgba(13, 71, 161, 0.2);
        }

        .calc-result-title {
            font-size: 0.9em;
            text-transform: uppercase;
            letter-spacing: 1px;
            opacity: 0.8;
            margin-bottom: 15px;
        }

        .calc-total-price {
            font-size: 2.5em;
            font-weight: 700;
            color: var(--accent-orange);
            margin-bottom: 5px;
            line-height: 1.1;
        }
        
        .calc-price-note {
            font-size: 0.8em;
            opacity: 0.7;
            margin-bottom: 25px;
        }

        .calc-detail-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            padding-bottom: 5px;
            font-size: 0.95em;
        }
        
        .calc-detail-row:last-child {
            border-bottom: none;
        }

        .calc-btn {
            background-color: var(--accent-orange);
            color: white;
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 4px;
            font-weight: 600;
            font-size: 1.1em;
            cursor: pointer;
            margin-top: 20px;
            transition: background 0.3s;
        }

        .calc-btn:hover {
            background-color: #D84315;
        }

/* ============================================
   КОМПАКТНЫЙ ВЫБОР ЦВЕТА (ВСЕ В ОДНУ СТРОКУ)
   ============================================ */
.colors-wrapper {
    display: flex;
    width: 100%;
    background-color: white;
    /* border: 1px solid var(--border-color, #e0e0e0); */ /* Убрано: внешняя рамка */
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.color-section {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 8px;
    min-width: 0;
}

/* Разделитель по центру */
.color-section:first-child {
    /* border-right: 1px solid var(--border-color, #e0e0e0); */ /* Убрано: разделительная линия */
}

.color-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary, #333);
    white-space: nowrap;
    margin-right: 2px;
    flex-shrink: 0;
}

/* Палитра 5 цветов - КРУЖОЧКИ */
.color-mini-palette {
    display: flex;
    gap: 4px;
    margin: 0;
    flex-shrink: 0;
}

.color-mini-swatch {
    width: 24px;
    height: 24px;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    border-radius: 50% !important;
}

.color-mini-swatch:hover {
    transform: scale(1.15);
    border-color: var(--accent-orange, #FF6B35);
    z-index: 2;
}

.color-mini-swatch.active {
    border-color: var(--accent-orange, #FF6B35);
    box-shadow: 0 0 0 2px var(--accent-orange, #FF6B35);
    z-index: 1;
}

/* Контейнер для списка */
.color-select-wrapper {
    flex: 1;
    min-width: 0;
    position: relative;
}

/* Стили для выпадающего списка с цветным кружком */
.color-select {
    width: 100%;
    padding: 6px 12px 6px 30px !important;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background-color: white !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    color: #333 !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' 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: 14px;
}

.color-select:hover {
    border-color: #0D47A1;
}

.color-select:focus {
    outline: none;
    border-color: #0D47A1;
    box-shadow: 0 0 0 2px rgba(13, 71, 161, 0.1);
}

/* Цветной кружок слева от выбранного значения */
.select-preview-dot {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Стили для опций в выпадающем списке */
.color-select option {
    padding: 8px 12px 8px 30px !important;
    font-size: 12px;
    position: relative;
}

/* Для Firefox */
@-moz-document url-prefix() {
    .color-select {
        text-indent: 18px;
    }
    .color-select option {
        padding-left: 30px !important;
    }
}

/* ============================================
   МОБИЛЬНАЯ АДАПТАЦИЯ - ТОЛЬКО ВЫПАДАЮЩИЙ СПИСОК
   ============================================ */

/* Планшеты */
@media (max-width: 1000px) {
    .colors-wrapper {
        flex-direction: row;
    }
    
    .color-section {
        padding: 6px 8px;
    }
    
    .color-label {
        font-size: 11px;
    }
    
    .color-mini-swatch {
        width: 20px;
        height: 20px;
    }
    
    .color-select {
        padding: 4px 10px 4px 26px !important;
        height: 28px;
        font-size: 11px;
    }

    /* Кастомный список на планшетах */
    .custom-select-trigger {
        padding: 6px 10px;
        height: 30px;
        font-size: 11px;
    }
    .custom-color-dot {
        width: 14px;
        height: 14px;
    }
    .custom-select-options {
        font-size: 11px;
        max-height: 35vh;
    }
    .custom-select-option {
        padding: 8px 10px;
    }
}

/* Мобильные устройства - убираем всё лишнее, оставляем только select */
@media (max-width: 768px) {
    .colors-wrapper {
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    .color-section {
        padding: 6px 8px;
        gap: 0; /* Убираем gap */
    }
    
    /* Прячем label "Стены:" и "Кровля:" */
    .color-label {
        display: none;
    }
    
    /* Прячем мини-палитру с 5 цветами */
    .color-mini-palette {
        display: none;
    }
    
    /* Контейнер для select занимает всю ширину */
    .color-select-wrapper {
        width: 100%;
    }
    
    /* Делаем select на всю ширину */
    .color-select {
        padding: 6px 12px 6px 30px !important;
        height: 36px;
        font-size: 13px;
        width: 100%;
    }
    
    .select-preview-dot {
        width: 16px;
        height: 16px;
        left: 10px;
    }

    /* Кастомный список на мобильных */
    .custom-select-trigger {
        padding: 8px 12px;
        height: 36px;
        font-size: 13px;
    }
    .custom-color-dot {
        width: 16px;
        height: 16px;
    }
    .custom-select-options {
        font-size: 13px;
        max-height: 45vh;
    }
    .custom-select-option {
        padding: 10px 12px;
    }
}

/* Маленькие мобильные устройства */
@media (max-width: 480px) {
    .color-section {
        padding: 5px 6px;
    }
    
    .color-select {
        padding: 5px 10px 5px 28px !important;
        height: 34px;
        font-size: 12px;
    }
    
    .select-preview-dot {
        width: 14px;
        height: 14px;
        left: 9px;
    }

    /* Кастомный список на маленьких экранах */
    .custom-select-trigger {
        padding: 6px 10px;
        height: 34px;
        font-size: 12px;
    }
    .custom-color-dot {
        width: 14px;
        height: 14px;
    }
    .custom-select-options {
        font-size: 12px;
    }
    .custom-select-option {
        padding: 8px 10px;
    }

    /* --- Навигация для очень узких экранов --- */
    .nav-container a {
        padding: 8px 10px; /* Еще меньше отступов */
        font-size: 12px;   /* Минимально читаемый шрифт */
    }
    
    /* Уменьшаем отступ контента сверху, так как шапка стала тоньше */
    .container {
        padding-top: 45px; 
    }
}

/* Для устройств с тач-интерфейсом */
@media (hover: none) and (pointer: coarse) {
    @media (max-width: 768px) {
        .color-select {
            padding: 8px 12px 8px 32px !important;
            height: 44px;
            font-size: 14px;
        }
        
        .select-preview-dot {
            width: 18px;
            height: 18px;
            left: 10px;
        }

        /* Увеличиваем кастомный триггер для тач-устройств */
        .custom-select-trigger {
            padding: 10px 12px;
            height: 44px;
            font-size: 14px;
        }
        .custom-color-dot {
            width: 20px;
            height: 20px;
        }
        .custom-select-options {
            max-height: 50vh;
        }
        .custom-select-option {
            padding: 12px 14px;
        }
    }
}

/* Для Firefox на мобильных */
@-moz-document url-prefix() {
    @media (max-width: 768px) {
        .color-select {
            text-indent: 20px;
        }
    }
}

/* ============================================
   КАСТОМНЫЙ ВЫПАДАЮЩИЙ СПИСОК ЦВЕТОВ (ДЛЯ МОБИЛЬНЫХ И ПК)
   ============================================ */
.custom-select-container {
    position: relative;
    width: 100%;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 13px;
}

/* Кнопка (заголовок списка) */
.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    height: 36px;
}

.custom-select-trigger:hover {
    border-color: #0D47A1;
}

.custom-select-trigger span {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Цветной кружок в заголовке */
.custom-color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.2);
    flex-shrink: 0;
}

/* Стрелочка */
.custom-select-trigger::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: translateY(-3px) rotate(45deg);
    transition: transform 0.2s;
}

.custom-select-container.open .custom-select-trigger::after {
    transform: translateY(3px) rotate(-135deg);
}

/* Выпадающий список — открывается вверх */
.custom-select-options {
    position: absolute;
    bottom: 100%;          /* вместо top: 100% */
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 5px;    /* вместо margin-top */
    max-height: 40vh;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    list-style: none;
    padding: 0;
}

.custom-select-container.open .custom-select-options {
    display: block;
}

/* Элемент списка */
.custom-select-option {
    padding: 10px 12px;
    cursor: pointer;
    display: block;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: filter 0.2s;
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    filter: brightness(0.9); /* Слегка затемняем при наведении */
}

/* Выделение выбранного цвета в списке */
.custom-select-option.selected-item {
    font-weight: bold;
    border-left: 4px solid #0D47A1; /* Синяя полоска слева */
    background-image: linear-gradient(to right, rgba(13, 71, 161, 0.1), transparent);
}
        /* ============================================
           ГАЛЕРЕЯ ИЗОБРАЖЕНИЙ
           ============================================ */
           .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin: 30px 0;
        }

        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 4px;
            border: 1px solid var(--border-color);
            cursor: pointer;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .gallery-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0,0,0,0.15);
        }

        .gallery-item img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            display: block;
        }

        .gallery-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(13,71,161,0.95), transparent);
            color: white;
            padding: 15px;
            font-size: 0.9em;
            font-weight: 500;
        }

        /* ============================================
           КАРТОЧКИ СПЕЦИФИКАЦИЙ
           ============================================ */
           .specs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin: 30px 0;
        }

        .spec-card {
            background-color: var(--background-white);
            border-top: 4px solid var(--accent-teal);
            border: 1px solid var(--border-color);
            border-radius: 4px;
            padding: 25px;
            text-align: center;
            transition: all 0.3s ease;
        }

        .spec-card:hover {
            border-top-color: var(--accent-orange);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .spec-icon {
            font-size: 2.5em;
            color: var(--accent-teal);
            margin-bottom: 15px;
        }

        .spec-card h4 {
            color: var(--primary-blue);
            font-size: 1.1em;
            margin-bottom: 10px;
            font-weight: 600;
        }

        .spec-card p {
            font-size: 0.95em;
            color: var(--text-secondary);
        }

        /* ============================================
           ТАБЛИЦА ЦЕН
           ============================================ */
           .price-table {
            width: 100%;
            border-collapse: collapse;
            margin: 30px 0;
            border: 1px solid var(--border-color);
        }

        .price-table thead {
            background-color: var(--primary-blue);
            color: white;
        }

        .price-table th {
            padding: 15px;
            text-align: left;
            font-weight: 600;
            font-size: 0.95em;
            border-right: 1px solid rgba(255,255,255,0.2);
        }

        .price-table th:last-child {
            border-right: none;
        }

        .price-table td {
            padding: 15px;
            border-bottom: 1px solid var(--border-color);
            border-right: 1px solid var(--border-color);
        }

        .price-table td:last-child {
            border-right: none;
        }

        .price-table tbody tr:hover {
            background-color: var(--gray-light);
        }

        .price-highlight {
            color: var(--accent-orange);
            font-weight: 600;
            font-size: 1.1em;
        }

        /* ============================================
           ПРЕИМУЩЕСТВА (FEATURES LIST)
           ============================================ */
           .features-list {
            list-style: none;
            margin: 20px 0;
        }

        .features-list li {
            padding: 15px 20px;
            margin-bottom: 12px;
            background-color: var(--background-light);
            border-left: 4px solid var(--accent-teal);
            border-radius: 4px;
            color: var(--text-secondary);
            transition: all 0.3s ease;
        }

        .features-list li:hover {
            background-color: var(--gray-light);
            border-left-color: var(--accent-orange);
            transform: translateX(5px);
        }

        .features-list li::before {
            content: "✓";
            color: var(--accent-teal);
            font-weight: 700;
            margin-right: 12px;
            font-size: 1.2em;
        }

        /* ============================================
           ГРАФИК (CANVAS)
           ============================================ */
           .chart-container {
            position: relative;
            height: 400px;
            margin: 30px 0;
            background-color: var(--background-white);
            padding: 20px;
            border: 1px solid var(--border-color);
            border-radius: 4px;
        }

        /* ============================================
           КНОПКИ ПРИЗЫВА К ДЕЙСТВИЮ
           ============================================ */
           .cta-container {
            text-align: center;
            margin: 40px 0;
        }

        .cta-button {
            display: inline-block;
            background-color: var(--accent-orange);
            color: white;
            padding: 18px 40px;
            text-decoration: none;
            border-radius: 4px;
            font-weight: 600;
            font-size: 1.1em;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            margin: 10px;
        }

        .cta-button:hover {
            background-color: #D84315;
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(239,108,0,0.3);
        }

        .cta-button.secondary {
            background-color: var(--accent-teal);
        }

        .cta-button.secondary:hover {
            background-color: #00695C;
        }

        /* ============================================
           КОНТАКТНАЯ ИНФОРМАЦИЯ
           ============================================ */
           .contact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin: 30px 0;
        }

        .contact-card {
            background-color: var(--background-light);
            padding: 25px;
            border-radius: 4px;
            border: 1px solid var(--border-color);
            text-align: center;
        }

        .contact-icon {
            font-size: 2.5em;
            color: var(--primary-blue);
            margin-bottom: 15px;
        }

        .contact-card h4 {
            color: var(--primary-blue);
            margin-bottom: 10px;
            font-weight: 600;
        }

        .contact-card a {
            color: var(--accent-teal);
            text-decoration: none;
            font-weight: 500;
        }

        .contact-card a:hover {
            text-decoration: underline;
            color: var(--accent-orange);
        }
    
/* === СТИЛИ ДЛЯ ФОРМЫ ЗАЯВКИ === */
.contact-form-container {
    background-color: var(--background-white);
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--accent-orange);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 30px auto 0; /* По центру */
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1em;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(239, 108, 0, 0.1);
}

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

@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
}

/* ============================================
           ФУТЕР (ОБНОВЛЕННЫЙ)
           ============================================ */
        .footer {
            background-color: var(--gray-dark);
            color: #B0BEC5; /* Светло-серый текст */
            padding: 40px 20px;
            font-size: 0.9em;
            border-top: 3px solid var(--accent-orange);
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 20px;
            text-align: left;
        }

        .footer-col {
            flex: 1;
            min-width: 250px;
        }

        .footer h4 {
            color: #fff;
            margin-bottom: 15px;
            font-size: 1.1em;
        }

        .footer p {
            margin-bottom: 10px;
            line-height: 1.5;
        }

        .footer a {
            color: var(--accent-teal);
            text-decoration: none;
            transition: 0.3s;
        }

        .footer a:hover {
            color: var(--accent-orange);
            text-decoration: underline;
        }

        .footer-bottom {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #37474F;
            text-align: center;
            font-size: 0.8em;
            color: #546E7A;
        }

        @media (max-width: 768px) {
            .footer-container {
                flex-direction: column;
                text-align: center;
            }
        }

        /* Исправление цвета жирного текста в футере */
        .footer strong {
            color: #ffffff !important; /* Принудительно делаем белым */
        }
        
        /* ============================================
           МОДАЛЬНОЕ ОКНО ДЛЯ ГАЛЕРЕИ
           ============================================ */
           .modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.9);
            justify-content: center;
            align-items: center;
        }

/* === СТИЛИ ДЛЯ ЗУМА (БЕЗ КНОПОК) === */
        .modal-content {
            /* Плавность трансформации */
            transition: transform 0.1s ease-out; 
            cursor: grab; /* Курсор "рука" */
            transform-origin: center center; /* Зуммируем от центра */
            
            /* Ограничения, чтобы картинка не вылезала слишком сильно */
            max-width: 90%; 
            max-height: 90%;
            object-fit: contain;
        }
        
        /* Когда тащим картинку - курсор сжимается */
        .modal-content.dragging {
            cursor: grabbing;
            transition: none; /* Убираем плавность при перетаскивании, чтобы не лагало */
        }

        .modal-close {
            position: absolute;
            top: 30px;
            right: 40px;
            color: white;
            font-size: 40px;
            font-weight: 300;
            cursor: pointer;
        }

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

        /* ============================================
           ИНФОРМАЦИОННЫЕ БОКСЫ
           ============================================ */
           .info-box {
            background-color: var(--background-light);
            border-left: 4px solid var(--primary-blue);
            padding: 20px;
            margin: 20px 0;
            border-radius: 4px;
        }

        .info-box.warning {
            border-left-color: var(--accent-orange);
        }

        .info-box.success {
            border-left-color: var(--accent-teal);
        }

/* ============================================
           АДАПТИВНОСТЬ
           ============================================ */
        @media (max-width: 768px) {
            .header h1 {
                font-size: 2em;
            }

            .header-stats {
                gap: 20px;
            }

            .section {
                padding: 25px 20px;
            }

            .section h2 {
                font-size: 1.6em;
            }

            /* --- СТАРТ: КОМПАКТНАЯ НАВИГАЦИЯ --- */
            .nav-container {
                flex-wrap: nowrap; /* Запрещаем перенос на новые строки (все в один ряд) */
                overflow-x: auto; /* Включаем горизонтальную прокрутку */
                justify-content: flex-start; /* Выравниваем по левому краю */
                -webkit-overflow-scrolling: touch; /* Плавная прокрутка на iPhone/iPad */
                padding: 0 5px; /* Небольшой отступ по бокам экрана */
                scrollbar-width: none; /* Прячем полосу прокрутки в Firefox */
            }

            /* Прячем полосу прокрутки в Chrome/Safari/Edge, оставляя функционал */
            .nav-container::-webkit-scrollbar {
                display: none;
            }

            .nav-container a {
                padding: 10px 14px; /* Уменьшаем отступы: 10px сверху/снизу, 14px по бокам */
                font-size: 13px; /* Уменьшаем размер шрифта */
                white-space: nowrap; /* Запрещаем тексту внутри ссылки ломаться на 2 строки */
                flex-shrink: 0; /* Запрещаем кнопкам сплющиваться */
                border-bottom-width: 2px; /* Делаем полоску при наведении чуть тоньше */
            }
            /* --- КОНЕЦ: КОМПАКТНАЯ НАВИГАЦИЯ --- */

            .gallery {
                grid-template-columns: 1fr;
            }

            .chart-container {
                height: 300px;
            }
        }

        /* Адаптив для контейнера графика */
        @media (max-width: 600px) {
            #costChart3D {
                height: 350px !important; /* Уменьшаем высоту на телефоне */
            }
            .chart-container {
                height: auto !important;
                min-height: 350px;
            }
        }

        /* ============================================
           АНИМАЦИИ
           ============================================ */
           @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .section {
            animation: fadeIn 0.6s ease-out;
        }

/* ============================================
   КНОПКА ГЕРОЯ
   ============================================ */
/* Контейнер для кнопки (центровка и отступы) */
.hero-btn-container {
    text-align: center;
    margin-top: 35px;
    margin-bottom: 10px;
}

/* Сама кнопка */
.hero-calc-btn {
    display: inline-block;
    background-color: #EF6C00; /* Ваш оранжевый */
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none; /* Убираем подчеркивание ссылки */
    padding: 18px 40px;
    border-radius: 50px; /* Закругленные края (пилюля) */
    box-shadow: 0 4px 15px rgba(239, 108, 0, 0.3); /* Оранжевая тень */
    transition: all 0.3s ease; /* Плавная анимация */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #EF6C00;
}

/* Эффект при наведении мыши */
.hero-calc-btn:hover {
    background-color: #E65100; /* Чуть темнее */
    box-shadow: 0 6px 20px rgba(239, 108, 0, 0.5);
    transform: translateY(-3px); /* Кнопка слегка всплывает */
}

/* Эффект при клике */
.hero-calc-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(239, 108, 0, 0.3);
}

/* Подпись под кнопкой */
.hero-btn-hint {
    margin-top: 10px;
    font-size: 13px;
    color: #90A4AE; /* Светло-серый */
}

/* Адаптив для мобильных (Кнопка во всю ширину) */
@media (max-width: 600px) {
    .hero-calc-btn {
        width: 100%; /* Растягиваем на весь экран */
        box-sizing: border-box; /* Чтобы padding не ломал ширину */
        font-size: 16px;
        padding: 15px 20px;
    }
} 

  /* Адаптивность для таблиц */
  .table-responsive {
    width: 100%;
    overflow-x: auto; /* Включает горизонтальный скролл */
    -webkit-overflow-scrolling: touch; /* Плавная прокрутка на айфонах */
    margin-bottom: 20px;
}

/* Настройка самой таблицы внутри прокрутки */
.table-responsive table {
    min-width: 600px; /* Минимальная ширина, чтобы колонки не сплющивались */
    width: 100%;
}

/* (Опционально) Уменьшаем отступы в ячейках на мобильных, чтобы влезало больше */
@media (max-width: 768px) {
    table th, table td {
        padding: 8px 5px; /* Уменьшаем отступы: 8px сверху/снизу, 5px слева/справа */
        font-size: 14px;  /* Можно немного уменьшить шрифт */
    }
}

        /* ============================================
           ДОПОЛНИТЕЛЬНЫЕ УТИЛИТЫ
           ============================================ */
           .text-center {
            text-align: center;
        }

        .mt-30 {
            margin-top: 30px;
        }

        .mb-30 {
            margin-bottom: 30px;
        }

        strong {
            color: var(--primary-blue);
            font-weight: 600;
        }

        .highlight {
            background-color: rgba(0,121,107,0.1);
            padding: 2px 6px;
            border-radius: 3px;
            color: var(--accent-teal);
            font-weight: 500;
        }
        /* === ИСПРАВЛЕНИЕ ЦВЕТА ЦИФР В КАЛЬКУЛЯТОРЕ === */
        .calc-result-box strong {
            color: #FFFFFF !important;
        }

/* === УМНАЯ ШАПКА (SMART HEADER) === */

/* Добавляем плавность перемещения для меню */
.navigation {
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

/* Настройки только для МОБИЛЬНЫХ (планшетов и телефонов) */
@media (max-width: 768px) {
    .navigation {
        position: fixed; /* Меняем sticky на fixed, чтобы жестко привязать к экрану */
        top: 0;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98); /* Чуть прозрачный фон */
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    /* Этот класс мы будем добавлять через JS, чтобы скрыть меню */
    .navigation.nav-hidden {
        transform: translateY(-100%); /* Уводит меню вверх за пределы экрана */
        box-shadow: none;
    }
    
            /* Компенсация высоты меню, чтобы контент не прыгал под него, 
               так как fixed вырывает элемент из потока */
               .container {
                padding-top: 60px; 
            }
        }
        /* === СТИЛИ ДЛЯ РАЗДЕЛА 1 (КАРТИНКА + ТЕКСТ) === */
        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr; /* Две колонки */
            gap: 40px;
            align-items: center; /* Центрирование по вертикали */
            margin-top: 30px;
        }

        .about-img-wrapper img {
            width: 100%;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            object-fit: cover;
            height: 100%;
            min-height: 300px;
        }

        /* На мобильных делаем одну колонку */
        @media (max-width: 768px) {
            .about-grid {
                grid-template-columns: 1fr;
            }
            .about-img-wrapper {
                order: -1; /* Картинка сверху */
                margin-bottom: 20px;
            }
            
            /* --- ИСПРАВЛЕНИЕ ОБРЕЗКИ ФОТО --- */
            .about-img-wrapper img {
                min-height: auto;    /* Отменяем обязательную высоту 300px */
                height: auto;        /* Высота будет зависеть от ширины экрана */
                object-fit: contain; /* Показываем картинку целиком, без обрезки */
                border-radius: 8px;  /* Чуть уменьшаем скругление углов, чтобы не резало текст */
            }
        }

        /* === СТИЛИ ДЛЯ СТРЕЛОК ГАЛЕРЕИ === */
        .modal-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            color: white;
            font-size: 50px;
            font-weight: bold;
            cursor: pointer;
            padding: 20px;
            user-select: none;
            transition: color 0.3s;
            z-index: 2001;
        }

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

        .modal-prev { left: 10px; }
        .modal-next { right: 10px; }
        
        /* Чтобы картинка не перекрывала стрелки, ограничим её ширину */
        .modal-content {
            max-width: 80%; 
        }
/* === НОВЫЕ СТИЛИ ДЛЯ ОБНОВЛЕННОГО КАЛЬКУЛЯТОРА === */

/* Стили для выпадающих списков */
.calc-select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    background-color: var(--background-white);
    color: var(--text-primary);
    cursor: pointer;
}

/* Сетка для ворот (в один ряд) */
.form-row {
    display: flex;
    gap: 15px;
}
.form-col {
    flex: 1;
}

@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 10px; }
}

/* ============================================
   COOKIE БАННЕР
   ============================================ */
   .cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: var(--background-white);
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none;
    border: 2px solid var(--accent-teal);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.show {
    display: block;
}

.cookie-banner h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
    font-size: 1.2em;
}

.cookie-banner p {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 15px;
}

.cookie-banner a {
    color: var(--accent-teal);
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: var(--accent-orange);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-size: 0.95em;
}

.cookie-btn.accept {
    background-color: var(--accent-teal);
    color: white;
}

.cookie-btn.accept:hover {
    background-color: #00695C;
    transform: translateY(-2px);
}

.cookie-btn.reject {
    background-color: var(--gray-light);
    color: var(--text-secondary);
}

.cookie-btn.reject:hover {
    background-color: var(--gray-medium);
    color: var(--gray-dark);
}

.cookie-btn.settings {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

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

/* Модальное окно настроек */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.cookie-modal h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-teal);
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-info h4 {
    color: var(--gray-dark);
    margin-bottom: 5px;
    font-size: 1em;
}

.cookie-option-info p {
    font-size: 0.85em;
    color: var(--text-secondary);
}

/* Переключатель */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: var(--accent-teal);
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

.cookie-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 600px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}
/* Адаптивность для графика Timeline */
@media (max-width: 768px) {
    #timelineHighchart {
        height: 1050px !important; /* Увеличиваем высоту, чтобы влез "шахматный" список */
    }
    .chart-container {
        height: auto !important;
        padding: 0 !important;
        overflow: visible !important;
    }
}

/* ============================================
   МОДАЛЬНОЕ ОКНО ДИАГРАММЫ ГАНТА
   ============================================ */
   .gantt-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    animation: fadeIn 0.3s ease-out;
}

.gantt-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gantt-modal-content {
    position: relative;
    width: 95%;
    height: 95%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.gantt-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.gantt-modal-close:hover {
    background: var(--accent-orange);
    transform: rotate(90deg);
}

.gantt-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Кнопка открытия диаграммы */
.gantt-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    margin: 20px auto;
    display: block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.gantt-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.gantt-button::before {
    content: '📊 ';
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .gantt-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .gantt-button {
        width: 90%;
        font-size: 1em;
    }
}

/* Адаптив для формы на мобильных */
@media (max-width: 600px) {
    .contact-form-container {
        /* 1. Убираем внутренние отступы контейнера */
        padding-left: 0 !important;
        padding-right: 0 !important;
            padding-bottom: 40px !important; /* Добавьте воздуха снизу */
    overflow: visible !important;    /* Разрешите контенту торчать, если что */
        
        /* 2. Убираем скругления, чтобы стыковалось с краями экрана */
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important; /* Можно убрать тень, чтобы не было "зазоров" */
    }

    /* 3. (ВАЖНО) Трюк с отрицательными отступами */
    /* Если ваша основная секция <section> или <div class="container"> имеет padding (обычно 15px),
       этот код "растянет" форму за пределы этих отступов прямо к краям экрана. */
    .contact-form-container {
        margin-left: -15px !important; 
        margin-right: -15px !important;
        width: calc(100% + 30px) !important; /* Компенсируем ширину */
        
    }
}

/* Кастомные подсказки для техменю */
#tech-menu label {
    position: relative;
    cursor: help;
}

#tech-menu label:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    bottom: 100%;
    margin-bottom: 8px;
    padding: 10px 15px;
    background: var(--primary-blue);
    color: white;
    font-size: 14px; /* Можно увеличить, например, до 16px */
    font-weight: normal;
    white-space: nowrap;
    border-radius: 6px;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    border: 1px solid var(--accent-orange);
}

/* Стрелочка снизу */
#tech-menu label:hover::before {
    content: '';
    position: absolute;
    left: 20px;
    bottom: 100%;
    margin-bottom: 2px;
    border-width: 6px;
    border-style: solid;
    border-color: var(--primary-blue) transparent transparent transparent;
    z-index: 10001;
}

/* Если текст длинный, разрешаем перенос */
#tech-menu label:hover::after {
    white-space: normal;
    max-width: 280px;
    width: max-content;
}

/* ============================================
   СТИЛИЗОВАННЫЕ ПОДСКАЗКИ (TOOLTIPS)
   ============================================ */
.tooltip-container {
    position: relative;
    cursor: help;
}

/* Подсказка по умолчанию – появляется справа от контейнера */
.tooltip-container:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 20px;               /* отступ от левого края контейнера – подсказка справа */
    bottom: 100%;
    margin-bottom: 10px;
    padding: 12px 18px;
    background-color: var(--primary-blue, #0056b3);
    color: white;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    
    white-space: pre-line;          /* сохраняем ручные переносы */
    width: max-content;              /* ширина по самой длинной строке */
    max-width: min(450px, calc(100vw - 40px)); /* не шире 450px и не шире окна с отступами 20px слева и справа */
    
    border-radius: 8px;
    z-index: 10001;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    font-family: 'Inter', sans-serif;
    border-left: 4px solid var(--accent-orange, #ff9800);
    min-width: 240px;
    text-align: left;
    pointer-events: none;
}

/* Стрелочка снизу (слева) */
.tooltip-container:hover::before {
    content: '';
    position: absolute;
    left: 30px;               /* стрелочка под левой частью подсказки */
    bottom: 100%;
    margin-bottom: 4px;
    border-width: 8px;
    border-style: solid;
    border-color: var(--primary-blue, #0056b3) transparent transparent transparent;
    z-index: 10001;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

/* === МОДИФИКАТОР ДЛЯ ПОДСКАЗОК СПРАВА (Кнопка "На весь экран") === */
/* Привязывает подсказку к правому краю, чтобы она росла влево и не вылезала за пределы экрана */
.tooltip-container.tooltip-align-right:hover::after {
    left: auto; 
    right: 0;                  /* Привязка к правому краю контейнера */
    width: 280px;              /* Фиксированная ширина для длинного текста */
    max-width: calc(100vw - 40px); 
    white-space: normal;       /* Разрешаем автоматический перенос текста */
    border-left: none; 
    border-right: 4px solid var(--accent-orange, #ff9800); /* Полоска теперь справа */
}

/* Смещаем стрелочку к правой стороне */
.tooltip-container.tooltip-align-right:hover::before {
    left: auto;
    right: 25px; 
}

/* Адаптация для мобильных устройств (ширина экрана до 768px) */
@media (max-width: 768px) {
    /* Скрываем кнопку "На весь экран" */
    #scene-header .tooltip-container:last-child {
        display: none;
    }

    /* Полностью скрываем подсказки на мобильных – они неудобны из-за отсутствия hover */
    .tooltip-container:hover::after,
    .tooltip-container:hover::before {
        display: none;
    }
}
