:root {
    --navy: #0b3a5c;
    --teal: #1a7a6d;
    --ink: #1a2330;
    --muted: #5a6a7a;
    --line: #e8eef2;
    --paper: #ffffff;
    --bg: #f3f6f8;
    --shadow: 0 16px 40px rgba(11, 58, 92, 0.08);
    --header: 76px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header) + 12px);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background:
        radial-gradient(900px 420px at 100% -10%, rgba(26, 122, 109, 0.16), transparent 60%),
        radial-gradient(700px 380px at -10% 20%, rgba(11, 58, 92, 0.12), transparent 55%),
        var(--bg);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
    font-family: Fraunces, Georgia, serif;
    font-weight: 560;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); margin: 0 0 0.6rem; }

h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 0.8rem; }

h3 { font-size: 1.45rem; margin: 1.8rem 0 0.4rem; }

p { margin: 0 0 0.9rem; }

main { flex: 1; }

.wrap {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.eyebrow {
    margin: 0 0 0.45rem;
    color: var(--teal);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

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

.site-header__bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    min-height: var(--header);
    padding-block: 0.7rem;
}

.site-header__bar::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 7rem;
    height: 3px;
    background: var(--teal);
}

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

.exam-beacon {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-right: auto;
    padding: 0.38rem 0.85rem 0.38rem 0.7rem;
    border: 2px solid #e11d48;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.92rem;
    line-height: 1.2;
    color: #9f1239;
    background: #fff1f2;
    white-space: nowrap;
    animation: exam-glow 1.35s ease-in-out infinite;
}

.exam-beacon__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e11d48;
    box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.65);
    animation: exam-dot 1.35s ease-out infinite;
    flex: none;
}

.exam-beacon:hover {
    background: #ffe4e6;
    color: #881337;
}

@keyframes exam-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.55), 0 0 12px rgba(225, 29, 72, 0.28);
        border-color: #e11d48;
    }
    50% {
        box-shadow: 0 0 0 8px rgba(225, 29, 72, 0), 0 0 18px rgba(251, 113, 133, 0.55);
        border-color: #fb7185;
    }
}

@keyframes exam-dot {
    0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(225, 29, 72, 0); }
    100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.site-nav a {
    text-decoration: none;
    font-weight: 700;
    color: var(--navy);
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
}

.site-nav a.is-active,
.site-nav a:hover {
    background: rgba(26, 122, 109, 0.12);
    color: var(--teal);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--navy);
    position: relative;
}

.nav-toggle__bars { margin: 0 auto; }

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.hero { padding: 2.5rem 0 3.5rem; }

.hero__head { max-width: 40rem; }

.lede { color: var(--muted); font-size: 1.12rem; }

.course-status {
    margin: 1.2rem 0 1rem;
    color: var(--navy);
    font-weight: 700;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.course-empty {
    grid-column: 1 / -1;
    padding: 1.5rem;
    background: var(--paper);
    border-radius: 16px;
    border: 1px dashed var(--line);
}

.course-card {
    display: flex;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 100%;
    text-decoration: none;
    color: inherit;
}

.course-card:hover {
    border-color: rgba(26, 122, 109, 0.45);
}

.course-card.is-nearest {
    grid-column: 1 / -1;
    border-color: rgba(26, 122, 109, 0.45);
    box-shadow: 0 18px 40px rgba(26, 122, 109, 0.14);
}

.course-card__rail {
    width: 6px;
    background: var(--teal);
    flex: none;
}

.course-card__body { padding: 1.1rem 1.15rem 0.95rem; flex: 1; }

.course-card__top {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.course-card__logo {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--line);
    flex: none;
}

.course-card__logo--empty {
    display: grid;
    place-items: center;
    color: var(--navy);
    font-family: Fraunces, Georgia, serif;
    font-size: 1.7rem;
    background: rgba(11, 58, 92, 0.08);
}

.course-card h3 { margin: 0 0 0.35rem; font-size: 1.25rem; }

.course-card__about {
    margin: 0;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card__badge {
    display: inline-block;
    margin: 0 0 0.35rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: var(--teal);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.course-card__meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.9rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    color: var(--teal);
    font-weight: 700;
    font-size: 0.92rem;
    min-height: 1.2rem;
}

.course-card__pin {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 4px rgba(26, 122, 109, 0.18);
}

.about, .contact { padding: 2.5rem 0 3.5rem; }

.page-about .about {
    min-height: calc(100vh - var(--header) - 5.5rem);
}

.about__index h1 {
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    margin-bottom: 0.9rem;
}

.about__prose h2,
.about__product h2 {
    font-size: 1.45rem;
    margin: 0 0 0.7rem;
}

.contact__layout {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 2.5rem;
    align-items: start;
}

.about__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 40rem;
    margin: 1.1rem 0 0;
}

.about__meta > div {
    padding: 1rem 1.15rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.about__meta dt {
    margin: 0 0 0.2rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.about__meta dd {
    margin: 0;
    color: var(--navy);
    font-weight: 700;
    font-size: 1.12rem;
}

.about__product .hero__head {
    margin-bottom: 1.2rem;
}

.about__company {
    margin-top: 2.6rem;
}

.about__company h2 {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    margin-bottom: 0.6rem;
}

.about__company .lede {
    max-width: 40rem;
}

.about__features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about__features li {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.15rem 1.15rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.about__feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 0.15rem;
    color: white;
}

.about__features .is-panel {
    background: linear-gradient(180deg, rgba(11, 58, 92, 0.12), var(--paper) 58%);
    border-color: rgba(11, 58, 92, 0.22);
}

.about__features .is-panel .about__feature-icon { background: var(--navy); }

.about__features .is-notify {
    background: linear-gradient(180deg, rgba(26, 122, 109, 0.16), var(--paper) 58%);
    border-color: rgba(26, 122, 109, 0.28);
}

.about__features .is-notify .about__feature-icon { background: var(--teal); }

.about__features .is-app {
    background: linear-gradient(180deg, rgba(225, 29, 72, 0.12), var(--paper) 58%);
    border-color: rgba(225, 29, 72, 0.22);
}

.about__features .is-app .about__feature-icon { background: #e11d48; }

.about__features strong {
    color: var(--navy);
    font-size: 1.08rem;
}

.about__features li > span:last-child {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.about__index {
    position: sticky;
    top: calc(var(--header) + 1.2rem);
    padding-left: 1rem;
    border-left: 3px solid var(--teal);
}

.about__index ol {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.about__index li { counter-increment: step; margin: 0.35rem 0; }

.about__index a {
    text-decoration: none;
    font-weight: 700;
    color: var(--navy);
}

.about__index a::before {
    content: counter(step) "  ";
    color: var(--teal);
}

.about__prose { max-width: none; }

.about__close { font-weight: 700; color: var(--navy); }

.gains h1 {
    max-width: 18ch;
    margin-bottom: 1.6rem;
}

.gains__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: gain;
}

.gains__list li {
    counter-increment: gain;
    margin: 0;
    padding: 1.15rem 1.2rem 0.35rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.gains__list h2 {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    margin: 0 0 0.45rem;
    font-size: 1.25rem;
}

.gains__list h2::before {
    content: counter(gain, decimal-leading-zero);
    color: var(--teal);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.gains__list p { color: var(--ink); }

.course-detail { padding: 3.5rem 0 4rem; }

.course-detail__layout {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 2.5rem;
    align-items: start;
}

.course-detail__index {
    position: sticky;
    top: calc(var(--header) + 1.2rem);
    padding-left: 1rem;
    border-left: 3px solid var(--teal);
}

.course-detail__index a {
    text-decoration: none;
    font-weight: 700;
    color: var(--navy);
}

.course-detail__logo {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    object-fit: cover;
    background: var(--line);
    margin: 0 0 1rem;
}

.course-detail__logo--empty {
    display: grid;
    place-items: center;
    color: var(--navy);
    font-family: Fraunces, Georgia, serif;
    font-size: 2.2rem;
    background: rgba(11, 58, 92, 0.08);
}

.course-detail h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 1rem;
}

.course-detail__about {
    max-width: 68ch;
    color: var(--ink);
}

.course-detail__about a { color: var(--teal); font-weight: 700; }

.course-map {
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.course-map h2 {
    font-size: 1.45rem;
    margin: 0 0 0.8rem;
}

.course-map__card {
    position: relative;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--line);
    box-shadow: var(--shadow);
}

.course-map__iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.course-map__hit {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0.9rem;
    text-decoration: none;
}

.course-map__chip {
    background: var(--teal);
    color: white;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
}

.course-map__hint {
    margin: 0.65rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.contact__layout p { color: var(--muted); }

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-list a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.contact-list a:hover { border-color: var(--teal); }

.contact-list small {
    display: block;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.contact-list a span:last-child {
    font-weight: 700;
    color: var(--navy);
    font-size: 1.05rem;
}

.contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: white;
    flex: none;
}

.site-footer {
    padding: 1.6rem 0 2rem;
}

.site-footer .wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-footer img { height: 28px; width: auto; }

.site-footer p { margin: 0; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 800px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: 0; }

    .exam-beacon {
        font-size: 0.72rem;
        padding: 0.3rem 0.55rem 0.3rem 0.45rem;
        gap: 0.32rem;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 0.6rem;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
    }

    .site-nav.is-open { display: flex; }

    .about__layout, .contact__layout, .course-detail__layout, .gains__list { grid-template-columns: 1fr; gap: 1.2rem; }

    .about__meta,
    .about__features { grid-template-columns: 1fr; }

    .about__index, .course-detail__index { position: static; }

    .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
    .exam-beacon {
        white-space: normal;
        max-width: 8.8rem;
        line-height: 1.15;
        text-align: center;
    }
}

@media (min-width: 801px) {
    .course-card.is-nearest .course-card__top { align-items: center; }
    .course-card.is-nearest .course-card__about { -webkit-line-clamp: 2; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .exam-beacon,
    .exam-beacon__dot { animation: none; }
}
