:root {
    --ink: #14213d;
    --muted: #5f6d7e;
    --line: #d8e0ea;
    --panel: #ffffff;
    --paper: #f5f7fb;
    --brand: #006d77;
    --brand-strong: #004f58;
    --accent: #d5573b;
    --ok: #177245;
    --warn: #b84a2a;
    --shadow: 0 18px 50px rgba(20, 33, 61, .14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.5;
}

a {
    color: var(--brand-strong);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.nav {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--brand);
    font-weight: 800;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: .82rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a,
.button,
button {
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--brand);
    padding: 12px 16px;
    min-height: 44px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.nav-links a {
    color: var(--ink);
    background: transparent;
}

.nav-links a:hover {
    background: #e8eef5;
}

.button.secondary {
    color: var(--brand-strong);
    background: #e2f2f1;
}

.button.ghost {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
}

main,
.main {
    width: min(1120px, calc(100% - 32px));
    margin: 32px auto 48px;
}

.hero {
    position: relative;
    width: min(1120px, calc(100% - 32px));
    margin: 28px auto 0;
    min-height: 260px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    background: #cbd7e1;
}

.hero img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: block;
    object-fit: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 21, 38, .74), rgba(7, 21, 38, .2));
}

.hero-panel {
    position: absolute;
    z-index: 1;
    left: clamp(20px, 5vw, 56px);
    bottom: clamp(20px, 5vw, 48px);
    max-width: 620px;
    color: #fff;
}

.hero-panel p {
    margin: 0 0 8px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: .82rem;
}

.hero-panel h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.05;
}

.hero-panel span {
    display: block;
    margin-top: 12px;
    font-size: 1.08rem;
}

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

.card,
.flow-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(20, 33, 61, .08);
}

.card {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--brand);
    transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(20, 33, 61, .14);
}

.card h2,
.flow-panel h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    line-height: 1.2;
}

.card p,
.flow-panel p {
    color: var(--muted);
}

.card p {
    flex-grow: 1;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .9rem;
    color: var(--muted);
    background: #fff;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.flow-panel {
    padding: clamp(20px, 4vw, 36px);
    max-width: 820px;
    margin: 0 auto;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 24px;
}

.step {
    min-height: 8px;
    border-radius: 999px;
    background: #d7e0ea;
}

.step.active,
.step.done {
    background: var(--brand);
}

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

label {
    font-weight: 800;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="file"] {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
}

input[disabled] {
    color: #34465f;
    background: #f0f4f8;
}

.details {
    display: grid;
    gap: 10px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.details li {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

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

.alert {
    width: min(820px, calc(100% - 32px));
    margin: 18px auto;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
}

.alert-error {
    color: var(--warn);
    border-color: #f0b29e;
    background: #fff4ef;
}

.alert-success {
    color: var(--ok);
    border-color: #a9d7bf;
    background: #eff9f4;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--line);
}

.report-table th,
.report-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.report-table th {
    color: #fff;
    background: var(--ink);
}

.report-table tr.is-approved td {
    background: #eff9f4;
}

.footer {
    width: min(1120px, calc(100% - 32px));
    margin: 40px auto 24px;
    color: var(--muted);
    text-align: center;
}

.before-send {
    margin: 0 0 28px;
    padding: 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 5px solid var(--brand);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(20, 33, 61, .08);
}

.before-send h2 {
    margin: 0 0 12px;
    font-size: 1.45rem;
}

.checklist,
.instructions {
    margin: 0 0 8px;
    padding-left: 20px;
}

.checklist li,
.instructions li {
    margin-bottom: 10px;
    color: var(--muted);
    line-height: 1.55;
}

.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    position: relative;
    padding-left: 26px;
}

.checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand);
    font-weight: 800;
}

.check-inline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
}

.section-title {
    margin-top: 4px;
    padding-top: 4px;
}

.check-inline input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

@media (max-width: 920px) {
    .card {
        padding: 18px 16px 20px;
    }

    .card h2,
    .flow-panel h2 {
        font-size: 1.2rem;
    }

    .grid {
        gap: 14px;
    }
}

@media (max-width: 760px) {
    .nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 0;
        gap: 12px;
    }

    .nav-links {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero {
        min-height: 320px;
    }

    .hero img {
        min-height: 320px;
    }

    .hero::after {
        background: linear-gradient(0deg, rgba(7, 21, 38, .82), rgba(7, 21, 38, .18));
    }

    .grid,
    .steps {
        grid-template-columns: 1fr;
    }

    .card:hover {
        transform: none;
    }

    .details li {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .actions .button,
    .actions button {
        width: 100%;
        text-align: center;
    }
}

@media print {
    .site-header,
    .hero,
    .actions .button,
    .footer {
        display: none;
    }

    body {
        background: #fff;
    }

    .flow-panel {
        border: 0;
        box-shadow: none;
    }
}
