.modal-callback {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.modal-callback__title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 0;
    color: #333;
}

.modal-callback__subtitle {
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 1rem;
    padding: 0;
    color: #666;
}

.modal-callback form {
    display: flex;
    flex-direction: column;
}

.modal-callback form input {
    height: 45px;
    margin-bottom: 15px;
    outline: none;
    padding: 0 15px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 1rem;
    color: #333;
}

.modal-callback__checkbox {
    flex-wrap: wrap;
    font-size: 1rem;
    color: #333;
    line-height: 1.4; /* Увеличен line-height для лучшей читаемости */
    width: 650px;
    padding: 20px 0px 10px 0px;
    word-break: break-word;
    white-space: normal;
}

.modal-callback__checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.modal-callback__checkbox a {
    color: #333;
    text-decoration: underline;
    letter-spacing: normal;
    word-spacing: normal;
    margin-right: 5px;
}

/* Адаптив для планшетов (max-width: 1023px) */
@media (max-width: 1023px) {
    .modal-callback__checkbox {
        width: 100%; 
        font-size: 0.9rem; 
        padding: 15px 0px 10px 0px;
    }

    .modal-callback__checkbox input[type="checkbox"] {
        width: 14px; 
        height: 14px;
        margin-right: 6px; 
    }

    .modal-callback__checkbox a {
        margin-right: 4px; 
    }
}

/* Адаптив для мобильных телефонов (max-width: 767px) */
@media (max-width: 767px) {
    .modal-callback__checkbox {
        width: 100%; 
        font-size: 0.85rem; 
        line-height: 1.3; 
        padding: 10px 0px 8px 0px; 
    }

    .modal-callback__checkbox input[type="checkbox"] {
        width: 12px; 
        height: 12px;
        margin-right: 5px; 
    }

    .modal-callback__checkbox a {
        margin-right: 3px; 
    }
}



.modal-callback__checkbox_prob {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 1rem;
    color: #333;
    line-height: 1.4;
    width: 100%;
    padding: 20px 0px 10px 0px;
    word-break: break-word;
    white-space: normal;
}

.modal-callback__checkbox_prob input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.modal-callback__checkbox_prob a {
    color: #333;
    text-decoration: underline;
    letter-spacing: normal; 
    word-spacing: normal; 
    margin-right: 5px;
}



.modal-callback form input[type="submit"] {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45px;
    padding: 0 24px;
    color: #fff;
    text-decoration: none;
    background: #F07F1C;
    border-radius: 12px;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    transition: 0.3s;
    border: 0;
    cursor: pointer;
}

.modal-callback form input[type="submit"]:hover {
    background: #f8933c;
}

.modal-callback form input[type="submit"]:disabled {
    background: #ccc;
    cursor: not-allowed;
}

body.modal-open {
    height: 100vh;
    overflow-y: hidden;
    padding-right: 15px;
}

body.modal-open .modal {
    opacity: 1;
    visibility: visible;
    z-index: 999999;
}

body.modal-open-price {
    height: 100vh;
    overflow-y: hidden;
    padding-right: 15px;
}

body.modal-open-price .modal-price {
    opacity: 1;
    visibility: visible;
    z-index: 999999;
}

@media(max-width: 1023px) {

    body.modal-open,
    body.modal-open-price {
        padding-right: 0;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0px 7px 27px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    z-index: -9999;
}

.modal-inner {
    display: table;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 50px;
}

.modal-content {
    display: table-cell;
    vertical-align: middle;
    margin-left: auto;
    margin-right: auto;
    width: auto;
}

.modal-block {
    display: flex;
    align-items: center;
    max-width: 1018px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.modal-slider-prev {
    flex: none;
    margin-right: 20px;
    cursor: pointer;
}

.modal-slider-next {
    flex: none;
    margin-left: 20px;
    cursor: pointer;
}

.modal-slider {
    width: 100% !important;
    position: relative;
    background: #fff;
    border-radius: 40px;
}

.modal-slider__slide {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    height: auto !important;
    padding: 40px;
}

.modal-slider__header {
    display: flex;
    width: 100%;
}

.modal-slider__left {
    max-width: 280px;
    width: 100%;
    margin-right: 24px;
    margin-right: 40px;
}

.modal-slider__photo {
    padding-top: 129%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.modal-content {
    color: #646464;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

.modal-content span {
    color: #050505;
}

.modal-slider__name {
    margin-bottom: 20px;
    color: #050505;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 700;
    line-height: 140%;
}

.modal-slider__age {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #F4F4F4;
    color: #646464;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

.modal-slider__age span {
    color: #050505;
}

.modal-slider__edu {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #F4F4F4;
    color: #646464;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

.modal-slider__edu span {
    color: #050505;
}

.modal-slider__edu p {
    margin: 0;
    margin-bottom: 8px;
}

.modal-slider__exp {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #F4F4F4;
    color: #646464;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

.modal-slider__content {
    margin-top: 40px;
}

.modal-slider__facts {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #F4F4F4;
    color: #646464;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

.modal-slider__facts ul {
    margin-top: 20px;
    padding-left: 20px;
}

.modal-slider__quote {
    padding: 16px 24px;
    border-radius: 16px;
    background: #F4F4F4;
    color: #050505;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

.modal-close {
    position: absolute;
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 24px;
    right: 24px;
    cursor: pointer;
    z-index: 2;
}

@media(max-width: 1023px) {
    .modal-block {
        max-width: 730px;
    }

    .modal-slider {
        border-radius: 20px;
    }

    .modal-slider__slide {
        padding: 30px;
    }

    .modal-slider__left {
        margin-right: 30px;
    }

    .modal-slider__age {
        padding-bottom: 10px;
        margin-bottom: 10px;
        font-size: 0.85rem;
    }

    .modal-slider__edu {
        padding-bottom: 10px;
        margin-bottom: 10px;
        font-size: 0.85rem;
    }

    .modal-slider__exp {
        padding-bottom: 10px;
        margin-bottom: 10px;
        font-size: 0.85rem;
    }

    .modal-slider__content {
        margin-top: 20px;
    }

    .modal-slider__facts {
        padding-bottom: 20px;
        margin-bottom: 20px;
        font-size: 0.85rem;
    }

    .modal-slider__quote {
        font-size: 0.92rem;
    }
}

@media(max-width: 767px) {
    .modal-inner {
        position: relative;
        padding-bottom: 100px;
    }

    .modal-slider-prev {
        position: absolute;
        bottom: 50px;
        right: 40px;
    }

    .modal-slider-next {
        position: absolute;
        bottom: 50px;
        right: 15px;
    }

    .modal-block {
        max-width: 370px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .modal-slider-prev {
        width: 25px;
        height: 25px;
        border-radius: 5px;
        margin-right: 5px;
    }

    .modal-slider-next {
        width: 25px;
        height: 25px;
        border-radius: 5px;
        margin-left: 5px;
    }

    .modal-slider__header {
        flex-direction: column;
    }

    .modal-slider__slide {
        padding: 20px;
        padding-bottom: 30px;
    }

    .modal-slider__left {
        max-width: 240px;
        margin-right: 0;
        margin-left: auto;
        margin-right: auto;
    }

    .modal-slider__photo {
        margin-bottom: 25px;
    }

    .modal-slider__quote {
        font-size: 0.85rem;
    }

    .modal-close {
        right: 0px;
        top: 0px;
    }
}

.modal-price {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0px 7px 27px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    z-index: -9999;
}

.modal-price-inner {
    display: table;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 50px;
}

.modal-price-content {
    display: table-cell;
    vertical-align: middle;
    margin-left: auto;
    margin-right: auto;
    width: auto;
}

.modal-price-block {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 712px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.modal-price-block__photo img {
    max-width: 100%;
    height: auto;
}

.modal-price-close {
    position: absolute;
    right: 30px;
    top: 15px;
    cursor: pointer;
}

@media (max-width: 1023px) {
    .modal-price-close {
        right: 20px;
        top: 5px;
    }
}