.roi-calc {
    padding: 70px 0 40px;
    background: #ffffff;
}

.roi-calc .container {
    max-width: 1140px;
}

.roi-calc-head {
    text-align: center;
    margin-bottom: 32px;
}

.roi-calc-head__title {
    font: 800 44px / 64px "Manrope";
    text-align: center;
    margin: 0 0 20px;
    color: #000;
}

.roi-calc-head__title span {
    color: #fe445b;
}

.roi-calc-head__subtitle {
    font: 500 18px / 26px "Manrope";
    color: #666;
    margin-bottom: 60px;
}

.roi-calc-card {
    background: #ffffff;
    border-radius: 18px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 18px 45px rgba(18, 18, 18, 0.12);
    padding: 30px 35px;
    max-width: 1024px;
    margin: 0 auto;

}

.roi-calc-form__section-title {
    font: 800 22px / 28px 'Manrope';
    color: #121212;
    margin: 6px 0 18px;
}

.roi-calc-grid {
    display: grid;
    gap: 22px;
}

.roi-calc-grid--2 {
    grid-template-columns: 1fr 1fr;
}

.roi-calc-grid--1 {
    grid-template-columns: 1fr;
}

.roi-calc-field__label {
    font: 700 14px / 18px 'Manrope';
    color: #121212;
    margin-bottom: 10px;
}

.roi-calc-field__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.roi-calc-field__value {
    font: 800 18px / 18px 'Manrope';
    color: #f04259;
    white-space: nowrap;
}

.roi-calc-input {
    width: 100%;
    height: 52px;
    border-radius: 10px;
    border: 1px solid #e7e8ec;
    background: #ffffff;
    padding: 0 16px;
    font: 600 16px / 20px 'Manrope';
    color: #121212;
    outline: none;
    box-shadow: none;
}

.roi-calc-input:focus {
    border-color: #f04259;
}

.roi-calc-input::placeholder {
    color: #9aa0a6;
    font: 400 16px / 20px 'Manrope';
}

.roi-calc-form__divider {
    height: 1px;
    background: #ececf1;
    margin: 22px 0;
}

.roi-calc-slider {
    position: relative;
    height: 22px;
    display: flex;
    align-items: center;
}

.roi-calc-slider__range {
    width: 100%;
    appearance: none;
    background: transparent;
    position: relative;
    z-index: 2;
    height: 22px;
    margin: 0;
}

.roi-calc-slider__track {
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    border-radius: 999px;
    background: #e6e6eb;
    z-index: 1;
    overflow: hidden;
}

.roi-calc-slider__track::before {
    content: "";
    display: block;
    height: 100%;
    width: var(--fill, 0%);
    background: #f04259;
    border-radius: 999px;
}

.roi-calc-slider__range::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    position: relative;
    top: -5px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #f04259;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

.roi-calc-slider__range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    position: relative;
    top: -5px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #f04259;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

.roi-calc-slider__range::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
}

.roi-calc-slider__range::-moz-range-track {
    height: 6px;
    background: transparent;
}

.roi-calc-field__hint {
    font: 500 12px / 16px 'Manrope';
    color: #8a8a93;
    margin-top: 8px;
}

.roi-calc-field__error {
    font: 600 12px / 16px 'Manrope';
    color: #f04259;
    margin-top: 8px;
    min-height: 16px;
}

.roi-calc-field.is-error .roi-calc-input {
    border-color: #f04259;
}

.roi-calc-money {
    display: flex;
    align-items: center;
    gap: 10px;
}

.roi-calc-currency {
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    border: 1px solid #e7e8ec;
    overflow: hidden;
    height: 52px;
    flex: 0 0 auto;
}

.roi-calc-currency__btn {
    height: 52px;
    min-width: 35px;
    padding: 0 10px;
    border: 0;
    background: #ffffff;
    cursor: pointer;
    font: 600 16px / 16px 'Manrope';
    color: #121212;
}

.roi-calc-currency__btn.is-active {
    background: #f04259;
    color: #ffffff;
}

.roi-calc-btn {
    width: 100%;
    margin-top: 18px;
    border: 0;
    border-radius: 12px;
    background: #f04259;
    color: #ffffff;
    height: 62px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: .3s;
    font: 800 18px / 18px 'Manrope';
}
.roi-calc-btn:hover {
    background: #f04259;
    box-shadow: 0 8px 24px rgba(240, 66, 89, 0.3);
}

.roi-calc-btn:active {
    transform: translateY(1px);
}

.roi-calc-btn__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.roi-calc-btn__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.roi-calc-results {
    margin-top: 40px;
}

.roi-calc-results__title {
    text-align: center;
    font: 800 24px / 30px 'Manrope';
    color: #121212;
    margin-bottom: 40px;
}

.roi-calc-results__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1024px;
    margin: 0 auto 40px;
}

.roi-calc-res {
    border-radius: 14px;
    background: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 3px 11px 3px rgba(18, 18, 18, 0.10);
    padding: 25px;
}

.roi-calc-res__title {
    font: 800 16px / 24px 'Manrope';
    color: #222;
}

.roi-calc-res__value {
    margin-top: 10px;
    font: 900 30px / 34px 'Manrope';
    letter-spacing: -0.02em;
}

.roi-calc-res__note {
    margin-top: 10px;
    font: 400 13px / 19px 'Manrope';
    color: #6a6a6a;
}

.roi-calc-res--red {
    border-color: #ff5b6e;
}

.roi-calc-res--red .roi-calc-res__value {
    color: #f04259;
}

.roi-calc-res--orange {
    border-color: #ffbf3c;
}

.roi-calc-res--orange .roi-calc-res__value {
    color: #f5a000;
}

.roi-calc-res--green {
    border-color: #40c26b;
}

.roi-calc-res--green .roi-calc-res__value {
    color: #1ea552;
}

.roi-calc-res--blue {
    border-color: #2e8bff;
}

.roi-calc-res--blue .roi-calc-res__value {
    color: #2e8bff;
}

.roi-calc-cta {
    margin-top: 18px;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(18, 18, 18, 0.14);
    padding: 45px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1024px;
    margin: 0 auto;
    flex-direction: column;
    text-align: center;
    background: #272020;
    background: -webkit-linear-gradient(162deg,rgba(39, 32, 32, 1) 0%, rgba(142, 42, 56, 1) 100%);
    background: -moz-linear-gradient(162deg,rgba(39, 32, 32, 1) 0%, rgba(142, 42, 56, 1) 100%);
    background: linear-gradient(162deg,rgba(39, 32, 32, 1) 0%, rgba(142, 42, 56, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(
    startColorstr="#272020",
    endColorstr="#8E2A38",
    GradientType=0
    );
}

.roi-calc-cta__title {
    font: 900 28px / 36px 'Manrope';
    color: #ffffff;
}

.roi-calc-cta__subtitle {
    font: 300 15px / 20px 'Manrope';
    color: #fff;
    margin-top: 10px;
}

.roi-calc-cta__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.roi-calc-cta__btn {
    height: 54px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    font: 800 14px / 14px 'Manrope';
    cursor: pointer;
    user-select: none;
    transition: .3s;
}

.roi-calc-cta__btn--primary {
    background: #f04259;
    color: #ffffff;
}
.roi-calc-cta__btn--primary:hover {
    background: #f04259;
    box-shadow: 0 8px 24px rgba(240, 66, 89, 0.3);
}

.roi-calc-cta__btn--ghost {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.55);
}
.roi-calc-cta__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}   

.roi-calc-slider-row {
    display: flex;
    align-items: center;
    gap: 1-px;
    margin-top: 10px;
}

.roi-calc-slider-row .roi-calc-slider {
    flex: 1;
}

.roi-calc-slider-row .roi-calc-field__value {
    flex: 0 0 50px;
    text-align: right;
}

.roi-calc-input[type="number"] {
    appearance: auto;
    -moz-appearance: number-input;
}

.roi-calc-input[type="number"]::-webkit-outer-spin-button,
.roi-calc-input[type="number"]::-webkit-inner-spin-button {
    opacity: 1;
}



@media (max-width: 992px) {
    .roi-calc {
        padding: 52px 0;
    }

    .roi-calc-head__title {
        font: 800 28px / 34px "Manrope";
    }

    .roi-calc-card {
        padding: 18px;
    }

    .roi-calc-res {
        min-height: 151px;
    }

    .roi-calc-grid--2 {
        grid-template-columns: 1fr;
    }

    .roi-calc-results__grid {
        grid-template-columns: 1fr;
    }

    .roi-calc-money {
        flex-direction: column;
        align-items: stretch;
    }

    .roi-calc-currency {
        width: 100%;
    }

    .roi-calc-currency__btn {
        flex: 1;
    }

    .roi-calc-cta {
        padding: 40px 15px;
    }

    .roi-calc-cta__title {
        font: 900 20px / 26px 'Manrope';
    }
}

@media (max-width: 768px) {
    .roi-calc-cta__actions {
        flex-direction: column;
    }
    .roi-calc-cta__btn {
        padding: 0 20px;
    }
}
@media (max-width: 400px) {
    .roi-calc-cta__btn {
        padding: 0 7px;
    }
}