:root {
    --bg-main: #f3f8fc;
    --bg-soft: #ffffff;
    --brand: #2a80c8;
    --brand-dark: #1f639a;
    --brand-light: #67abdc;
    --ink: #102231;
    --muted: #526677;
    --success: #0f8a57;
    --danger: #b92323;
    --line: #d9e5f0;
    --shadow: 0 14px 40px rgba(16, 34, 49, 0.12);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
    background: radial-gradient(circle at top right, #d8ecfb 0%, var(--bg-main) 45%, #e9f4fb 100%);
    color: var(--ink);
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: linear-gradient(135deg, #1f639a 0%, #2a80c8 100%);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    width: 220px;
    height: 56px;
    max-width: 42vw;
}

.brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.nav-links a:hover {
    color: #ffffff;
}

.btn {
    display: inline-block;
    border-radius: 999px;
    padding: 0.8rem 1.35rem;
    font-weight: 700;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
    font-size: 0.98rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(42, 128, 200, 0.22);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-light), var(--brand));
    color: #fff;
}

.btn-outline {
    border-color: var(--brand-dark);
    color: var(--brand-dark);
    background: rgba(255, 255, 255, 0.75);
}

.hero {
    padding: 28px 0 54px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 34px;
    align-items: center;
}

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

.hero p {
    color: var(--muted);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.62;
    margin-bottom: 24px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.hero-card h3 {
    margin: 0 0 10px;
    color: var(--brand-dark);
}

.hero-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.7;
}

.section {
    padding: 60px 0;
}

.section h2 {
    margin: 0 0 10px;
    font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.section-intro {
    margin: 0 0 28px;
    color: var(--muted);
    max-width: 760px;
    line-height: 1.6;
}

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

.card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
}

.card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

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

.step {
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--line);
    padding: 20px;
}

.step-index {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-band {
    margin: 14px 0 48px;
    background: linear-gradient(125deg, #2a80c8 0%, #4a9ddd 65%, #6db6e7 100%);
    color: #fff;
    border-radius: 20px;
    padding: 34px;
    box-shadow: var(--shadow);
    text-align: center;
}

.cta-band p {
    opacity: 0.92;
    margin: 10px auto 22px;
    max-width: 700px;
    line-height: 1.55;
}

.cta-band .hero-cta {
    justify-content: center;
}

footer {
    border-top: 1px solid var(--line);
    padding: 30px 0;
    color: var(--muted);
    text-align: center;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(6, 17, 27, 0.62);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
    padding: 14px;
}

.modal.open {
    display: flex;
}

.modal-body {
    width: min(560px, 95vw);
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--line);
    padding: 24px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--brand-dark);
}

.modal h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.field {
    margin-bottom: 12px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #24415a;
}

.field input,
.field select {
    width: 100%;
    border: 1px solid #c5d9e8;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 0.98rem;
    font-family: inherit;
}

.field input:focus,
.field select:focus {
    outline: 2px solid rgba(103, 171, 220, 0.45);
    border-color: var(--brand-light);
}

.note {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 4px;
}

.status {
    display: none;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.status.success {
    display: block;
    background: #eafaf2;
    border: 1px solid #9fe2bf;
    color: var(--success);
}

.status.error {
    display: block;
    background: #fff2f2;
    border: 1px solid #ffc4c4;
    color: var(--danger);
}

@media (max-width: 980px) {
    .hero-grid,
    .cards,
    .steps {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 20px;
    }

    .topbar-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 0;
    }

    .nav-links {
        order: 2;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 620px) {
    .brand {
        width: 150px;
        height: 44px;
        max-width: 50vw;
    }

    .brand-logo {
        height: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-band {
        padding: 24px 18px;
    }
}
