@font-face {
    font-family: 'Nunito';
    src: url('../fonts/nunito/NunitoRegular.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('../fonts/nunito/NunitoExtraLight.woff2') format('woff2');
    font-style: normal;
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    src: url('../fonts/nunito/NunitoMedium.woff2') format('woff2');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto/RobotoRegular.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto/RobotoMedium.woff2') format('woff2');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

body {
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    font-feature-settings: "pnum" on, "lnum" on;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-variant-numeric: proportional-nums;
    scroll-behavior: smooth;
}


/* стили для калькулятора */
.calc-card {    
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
    align-items: stretch;
    background: #F0F5F4;
    border-radius: 24px; 
    padding: 32px 24px; 
    width: 100%;
    text-align: center; 
    font-family: 'Roboto', 'Nunito', 'Arial', sans-serif;
    font-weight: 400;
    margin: 32px 0;
}

.calc-card__label { 
    display: block; 
    font-size: 16px; 
    line-height: 24px;
    color: #333; 
    padding-top: 8px;
    margin-bottom: 18px; 
}

.calc-card .range-dots {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    margin-inline: -4px;
}

.calc-card .range-dots span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 8px;
    margin: 8px;
    background-color: #DAE8E5;
}

.calc-card .range-dots span.active {
    background-color: #009688;
}

.calc-card input[type=range] { 
    width: 100%; 
    cursor: pointer; 
    accent-color: #00a099;
}

.calc-card .price-value { 
    color: #00a099; 
    font-weight: bold; 
    font-size: 18px; 
    margin-top: 5px; 
}

.calc-card .options-grid {
    display: flex; 
    gap: 10px; 
    justify-content: center; 
    background: #f8fbfb; 
    padding: 15px; 
    border-radius: 10px; 
}

.calc-card .btn-group__wrap { 
    display: flex; 
    gap: 12px;
}

.calc-card .btn-group { 
    flex: 1; 
    padding: 24px;
    border-radius: 12px;
    background-color: #fff;
}

.calc-card .btn-group .calc-card__label { 
    padding-top: 0;
    margin-bottom: 16px;
}

.calc-card .btn-row { 
    display: flex; 
    gap: 8px; 
    justify-content: center; 
}

.calc-card .btn-row .button { 
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    border: 1px solid #F0F5F4; 
    background: #F0F5F4; 
    padding: 10px 16px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 16px; 
    line-height: 24px;
    font-weight: 400;
    height: 48px;
    transition: 0.2s;
}

.calc-card .btn-row .button:hover {
    border-color: #00a099; 
}

.calc-card .button.active { 
    border-width: 2px;
    border-color: #00a099; 
    background: #fff; 
    color: #00a099; 
}

.calc-card .button.active span {
    color: #333;
}

.calc-card .result-box { 
    padding: 24px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F0F5F4 100%);
    border-radius: 12px; 
}

.calc-card .result-value { 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: 'Roboto', 'Nunito', 'Arial', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    color: #177F70;
}

.calc-card .result-value span {
    font-family: 'Nunito', 'Roboto', 'Arial', sans-serif;
    font-weight: 600;
    font-size: 44px;
    line-height: 51px;
    color: #333333;
}

.calc-card .result-value + .calc-card__label { 
    padding-top: 0;
    margin-top: -4px;
}

.calculator__salary .calc-card__btn {
    display: block;
    width: 100%;
    text-decoration: none !important;
    font-family: 'Nunito', 'Roboto', 'Arial', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 26px;
    text-transform: uppercase;
    color: #FFFFFF;
    padding: 17px;
    background: radial-gradient(53% 112.54% at 47% 13.75%, #E32855 61%, #CF0D3C 100%);
    border-radius: 12px;
    border: none;
    border-bottom: 4px solid #971F3C;
    cursor: pointer; 
    margin-top: 32px; 
    transition: all .2s;
}

.calculator__salary .calc-card__btn:hover {
    color: #FFFFFF;
    background: radial-gradient(0% 112.54% at 47% 13.75%, #E32855 61%, #CF0D3C 100%);
}

.calculator__salary .calc-card__btn:focus {
    color: #FFFFFF;
}

.calculator__salary .calc-card__btn:active {
    margin-top: 35px;
    border-bottom-width: 1px;
}

.calc-card__slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
}

.slider-track-base {
    position: absolute;
    width: 100%;
    height: 8px;
    background: #fff;
    border-radius: 8px;
    z-index: 1;
}

.progress-bar {
    position: absolute;
    left: 0;
    height: 16px;
    border-radius: 16px;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
    background: repeating-linear-gradient(
        45deg,
        #009688,
        #009688 10px,
        #26A498 10px,
        #26A498 20px
    );
    background-size: 28px 28px;
    animation: move-stripes 0.8s linear infinite;
}

@keyframes move-stripes {
    from { background-position: 0 0; }
    to { background-position: 28px 0; }
}


.slider-container input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    position: relative;
    z-index: 5;
    outline: none;
    margin: 0;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 44px;
    width: 44px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 8px solid #009688;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.calc-card .dots-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    /* Отступ равен половине ширины ползунка для центровки */
    padding: 0 22px; 
    margin-top: 24px;
    box-sizing: border-box;
}

.calc-card .dot {
    width: 8px;
    height: 8px;
    background-color: #DAE8E5;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.calc-card .dot.active {
    background-color: #009688;
}

.calc-card .value-wrapper {
    position: relative;
    width: 100%;
    height: 40px;
    margin-top: 12px;
}

.calc-card .value-bubble {
    position: absolute;
    transform: translateX(-50%);
    font-weight: 500;
    font-size: 24px;
    line-height: 32px;
    color: #009688;
    pointer-events: none;
    transition: left 0.1s ease-out;
    white-space: nowrap;
}

@media screen and (min-width: 1162px) and (max-width: 1272px) {
    .calc-card .btn-row .button {
        padding: 10px;
    }
}
@media screen and (min-width: 992px) and (max-width: 1162px) {
    .calc-card .btn-group__wrap {
        flex-direction: column;
    }
}

@media screen and (max-width: 992px) {
    .calc-card {
        padding: 12px;
        margin: 24px 0 30px;
    }

    .calc-card .btn-group {
        padding: 12px;
    }

    .calc-card .result-box {
        padding: 12px;
    }

    .calc-card .btn-row .button {
        padding: 10px 13px;
    }
}

@media screen and (max-width: 764px) {
    .btn-group__wrap {
        flex-direction: column;
    }

    .calc-card .dots-container {
        display: none;
    }

    .calc-card .value-wrapper {
        margin-top: 6px;
        height: auto;
        margin-bottom: 16px;
    }

    .calc-card .value-bubble {
        position: static;
        transform: none;
    }
}

@media screen and (max-width: 368px) {
    .calc-card .btn-row .button {
        padding: 10px;
    }
}

@media screen and (max-width: 352px) {
    .calc-card .btn-row {
        flex-direction: column;
    }
}