/* Модалка обратного звонка (Figma 166:17819 десктоп / 166:17808 мобильный).
   Каркас .modal/.modal-container/.modal-overlay/.modal-content — в modal.css. */

.callback-modal .modal-content {
    background: var(--Surface-Popup, #FDFDFD);
    border-radius: 4px;
    padding-top: 52px;
}

.callback-modal .content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 27px;
    padding: 0 60px;
}

.callback-modal .title-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.callback-modal .title-container .subtitle {
    color: var(--Text-Secondary, #8B8B8B);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.callback-modal form {
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
}

.callback-modal form .input-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.callback-modal form .input-container input {
    height: 52px;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid var(--Gray-150, #E4E4E4);
    background: var(--Gray-50, #F4F4F4);
    color: var(--Text-Primary, #1E2433);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.callback-modal form .input-container input::placeholder {
    color: var(--Text-Secondary, #8B8B8B);
}

.callback-modal form .btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.callback-modal form .btn-group .btn {
    width: 100%;
}

.callback-modal form .btn-group .caption {
    color: var(--Text-Secondary, #8B8B8B);
    text-align: center;
}

.callback-modal form .btn-group .caption a {
    color: inherit;
    text-decoration: underline;
}

.callback-modal form .btn-group .caption a[disabled] {
    pointer-events: none;
    cursor: not-allowed;
}

/* Фото прижато к низу карточки; «зазор» над ним создаёт белый градиент,
   растворяющий верх фотографии в фоне карточки (как в Figma) */
.callback-modal .image {
    position: relative;
    width: 100%;
    aspect-ratio: 529 / 293;
    overflow: hidden;
}

.callback-modal .image img {
    position: absolute;
    top: -20.83%;
    left: 0;
    width: 100%;
    height: 151.73%;
}

.callback-modal .image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--Base-White, #FFF) 0%, rgba(255, 255, 255, 0) 43.27%);
}

.callback-modal .modal-content > button {
    position: absolute;
    top: 14px;
    right: 12px;
    width: 26px;
    height: 26px;
    padding: 0;
    background: transparent;
}

.callback-modal .modal-content > button img {
    display: block;
    width: 100%;
    height: 100%;
}

.callback-modal .modal-content > button:hover {
    opacity: 0.8;
}

@media (max-width: 989px) {
    .callback-modal .content {
        padding: 0 14px;
    }

    .callback-modal .title-container .subtitle {
        font-size: 14px;
        line-height: 18px;
    }

    /* В Figma мобильная кнопка сохраняет десктопные размеры —
       отменяем мобильное уменьшение .btn.btn-m из button.css */
    .callback-modal form .btn-group .btn.btn-m {
        padding: 16px 40px;
        font-size: 24px;
    }
}
