/* ============================================================
   CALLBACK — Секция «Свяжитесь с нами»
   ============================================================ */

.callback {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.callback--dark  { background: var(--primary); }
.callback--light { background: var(--primary-pale); }

/* ---- Круглое фото ---- */

.callback__photo {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* ---- Двухколоночная сетка ---- */

.callback__inner {
    display: grid;
    grid-template-columns: 5fr 4fr;
    gap: 48px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* ---- Левая колонка ---- */

.callback__label {
    display: block;
}
.callback--dark  .callback__label { color: var(--mint-dark); }
.callback--light .callback__label { color: var(--mint-dark); }

.callback__line {
    width: 48px;
    height: 2px;
    margin: 16px 0 20px;
}
.callback--dark  .callback__line { background: var(--mint); }
.callback--light .callback__line { background: var(--primary); }

.callback__title { line-height: 1.15; }
.callback--dark  .callback__title { color: var(--white); }
.callback--light .callback__title { color: var(--graphite-dark); }

.callback__desc {
    margin-top: 14px;
    line-height: 1.6;
}
.callback--dark  .callback__desc { color: var(--white); }
.callback--light .callback__desc { color: var(--graphite); }

.callback__left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* ---- Строки контактов ---- */

.callback__contacts {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
}

.callback__contact {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    text-decoration: none;
    transition: opacity 0.2s;
}


a.callback__contact:hover { opacity: 0.8; }

.callback__contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid var(--primary);
}
.callback--dark  .callback__contact-icon { background: var(--mint-light); color: var(--mint); }
.callback--light .callback__contact-icon { background: var(--mint-light); color: var(--primary); }

.callback__contact-data {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 2px;
}

.callback__contact-lbl { display: block; line-height: 1.2; }
.callback--dark  .callback__contact-lbl { color: var(--mint-light); }
.callback--light .callback__contact-lbl { color: var(--graphite-medium); }

.callback__contact-val { display: block; font-weight: 500; }
.callback--dark  .callback__contact-val { color: var(--white); }
.callback--light .callback__contact-val { color: var(--graphite-dark); }

/* ---- Карточка формы ---- */

.callback__card {
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 77px 53px;
    background: #E4F1EACC;
    border: 1px solid #058052;
    box-shadow: 0px 2px 2px 0px #69C7BD1A;

}

.callback__card-title { line-height: 1.2; }
.callback--dark  .callback__card-title { color: var(--primary); }
.callback--light .callback__card-title { color: var(--primary); }

/* ---- Поля формы ---- */

.callback__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.callback__fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.callback__input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: var(--white);
    color: var(--graphite-dark);
    border: 1px solid #69C7BD;
    border-radius: 2px;
    padding: 17px 20px;
    font-size: inherit;
    font-family: inherit;
    line-height: 1.4;
    transition: border-color 0.2s;
}

.callback__input:focus {
    border-color: var(--primary);
    outline: none;
}

.callback__input::placeholder { color: var(--text-muted); }

.callback__textarea {
    resize: vertical;
    min-height: 90px;
}

/* ---- Чекбокс конфиденциальности ---- */

.callback__privacy {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.callback__check-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.callback__check-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    border-radius: 2px;
    border: 1px solid var(--primary);
    background: var(--white);
    transition: background 0.2s, border-color 0.2s;
}

.callback__check-box::after {
    content: '';
    display: none;
    width: 9px;
    height: 17px;
    border: 2px solid var(--white);
    border-top: none;
    border-left: none;
    transform: rotate(43deg) translateY(-2px);
}

.callback__check-input:checked + .callback__check-box {
    background: var(--primary);
    border-color: var(--primary);
}

.callback__check-input:checked + .callback__check-box::after {
    display: block;
}

.callback__privacy-text { line-height: 1.4; }

.callback--dark  .callback__privacy-text a {  text-decoration: underline; }
.callback--light .callback__privacy-text a {  text-decoration: underline; }

/* ---- Кнопка ---- */

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

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

@media (max-width: 1080px) {
    .callback {
        padding: 64px 0;
    }
    .callback__photo {
        width: 50%;
        right: -6%;
    }
    .callback__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .callback {
        padding: 48px 0;
    }
    .callback__photo {
        display: none;
    }
    .callback__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .callback__card {
        padding: 24px;
    }
}

/* ============================================================
   MODAL CALLBACK
   ============================================================ */

.modal-callback {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s, visibility 0.25s;
}

.modal-callback::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--graphite-dark);
    opacity: 0.6;
}

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

.modal-callback__card {
    position: relative;
    z-index: 1;
    background: var(--primary-pale);
    border-radius: 16px;
    overflow: hidden;
    width: min(540px, 95vw);
    max-height: 90vh;
    overflow-y: auto;
    padding: 52px 48px 48px;
}

.modal-callback__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    opacity: 0.35;
    pointer-events: none;
}

.modal-callback__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--primary);
    border-radius: 8px;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background 0.2s, color 0.2s;
}

.modal-callback__close:hover {
    background: var(--primary);
    color: var(--white);
}

.modal-callback__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-callback__title {
    color: var(--primary);
    line-height: 1.15;
}

.modal-callback__line {
    width: 48px;
    height: 2px;
    background: var(--primary);
}

.modal-callback__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-callback__input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: var(--white);
    color: var(--graphite-dark);
    border: 1.5px solid var(--mint);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: inherit;
    font-family: inherit;
    line-height: 1.4;
    transition: border-color 0.2s;
}

.modal-callback__input:focus {
    border-color: var(--primary);
    outline: none;
}

.modal-callback__input::placeholder {
    color: var(--text-muted);
}

.modal-callback__textarea {
    resize: vertical;
    min-height: 90px;
}

.modal-callback__privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.modal-callback__privacy-text {
    line-height: 1.4;
    color: var(--graphite-medium);
}

.modal-callback__privacy-text a {
    color: var(--primary);
    text-decoration: underline;
}

.modal-callback__submit {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .modal-callback__card {
        padding: 40px 24px 32px;
    }
}
