:root {
    --bg: #f7fbff;
    --text: #16335f;
    --muted: #5e7190;
    --line: #dbe8f6;
    --brand: #155aa6;
    --brand-dark: #0c4384;
    --pink: #ed008c;
    --green: #8ccf33;
    --yellow: #fff12b;
    --cyan: #10aee0;
    --orange: #ff9516;
    --accent: #ed008c;
    --danger: #b42318;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

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

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

.site-header {
    background: var(--white);
    box-shadow: 0 8px 24px rgba(21, 90, 166, .12);
}

.top-strip {
    background: var(--brand);
    color: var(--white);
    font-size: 13px;
    padding: 5px 0;
    -webkit-text-fill-color: var(--white);
}

.top-strip a,
.top-strip a:visited,
.top-strip a:hover {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
    text-decoration: none;
}

.wrap {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-height: 90px;
    position: relative;
    padding-left: 210px;
}

.brand {
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: absolute;
    left: 0;
    top: 12px;
    z-index: 3;
}

.brand img {
    display: block;
    width: 155px;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nav-links a {
    color: #111827;
    text-decoration: none;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 20;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--brand);
    margin: 5px 0;
    transition: transform .2s ease, opacity .2s ease;
}

.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.color-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 5px;
    position: relative;
    z-index: 1;
}

.color-bar span:nth-child(1) {
    background: var(--pink);
}

.color-bar span:nth-child(2) {
    background: var(--green);
}

.color-bar span:nth-child(3) {
    background: var(--cyan);
}

.color-bar span:nth-child(4) {
    background: var(--yellow);
}

.color-bar span:nth-child(5) {
    background: var(--orange);
}

.hero {
    padding: 46px 0 42px;
    background:
        linear-gradient(90deg, rgba(21, 90, 166, .94), rgba(16, 174, 224, .74)),
        radial-gradient(circle at 80% 15%, rgba(255, 241, 43, .42), transparent 24%),
        #155aa6;
    color: var(--white);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: 32px;
    align-items: start;
}

h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.05;
    letter-spacing: 0;
}

h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

h3 {
    margin: 24px 0 8px;
}

.lead {
    font-size: 19px;
    color: rgba(255, 255, 255, .9);
    max-width: 680px;
}

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

.steps li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.step-no {
    flex: 0 0 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--pink);
    color: var(--white);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
}

.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 18px 46px rgba(12, 67, 132, .18);
    color: var(--text);
}

.form-grid {
    display: grid;
    gap: 14px;
}

.field label,
.field legend {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 14px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 11px 12px;
    font: inherit;
    background: var(--white);
}

.file-upload {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    padding: 10px;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 6px;
    background: var(--brand);
    color: var(--white);
    font-weight: 700;
    padding: 10px 14px;
    cursor: pointer;
    white-space: nowrap;
}

.file-name {
    color: var(--muted);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.choices {
    display: grid;
    gap: 8px;
}

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
}

.check input {
    margin-top: 4px;
}

.button {
    border: 0;
    border-radius: 6px;
    padding: 12px 18px;
    background: var(--pink);
    color: var(--white);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
}

.button:hover {
    background: #c90077;
}

.notice {
    border-left: 4px solid var(--yellow);
    background: rgba(255, 241, 43, .18);
    padding: 12px 14px;
    margin: 16px 0;
    color: inherit;
}

.error {
    border-left-color: var(--danger);
    background: #fff1f0;
    color: var(--danger);
}

.content {
    padding: 32px 0 56px;
}

.legal {
    max-width: 860px;
}

.table-wrap {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

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

th {
    background: #eaf4ff;
}

.admin-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.small {
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 820px) {
    body.nav-open {
        overflow: hidden;
    }

    body.nav-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(12, 67, 132, .34);
        z-index: 30;
    }

    .top-strip {
        font-size: 12px;
        text-align: center;
        line-height: 1.35;
        padding: 7px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        min-height: 96px;
        padding: 0;
        padding-left: 0;
    }

    .brand {
        position: absolute;
        left: 50%;
        top: 30px;
        transform: translateX(-50%);
        z-index: 22;
    }

    .brand img {
        width: 150px;
    }

    .menu-toggle {
        display: block;
        z-index: 60;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(82vw, 320px);
        background: var(--white);
        box-shadow: -18px 0 40px rgba(12, 67, 132, .24);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 92px 24px 24px;
        font-size: 14px;
        transform: translateX(105%);
        transition: transform .24s ease;
        z-index: 50;
    }

    .nav-open .nav-links {
        transform: translateX(0);
    }

    .nav-links a {
        border-bottom: 1px solid var(--line);
        padding: 16px 0;
        color: var(--brand-dark);
    }

    .color-bar {
        height: 5px;
        z-index: 21;
    }

    .hero {
        padding-top: 54px;
    }

    .file-upload {
        grid-template-columns: 1fr;
    }

    .file-button {
        width: 100%;
    }
}
