﻿:root {
    --bg: #f3ede3;
    --bg-soft: #f8f3ea;
    --bg-alt: #e8e0d2;
    --surface: rgba(255, 251, 246, 0.94);
    --surface-strong: rgba(255, 248, 240, 0.98);
    --surface-cool: rgba(226, 236, 247, 0.96);
    --text: #1f3140;
    --text-soft: #425869;
    --muted: #5b7183;
    --line: rgba(28, 67, 107, 0.14);
    --accent: #1c436b;
    --accent-strong: #163553;
    --accent-soft: #eaf2fb;
    --tag: #dde8f3;
    --radius: 18px;
    --radius-lg: 24px;
    --shadow: 0 8px 22px rgba(24, 47, 72, 0.10);
    --shadow-soft: 0 4px 14px rgba(24, 47, 72, 0.06);
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.page-main {
    min-height: calc(100vh - 140px);
}

/* HEADER */

.site-header {
    width: 100%;
    z-index: 1000;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header--overlay {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(7, 14, 25, 0.58) 0%, rgba(7, 14, 25, 0.12) 72%, rgba(7, 14, 25, 0) 100%);
    border-bottom: 0;
    backdrop-filter: none;
}

.site-header--solid {
    position: sticky;
    top: 0;
    background: rgba(250, 245, 237, 0.96);
    border-bottom: 1px solid rgba(28, 67, 107, 0.10);
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 18px rgba(13, 20, 31, 0.05);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand--stacked .brand-mark {
    width: 48px;
    height: 62px;
    flex: 0 0 48px;
    display: grid;
    align-content: start;
    justify-items: center;
    padding: 5px 0 0;
    background: #111315;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.brand-mark__v {
    display: block;
    font-size: 26px;
    line-height: 1;
    font-family: Georgia, "Times New Roman", serif;
    margin-bottom: 4px;
}

.brand-mark__label {
    display: block;
    width: 100%;
    padding: 3px 0;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.10em;
    background: #8fb0cf;
    color: #ffffff;
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-main {
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.brand-sub {
    font-size: 10px;
    line-height: 1.25;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    opacity: 0.82;
}

.page-home .brand-main,
.page-home .brand-sub {
    color: #ffffff;
}

.page-inner .brand-main {
    color: #1a2531;
}

.page-inner .brand-sub {
    color: #5f6c79;
}

.main-nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 20px;
}

    .main-nav > a,
    .students-nav__link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        min-height: auto;
        background: transparent;
        border: 0;
        border-radius: 0;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        white-space: nowrap;
        position: relative;
        transition: color 0.2s ease, opacity 0.2s ease;
    }

        .main-nav > a::after,
        .students-nav__link::before {
            content: "";
            position: absolute;
            left: 0;
            bottom: -7px;
            width: 100%;
            height: 1px;
            transform: scaleX(0);
            transform-origin: center;
            transition: transform 0.2s ease;
        }

        .students-nav__link::after {
            content: "▾";
            margin-left: 6px;
            font-size: 9px;
            line-height: 1;
        }

.page-home .main-nav > a,
.page-home .students-nav__link {
    color: rgba(255, 255, 255, 0.92);
}

    .page-home .main-nav > a::after,
    .page-home .students-nav__link::before {
        background: rgba(255, 255, 255, 0.92);
    }

.page-inner .main-nav > a,
.page-inner .students-nav__link {
    color: #1f2b39;
}

    .page-inner .main-nav > a::after,
    .page-inner .students-nav__link::before {
        background: #1f2b39;
    }

.main-nav > a:hover::after,
.students-nav:hover .students-nav__link::before,
.students-nav:focus-within .students-nav__link::before {
    transform: scaleX(1);
}

.main-nav > a:hover,
.students-nav__link:hover {
    opacity: 1;
}

.main-nav a.active,
.students-nav__link.active,
.main-nav > a.active,
.page-inner .main-nav > a.active,
.page-home .main-nav > a.active,
.page-inner .students-nav__link.active,
.page-home .students-nav__link.active {
    background: transparent !important;
    color: inherit !important;
    border: 0 !important;
    box-shadow: none !important;
}

    .main-nav a.active::after,
    .main-nav > a.active::after,
    .students-nav__link.active::before {
        transform: scaleX(0) !important;
        opacity: 0 !important;
    }

.nav-apply {
    min-height: 40px !important;
    padding: 0 16px !important;
    border-radius: 2px !important;
    background: #efe6d5 !important;
    color: #1c436b !important;
    border: 1px solid rgba(28, 67, 107, 0.14) !important;
    box-shadow: none !important;
}

    .nav-apply::after {
        display: none !important;
    }

    .nav-apply:hover {
        background: #ffffff !important;
        color: #163553 !important;
    }

.students-nav {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.students-nav__dropdown {
    position: absolute;
    top: 100% !important;
    left: -14px;
    min-width: 240px;
    max-height: 420px;
    overflow-y: auto;
    padding: 12px;
    padding-top: 16px;
    border-radius: 18px;
    display: none;
    z-index: 300;
    /* Invisible bridge above the dropdown so the gap between
       the trigger link and the list never breaks hover */
    margin-top: -8px;
    padding-top: 20px;
}

/* Extra safety: extend the hover zone above the dropdown via pseudo-element */
.students-nav__dropdown::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

    .students-nav:hover .students-nav__dropdown,
    .students-nav:focus-within .students-nav__dropdown,
    .students-nav__dropdown:hover {
        display: block !important;
    }
.page-home .students-nav__dropdown {
    background: rgba(9, 16, 29, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.page-inner .students-nav__dropdown {
    background: rgba(255, 251, 246, 0.98);
    border: 1px solid rgba(28, 67, 107, 0.14);
    box-shadow: 0 14px 30px rgba(24, 47, 72, 0.10);
}

.students-nav__dropdown a {
    display: block;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    background: transparent;
    border: 0;
}

.page-home .students-nav__dropdown a {
    color: rgba(255, 255, 255, 0.88);
}

    .page-home .students-nav__dropdown a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
    }

.page-inner .students-nav__dropdown a {
    color: #355267;
}

    .page-inner .students-nav__dropdown a:hover {
        background: #dce6f0;
        color: #1c436b;
    }

.students-nav:hover .students-nav__dropdown,
.students-nav:focus-within .students-nav__dropdown {
    display: block;
}

/* HERO */

.home-hero {
    position: relative;
    min-height: min(88vh, 860px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0d1622;
    color: #ffffff;
}

.home-hero__media,
.home-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-hero__image {
    object-fit: cover;
    object-position: center 35%;
    filter: saturate(1.02) contrast(1.03) brightness(1.0);
    transform: scale(1.005);
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 20, 34, 0.55) 0%, rgba(7, 20, 34, 0.30) 38%, rgba(7, 20, 34, 0.05) 62%, rgba(7, 20, 34, 0) 100%),
        linear-gradient(180deg, rgba(7, 20, 34, 0.10) 0%, rgba(7, 20, 34, 0.28) 100%);
}

.home-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-left: 32px;
    padding-right: 24px;
}

.home-hero__card {
    max-width: 560px;
    margin-top: 140px;
    margin-bottom: 140px;
    padding: 28px 30px;
    border-radius: 22px;
    background: rgba(10, 22, 38, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 18px 48px rgba(5, 12, 22, 0.32);
}

.home-hero__kicker {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-hero__card h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 4.6vw, 64px);
    line-height: 1.04;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.home-hero__text {
    margin: 0;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.55;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .btn:hover {
        transform: translateY(-1px);
    }

.btn--light {
    background: #efe6d5;
    color: #161616;
    border-color: rgba(255, 255, 255, 0.24);
}

    .btn--light:hover {
        background: #ffffff;
        color: #111111;
    }

.btn--outline-light {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.42);
}

    .btn--outline-light:hover {
        background: rgba(255, 255, 255, 0.10);
        color: #ffffff;
    }

.btn--primary {
    background: #1c436b;
    color: #ffffff;
    border-color: rgba(28, 67, 107, 0.20);
}

    .btn--primary:hover {
        background: #163553;
        color: #ffffff;
    }

.btn--ghost {
    background: transparent;
    border-color: rgba(28, 67, 107, 0.18);
    color: #283341;
}

    .btn--ghost:hover {
        background: rgba(28, 67, 107, 0.05);
        color: #163553;
    }

/* HOME HIGHLIGHT */

.home-highlight {
    position: relative;
    z-index: 3;
    margin-top: -52px;
}

.home-highlight__shell {
    background: #ded6c8;
    border-radius: 26px 26px 0 0;
    padding: 26px 24px 24px;
    box-shadow: 0 -1px 0 rgba(28, 67, 107, 0.05);
}

.home-highlight__intro {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}

.home-highlight__eyebrow {
    margin-bottom: 10px;
    color: #4f6f91;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-highlight__intro h2 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: #0d1524;
}

.home-highlight__lead {
    margin: 12px 0 0;
    max-width: 760px;
    color: #5a6c7d;
    font-size: 16px;
    line-height: 1.6;
}

.home-highlight__buttons {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.home-highlight__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.highlight-stat {
    min-height: 170px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 251, 246, 0.72);
    border: 1px solid rgba(28, 67, 107, 0.08);
}

.highlight-stat__value {
    margin-bottom: 6px;
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
    color: #0d1524;
}

.highlight-stat__title {
    margin-bottom: 10px;
    color: #607487;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.highlight-stat p {
    margin: 0;
    max-width: 24ch;
    color: #5a6c7d;
    font-size: 15px;
    line-height: 1.55;
}

.home-highlight__programs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.program-mini-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 251, 246, 0.90);
    border: 1px solid rgba(28, 67, 107, 0.10);
    box-shadow: 0 6px 14px rgba(28, 67, 107, 0.04);
}

.program-mini-card--contact {
    background: linear-gradient(180deg, #1c436b 0%, #234f7e 100%);
    color: #ffffff;
}

.program-mini-card__code {
    margin-bottom: 8px;
    color: #4f6f91;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.program-mini-card--contact .program-mini-card__code {
    color: rgba(255, 255, 255, 0.75);
}

.program-mini-card h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.12;
    color: #1c436b;
}

.program-mini-card--contact h3 {
    color: #ffffff;
}

.program-mini-card__name {
    margin: 0 0 12px;
    color: #355267;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
}

.program-mini-card__list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: #5a6c7d;
    font-size: 14px;
    line-height: 1.5;
}

.program-mini-card--contact .program-mini-card__list {
    color: rgba(255, 255, 255, 0.92);
}

/* COMMON SECTIONS */

.section {
    padding: 28px 0;
}

.home-section {
    padding: 40px 0;
    background: #f3ede3;
}

.home-section--soft {
    background: #ece5d8;
}

.section--warm {
    background: rgba(255, 248, 241, 0.66);
}

.section--cool {
    background: #b9cbe0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

    .section-head h1,
    .section-head h2 {
        margin: 0 0 8px;
        line-height: 1.14;
        font-size: clamp(24px, 2.5vw, 34px);
        color: #243744;
    }

    .section-head p {
        margin: 0;
        max-width: 760px;
        color: var(--muted);
        font-size: 15px;
    }

.section-head--narrow p {
    max-width: 720px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tile,
.cta,
.panel,
.stat-card,
.teacher-viewer,
.contact-card,
.link-list-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.tile,
.panel,
.stat-card,
.teacher-viewer,
.contact-card,
.link-list-card {
    background: var(--surface);
}

.tile {
    padding: 20px;
}

    .tile h3,
    .panel h3,
    .stat-card h3,
    .teacher-info h3,
    .contact-card h3,
    .link-list-card h3 {
        margin: 0 0 8px;
        font-size: 20px;
        line-height: 1.22;
        color: #243744;
    }

    .tile p,
    .panel p,
    .stat-card p,
    .teacher-info p,
    .contact-card p,
    .link-list-card p {
        margin: 0;
        color: var(--text-soft);
        font-size: 15px;
    }

.tile--clean,
.panel--home,
.panel--home-dark,
.split-card--light,
.split-card--dark {
    border-radius: 20px;
    border: 1px solid rgba(28, 67, 107, 0.10);
    box-shadow: 0 8px 18px rgba(24, 47, 72, 0.05);
}

.tile--clean {
    background: #faf6ef;
    padding: 22px;
}

    .tile--clean h3 {
        font-size: 22px;
        color: #1c436b;
    }

    .tile--clean p {
        color: #53606f;
    }

.tag {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--tag);
    color: #3b5974;
    border: 1px solid rgba(28, 67, 107, 0.16);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tag--dark {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.14);
}

.panel {
    padding: 20px;
}

.panel--cool {
    background: var(--surface-cool);
}

.panel--warm {
    background: var(--surface-strong);
}

.panel--home {
    background: #faf6ef;
}

.panel--home-dark {
    padding: 22px;
    background: linear-gradient(180deg, #1c436b 0%, #234f7e 100%);
    color: #ffffff;
    border: 1px solid rgba(28, 67, 107, 0.10);
    border-radius: 20px;
    box-shadow: 0 8px 18px rgba(24, 47, 72, 0.05);
}

    .panel--home-dark h3,
    .panel--home-dark p,
    .panel--home-dark a {
        color: #ffffff;
    }

.split {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 18px;
    align-items: stretch;
}

.split--home {
    align-items: stretch;
    gap: 18px;
}

.split-card {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: rgba(255, 248, 241, 0.84);
    border: 1px solid rgba(28, 67, 107, 0.10);
    box-shadow: var(--shadow-soft);
}

    .split-card h3 {
        margin: 0 0 10px;
        font-size: 22px;
        color: #243744;
    }

    .split-card p {
        margin: 0;
        color: var(--text-soft);
        font-size: 15px;
    }

.split-card--light {
    background: #f8f4ec;
}

.split-card--dark {
    background: linear-gradient(180deg, #1c436b 0%, #234f7e 100%);
    color: #ffffff;
}

    .split-card--dark h3,
    .split-card--dark p {
        color: #ffffff;
    }

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card {
    padding: 20px;
    background: rgba(255, 250, 245, 0.92);
}

    .stat-card strong {
        display: block;
        margin-bottom: 8px;
        font-size: 28px;
        line-height: 1;
        color: #1c436b;
        font-weight: 800;
    }

.feature-list {
    display: grid;
    gap: 12px;
}

.feature-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 249, 243, 0.74);
    border: 1px solid rgba(28, 67, 107, 0.10);
    color: var(--text-soft);
    font-size: 15px;
}

.timeline {
    display: grid;
    gap: 12px;
}

.timeline-item {
    padding: 16px 18px;
    border-left: 4px solid #1c436b;
    background: rgba(255, 250, 245, 0.82);
    border-radius: 0 16px 16px 0;
    color: var(--text-soft);
    font-size: 15px;
}

    .timeline-item strong {
        display: block;
        margin-bottom: 6px;
        color: #253540;
    }

.link-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .link-list a {
        display: block;
        padding: 12px 14px;
        border-radius: 14px;
        background: rgba(255, 249, 242, 0.74);
        border: 1px solid rgba(28, 67, 107, 0.10);
        color: #4c6270;
        transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        font-size: 15px;
    }

        .link-list a:hover {
            background: #dce6f0;
            border-color: rgba(28, 67, 107, 0.22);
            color: #253540;
        }

.cta {
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(135deg, rgba(255, 248, 241, 0.94), rgba(185, 203, 224, 0.86));
}

    .cta h2 {
        margin: 0 0 8px;
        font-size: 26px;
        line-height: 1.15;
        color: #243744;
    }

    .cta p {
        margin: 0;
        color: var(--muted);
        max-width: 760px;
        font-size: 15px;
    }

/* LEGACY HERO COMPATIBILITY */

.hero {
    position: relative;
    overflow: hidden;
}

.hero--cover {
    min-height: 64vh;
    display: flex;
    align-items: center;
    padding: 42px 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

    .hero-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: saturate(0.82) brightness(1.03);
        transform: scale(1.01);
    }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(248, 242, 234, 0.88), rgba(185, 203, 224, 0.58)), linear-gradient(0deg, rgba(245, 239, 230, 0.22), rgba(245, 239, 230, 0.22));
}

.hero-cover__wrap {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-glass {
    max-width: 680px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: rgba(255, 249, 242, 0.78);
    border: 1px solid rgba(28, 67, 107, 0.12);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

    .hero-glass h1 {
        margin: 0 0 12px;
        font-size: clamp(30px, 3.6vw, 46px);
        line-height: 1.08;
        color: #243744;
    }

    .hero-glass .hero__text {
        color: var(--text-soft);
        font-size: 16px;
        max-width: 620px;
    }

.eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(185, 203, 224, 0.92);
    color: #3b5974;
    border: 1px solid rgba(28, 67, 107, 0.18);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

/* TEACHERS / CONTACTS */

.teacher-viewer {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    padding: 22px;
}

.teacher-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    overflow: hidden;
    background: #c7d6e6;
}

    .teacher-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.teacher-info {
    display: grid;
    align-content: start;
    gap: 12px;
}

.teacher-role {
    color: #47657f;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.teacher-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

    .teacher-controls button {
        border: 1px solid rgba(28, 67, 107, 0.18);
        background: rgba(255, 249, 242, 0.82);
        color: #3f5564;
        border-radius: 999px;
        padding: 9px 12px;
        cursor: pointer;
        transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

        .teacher-controls button:hover,
        .teacher-controls button.active {
            background: #dce6f0;
            color: #253540;
            border-color: rgba(28, 67, 107, 0.24);
        }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-card {
    padding: 20px;
}

.contact-photo {
    border-radius: 18px;
    overflow: hidden;
    margin-top: 12px;
    background: #c7d6e6;
    aspect-ratio: 4 / 3;
}

    .contact-photo img,
    .contact-photo iframe {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border: 0;
    }

.contacts-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.contacts-card {
    padding: 22px 20px;
    border-radius: 20px;
    background: rgba(255, 251, 246, 0.90);
    border: 1px solid rgba(28, 67, 107, 0.10);
    box-shadow: 0 6px 14px rgba(28, 67, 107, 0.05);
}

.contacts-card__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8fa5bb;
    margin-bottom: 8px;
}

.contacts-card__value {
    font-size: 15px;
    line-height: 1.55;
    color: #1a2a38;
}

.contacts-card__value a {
    color: #1c436b;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contacts-card__value a:hover {
    color: #0f2a45;
}

@media (max-width: 900px) {
    .contacts-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .contacts-cards {
        grid-template-columns: 1fr;
    }
}

/* BEGINNING PAGE */

.begin-event {
    display: grid;
    gap: 28px;
}

.begin-event__intro {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.begin-event__intro .begin-event__lead {
    flex: 1;
}

.begin-inline-photo {
    margin: 0;
    flex-shrink: 0;
}

.begin-inline-photo img {
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    image-rendering: auto;
}

.begin-inline-photo figcaption {
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-soft);
    text-align: center;
    font-style: italic;
    line-height: 1.3;
}

.begin-inline-photo--right {
    float: right;
    margin: 0 0 12px 18px;
}

.begin-inline-photo--left {
    float: left;
    margin: 0 18px 12px 0;
}

@media (max-width: 600px) {
    .begin-event__intro {
        flex-direction: column;
    }

    .begin-inline-photo--right,
    .begin-inline-photo--left {
        float: none;
        margin: 12px auto;
    }
}

.begin-event__lead {
    padding: 24px 28px;
    border-radius: 20px;
    background: rgba(255, 251, 246, 0.90);
    border: 1px solid rgba(28, 67, 107, 0.10);
    box-shadow: 0 6px 14px rgba(28, 67, 107, 0.05);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-soft);
}

.begin-event__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.begin-event__subtitle {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8fa5bb;
    margin-bottom: 14px;
}

.begin-event__guests {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}

.begin-event__guests li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(28, 67, 107, 0.08);
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.4;
}

.begin-event__guests li:first-child {
    border-top: 1px solid rgba(28, 67, 107, 0.08);
}

.begin-event__guests strong {
    color: #1a2a38;
}

.begin-event__quote {
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--surface-cool);
    border: 1px solid rgba(28, 67, 107, 0.08);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-soft);
}

.begin-event__quote p {
    margin: 0;
}

.begin-event__quote--final {
    background: linear-gradient(135deg, rgba(28, 67, 107, 0.06), rgba(185, 203, 224, 0.30));
    border-color: rgba(28, 67, 107, 0.14);
}

.begin-event__quote-author {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #4f6f91;
}

@media (max-width: 900px) {
    .begin-event__cols {
        grid-template-columns: 1fr;
    }
}

/* BEGIN PERSON HERO */

.begin-person-hero {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 36px;
    align-items: start;
    padding: 8px 0 16px;
}

.begin-person-hero__photo {
    width: 200px;
    border-radius: 18px;
    overflow: hidden;
    background: #c7d6e6;
    box-shadow: 0 8px 22px rgba(24, 47, 72, 0.13);
    flex-shrink: 0;
}

.begin-person-hero__photo img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.begin-person-hero__info h1 {
    margin: 10px 0 8px;
    font-size: clamp(22px, 2.6vw, 34px);
    line-height: 1.1;
    color: #1a2a38;
}

.begin-person-hero__name {
    margin: 0 0 2px;
    font-size: 18px;
    font-weight: 800;
    color: #1c436b;
}

.begin-person-hero__role {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

.begin-person-hero__info > p:last-child {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 640px) {
    .begin-person-hero {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .begin-person-hero__photo {
        width: 140px;
    }
}

/* INTERVIEW PAGES */

.interview-layout {
    max-width: 860px;
    display: grid;
    gap: 24px;
}

.interview-block {
    padding: 24px 28px;
    border-radius: 20px;
    background: rgba(255, 251, 246, 0.90);
    border: 1px solid rgba(28, 67, 107, 0.10);
    box-shadow: 0 6px 14px rgba(28, 67, 107, 0.05);
}

.interview-block--speech {
    background: var(--surface-cool);
}

.interview-q {
    font-size: 15px;
    font-weight: 700;
    color: #1c436b;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(28, 67, 107, 0.12);
}

.interview-a p {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.7;
}

.interview-block h3 {
    margin: 0 0 14px;
    font-size: 19px;
    color: #1c436b;
}

/* ACTIONS (мероприятия) */

.actions-grid {
    display: grid;
    gap: 28px;
}

.action-card {
    border-radius: 20px;
    background: rgba(255, 251, 246, 0.90);
    border: 1px solid rgba(28, 67, 107, 0.10);
    box-shadow: 0 6px 14px rgba(28, 67, 107, 0.05);
    overflow: hidden;
}

.action-card__photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    background: #c7d6e6;
}

.action-card__photos img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.action-card__body {
    padding: 18px 20px 20px;
}

.action-card__body h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #1c436b;
}

.action-card__body p {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 560px) {
    .action-card__photos {
        grid-template-columns: 1fr;
    }
}

/* REVIEWS */

.reviews-grid {
    display: grid;
    gap: 20px;
}

.review-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 28px;
    align-items: start;
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 251, 246, 0.90);
    border: 1px solid rgba(28, 67, 107, 0.10);
    box-shadow: 0 6px 14px rgba(28, 67, 107, 0.05);
}

.review-card--alt {
    background: var(--surface-cool);
}

.review-card__photo {
    width: 200px;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    background: #c7d6e6;
    flex-shrink: 0;
}

.review-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.review-card__body h3 {
    margin: 8px 0 4px;
    font-size: 22px;
    color: #1c436b;
}

.review-card__role {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
}

.review-card__body p {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.65;
}

@media (max-width: 640px) {
    .review-card {
        grid-template-columns: 1fr;
    }

    .review-card__photo {
        width: 140px;
        aspect-ratio: 3 / 4;
    }
}

/* STUDENTS */

.students-page {
    padding-top: 28px;
    padding-bottom: 40px;
}

.year-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.year-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 250, 245, 0.82);
    border: 1px solid rgba(28, 67, 107, 0.14);
    color: #506673;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

    .year-chip:hover {
        background: #e0e8f1;
        color: #253540;
        border-color: rgba(28, 67, 107, 0.24);
    }

.year-chip--active {
    background: #1c436b;
    color: #ffffff;
    border-color: rgba(22, 53, 83, 0.35);
}

.students-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.student-card {
    padding: 14px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.student-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    background: #d7e0ea;
    margin-bottom: 12px;
}

    .student-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.student-photo__empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5b7183;
    font-weight: 600;
    background: #d7e0ea;
}

.student-name {
    margin: 0;
    text-align: center;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    color: #243744;
    text-transform: uppercase;
}

.student-empty {
    padding: 22px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    color: var(--text-soft);
}

/* FOOTER */

.site-footer {
    margin-top: 0;
    background: linear-gradient(180deg, #173755 0%, #214a74 100%);
    color: #ffffff;
    border-top: 0;
}

.footer-inner {
    padding: 34px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 22px;
}

.footer-brand {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
}

.footer-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 12px;
}

.footer-text {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

    .footer-links a {
        color: rgba(255, 255, 255, 0.88);
        transition: color 0.2s ease;
        font-size: 15px;
    }

        .footer-links a:hover {
            color: #ffffff;
        }

/* RESPONSIVE */

@media (max-width: 1280px) {
    .home-highlight__intro {
        grid-template-columns: 1fr;
    }

    .home-highlight__buttons {
        justify-content: flex-start;
    }
}

@media (max-width: 1180px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 10px 16px;
    }

    .students-nav {
        display: block;
        width: 100%;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .students-nav__link {
        justify-content: flex-start;
    }

    .students-nav__dropdown {
        position: static;
        display: none;
        margin-top: 10px;
        min-width: 100%;
        max-height: 240px;
    }

    .students-nav:hover .students-nav__dropdown,
    .students-nav:focus-within .students-nav__dropdown {
        display: block;
    }

    .home-hero__inner {
        padding-left: 30px;
        padding-right: 22px;
    }
}

@media (max-width: 1100px) {
    .grid-2,
    .grid-3,
    .stats,
    .split,
    .teacher-viewer,
    .contact-grid,
    .footer-inner,
    .home-highlight__stats,
    .home-highlight__programs {
        grid-template-columns: 1fr;
    }

    .cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero--cover {
        min-height: auto;
        padding: 34px 0;
    }

    .home-hero {
        min-height: 640px;
    }

    .home-hero__card {
        margin-top: 140px;
        margin-bottom: 100px;
        max-width: 100%;
    }

    .home-highlight {
        margin-top: -24px;
    }

    .home-highlight__shell {
        border-radius: 22px 22px 0 0;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(var(--container), calc(100% - 22px));
    }

    .brand--stacked .brand-mark {
        width: 44px;
        height: 58px;
        flex-basis: 44px;
    }

    .brand-main {
        font-size: 18px;
    }

    .brand-sub {
        font-size: 9px;
    }

    .home-hero {
        min-height: 600px;
    }

    .home-hero__image {
        object-position: center 30%;
    }

    .home-hero__inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .home-hero__card {
        margin-top: 120px;
        margin-bottom: 56px;
        padding: 22px 20px;
        border-radius: 18px;
    }

        .home-hero__card h1 {
            font-size: 36px;
        }

    .home-hero__text {
        font-size: 16px;
        line-height: 1.5;
    }

    .home-highlight {
        margin-top: -18px;
    }

    .home-highlight__shell {
        padding: 20px 16px 22px;
        border-radius: 20px 20px 0 0;
    }

    .home-highlight__intro h2 {
        font-size: 30px;
    }

    .highlight-stat,
    .program-mini-card,
    .tile,
    .panel,
    .split-card,
    .stat-card,
    .teacher-viewer,
    .contact-card,
    .link-list-card,
    .cta {
        min-height: auto;
        padding: 18px;
    }

    .highlight-stat__value {
        font-size: 34px;
    }

    .main-nav > a,
    .students-nav__link,
    .nav-apply {
        font-size: 10px;
    }

    .hero-glass h1 {
        font-size: 30px;
    }

    .students-grid {
        grid-template-columns: 1fr;
    }

    .student-name {
        font-size: 18px;
    }
}

@media (max-width: 520px) {
    .home-hero__actions,
    .home-highlight__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .btn--light,
    .btn--outline-light,
    .btn--primary,
    .btn--ghost {
        width: 100%;
    }
}

/* CONTACTS PAGE */

.contacts-hero {
    padding: 48px 0 56px;
    background: var(--bg-soft);
}

.contacts-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 40px;
    align-items: start;
}

.contacts-info {
    padding-top: 8px;
}

.contacts-info h1 {
    margin: 12px 0 24px;
    font-size: clamp(26px, 2.8vw, 38px);
    line-height: 1.1;
    color: #1a2a38;
}

.contacts-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    gap: 0;
}

.contacts-list li {
    display: flex;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(28, 67, 107, 0.10);
    font-size: 15px;
    color: var(--text-soft);
    align-items: baseline;
}

.contacts-list li:first-child {
    border-top: 1px solid rgba(28, 67, 107, 0.10);
}

.contacts-list__label {
    flex: 0 0 88px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #8fa5bb;
    padding-top: 2px;
}

.contacts-list a {
    color: #1c436b;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contacts-list a:hover {
    color: #0f2a45;
}

.contacts-info__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contacts-photos {
    display: grid;
    grid-template-rows: auto auto;
    gap: 14px;
}

.contacts-photo {
    border-radius: 20px;
    overflow: hidden;
    background: #c7d6e6;
}

.contacts-photo--main {
    aspect-ratio: 16 / 9;
}

.contacts-photo--map {
    aspect-ratio: 16 / 7;
}

.contacts-map {
    border-radius: 20px;
    overflow: hidden;
    height: 220px;
    background: #c7d6e6;
}

.contacts-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.contacts-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

@media (max-width: 900px) {
    .contacts-hero__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contacts-photos {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .contacts-photo--main {
        aspect-ratio: 4 / 3;
    }

    .contacts-map {
        height: 200px;
    }
}

@media (max-width: 560px) {
    .contacts-photos {
        grid-template-columns: 1fr;
    }

    .contacts-photo--main {
        aspect-ratio: 16 / 9;
    }

    .contacts-photo--map {
        aspect-ratio: 16 / 9;
    }

    .contacts-info__actions {
        flex-direction: column;
    }

    .contacts-info__actions .btn {
        width: 100%;
    }
}
