.calculator-title {
    font-family: "AvenirNextW1G-Regular";
    font-size: 36px;
}

.calculator-title span {
    color: #d5be92;
    font-weight: 400;
    font-family: "AngleciaProDisplay-Italic";
}
.warning {
    max-width: 800px;
    margin: 0 auto;
}
.warning p {
    font-style: italic;
}
/*

.calculator {
    width: 90%;
    max-width: 1050px;
    -webkit-box-shadow: 0px 0px 25px rgba(80, 80, 80, 0.25);
    box-shadow: 0px 0px 25px rgba(80, 80, 80, 0.25);
    border-radius: 20px;
    background-color: #fff;
    overflow: hidden;
    position: fixed;
    z-index: 99999999999;
    top: 50%;
    left: 50%;

    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);

    max-height: 90vh;
    overflow-y: auto;
    min-height: 90%;
    font-family: Arial, Helvetica, sans-serif;
}

.calculator::-webkit-scrollbar {
    width: 5px;
}

.calculator::-webkit-scrollbar-thumb {
    background-color: darkgrey;


}
*/

#calculator-top-select {
    height: 52px;
    padding: 0 20px;
    font-size: 14px;
    border: 1px solid #CCC;
    border-radius: 5px;
    color: #4d4d52;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 8 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 1L4.11111 4L1 1' stroke='%23545459' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position-x: calc(100% - 20px);
    background-position-y: 22px;
    width: 100%;
    font-family: "AvenirNextW1G-Regular";

}

.calculator-data {
    display: none;
    opacity: 0;
}


.calculator-top {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    padding: 50px 0 0;
    max-width: 944px;
    margin: 0 auto;
    width: 100%;
}

.calculator-top-left {
    width: 100%;
    max-width: 329px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.calculator-top-right {
    width: 100%;
    max-width: 432px;
}

.calculator-top__item-top {
    font-size: 20px;
    line-height: 1.2em;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1D1D1F;
    font-family: "AvenirNextW1G-Regular";
}

.calculator-top__item-top p {
    color: #4d4d52;
    font-family: "AvenirNextW1G-Regular";
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.calculator-top__item-top span {
    color: #4d4d52;
    font-family: "AvenirNextW1G-Regular";
    font-weight: 600;
    font-size: 14px;
    text-transform: lowercase;
}

.calculator-top__item-top,
.calculator-top__item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calculator-top-left__img {
    background: url(/calc/img/agnes.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 329px;
    width: 329px;
}

.calculator-top-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.calculator-top__item-bottom {
    font-size: 12px;
    color: #545459;
}

.calculator input[type=range] {
    height: 22px;
    -webkit-appearance: none;
    margin: 10px 0;
    width: 100%;
}

.calculator input[type=range]:focus {
    outline: none;
}

.calculator input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    animate: 0.2s;
    box-shadow: 0px 0px 0px #000000;
    background: #E0E0E0;
    border-radius: 5px;
    border: 0px solid #000000;
}

.calculator input[type=range]::-webkit-slider-thumb {
    box-shadow: 0px 0px 0px #000000;
    border: 0px solid #000000;
    height: 16px;
    width: 26px;
    border-radius: 50px;
    background: #d0bb8a;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -6px;
}

.calculator input[type=range]:focus::-webkit-slider-runnable-track {
    background: #E0E0E0;
}

.calculator input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    animate: 0.2s;
    box-shadow: 0px 0px 0px #000000;
    background: #E0E0E0;
    border-radius: 5px;
    border: 0px solid #000000;
}

.calculator input[type=range]::-moz-range-thumb {
    box-shadow: 0px 0px 0px #000000;
    border: 0px solid #000000;
    height: 16px;
    width: 16px;
    border-radius: 50px;
    background: #d0bb8a;
    cursor: pointer;
}

.calculator input[type=range]::-ms-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    animate: 0.2s;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

.calculator input[type=range]::-ms-fill-lower {
    background: #E0E0E0;
    border: 0px solid #000000;
    border-radius: 10px;
    box-shadow: 0px 0px 0px #000000;
}

.calculator input[type=range]::-ms-fill-upper {
    background: #E0E0E0;
    border: 0px solid #000000;
    border-radius: 10px;
    box-shadow: 0px 0px 0px #000000;
}

.calculator input[type=range]::-ms-thumb {
    margin-top: 1px;
    box-shadow: 0px 0px 0px #000000;
    border: 0px solid #000000;
    height: 16px;
    width: 16px;
    border-radius: 50px;
    background: #d0bb8a;
    cursor: pointer;
}

.calculator input[type=range]:focus::-ms-fill-lower {
    background: #E0E0E0;
}

.calculator input[type=range]:focus::-ms-fill-upper {
    background: #E0E0E0;
}



.calculator-top-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    background: #313132;
    position: relative;
}

.calculator-top-bar p {
    font-weight: 600;
    font-size: 32px;
    line-height: 1.188em;
    letter-spacing: -0.02em;
    color: #F5F5F7;
}

.calculator-top-bar__close {
    background: none;
    cursor: pointer;
    border: none;
    position: absolute;
    top: 30px;
    right: 30px;
}

.calculator-statistics {
    max-width: 844px;
    margin: 0 auto;
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.calculator-statistics-item {
    display: flex;
    flex-direction: column;
    gap: 40px;
}


.calculator-statistics-item__title {
    line-height: 1.208em;
    letter-spacing: -0.02em;
    color: #4d4d52;
    font-family: "AvenirNextW1G-Regular";
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.calculator-statistics-item__body {
    width: 100%;
    border-top: 1px solid #d0bb8a;
    border-spacing: 0;
    border-collapse: collapse;
    color: #4d4d52;
    font-family: "AvenirNextW1G-Regular";
    font-weight: 600;
    font-size: 14px;

}

.calculator-statistics-item__body td {
    text-align: left !important;
    padding-right: 20px;
    padding: 22px 20px;
    border-bottom: 1px solid #d0bb8a;
    white-space: nowrap;
    font-size: 16px;
    color: #4d4d52;
}

.calculator-statistics-item__body td strong {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 200px;
    display: block;
    color: #4d4d52;
}



.payback-chart-container {
    height: 470px;
    width: 100%;
    max-width: 844px;
    padding: 50px 0;
    margin: 0 auto;
    margin-top: 50px;
}

.calculator-statistics-item__body-year {
    margin-left: 20px;
}



@media (max-width: 960px) {
    .calculator {
        padding: 45px 20px;
    }
    .fancybox-content {padding:20px 10px !important;}
}

@media (max-width: 840px) {
    .calculator-top {
        flex-direction: column;
    }
    .fancybox-content {padding:20px 10px !important;}
}