:root {
    --bg: #eef5fb;
    --surface: #ffffff;
    --ink: #15202b;
    --muted: #526170;
    --line: #d8e5f2;
    --brand: #007a78;
    --brand-2: #145da0;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    line-height: 1.5;
    background: radial-gradient(circle at 8% -12%, #dff3f3, transparent 35%),
        radial-gradient(circle at 92% 6%, #dbe8fb, transparent 42%),
        linear-gradient(180deg, #f4f9ff 0%, #e8f0f9 100%);
}

.container {
    width: min(var(--max), 94vw);
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: color-mix(in srgb, #f4f9ff 84%, #ffffff 16%);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 14px;
}

.brand {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.menu {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.menu a,
.link {
    color: #0b5878;
    text-decoration: none;
}

.menu a {
    white-space: nowrap;
    padding: 4px 0;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}

.hero {
    padding: 48px 0 26px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4.8vw, 3.1rem);
    line-height: 1.08;
}

.hero p {
    max-width: 70ch;
    color: var(--muted);
}

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

.btn {
    display: inline-block;
    border-radius: 999px;
    padding: 10px 16px;
    min-height: 44px;
    border: 1px solid #006b69;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #007a78, #005f6e);
}

.btn.alt {
    background: linear-gradient(135deg, #1c6cb9, #145da0);
    border-color: #124e86;
}

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

.grid.cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 16px;
    box-shadow: 0 8px 24px rgba(21, 42, 64, 0.08);
}

.card h3 {
    margin: 0 0 8px;
}

.section {
    margin: 24px 0;
}

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

.footer {
    margin: 36px 0;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

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

.faq-block h2 {
    margin-top: 0;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list article {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: #f9fcff;
}

.faq-list h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.faq-list p {
    margin: 0;
}

.site-footer {
    margin: 18px auto 30px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fbff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    order: 3;
}

.legal-links a {
    color: #0b5878;
    text-decoration: none;
    font-size: 0.94rem;
}

.legal-note {
    color: var(--muted);
    font-size: 0.86rem;
    order: 2;
}

.ad-slot {
    min-height: 110px;
    border: 1px dashed #a8c1db;
    border-radius: 12px;
    background: linear-gradient(180deg, #fdfefe, #f3f8ff);
    display: grid;
    place-items: center;
    color: #4f6070;
    font-size: 0.9rem;
    text-align: center;
    padding: 18px;
    margin: 8px 0;
    order: 1;
}

.guide-center {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.guide-center h1,
.guide-center h2,
.guide-center p {
    text-wrap: balance;
}

.guide-center .list {
    max-width: 680px;
    margin: 0 auto 12px;
    text-align: left;
}

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

    .menu {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .grid.cols-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(var(--max), 92vw);
    }

    .hero {
        padding: 30px 0 18px;
    }

    .hero h1 {
        line-height: 1.15;
    }

    .hero-actions {
        gap: 8px;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .card {
        padding: 14px;
    }

    .section {
        margin: 18px 0;
    }

    .site-footer,
    .footer {
        margin: 24px 0;
    }

    .ad-slot {
        min-height: 90px;
        font-size: 0.84rem;
    }
}