:root {
    --color-primary: #00bdb1;
    --color-primary-dark: #007c78;
    --color-primary-deep: #005b5a;
    --color-primary-soft: #d9fbf8;
    --color-ink: #123238;
    --color-ink-soft: #35575d;
    --color-line: #d7e4e5;
    --color-paper: #ffffff;
    --color-wash: #f4fbfa;
    --color-warm: #f8f5ef;
    --color-accent: #b44d3f;
    --color-amber: #ba7a16;
    --shadow-sm: 0 10px 30px rgba(18, 50, 56, 0.09);
    --shadow-lg: 0 24px 70px rgba(18, 50, 56, 0.16);
    --radius: 8px;
    --header-height: 116px;
    --container: 1180px;
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--color-ink);
    background: var(--color-paper);
    font-size: 16px;
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration-color: rgba(0, 125, 120, 0.35);
    text-underline-offset: 0.16em;
}

a:hover {
    color: var(--color-primary-deep);
    text-decoration-color: currentColor;
}

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

:focus-visible {
    outline: 3px solid #0b6f69;
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: var(--color-paper);
    background: var(--color-ink);
    border-radius: var(--radius);
    transform: translateY(-140%);
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.container.narrow {
    width: min(100% - 40px, 820px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 8px 22px rgba(18, 50, 56, 0.05);
    backdrop-filter: blur(14px);
}

.institutional-strip {
    color: var(--color-paper);
    background: var(--color-primary-deep);
    font-size: 0.875rem;
}

.strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    gap: 16px;
}

.strip-inner a {
    color: var(--color-paper);
}

.header-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 82px;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-ink);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: var(--color-paper);
    background: var(--color-primary-deep);
    border: 4px solid var(--color-primary);
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
}

.brand-copy {
    display: grid;
    gap: 1px;
}

.brand-copy strong {
    font-size: 1.05rem;
    line-height: 1.2;
}

.brand-copy span {
    color: var(--color-ink-soft);
    font-size: 0.86rem;
}

.site-nav {
    justify-self: end;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-item {
    position: static;
}

.nav-link-group {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 8px 0 12px;
    color: var(--color-ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
}

.nav-expand {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--color-ink);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.nav-expand::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.nav-item.is-open .nav-expand::after {
    transform: rotate(225deg) translateY(-1px);
}

.nav-item.is-open .nav-link,
.nav-link:hover,
.nav-expand:hover {
    color: var(--color-primary-deep);
}

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

.join-button,
.button-primary {
    color: var(--color-ink);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.join-button:hover,
.button-primary:hover {
    color: var(--color-paper);
    background: var(--color-primary-deep);
    border-color: var(--color-primary-deep);
}

.button-secondary {
    color: var(--color-primary-deep);
    background: var(--color-paper);
    border-color: var(--color-primary-dark);
}

.button-secondary:hover {
    color: var(--color-paper);
    background: var(--color-primary-deep);
}

.text-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary-deep);
    font-weight: 800;
}

.text-cta::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--color-paper);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
}

.nav-toggle span:not(.sr-only),
.nav-toggle span:not(.sr-only)::before,
.nav-toggle span:not(.sr-only)::after {
    display: block;
    width: 18px;
    height: 2px;
    margin-inline: auto;
    background: var(--color-ink);
    content: "";
}

.nav-toggle span:not(.sr-only)::before {
    transform: translateY(-6px);
}

.nav-toggle span:not(.sr-only)::after {
    transform: translateY(4px);
}

.mega-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 1px);
    z-index: 90;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-item.is-open .mega-panel {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.95fr) minmax(260px, 1.1fr) minmax(280px, 1.1fr);
    gap: 0;
    min-height: 334px;
    margin-top: 1px;
    overflow: hidden;
    background: var(--color-paper);
    border: 1px solid var(--color-line);
    border-top: 4px solid var(--color-primary);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
}

.mega-col {
    padding: 28px;
}

.mega-col + .mega-col {
    border-left: 1px solid var(--color-line);
}

.mega-col-primary {
    background: var(--color-wash);
}

.mega-col-context {
    background: var(--color-warm);
}

.mega-kicker,
.eyebrow,
.meta {
    margin: 0 0 10px;
    color: var(--color-primary-deep);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.mega-primary-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 12px;
    color: var(--color-ink);
    text-decoration: none;
    border-left: 4px solid transparent;
    border-radius: var(--radius);
}

.mega-primary-link.is-active,
.mega-primary-link:hover,
.mega-primary-link:focus-visible {
    color: var(--color-primary-deep);
    background: var(--color-paper);
    border-left-color: var(--color-primary);
}

.mega-secondary-group,
.mega-context {
    display: none;
}

.mega-secondary-group.is-active,
.mega-context.is-active {
    display: block;
}

.mega-secondary-group h3,
.mega-context h3 {
    margin: 0 0 16px;
    font-size: 1.3rem;
    line-height: 1.25;
}

.mega-secondary-group ul {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mega-secondary-group a {
    display: block;
    padding: 10px 0;
    color: var(--color-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--color-line);
}

.mega-secondary-group a:hover {
    color: var(--color-primary-deep);
}

.mega-context p {
    color: var(--color-ink-soft);
}

.mega-context-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 16px;
    border-radius: var(--radius);
}

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

.hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 620px;
    height: calc(100vh - var(--header-height) - 64px);
    max-height: 760px;
    overflow: hidden;
    color: var(--color-paper);
    background: var(--color-ink);
}

.hero::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(18, 50, 56, 0.88) 0%, rgba(18, 50, 56, 0.72) 42%, rgba(18, 50, 56, 0.18) 100%);
    content: "";
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-block: 96px 84px;
}

.hero-content > * {
    max-width: 720px;
}

.hero .eyebrow {
    color: var(--color-primary-soft);
}

.hero h1,
.page-hero h1,
.article-hero h1 {
    margin: 0;
    font-size: 4.7rem;
    line-height: 1.03;
    letter-spacing: 0;
}

.hero p:not(.eyebrow) {
    margin: 22px 0 0;
    font-size: 1.2rem;
}

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

.section {
    padding-block: 76px;
}

.section-muted {
    background: var(--color-wash);
}

.section-intro,
.section-join {
    background: var(--color-warm);
}

.split,
.join-band,
.defense-band {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.split h2,
.section-head h2,
.defense-band h2,
.join-band h2 {
    margin: 0;
    font-size: 2.55rem;
    line-height: 1.12;
    letter-spacing: 0;
}

.split p:last-child,
.defense-band p {
    margin: 0;
    color: var(--color-ink-soft);
    font-size: 1.06rem;
}

.section-head {
    max-width: 760px;
    margin-bottom: 30px;
}

.section-head-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    max-width: none;
    gap: 24px;
}

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

.service-card,
.news-card {
    min-height: 250px;
    padding: 26px;
    background: var(--color-paper);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.service-card {
    display: grid;
    align-content: start;
}

.service-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    color: var(--color-primary-deep);
    background: var(--color-primary-soft);
    border: 1px solid rgba(0, 189, 177, 0.45);
    border-radius: 50%;
    font-weight: 850;
}

.service-card h3,
.news-card h2,
.news-card h3 {
    margin: 0 0 12px;
    font-size: 1.28rem;
    line-height: 1.25;
}

.service-card p,
.news-card p {
    color: var(--color-ink-soft);
}

.service-card a,
.news-card a {
    font-weight: 800;
}

.service-card-link {
    position: relative;
}

.service-card-link h3 a {
    text-decoration: none;
}

.service-card-link:hover {
    border-color: rgba(0, 125, 120, 0.42);
}

.service-group + .service-group {
    margin-top: 58px;
}

.service-grid-list {
    align-items: stretch;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 52px;
    align-items: start;
}

.service-main {
    display: grid;
    gap: 24px;
}

.service-section {
    padding: 28px;
    background: var(--color-paper);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.service-section .eyebrow {
    margin-bottom: 14px;
}

.service-section ul {
    display: grid;
    gap: 10px;
    padding-left: 1.2rem;
    color: var(--color-ink-soft);
}

.service-contact-panel {
    display: grid;
    gap: 12px;
}

.service-contact-panel p {
    margin: 0;
    color: var(--color-ink-soft);
}

.section-defense {
    background: var(--color-primary-deep);
    color: var(--color-paper);
}

.section-defense .eyebrow,
.section-defense .check-list li::before {
    color: var(--color-primary-soft);
}

.section-defense p {
    color: rgba(255, 255, 255, 0.82);
}

.check-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 28px;
}

.check-list li::before {
    position: absolute;
    left: 0;
    content: "✓";
    font-weight: 900;
}

.join-band {
    align-items: center;
}

.join-band .button {
    justify-self: end;
}

.page-hero,
.article-hero {
    padding-block: 82px;
    background: linear-gradient(180deg, var(--color-wash), var(--color-paper));
    border-bottom: 1px solid var(--color-line);
}

.page-hero p:not(.eyebrow),
.article-hero p:not(.eyebrow, .meta) {
    color: var(--color-ink-soft);
    font-size: 1.15rem;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 52px;
    align-items: start;
}

.content-body {
    color: var(--color-ink);
}

.content-body h2 {
    margin: 1.7em 0 0.55em;
    font-size: 1.85rem;
    line-height: 1.2;
}

.content-body h2:first-child {
    margin-top: 0;
}

.content-body h3 {
    margin: 1.3em 0 0.45em;
    font-size: 1.22rem;
}

.content-body p {
    color: var(--color-ink-soft);
}

.side-panel,
.contact-form,
.contact-info {
    padding: 26px;
    background: var(--color-paper);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.side-panel {
    position: sticky;
    top: calc(var(--header-height) + 22px);
}

.side-panel h2,
.contact-form h2,
.contact-info h2 {
    margin: 0 0 16px;
    font-size: 1.25rem;
}

.side-panel ul {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0 0 22px;
    list-style: none;
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.category-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    color: var(--color-primary-deep);
    background: var(--color-paper);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    font-weight: 800;
    text-decoration: none;
}

.category-nav a.is-active,
.category-nav a:hover {
    color: var(--color-paper);
    background: var(--color-primary-deep);
    border-color: var(--color-primary-deep);
}

.news-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 18px;
    border-radius: calc(var(--radius) - 2px);
}

.article-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    margin-top: 42px;
    border-radius: var(--radius);
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--color-primary-deep);
    font-weight: 800;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 28px;
    align-items: start;
}

.contact-info address {
    display: grid;
    gap: 8px;
    font-style: normal;
}

.contact-info strong {
    margin-top: 12px;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.field span,
.consent span {
    font-weight: 760;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--color-ink);
    background: var(--color-paper);
    border: 1px solid #b9cfd0;
    border-radius: var(--radius);
}

.field textarea {
    resize: vertical;
}

.consent {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    margin: 10px 0 20px;
}

.consent input {
    width: 18px;
    height: 18px;
    margin-top: 4px;
}

.map-placeholder {
    min-height: 180px;
    margin-top: 24px;
    padding: 24px;
    background:
        linear-gradient(0deg, rgba(0, 91, 90, 0.08), rgba(0, 91, 90, 0.08)),
        repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(0, 189, 177, 0.14) 12px, rgba(0, 189, 177, 0.14) 13px);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
}

.map-placeholder span {
    display: block;
    color: var(--color-primary-deep);
    font-weight: 850;
}

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

.document-item {
    display: grid;
    gap: 4px;
    padding: 18px;
    background: var(--color-paper);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    text-decoration: none;
}

.document-item span {
    font-weight: 850;
}

.document-item small {
    color: var(--color-ink-soft);
}

.empty-state {
    padding: 22px;
    color: var(--color-ink-soft);
    background: var(--color-wash);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
}

.flash {
    margin-top: 16px;
    padding: 14px 16px;
    color: var(--color-primary-deep);
    background: var(--color-primary-soft);
    border: 1px solid rgba(0, 125, 120, 0.3);
    border-radius: var(--radius);
}

.flash--error {
    color: #7f2419;
    background: #fff1ee;
    border-color: rgba(180, 77, 63, 0.38);
}

.site-footer {
    padding-block: 58px 24px;
    color: rgba(255, 255, 255, 0.84);
    background: var(--color-ink);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 30px;
}

.site-footer a {
    color: var(--color-paper);
}

.footer-brand {
    color: var(--color-paper);
    font-weight: 850;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: var(--color-paper);
    font-size: 1rem;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.site-footer address {
    font-style: normal;
}

.footer-small {
    color: rgba(255, 255, 255, 0.64);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 42px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.92rem;
}

@media (max-width: 1080px) {
    .header-main {
        grid-template-columns: auto auto auto;
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
        justify-self: end;
    }

    .site-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: none;
        max-height: calc(100vh - var(--header-height));
        overflow: auto;
        background: var(--color-paper);
        border-top: 1px solid var(--color-line);
        box-shadow: var(--shadow-lg);
    }

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

    .nav-list {
        display: grid;
        width: min(100% - 40px, var(--container));
        margin-inline: auto;
        padding: 12px 0 24px;
    }

    .nav-link-group {
        display: grid;
        grid-template-columns: 1fr 44px;
        width: 100%;
        border-bottom: 1px solid var(--color-line);
    }

    .nav-link {
        padding-inline: 0;
    }

    .nav-expand {
        width: 44px;
        height: 44px;
    }

    .mega-panel {
        position: static;
        display: none;
        visibility: visible;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .nav-item.is-open .mega-panel {
        display: block;
    }

    .mega-grid {
        grid-template-columns: 1fr;
        min-height: 0;
        margin: 0 0 12px;
        border-top-width: 2px;
        box-shadow: none;
    }

    .mega-col + .mega-col {
        border-left: 0;
        border-top: 1px solid var(--color-line);
    }

    .join-button {
        justify-self: end;
    }

    .hero {
        min-height: 580px;
        height: calc(100vh - var(--header-height) - 56px);
    }

    .service-grid,
    .news-grid,
    .news-grid-wide,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-layout,
    .contact-grid,
    .service-detail-grid {
        grid-template-columns: 1fr;
    }

    .side-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 116px;
    }

    .container,
    .container.narrow {
        width: min(100% - 28px, var(--container));
    }

    .institutional-strip {
        font-size: 0.78rem;
    }

    .strip-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        min-height: 52px;
        gap: 2px;
        padding-block: 6px;
    }

    .header-main {
        min-height: 74px;
        gap: 10px;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
        font-size: 0.72rem;
    }

    .brand-copy strong {
        font-size: 0.95rem;
    }

    .brand-copy span {
        font-size: 0.78rem;
    }

    .join-button {
        display: none;
    }

    .hero {
        min-height: 0;
        height: auto;
    }

    .hero::after {
        background: linear-gradient(180deg, rgba(18, 50, 56, 0.86) 0%, rgba(18, 50, 56, 0.78) 54%, rgba(18, 50, 56, 0.5) 100%);
    }

    .hero-content {
        padding-block: 72px 56px;
    }

    .hero h1,
    .page-hero h1,
    .article-hero h1 {
        font-size: 2.35rem;
    }

    .hero p:not(.eyebrow) {
        font-size: 1rem;
    }

    .section {
        padding-block: 54px;
    }

    .split,
    .join-band,
    .defense-band,
    .service-grid,
    .news-grid,
    .news-grid-wide,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-head-row,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .split h2,
    .section-head h2,
    .defense-band h2,
    .join-band h2 {
        font-size: 2rem;
    }

    .join-band .button {
        justify-self: start;
    }

    .mega-col {
        padding: 20px;
    }

    .service-card,
    .news-card,
    .side-panel,
    .contact-form,
    .contact-info {
        padding: 20px;
    }
}
