:root {
    --color-black: #000;
    --color-white: #fff;

    --color-green: #95a80f;
    --color-green-bright: #b7df16;
    --color-green-hover: #b9d311;
    --color-green-strong: #c7f000;

    --color-purple: #7b58c6;
    --color-purple-soft: #8368b5;

    --text-white-90: rgba(255, 255, 255, 0.9);
    --text-white-88: rgba(255, 255, 255, 0.88);
    --text-white-78: rgba(255, 255, 255, 0.78);
    --text-white-75: rgba(255, 255, 255, 0.75);
    --text-white-72: rgba(255, 255, 255, 0.72);
    --text-white-65: rgba(255, 255, 255, 0.65);

    --radius-sm: 4px;
    --radius-md: 10px;
    --transition: all 0.3s ease;
}

/* =========================
   BASE
========================= */
.school-hero-section,
.programs-section,
.courses-section,
.teachers-section,
.studio-rental-section,
.next-generation-section {
    position: relative;
    background: var(--color-black);
    overflow: hidden;
}

.school-hero-content,
.programs-content,
.courses-header,
.teachers-header {
    position: relative;
    z-index: 2;
}

.school-hero-title,
.programs-title,
.courses-title,
.teachers-title,
.studio-rental-title,
.next-generation-title {
    margin: 0;
    color: var(--color-white);
    font-weight: 800;
    text-transform: uppercase;
}

.section-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition);
}

.section-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* =========================
   SCHOOL HERO
========================= */
.school-hero-section {
    min-height: 675px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.school-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0.18) 0%,
            rgba(0, 0, 0, 0.35) 40%,
            rgba(0, 0, 0, 0.82) 100%),
        linear-gradient(90deg,
            rgba(0, 0, 0, 0.14) 0%,
            rgba(0, 0, 0, 0.10) 45%,
            rgba(0, 0, 0, 0.28) 100%);
}

.school-hero-glow {
    position: absolute;
    left: -30px;
    bottom: -30px;
    z-index: 2;
    width: 220px;
    height: 280px;
    background: radial-gradient(circle,
            rgba(149, 168, 15, 0.42) 0%,
            rgba(149, 168, 15, 0.18) 35%,
            rgba(0, 0, 0, 0) 75%);
    filter: blur(26px);
    pointer-events: none;
}

/* Hero fade in/out + slide up */
.school-hero-content {
    max-width: 760px;
    margin: 0 auto;
    opacity: 0;
    margin-top: 80px;
    transition: opacity 3s ease, margin-top 3.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.school-hero-section.is-visible .school-hero-content {
    opacity: 1;
    margin-top: 0;
}

.school-hero-title {
    margin-bottom: 14px;
    font-size: clamp(42px, 7vw, 80px);
    line-height: 1;
    letter-spacing: 2px;
}

.school-hero-subtitle {
    margin: 0 0 14px;
    color: var(--color-white);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.school-hero-text {
    margin: 0;
    color: var(--text-white-90);
    font-size: 14px;
    line-height: 1.8;
}

/* =========================
   PROGRAMS
========================= */
.programs-section {
    padding: 100px 0;
}

.programs-glow {
    position: absolute;
    top: -20px;
    left: -30px;
    z-index: 1;
    width: 180px;
    height: 220px;
    background: radial-gradient(circle,
            rgba(149, 168, 15, 0.38) 0%,
            rgba(149, 168, 15, 0.16) 35%,
            rgba(0, 0, 0, 0) 75%);
    filter: blur(24px);
    pointer-events: none;
}

/* Scroll animation: rapprochement */
.programs-content {
    max-width: 640px;
    transform: translateX(-160px);
    opacity: 0.3;
    transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.4s ease;
}

.programs-image-wrapper {
    transform: translateX(160px);
    opacity: 0.3;
    transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, opacity 1.4s ease 0.1s;
}

.programs-section.is-visible .programs-content {
    transform: translateX(0);
    opacity: 1;
}

.programs-section.is-visible .programs-image-wrapper {
    transform: translateX(0);
    opacity: 1;
}

.programs-title {
    margin-bottom: 26px;
    color: #8c8c8c;
    font-size: clamp(60px, 3vw, 71px);
    line-height: 1;
    letter-spacing: 1px;
}

.programs-title span {
    color: var(--color-green);
}

.programs-list {
    margin: 0 0 26px;
    padding-left: 18px;
}

.programs-list li {
    margin-bottom: 8px;
    color: var(--text-white-78);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.programs-text {
    max-width: 560px;
    margin: 0;
    color: var(--text-white-72);
    font-size: 16px;
    line-height: 1.8;
}

.programs-image-wrapper {
    position: relative;
    z-index: 2;
}

.programs-image {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
}

/* =========================
   COURSES
========================= */
.course-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 0 0 auto;
}

.course-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.course-card-link .course-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card-link:hover .course-card {
    transform: translateY(-6px);
}

.courses-section {
    padding: 100px 0;
}

.courses-glow {
    position: absolute;
    right: 80px;
    bottom: -20px;
    z-index: 1;
    width: 180px;
    height: 70px;
    background: radial-gradient(circle,
            rgba(149, 168, 15, 0.45) 0%,
            rgba(149, 168, 15, 0.16) 35%,
            rgba(0, 0, 0, 0) 75%);
    filter: blur(22px);
    pointer-events: none;
}

.courses-header {
    max-width: 850px;
    margin: 0 auto 42px;
}

.courses-title {
    margin-bottom: 18px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1;
    letter-spacing: 1px;
}

.courses-intro {
    max-width: 760px;
    margin: 0 auto 28px;
    color: var(--text-white-88);
    font-size: 15px;
    line-height: 1.8;
}

.courses-toggle {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.courses-tab {
    min-width: 160px;
    padding: 12px 20px;
    border: 1px solid var(--color-green);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-green);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.courses-tab.active,
.courses-tab:hover {
    background: var(--color-green);
    color: #111;
}

.courses-carousel-block {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 16px;
}

.courses-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: var(--color-green);
    color: #111;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.courses-arrow:hover {
    background: var(--color-green-hover);
    transform: scale(1.06);
}

.courses-viewport {
    width: 100%;
    overflow: hidden;
}

.courses-track {
    display: none;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.courses-track::-webkit-scrollbar {
    display: none;
}

.courses-track.active {
    display: flex;
}

.course-card {
    min-width: 245px;
    max-width: 245px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #333;
}

.course-card-image-wrap {
    position: relative;
}

.course-card-image {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.course-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    border-radius: 20px;
    background: var(--color-green-bright);
    color: #111;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.course-card-body {
    min-height: 96px;
    padding: 16px 16px 18px;
    background: #363636;
}

.course-card-title {
    margin: 0 0 8px;
    color: var(--color-white);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.course-card-text {
    margin: 0;
    color: var(--text-white-65);
    font-size: 12px;
    line-height: 1.7;
}

/* =========================
   TEACHERS
========================= */
.teachers-section {
    padding: 100px 0;
}

.teachers-glow {
    position: absolute;
    top: -20px;
    right: -20px;
    z-index: 1;
    width: 180px;
    height: 220px;
    background: radial-gradient(circle,
            rgba(149, 168, 15, 0.38) 0%,
            rgba(149, 168, 15, 0.16) 35%,
            rgba(0, 0, 0, 0) 75%);
    filter: blur(24px);
    pointer-events: none;
}

.teachers-header {
    max-width: 760px;
    margin: 0 auto 48px;
}

.teachers-title {
    margin-bottom: 14px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 0.95;
    letter-spacing: 1px;
}

.teachers-title span {
    color: var(--color-purple);
}

.teachers-intro {
    margin: 0;
    color: var(--text-white-88);
    font-size: 14px;
    line-height: 1.7;
}

.teachers-slider {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 28px;
}

.teachers-slider-window {
    flex: 1;
    overflow: hidden;
}

.teachers-slider-track {
    position: relative;
}

.teacher-slide {
    display: none;
}

.teacher-slide.active {
    display: block;
}

.teachers-arrow {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: var(--color-white);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.teachers-arrow:hover {
    color: var(--color-green);
    transform: scale(1.08);
}

.teacher-image-wrapper {
    position: relative;
    overflow: hidden;
}

.teacher-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.teacher-content {
    max-width: 620px;
}

.teacher-name {
    margin: 0 0 18px;
    color: var(--color-white);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.teacher-text {
    margin: 0 0 12px;
    color: var(--text-white-75);
    font-size: 14px;
    line-height: 1.8;
}

.teacher-text:last-child {
    margin-bottom: 0;
}

/* =========================
   STUDIO RENTAL
========================= */
.studio-rental-section {
    padding: 100px 0;
}

/* Scroll animation: rapprochement */
.studio-rental-content {
    max-width: 460px;
    transform: translateX(-160px);
    opacity: 0.3;
    transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.4s ease;
}

.studio-rental-slider {
    transform: translateX(160px);
    opacity: 0.3;
    transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s, opacity 1.4s ease 0.1s;
}

.studio-rental-section.is-visible .studio-rental-content {
    transform: translateX(0);
    opacity: 1;
    position: relative;
    z-index: 2;
}

.studio-rental-section.is-visible .studio-rental-slider {
    transform: translateX(0);
    opacity: 1;
    position: relative;
    z-index: 1;
}

.studio-rental-title {
    margin-bottom: 0;
    font-size: clamp(38px, 6vw, 74px);
    line-height: 0.95;
    letter-spacing: 1px;
    transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.studio-rental-title-bottom {
    margin-top: 20px;
    margin-bottom: 18px;
    white-space: nowrap;
}

.studio-rental-section.is-visible .studio-rental-title {
    transform: translateX(100px);
}

.studio-rental-title span {
    color: var(--color-green);
}

.studio-rental-text {
    margin: 0 0 18px;
    color: var(--text-white-72);
    font-size: 14px;
    line-height: 1.8;
}

.studio-rental-list {
    margin: 0 0 22px;
    padding-left: 18px;
}

.studio-rental-list li {
    margin-bottom: 8px;
    color: var(--text-white-72);
    font-size: 13px;
    line-height: 1.7;
}

.studio-rental-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 2px;
    background: var(--color-white);
    color: #111;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition);
}

.studio-rental-btn:hover {
    background: var(--color-green);
    color: #111;
    transform: translateY(-2px);
    text-decoration: none;
}

.studio-rental-slider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.studio-rental-slider-window {
    flex: 1;
    overflow: hidden;
}

.studio-rental-slider-track {
    position: relative;
}

.studio-rental-slide {
    display: none;
}

.studio-rental-slide.active {
    display: block;
}

.studio-rental-image {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.studio-rental-arrow {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: var(--text-white-65);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.studio-rental-arrow:hover {
    color: var(--color-white);
    transform: scale(1.08);
}

/* =========================
   NEXT GENERATION
========================= */
.next-generation-section {
    padding: 110px 0 100px;
}

.next-generation-content {
    max-width: 1100px;
    margin: 0 auto;
}

.next-generation-title {
    margin-bottom: 24px;
    font-size: clamp(38px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: 1px;
}

.next-generation-title span {
    color: var(--color-white);
    transition: color 0.3s ease;
}

.next-generation-text {
    max-width: 920px;
    margin: 0 auto 34px;
    color: var(--text-white-90);
    font-size: 14px;
    line-height: 1.8;
}

.next-generation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 250px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    background: var(--color-purple-soft);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition);
}

.next-generation-btn .btn-arrow {
    font-size: 14px;
    line-height: 1;
}

.next-generation-btn:hover {
    color: #111;
    text-decoration: none;
}

.next-generation-section:hover .next-generation-title span {
    color: var(--color-green-strong);
}

.next-generation-section:hover .next-generation-btn {
    background: var(--color-green-strong);
    color: #111;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 991.98px) {
    .school-hero-section {
        min-height: 460px;
    }

    .school-hero-title {
        font-size: 54px;
    }

    .school-hero-text {
        font-size: 13px;
    }

    .programs-section,
    .courses-section,
    .teachers-section,
    .studio-rental-section {
        padding: 80px 0;
    }

    .next-generation-section {
        padding: 90px 0 80px;
    }

    .programs-title,
    .courses-title,
    .next-generation-title {
        font-size: 52px;
    }

    .programs-text {
        max-width: 100%;
        font-size: 15px;
    }

    .programs-image {
        height: 320px;
    }

    .course-card {
        min-width: 220px;
        max-width: 220px;
    }

    .teachers-slider {
        gap: 18px;
    }

    .teacher-image {
        height: auto;
    }

    .teacher-name {
        font-size: 24px;
    }

    .studio-rental-content {
        max-width: 100%;
    }

    .studio-rental-image {
        height: 360px;
    }

    .next-generation-text {
        max-width: 760px;
        font-size: 13px;
    }
}

@media (max-width: 575.98px) {
    .school-hero-section {
        min-height: 380px;
        padding: 40px 0;
        background-position: center center;
    }

    .school-hero-title,
    .programs-title,
    .courses-title,
    .teachers-title,
    .studio-rental-title,
    .next-generation-title {
        font-size: 34px;
    }

    .school-hero-title {
        letter-spacing: 1px;
    }

    .school-hero-subtitle {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .school-hero-text,
    .courses-intro,
    .teachers-intro,
    .studio-rental-text,
    .studio-rental-list li,
    .next-generation-text {
        font-size: 13px;
        line-height: 1.7;
    }

    .programs-section,
    .courses-section,
    .teachers-section,
    .studio-rental-section,
    .next-generation-section {
        padding: 60px 0;
    }

    .programs-title,
    .next-generation-title {
        line-height: 1.08;
    }

    .programs-list li {
        font-size: 12px;
        line-height: 1.6;
    }

    .programs-text {
        font-size: 14px;
        line-height: 1.75;
    }

    .programs-image {
        height: 240px;
    }

    .courses-toggle {
        flex-direction: column;
        width: 100%;
    }

    .courses-tab {
        width: 100%;
    }

    .courses-carousel-block {
        gap: 10px;
    }

    .courses-arrow {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .course-card {
        min-width: 210px;
        max-width: 210px;
    }

    .course-card-image {
        height: 180px;
    }

    .teachers-header {
        margin-bottom: 32px;
    }

    .teachers-title {
        line-height: 1.05;
    }

    .teachers-slider {
        gap: 10px;
    }

    .teachers-arrow {
        width: 34px;
        height: 34px;
        font-size: 28px;
    }

    .teacher-name {
        margin-bottom: 14px;
        font-size: 20px;
    }

    .teacher-text {
        font-size: 13px;
        line-height: 1.7;
    }

    .studio-rental-btn,
    .next-generation-btn {
        font-size: 10px;
    }

    .studio-rental-btn {
        padding: 11px 16px;
    }

    .studio-rental-image {
        height: 240px;
    }

    .studio-rental-arrow {
        width: 30px;
        height: 30px;
        font-size: 22px;
    }

    .next-generation-text {
        margin-bottom: 26px;
    }

    .next-generation-btn {
        min-width: 100%;
        padding: 13px 18px;
    }
}