:root {
    --bg: #f5f7fb;
    --card: #fff;
    --text: #1b2433;
    --muted: #5d6b82;
    --line: #e2e8f2;
    --brand: #0b4f9c;
    --brand-d: #083a73;
    --brand-soft: #e7f0fb;
    --accent: #e8a020;
    --warn-bg: #fff6e5;
    --warn: #8a5a00;
    --on-brand: #fff;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top,0px);
    padding-bottom: env(safe-area-inset-bottom,0px)
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg:#0f1521;
        --card: #18202f;
        --text: #e8edf6;
        --muted: #9aa8bf;
        --line: #2a3548;
        --brand: #6aa8f0;
        --brand-d: #4a8ad6;
        --brand-soft: #1c2c45;
        --accent: #f0b44a;
        --warn-bg: #2d2412;
        --warn: #f0c070;
        --on-brand: #0b1220;
        color-scheme: dark
    }
}

:root[data-theme="dark"] {
    --bg: #0f1521;
    --card: #18202f;
    --text: #e8edf6;
    --muted: #9aa8bf;
    --line: #2a3548;
    --brand: #6aa8f0;
    --brand-d: #4a8ad6;
    --brand-soft: #1c2c45;
    --accent: #f0b44a;
    --warn-bg: #2d2412;
    --warn: #f0c070;
    --on-brand: #0b1220;
    color-scheme: dark
}

html {
    scroll-padding-top: env(safe-area-inset-top,0px);
    scroll-behavior: smooth
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.55 "Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 18px
}

a {
    color: var(--brand)
}

/* header */
.top {
    background: var(--card);
    border-bottom: 1px solid var(--line)
}

.top .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 19px;
    color: var(--brand);
    letter-spacing: -.01em
}

.logo i {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--brand);
    color: var(--on-brand);
    display: grid;
    place-items: center;
    font-style: normal;
    font-size: 15px
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 100%;
    display: block;
    background: #fff;
    border-radius: 8px;
    padding: 3px 8px
}

@media(max-width: 640px) {
    .logo-img {
        height:38px
    }
}

.help {
    font-size: 14px;
    color: var(--muted);
    text-align: right
}

.help b {
    color: var(--text);
    white-space: nowrap
}

/* hero */
.hero {
    background: linear-gradient(160deg,var(--brand-soft),transparent 70%);
    padding: 34px 0 46px
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 34px;
    align-items: start
}

.pill {
    display: inline-block;
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--brand);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 99px
}

h1 {
    font-size: clamp(28px,4.4vw,44px);
    line-height: 1.12;
    margin: 14px 0 12px;
    letter-spacing: -.02em
}

h1 span {
    color: var(--brand)
}

.lead {
    color: var(--muted);
    font-size: 17px;
    margin: 0 0 18px;
    max-width: 520px
}

.cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px
}

.cats span {
    background: var(--brand);
    color: var(--on-brand);
    font-size: 13px;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: 99px
}

.art {
    margin-top: 18px
}

.art svg {
    width: 100%;
    height: auto;
    max-width: 520px;
    display: block
}

.art text {
    font: 600 12px system-ui,sans-serif;
    fill: var(--text)
}

/* registration slot */
.reg {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(11,40,90,.12);
    overflow: hidden
}

.reg-h {
    background: var(--brand);
    color: var(--on-brand);
    padding: 16px 22px
}

.reg-h b {
    display: block;
    font-size: 18px
}

.reg-h small {
    opacity: .85
}

.reg-b {
    /* padding: 20px; */
}



.tabs {
    display: flex;
    gap: 6px;
    background: var(--card);
    border: 1px solid var(--line);
    padding: 6px;
    border-radius: 14px;
    overflow-x: auto
}

.tab {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
    border: 0;
    background: none;
    color: var(--muted);
    font: 600 14px inherit;
    font-family: inherit;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: .15s
}

.tab:hover {
    color: var(--text)
}

.tab[aria-selected="true"] {
    background: var(--brand);
    color: var(--on-brand)
}


@keyframes in {
    from {
        opacity: 0;
        transform: translateY(4px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

h2 {
    margin: 0 0 4px;
    font-size: 20px
}

.sub {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px
}

h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    margin: 26px 0 10px
}

.notes {
    display: grid;
    gap: 10px
}

.note {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 15px
}

.note .ic {
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700
}

.note.warn {
    background: var(--warn-bg);
    border-color: transparent;
    color: var(--warn)
}

.note.warn .ic {
    background: var(--accent);
    color: #2a1d00
}

.qms {
    border-left: 4px solid var(--brand);
    background: var(--brand-soft);
    padding: 14px 16px;
    border-radius: 0 10px 10px 0;
    font-size: 15px
}

.qms ol {
    margin: 8px 0 0;
    padding-left: 20px
}

.courses {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 12px
}

.course {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden
}

.course h4 {
    margin: 0;
    padding: 12px 14px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 14.5px
}

.course ul {
    margin: 0;
    padding: 10px 14px 12px 32px;
    font-size: 14.5px
}

.course h4 a {
    color: inherit;
    text-decoration: none
}

.course h4 a:hover {
    text-decoration: underline
}

.course.wide {
    grid-column: 1/-1
}

.course.wide ul {
    columns: 2;
    column-gap: 28px
}

@media(max-width: 640px) {
    .course.wide ul {
        columns:1
    }
}

.links {
    display: grid;
    gap: 10px
}

.link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    transition: .15s
}

.link:hover {
    border-color: var(--brand);
    background: var(--brand-soft)
}

.link .pdf {
    flex: none;
    background: #d93a3a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 8px;
    border-radius: 6px
}

.link b {
    display: block
}

.link small {
    color: var(--muted)
}

.link .go {
    margin-left: auto;
    color: var(--brand);
    font-weight: 700
}

.acc {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden
}

.acc summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    font-weight: 600
}

.acc summary::-webkit-details-marker {
    display: none
}

.acc summary:hover,.acc[open] summary {
    background: var(--brand-soft)
}

.acc summary small {
    display: block;
    font-weight: 400;
    color: var(--muted)
}

.acc .badge {
    flex: none;
    background: var(--brand);
    color: var(--on-brand);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 8px;
    border-radius: 6px
}

.acc .go {
    margin-left: auto;
    color: var(--brand);
    transition: transform .2s
}

.acc[open] .go {
    transform: rotate(180deg)
}

.acc-body {
    padding: 16px 18px;
    border-top: 1px solid var(--line);
    font-size: 15px
}

.acc-body p {
    margin: 0 0 8px
}

.acc-body .ph {
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 8px;
    padding: 12px
}

.acc-body a {
    font-size: 13.5px
}

.seg {
    display: inline-flex;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 4px;
    margin: 0 0 16px
}

.seg button {
    border: 0;
    background: none;
    font: 600 13.5px inherit;
    font-family: inherit;
    color: var(--muted);
    padding: 8px 16px;
    border-radius: 99px;
    cursor: pointer
}

.seg button.on {
    background: var(--brand);
    color: var(--on-brand)
}

.docs {
    display: grid;
    gap: 10px
}

.docs.show-in .fo,.docs.show-fo .in {
    display: none
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.chips span,.chips a {
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 13.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 99px;
    text-decoration: none
}

.req {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 4px 18px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14.5px
}

.req:last-child {
    border-bottom: 0
}

.req .lb {
    font-weight: 700
}

.or {
    color: var(--brand);
    font-size: 12px;
    margin: 0 3px
}

.acc-body h3:first-child {
    margin-top: 0
}

.impl {
    margin: 0;
    padding-left: 20px;
    font-size: 14.5px;
    color: var(--muted)
}

.impl li {
    padding: 2px 0
}

@media(max-width: 640px) {
    .req {
        grid-template-columns:1fr
    }
}

.steps {
    list-style: none;
    margin: 0;
    padding: 26px 6px 22px;
    display: flex;
    background: linear-gradient(135deg,var(--brand-soft),transparent);
    border: 1px solid var(--line);
    border-radius: 14px
}

.steps li {
    position: relative;
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 0 4px
}

.steps li::after {
    content: "";
    position: absolute;
    top: 28px;
    left: calc(50% + 34px);
    width: calc(100% - 68px);
    border-top: 2px dashed var(--brand);
    opacity: .45
}

.steps li:last-child::after {
    display: none
}

.ico {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: var(--card);
    border: 2px solid var(--brand);
    color: var(--brand);
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(11,79,156,.15)
}

.ico svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round
}

.num {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--accent);
    color: #2a1d00;
    font-size: 11.5px;
    font-weight: 700;
    display: grid;
    place-items: center
}

.st {
    font-size: 13px;
    line-height: 1.3
}

.st b {
    display: block;
    font-weight: 700
}

.st span {
    display: block;
    margin-top: 2px;
    font-size: 11.5px;
    color: var(--muted)
}

@media(max-width: 900px) {
    .steps {
        flex-direction:column;
        gap: 18px;
        padding: 22px 18px
    }

    .steps li {
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: left;
        padding: 0;
        min-height: 56px
    }

    .steps li::after {
        top: 58px;
        left: 27px;
        width: 0;
        height: calc(100% - 40px);
        border-top: 0;
        border-left: 2px dashed var(--brand)
    }

    .ico {
        margin: 0;
        flex: none
    }

    .st {
        font-size: 14.5px
    }

    .st span {
        font-size: 13px
    }
}

.dw.show-in .fo,.dw.show-fo .in {
    display: none
}

.dw h3:first-child {
    margin-top: 0
}

.pg {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px
}

.pgb {
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    font: 700 14px inherit;
    font-family: inherit;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: .15s
}

.pgb:hover {
    border-color: var(--brand);
    color: var(--brand)
}

.pgb.on {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--on-brand)
}

.pgp {
    display: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px
}

.pgp.on {
    display: block;
    animation: in .2s ease
}

.pgh {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px
}

.pgh h4 {
    margin: 0;
    font-size: 18px
}

.pgh small {
    color: var(--muted)
}

.pgh .seg {
    margin: 0
}

footer {
    border-top: 1px solid var(--line);
    background: var(--card);
    padding: 20px 0;
    font-size: 14px;
    color: var(--muted);
    text-align: center
}

@media(max-width: 860px) {
    .hero .wrap {
        grid-template-columns:1fr
    }

    .reg {
        max-width: 390px;
        width: 100%;
        margin: 0 auto
    }

    .art svg {
        max-width: 380px
    }
}

.help a {
    font-weight: 600;
    text-decoration: none;
    word-break: break-all
}

footer a {
    font-weight: 600;
    text-decoration: none
}

@media(max-width: 640px) {
    .help span {
        display:none
    }

    .top .wrap {
        flex-wrap: wrap
    }

    .help {
        text-align: left;
        font-size: 13px
    }
}


   .info .panel { display: none; }
   .info .panel.on { display: block; }
   .info .pgp { display: none; }
   .info .pgp.on { display: block; }
   .info .dw.show-fo .in, .dw.show-in .fo { display: none; }
.info .panel {
    display: none;
    margin-top: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
}
.s {
    color: var(--muted);
    margin: 0 0 20px;
}
h2.t {
    font-size: clamp(22px, 3vw, 30px);
    margin: 0 0 4px;
    letter-spacing: -.01em;
}