:root {
    --navy: #121d2b;
    --navy-soft: #1c2a3b;
    --steel: #334155;
    --text: #0f172a;
    --muted: #5d6b7c;
    --line: #d7dee8;
    --paper: #ffffff;
    --wash: #f3f6fa;
    --gold: #c79a2b;
    --gold-soft: #fff4d6;
    --green: #173f2a;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--wash);
    color: var(--text);
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.site-header {
    background: var(--navy);
    color: #fff;
    min-height: 74px;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 18px;
    white-space: nowrap;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.portal-link {
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    padding: 9px 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}

.button.primary {
    background: var(--gold);
    color: #111827;
}

.button.dark {
    background: var(--navy);
    color: #fff;
}

.button.light {
    background: #fff;
    color: var(--navy);
    border-color: var(--line);
}

.hero {
    min-height: calc(100vh - 74px);
    background-image: linear-gradient(90deg, rgba(9,16,28,0.9), rgba(9,16,28,0.66), rgba(9,16,28,0.18)), url('/static/images/security.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
}

.hero-inner {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    padding: 56px 0;
}

.eyebrow {
    margin: 0 0 10px 0;
    color: var(--gold);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.02;
    max-width: 760px;
    margin: 0;
}

.hero p {
    max-width: 680px;
    font-size: 18px;
    color: #e7edf5;
    margin: 18px 0 0 0;
}

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

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 180px));
    gap: 12px;
    margin-top: 36px;
}

.proof-card {
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 14px;
}

.proof-card strong {
    display: block;
    font-size: 24px;
}

.proof-card span {
    display: block;
    color: #d8e1ec;
    font-size: 13px;
}

.section {
    padding: 64px 24px;
}

.section.white {
    background: #fff;
}

.section.dark {
    background: var(--navy);
    color: #fff;
}

.section-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-header h2,
.page-hero h1,
.message-card h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.12;
}

.section-header p,
.page-hero p {
    color: var(--muted);
    max-width: 680px;
    margin: 8px 0 0 0;
}

.dark .section-header p {
    color: #cbd5e1;
}

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

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
}

.dark .card {
    background: var(--navy-soft);
    border-color: rgba(255,255,255,0.12);
}

.card h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
}

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

.dark .card p {
    color: #cbd5e1;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    align-items: center;
}

.image-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.image-panel img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.image-panel img:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 7;
}

.cta-band {
    background: var(--green);
    color: #fff;
    border-radius: 10px;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.cta-band h2 {
    margin: 0;
    font-size: 28px;
}

.cta-band p {
    margin: 6px 0 0 0;
    color: #d7eadf;
}

.page-hero {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 52px 24px;
}

.page-hero.compact {
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 22px;
}

.page-hero > div,
.form-shell,
.admin-shell {
    width: min(1060px, 100%);
    margin: 0 auto;
}

.form-shell {
    padding: 34px 24px 70px;
}

.notice-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--gold);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    align-items: center;
}

.notice-panel h2,
.form-intro h2 {
    margin: 0 0 6px 0;
}

.notice-panel p,
.form-intro p {
    margin: 0;
    color: var(--muted);
}

.mini-list {
    display: grid;
    gap: 8px;
}

.mini-list span {
    display: block;
    background: var(--gold-soft);
    border: 1px solid #f1d78b;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 800;
}

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px;
}

.form-intro {
    margin-bottom: 18px;
    max-width: 760px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

label {
    font-weight: 800;
    color: var(--steel);
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    margin-top: 6px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 11px 12px;
    font: inherit;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.full {
    grid-column: 1 / -1;
}

.site-footer {
    background: #0b1220;
    color: #dbe4ef;
    padding: 34px 24px;
}

.footer-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-inner strong {
    color: #fff;
}

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

.message-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.message-card {
    width: min(520px, 100%);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 28px;
    text-align: center;
}

.message-card img {
    width: 92px;
}

.admin-shell {
    padding: 30px 18px 70px;
}

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

.admin-section {
    margin-top: 20px;
}

.admin-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.admin-card h3 {
    margin-top: 0;
}

@media (max-width: 860px) {
    .site-header {
        position: static;
        padding: 14px;
    }

    .brand {
        width: 100%;
        justify-content: center;
    }

    .site-header nav {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .site-header nav a {
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.08);
        border-radius: 8px;
    }

    .hero {
        min-height: auto;
    }

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

    .hero-proof,
    .card-grid,
    .split,
    .notice-panel,
    .form-grid,
    .admin-columns {
        grid-template-columns: 1fr;
    }

    .section-header {
        display: block;
    }

    .image-panel {
        grid-template-columns: 1fr;
    }

    .image-panel img:first-child {
        aspect-ratio: 4 / 3;
    }
}
