/* Стили для модального окна */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed; /* Остается на месте при прокрутке */
    z-index: 1000; /* Поверх других элементов */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Прокрутка, если контент большой */
    background-color: rgba(0, 0, 0, 0.7); /* Полупрозрачный фон */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* Центрирование по вертикали и горизонтали */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Ширина модального окна */
    max-width: 700px; /* Максимальная ширина */
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
}

/* Voucher Modal - специфичные стили.
   Селектор по id обязателен: правило .modal выше гасит окно display: none,
   а класс .active из uikit_custom.css меняет только opacity и visibility */
#modal-voucher {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(23, 23, 23, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

/* Крестик лежит поверх оранжевой подложки окна, поэтому у него свой фон:
   белым по светлому его не видно */
#modal-voucher .modal-voucher-close {
    top: 16px;
    right: 16px;
    z-index: 40;
    width: 32px;
    height: 32px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    transition: background 0.2s;
}

#modal-voucher .modal-voucher-close:hover {
    background: rgba(0, 0, 0, 0.55);
}

#modal-voucher .modal-voucher-close svg {
    width: 18px;
    height: 18px;
}

/* Rutube Modal - специфичные стили */
#rutubeModal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#rutubeModal.active {
    opacity: 1;
    visibility: visible;
}

#rutubeModal .modal-content {
    background-color: #000;
    margin: 0;
    padding: 0;
    border: none;
    width: 90%;
    max-width: 1000px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

#rutubeModal .close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 4px 12px;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.2s;
}

#rutubeModal .close-button:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}

/* Контейнер для плеера */
#rutubePlayerContainer {
    position: relative;
    padding-bottom: 56.25%; /* Соотношение сторон 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000; /* Фон на время загрузки */
}

#rutubePlayerContainer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.bread-wrapper .section-bread .container {
    padding-left: 0 !important;
}
/*.mx-sticky-filters {*/
/*    position: sticky;*/
/*    top: 150px; !* Прилипает к верху окна *!*/
/*    align-self: flex-start; !* Чтобы не растягивалось *!*/
/*    height: 80vh; !* Чтобы не "прыгал" при скролле *!*/
/*    overflow-y: auto; !* Если фильтров много *!*/
/*    padding-right: 14px;*/
/*    padding-left: 7px;*/
/*}*/

@media (max-width: 1780.98px) {
    .content-container {
        max-width: 1550px;
        margin-right: auto;
        margin-left: auto;
    }

    .product-price {
        font-size: 44px;
    }

    .price-input {
        max-width: 165px;
    }

    .form-call .inputs {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
        gap: 20px;
    }

    .step-arrow {
        left: 210px;
    }
}

@media (max-width: 1599.98px) {

}

@media (max-width: 1399.98px) {

}

@media (max-width: 1199.98px) {

}

@media (max-width: 991.98px) {
    /*.mx-sticky-filters {*/
    /*    position: absolute;*/

    /*}*/

}

@media (max-width: 799.98px) {
}

@media (max-width: 575.98px) {
    .mx-mobile-none {
        display: none !important;
    }
}

@media (max-width: 360px) {

}



/* .red_btn {
	display: grid;
	grid-template-columns: auto;
	align-items: center;
	justify-content: center;
}

.digital-step {
	height: 95px;
	width: 95px;

	display:flex;
	justify-content: center;
	align-items:center;
}


*/

/* ============================================
   FIREPLACE QUIZ - Квиз подбора камина
   ============================================ */

/* Баннер квиза */
.fireplace-quiz-banner {
    position: relative;
    border-radius: 16px;
    padding: 32px;
    margin: 24px 0;
    min-height: 182px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

/* Темный оверлей для лучшей читаемости текста */
.fireplace-quiz-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 16px;
    z-index: 1;
}

.fireplace-quiz-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(240, 134, 111, 0.3);
}

.fireplace-quiz-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.fireplace-quiz-banner-text {
    flex: 1;
}

.fireplace-quiz-banner-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.fireplace-quiz-banner-title--compact {
    font-size: 20px;
    line-height: 1.1;
}

.fireplace-quiz-banner-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
}

.fireplace-quiz-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #DC4726;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.fireplace-quiz-btn:hover {
    background: #B8371B;
    transform: scale(1.05);
    text-decoration: none;
    color: #ffffff;
}

.fireplace-quiz-btn:visited,
.fireplace-quiz-btn:active,
.fireplace-quiz-btn:focus {
    color: #ffffff;
    text-decoration: none;
}

.fireplace-quiz-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Модальное окно квиза */
.fireplace-quiz-modal {
    z-index: 10050 !important; /* Выше других модальных окон и фильтров */
}

.fireplace-quiz-modal-dialog {
    max-width: 900px;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    z-index: 10051 !important;
}

.fireplace-quiz-container {
    position: relative;
    min-height: 500px;
}

/* Шаги квиза */
.fireplace-quiz-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.fireplace-quiz-step.active {
    display: block;
}

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

/* Заголовок квиза */
.fireplace-quiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.fireplace-quiz-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
}

.fireplace-quiz-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0 0 24px 0;
}

/* Прогресс-бар */
.fireplace-quiz-progress {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    margin-top: 20px;
}

.fireplace-quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f0866f 0%, #e96f57 100%);
    transition: width 0.5s ease;
}

/* Вопрос */
.fireplace-quiz-question {
    margin-bottom: 40px;
}

.fireplace-quiz-question-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 24px 0;
    text-align: center;
}

/* Скрыть стандартные радио-кнопки */
.fireplace-quiz-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Карточки стилей с картинками */
.fireplace-quiz-styles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.fireplace-quiz-style-card {
    cursor: pointer;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.fireplace-quiz-style-card:hover {
    border-color: #f0866f;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.fireplace-quiz-style-card.selected {
    border-color: #f0866f;
    background: rgba(240, 134, 111, 0.05);
}

.fireplace-quiz-style-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #f5f5f5;
}

.fireplace-quiz-style-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fireplace-quiz-style-label {
    display: block;
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Опции без картинок */
.fireplace-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.fireplace-quiz-option {
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px 24px;
    transition: all 0.3s ease;
    background: #fff;
}

.fireplace-quiz-option:hover {
    border-color: #f0866f;
    background: rgba(240, 134, 111, 0.05);
}

.fireplace-quiz-option.selected {
    border-color: #f0866f;
    background: rgba(240, 134, 111, 0.1);
}

.fireplace-quiz-option-label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

/* Кнопки контактов */
.fireplace-quiz-contact {
    max-width: 500px;
    margin: 0 auto;
}

.fireplace-quiz-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fireplace-quiz-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fireplace-quiz-contact-btn:hover {
    border-color: #f0866f;
    background: rgba(240, 134, 111, 0.05);
    transform: translateY(-2px);
}

.fireplace-quiz-contact-btn svg {
    width: 28px;
    height: 28px;
}

/* Форма контактов */
.fireplace-quiz-contact-form {
    margin-top: 24px;
}

.fireplace-quiz-form-group {
    margin-bottom: 24px;
}

.fireplace-quiz-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.fireplace-quiz-input:focus {
    outline: none;
    border-color: #f0866f;
}

.fireplace-quiz-form-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

/* Действия квиза */
.fireplace-quiz-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 32px;
}

.fireplace-quiz-btn-back {
    background: #f5f5f5;
    color: #666;
}

.fireplace-quiz-btn-back:hover {
    background: #e0e0e0;
}

.fireplace-quiz-btn-next,
.fireplace-quiz-btn-submit {
    background: linear-gradient(135deg, #f0866f 0%, #e96f57 100%);
    color: #ffffff;
}

.fireplace-quiz-btn-next:hover,
.fireplace-quiz-btn-submit:hover {
    background: linear-gradient(135deg, #e96f57 0%, #d85e46 100%);
}

/* Страница успеха */
.fireplace-quiz-success {
    text-align: center;
    padding: 40px 20px;
}

.fireplace-quiz-success-icon {
    margin: 0 auto 24px;
    width: 80px;
    height: 80px;
}

.fireplace-quiz-success-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px 0;
}

.fireplace-quiz-success-text {
    font-size: 18px;
    color: #666;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 991.98px) {
    .fireplace-quiz-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .fireplace-quiz-modal-dialog {
        padding: 24px;
    }
    
    .fireplace-quiz-title {
        font-size: 26px;
    }
    
    .fireplace-quiz-styles {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    /* Кнопка на планшетах */
    .fireplace-quiz-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

@media (max-width: 575.98px) {
    .fireplace-quiz-banner {
        padding: 24px;
    }
    
    .fireplace-quiz-banner-title {
        font-size: 22px;
    }
    
    .fireplace-quiz-banner-subtitle {
        font-size: 14px;
    }
    
    .fireplace-quiz-modal-dialog {
        padding: 20px;
    }
    
    .fireplace-quiz-title {
        font-size: 22px;
    }
    
    .fireplace-quiz-question-title {
        font-size: 20px;
    }
    
    .fireplace-quiz-styles {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .fireplace-quiz-actions {
        flex-direction: column-reverse;
    }
    
    .fireplace-quiz-form-actions {
        flex-direction: column-reverse;
    }
    
    .fireplace-quiz-btn {
        padding: 8px 16px;
        font-size: 12px;
        gap: 6px;
        width: auto;
        justify-content: center;
    }
    
    .fireplace-quiz-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   YANDEX SPLIT BADGE - Бейдж оплаты частями
   ============================================ */

.yandex-split-badge {
    display: inline-flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yandex-split-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.yandex-split-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.yandex-split-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.yandex-split-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.yandex-split-amount {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    line-height: 1;
}

.yandex-split-currency {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    opacity: 0.8;
}

.yandex-split-description {
    font-size: 12px;
    color: #000000;
    opacity: 0.7;
    margin-top: 6px;
    line-height: 1;
}

/* Компактная версия для грида каталога */
.yandex-split-badge--grid {
    flex-direction: row;
    padding: 0;
    margin: 8px 0;
    max-width: 280px;
    border-radius: 8px;
    overflow: hidden;
}

.yandex-split-badge--grid:hover {
    transform: none;
}

.yandex-split-left {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #404040;
    padding: 8px 12px;
    flex-shrink: 0;
}

.yandex-split-badge--grid .yandex-split-logo {
    width: 20px;
    height: 20px;
}

.yandex-split-badge--grid .yandex-split-amount {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    white-space: nowrap;
}

.yandex-split-right {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 500;
    color: #000000;
    line-height: 1.2;
    flex: 1;
}

/* Адаптивность */
@media (max-width: 575.98px) {
    .yandex-split-badge {
        padding: 10px 14px;
    }
    
    .yandex-split-amount {
        font-size: 18px;
    }
    
    .yandex-split-text {
        font-size: 13px;
    }
    
    .yandex-split-currency {
        font-size: 13px;
    }
    
    /* Компактная версия для мобильного грида */
    .yandex-split-badge--grid {
        max-width: 140px;
    }
    
    .yandex-split-left {
        padding: 6px 10px;
        gap: 6px;
    }
    
    .yandex-split-badge--grid .yandex-split-logo {
        width: 16px;
        height: 16px;
    }
    
    .yandex-split-badge--grid .yandex-split-amount {
        font-size: 12px;
    }
    
    .yandex-split-right {
        font-size: 0;
        padding: 6px 10px;
        justify-content: center;
    }
    
    .yandex-split-right::before {
        content: "x4";
        font-size: 14px;
        font-weight: 700;
    }
}
fieldset {border: 0px !important}

.catalog-filter-checkbox.disabled {
    opacity: 0.4;
    pointer-events: none;
    text-decoration: line-through;
}

/* ============================================
   HERO BADGES - Плашки на hero секции (Figma дизайн)
   ============================================ */

.hero-badges {
    width: 100%;
    padding: 0;
    margin: 0 0 24px 0;
}

.hero-badges-grid {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0px 36px;
    gap: 12px;
    min-height: 48px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: hidden;
}

.hero-badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    gap: 8px;
    height: 48px;
    background: #F8F8F8;
    border: none;
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.hero-badge:hover {
    background: #EFEFEF;
    text-decoration: none;
}

.hero-badge svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hero-badge-text {
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: #171717;
    line-height: 1.2;
}

/* Адаптивность для планшетов */
@media (max-width: 991.98px) and (min-width: 576px) {
    .hero-badges-grid {
        padding: 0px 20px;
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .hero-badge {
        padding: 10px 14px;
        flex: 1;
        min-width: 0;
    }
    
    .hero-badge svg {
        width: 16px;
        height: 16px;
    }
    
    .hero-badge-text {
        font-size: 12px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 575.98px) {
    .hero-badges-grid {
        padding: 0px 12px;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    /* Первые 2 плашки - по 50% ширины */
    .hero-badge:nth-child(1),
    .hero-badge:nth-child(2) {
        padding: 8px 10px;
        gap: 6px;
        height: auto;
        min-height: 36px;
        flex: 0 0 calc(50% - 3px);
        max-width: calc(50% - 3px);
        border-radius: 18px;
    }
    
    /* Остальные 3 плашки - по 33.33% ширины */
    .hero-badge:nth-child(3),
    .hero-badge:nth-child(4),
    .hero-badge:nth-child(5) {
        padding: 8px 8px;
        gap: 4px;
        height: auto;
        min-height: 36px;
        flex: 0 0 calc(33.333% - 4px);
        max-width: calc(33.333% - 4px);
        border-radius: 18px;
    }
    
    .hero-badge svg {
        width: 14px;
        height: 14px;
    }
    
    .hero-badge-text {
        font-size: 12px;
        line-height: 1.2;
    }
}