:root {
    --bg: #f6f4ef;
    --card: #ffffff;
    --text: #171717;
    --muted: #666a73;
    --line: #e5dfd4;
    --dark: #171b22;
    --red: #b71f2a;
    --green: #1f7a4d;
    --gold: #b08a4a;
    --shadow: 0 24px 70px rgba(23, 27, 34, .10);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 32px)); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(246, 244, 239, .88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(23, 27, 34, .08);
}
.header__inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; }
.logo__mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--red), var(--green));
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
}
.logo__text { line-height: 1.05; }
.main-nav { display: flex; gap: 18px; align-items: center; font-size: 14px; color: #343840; }
.main-nav a:hover { color: var(--red); }
.header__contact {
    padding: 12px 18px;
    background: var(--dark);
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
}

.hero {
    padding: 76px 0 48px;
    background:
        radial-gradient(circle at 15% 5%, rgba(183,31,42,.16), transparent 30%),
        radial-gradient(circle at 90% 20%, rgba(31,122,77,.16), transparent 32%);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 46px; align-items: center; }
.eyebrow {
    margin: 0 0 14px;
    color: var(--red);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
}
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; margin-top: 0; }
h1 { font-size: clamp(38px, 6vw, 72px); margin-bottom: 22px; }
h2 { font-size: clamp(28px, 4vw, 46px); margin-bottom: 18px; }
h3 { font-size: 22px; margin-bottom: 12px; }
.hero__lead { font-size: 20px; color: #3d414a; max-width: 760px; margin: 0 0 28px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 14px 34px rgba(183,31,42,.22); }
.btn--secondary { background: #fff; color: var(--dark); border-color: var(--line); }
.btn--full { width: 100%; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero__facts span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.68); color: #555b65; font-size: 14px; }
.hero__panel { display: grid; gap: 16px; }
.panel-card, .aside-card, .intro-card, .lead-card, .topic-card {
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(229,223,212,.85);
    box-shadow: var(--shadow);
}
.panel-card { border-radius: var(--radius); padding: 30px; }
.panel-card--main { min-height: 370px; display: flex; flex-direction: column; justify-content: center; }
.panel-card__label { color: var(--green); font-weight: 800; margin-bottom: 10px; }
.panel-card strong { font-size: 34px; line-height: 1.05; display: block; margin-bottom: 18px; }
.panel-card ul { margin: 0; padding-left: 20px; color: #454a54; }
.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-cards div { background: var(--dark); color: #fff; border-radius: 20px; padding: 22px; }
.mini-cards strong { display: block; font-size: 34px; }
.mini-cards span { color: rgba(255,255,255,.72); }

.intro-section, .sections, .content-section, .table-section, .faq-section, .lead-section { padding: 54px 0; }
.intro-card { border-radius: var(--radius); padding: 36px; }
.intro-card p:last-child { margin-bottom: 0; color: var(--muted); font-size: 18px; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.topic-card { border-radius: var(--radius); padding: 26px; transition: transform .2s ease, box-shadow .2s ease; }
.topic-card:hover { transform: translateY(-4px); box-shadow: 0 28px 80px rgba(23, 27, 34, .14); }
.topic-card span { color: var(--gold); font-weight: 900; }
.topic-card p { color: var(--muted); margin-bottom: 0; }

.content-grid { display: grid; grid-template-columns: 1fr 330px; gap: 28px; align-items: start; }
.content-main { background: #fff; border-radius: var(--radius); padding: 36px; border: 1px solid var(--line); }
.content-main p { color: #4c515b; }
.number-list { padding-left: 24px; color: #4c515b; }
.number-list li { margin-bottom: 8px; }
.aside-card { border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; }
.aside-card a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); color: #454a54; }
.aside-card a:hover { color: var(--red); }

.responsive-table { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f0ece3; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
td a { color: var(--red); font-weight: 800; }

.faq-section details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-bottom: 12px; }
.faq-section summary { cursor: pointer; font-weight: 800; }
.faq-section details p { color: var(--muted); margin-bottom: 0; }

.lead-card { border-radius: 30px; padding: 36px; display: grid; grid-template-columns: .9fr 1fr; gap: 32px; align-items: start; background: var(--dark); color: #fff; }
.lead-card .eyebrow { color: #e4be77; }
.lead-card p { color: rgba(255,255,255,.72); }
.lead-form { display: grid; gap: 14px; background: #fff; color: var(--text); border-radius: 24px; padding: 22px; }
.lead-form label { display: grid; gap: 7px; font-weight: 800; font-size: 14px; }
.lead-form input, .lead-form select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 14px;
    font: inherit;
    background: #fbfaf7;
}
.form-note { font-size: 12px; color: var(--muted) !important; margin: 0; }

.site-footer { padding: 46px 0 24px; background: #11151b; color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; }
.footer__brand, .footer__title { font-weight: 900; margin-bottom: 12px; }
.site-footer p, .footer__bottom { color: rgba(255,255,255,.6); }
.site-footer a, .site-footer span { display: block; color: rgba(255,255,255,.72); margin-bottom: 8px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; display: flex; justify-content: space-between; gap: 24px; font-size: 13px; }
.thanks-page { padding: 100px 0; min-height: 60vh; }

@media (max-width: 980px) {
    .main-nav { display: none; }
    .hero__grid, .content-grid, .lead-card, .footer__grid { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .aside-card { position: static; }
}
@media (max-width: 640px) {
    .header__contact { display: none; }
    .hero { padding-top: 42px; }
    .cards-grid, .mini-cards { grid-template-columns: 1fr; }
    .intro-card, .content-main, .lead-card { padding: 24px; }
    .footer__bottom { display: block; }
    h1 { font-size: 36px; }
}

/* 404 page */
.error-page { background: radial-gradient(circle at 20% 0%, rgba(170, 26, 38, .08), transparent 34%), var(--bg); }
.error-hero { padding: 86px 0 46px; }
.error-hero__grid { display: grid; grid-template-columns: 1.1fr .7fr; gap: 34px; align-items: center; }
.error-hero__content { max-width: 760px; }
.error-hero__card { border-radius: var(--radius); padding: 34px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.error-code { display: block; font-size: clamp(72px, 12vw, 150px); line-height: .85; font-weight: 900; color: var(--red); letter-spacing: -.08em; margin-bottom: 20px; }
.error-hero__card strong { display: block; font-size: 28px; line-height: 1.08; margin-bottom: 14px; }
.error-hero__card p { color: var(--muted); margin: 0; }
.error-page .topic-card { display: block; color: inherit; text-decoration: none; }

@media (max-width: 980px) {
    .error-hero__grid { grid-template-columns: 1fr; }
}
