.school-section h3 {
   color: #7d7d7d;
}

.school-card h3,
.tariff-card h3{
    color:#50966c;
}

/* ===== КНОПКИ ШКОЛЫ БИЛЬЯРДА ===== */

.school-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-decoration: none;
    transition: all .25s ease;
}

/* зеленая кнопка */
.school-btn--primary {
    background: #28c76f;
    color: #fff;
    border: 1px solid #28c76f;
}

.school-btn--primary:hover {
    background: #20b864;
    border-color: #20b864;
    color: #fff;
}

/* белая кнопка на темном фоне */
.school-btn--outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.6);
}

.school-btn--outline:hover {
    background: #fff;
    color: #111;
    border-color: #fff;
}

/* кнопка для светлого блока */
.school-btn--outline-dark {
    background: transparent;
    color: #333;
    border: 1px solid #ccc;
}

.school-btn--outline-dark:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}


.school-btn:hover{
transform: translateY(-2px);
box-shadow:0 6px 18px rgba(0,0,0,0.2);
}

/* ===== BILLIARD SCHOOL PAGE ===== */

.billiard-school-page,
.school-section,
.school-hero,
.school-cta {
    font-family: inherit;
}

.school-hero {
    position: relative;
    padding: 120px 0 110px;
    background-size: cover;
    background-position: center center;
    overflow: hidden;
    color: #fff;
}

.school-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,.70) 0%, rgba(0,0,0,.60) 35%, rgba(0,0,0,.72) 100%),
        linear-gradient(90deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.10) 50%, rgba(0,0,0,.25) 100%);
}

.school-hero__content {
    position: relative;
    z-index: 2;
}

.school-label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.92);
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(4px);
}

.school-hero h1 {
    margin: 0 0 22px;
    font-size: 58px;
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: #fff;
}

.school-hero__lead {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 18px;
    color: #f4f4f4;
}

.school-hero p {
    max-width: 860px;
    margin: 0 auto 14px;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,.92);
}

.school-hero__buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 34px;
}

.school-btn {
    min-height: 52px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: all .25s ease;
    box-shadow: none !important;
}

.school-btn--primary {
    color: #fff;
    background: #1ed760;
    border: 1px solid #1ed760;
}

.school-btn--primary:hover {
    color: #fff;
    background: #19bf55;
    border-color: #19bf55;
    transform: translateY(-2px);
}

.school-btn--outline {
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255,255,255,.45);
}

.school-btn--outline:hover {
    color: #111;
    background: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

.school-btn--outline-dark {
    color: #222;
    background: transparent;
    border: 1px solid rgba(0,0,0,.24);
}

.school-btn--outline-dark:hover {
    color: #fff;
    background: #222;
    border-color: #222;
    transform: translateY(-2px);
}

.school-section {
    padding: 90px 0;
    background: #f3f3f3;
}

.school-section--dark {
    background: #1f1f1f;
    color: #fff;
}

.school-title {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 48px;
}

.school-title span {
    flex: 1 1 auto;
    height: 1px;
    background: #d2d2d2;
}

.school-title h2 {
    margin: 0;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 400;
    text-transform: uppercase;
    color: #2d2d2d;
    white-space: nowrap;
}

.school-title--light span {
    background: rgba(255,255,255,.18);
}

.school-title--light h2 {
    color: #fff;
}

.school-card {
    height: 100%;
    padding: 32px 28px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,.05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.school-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,.08);
    border-color: rgba(30,215,96,.35);
}

.school-card--dark {
    background: #262626;
    border-color: rgba(255,255,255,.08);
    box-shadow: none;
}

.school-card--dark:hover {
    border-color: rgba(30,215,96,.45);
    box-shadow: 0 18px 42px rgba(0,0,0,.22);
}

.school-card h3,
.tariff-card h3,
.trainer-box h3 {
    margin: 0 0 16px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 400;
    text-transform: uppercase;
}

.school-card p,
.tariff-card p,
.trainer-box p,
.school-list li {
    font-size: 17px;
    line-height: 1.7;
    color: inherit;
    opacity: .92;
}

.trainer-photo {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.trainer-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.trainer-box {
    padding: 20px 0 20px 10px;
}

.trainer-subtitle {
    margin-bottom: 22px;
    font-size: 18px;
    color: #1ed760;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.trainer-box h4 {
    margin: 28px 0 14px;
    font-size: 24px;
    text-transform: uppercase;
}

.school-list {
    margin: 18px 0 0;
    padding-left: 20px;
}

.school-list li {
    margin-bottom: 8px;
}

.school-gallery__item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: #ddd;
    height: 100%;
}

.school-gallery__item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform .45s ease, filter .35s ease;
}

.school-gallery__item:hover img {
    transform: scale(1.05);
    filter: brightness(.92);
}

.tariff-card {
    height: 100%;
    padding: 34px 28px 30px;
    background: #262626;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.tariff-card:hover {
    transform: translateY(-6px);
    border-color: rgba(30,215,96,.5);
    box-shadow: 0 18px 42px rgba(0,0,0,.22);
}

.tariff-card .school-btn {
    margin-top: 18px;
}

.school-cta {
    padding: 90px 0;
    background: #f3f3f3;
}

.school-cta__box {
    padding: 56px 32px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,.08);
}

.school-cta__box h2 {
    margin-bottom: 18px;
    font-size: 44px;
    line-height: 1.15;
    text-transform: uppercase;
    color: #2d2d2d;
}

.school-cta__box p {
    max-width: 760px;
    margin: 0 auto 28px;
    font-size: 18px;
    line-height: 1.7;
    color: #555;
}

/* optional: page top section fix */
#text {
    padding: 0 !important;
}

#text .title {
    display: none;
}

#text .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* responsive */
@media (max-width: 1199.98px) {
    .school-hero h1 {
        font-size: 48px;
    }

    .school-title h2 {
        font-size: 40px;
    }
}

@media (max-width: 991.98px) {
    .school-hero {
        padding: 100px 0 90px;
    }

    .school-hero h1 {
        font-size: 40px;
    }

    .school-hero__lead {
        font-size: 21px;
    }

    .school-section,
    .school-cta {
        padding: 72px 0;
    }

    .school-title {
        gap: 18px;
        margin-bottom: 36px;
    }

    .school-title h2 {
        font-size: 34px;
        white-space: normal;
        text-align: center;
    }

    .trainer-box {
        padding: 0;
    }
}

@media (max-width: 767.98px) {
    .school-hero {
        padding: 82px 0 74px;
    }

    .school-hero h1 {
        font-size: 32px;
    }

    .school-hero__lead {
        font-size: 18px;
    }

    .school-hero p,
    .school-card p,
    .tariff-card p,
    .trainer-box p,
    .school-list li,
    .school-cta__box p {
        font-size: 16px;
        line-height: 1.65;
    }

    .school-title {
        gap: 12px;
        margin-bottom: 30px;
    }

    .school-title h2 {
        font-size: 28px;
    }

    .school-card,
    .tariff-card {
        padding: 24px 20px;
        border-radius: 14px;
    }

    .school-card h3,
    .tariff-card h3,
    .trainer-box h3 {
        font-size: 22px;
    }

    .trainer-box h4 {
        font-size: 21px;
    }

    .school-gallery__item img {
        height: 240px;
    }

    .school-cta__box {
        padding: 38px 20px;
        border-radius: 18px;
    }

    .school-cta__box h2 {
        font-size: 30px;
    }

    .school-hero__buttons {
        flex-direction: column;
    }

    .school-btn {
        width: 100%;
    }
}