
.sber-quiz {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    max-width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    max-height: 85vh;
}

/* ЛЕВАЯ КОЛОНКА */
.quiz-params {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.quiz-header {
    background: #024A68;
    color: #fff;
    padding: 20px 25px;
    text-align: center;
    flex-shrink: 0;
}

.quiz-header h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}

.quiz-header p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
    color: #fff;
}

.quiz-progress {
    padding: 15px 25px 0;
    flex-shrink: 0;
}

.progress-bar-container {
    background: #e8e8e8;
    height: 5px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: #024A68;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
}

.progress-text .step-label {
    font-weight: 600;
    color: #024A68;
}

.quiz-body {
    padding: 20px 25px;
    overflow-y: auto;
    flex: 1;
}

.quiz-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

.step-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
    text-align: center;
}

.step-subtitle {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin: 0 0 20px;
}

.slider-group {
    margin-bottom: 20px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.slider-label span:first-child {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.slider-value {
    font-size: 16px;
    font-weight: 700;
    color: #024A68;
}

.slider-value .percent {
    font-size: 11px;
    color: #888;
    font-weight: 400;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    cursor: pointer;
    margin: 8px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #024A68;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(2,74,104,0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #024A68;
    cursor: pointer;
    border: none;
}

.slider-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

.info-block {
    background: #f0f7fa;
    border-left: 3px solid #024A68;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.info-block p {
    font-size: 12px;
    color: #333;
    margin: 0 0 2px;
}

.info-block p:last-child { margin: 0; }
.info-block strong { color: #024A68; }

.program-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.program-option { position: relative; }
.program-option input { position: absolute; opacity: 0; }

.program-card {
    display: block;
    padding: 14px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.program-card:hover { border-color: #024A68; }

.program-option input:checked + .program-card {
    border-color: #024A68;
    background: #024A68;
    color: #fff;
}

.program-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.program-rate { font-size: 11px; opacity: 0.8; }

.term-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.term-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: #fff;
    font-size: 16px;
    font-weight: 700;
    color: #024A68;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.term-btn:hover { border-color: #024A68; background: #f0f7fa; }

.term-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    min-width: 80px;
    text-align: center;
}

.term-value span { font-size: 12px; color: #888; font-weight: 400; }

.quiz-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary { background: #024A68; color: #fff; flex: 1; }
.btn-primary:hover { background: #013a52; transform: translateY(-1px); box-shadow: 0 3px 10px rgba(2,74,104,0.3); }
.btn-secondary { background: #f0f0f0; color: #333; }
.btn-secondary:hover { background: #e0e0e0; }

.result-card {
    background: #024A68;
    color: #fff;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 15px;
}

.result-payment { text-align: center; margin-bottom: 15px; }
.result-payment-label { font-size: 11px; opacity: 0.8; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.result-payment-value { font-size: 32px; font-weight: 700; line-height: 1; }
.result-payment-value span { font-size: 16px; font-weight: 400; }

.result-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.result-detail { text-align: center; padding: 10px; background: rgba(255,255,255,0.1); border-radius: 6px; }
.result-detail-label { font-size: 10px; opacity: 0.8; margin-bottom: 2px; }
.result-detail-value { font-size: 13px; font-weight: 700; }

.promo-banner {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px dashed #ff9800;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    margin-bottom: 15px;
}

.promo-banner h3 { color: #e65100; font-size: 14px; margin: 0 0 4px; }
.promo-banner p { color: #5d4037; font-size: 11px; margin: 0; }

.contact-form { display: flex; flex-direction: column; gap: 10px; }
.contact-form .input-group { width: 100%; }

.quiz-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.quiz-input:focus { outline: none; border-color: #024A68; }

.policy { font-size: 11px; color: #666; margin: 6px 0; }
.policy a { color: #024A68; text-decoration: underline; }

.btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: #024A68;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.btn-submit:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(2,74,104,0.35); }
.btn-submit .gift { font-size: 11px; font-weight: 400; opacity: 0.9; }

/* ПРАВАЯ КОЛОНКА - РЕЗУЛЬТАТ */
.quiz-result-sidebar {
    background: #f5f7fa;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 0;
    height: fit-content;
    max-height: 85vh;
    overflow-y: auto;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.result-logo {
    width: 44px;
    height: 44px;
    background: #024A68;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}

.result-title { font-size: 16px; font-weight: 700; color: #1a1a1a; }
.result-subtitle { font-size: 12px; color: #666; }

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.result-item {
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
}

.result-item-label {
    font-size: 10px;
    color: #888;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: #e0e0e0;
    color: #666;
    border-radius: 50%;
    font-size: 10px;
    cursor: help;
    font-style: normal;
}

.result-item-value { font-size: 14px; font-weight: 700; color: #1a1a1a; }
.result-item-value.highlight { font-size: 18px; color: #024A68; }

.result-btn {
    width: 100%;
    padding: 14px;
    background: #024A68;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 16px;
}

.result-btn:hover {
    background: #013a52;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2,74,104,0.3);
}

.result-params-list {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    font-size: 12px;
}

.result-param-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.result-param-row:last-child { border-bottom: none; }
.result-param-row b { color: #1a1a1a; }

/* Скроллбар */
.quiz-body::-webkit-scrollbar,
.quiz-result-sidebar::-webkit-scrollbar {
    width: 6px;
}

.quiz-body::-webkit-scrollbar-track,
.quiz-result-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.quiz-body::-webkit-scrollbar-thumb,
.quiz-result-sidebar::-webkit-scrollbar-thumb {
    background: #024A68;
    border-radius: 3px;
}

@media (max-width: 900px) {
    .sber-quiz {
        grid-template-columns: 1fr;
        max-height: none;
    }
    .quiz-result-sidebar {
        position: static;
        max-height: none;
    }
    .program-options { grid-template-columns: 1fr; }
    .result-details { grid-template-columns: 1fr; }
    .result-payment-value { font-size: 26px; }
    .quiz-nav { flex-direction: column; }
    .btn-secondary { order: 2; }
}