/* ===== ОБУЧЕНИЕ БИЛЬЯРДУ: POPUP CALLBACK ===== */

.ob-callback {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    color: #f7f3ec;
}

.ob-callback.is-active {
    display: block;
}

.ob-callback__overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 5, .78);
    backdrop-filter: blur(7px);
}

.ob-callback__dialog {
    position: relative;
    z-index: 2;
    width: min(980px, calc(100% - 34px));
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    overflow: auto;
    border: 1px solid rgba(216, 177, 115, .26);
    background:
        radial-gradient(circle at 18% 20%, rgba(216, 177, 115, .12), transparent 30%),
        linear-gradient(180deg, #0c0e0d 0%, #080a09 100%);
    box-shadow: 0 34px 100px rgba(0,0,0,.55);
}

.ob-callback__grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr);
    min-height: 620px;
}

.ob-callback__side {
    position: relative;
    padding: 54px 46px;
    border-right: 1px solid rgba(216, 177, 115, .18);
    background:
        linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
        rgba(9, 11, 10, .72);
}

.ob-callback__side:before {
    content: "";
    position: absolute;
    left: 46px;
    right: 46px;
    top: 42px;
    height: 1px;
    background: linear-gradient(90deg, rgba(216, 177, 115, .75), transparent);
}

.ob-callback__kicker {
    margin-top: 28px;
    margin-bottom: 20px;
    color: #d8b173;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.ob-callback__title {
    color: #f7f3ec;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 54px;
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.035em;
}

.ob-callback__text {
    margin-top: 24px;
    color: rgba(247, 243, 236, .74);
    font-size: 17px;
    line-height: 1.72;
}

.ob-callback__points {
    display: grid;
    gap: 12px;
    margin-top: 34px;
}

.ob-callback__point {
    position: relative;
    padding-left: 34px;
    color: rgba(247, 243, 236, .84);
    font-size: 15px;
    line-height: 1.45;
}

.ob-callback__point:before {
    content: "";
    position: absolute;
    left: 0;
    top: .42em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d8b173;
    box-shadow: 0 0 0 6px rgba(216, 177, 115, .10);
}

.ob-callback__point:after {
    content: "";
    position: absolute;
    left: 6px;
    top: calc(.42em + 4px);
    width: 5px;
    height: 8px;
    border-right: 2px solid #171512;
    border-bottom: 2px solid #171512;
    transform: rotate(45deg);
}

.ob-callback__form-wrap {
    padding: 54px 46px 46px;
    background: #f7f3ec;
    color: #171512;
}

.ob-callback__form {
    display: grid;
    gap: 18px;
}

.ob-callback__field {
    display: block;
    margin: 0;
}

.ob-callback__field span {
    display: block;
    margin-bottom: 8px;
    color: rgba(23,21,18,.72);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ob-callback__field input,
.ob-callback__field textarea {
    display: block;
    width: 100%;
    border: 1px solid rgba(23,21,18,.16);
    background: #fff;
    color: #171512;
    font-size: 16px;
    line-height: 1.4;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ob-callback__field input {
    min-height: 54px;
    padding: 0 18px;
}

.ob-callback__field textarea {
    resize: vertical;
    min-height: 118px;
    padding: 16px 18px;
}

.ob-callback__field input:focus,
.ob-callback__field textarea:focus {
    border-color: rgba(167, 123, 56, .62);
    box-shadow: 0 0 0 4px rgba(216, 177, 115, .16);
}

.ob-callback__agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 2px 0 0;
    color: rgba(23,21,18,.66);
    font-size: 13px;
    line-height: 1.45;
}

.ob-callback__agree input {
    margin-top: 3px;
}

.ob-callback__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    margin-top: 6px;
    border: none;
    background: #d8b173;
    color: #14110d;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(216, 177, 115, .25);
    transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}

.ob-callback__submit:hover {
    transform: translateY(-2px);
    background: #efcf92;
    box-shadow: 0 20px 42px rgba(216, 177, 115, .34);
}

.ob-callback__small {
    color: rgba(23,21,18,.56);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.ob-callback__success,
.ob-callback__error {
    margin-bottom: 18px;
    padding: 16px 18px;
    font-size: 15px;
    line-height: 1.5;
}

.ob-callback__success {
    border: 1px solid rgba(70, 132, 86, .35);
    background: rgba(70, 132, 86, .10);
    color: #244b2e;
}

.ob-callback__error {
    border: 1px solid rgba(180, 46, 46, .30);
    background: rgba(180, 46, 46, .08);
    color: #8a2020;
}

.ob-callback__close {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(216, 177, 115, .32);
    background: rgba(9,11,10,.72);
    cursor: pointer;
}

.ob-callback__close span {
    position: absolute;
    left: 11px;
    top: 20px;
    width: 20px;
    height: 2px;
    background: #d8b173;
}

.ob-callback__close span:first-child {
    transform: rotate(45deg);
}

.ob-callback__close span:last-child {
    transform: rotate(-45deg);
}

body.ob-callback-lock {
    overflow: hidden;
}

/* ===== АДАПТИВ ===== */

@media (max-width: 991px) {
    .ob-callback__grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .ob-callback__side {
        padding: 46px 36px 34px;
        border-right: none;
        border-bottom: 1px solid rgba(216, 177, 115, .18);
    }

    .ob-callback__form-wrap {
        padding: 38px 36px;
    }

    .ob-callback__title {
        font-size: 44px;
    }
}

@media (max-width: 767px) {
    .ob-callback__dialog {
        width: min(100% - 20px, 980px);
        max-height: calc(100vh - 20px);
        margin: 10px auto;
    }

    .ob-callback__side {
        padding: 38px 22px 28px;
    }

    .ob-callback__side:before {
        left: 22px;
        right: 22px;
        top: 30px;
    }

    .ob-callback__kicker {
        margin-top: 20px;
        font-size: 11px;
        letter-spacing: .18em;
    }

    .ob-callback__title {
        font-size: 35px;
        line-height: 1;
    }

    .ob-callback__text {
        font-size: 15px;
        line-height: 1.62;
    }

    .ob-callback__points {
        margin-top: 24px;
    }

    .ob-callback__form-wrap {
        padding: 28px 22px 24px;
    }

    .ob-callback__field input {
        min-height: 52px;
    }

    .ob-callback__submit {
        min-height: 54px;
    }

    .ob-callback__close {
        right: 10px;
        top: 10px;
    }
}