:root {
    --ink: #151515;
    --muted: #5e646b;
    --paper: #f5f6f7;
    --white: #ffffff;
    --line: #dfe3e8;
    --blue: #008bd2;
    --blue-dark: #005f96;
    --red: #e1261c;
    --yellow: #ffe500;
    --accent: #e1261c;
    --green: #008bd2;
    --shadow: 0 16px 38px rgba(21, 21, 21, 0.12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

body {
    min-width: 320px;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--red) #e6ebef;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #e6ebef;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--red), var(--blue));
    border: 3px solid #e6ebef;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f04a3f, var(--blue-dark));
}

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

a {
    color: inherit;
}

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

.site-header {
    min-height: 82dvh;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(8, 14, 18, 0.84), rgba(8, 14, 18, 0.35)),
        url("header-glider.jpg") center / cover no-repeat;
    position: relative;
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--red), var(--yellow), var(--blue));
}

.navbar {
    width: min(1180px, calc(100% - 32px));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 20;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
}

.brand img {
    width: 58px;
    height: 48px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.94);
    border-radius: var(--radius);
    padding: 4px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    opacity: 0.9;
    position: relative;
    padding: 8px 0;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1px;
    height: 2px;
    background: var(--yellow);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.28s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    opacity: 1;
    color: var(--yellow);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.cms-link {
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    padding: 8px 13px;
}

.cms-link::after {
    left: 13px;
    right: 13px;
}

.menu-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--white);
}

.hero {
    width: min(1180px, calc(100% - 32px));
    min-height: calc(82dvh - 78px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 42px 0 76px;
}

.hero-content {
    max-width: 820px;
}

.eyebrow {
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(38px, 5.7vw, 70px);
    line-height: 1.02;
    letter-spacing: 0;
    max-width: 13ch;
}

.hero-content > p:not(.eyebrow) {
    max-width: 620px;
    margin-top: 20px;
    font-size: 18px;
}

.hero-actions,
.cms-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 12px 18px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
}

.button.primary {
    background: var(--red);
    color: var(--white);
}

.button.primary:hover,
.button.primary:focus-visible {
    background: #b91f17;
}

.button.secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.button.secondary.dark {
    color: var(--ink);
    border-color: var(--line);
    background: var(--white);
}

.button.danger {
    color: var(--white);
    background: #a93b30;
}

.button.compact {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 13px;
}

.section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading.wide {
    display: block;
    max-width: 860px;
}

.section-heading h2,
.section-heading h1,
.training-copy h2,
.history h2,
.contact h2 {
    font-size: clamp(28px, 3.25vw, 42px);
    line-height: 1.12;
    letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
    color: var(--muted);
    max-width: 680px;
    margin-top: 14px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: center;
}

.intro-grid > p {
    font-size: 20px;
    color: #33424b;
}

.quick-links {
    display: grid;
    gap: 10px;
    align-self: center;
}

.quick-links a {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    text-decoration: none;
    font-weight: 800;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.section-more {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.section-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.news-card,
.section-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(21, 21, 21, 0.07);
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-card-content,
.section-card {
    padding: 18px;
}

.news-card time,
.event-date {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

.news-card h3,
.section-card h3,
.event-card h3 {
    margin: 8px 0;
    font-size: 21px;
    line-height: 1.2;
}

.news-card p,
.section-card p,
.event-card p {
    color: var(--muted);
}

.text-link {
    margin-top: 14px;
    border: 0;
    color: var(--blue);
    background: transparent;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}

.section-card {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.section-card-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    min-height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-card-link:hover,
.section-card-link:focus-visible {
    transform: translateY(-4px);
}

.section-card .tag {
    width: fit-content;
    color: var(--white);
    background: var(--green);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.training-band {
    color: var(--white);
    background:
        linear-gradient(110deg, rgba(0, 95, 150, 0.96), rgba(0, 139, 210, 0.9)),
        var(--blue-dark);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
    gap: 42px;
    align-items: center;
    padding: 84px max(16px, calc((100vw - 1180px) / 2));
}

.training-copy p:not(.eyebrow) {
    color: #d8e4e8;
    margin-top: 18px;
    max-width: 650px;
}

.training-steps {
    display: grid;
    gap: 12px;
}

.training-step {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    align-items: start;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 16px;
}

.training-step strong {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--ink);
}

.training-step p {
    color: #d8e4e8;
}

.event-list {
    display: grid;
    gap: 12px;
}

.event-card {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 18px;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}

.info-hub {
    border-top: 1px solid var(--line);
}

.official-link-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.official-link-card {
    min-height: 150px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 8px 22px rgba(21, 21, 21, 0.06);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.official-link-card:hover,
.official-link-card:focus-visible {
    border-color: var(--blue);
    transform: translateY(-3px);
}

.official-link-card span {
    color: var(--blue-dark);
    font-weight: 800;
}

.official-link-card p {
    color: var(--muted);
    margin-top: 12px;
    font-size: 14px;
}

.history {
    background:
        linear-gradient(rgba(245, 246, 247, 0.92), rgba(245, 246, 247, 0.92)),
        url("an3.jpg") center / cover no-repeat;
    padding: 96px 16px;
}

.history-inner {
    width: min(900px, 100%);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(24px, 5vw, 54px);
    box-shadow: var(--shadow);
}

.history-inner > p:not(.eyebrow),
.history-more {
    color: var(--muted);
    margin-top: 16px;
}

.history-more {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    overflow: hidden;
    transition: grid-template-rows 0.24s ease, opacity 0.18s ease;
}

.history-more.open {
    grid-template-rows: 1fr;
    opacity: 1;
}

.history-more > div {
    min-height: 0;
    overflow: hidden;
}

.history-more p + p {
    margin-top: 14px;
}

.history-timeline {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.history-timeline-item {
    position: relative;
    border: 1px solid rgba(12, 91, 166, 0.16);
    border-left: 4px solid var(--red);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    padding: 16px 18px;
}

.history-timeline-item span {
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
}

.history-timeline-item h3 {
    margin-top: 5px;
    font-size: 18px;
}

.history-timeline-item p {
    margin-top: 8px;
    color: var(--muted);
}

.section-page-header {
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(9, 20, 26, 0.86), rgba(9, 20, 26, 0.46)),
        var(--section-image, url("header-glider.jpg")) center / cover no-repeat;
}

.section-page-hero {
    width: min(1180px, calc(100% - 32px));
    min-height: 420px;
    margin: 0 auto;
    display: grid;
    align-items: end;
    padding: 70px 0;
}

.section-page-hero h1 {
    max-width: 820px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1;
}

.section-page-hero p:not(.eyebrow) {
    max-width: 720px;
    margin-top: 20px;
    font-size: 20px;
}

.subpage-main {
    background: var(--paper);
}

.subpage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
}

.content-panel,
.notice-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(20px, 4vw, 36px);
    box-shadow: 0 8px 22px rgba(20, 32, 39, 0.08);
}

.content-panel h2,
.notice-panel h2 {
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
}

.content-panel p,
.notice-panel p {
    color: var(--muted);
}

.content-panel p,
.content-panel ul,
.notice-list {
    margin-top: 18px;
}

.content-panel ul {
    display: grid;
    gap: 10px;
    padding-left: 20px;
    color: var(--muted);
}

.notice-list {
    display: grid;
    gap: 12px;
}

.notice-item {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.notice-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.notice-item time {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

.notice-item h3 {
    margin-top: 4px;
    font-size: 18px;
    line-height: 1.2;
}

.section-nav-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.section-nav-strip a {
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 13px;
    text-decoration: none;
    font-weight: 800;
}

.gallery-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.gallery-toolbar span {
    color: var(--muted);
    font-weight: 800;
    min-width: 56px;
    text-align: center;
}

.gallery-toolbar button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 120px;
    gap: 14px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--blue-dark);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item span {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    color: var(--white);
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.55));
}

.gallery-item span {
    z-index: 1;
}

.gallery-grid.mosaic-a .gallery-item-1 {
    grid-area: 1 / 1 / 4 / 7;
}

.gallery-grid.mosaic-a .gallery-item-2 {
    grid-area: 1 / 7 / 3 / 10;
}

.gallery-grid.mosaic-a .gallery-item-3 {
    grid-area: 1 / 10 / 3 / 13;
}

.gallery-grid.mosaic-a .gallery-item-4 {
    grid-area: 3 / 7 / 4 / 13;
}

.gallery-grid.mosaic-a .gallery-item-5 {
    grid-area: 4 / 1 / 6 / 5;
}

.gallery-grid.mosaic-a .gallery-item-6 {
    grid-area: 4 / 5 / 6 / 9;
}

.gallery-grid.mosaic-a .gallery-item-7 {
    grid-area: 4 / 9 / 6 / 13;
}

.gallery-grid.mosaic-b .gallery-item-1 {
    grid-area: 1 / 1 / 3 / 5;
}

.gallery-grid.mosaic-b .gallery-item-2 {
    grid-area: 1 / 5 / 4 / 9;
}

.gallery-grid.mosaic-b .gallery-item-3 {
    grid-area: 1 / 9 / 3 / 13;
}

.gallery-grid.mosaic-b .gallery-item-4 {
    grid-area: 3 / 1 / 5 / 5;
}

.gallery-grid.mosaic-b .gallery-item-5 {
    grid-area: 4 / 5 / 5 / 9;
}

.gallery-grid.mosaic-b .gallery-item-6 {
    grid-area: 3 / 9 / 5 / 13;
}

.gallery-grid.mosaic-b .gallery-item-7 {
    grid-area: 5 / 1 / 7 / 13;
}

.gallery-grid.mosaic-c .gallery-item-1 {
    grid-area: 1 / 1 / 3 / 7;
}

.gallery-grid.mosaic-c .gallery-item-2 {
    grid-area: 1 / 7 / 3 / 13;
}

.gallery-grid.mosaic-c .gallery-item-3 {
    grid-area: 3 / 1 / 6 / 4;
}

.gallery-grid.mosaic-c .gallery-item-4 {
    grid-area: 3 / 4 / 6 / 10;
}

.gallery-grid.mosaic-c .gallery-item-5 {
    grid-area: 3 / 10 / 6 / 13;
}

.gallery-grid.mosaic-c .gallery-item-6 {
    grid-area: 6 / 1 / 8 / 7;
}

.gallery-grid.mosaic-c .gallery-item-7 {
    grid-area: 6 / 7 / 8 / 13;
}

.cms {
    border-top: 1px solid var(--line);
}

.cms-layout {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 18px;
    align-items: start;
}

.cms-login,
.signup-form,
.schedule-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(18px, 3vw, 28px);
    box-shadow: 0 8px 22px rgba(21, 21, 21, 0.07);
}

.cms-login {
    max-width: 760px;
}

.cms-locked .cms-layout {
    display: none;
}

.cms-nav {
    display: grid;
    gap: 8px;
}

.cms-main {
    min-width: 0;
}

.cms-tab {
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px;
    cursor: pointer;
    text-align: left;
    font-weight: 800;
}

.cms-tab.active {
    color: var(--white);
    background: var(--red);
    border-color: var(--red);
}

.cms-panel {
    display: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}

.cms-panel-status {
    color: var(--muted);
    min-height: 26px;
    margin-bottom: 12px;
}

.cms-panel.active {
    display: block;
}

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

.field {
    display: grid;
    gap: 7px;
}

.field.full,
.cms-actions,
.cms-divider,
.cms-record-header {
    grid-column: 1 / -1;
}

.field span,
.cms-divider,
.cms-record-header {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.cms-record-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #f8fafb;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    margin-top: 8px;
}

.cms-record-header:first-child {
    margin-top: 0;
}

.cms-record-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cms-record-body {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 14px;
    margin-top: -14px;
    background: var(--white);
}

.cms-record-body.open {
    display: grid;
}

.image-field {
    display: grid;
    grid-template-columns: 1fr minmax(160px, 220px);
    gap: 10px;
}

.image-field label {
    display: grid;
    gap: 7px;
}

.image-upload {
    align-self: end;
}

.image-upload input {
    padding: 8px;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 11px 12px;
    color: var(--ink);
    background: #fbfbf8;
}

.field textarea {
    resize: vertical;
    min-height: 96px;
}

.cms-status {
    align-self: center;
    color: var(--muted);
    font-weight: 800;
}

.cms-status[data-tone="success"] {
    color: #237a46;
}

.cms-status[data-tone="error"] {
    color: #a93b30;
}

.cms-status[data-tone="pending"] {
    color: var(--blue-dark);
}

.signup-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 24px;
    align-items: start;
}

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

.schedule-panel h3 {
    font-size: 26px;
    line-height: 1.12;
}

.schedule-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.schedule-item {
    border-left: 4px solid var(--blue);
    background: #f8fafb;
    border-radius: var(--radius);
    padding: 12px 14px;
}

.schedule-item span {
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
}

.schedule-item h4 {
    margin-top: 4px;
}

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

.schedule-item strong {
    display: inline-block;
    margin-top: 8px;
    color: var(--blue-dark);
    font-size: 13px;
}

.applications-list {
    display: grid;
    gap: 12px;
}

.application-card {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 320px);
    gap: 12px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    background: #fbfbf8;
}

.application-card time {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

.application-card h3 {
    margin-top: 4px;
}

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

.application-card > p {
    grid-column: 1 / -1;
}

.application-card a {
    display: block;
    color: var(--blue-dark);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.application-contact {
    display: grid;
    align-content: start;
    gap: 10px;
}

.application-contact .button {
    width: 100%;
    text-align: center;
}

.application-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.application-actions .field {
    width: min(100%, 280px);
}

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

.contact {
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(21, 21, 21, 0.98), rgba(0, 95, 150, 0.92)),
        var(--ink);
    display: grid;
    grid-template-columns: 1fr minmax(280px, 420px);
    gap: 42px;
    align-items: center;
    padding: 76px max(16px, calc((100vw - 1180px) / 2));
}

.contact-copy,
.contact-box {
    min-width: 0;
}

.contact-copy p:not(.eyebrow) {
    color: #d8e4e8;
    margin-top: 18px;
}

.contact-box {
    display: grid;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: 22px;
}

.contact-box a,
.contact-box span {
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.contact-box strong {
    font-size: 20px;
}

.contact-header {
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(0, 51, 82, 0.94), rgba(0, 95, 150, 0.72)),
        url("header-glider.jpg") center 48% / cover;
}

.subpage-hero {
    width: min(1180px, calc(100% - 32px));
    min-height: 330px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 70px 0 58px;
}

.subpage-hero h1 {
    max-width: 760px;
    margin-top: 8px;
    font-size: clamp(42px, 7vw, 78px);
}

.subpage-hero > p:not(.eyebrow) {
    max-width: 650px;
    margin-top: 14px;
    color: #e0edf2;
    font-size: 18px;
}

.contact-page {
    background: #f3f5f2;
}

.contact-directory {
    position: relative;
    overflow: hidden;
    padding-top: 82px;
    padding-bottom: 90px;
    background:
        linear-gradient(90deg, rgba(0, 95, 150, 0.055) 1px, transparent 1px),
        linear-gradient(rgba(0, 95, 150, 0.055) 1px, transparent 1px),
        #f4f6f3;
    background-size: 34px 34px;
}

.contact-directory::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(244, 246, 243, 0.18), #f4f6f3 88%);
    pointer-events: none;
}

.contact-directory > * {
    position: relative;
}

.contact-directory .section-heading {
    max-width: 760px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.contact-person {
    position: relative;
    min-width: 0;
    min-height: 220px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 5px solid var(--blue);
    border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(0, 43, 67, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.contact-person:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 95, 150, 0.38);
    box-shadow: 0 20px 42px rgba(0, 43, 67, 0.13);
}

.contact-person:nth-child(4),
.contact-person:nth-child(5) {
    border-top-color: var(--red);
}

.contact-person > span {
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-person h3 {
    margin: 10px 0 24px;
    font-size: 24px;
}

.contact-person a {
    display: flex;
    align-items: center;
    min-height: 34px;
    margin-top: 7px;
    color: var(--blue-dark);
    font-weight: 800;
    text-decoration-color: rgba(0, 95, 150, 0.35);
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.contact-details-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    padding: 70px max(16px, calc((100vw - 1180px) / 2));
    color: var(--white);
    background:
        linear-gradient(105deg, #101417 0 49.8%, #003d62 50% 100%);
}

.contact-address address {
    margin: 18px 0 28px;
    color: #d7e3e7;
    font-style: normal;
    font-size: 18px;
    line-height: 1.7;
}

.bank-details dl {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.bank-details dl > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.bank-details dt {
    color: #9db7c3;
}

.bank-details dd {
    margin: 0;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.bank-details .bank-account {
    margin-top: 6px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.social-links a,
.social-links > span {
    display: grid;
    min-height: 120px;
    align-content: center;
    padding: 24px;
    color: var(--white);
    background: var(--blue-dark);
    border-radius: var(--radius);
    font-size: 22px;
    font-weight: 900;
    text-decoration: none;
    transition: transform 180ms ease, background-color 180ms ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    background: var(--red);
}

.social-links small {
    margin-top: 6px;
    color: #c8dbe3;
    font-size: 13px;
}

.user-management {
    display: grid;
    gap: 16px;
}

.users-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    color: var(--white);
    background: var(--ink);
    border-radius: var(--radius);
}

.users-toolbar h2 {
    margin-top: 4px;
}

.users-toolbar p:not(.eyebrow) {
    margin-top: 4px;
    color: #b9c8ce;
    font-size: 13px;
}

.user-global-status:empty {
    display: none;
}

.user-create-form,
.user-card {
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.user-create-form[hidden] {
    display: none;
}

.user-create-form > .cms-actions,
.user-card-body > .cms-actions {
    position: sticky;
    bottom: 10px;
    z-index: 3;
    margin-top: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 43, 67, 0.1);
}

.cms-panel-heading,
.user-card-summary {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.cms-panel-heading > p {
    max-width: 480px;
    color: var(--muted);
}

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

.permissions-fieldset {
    margin: 20px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.permissions-fieldset legend {
    padding: 0 8px;
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 900;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.permission-option,
.user-active {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 9px 11px;
    background: #f3f6f6;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 800;
}

.permission-option input,
.user-active input {
    width: 17px;
    height: 17px;
    accent-color: var(--blue);
}

.users-list {
    display: grid;
    gap: 10px;
}

.user-card {
    padding: 0;
    overflow: hidden;
}

.user-card-summary {
    position: relative;
    align-items: center;
    margin: 0;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    transition: background-color 160ms ease;
}

.user-card-summary::-webkit-details-marker {
    display: none;
}

.user-card-summary:hover {
    background: #f5f8f8;
}

.user-card[open] .user-card-summary {
    background: #eef4f5;
    border-bottom: 1px solid var(--line);
}

.user-card-body {
    padding: 20px;
}

.user-card-body > .user-active {
    width: fit-content;
    margin-bottom: 16px;
}

.account-state {
    margin-left: auto;
    padding: 6px 9px;
    color: #176a31;
    background: #e5f5e9;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 900;
}

.account-state[data-active="false"] {
    color: #8b1e2c;
    background: #fae9ec;
}

.user-expand-label {
    min-width: 70px;
    color: var(--blue-dark);
    font-size: 13px;
    font-weight: 900;
    text-align: right;
}

.user-card[open] .user-expand-label {
    font-size: 0;
}

.user-card[open] .user-expand-label::after {
    content: "Zwiń";
    font-size: 13px;
}

.user-role {
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.user-card h3 {
    margin-top: 4px;
}

.user-card-summary p {
    margin-top: 4px;
    color: var(--muted);
}

.permissions-help {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.empty-state {
    padding: 30px;
    color: var(--muted);
    background: var(--white);
    border: 1px dashed var(--line);
    text-align: center;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 24px max(16px, calc((100vw - 1180px) / 2));
    background: #111111;
    color: #c6ced2;
}

.site-footer a {
    color: #c6ced2;
}

.cms-page {
    background: #eef1ed;
}

.cms-header {
    color: var(--white);
    background: var(--ink);
}

.cms-navbar {
    min-height: 76px;
}

.cms-static-nav {
    display: flex;
}

.cms .section-heading {
    margin-bottom: 28px;
}

.cms-dark-action {
    color: var(--ink);
    border-color: var(--line);
    background: var(--white);
}

.article-modal {
    width: min(760px, calc(100% - 28px));
    max-height: min(86dvh, 820px);
    border: 0;
    border-radius: var(--radius);
    padding: 0 0 24px;
    box-shadow: var(--shadow);
    color: var(--ink);
    overflow: auto;
    position: fixed;
    inset: 50% auto auto 50%;
    margin: 0;
    transform: translate(-50%, -46%) scale(0.96);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.article-modal[open] {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.article-modal::backdrop {
    background: rgba(10, 18, 23, 0.62);
    backdrop-filter: blur(3px);
}

.article-modal img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
}

.article-modal h2,
.article-modal p {
    margin: 14px 24px 0;
}

.article-modal .eyebrow {
    margin-top: 22px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

@media (max-width: 980px) {
    .hero,
    .intro-grid,
    .training-band,
    .contact,
    .signup-layout,
    .subpage-grid {
        grid-template-columns: 1fr;
    }

    .news-grid,
    .section-cards,
    .official-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-card {
        grid-template-columns: 120px 1fr;
    }

    .event-card .button {
        grid-column: 1 / -1;
        width: fit-content;
    }
}

@media (max-width: 760px) {
    .contact-grid,
    .contact-details-band,
    .social-links,
    .user-form-grid,
    .permission-grid {
        grid-template-columns: 1fr;
    }

    .contact-details-band {
        gap: 42px;
        background: linear-gradient(180deg, #101417 0 49.8%, #003d62 50% 100%);
    }

    .cms-panel-heading,
    .user-card-summary,
    .users-toolbar {
        flex-direction: column;
    }

    .user-card-summary {
        align-items: stretch;
    }

    .account-state {
        margin-left: 0;
        width: fit-content;
    }

    .user-expand-label {
        position: absolute;
        top: 18px;
        right: 18px;
    }

    .application-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .application-actions .field {
        width: 100%;
    }

    .navbar {
        min-height: 70px;
    }

    .brand span {
        max-width: 170px;
        line-height: 1.2;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(9, 20, 26, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--radius);
        padding: 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 12px;
    }

    .nav-links a::after {
        left: 12px;
        right: 12px;
    }

    .cms-link {
        border-radius: var(--radius);
    }

    .hero {
        min-height: auto;
        padding: 48px 0 70px;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero-content > p:not(.eyebrow),
    .intro-grid > p {
        font-size: 17px;
    }

    .section {
        padding: 58px 0;
    }

    .news-grid,
    .section-cards,
    .official-link-grid,
    .cms-layout,
    .cms-form,
    .cms-record-body,
    .image-field,
    .signup-form,
    .application-card {
        grid-template-columns: 1fr;
    }

    .cms-nav,
    .cms-panel,
    .cms-panel-status {
        grid-column: 1;
        grid-row: auto;
    }

    .application-card > p {
        grid-column: auto;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(220px, auto);
    }

    .gallery-grid.mosaic-a .gallery-item,
    .gallery-grid.mosaic-b .gallery-item,
    .gallery-grid.mosaic-c .gallery-item {
        grid-column: span 1;
        grid-row: span 1;
        grid-area: auto;
        min-height: 240px;
    }

    .event-card {
        grid-template-columns: 1fr;
    }

    .contact {
        width: 100%;
        overflow-x: hidden;
        padding: 58px 16px;
    }

    .contact-copy,
    .contact-box {
        width: 100%;
    }

    .site-footer {
        flex-direction: column;
    }

    .cms-static-nav {
        display: flex;
        position: static;
        background: transparent;
        border: 0;
        padding: 0;
    }

    .cms-static-nav a {
        padding: 10px 8px;
    }
}
