/* ===== ОБУЧЕНИЕ БИЛЬЯРДУ: ФОРМАТЫ ЗАНЯТИЙ ===== */
/* Светлый, но контрастный премиальный блок */

.ob-formats {
    position: relative;
    overflow: hidden;
    padding: 128px 0 122px;
    background:
        radial-gradient(circle at 12% 18%, rgba(216, 177, 115, .20), transparent 30%),
        radial-gradient(circle at 88% 72%, rgba(133, 108, 73, .16), transparent 34%),
        linear-gradient(180deg, #e9e1d5 0%, #ded5c7 52%, #e8dfd3 100%);
    color: #171512;
}

.ob-formats:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(23,21,18,.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(23,21,18,.03) 1px, transparent 1px);
    background-size: 220px 220px;
    opacity: .26;
    pointer-events: none;
}

.ob-formats:after {
    content: "";
    position: absolute;
    right: -180px;
    top: -180px;
    width: 540px;
    height: 540px;
    border: 1px solid rgba(167, 123, 56, .16);
    border-radius: 50%;
    box-shadow:
        0 0 0 90px rgba(167, 123, 56, .04),
        0 0 0 180px rgba(167, 123, 56, .026);
    pointer-events: none;
}

.ob-formats__inner {
    position: relative;
    z-index: 2;
    width: min(1040px, calc(100% - 40px));
    margin: 0 auto;
}

/* Заголовок чуть ниже и собраннее */
.ob-formats__head {
    max-width: 900px;
    margin-bottom: 56px;
    padding-top: 8px;
}

.ob-formats__kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    color: #8b6935;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .28em;
    text-transform: uppercase;
}

.ob-formats__title {
    max-width: 860px;
    margin: 0;
    color: #171512;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(44px, 5.2vw, 74px);
    font-weight: 500;
    line-height: .96;
    letter-spacing: -.035em;
    text-transform: none;
}

/* ===== Таблица ===== */

.ob-formats__table {
    position: relative;
    border: 1px solid rgba(126, 91, 43, .26);
    background: #fbf8f3;
    box-shadow:
        0 34px 90px rgba(23, 21, 18, .16),
        0 10px 26px rgba(23, 21, 18, .07);
}

.ob-formats__table:before {
    content: "";
    position: absolute;
    left: 30px;
    right: 30px;
    top: 28px;
    height: 1px;
    background: linear-gradient(90deg, rgba(126, 91, 43, .72), transparent);
    pointer-events: none;
}

.ob-formats-row {
    display: grid;
    grid-template-columns: 1.05fr .9fr 1.45fr;
    min-height: 98px;
    border-bottom: 1px solid rgba(126, 91, 43, .18);
    transition: background .22s ease;
}

.ob-formats-row:last-child {
    border-bottom: none;
}

.ob-formats-row:not(.ob-formats-row--head):hover {
    background: rgba(216, 177, 115, .15);
}

.ob-formats-row--head {
    min-height: 72px;
    background:
        linear-gradient(180deg, rgba(216, 177, 115, .28), rgba(216, 177, 115, .14));
}

.ob-formats-cell {
    display: flex;
    align-items: center;
    padding: 24px 28px;
    border-right: 1px solid rgba(126, 91, 43, .18);
    color: rgba(23, 21, 18, .72);
    font-size: 16px;
    line-height: 1.5;
}

.ob-formats-cell:last-child {
    border-right: none;
}

.ob-formats-row--head .ob-formats-cell {
    color: #704f23;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.ob-formats-cell--format {
    color: #111;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.18;
    text-transform: uppercase;
}

.ob-formats-cell--for {
    color: rgba(23, 21, 18, .84);
    font-weight: 800;
}

.ob-formats-cell--include {
    color: rgba(23, 21, 18, .68);
}

/* ===== Совет под таблицей ===== */

.ob-formats__note {
    position: relative;
    max-width: 860px;
    margin-top: 36px;
    padding: 32px 36px 32px 96px;
    border: 1px solid rgba(126, 91, 43, .26);
    background:
        linear-gradient(180deg, #fffdf9 0%, #f8f2e9 100%);
    color: rgba(23, 21, 18, .78);
    font-size: 18px;
    line-height: 1.72;
    box-shadow:
        0 26px 70px rgba(23, 21, 18, .12),
        inset 5px 0 0 #d8b173;
}

.ob-formats__note:before {
    content: "";
    position: absolute;
    left: 36px;
    top: 40px;
    width: 36px;
    height: 1px;
    background: #a77b38;
}

.ob-formats__note:after {
    content: "Совет";
    position: absolute;
    left: 36px;
    top: 56px;
    color: #8b6935;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .18em;
    text-transform: uppercase;
}

/* ===== АДАПТИВ ===== */

@media (max-width: 991px) {
    .ob-formats {
        padding: 94px 0 98px;
    }

    .ob-formats__head {
        margin-bottom: 40px;
        padding-top: 0;
    }

    .ob-formats__title {
        font-size: 52px;
    }

    .ob-formats-row {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 22px 0;
    }

    .ob-formats-row--head {
        display: none;
    }

    .ob-formats-cell {
        display: block;
        padding: 8px 26px;
        border-right: none;
        font-size: 15px;
    }

    .ob-formats-cell:before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        color: #8b6935;
        font-size: 10px;
        font-weight: 900;
        line-height: 1.2;
        letter-spacing: .18em;
        text-transform: uppercase;
    }

    .ob-formats-cell--format {
        font-size: 22px;
    }

    .ob-formats__note {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .ob-formats {
        padding: 72px 0 78px;
    }

    .ob-formats__inner {
        width: min(100% - 28px, 1180px);
    }

    .ob-formats__title {
        font-size: 39px;
        line-height: 1;
    }

    .ob-formats__table {
        border-color: rgba(126, 91, 43, .22);
        box-shadow:
            0 22px 58px rgba(23, 21, 18, .12),
            0 8px 20px rgba(23, 21, 18, .05);
    }

    .ob-formats__table:before {
        left: 20px;
        right: 20px;
        top: 20px;
    }

    .ob-formats-row {
        padding: 20px 0;
    }

    .ob-formats-cell {
        padding-left: 22px;
        padding-right: 22px;
    }

    .ob-formats-cell--format {
        font-size: 20px;
    }

    .ob-formats__note {
        margin-top: 28px;
        padding: 26px 22px;
        font-size: 16px;
        line-height: 1.65;
        box-shadow:
            0 18px 46px rgba(23, 21, 18, .10),
            inset 4px 0 0 #d8b173;
    }

    .ob-formats__note:before,
    .ob-formats__note:after {
        display: none;
    }
}

@media (max-width: 420px) {
    .ob-formats__inner {
        width: min(100% - 22px, 1180px);
    }

    .ob-formats__title {
        font-size: 34px;
    }

    .ob-formats-cell {
        padding-left: 18px;
        padding-right: 18px;
    }

    .ob-formats__note {
        font-size: 15px;
    }
}