.calculator {
/*    font-family: 'Roboto', sans-serif;*/
    color: #FFFF;
    margin-top: 208px;
    margin-bottom: 211px;
    position: relative;
}

.calculator:before {
    content: "";
    position: absolute;
    width: 719px;
    height: 581px;
    left: -380px;
    top: 210px;
    background: rgba(70, 80, 242, 0.47);
    filter: blur(225px);
}

.calculator__container {
    max-width: 1320px;
    padding: 0 15px;
    margin: 0 auto;
}

.calculator__title {
    font-family: 'RealHeadWebW04-Black', sans-serif;
    font-weight: 900;
    font-size: 56px;
    line-height: 96.19%;
    margin-bottom: 22px;
    text-align: center;
    position: relative;
    z-index: 5;
}

.calculator__description {
    font-weight: 300;
    font-size: 16px;
    line-height: 160.19%;
    text-align: center;
    margin-bottom: 34px;
}

.calculator__invest-container {
    display: flex;
}

.calculator__invest {
    display: flex;
    flex-direction: column;
    padding: 45px 55px 80px 110px;
    background: rgba(123, 73, 233, 0.13);
    border: 4px solid #7B49E9;
    backdrop-filter: blur(12px);
    border-radius: 500px;
    position: relative;
    z-index: 5;
}

.calculator__box {
    position: relative;
}

.calculator__box:before {
    content: "";
    position: absolute;
    width: 340.53px;
    height: 369.4px;
    left: 30px;
    top: -22px;
    z-index: 2;
    background-image: url(../images/calculator/coin-two.png);
    background-repeat: no-repeat;
}

.calculator__box:after {
    content: "";
    position: absolute;
    width: 156.32px;
    height: 156.32px;
    right: 270px;
    top: -90px;
    z-index: 2;
    background-image: url(../images/calculator/coin-one.png);
    background-repeat: no-repeat;
}

.calculator__deposit {
    display: flex;
    flex-direction: column;
    margin-right: 60px;
}

.calculator__deposit-title,
.calculator__select-title,
.calculator__info-title {
    font-weight: 600;
    font-size: 20px;
    line-height: 117.19%;
}

.calculator__deposit-wrapper {
    position: relative;
    margin-top: 30px;
}

.calculator__deposit-input {
    font-weight: 600;
    font-size: 16px;
    line-height: 117.19%;
    display: flex;
    align-items: center;
    border: 1px solid #AE89FF;
    border-radius: 5px;
    padding: 6px 1px 6px 21px;
    background: none;
    color: #FFFFFF;
    outline: none;
}

.calculator__invest-currency {
    position: absolute;
    padding-top: 5px;
    padding-left: 9px;
    top: 5px;
    right: 6px;
    background: #7B49E9;
    border-radius: 4px;
    width: 39px;
    height: 23px;
    font-weight: 600;
    font-size: 11.871px;
    line-height: 117.19%;
}

/* Chrome, Safari, Edge, Opera */
.calculator__deposit-input::-webkit-outer-spin-button,
.calculator__deposit-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.calculator__deposit-input[type=number] {
    -moz-appearance: textfield;
}

.calculator__select {
    margin-right: 76px;
    white-space: nowrap;
}

.calculator__select-buttons {
    display: flex;
    column-gap: 7px;
    margin-top: 28px;
}

.calculator__select-button {
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    line-height: 117.19%;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 5px;
    padding: 8px;
    transition: background-color .3s ease-in-out, border .3s ease-in-out;
}

.calculator__select-button.calculator__select-button-active {
    background-color: #7B49E9;
    border: 1px solid #7B49E9;
}

.calculator__info {
    display: flex;
    column-gap: 31px;
    white-space: nowrap;
}

.calculator__info-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.calculator__info-value {
    font-weight: 600;
    font-size: 29px;
    line-height: 117.19%;
}

.calculator__info-profit {
    color: #B493FF;
}

.calculator__info-total,
.calculator__info-percentage {
    color: #56CCF2;
}

.calculator__invest-link {
    display: inline-block;
    position: absolute;
    font-weight: 600;
    font-size: 18px;
    line-height: 96.19%;
    padding: 23px 80px;
    top: 215px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(86.84deg, #BA5BC8 13.88%, #4650F2 90.23%), #D9D9D9;
    border-radius: 10px;
}

.calculator__deposit-range {
    margin-top: 20px;
}

/*input range style*/

.calculator__deposit-range {
    border-radius: 8px;
    height: 7px;
    outline: none;
    transition: background 450ms ease-in;
    -webkit-appearance: none;
}

.calculator__deposit-range::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    -webkit-appearance: none;
    cursor: pointer;
    background: #7B49E9;
}

/*input range style*/

@media (max-width: 1300px) {
    .calculator__invest-container {
        justify-content: space-between;
    }

    .calculator__invest {
        padding: 50px;
    }

    .calculator__invest-link {
        top: 85%;
    }
}

@media (max-width: 1200px) {
    .calculator__deposit,
    .calculator__select {
        margin-right: 15px;
    }

    .calculator__invest-container {
        flex-wrap: wrap;
        justify-content: center;
        column-gap: 50px;
        row-gap: 50px;
    }

    .calculator:before {
        top: -95px;
    }
}

@media (max-width: 1136px) {
    .calculator__invest-link {
        top: 94%;
    }
}

@media (max-width: 900px) {
    .calculator__box:after {
        right: 20px;
    }
}

@media (max-width: 800px) {
    .calculator__invest {
        min-width: 774px;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 670px) {
    .calculator__invest-container {
        flex-direction: column;
        align-items: center;
    }

    .calculator__box:after,
    .calculator__box:before {
        position: static;
    }

    .calculator:before {
        width: 368px;
        height: 297.55px;
        background: rgba(70, 80, 242, 0.75);
        filter: blur(186.486px);
        left: -125px;
    }

    .calculator__invest {
        border-radius: 0;
        min-width: calc(100% + 30px);
        padding: 20px;
    }

    .calculator__invest-link {
        position: relative;
        margin-top: 32px;
        width: 248px;
        top: auto;
    }

    .calculator__deposit-wrapper {
        width: fit-content;
    }

    .calculator__deposit,
    .calculator__select {
        margin-right: 0;
    }

    .calculator__info-title {
        margin-bottom: 20px;
    }
}

@media (max-width: 500px) {
    .calculator {
        margin-top: 69px;
        margin-bottom: 139px;
    }

    .calculator__title {
        font-size: 33px;
        line-height: 96.19%;
        margin-left: -6px;
        margin-bottom: 16px;
    }

    .calculator__description {
        font-size: 16px;
        line-height: 160.19%;
        max-width: 233px;
        margin: auto auto 26px auto;
    }

    .calculator__invest-container {
        align-items: center;
        row-gap: 0;
    }

    .calculator__invest {
        padding: 35px 16px 33px 21px;
        border-right: none;
        border-left: none;
    }

    .calculator__deposit-wrapper {
        margin-top: 22px;
    }

    .calculator__deposit-input {
        padding: 17px 83px 17px 21px;
    }

    .calculator__invest-currency {
        font-size: 16.1323px;
        line-height: 117.19%;
        width: 53px;
        height: 31px;
        top: 12px;
        right: 10px;
    }

    .calculator__deposit {
        margin-bottom: 26px;
    }

    .calculator__select-buttons {
        margin-top: 19px;
        column-gap: 7px;
        margin-left: 3px;
    }

    .calculator__info-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .calculator__select {
        margin-left: -6px;
        margin-bottom: 39px;
    }

    .calculator__info {
        column-gap: 24px;
        margin-left: -5px;
    }

    .calculator__info-value {
        font-size: 24px;
    }

    .calculator__select-button {
        margin-left: -3px;
    }

    .calculator__invest-link {
        margin-left: -3px;
    }
}
