/* ============================================
   CALLBACK MODAL — "Давайте мы Вам перезвоним"
   ============================================ */

.callback-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.callback-modal.active {
    opacity: 1;
    visibility: visible;
}

.callback-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.callback-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 672px;
    background: var(--color-white);
    padding: 60px 40px 65px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.callback-modal.active .callback-modal__dialog {
    transform: translateY(0);
}

.callback-modal__close {
    position: absolute;
    top: -45px;
    right: -45px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.callback-modal__title {
    font-family: var(--font-heading);
    font-size: 42px;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 25px;
}

/* --- Form --- */

.callback-form {
    display: grid;
    gap: 15px;
}

.callback-form__label {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 28px;
    color: var(--color-text);
    margin: -5px 0 0;
}

.callback-form__phone,
.callback-form__time {
    width: 100%;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 0;
    padding: 13px 20px;
    font-size: 14px;
    line-height: 16.1px;
    font-family: var(--font-body);
    color: var(--color-text);
    background: #fff;
    appearance: none;
}

.callback-form__phone::placeholder,
.callback-form__time::placeholder {
    color: rgba(32, 32, 32, 0.5);
}

.callback-form__options {
    display: flex;
    align-items: center;
    gap: 30px;
}

.callback-form__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.3;
    color: var(--color-text);
    cursor: pointer;
}

.callback-form__checkbox input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: #202020;
}

.callback-form__time[hidden] {
    display: none;
}

.callback-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 16.34px;
    color: rgba(32, 32, 32, 0.6);
    margin-top: 5px;
}

.callback-form__consent input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    accent-color: #202020;
}

.callback-form__consent a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.callback-form__submit {
    justify-content: center;
    font-size: 16px;
    line-height: 20.8px;
    padding: 9px 22px;
    margin-top: 4px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 576px) {
    .callback-modal {
        padding: 15px;
        align-items: center;
        width: 100vw;
    }

    .callback-modal__dialog {
        max-width: 100%;
        padding: 25px 15px 25px;
    }

    .callback-modal__close {
        top: -40px;
        right: 0;
        width: auto;
    }

    .callback-modal__title {
        font-size: 28px;
        margin-bottom: 10px;
        width: 181px;
    }

    .callback-form {
        gap: 12px;
    }

    .callback-form__label {
        font-size: 14px;
        margin-top: 7px;
        line-height: 1.2;
    }

    .callback-form__phone,
    .callback-form__time {
        height: 40px;
        padding: 10px 14px;
        font-size: 13px;
    }

    .callback-form__options {
        gap: 20px;
    }

    .callback-form__checkbox {
        font-size: 13px;
    }

    .callback-form__consent {
        font-size: 11px;
        line-height: 14.5px;
    }

    .callback-form__submit {
        width: 100%;
        justify-content: center;
    }
}