:root {
    --navy: #06284b;
    --blue: #0b416f;
    --gold: #c8a15a;
    --ink: #152434;
    --muted: #64748b;
    --line: #dbe4ec;
    --paper: #f5f8fb;
    --white: #fff;
    --danger: #a52828;
    --radius: 18px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; }
button, input, select { font: inherit; }

.site-header {
    height: 82px;
    padding: 0 max(24px, calc((100vw - 1220px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--navy);
    color: white;
    border-bottom: 3px solid var(--gold);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
    width: 46px; height: 46px; border: 2px solid var(--gold); color: var(--gold);
    border-radius: 50%; display: grid; place-items: center; font: 700 25px Georgia, serif;
}
.brand strong { display: block; font: 700 21px Georgia, serif; letter-spacing: .07em; color: var(--gold); }
.brand small { display: block; margin-top: 2px; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
nav { display: flex; gap: 24px; }
nav a { text-decoration: none; font-weight: 650; font-size: 14px; opacity: .9; }
nav a:hover { color: var(--gold); }

main { min-height: calc(100vh - 150px); }
.hero {
    max-width: 1220px; margin: 0 auto; padding: 80px 24px;
    display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px;
}
.hero-copy h1, .form-heading h1, .success-card h1 {
    margin: 12px 0 20px; font-family: Georgia, serif; font-size: clamp(38px, 5.5vw, 70px);
    line-height: 1.03; color: var(--navy); letter-spacing: -.025em;
}
.hero-copy p { max-width: 650px; font-size: 18px; line-height: 1.75; color: var(--muted); }
.eyebrow { color: #8b6a2f; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; font-size: 12px; }
.trust-row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.trust-row span { border: 1px solid var(--line); background: white; padding: 9px 14px; border-radius: 999px; font-size: 12px; font-weight: 750; }
.hero-panel { background: white; padding: 30px; border-radius: 26px; box-shadow: 0 24px 70px rgba(3, 38, 70, .12); }
.hero-panel h2 { margin: 0 0 20px; font: 700 24px Georgia, serif; color: var(--navy); }
.choice-card {
    display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center;
    margin-top: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 16px;
    text-decoration: none; transition: .2s ease;
}
.choice-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 12px 30px rgba(6, 40, 75, .1); }
.choice-icon { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; background: var(--navy); color: var(--gold); font-weight: 800; }
.choice-card strong { display: block; color: var(--navy); margin-bottom: 6px; }
.choice-card small { color: var(--muted); line-height: 1.45; }
.choice-card b { color: var(--gold); font-size: 24px; }
.features { max-width: 1220px; margin: 0 auto 80px; padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.features article { padding: 26px; border-top: 3px solid var(--gold); background: white; border-radius: 0 0 14px 14px; }
.features article > strong { color: var(--gold); font-size: 13px; }
.features h3 { color: var(--navy); margin: 10px 0 8px; }
.features p { color: var(--muted); line-height: 1.6; margin: 0; }

.form-shell, .admin-shell { max-width: 1180px; margin: 0 auto; padding: 55px 24px 80px; }
.form-heading { margin-bottom: 28px; }
.form-heading > a { display: inline-block; margin-bottom: 26px; color: var(--blue); font-weight: 700; text-decoration: none; }
.form-heading h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 12px; }
.form-heading p { color: var(--muted); font-size: 17px; }
.identity-form { display: grid; gap: 20px; }
.form-section { overflow: hidden; border-radius: var(--radius); background: white; border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(6, 40, 75, .04); }
.form-section h2 { margin: 0; padding: 15px 20px; color: white; background: var(--navy); font-size: 17px; display: flex; align-items: center; gap: 12px; }
.form-section h2 span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: 13px; }
.form-section h3 { color: var(--blue); margin: 8px 0 16px; }
.section-body { padding: 24px; }
.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span, .upload > span, .sub-label { font-size: 13px; color: #334155; font-weight: 750; }
.field b { color: #b42318; }
.field input, .field select {
    width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); background: #fbfdff;
    border: 1px solid #cfdbe5; border-radius: 10px; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 161, 90, .18); }
.checks-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; line-height: 1.4; }
.check input { margin-top: 2px; accent-color: var(--blue); width: 16px; height: 16px; flex: none; }
.declaration { padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdff; }
.upload-grid { margin-top: 8px; }
.upload {
    min-height: 82px; padding: 15px; display: flex; flex-direction: column; justify-content: center; gap: 9px;
    border: 1px dashed #9db0c2; border-radius: 12px; background: #f8fbfd;
}
.upload input { font-size: 12px; }
.services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.services .check { padding: 13px; background: #f8fbfd; border: 1px solid var(--line); border-radius: 10px; }
.authorized-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr 1fr; gap: 10px; padding: 14px; margin-bottom: 10px; background: #f8fbfd; border-radius: 12px; }
.submit-bar {
    position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between;
    gap: 20px; padding: 18px 20px; color: white; background: rgba(6, 40, 75, .96);
    backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.2); border-radius: 16px; box-shadow: 0 15px 35px rgba(6, 40, 75, .25);
}
.submit-bar span { font-size: 13px; opacity: .85; }
button, .button {
    display: inline-block; border: 0; border-radius: 10px; padding: 13px 20px; color: var(--navy); background: var(--gold);
    font-weight: 850; text-decoration: none; cursor: pointer; transition: .2s;
}
button:hover, .button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.alert { max-width: 1132px; margin: 24px auto 0; padding: 14px 18px; border-radius: 10px; }
.alert.error { color: var(--danger); border: 1px solid #efb0b0; background: #fff2f2; }

.table-wrap { overflow-x: auto; border-radius: 16px; background: white; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { padding: 14px 16px; text-align: left; color: white; background: var(--navy); white-space: nowrap; }
td { padding: 15px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
td small { display: block; margin-top: 4px; color: var(--muted); }
.status { padding: 5px 9px; border-radius: 999px; background: #fff6df; color: #805d1c; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.empty { padding: 45px; text-align: center; color: var(--muted); }
.success-card { max-width: 720px; margin: 80px auto; padding: 55px 35px; text-align: center; background: white; border-radius: 24px; box-shadow: 0 25px 70px rgba(6, 40, 75, .12); }
.success-card h1 { font-size: 45px; }
.success-card p { color: var(--muted); }
.success-mark { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 50%; color: white; background: #27835a; font-size: 34px; }
.reference { display: block; width: fit-content; margin: 25px auto; padding: 14px 24px; color: var(--gold); background: var(--navy); border-radius: 10px; letter-spacing: .08em; }

footer { min-height: 68px; padding: 18px max(24px, calc((100vw - 1220px) / 2)); display: flex; justify-content: space-between; gap: 24px; align-items: center; color: #cbd5e1; background: #031a31; font-size: 12px; }
footer strong { color: var(--gold); }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding-top: 55px; gap: 35px; }
    .features { grid-template-columns: 1fr; }
    .checks-grid, .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .authorized-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .site-header { height: auto; padding: 15px 18px; }
    nav { display: none; }
    .hero, .form-shell, .admin-shell { padding-left: 16px; padding-right: 16px; }
    .hero-copy h1 { font-size: 42px; }
    .hero-panel { padding: 20px; }
    .choice-card { grid-template-columns: 48px 1fr; }
    .choice-card b { display: none; }
    .choice-icon { width: 48px; height: 48px; }
    .cols-2, .cols-3, .checks-grid, .services, .authorized-row { grid-template-columns: 1fr; }
    .section-body { padding: 18px; }
    .submit-bar { align-items: stretch; flex-direction: column; bottom: 6px; }
    .submit-bar button { width: 100%; }
    footer { align-items: flex-start; flex-direction: column; }
}
