/* ==========================================================================
   0. ЦВЕТОВАЯ ПАЛИТРА (МЕНЯЙ ЦВЕТА ТОЛЬКО ЗДЕСЬ!)
   ========================================================================== */
:root {
    /* Главный цвет (кнопки, активные элементы, иконки, рамки при выборе) */
    --primary: #0052cc;          /* Синий вместо оранжевого */
    --primary-hover: #0040a3;    /* Темно-синий для наведения */
    --primary-light: #e6f0ff;    /* Мягкий фон для выбранных карточек квиза */

    /* Темные тона (заголовки, текст, темные плашки) */
    --dark: #1e293b;             /* Благородный графит вместо дешевого черного */
    --dark-deep: #0f172a;        /* Глубокий темный для подвала */

    /* Светлые тона и границы */
    --bg-light: #f1f5f9;         /* Светло-серый фон для секций */
    --bg-white: #ffffff;         /* Чистый белый */
    --border: #e2e8f0;           /* Цвет тонких рамок */
    --text-muted: #64748b;       /* Цвет второстепенного текста */
}

/* ==========================================================================
   1. БАЗОВЫЙ СБРОС И ШРИФТЫ
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 82, 204, 0.15);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.25);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
    transform: translateY(-2px);
}

/* ==========================================================================
   2. ШАПКА САЙТА (HEADER)
   ========================================================================== */
.main-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--bg-light);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    flex-direction: column;
}

.logo strong {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.logo strong span {
    color: var(--primary);
}

.logo small {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.phone:hover {
    color: var(--primary);
}

.btn-callback {
    background: var(--bg-light);
    color: var(--dark);
    border: 1px solid var(--border);
    font-size: 13px;
    padding: 10px 20px;
    font-weight: 700;
    border-radius: 6px;
}

.btn-callback:hover {
    background: var(--border);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.main-nav a:hover {
    color: var(--primary);
}

.menu-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    transition: 0.3s;
}

/* ==========================================================================
   3. ГЛАВНЫЙ ЭКРАН (HERO SECTION)
   ========================================================================== */
.hero-section {
    padding: 100px 0 80px 0;
    background: radial-gradient(circle at right, var(--bg-white) 0%, var(--bg-light) 100%);
    border-bottom: 1px solid var(--border);
}

.hero-section h1 {
    font-size: 42px;
    font-weight: 850;
    color: var(--dark);
    max-width: 850px;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
}

.feature-item i {
    color: var(--primary);
    font-size: 18px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* ==========================================================================
   4. НАПРАВЛЕНИЯ РАБОТЫ (SERVICES)
   ========================================================================== */
.services-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--border);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    color: var(--primary);
    font-size: 24px;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-link:hover {
    color: var(--primary-hover);
}

/* ==========================================================================
   5. ИНТЕРАКТИВНЫЙ ФОТО-КВИЗ (ПОЛНЫЙ НАБОР СТИЛЕЙ)
   ========================================================================== */
.photo-quiz-section {
    background: var(--bg-light);
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.quiz-wrapper {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
    max-width: 950px;
    margin: 0 auto;
    border: 1px solid var(--border);
}

.quiz-top-info h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
    text-align: center;
}

.quiz-top-info p {
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 25px;
}

/* Прогресс-бар */
.quiz-progress-container {
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    margin-bottom: 40px;
    overflow: hidden;
}

.quiz-progress-line {
    height: 100%;
    background: var(--primary);
    transition: width 0.4s ease;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
}

.step-headline {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 30px;
}

.step-headline small {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* СЕТКА С КАРТИНКАМИ-КАРТОЧКАМИ */
.photo-quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

/* Прячем дефолтные чекбоксы и радио-кнопки */
.photo-quiz-card input[type="checkbox"],
.photo-quiz-card input[type="radio"] {
    position: absolute;
    appearance: none;
    -webkit-appearance: none;
    opacity: 0;
    width: 0; height: 0;
}

/* Сама карточка */
.photo-quiz-card {
    cursor: pointer;
    display: block;
    position: relative;
}

.card-body-wrapper {
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-white);
    overflow: hidden;
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.photo-quiz-card:hover .card-body-wrapper {
    border-color: var(--border);
    transform: translateY(-2px);
}

/* Если карточка выбрана (чекнута) */
.photo-quiz-card input:checked + .card-body-wrapper {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.05);
}

/* === АККУРАТНОЕ ПОЛЕ ВВОДА ПЛОЩАДИ (ДОБАВЛЕНО) === */
.quiz-input-field {
    width: 100%;
    max-width: 320px;
    padding: 12px 20px;
    font-size: 16px;
    color: var(--dark);
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
    display: block;
    margin-top: 15px;
}

/* Фокус на поле ввода */
.quiz-input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* Убираем стрелочки у числового поля, чтобы не ломали верстку */
.quiz-input-field::-webkit-outer-spin-button,
.quiz-input-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quiz-input-field[type=number] {
    -moz-appearance: textfield; /* Для Firefox */
}
/* ==========================================================================
   13. СЕКЦИЯ ОФИСА (CONFIDENCE & TRUST)
   ========================================================================== */
.office-section {
    padding: 80px 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border);
}

.office-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 50px;
    align-items: center;
}

.office-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.office-info h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.office-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.office-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.office-details li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--dark);
}

.office-details li i {
    color: var(--primary);
    font-size: 16px;
    margin-top: 3px;
    width: 20px;
    text-align: center;
}

/* Сетка галереи */
.office-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

.gallery-main {
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 380px;
}

.thumb-item {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Мобильная адаптивность */
@media (max-width: 991px) {
    .office-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .gallery-main, .gallery-thumbs {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .office-gallery {
        grid-template-columns: 1fr;
    }
    .gallery-thumbs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        height: 120px;
        gap: 10px;
    }
    .gallery-main {
        height: 220px;
    }
}

/* ИСПРАВЛЯЕМ ОГРОМНЫЕ КАРТИНКИ К ХУЯМ */
.image-holder {
    width: 100%;
    height: 140px; 
    overflow: hidden;
    background: var(--bg-light);
}

.image-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.text-holder {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.text-holder h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.text-holder p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Кастомный маркер выбора */
.custom-marker {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.photo-quiz-card input:checked + .card-body-wrapper .custom-marker {
    border-color: var(--primary);
    background: var(--primary);
}

.photo-quiz-card input:checked + .card-body-wrapper .custom-marker::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--bg-white);
    font-size: 10px;
}

/* Текстовые радио-кнопки (Шаг 2) - Адаптив под 2 в ряд */
.quiz-options-list {
    display: grid !important; /* Меняем flex на grid */
    grid-template-columns: repeat(2, 1fr) !important; /* Две колонки */
    gap: 10px !important; /* Небольшой отступ */
    margin-bottom: 35px;
}

.quiz-radio-row {
    display: flex;
    flex-direction: column; /* Текст под иконку, если нужно, или оставляем ряд */
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px; /* Уменьшили отступ */
    padding: 12px 10px;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    background: var(--bg-white);
    transition: all 0.2s;
    height: 100%; /* Чтобы все плитки были равны */
}

/* На случай, если хочешь оставить иконку слева от текста в 2 ряда */
@media (max-width: 768px) {
    .quiz-radio-row {
        flex-direction: row; 
        justify-content: flex-start;
        padding: 10px;
    }
    .quiz-radio-row span {
        font-size: 13px !important; /* Чуть уменьшаем шрифт для мобилы */
    }
}

.quiz-radio-row input[type="radio"] {
    display: none;
}

.radio-box-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.quiz-radio-row input:checked + .radio-box-custom {
    border-color: var(--primary);
}

.quiz-radio-row input:checked + .radio-box-custom::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.quiz-radio-row span {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

/* ==========================================================================
   6. ФОРМА ВЫЗОВА ЗАМЕРЩИКА (CTA SECTION)
   ========================================================================== */
.cta-section {
    padding: 80px 0;
    background: var(--dark);
    color: var(--bg-white);
}

.cta-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.cta-text {
    max-width: 550px;
}

.cta-text h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-text p {
    color: var(--text-muted);
    line-height: 1.6;
}

.cta-form-box {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
}

.cta-form-box .form-group {
    margin-bottom: 15px;
}

.cta-form-box input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--dark);
}

.cta-form-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   7. ГЕО-БЛОК И КАРТА ОБЪЕКТОВ МОСКОВСКОЙ ОБЛАСТИ
   ========================================================================== */
.geo-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.geo-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.geo-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    text-align: center;
    margin-bottom: 10px;
}

.geo-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Контейнер интерактивной Яндекс.Карты */
.map-container {
    width: 100%;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    background: var(--bg-light);
    margin-bottom: 50px;
}

/* Сетка городов на 4 колонки */
.cities-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 25px;
    text-align: center;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
}

.geo-cities-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Кнопки городов */
.geo-cities-list li {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    padding: 8px 14px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-align: center;
    transition: all 0.2s ease;
}

.geo-cities-list li:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* ==========================================================================
   8. АДАПТИВНОСТЬ ПОД МОБИЛЬНЫЕ УСТРОЙСТВА
   ========================================================================== */
/* ==========================================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ ШАПКИ
   ========================================================================== */

/* По умолчанию скрываем бургер на десктопе */
.menu-burger {
    display: none;
}

@media (max-width: 991px) {
    /* Сжимаем отступы шапки */
    .main-header {
        padding: 10px 0 !important;
        position: relative;
        z-index: 100;
    }

    /* Делаем флекс-контейнер управляемым */
    .header-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    /* Ужимаем логотип, чтобы не распирал */
    .logo strong {
        font-size: 18px !important;
    }
    .logo small {
        font-size: 9px !important;
        display: block;
    }

    /* Прячем десктопные контакты, чтобы освободить место под бургер */
    .header-contacts {
        display: none !important; 
    }

    /* Включаем и стилизуем бургер */
    .menu-burger {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 150;
    }

    .menu-burger span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #333; /* Поменяй на свой цвет (например, var(--dark)) */
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    /* Превращаем меню в шторку, которая спрятана справа */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Полностью скрыто за экраном */
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding: 70px 24px 30px 24px;
        transition: right 0.3s ease-in-out;
        z-index: 140;
        display: block !important;
    }

    /* Показываем меню при активации класса */
    .main-nav.active {
        right: 0;
    }

    /* Строим ссылки вертикально */
    .main-nav ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .main-nav ul li {
        width: 100%;
    }

    .main-nav ul li a {
        display: block;
        font-size: 16px !important;
        font-weight: 600;
        color: #333;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        text-decoration: none;
    }

    /* Кнопка телефона внутри мобильного меню */
    .mobile-only-contacts {
        margin-top: 15px;
    }
    
    .menu-phone {
        color: #e67e22 !important; /* Твой акцентный цвет */
        font-size: 18px !important;
        font-weight: bold;
        border-bottom: none !important;
    }

    /* Анимация превращения бургера в крестик */
    .menu-burger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-burger.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-burger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Для самых маленьких экранов (ужимаем лого еще сильнее) */
@media (max-width: 380px) {
    .logo small {
        display: none !important; /* Убираем длинный текст подписи */
    }
} /* Вот тут мы ЧЁТКО закрыли медиа-запрос для 380px */


/* ==========================================================================
   КОМПАКТНЫЙ КВИЗ НА МОБИЛКАХ (2 В РЯД)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Находим контейнер, где лежат варианты ответов, и делаем сетку в два столбца */
    .quiz-options, 
    .quiz-answers, 
    .quiz-grid { 
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* Строго 2 колонки */
        gap: 8px !important; /* Минимальный зазор между карточками */
        padding: 5px 0 !important;
    }

    /* Если у тебя флекс-сетка, то этот код подстрахует */
    .quiz-step-flex,
    .quiz-flex {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    .quiz-step-flex .quiz-option,
    .quiz-flex .quiz-card {
        width: calc(50% - 4px) !important; /* Ровно половина экрана за вычетом зазора */
    }

    /* 2. Зажимаем саму карточку ответа */
    .quiz-option, 
    .quiz-card, 
    .quiz-item {
        padding: 6px !important; /* Ужимаем внутренние поля */
        margin: 0 !important; /* Убираем внешние отступы, чтобы не ломали сетку */
        border-radius: 8px !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100% !important; /* Чтобы карточки в ряду были одинаковой высоты */
    }

    /* 3. Ограничиваем высоту картинки, чтобы она не растягивала карточку */
    .quiz-option img, 
    .quiz-card img, 
    .quiz-item img {
        height: 90px !important; /* Фиксируем высоту картинок на мобилке */
        object-fit: cover !important; /* Красиво кадрируем, чтобы не сжимались */
        border-radius: 6px !important;
        margin-bottom: 6px !important;
    }

    /* 4. Уменьшаем текст подписи к картинке */
    .quiz-option-title, 
    .quiz-card-title, 
    .quiz-option span, 
    .quiz-card p {
        font-size: 11px !important; /* Делаем шрифт аккуратным и читаемым */
        line-height: 1.2 !important;
        text-align: center;
        margin-top: auto !important; /* Прижимаем текст к низу карточки */
    }

    /* Если внутри карточки есть радио-кнопки (кружочки), делаем их чуть меньше */
    .quiz-option input[type="radio"],
    .quiz-card input[type="checkbox"] {
        transform: scale(0.8);
        margin-right: 4px;
    }
}

/* На микро-экранах (до 360px) еще немного поджимаем высоту картинок */
@media (max-width: 360px) {
    .quiz-option img, 
    .quiz-card img, 
    .quiz-item img {
        height: 75px !important;
    }
    .quiz-option-title, 
    .quiz-card-title {
        font-size: 10px !important;
    }
}

/* ==========================================================================
   9. ПОДВАЛ САЙТА (FOOTER)
   ========================================================================== */
.main-footer {
    background: var(--dark-deep);
    color: #94a3b8;
    padding: 60px 0 0 0;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about strong {
    font-size: 20px;
    color: var(--bg-white);
    display: block;
    margin-bottom: 15px;
}

.footer-about p {
    line-height: 1.6;
}

.footer-links h4, 
.footer-contacts h4 {
    font-size: 16px;
    color: var(--bg-white);
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contacts p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.footer-contacts a {
    color: #94a3b8;
}

.footer-contacts a:hover {
    color: var(--primary);
}

.footer-contacts i {
    color: var(--primary);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px 0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* ==========================================================================
   10. МОДАЛЬНОЕ ОКНО (ВЫЗОВ ИНЖЕНЕРА)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Добавь класс .active через JS для открытия */
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-window {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--dark);
}

.modal-window h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.modal-window p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-window .form-group {
    margin-bottom: 15px;
}

.modal-window input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    color: var(--dark);
}

.modal-window input:focus {
    outline: none;
    border-color: var(--primary);
}

/* ==========================================================================
   11. ОНЛАЙН-ВИДЖЕТ ОЛЬГИ НИКОЛАЕВНЫ (FAKE CHAT)
   ========================================================================== */
.fake-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

/* Кнопка-триггер (когда виджет свернут) */
.chat-trigger {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-white);
    padding: 10px 20px 10px 12px;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    border: 1px solid var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.chat-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}

.avatar {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid var(--bg-white);
    border-radius: 50%;
}

.trigger-text {
    display: flex;
    flex-direction: column;
}

.manager-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
}

.manager-msg {
    font-size: 12px;
    color: #22c55e;
    font-weight: 600;
}

/* Окно чата */
.chat-box {
    display: none; /* Контролируется вашим скриптом */
    width: 340px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    overflow: hidden;
    flex-direction: column;
}

/* Если у элемента .fake-chat-widget активен класс .active, показываем чат и скрываем плашку */
.fake-chat-widget.active .chat-trigger {
    display: none;
}

.fake-chat-widget.active .chat-box {
    display: flex !important; /* Force-показ вопреки любым скриптам */
    animation: slideUp 0.3s ease forwards;
}

/* Шапка чата */
.chat-header {
    background: var(--dark);
    color: var(--bg-white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-manager-info {
    display: flex;
    flex-direction: column;
}

.chat-manager-info strong {
    font-size: 15px;
    font-weight: 700;
}

.chat-manager-info small {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.chat-close {
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
}

.chat-close:hover {
    opacity: 1;
}

/* Тело чата */
.chat-body {
    padding: 20px;
    background: #f8fafc;
    height: 160px;
    overflow-y: auto;
}

.chat-bubble {
    background: var(--bg-white);
    padding: 12px 16px;
    border-radius: 12px 12px 12px 0;
    font-size: 13px;
    color: var(--dark);
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    max-width: 90%;
}

/* Подвал чата с формой ввода */
.chat-footer {
    padding: 12px 15px;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
}

.chat-footer form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-footer input {
    flex-grow: 1;
    border: none;
    font-size: 13px;
    color: var(--dark);
    padding: 8px 0;
    outline: none;
}

.chat-send-btn {
    background: var(--primary);
    color: var(--bg-white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-send-btn:hover {
    background: var(--primary-hover);
}

/* Анимация плавного выезда снизу */
@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================================================
   12. АДАПТИВ ПОДВАЛА И ВИДЖЕТА
   ========================================================================== */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .fake-chat-widget {
        bottom: 15px;
        right: 15px;
        left: 15px;
    }
    
    .chat-trigger {
        width: 100%;
        justify-content: center;
    }
    
    .chat-box {
        width: 100%;
    }
}
/* Кнопки выбора в чате */
.chat-buttons-step {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
}

.chat-select-btn {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    color: var(--dark);
    transition: all 0.2s;
}

.chat-select-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Направление сообщений */
.chat-bubble.admin {
    background: var(--bg-white);
    border-radius: 12px 12px 12px 0;
    margin-right: auto;
}

.chat-body {
    display: flex;
    flex-direction: column;
}


