:root {
    --navy: #14162e;
    --ink: #171923;
    --muted: #5c6478;
    --line: #e6e3db;
    --paper: #ffffff;
    --sand: #f5f3ee;
    --orange: #f15a29;
    --orange-dark: #d9481c;
    --shadow: 0 18px 40px rgba(20, 22, 46, 0.12);
    --header: 76px;
    --container: 1180px;
    --section: 104px;
    --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    padding-top: var(--header);
    color: var(--ink);
    background: #fbfaf8;
    font-family: Montserrat, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { overflow-wrap: break-word; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.sr-only, .skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.skip-link:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 80;
    background: #fff;
    padding: 8px 12px;
}
.container {
    width: min(100%, var(--container));
    margin-inline: auto;
    padding-inline: 24px;
}
section { scroll-margin-top: calc(var(--header) + 16px); }
.eyebrow {
    margin-bottom: 10px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
h2 {
    font-size: clamp(26px, 2.4vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 40;
    height: var(--header);
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: 5px 10px;
    line-height: 0;
    box-shadow: 0 0 0 1px rgba(241, 90, 41, 0.85), 0 8px 18px rgba(0, 0, 0, 0.18);
}
.brand img { height: 26px; width: auto; display: block; }
.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}
.site-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
}
.nav-cta {
    background: var(--orange);
    border-radius: 999px;
    padding: 11px 16px;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.nav-cta:hover { background: var(--orange-dark); }
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 10px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    height: calc(100svh - var(--header));
    min-height: 560px;
    max-height: 760px;
    padding: 28px 0;
    overflow: hidden;
    color: #fff;
    background: #0b1730 url("../images/hero-banner.jpg?v=4") left center / cover no-repeat;
}
.hero__art { display: none; }
.hero::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 10, 22, 0.42) 0%, rgba(8, 10, 22, 0.16) 26%, transparent 50%);
}
.hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
    gap: 40px;
    align-items: center;
}
.hero__copy { padding-top: 0; }
.hero__copy h1 {
    max-width: 12em;
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 800;
}
.hero__copy p {
    max-width: 36ch;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
}
.hero-card {
    max-height: calc(100svh - var(--header) - 56px);
    overflow: auto;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink);
    border-radius: 18px;
    padding: 16px 16px 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 22px 44px rgba(8, 10, 22, 0.32);
}
.hero-card h2 { font-size: 18px; line-height: 1.25; text-align: center; }
.hero-card > p {
    margin: 4px 0 12px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.lead-form { display: grid; gap: 14px; }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
}
.field { display: grid; gap: 6px; min-width: 0; position: relative; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; }
.lead-form--card .field label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}
.field input, .field select, .field textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    outline: none;
}
.lead-form--card,
.lead-form--plain { gap: 10px; }
.lead-form--card .form-grid,
.lead-form--plain .form-grid { gap: 8px; }
.lead-form--card .field--wide,
.lead-form--plain .field--wide { grid-column: auto; }
.lead-form--card .field:has(textarea),
.lead-form--card .field:has(.phone-field),
.lead-form--plain .field:has(textarea),
.lead-form--plain .field:has(.phone-field) { grid-column: 1 / -1; }
.lead-form--card .field input,
.lead-form--card .field select,
.lead-form--card .field textarea,
.lead-form--card .phone-field,
.lead-form--plain .field input,
.lead-form--plain .field select,
.lead-form--plain .field textarea,
.lead-form--plain .phone-field {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
}
.lead-form--card .phone-field,
.lead-form--plain .phone-field { padding: 2px 4px; }
.lead-form--card textarea,
.lead-form--plain textarea { min-height: 58px; height: 58px; }
.lead-form--card .form-submit,
.lead-form--plain .form-submit { min-height: 40px; border-radius: 10px; font-size: 13px; }
.lead-form--card .form-note,
.lead-form--plain .form-note { font-size: 11px; line-height: 1.4; }
.lead-form--plain .field { gap: 4px; }
.lead-form--plain .form-submit { width: auto; min-width: 160px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus,
.phone-field:focus-within {
    border-color: var(--navy);
    background: #fff;
}
.field.is-invalid > label { color: #b42318; }
.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid .phone-field,
.field.is-invalid .fancy-select__button,
.phone-field.is-invalid {
    border-color: #d92d20 !important;
    background: #fff7f6 !important;
    box-shadow: none;
}
.field-error {
    margin: 1px 2px 0;
    color: #b42318;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}
.field-error[hidden] { display: none; }
.form-submit {
    border: 0;
    cursor: pointer;
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 12px;
    min-height: 48px;
    padding: 12px 18px;
}
.form-submit:hover { background: var(--orange-dark); }
.form-submit:disabled { opacity: 0.65; cursor: progress; }
.form-note, .form-status { font-size: 12px; color: var(--muted); }
.form-status.is-success { color: #067647; font-weight: 600; }
.form-status.is-error { color: #d92d20; }
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.phone-field {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 4px;
    background: #fff;
}
.phone-field input[type="tel"] {
    border: 0 !important;
    background: transparent !important;
    padding-inline: 6px;
    min-width: 0;
}
.phone-field input[type="tel"]:disabled { color: #98a2b3; }
.phone-code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
}
.phone-code svg { width: 12px; height: 8px; color: #667085; flex: none; }
.phone-code__mark {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1.5px dashed #98a2b3;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #667085;
}
.phone-code__value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}
.phone-code__value[hidden] { display: none; }
.phone-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(20, 22, 46, 0.16);
    flex: none;
}
.phone-menu button span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.phone-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    width: min(320px, 100%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 8px;
}
.phone-search {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 6px;
}
.phone-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow: auto;
    overscroll-behavior: contain;
}
.phone-menu button {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.fancy-select { position: relative; min-width: 0; }
.fancy-select__native {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}
.fancy-select__button {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    font-size: 13px;
}
.fancy-select__button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fancy-select__button span.is-placeholder { color: #98a2b3; }
.fancy-select__button svg {
    width: 12px;
    height: 8px;
    flex: none;
    color: #667085;
    transition: transform 0.15s ease;
}
.fancy-select.is-open .fancy-select__button {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(20, 22, 46, 0.08);
}
.fancy-select.is-open .fancy-select__button svg { transform: rotate(180deg); }
.field.is-invalid .fancy-select__button {
    border-color: #d92d20;
    background: #fff7f6;
    box-shadow: none;
}
.fancy-select__menu {
    position: fixed;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 280px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(20, 22, 46, 0.16);
}
.fancy-select__menu[hidden] { display: none; }
.fancy-select__search {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
}
.fancy-select__search:focus { border-color: var(--navy); }
.fancy-select__menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
}
.fancy-select__menu li button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    padding: 9px 10px;
    text-align: left;
    font-size: 13px;
    cursor: pointer;
}
.fancy-select__menu li button:hover,
.fancy-select__menu li button:focus { background: var(--sand); }
.fancy-select__menu li button.is-selected {
    background: var(--navy);
    color: #fff;
}
.fancy-select__menu li button.is-selected::after { content: "✓"; font-size: 12px; }
.fancy-select__empty {
    padding: 10px;
    color: var(--muted);
    font-size: 13px;
}

.partners {
    padding: 42px 0 48px;
    background: #fff;
    text-align: center;
}
.partners h2 {
    font-size: 18px;
    letter-spacing: 0;
    font-weight: 700;
}
.partner-row {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.partner-row li {
    display: grid;
    place-items: center;
    min-width: 0;
    height: 84px;
    padding: 12px 16px;
    background: #fbfaf8;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}
.partner-row img {
    max-height: 42px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.story, .courses { background: var(--sand); padding: var(--section) 0; }
.why { background: #fbfaf8; padding: var(--section) 0; }
.contact {
    background: var(--sand);
    padding: var(--section) 0;
}
.story__top, .courses__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 28px;
    margin-bottom: 40px;
}
.story__top > div,
.courses__top > div { min-width: 0; flex: 1 1 auto; }
.story__top .text-link,
.courses__top .filters {
    flex: none;
    align-self: flex-end;
    margin-bottom: 6px;
}
.why__intro { margin-bottom: 36px; max-width: 16em; }
.why h2,
.courses h2 { white-space: nowrap; }
.story h2,
.learning h2,
.contact h2 { white-space: normal; }
.story h2 { font-size: clamp(26px, 2.6vw, 40px); max-width: 16em; }
.story h2::after,
.why h2::after,
.courses h2::after,
.learning h2::after,
.contact h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 14px;
    border-radius: 999px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.55s ease 0.15s;
}
.text-link, .light-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    text-decoration: none;
    color: var(--navy);
}
.text-link span, .light-link span { color: var(--orange); }
.story__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.story__media { margin: 0; }
.story__media img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(20, 22, 46, 0.18);
}
.story__copy { display: grid; gap: 18px; color: var(--muted); font-size: 16px; }

.learning h2 { color: #fff; }
.why__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.benefit {
    padding: 32px 26px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--orange);
    border-radius: 18px;
    box-shadow: 0 16px 32px rgba(20, 22, 46, 0.06);
}
.benefit svg {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    padding: 8px;
    border-radius: 12px;
    background: #fff4ef;
    border: 0;
}
.benefit h3 { font-size: 18px; line-height: 1.35; margin-bottom: 10px; }
.benefit p { color: var(--muted); font-size: 14.5px; }

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
}
.filters button {
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 9px 14px;
    cursor: pointer;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
}
.filters button.is-active { background: var(--navy); color: #fff; }
.course-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}
.course-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(20, 22, 46, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(20, 22, 46, 0.12);
}
.course-card__media { position: relative; order: 0; }
.course-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }
.course-card__overlay {
    position: absolute;
    inset: 0;
    padding: 24px;
    background: rgba(20, 22, 46, 0.88);
    color: #fff;
    opacity: 0;
    overflow: auto;
    transition: opacity 0.2s ease;
}
.course-card:hover .course-card__overlay,
.course-card:focus-within .course-card__overlay,
.course-card.is-open .course-card__overlay { opacity: 1; }
.course-card__overlay p { font-size: 14px; line-height: 1.6; }
.course-card h3 { order: 2; margin: 4px 22px 22px; font-size: 22px; letter-spacing: -0.02em; }
.course-card > p {
    order: 1;
    margin: 18px 22px 0;
    color: var(--orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.learning {
    background:
        radial-gradient(640px 240px at 8% 0%, rgba(241, 90, 41, 0.2), transparent 62%),
        var(--navy);
    color: #fff;
    padding: var(--section) 0;
}
.learning__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}
.learning figure { margin: 0; }
.learning img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.32);
}
.learning p {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.78);
    max-width: 38ch;
    font-size: 16px;
}
.light-link { color: #fff; margin-top: 22px; }

.contact__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: stretch;
}
.contact__form,
.contact__aside {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(20, 22, 46, 0.06);
}
.contact__form {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 28px 28px 20px;
    overflow: visible;
}
.contact__form .eyebrow { margin-bottom: 8px; }
.contact__form h2 { margin-bottom: 22px; }
.contact__form .field input,
.contact__form .field textarea,
.contact__form .phone-field,
.contact__form .fancy-select__button {
    background: #f6f4ef;
}
.contact__form .lead-form--plain {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.contact__form .form-grid {
    flex: 1;
    grid-template-rows: repeat(5, auto) minmax(88px, 1fr);
}
.contact__form .field:has(textarea) {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.contact__form .lead-form--plain textarea {
    flex: 1;
    height: auto;
    min-height: 88px;
}
.contact__aside {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 22px;
}
.contact__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.contact__facts svg { width: 28px; height: 28px; margin-bottom: 10px; }
.contact__facts h3 { font-size: 18px; margin-bottom: 6px; }
.contact__facts p { color: var(--muted); font-size: 14px; }
.contact__facts a { color: inherit; text-decoration: none; }
.contact__facts .place-link { display: block; font-size: 14px; color: var(--muted); }
.place-link:hover { color: var(--orange); }
.site-footer .place-link:hover { color: #fff; }
.map-frame {
    flex: 1;
    height: auto;
    min-height: 240px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-link { margin-top: 14px; }

.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.76);
    padding: 64px 0 16px;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.7fr 1fr;
    gap: 36px;
}
.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 10px;
    padding: 6px 10px;
    box-shadow: 0 0 0 1px rgba(241, 90, 41, 0.85);
}
.site-footer p { font-size: 14px; max-width: 36ch; }
.site-footer h2 { color: #fff; font-size: 15px; letter-spacing: 0; margin-bottom: 12px; }
.site-footer a, .site-footer span {
    display: block;
    text-decoration: none;
    margin: 8px 0;
    font-size: 14px;
}
.footer-contact { margin-top: 12px; }
.footer-contact a { display: inline; }
.footer__bar {
    margin-top: 40px;
    padding: 12px 24px;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer .powered {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 14px;
    width: 100%;
    max-width: none;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}
.site-footer .powered span {
    display: inline;
    margin: 0;
    color: inherit;
    font-size: inherit;
    white-space: nowrap;
}
.site-footer .powered a {
    display: inline-flex;
    flex: none;
    margin: 0;
    line-height: 0;
}
.powered img {
    display: block;
    height: 34px;
    width: auto;
    max-width: none;
    mix-blend-mode: screen;
}
.to-top,
.wa-float {
    position: fixed;
    bottom: 18px;
    z-index: 30;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 10px 22px rgba(20, 22, 46, 0.22);
}
.to-top {
    right: 18px;
    border: 0;
    background: var(--orange);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
}
.to-top svg,
.wa-float svg { width: 22px; height: 22px; }
.to-top svg { width: 16px; height: 16px; }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.wa-float {
    left: 18px;
    background: #25d366;
    text-decoration: none;
}
.wa-float:hover { background: #1ebe5d; }

@media (max-width: 1080px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: fixed;
        top: var(--header);
        left: 0;
        right: 0;
        padding: 8px 20px 18px;
        background: var(--navy);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: calc(100dvh - var(--header));
        overflow: auto;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .site-nav.is-open { display: flex; }
    .site-nav a {
        padding: 14px 2px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nav-cta {
        margin-top: 12px;
        text-align: center;
        border-bottom: 0;
    }
    .hero__grid,
    .story__grid,
    .learning__grid,
    .contact__grid,
    .why__cards,
    .course-grid,
    .footer__grid {
        grid-template-columns: 1fr;
    }
    .hero {
        height: auto;
        min-height: 0;
        max-height: none;
        padding: 40px 0 48px;
        overflow: visible;
        background-image: url("../images/hero-banner.jpg?v=4");
        background-position: left center;
        animation: none;
    }
    .hero__art { display: none; }
    .hero::before {
        background: linear-gradient(180deg, rgba(8, 10, 22, 0.45) 0%, rgba(8, 10, 22, 0.12) 22%, transparent 42%);
    }
    .hero-card { max-height: none; overflow: visible; }
    .contact__form .form-grid { grid-template-rows: none; }
    .contact__form .lead-form--plain textarea { flex: none; height: 58px; min-height: 58px; }
    .story__top, .courses__top { align-items: flex-start; flex-direction: column; }
    .why h2, .courses h2 { white-space: normal; }
    .partner-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer__grid { gap: 28px; }
}

@media (max-width: 720px) {
    :root { --section: 64px; --header: 68px; }
    .container { padding-inline: 16px; }
    .brand img { height: 22px; }
    .hero { padding: 32px 0 40px; }
    .hero__copy h1 { font-size: 34px; line-height: 1.12; }
    .hero__grid, .story__grid, .learning__grid, .contact__grid, .why__cards, .course-grid, .form-grid, .partner-row { min-width: 0; }
    .course-card, .benefit, .hero-card, .contact__aside, .field { min-width: 0; }
    .hero-card { padding: 22px 16px 18px; border-radius: 18px; }
    .hero-card h2 { font-size: 20px; }
    .form-grid, .contact__facts, .partner-row { grid-template-columns: 1fr; }
    .site-footer .powered { gap: 10px; }
    .powered img { height: 28px; }
    .field--wide { grid-column: auto; }
    .form-submit,
    .lead-form--plain .form-submit,
    .lead-form--card .form-submit { width: 100%; }
    .filters { border-radius: 16px; width: 100%; }
    .filters button { flex: 1 1 auto; }
    .partner-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .partner-row li:last-child { grid-column: 1 / -1; }
    .map-frame { height: 240px; }
    .course-card h3 { font-size: 17px; }
    .to-top, .wa-float { bottom: 12px; }
    .to-top { right: 12px; }
    .wa-float { left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero { animation: none; }
    .course-card__overlay,
    .course-card { transition: none; }
    .has-reveal [data-reveal] :is(
        .hero__copy,
        .hero-card,
        .partners h2,
        .partner-row li,
        .story__top,
        .why__intro,
        .courses__top,
        .story__media,
        .story__copy,
        .benefit,
        .course-card,
        .learning figure,
        .learning__grid > div,
        .contact__form,
        .contact__aside
    ) {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@keyframes hero-drift {
    from { background-position: 46% 38%; }
    to { background-position: 46% 50%; }
}

.has-reveal [data-reveal] :is(
    .hero__copy,
    .hero-card,
    .partners h2,
    .partner-row li,
    .story__top,
    .why__intro,
    .courses__top,
    .story__media,
    .story__copy,
    .benefit,
    .course-card,
    .learning figure,
    .learning__grid > div,
    .contact__form,
    .contact__aside
) {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.has-reveal [data-reveal].is-in :is(
    .hero__copy,
    .hero-card,
    .partners h2,
    .partner-row li,
    .story__top,
    .why__intro,
    .courses__top,
    .story__media,
    .story__copy,
    .benefit,
    .course-card,
    .learning figure,
    .learning__grid > div,
    .contact__form,
    .contact__aside
) {
    opacity: 1;
    transform: none;
}
.has-reveal [data-reveal].is-in .partner-row li:nth-child(2),
.has-reveal [data-reveal].is-in .benefit:nth-child(2),
.has-reveal [data-reveal].is-in .course-card:nth-child(2) { transition-delay: 0.08s; }
.has-reveal [data-reveal].is-in .partner-row li:nth-child(3),
.has-reveal [data-reveal].is-in .benefit:nth-child(3) { transition-delay: 0.16s; }
.has-reveal [data-reveal].is-in .partner-row li:nth-child(4) { transition-delay: 0.24s; }
.has-reveal [data-reveal].is-in .partner-row li:nth-child(5) { transition-delay: 0.32s; }
.has-reveal [data-reveal].is-in .course-card:hover {
    transform: translateY(-3px);
}
.has-reveal [data-reveal].is-in h2::after {
    transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero { animation: none; }
    .course-card__overlay,
    .course-card,
    .has-reveal [data-reveal] :is(
        .hero__copy,
        .hero-card,
        .partners h2,
        .partner-row li,
        .story__top,
        .why__intro,
        .courses__top,
        .story__media,
        .story__copy,
        .benefit,
        .course-card,
        .learning figure,
        .learning__grid > div,
        .contact__form,
        .contact__aside
    ) {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .story h2::after,
    .why h2::after,
    .courses h2::after,
    .learning h2::after,
    .contact h2::after {
        transform: none;
        transition: none;
    }
}
