/* =========================================
   КОНФІГУРАТОР: ГЛОБАЛЬНІ СТИЛІ
   ========================================= */
.hero-section {
    padding-bottom: 40px;
}


.builder-glow {
    position: absolute;
    top: 10%;
    left: 20%;
    width: 40vw;
    height: 40vh;
    background: radial-gradient(circle, rgba(255, 230, 0, 0.05) 0%, transparent 60%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 1;
}

.border-top-dashed {
    border-top: 1px dashed rgba(253, 251, 237, 0.15);
}

/* =========================================
   ЛІВА КОЛОНКА: ПРЕВ'Ю ТА ПІДСУМОК
   ========================================= */
.preview-sticky {
    position: sticky;
    top: 130px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-box {
    background: rgba(253, 251, 237, 0.02);
    border-radius: 24px;
    border: 1px solid rgba(253, 251, 237, 0.05);
    position: relative;
    height: clamp(350px, 40vh, 480px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 20px;
}

.preview-box.updating .preview-img {
    opacity: 0;
    transform: scale(0.95);
}

.total-box {
    background: rgba(255, 230, 0, 0.05);
    border: 1px solid rgba(255, 230, 0, 0.2);
    border-radius: 20px;
    padding: 24px;
}

.total-box-lbl {
    font-family: 'Codec Pro', sans-serif;
    color: rgba(253, 251, 237, 0.5);
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 8px;
}

.total-price {
    font-family: 'Benzin', sans-serif;
    font-size: clamp(32px, 3vw, 40px);
    color: var(--z-yellow);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 12px;
}

.total-roi {
    font-family: 'Codec Pro', sans-serif;
    font-size: 14px;
    color: #00BFA5;
    font-weight: 800;
    background: rgba(0, 191, 165, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-block;
    text-transform: uppercase;
}

.included-lbl {
    font-family: 'Codec Pro', sans-serif;
    color: rgba(253, 251, 237, 0.5);
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 800;
}

.included-list {
    font-family: 'Codec Pro', sans-serif;
    color: rgba(253, 251, 237, 0.6);
    font-size: 14px;
}

.included-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================================
   ПРАВА КОЛОНКА: СІТКА ОПЦІЙ
   ========================================= */
.step-title {
    font-family: 'Benzin', sans-serif;
    font-size: clamp(18px, 2vw, 24px);
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.option-label {
    display: block;
    cursor: pointer;
    margin: 0;
    height: 100%;
}

.option-label input {
    display: none;
}

.option-card {
    height: 100%;
    background: rgba(253, 251, 237, 0.02);
    border: 1px solid rgba(253, 251, 237, 0.08);
    border-radius: 16px;
    padding: 20px 16px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.combo-card {
    border-color: rgba(255, 230, 0, 0.2) !important;
}

.option-card:hover {
    background: rgba(253, 251, 237, 0.05);
    border-color: rgba(255, 230, 0, 0.3);
    transform: translateY(-4px);
}

.option-label input:checked + .option-card {
    border-color: var(--z-yellow);
    background: rgba(255, 230, 0, 0.05);
    box-shadow: 0 8px 20px rgba(255, 230, 0, 0.1);
}

.options-group.disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(253, 251, 237, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
    z-index: 2;
    background: rgba(20, 36, 23, 0.8);
    margin-bottom: 8px;
}

.option-label input:checked + .option-card .check-icon {
    background: var(--z-yellow);
    border-color: var(--z-yellow);
}

.check-icon svg {
    width: 14px;
    height: 14px;
    color: var(--z-dark);
    opacity: 0;
    transition: all 0.2s;
}

.option-label input:checked + .option-card .check-icon svg {
    opacity: 1;
}

.option-img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.option-label input:checked + .option-card .option-img {
    transform: scale(1.05);
}

.option-name {
    font-family: 'Codec Pro', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.2;
}

.option-desc {
    font-family: 'Codec Pro', sans-serif;
    font-size: 12px;
    color: rgba(253, 251, 237, 0.5);
    margin-bottom: 8px;
}

.option-price {
    font-family: 'Benzin', sans-serif;
    font-size: 16px;
    color: var(--z-yellow);
    margin-top: auto;
}

/* =========================================
   МОБІЛЬНИЙ STICKY FOOTER (Конверсія)
   ========================================= */
.mobile-sticky-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 36, 22, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(253, 251, 237, 0.1);
    padding: 16px 5vw;
    z-index: 999;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-total-lbl {
    font-family: 'Codec Pro', sans-serif;
    color: rgba(253, 251, 237, 0.5);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 4px;
}

.mobile-total-val {
    font-family: 'Benzin', sans-serif;
    color: var(--z-yellow);
    font-size: 24px;
    line-height: 1;
}

/* =========================================
   АДАПТИВ
   ========================================= */
@media (max-width: 1199.98px) {
    .preview-sticky {
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }

    .preview-box {
        height: 350px;
    }

    /* Показуємо липку панель на планшетах і телефонах */
    .mobile-sticky-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Додаємо падінг до боді, щоб футер не перекривав контент */
    body {
        padding-bottom: 80px;
    }
}

@media (max-width: 768px) {
    /* Робимо сітку опцій по 2 в ряд на телефонах */
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .option-card {
        padding: 16px 12px;
    }

    .option-img {
        height: 100px;
    }

    .option-name {
        font-size: 13px;
    }

    .option-price {
        font-size: 14px;
    }

    .step-title {
        font-size: 16px;
    }

    .configurator-section {
        order: 2;
    }

    .summary-section {
        order: 1;
    }
}