:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-muted: #eef2f8;
    --surface-dark: #142033;
    --text: #182133;
    --text-muted: #576074;
    --text-on-dark: #e8edf6;
    --line: #d8e0ec;
    --line-strong: #b8c5d8;
    --primary: #1f4fa3;
    --primary-dark: #163a79;
    --accent: #d5a74a;
    --success: #2c8a5a;
    --shadow: 0 24px 60px rgba(16, 32, 58, 0.12);
    --radius: 20px;
    --radius-sm: 12px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button,
input {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 88px 0;
}

.muted {
    background: var(--surface-muted);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: rgba(245, 247, 251, 0.9);
    border-bottom: 1px solid rgba(184, 197, 216, 0.55);
}

.nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #3b67b8);
    color: #fff;
}

.brand-text {
    font-size: 1.05rem;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-panel a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
}

.nav-panel a:hover,
.nav-panel a:focus-visible {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
}

.hero {
    padding-top: 68px;
}

.hero-grid,
.split,
.form-layout,
.footer-grid {
    display: grid;
    gap: 32px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.9fr);
    align-items: start;
}

.eyebrow {
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--primary);
}

.eyebrow-light {
    color: #bfd2ff;
}

h1,
h2,
h3 {
    margin: 0 0 16px;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.35rem, 4vw, 4.35rem);
    max-width: 12ch;
}

h2 {
    font-size: clamp(1.8rem, 2.3vw, 2.8rem);
}

h3 {
    font-size: 1.18rem;
}

p {
    margin: 0;
}

.hero-lead,
.section-heading p,
.dark-lead,
.footer-text {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.section-heading {
    margin-bottom: 34px;
    max-width: 760px;
}

.hero-points,
.check-list,
.plain-list,
.expert-list,
.footer-links,
.footer-meta {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-points,
.expert-list,
.check-list,
.plain-list {
    display: grid;
    gap: 14px;
}

.hero-points li,
.expert-list li,
.check-list li,
.plain-list li {
    position: relative;
    padding-left: 24px;
}

.hero-points li::before,
.expert-list li::before,
.check-list li::before,
.plain-list li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 28px 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #406cbe);
    color: #fff;
    box-shadow: 0 14px 30px rgba(31, 79, 163, 0.25);
}

.btn-secondary {
    background: var(--surface);
    color: var(--primary);
    border-color: rgba(31, 79, 163, 0.2);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(87, 96, 116, 0.28);
    color: var(--text);
}

.btn-block {
    width: 100%;
}

.hero-note,
.notice-card,
.card,
.expert-card,
.lead-form,
.faq-item,
.contact-strip {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    max-width: 760px;
}

.hero-note i {
    color: var(--accent);
    margin-top: 3px;
}

.expert-card {
    padding: 26px;
}

.expert-photo {
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, #dce8fb, #eef3fb);
    margin-bottom: 22px;
    aspect-ratio: 4 / 4.4;
    position: relative;
}

.expert-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-photo.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.expert-photo-fallback {
    display: none;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.expert-photo.no-image .expert-photo-fallback {
    display: inline-flex;
}

.expert-label {
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.notice-card {
    padding: 26px;
}

.cards.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards {
    display: grid;
    gap: 22px;
}

.card {
    padding: 28px;
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 18px;
    align-items: start;
    padding: 22px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
}

.timeline-step {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(31, 79, 163, 0.1);
    color: var(--primary);
    font-weight: 800;
}

.dark-section {
    background: linear-gradient(180deg, #1a263a, #111827);
    color: var(--text-on-dark);
}

.dark-section .lead-form {
    color: var(--text);
}

.dark-lead,
.plain-list-light li {
    color: rgba(232, 237, 246, 0.84);
}

.plain-list-light li::before {
    background: #bfd2ff;
}

.form-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: start;
}

.lead-form {
    padding: 28px;
}

.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-row input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--text);
}

.form-row input:focus {
    outline: 2px solid rgba(31, 79, 163, 0.18);
    border-color: var(--primary);
}

.is-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 18px 0;
    font-size: 0.94rem;
    color: var(--text-muted);
}

.checkbox-row input {
    margin-top: 3px;
}

.checkbox-row a,
.form-caption a,
.site-footer a,
.cookie-bar a {
    color: var(--primary);
}

.form-status {
    min-height: 24px;
    margin-top: 14px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.form-status.is-success {
    color: var(--success);
}

.form-status.is-error {
    color: #b02a2a;
}

.form-caption {
    margin-top: 12px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.inline-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font-weight: 700;
}

.inline-button-light {
    color: #bfd2ff;
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    padding: 18px 20px;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    margin-top: 14px;
    color: var(--text-muted);
}

.contact-strip {
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer {
    padding: 38px 0 24px;
    background: #0f1727;
    color: var(--text-on-dark);
}

.footer-grid {
    grid-template-columns: 1.1fr 0.8fr 0.8fr;
    align-items: start;
}

.brand-footer {
    color: #fff;
}

.footer-text {
    color: rgba(232, 237, 246, 0.78);
    max-width: 36ch;
}

.site-footer h3 {
    margin-bottom: 14px;
}

.footer-links,
.footer-meta {
    display: grid;
    gap: 10px;
    color: rgba(232, 237, 246, 0.82);
}

.footer-links a,
.footer-meta a {
    text-decoration: none;
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(191, 210, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: rgba(232, 237, 246, 0.68);
    font-size: 0.92rem;
}

.cookie-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    background: rgba(15, 23, 39, 0.98);
    color: var(--text-on-dark);
    box-shadow: 0 -18px 50px rgba(6, 10, 20, 0.24);
}

.cookie-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
}

@media (max-width: 1024px) {
    .hero-grid,
    .split,
    .form-layout,
    .footer-grid,
    .cards.three-up {
        grid-template-columns: 1fr;
    }

    .contact-strip,
    .footer-bottom,
    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: inline-block;
    }

    .nav-panel {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 18px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .nav-panel.is-open {
        display: flex;
    }

    .nav-panel a {
        color: var(--text);
    }
}

@media (max-width: 640px) {
    .section {
        padding: 72px 0;
    }

    .hero {
        padding-top: 48px;
    }

    .card,
    .notice-card,
    .expert-card,
    .lead-form,
    .contact-strip,
    .timeline-item {
        padding: 22px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
