.calculator--title {
    max-width: 100%;
}


.calculator--title_mob {
    display: none;
}

.calculator--range_form {
    padding-top: 20px;
}

.calculator--content {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 37px;
}

.calculator .container {
    position: relative;
}

.calculator .decor {
    position: absolute;
    width: 172px;
    height: 172px;
    right: -120px;
    top: -50px;
    z-index: 2;
}

.calculator--renge_wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 0;
    grid-auto-rows: auto;
}

.calculator--renge_title_wrapper {
    grid-column: 1/5;
    grid-row: 1/2;
}

.calculator--renge_result_wrapper {
    grid-column: 1/2;
    grid-row: 2/3;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.calculator--renge_body {
    grid-column: 2/5;
    grid-row: 2/3;
    padding-left: 40px;
    box-sizing: border-box;
}

.calculator--values {
    width: 66.6%;
}

.calculator--result {
    width: 33%;
    box-sizing: border-box;
    padding-left: 33px;
}

.result--btn_mob {
    display: none;
}

.calculator--renge_body .irs--round .irs-bar,
.calculator--renge_body .irs--round .irs-line {
    height: 8px;
    top: 23px;
}

.calculator--renge_body .irs--round .irs-handle {
    top: 15px;
}

.calculator--renge_body .irs--round.irs-with-grid {
    height: 55px;
}

.calculator--renge_body .irs--round .irs-handle {
    border: 6px solid var(--accent);
    cursor: pointer;
    box-shadow: 0px 0px 5px rgba(89, 0, 0, 0.7);
    padding: 0 !important;
}

.calculator--renge_body .irs--round .irs-bar {
    background-color: var(--accent);
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
}

.calculator--renge_body .irs--round .irs-grid-pol {
    background-color: transparent;
}

.calculator--renge_body .irs--round .irs-line {
    background: #e6eaff;
}

.calculator--renge_title {
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
    color: #ffffff;
    text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
}

.calculator--renge_wrapper-padding {
    padding-bottom: 17px;
}

.calculator--renge_result {
    background: var(--accent);
    border: 4px solid #ffffff;
    height: 50px;
    width: 180px;
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 5px;
}

.calculator--result_body {
    height: 147px;
    max-height: 100%;
    margin-top: 64px;
    box-sizing: border-box;
    background: var(--accent);
    border: 4px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 5px;
    font-style: normal;
    font-weight: 700;
    font-size: 42px;
    line-height: 50px;
    color: #ffffff;
}

.irs-grid-text {
    font-style: normal;
    font-weight: 600;
    font-size: 14px !important;
    line-height: 17px;
    color: #ffffff !important;
    top: 15px;
}

.irs-grid-text .js-grid-text-4 {
    left: 108% !important;
}

.calculator_inner {
    width: 100%;
    display: flex;

}



.calc-type {
    display: grid;
    grid-template-columns: repeat(2, 50%);

    .calc-type__left {
        border-radius: 20px 0px 0px 20px;
        background: #F0F3FF;
        padding: 50px 110px;
    }

    .irs-grid-text,
    .irs-grid-pol {
        display: none;
    }

    .irs--round .irs-handle {
        background-color: var(--accent-color);
        border: none;
        cursor: pointer;
    }

    .irs--round .irs-bar {
        background-color: var(--accent-color);
    }

    .irs--round .irs-line {
        background-color: #828282;
    }

    .calc-type__currency {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 35px;

        button {
            border-radius: 20px;
            background: var(--Gray-4, #BDBDBD);
            color: var(--Gray-6, #F2F2F2);
            font-size: 16px;
            font-weight: 500;
            line-height: 178.571%;
            width: 120px;
            height: 35px;
            display: flex;
            justify-content: center;
            align-items: center;

            &.currency-button--active {
                background: var(--accent-color);
                color: var(--Gray-6, #F2F2F2);
            }
        }
    }

    .calc-type__field--title {
        color: var(--Greyscale-Grey-500, #70707A);
        font-size: 14px;
        font-weight: 500;
        line-height: 160%;
    }

    .field-invest__input {
        position: relative;
        display: flex;
        align-items: center;
        gap: 3px;
        border-bottom: 3px solid #828282;

        &::before {
            content: attr(data-prefix);
            background-repeat: no-repeat;
            background-size: cover;
            font-size: 28px;
            font-weight: 600;
            bottom: 10px;
            transform: translateY(-1px);
        }

        input {
            width: 100%;
            font-size: 28px;
            font-weight: 600;
            line-height: 178.571%;

            &::placeholder {
                color: var(--Gray-3, #828282);
            }
        }
    }


    .calc-type__template {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 35px;
    }

    .calc-type__template {
        color: var(--Greyscale-Grey-500, #70707A);
        font-size: 16px;
        font-weight: 600;
        line-height: 160%;
    }

    .invest-button,
    .time-button {
        display: flex;
        transition: all 0.3s ease-in-out;
        padding: 6px;
        border-radius: 8px;
        gap: 3px;

        @media(any-hover: hover) {
            &:hover {
                background: #052b3740;
            }
        }

        &.invest-button--active,
        &.time-button--active {
            background: var(--accent-color);
            color: var(--Gray-6, #F2F2F2);
        }
    }

    .field-time {
        margin-top: 55px;

        .calc-type__field--title {
            color: var(--Gray-1, #333);
            font-size: 28px;
            font-weight: 600;
            line-height: 80%;
        }
    }

    .time-wrap {
        margin-top: 10px;
    }

    .calc-type__right {
        border-radius: 0px 20px 20px 0px;
        background: var(--accent-color);
        padding: 100px 50px 55px;
        display: flex;
        flex-direction: column;
    }

    .calc-type__right--title {
        color: var(--Gray-5, #E0E0E0);
        font-size: 36px;
        font-weight: 600;
        line-height: 50px;
    }

    .calc-type__right--result {
        color: #F28F03;
        font-size: 70px;
        font-weight: 700;
        line-height: 71.429%;
        margin-top: 25px;
        display: flex;
        flex-wrap: nowrap;
        gap: 15px;
    }

    .calc-type__right--bottom {
        margin-top: 120px;
        padding-top: 10px;
        border-top: 1px solid #e0e0e089;
    }

    .calc-type__right--bottom--title {
        color: var(--Gray-5, #E0E0E0);
        font-size: 24px;
        font-weight: 500;
        opacity: 0.5;

    }

    .calc-type__right--bottom--result {
        color: var(--Gray-5, #E0E0E0);
        font-size: 32px;
        font-weight: 700;
        line-height: 156.25%;
        margin-top: 4px;
    }

    &.calc-type--four {
        border-radius: 20px;
        background: var(--Gray-6, #F2F2F2);
        padding: 65px 110px;

        .calc-type__right {
            grid-column: 1 / 2;
            grid-row: 1 / 2;
            border-radius: 0;
            background: transparent;
            padding: 0;
            padding-right: 50px;
        }

        .calc-type__left {
            grid-column: 2 / 3;
            border-radius: 0;
            background: transparent;
            padding: 0;
        }

        .calc-type__right--title,
        .calc-type__right--bottom--title,
        .calc-type__right--bottom--result {
            color: var(--accent-color);
        }

        .calc-type__right--bottom--title {
            color: #BDBDBD;
        }

        .calc-type__right--bottom {
            padding-top: 0;
            border-top: none;
            padding-left: 12px;
            border-left: 3px solid var(--accent-color);
        }

        .calc-type__right--result {
            color: #082852;
            font-size: 60px;
        }

        .field-invest__input {
            border-bottom: none;
            gap: 0;
            display: block;

            &::before {
                display: none;
            }
        }

        .field-invest__sum {
            position: relative;
            color: var(--accent-color);
            font-size: 30px;
            font-weight: 600;
            line-height: 100%;
            margin-bottom: -10px;

            &::before {
                content: attr(data-prefix);
                font-size: 28px;
                font-weight: 600;
                transform: translateY(-1px);
                padding-right: 2px;
            }
        }

        .calc-type-inner {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 5px;
            margin-top: 20px;
        }

        .invest-wrap {
            margin-top: 0;

        }

        .calc-type__template {
            gap: 5px;
        }

        .calc-type-inner__input {
            position: relative;

            width: 100%;
            display: flex;
            align-items: center;
            font-size: 16px;
            font-weight: 600;

            &::before {
                position: absolute;
                left: 8px;
                content: attr(data-prefix);
                padding-right: 2px;
            }

            input {
                width: 100%;
                border-radius: 8px;
                border: 1px solid #BDBDBD;
                background: #F0F3FF;
                padding: 8px 8px 8px 23px;

                &:focus {
                    border: 1px solid var(--accent-color);
                }
            }
        }

        .time-wrap {
            margin-top: 0;
        }

        .field-time {
            .calc-type-inner__input input {
                padding-left: 8px;
            }
        }
    }

    &.calc-type--three {
        border-radius: 20px;
        background: var(--accent-color);
        padding: 130px 80px;

        .calc-type__right--title {
            color: #C5EDFF;
        }

        .calc-type__right--result {
            background: var(--Liner, linear-gradient(91deg, #C0FF3A 17.46%, #00FFA3 93.13%));
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 121.429%;
            margin-top: 10px;
        }

        .calc-type__right {
            border-radius: 0;
            background: transparent;
            padding: 0 0 0 40px;
            padding-right: 50px;

            position: relative;

            &::before {
                content: '';
                position: absolute;
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='617' fill='none'%3E%3Cpath fill='%23C5EDFF' d='M2 .667a1.333 1.333 0 1 0 0 2.666A1.333 1.333 0 0 0 2 .667Zm0 613a1.333 1.333 0 1 0 0 2.667 1.333 1.333 0 0 0 0-2.667ZM1.75 2v613h.5V2h-.5Z'/%3E%3C/svg%3E");
                background-repeat: no-repeat;
                background-position: center;
                background-size: contain;
                width: 4px;
                height: 580px;
                left: 0;
                top: 50%;
                transform: translateY(-50%);
            }

        }

        .calc-type__right--bottom--text {


            strong {
                color: #C5EDFF;
                font-size: 16px;
                font-weight: 700;
                line-height: 117.7%;
                letter-spacing: -0.48px;
            }

            h2 {
                color: #FFF;
                font-size: 54px;
                line-height: 100%;
            }
        }



        .calc-type__right--bottom--buttons {
            display: flex;
            gap: 20px;
            margin-top: 50px;

            .calc-type__right--button {
                background: #fff;
                color: var(--accent-color);

                &:hover {
                    color: #fff;
                }
            }

            .button_style_4 {
                background-color: transparent;
                border-color: #fff;
                color: #fff;
            }
        }

        .calc-type__left {
            border-radius: 0;
            background: transparent;
            padding: 0 120px 0 0;
        }

        .calc-type__right--bottom {
            margin-top: 0;
            border-top: none;
            padding-top: 0;
            color: #fff;
        }

        .calc-type-inner__title {
            color: #C5EDFF;
            font-size: 24px;
            font-weight: 600;
            line-height: 208.333%;
        }

        .calc-type-inner {
            margin-top: 30px;

        }

        .calc-type-inner__input {
            position: relative;
            border-radius: 5px;
            border: 1.5px solid #C5EDFF;
            background: #FFF;
            box-shadow: 0px 0px 0px 3.55px rgba(24, 144, 255, 0.20);
            height: 70px;

            &::before {
                position: absolute;
                content: attr(data-prefix);
                font-size: 24px;
                font-weight: 600;
                line-height: 208.333%;
                left: 20px;
                top: 50%;
                transform: translateY(-50%);
            }

            input {
                width: 100%;
                height: 100%;
                border: none;
                background: transparent;
                font-size: 24px;
                font-weight: 600;
                line-height: 208.333%;
                padding: 0 20px 2px 52px;
                appearance: none;
                -webkit-appearance: none;
                -moz-appearance: textfield;

                &::placeholder {
                    color: #BDBDBD;
                }
            }

            input::-webkit-outer-spin-button,
            input::-webkit-inner-spin-button {
                -webkit-appearance: none;
                margin: 0;
            }
        }

        .number-buttons {
            position: absolute;
            right: 0;
            height: 100%;
            width: 40px;
            display: flex;
            flex-direction: column;
            border-left: 1px solid #E0E0E0;
            top: 0;

            .arrow {
                display: flex;
                justify-content: center;
                align-items: center;
                height: 50%;
                position: relative;

                @media(any-hover: hover) {
                    &:hover {
                        &::before {
                            opacity: 0.5;
                        }
                    }
                }

                &::before {
                    content: '';
                    position: absolute;
                    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='14' fill='none'%3E%3Cpath fill='%238C8C8C' d='M11.634 3.25h-1.04a.223.223 0 0 0-.179.092l-3.94 5.43-3.939-5.43a.223.223 0 0 0-.179-.092h-1.04c-.09 0-.143.103-.09.176l4.89 6.741c.177.244.54.244.717 0l4.89-6.74a.11.11 0 0 0-.09-.177Z'/%3E%3C/svg%3E");
                    background-repeat: no-repeat;
                    background-size: cover;
                    width: 13px;
                    height: 14px;
                    transition: opacity 0.3s ease-in-out;
                }
            }

            .up {
                border-bottom: 1px solid #E0E0E0;
                height: calc(50% + 1px);

                &::before {
                    transform: rotate(180deg);
                }
            }

            .down {}
        }



        .field-time {
            margin-top: 35px;

            .calc-type__field--title {
                color: #F2F2F2;
                font-size: 28px;
                font-weight: 500;
                line-height: 100%;
            }
        }

        .irs--round .irs-handle {
            border-radius: 21px;
            background: var(--Liner, linear-gradient(91deg, #C0FF3A 17.46%, #00FFA3 93.13%));
            box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
            width: 16px;
            height: 31px;
        }

        .irs--round .irs-bar {
            background: #C5EDFF;
            height: 8px;
        }

        .irs--round .irs-line {
            border-radius: 39px;
            background: #C5EDFF;
            height: 8px;
        }


    }
}





@media (max-width: 1200px) {
    .calculator {
        padding: 180px 0 100px;
    }

    .calculator--content {
        padding: 40px;
    }

    .calculator .container::before {
        transform: rotate(15.77deg);
        width: 161px;
        height: 161px;
        right: 0px;
        top: -140px;
    }

    .calculator_inner {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .calculator--values {
        width: 100%;
    }

    .calculator--renge_wrapper-padding {
        padding-bottom: 37px;
    }

    .calculator--renge_title_wrapper {
        padding-left: 36px;
    }

    .calculator--result {
        padding: 0;
        width: 100%;
    }

    .calculator--result_body {
        max-width: 336px;
        margin: 96px auto 0;
    }

    .calc-type {
        grid-template-columns: 1fr;
        width: calc(100% + 30px);
        margin-left: -15px;

        .calc-type__right {
            grid-row: 1 / 2;
            border-radius: 0;
            padding: 60px 30px 60px;
        }

        .calc-type__left {
            padding: 40px 30px;
            border-radius: 0;
        }

        .calc-type__right--bottom {
            display: none;
        }

        .calc-type__right--result {
            line-height: 100%;
            font-size: 52px;
        }

        .calc-type__right--title {
            font-size: 24px;
        }

        .calc-type__template {
            display: grid;
            grid-template-columns: repeat(2, 50%);
            gap: 0;
            margin-top: 20px;
        }

        .invest-button,
        .time-button {
            text-align: center;
            justify-content: center;
        }

        .field-time {
            margin-top: 30px;
        }

        .time-wrap {
            margin-top: 10px;
        }


    }

    .calc-type.calc-type--four {
        gap: 60px;

        .calc-type__left {
            grid-column: 1 / 2;
        }

        .calc-type-inner {
            flex-direction: column;
            gap: 15px;
        }

        .calc-type__template {
            width: 100%;
        }

        .field-time {
            margin-top: 50px;
        }
    }

    .calc-type.calc-type--three {
        padding: 60px 30px;
        gap: 50px;

        .calc-type__right {
            padding: 0;
            grid-row: 2 / 3;

            &::before {
                display: none;
            }
        }

        .calc-type__right--bottom {
            display: block;
        }

        .calc-type__right--bottom--buttons {
            display: none;
        }
    }

}

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

    .calculator--content {
        padding: 40px 20px;
    }

    .calculator .container::before {
        width: 75px;
        height: 75px;
        right: -3px;
        top: -40px;
    }

    .calculator--range_form {
        padding-top: 28px;
    }

    .calculator--renge_title_wrapper {
        padding-left: 30px;
    }

    .calculator--renge_wrapper {
        display: flex;
        flex-direction: column;
    }

    .calculator--renge_wrapper-padding {
        padding-bottom: 33px;
    }

    .calculator--renge_body {
        order: 1;
        padding: 0;
    }

    .calculator--renge_title_wrapper {
        padding: 0;
        text-align: center;
    }

    .calculator--renge_title {
        font-size: 16px;
        line-height: 19px;
    }

    .calculator--renge_result {
        font-size: 18px;
        line-height: 22px;
        margin-bottom: 10px;
    }

    .calculator--result_body {
        margin: 51px auto 0;
        max-width: 276px;
        height: 106px;
        font-size: 30px;
        line-height: 36px;
    }

    .calc-type {
        .calc-type__right {
            padding: 40px 15px;
        }

        .calc-type__left {
            padding: 40px 15px;
        }
    }

    .calc-type.calc-type--four {
        padding: 60px 15px;
        border-radius: 0;

        .calc-type__right--title {
            font-size: 36px;
        }
    }

    .calc-type.calc-type--four .calc-type__right--result {
        font-size: 52px;
    }

    .calc-type.calc-type--three {
        border-radius: 0;
        padding: 60px 15px;

        .calc-type__right--bottom--text h2 {
            font-size: 40px;
        }

        .calc-type__left {
            padding-right: 0;
        }
    }
}