/* =========================================
   Block: Callback
   ========================================= */

.callback {
    position: relative;
    padding: 100px 0;
    background: var(--color-bg-light);
    overflow: hidden;
}

/* --- Background silhouettes --- */
.callback__bg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    pointer-events: none;
    z-index: 0;
}

.callback__silhouette {
    position: absolute;
    bottom: 0;
    height: 90%;
    width: auto;
    opacity: 0.06;
    filter: grayscale(1);
}

.callback__silhouette--left  { left: -2%; }
.callback__silhouette--right { right: -2%; }

/* --- Layout --- */
.callback__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 72px;
    align-items: center;
}

/* --- Intro --- */
.callback__intro {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.callback__heading {
    font-size: clamp(28px, 3.5vw, 46px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--color-text);
}

.callback__subheading {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.callback__features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.callback__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.callback__features li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
}

/* --- Form card --- */
.callback__form {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

.callback__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* --- Inputs --- */
.callback__field input,
.callback__field textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--color-bg-light);
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    resize: none;
}

.callback__field input::placeholder,
.callback__field textarea::placeholder {
    color: #adb5bd;
}

.callback__field input:focus,
.callback__field textarea:focus {
    border-color: var(--color-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(84, 187, 144, 0.12);
}

.callback__field input.is-error,
.callback__field textarea.is-error {
    border-color: #e74c3c;
}

/* --- Footer --- */
.callback__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 4px;
}

.callback__privacy {
    font-size: 12px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

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

.btn--callback {
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- Success --- */
.callback__success {
    padding: 14px 18px;
    background: rgba(84, 187, 144, 0.1);
    border: 1px solid rgba(84, 187, 144, 0.25);
    border-radius: 10px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

/* --- Tablet --- */
@media (max-width: 900px) {
    .callback__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .callback__silhouette { opacity: 0.04; }
}

/* --- Mobile --- */
@media (max-width: 600px) {
    .callback { padding: 48px 0; }

    .callback__heading { font-size: clamp(22px, 7vw, 32px); }

    /* Features показываем на мобиле */
    .callback__features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 4px;
    }

    .callback__features li {
        font-size: 12px;
        background: rgba(84,187,144,0.1);
        border: 1px solid rgba(84,187,144,0.2);
        border-radius: 100px;
        padding: 4px 10px;
        gap: 6px;
    }

    .callback__row { grid-template-columns: 1fr; }

    .callback__form { padding: 20px 16px; gap: 10px; }

    .callback__field input,
    .callback__field textarea {
        padding: 14px 16px;
        font-size: 16px;
    }

    .callback__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-top: 8px;
    }

    .callback__privacy { font-size: 11px; }

    .btn--callback {
        width: 100%;
        justify-content: center;
        min-height: 52px;
        font-size: 16px;
    }
}
