/* ========== SEO Calculator ========== */

.calculator {
    padding: 100px 0;
    background: #F2F7FB;
}

.calculator_title {
    font-weight: 700;
    font-size: 48px;
    line-height: 58px;
    color: #005DAC;
    margin-bottom: 40px;
}

.calculator_card {
    display: flex;
    gap: 40px;
    background: #FFFFFF;
    border: 2px solid #005DAC;
    padding: 50px;
    position: relative;
}

.calculator_card::before {
    position: absolute;
    content: "";
    background-image: url(../img/cases_item.svg);
    background-size: cover;
    width: 30px;
    height: 30px;
    right: 10px;
    top: 10px;
}

/* === Left column: params === */

.calculator_params {
    flex: 1 1 58%;
    min-width: 0;
}

.calculator_param {
    margin-bottom: 36px;
}

.calculator_param:last-child {
    margin-bottom: 0;
}

.calculator_param-label {
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    color: #11172D;
    margin-bottom: 16px;
}

/* --- Range slider --- */

.calculator_slider-wrap {
    position: relative;
    padding-bottom: 30px;
}

.calculator_slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #DFE2EC;
    outline: none;
    cursor: pointer;
}

.calculator_slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid #005DAC;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 93, 172, 0.25);
    transition: box-shadow 0.2s;
}

.calculator_slider::-webkit-slider-thumb:hover {
    box-shadow: 0 2px 14px rgba(0, 93, 172, 0.4);
}

.calculator_slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid #005DAC;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 93, 172, 0.25);
}

.calculator_slider::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: #DFE2EC;
}

.calculator_slider::-moz-range-progress {
    height: 6px;
    border-radius: 3px;
    background: #005DAC;
}

.calculator_slider-value {
    display: inline-block;
    font-weight: 700;
    font-size: 16px;
    color: #005DAC;
    background: rgba(0, 93, 172, 0.08);
    padding: 4px 14px;
    border-radius: 20px;
    margin-left: 12px;
}

.calculator_slider-marks {
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
}

.calculator_slider-mark {
    position: absolute;
    font-size: 13px;
    color: #B0B3BB;
    font-weight: 600;
    transform: translateX(-50%);
}

.calculator_slider-mark:first-child {
    transform: translateX(0);
}

.calculator_slider-mark:last-child {
    transform: translateX(-100%);
}

/* --- Toggle buttons --- */

.calculator_toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.calculator_toggle {
    padding: 10px 20px;
    border: 2px solid #DFE2EC;
    background: #FFFFFF;
    color: #5D6584;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 24px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.calculator_toggle:hover {
    border-color: #005DAC;
    color: #005DAC;
}

.calculator_toggle.active {
    background: #005DAC;
    border-color: #005DAC;
    color: #FFFFFF;
}

/* --- Toggle hint --- */

.calculator_toggle-hint {
    font-size: 13px;
    color: #B0B3BB;
    margin-top: 8px;
    line-height: 20px;
    min-height: 20px;
    transition: opacity 0.3s;
}

/* --- Yes/No switch --- */

.calculator_switch-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.calculator_switch {
    position: relative;
    width: 56px;
    height: 30px;
    flex-shrink: 0;
}

.calculator_switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.calculator_switch-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #DFE2EC;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.calculator_switch-track::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #FFFFFF;
    top: 3px;
    left: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.calculator_switch input:checked + .calculator_switch-track {
    background: #005DAC;
}

.calculator_switch input:checked + .calculator_switch-track::after {
    transform: translateX(26px);
}

.calculator_switch-label {
    font-size: 15px;
    font-weight: 600;
    color: #5D6584;
    transition: color 0.3s;
}

.calculator_switch-label.active {
    color: #005DAC;
}

/* --- Page counter --- */

.calculator_counter {
    display: flex;
    align-items: center;
}

.calculator_counter-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #DFE2EC;
    background: #FFFFFF;
    color: #005DAC;
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.calculator_counter-btn:hover {
    border-color: #005DAC;
    background: #005DAC;
    color: #FFFFFF;
}

.calculator_counter-value {
    width: 64px;
    height: 44px;
    border-top: 2px solid #DFE2EC;
    border-bottom: 2px solid #DFE2EC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #11172D;
    background: #FFFFFF;
}

/* === Right column: result === */

.calculator_result {
    flex: 1 1 38%;
    min-width: 0;
    background: linear-gradient(135deg, #005CA5 0%, #1871c9 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.calculator_result::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    top: -60px;
    right: -60px;
}

.calculator_result::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: -40px;
    left: -40px;
}

.calculator_result-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.calculator_result-price {
    font-size: 48px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.calculator_result-currency {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.calculator_result-tariff {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.calculator_result-tariff-name {
    font-size: 26px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 36px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.calculator_result-desc {
    font-size: 14px;
    line-height: 22px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.calculator_result-btn {
    background: #FFFFFF;
    color: #005DAC;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 28px;
    padding: 16px 36px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 280px;
}

.calculator_result-btn:hover {
    background: #f0f6fc;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ========== Responsive ========== */

@media (max-width: 1200px) {
    .calculator_card {
        padding: 36px;
        gap: 30px;
    }

    .calculator_title {
        font-size: 38px;
        line-height: 48px;
    }

    .calculator_result-price {
        font-size: 40px;
    }
}

@media (max-width: 991px) {
    .calculator {
        padding: 60px 0;
    }

    .calculator_card {
        flex-direction: column;
    }

    .calculator_params {
        flex: none;
    }

    .calculator_result {
        flex: none;
        padding: 36px;
    }
}

@media (max-width: 768px) {
    .calculator_title {
        font-size: 30px;
        line-height: 40px;
        margin-bottom: 24px;
    }

    .calculator_card {
        padding: 24px;
        gap: 24px;
    }

    .calculator_result {
        padding: 30px 24px;
    }

    .calculator_result-price {
        font-size: 36px;
    }

    .calculator_result-tariff-name {
        font-size: 22px;
    }

    .calculator_param {
        margin-bottom: 28px;
    }
}

@media (max-width: 600px) {
    .calculator_card {
        padding: 20px;
    }

    .calculator_toggles {
        flex-direction: column;
    }

    .calculator_toggle {
        text-align: center;
    }

    .calculator_result-price {
        font-size: 32px;
    }

    .calculator_result-btn {
        padding: 14px 24px;
        max-width: 100%;
    }
}
