:root {
    --blue-900: #073f84;
    --blue-700: #0c59ad;
    --blue-100: #e8f3ff;
    --green-700: #2f9b35;
    --green-600: #3caf43;
    --green-100: #e9f7ea;
    --ink: #172237;
    --muted: #667085;
    --line: #dce5ef;
    --surface: #ffffff;
    --soft: #f5f9fc;
    --shadow: 0 18px 45px rgba(7, 63, 132, .12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

img,
svg,
iframe {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

svg {
    width: 1.25rem;
    height: 1.25rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.admin-strip {
    display: flex;
    justify-content: flex-end;
    max-width: 1220px;
    margin: 0 auto;
    padding: .45rem 1.25rem 0;
}

.admin-link {
    display: inline-flex;
    gap: .4rem;
    align-items: center;
    color: var(--blue-900);
    font-size: .85rem;
}

.admin-link svg {
    width: 1rem;
    height: 1rem;
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1220px;
    margin: 0 auto;
    padding: .8rem 1.25rem 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    min-width: 210px;
}

.brand img {
    width: 76px;
    height: auto;
}

.brand span {
    display: grid;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0;
}

.brand strong {
    color: var(--blue-900);
    font-size: 1.35rem;
}

.brand em {
    color: var(--green-700);
    font-style: normal;
    font-weight: 800;
    font-size: 1.1rem;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .35rem;
    width: 100%;
}

.main-nav a {
    padding: .7rem .85rem;
    border-bottom: 3px solid transparent;
    color: #24324a;
    font-weight: 600;
    white-space: nowrap;
}

.main-nav a.active,
.main-nav a[aria-current="page"] {
    color: var(--green-700);
    border-bottom-color: var(--green-600);
}

.main-nav a:last-child {
    margin-left: .25rem;
    color: #fff;
    background: var(--green-700);
    border: 0;
    border-radius: var(--radius);
    box-shadow: 0 8px 20px rgba(47, 155, 53, .24);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    padding: .6rem;
    color: var(--blue-900);
    background: var(--blue-100);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.icon-close {
    display: none;
}

.flash {
    max-width: 980px;
    margin: 1rem auto 0;
    padding: .85rem 1rem;
    color: var(--blue-900);
    background: var(--green-100);
    border: 1px solid #c6e7ca;
    border-radius: var(--radius);
    font-weight: 700;
}

.hero {
    display: grid;
    grid-template-columns: minmax(320px, .78fr) minmax(420px, 1.22fr);
    min-height: 560px;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 1.25rem;
    padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
    text-align: right;
    background:
        linear-gradient(105deg, #fff 0%, #fff 78%, rgba(255, 255, 255, 0) 78.5%),
        linear-gradient(180deg, #fff 0%, var(--soft) 100%);
    z-index: 1;
}

.eyebrow {
    margin: 0;
    color: var(--green-700);
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    color: var(--blue-900);
    font-size: clamp(2.75rem, 6vw, 5rem);
    line-height: .95;
}

.hero p,
.page-hero p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 1.1rem;
}

.hero-facts {
    display: grid;
    gap: .7rem;
}

.hero-facts span {
    display: grid;
    justify-items: end;
    gap: .15rem;
    color: var(--blue-900);
    font-size: 1.35rem;
    font-weight: 800;
}

.hero-facts strong {
    color: var(--green-700);
    font-size: .88rem;
    text-transform: uppercase;
}

.hero-image {
    min-height: 100%;
    margin-left: -8vw;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: fit-content;
    padding: .8rem 1.35rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.button.primary {
    color: #fff;
    background: linear-gradient(135deg, var(--green-700), var(--green-600));
    box-shadow: 0 12px 26px rgba(47, 155, 53, .25);
}

.button.secondary {
    color: var(--blue-900);
    background: #fff;
    border-color: var(--blue-700);
}

.section,
.content-section {
    max-width: 1220px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) 1.25rem;
}

.section-heading {
    display: grid;
    justify-items: center;
    gap: .25rem;
    margin-bottom: 1.6rem;
    text-align: center;
}

.section-heading.align-left {
    justify-items: start;
    text-align: left;
}

.section-heading h2,
.contact-panel h2,
.content-section h2 {
    margin: 0;
    color: var(--blue-900);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.15;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.feature-card,
.course-card,
.soft-box,
.form-card,
.price-group,
.contact-cards article,
.faq-list details,
.login-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(7, 63, 132, .07);
}

.feature-card {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: .8rem;
    min-height: 230px;
    padding: 1.4rem 1rem;
    text-align: center;
}

.icon-bubble {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    color: var(--blue-700);
    background: linear-gradient(135deg, var(--blue-100), #eef2f6);
    border-radius: 50%;
}

.icon-bubble svg {
    width: 2.2rem;
    height: 2.2rem;
}

.feature-card:nth-child(3n) .icon-bubble,
.feature-card:nth-child(3n + 1) .icon-bubble {
    color: var(--green-700);
    background: linear-gradient(135deg, var(--green-100), #eef2f6);
}

.feature-card h2,
.course-card h3,
.course-card h2,
.price-row h3,
.contact-cards h2,
.login-panel h1 {
    margin: 0;
    color: var(--blue-900);
    line-height: 1.18;
}

.feature-card h2 {
    font-size: 1.05rem;
    text-transform: uppercase;
}

.feature-card p,
.course-card p,
.price-row p,
.soft-box p,
.soft-box li,
.contact-cards p,
.contact-cards span,
.faq-list p,
.login-panel p {
    margin: 0;
    color: var(--muted);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.course-card {
    position: relative;
    display: grid;
    gap: 1rem;
    padding: 2rem 1.5rem 1.5rem;
}

.course-card.detailed {
    align-content: start;
}

.badge,
.status {
    width: fit-content;
    padding: .35rem .65rem;
    color: #fff;
    background: var(--blue-700);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status {
    color: var(--green-700);
    background: var(--green-100);
}

.course-card dl {
    display: grid;
    gap: .6rem;
    margin: .3rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.course-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.course-card dt {
    color: var(--muted);
}

.course-card dd {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
    text-align: right;
}

.price {
    color: var(--blue-700);
    font-size: 1.35rem;
}

.contact-band {
    display: grid;
    grid-template-columns: minmax(300px, .45fr) minmax(380px, .55fr);
    background: var(--soft);
    border-top: 1px solid var(--line);
}

.contact-panel {
    padding: clamp(2rem, 5vw, 4rem);
    text-align: right;
}

.contact-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-list span,
.contact-cards span {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.contact-list span {
    justify-content: flex-end;
}

.contact-list svg,
.contact-cards svg {
    color: var(--green-700);
    flex: 0 0 auto;
}

.map-embed {
    min-height: 360px;
    background: var(--blue-100);
}

.map-embed.tall {
    min-height: 520px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    min-height: inherit;
    border: 0;
}

.page-hero {
    padding: clamp(2.5rem, 6vw, 5rem) 1.25rem;
    background:
        linear-gradient(135deg, rgba(232, 243, 255, .95), rgba(233, 247, 234, .9)),
        #fff;
}

.page-hero.compact {
    display: grid;
    justify-items: center;
    gap: .8rem;
    text-align: center;
}

.page-hero > * {
    width: min(980px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.page-hero.compact > * {
    justify-self: center;
    margin-inline: auto;
    text-align: center;
}

.page-hero.compact p {
    max-width: 720px;
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.soft-box {
    padding: 1.5rem;
    background: var(--soft);
}

.soft-box img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: var(--radius);
}

.clean-list {
    display: grid;
    gap: .7rem;
    padding-left: 1.1rem;
}

.form-card {
    display: grid;
    gap: 1rem;
    padding: 1.35rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

label,
fieldset {
    display: grid;
    gap: .45rem;
    margin: 0;
    color: var(--blue-900);
    font-weight: 800;
}

fieldset {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

legend {
    padding: 0 .35rem;
}

input,
textarea,
select {
    width: 100%;
    padding: .85rem .9rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid #cbd7e5;
    border-radius: var(--radius);
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: 3px solid rgba(12, 89, 173, .18);
    border-color: var(--blue-700);
}

.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.choice-row label,
.checkline {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--ink);
    font-weight: 700;
}

.choice-row input,
.checkline input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--green-700);
}

.hp-field {
    position: absolute;
    left: -9999px;
}

.price-list {
    display: grid;
    gap: 1.25rem;
}

.price-group {
    padding: 1.2rem;
}

.price-group h2 {
    padding-bottom: .8rem;
    border-bottom: 1px solid var(--line);
}

.price-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.price-row:last-child {
    border-bottom: 0;
}

.price-row strong {
    color: var(--green-700);
    white-space: nowrap;
}

.faq-list {
    display: grid;
    gap: .75rem;
}

.faq-list details {
    padding: 1rem 1.2rem;
}

.faq-list summary {
    color: var(--blue-900);
    font-weight: 800;
    cursor: pointer;
}

.faq-list p {
    padding-top: .8rem;
}

.contact-cards {
    display: grid;
    gap: 1rem;
}

.contact-cards article {
    display: grid;
    gap: .45rem;
    padding: 1.2rem;
}

.site-footer {
    display: grid;
    justify-items: center;
    gap: .9rem;
    padding: 2.25rem clamp(1.25rem, 5vw, 4rem);
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .9rem;
}

.site-footer img {
    width: 58px;
    filter: brightness(1.2);
}

.site-footer p {
    margin: 0;
}

.footer-brand p {
    font-weight: 800;
}

.footer-credit {
    color: rgba(255, 255, 255, .86);
    font-size: .95rem;
}

.to-top {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--blue-900);
    background: rgba(255, 255, 255, .82);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
}

.admin-preview {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(232, 243, 255, .9), rgba(233, 247, 234, .9)),
        #fff;
}

.admin-login {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 1.25rem;
}

.admin-brand {
    justify-self: center;
    margin-bottom: 1rem;
}

.login-panel {
    display: grid;
    gap: 1rem;
    width: min(460px, 100%);
    padding: 1.5rem;
}

.login-panel form {
    display: grid;
    gap: 1rem;
}

.login-panel button {
    min-height: 48px;
    color: #fff;
    background: #9aa8b7;
    border: 0;
    border-radius: var(--radius);
}

@media (max-width: 1120px) {
    .feature-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .main-nav a {
        padding-inline: .55rem;
        font-size: .93rem;
    }
}

@media (max-width: 900px) {
    .admin-strip {
        display: flex;
        padding: .35rem 1rem 0;
    }

    .admin-link {
        font-size: .8rem;
    }

    .nav-shell {
        padding-block: .75rem;
    }

    .brand {
        min-width: 0;
    }

    .brand img {
        width: 64px;
    }

    .brand strong {
        font-size: 1rem;
    }

    .brand em {
        font-size: .92rem;
    }

    .nav-toggle {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
    }

    .site-header.nav-open .icon-open {
        display: none;
    }

    .site-header.nav-open .icon-close {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        grid-template-columns: 1fr;
        gap: 0;
        padding: .65rem 1.25rem 1rem;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .site-header.nav-open .main-nav {
        display: grid;
    }

    .main-nav a {
        padding: .9rem .2rem;
        border-bottom: 1px solid var(--line);
    }

    .main-nav a:last-child {
        margin: .8rem 0 0;
        text-align: center;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-copy {
        order: 1;
        padding: 1.6rem 1.25rem 2rem;
        background: linear-gradient(180deg, #fff, var(--soft));
    }

    .hero-image {
        order: 0;
        min-height: 280px;
        margin: 0;
    }

    .hero-image img {
        height: 320px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(2.4rem, 15vw, 4rem);
    }

    .feature-strip,
    .course-grid,
    .contact-band,
    .two-col {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: auto;
    }

    .contact-band {
        border-bottom: 1px solid var(--line);
    }

    .map-embed {
        min-height: 330px;
    }
}

@media (max-width: 620px) {
    .section,
    .content-section {
        padding: 2rem 1rem;
    }

    .nav-shell {
        gap: .75rem;
        padding-inline: 1rem;
    }

    .hero-copy {
        gap: 1rem;
    }

    .hero p,
    .page-hero p {
        font-size: 1rem;
    }

    .hero-facts {
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .feature-strip {
        gap: .75rem;
    }

    .course-card {
        padding: 1.35rem 1rem;
    }

    .course-card dl div,
    .price-row {
        display: grid;
        gap: .15rem;
    }

    .course-card dd {
        text-align: left;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .choice-row {
        display: grid;
    }

    .page-hero {
        padding: 2.25rem 1rem;
    }

    .contact-panel {
        padding: 2rem 1rem;
    }

    .site-footer {
        padding: 1.75rem 1rem;
    }
}
