* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2a44;
    line-height: 1.6;
}

a {
    color: #1f5fa7;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #dbe3f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand__wordmark {
    margin: 0;
    font-size: 28px;
    font-style: italic;
    color: #3599db;
    letter-spacing: 1px;
}

.brand__link {
    text-decoration: none;
    color: #3599db;
    display: inline-block;
}

.brand__link:visited,
.brand__link:hover {
    color: #3599db;
}

.brand__tagline {
    font-size: 12px;
    color: #5b6a82;
}

.nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    transition: max-height 0.2s ease, opacity 0.2s ease;
}

.nav-toggle {
    display: none;
}

.nav__item {
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.nav__item:hover {
    background: #eaf4ff;
    text-decoration: none;
}

.nav__item--disabled {
    padding: 6px 10px;
    border-radius: 6px;
    color: #96a3b7;
    background: #eef2f8;
    cursor: not-allowed;
}

.hero {
    background: linear-gradient(135deg, #f4f9ff, #e9f3ff);
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 20px;
}

.hero h1 {
    margin: 0 0 8px;
    font-size: 32px;
    color: #1f2a44;
}

.hero p {
    margin: 6px 0;
    color: #3a4a63;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    background: #1f5fa7;
    color: #fff;
    border-radius: 6px;
    font-size: 12px;
    margin-right: 8px;
}

.notice {
    border-left: 4px solid #1f5fa7;
    background: #fff;
    padding: 12px 14px;
    border-radius: 8px;
    margin: 16px 0;
    color: #2d3d57;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.card {
    background: #fff;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.card h3 {
    margin-top: 0;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.button {
    display: inline-block;
    padding: 12px 14px;
    background: #1f5fa7;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
}

.button.secondary {
    background: #f0f4fa;
    color: #1f2a44;
    border: 1px solid #dbe3f0;
}

.button:disabled {
    background: #97a6bb;
    cursor: not-allowed;
}

form .field {
    margin-bottom: 14px;
}

form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2d3d57;
}

form input[type="text"],
form input[type="email"],
form textarea,
form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd6e6;
    border-radius: 8px;
    font-size: 15px;
    background: #fdfefe;
}

form textarea {
    min-height: 100px;
    resize: vertical;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #2d3d57;
}

.message {
    padding: 12px;
    border-radius: 8px;
    margin: 12px 0;
}

.message.success {
    background: #e8f6ee;
    border: 1px solid #c8e7d4;
    color: #1b6a3f;
}

.message.error {
    background: #fdecea;
    border: 1px solid #f5c6c4;
    color: #9b2c2c;
}

.footer {
    padding: 18px 16px;
    text-align: center;
    color: #72829a;
    border-top: 1px solid #dbe3f0;
    background: #fff;
}

.footer__links {
    margin-bottom: 6px;
    color: #1f5fa7;
    font-weight: 600;
}

.footer__links a {
    color: #1f5fa7;
}

.footer__divider {
    margin: 0 8px;
    color: #97a6bb;
}

.accordion {
    border: 1px solid #dbe3f0;
    border-radius: 10px;
    overflow: hidden;
}

.accordion__header {
    background: #f4f7fc;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 600;
}

.accordion__content {
    padding: 12px 14px;
    display: none;
}

.accordion__content.is-open {
    display: block;
}

.pill {
    display: inline-block;
    padding: 6px 8px;
    background: #eef2f8;
    color: #2d3d57;
    border-radius: 999px;
    font-size: 12px;
    margin-right: 6px;
}

.small {
    font-size: 13px;
    color: #4f5f78;
}

@media (max-width: 640px) {
    .topbar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }

    .nav--open {
        max-height: 500px;
        opacity: 1;
        margin-top: 6px;
    }

    .nav__item,
    .nav__item--disabled {
        width: 100%;
        padding: 10px 0;
    }

    .nav-toggle {
        width: 40px;
        height: 34px;
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        background: #eaf4ff;
        border: 1px solid #d1def0;
        border-radius: 8px;
        cursor: pointer;
    }

    .nav-toggle span {
        display: block;
        height: 2px;
        background: #1f2a44;
        width: 100%;
    }
}
