/* ===== Блок расчёта стоимости (новый дизайн) ===== */
.estimate-section {
    position: relative;
}

.estimate-card {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #4338ca 100%);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(49, 46, 129, 0.35);
    color: #fff;
}

.estimate-card::before {
    content: "";
    position: absolute;
    top: -60%;
    right: -20%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.28) 0%, transparent 70%);
    pointer-events: none;
}

.estimate-controls {
    position: relative;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.estimate-field-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}

.estimate-field-head label {
    font-size: 1rem;
    font-weight: 600;
    color: #e0e7ff;
}

.estimate-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    padding: 4px 16px;
    border-radius: 100px;
}

.estimate-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(224, 231, 255, 0.6);
}

.estimate-controls input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
}

.estimate-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #6366f1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.estimate-controls input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.estimate-controls input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #6366f1;
    cursor: pointer;
}

.estimate-seg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.estimate-seg button {
    padding: 12px 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #e0e7ff;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.estimate-seg button:hover {
    background: rgba(255, 255, 255, 0.14);
}

.estimate-seg button.active {
    background: #fff;
    color: #312e81;
    border-color: #fff;
}

.estimate-result {
    position: relative;
    padding: 48px 44px;
    background: rgba(255, 255, 255, 0.07);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.estimate-result-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(224, 231, 255, 0.75);
    font-weight: 600;
}

.estimate-price {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.estimate-range {
    font-size: 1.1rem;
    color: #c7d2fe;
}

.estimate-note {
    font-size: 0.85rem;
    color: rgba(199, 210, 254, 0.75);
    line-height: 1.55;
}

.estimate-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    align-self: flex-start;
    padding: 16px 32px;
    background: #fff;
    color: #312e81;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    transition: all 0.3s ease;
}

.estimate-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* ===== Сценарии ===== */
.estimate-scenarios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 44px;
}

.scenario-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    padding: 34px 28px;
    transition: all 0.35s ease;
    position: relative;
}

.scenario-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.scenario-card.featured {
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border: 2px solid #6366f1;
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.18);
}

.scenario-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.scenario-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.scenario-desc {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}

.scenario-price {
    font-size: 1.7rem;
    font-weight: 800;
    color: #6366f1;
    margin-bottom: 20px;
}

.scenario-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 0;
}

.scenario-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.45;
}

.scenario-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
}

/* ===== Риск-сравнение ===== */
.estimate-risk {
    margin-top: 44px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    padding: 34px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 28px;
    align-items: center;
}

.estimate-risk-side h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.estimate-risk-side.danger h3 {
    color: #ef4444;
}

.estimate-risk-side.good h3 {
    color: #10b981;
}

.estimate-risk-side ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 0;
}

.estimate-risk-side li {
    font-size: 0.95rem;
    color: #475569;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.45;
}

.estimate-risk-vs {
    font-size: 1.5rem;
    font-weight: 800;
    color: #cbd5e1;
}

/* ===== Адаптив ===== */
@media (max-width: 900px) {
    .estimate-card {
        grid-template-columns: 1fr;
    }

    .estimate-result {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .estimate-scenarios {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .estimate-risk {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .estimate-risk-vs {
        display: none;
    }
}

@media (max-width: 640px) {
    .estimate-controls,
    .estimate-result {
        padding: 32px 24px;
    }

    .estimate-price {
        font-size: 2.4rem;
    }

    .estimate-risk {
        padding: 24px;
    }
}
