.consultation-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000000B2;
    z-index: 1001;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}
.consultation-modal-overlay.active { opacity: 1; visibility: visible; }

/* Фиксируем хедер при открытой модалке, чтобы он не сдвигался */
body.modal-open .site-header-new {
    position: fixed !important;
    top: 0 !important;
    left: 100px !important;
    right: 100px !important;
    z-index: 100 !important;
    transition: none !important;
}

/* При закрытой модалке возвращаем исходное значение */
body:not(.modal-open) .site-header-new {
    top: -30px;
    transition: none !important;
}

.consultation-modal-container {
    position: fixed;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 1000px; max-height: 90vh; overflow-y: auto;
    background: #fff; border-radius: 15px; padding: 15px;
}

.consultation-modal-close {
    position: fixed;
    top: 100px; right: 100px;
    background: none; border: none; padding: 0; cursor: pointer;
    width: 21px; height: 21px; display: flex; align-items: center; justify-content: center; z-index: 1002;
}

.consultation-modal-content {
    display: flex; gap: 20px; align-items: stretch;
}
.consultation-modal-left { flex: 1; padding: 25px 0 25px 25px; display: flex; flex-direction: column; order: 1; }
.consultation-modal-right { flex: 1; position: relative; min-height: 0; order: 2; }
.consultation-modal-img { position: absolute; top:0; left:0; width:100%; height:100%; object-fit: cover; border-radius: 10px; }

/* Title and description */
.consultation-modal-title {
    font-family: 'Vetrino', serif; font-weight: 400; font-style: normal;
    font-size: clamp(22px, calc(22px + (36 - 22) * ((100vw - 575px) / (1920 - 575))), 36px);
    leading-trim: CAP_HEIGHT; line-height: 95%; letter-spacing: -3%; text-transform: uppercase; color:#353331; margin: 0 0 15px 0;
}
.consultation-modal-description {
    font-family: 'Commissioner', sans-serif; font-weight: 400; font-style: normal;
    font-size: clamp(14px, calc(14px + (18 - 14) * ((100vw - 575px) / (1920 - 575))), 18px);
    leading-trim: CAP_HEIGHT; line-height: 90%; letter-spacing: -4%; color:#353331; margin: 0 0 20px 0;
}

/* Form */
.consultation-modal-form-row { display: flex; flex-direction: column; gap: 10px; background: transparent; backdrop-filter: blur(10px); padding: 0; border-radius: 10px; }
.consultation-modal-input { width: 100%; background: #fff; border: 1px solid #35333133; border-radius: 6px; padding: 20px; font-family:'Commissioner', sans-serif; font-weight: 400; font-size: 16px; leading-trim: CAP_HEIGHT; line-height: 100%; letter-spacing: -6%; box-sizing: border-box; color:#353331; }
.consultation-modal-input::placeholder { color:#353331B3; font-family: 'Commissioner', sans-serif; font-weight: 400; font-style: normal; font-size: 16px; line-height: 100%; letter-spacing: -6%; leading-trim: CAP_HEIGHT; }
.consultation-modal-consent { margin-top: 10px; }
.consultation-modal-checkbox { width: 20px; height: 20px; accent-color: transparent; background-color: transparent; border: 1px solid #353331; border-radius: 3px; appearance: none; -webkit-appearance: none; -moz-appearance: none; position: relative; cursor: pointer; flex-shrink: 0; vertical-align: middle; margin-right: 8px; }
.consultation-modal-checkbox:checked { background-color: #353331; border-color: #353331; }
.consultation-modal-checkbox:checked::after { content: '✓'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #FFFFFF; font-size: 14px; font-weight: bold; }
.consultation-modal-consent-label { font-family: 'Commissioner', sans-serif; font-weight: 400; font-size: clamp(14px, calc(14px + (16 - 14) * ((100vw - 991px) / (1920 - 991))), 16px); leading-trim: CAP_HEIGHT; line-height: 120%; letter-spacing: -6%; color: #353331; cursor: pointer; }
.consultation-modal-consent-label .consultation-modal-underline { text-decoration: underline; text-decoration-style: solid; text-decoration-offset: 0%; text-decoration-thickness: 6%; text-decoration-skip-ink: auto; color: #353331; transition: opacity 0.3s ease; }
.consultation-modal-consent-label .consultation-modal-underline:hover { opacity: 0.7; }

.consultation-modal-submit { display: inline-flex; align-items: center; justify-content: space-between; text-decoration: none; font-family: 'Commissioner', sans-serif; font-weight: 500; font-size: clamp(14px, calc(14px + (18 - 14) * ((100vw - 991px) / (1920 - 991))), 18px); line-height: 100%; letter-spacing: -0.04em; text-align: left; color: #FFFFFF; padding: 5px 5px 5px 15px; background-color: #353331; border-radius: 7px; white-space: nowrap; width: 100%; border: none; cursor: pointer; margin-top: 20px; transition: background-color 0.3s ease; }
.consultation-modal-submit:hover { background-color: #2a2724; }
.consultation-modal-submit .consultation-modal-submit-icon { display: inline-flex; justify-content: center; align-items: center; width: clamp(35px, calc(35px + (45 - 35) * ((100vw - 991px) / (1920 - 991))), 45px); height: clamp(35px, calc(35px + (45 - 35) * ((100vw - 991px) / (1920 - 991))), 45px); background-color: #FFFFFF; border-radius: 5px; }
.consultation-modal-submit span:first-of-type { transition: opacity 0.3s ease; }
.consultation-modal-submit:hover span:first-of-type { opacity: 0.8; }
.consultation-modal-submit .consultation-modal-submit-icon img { transition: transform 0.3s ease; }
.consultation-modal-submit:hover .consultation-modal-submit-icon img { transform: rotate(45deg); }

/* Tablets */
@media (max-width: 991px) {
    .consultation-modal-container { width: 75%; padding: 15px; border-radius: 15px; }
    .consultation-modal-content { flex-direction: column; gap: 20px; }
    .consultation-modal-left { padding: 0; order: 2; }
    .consultation-modal-right { order: 1; max-height: 550px; overflow: hidden; }
    .consultation-modal-form-row { padding: 0; background: transparent; }
    .consultation-modal-input::placeholder { font-family: 'Commissioner', sans-serif; font-weight: 400; font-style: normal; font-size: 16px; line-height: 100%; letter-spacing: -6%; leading-trim: CAP_HEIGHT; }
    .consultation-modal-checkbox { width: 15px; height: 15px; min-width: 15px; min-height: 15px; }
    .consultation-modal-consent-label { font-family: 'Commissioner', sans-serif; font-weight: 400; font-style: normal; font-size: 16px; line-height: 120%; letter-spacing: -6%; leading-trim: CAP_HEIGHT; }
    .consultation-modal-submit { font-family: 'Commissioner', sans-serif; font-weight: 500; font-style: normal; font-size: 18px; line-height: 100%; letter-spacing: -4%; leading-trim: CAP_HEIGHT; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 5px 5px 5px 15px; box-sizing: border-box; }
    .consultation-modal-close { top: 30px; right: 30px; width: 18px; height: 18px; }
    .consultation-modal-close img { width: 18px; height: 18px; }
    .consultation-modal-right { position: static; }
    .consultation-modal-img { position: static !important; max-height: 550px; object-fit: cover; width: 100%; height: auto; }
}

/* Mobile */
@media (max-width: 575px) {
    .consultation-modal-container { width: 75%; padding: 10px; border-radius: 10px; }
    .consultation-modal-content { flex-direction: column; gap: 20px; }
    .consultation-modal-right { max-height: 300px; overflow: hidden; position: static; }
    .consultation-modal-form-row { padding: 0; background: transparent; }
    .consultation-modal-input { padding: 15px 14px; }
    .consultation-modal-input::placeholder { font-family: 'Commissioner', sans-serif; font-weight: 400; font-style: Regular; font-size: 16px; leading-trim: CAP_HEIGHT; line-height: 100%; letter-spacing: -6%; }
    .consultation-modal-consent-label { font-family: 'Commissioner', sans-serif; font-weight: 400; font-style: Regular; font-size: 14px; leading-trim: CAP_HEIGHT; line-height: 120%; letter-spacing: -6%; }
    .consultation-modal-close { top: 30px; right: 30px; width: 18px; height: 18px; }
    .consultation-modal-close img { width: 18px; height: 18px; }
    .consultation-modal-img { position: static !important; width: 100%; height: auto; max-height: 300px; object-fit: cover; }
    body:not(.modal-open) .site-header-new {
        top: 0;
        transition: none !important;
    }
}
