:root {
    --bg: #fbfaf7;
    --surface: #ffffff;
    --text: #17202a;
    --muted: #677482;
    --line: #e9edf1;
    --primary: #155eef;
    --primary-dark: #0f3fb0;
    --accent: #ffb020;
    --soft: #eef5ff;
    --success: #0b8f5a;
    --error: #b42318;
    --radius: 22px;
    --shadow: 0 20px 55px rgba(19, 38, 68, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 32px)); }
.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; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(251,250,247,.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(233,237,241,.7);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; font-size: 1.16rem; letter-spacing: -.02em; }
.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: inline-grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 30px rgba(21,94,239,.25);
}
.nav { display: flex; align-items: center; gap: 22px; font-weight: 650; color: #2d3846; }
.nav a:hover { color: var(--primary); }
.nav-cta { padding: 11px 16px; border-radius: 999px; background: var(--text); color: #fff !important; }
.menu-btn { display: none; border: 0; background: transparent; font-size: 1.8rem; }

.hero { padding: 82px 0 68px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 54px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-weight: 850; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: .96; letter-spacing: -.07em; margin-bottom: 22px; }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.02; letter-spacing: -.055em; margin-bottom: 18px; }
h3 { letter-spacing: -.025em; }
.hero-copy p { font-size: 1.2rem; color: var(--muted); max-width: 650px; margin-bottom: 28px; }
.search-box { display: flex; padding: 9px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); max-width: 720px; }
.search-box input { flex: 1; border: 0; outline: 0; padding: 0 18px; font-size: 1rem; background: transparent; min-width: 0; }
.search-box button, .button {
    border: 0;
    cursor: pointer;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 15px 22px;
    font-weight: 850;
    box-shadow: 0 14px 35px rgba(21,94,239,.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.button:hover, .search-box button:hover { background: var(--primary-dark); }
.button.secondary { background: #fff; color: var(--primary); box-shadow: none; border: 1px solid #cfe0ff; }
.hero-points { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; color: #455363; font-weight: 700; }
.hero-card { min-height: 500px; display: grid; place-items: center; position: relative; }
.hero-card:before {
    content: "";
    position: absolute;
    inset: 10% 0;
    background: radial-gradient(circle at 40% 35%, #ffe1a0, transparent 32%), radial-gradient(circle at 60% 65%, #d5e5ff, transparent 42%);
    filter: blur(10px);
}
.request-card { position: relative; width: min(430px, 100%); padding: 30px; background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.9); border-radius: 30px; box-shadow: var(--shadow); }
.request-top { display: flex; gap: 10px; align-items: center; color: #526173; margin-bottom: 22px; }
.status-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 7px rgba(11,143,90,.14); }
.request-card h3 { font-size: 1.7rem; margin-bottom: 8px; }
.request-card p { color: var(--muted); }
.quote-list { display: grid; gap: 12px; margin: 24px 0; }
.quote-list div { display:flex; justify-content:space-between; gap:16px; background:#f6f8fb; border-radius:16px; padding:14px 16px; }
.quote-list strong { font-size: 1.15rem; }
.quote-list span { color: var(--muted); }
.card-link { color: var(--primary); font-weight: 850; }

.section { padding: 78px 0; }
.section.soft { background: var(--soft); }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 38px; }
.section-heading.left { text-align: left; margin-left: 0; }
.section-heading p { color: var(--muted); font-size: 1.07rem; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card, .panel, .steps article, .pro-box, .thanks-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(19,38,68,.06);
}
.category-card { padding: 22px; transition: transform .2s, box-shadow .2s; }
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.category-card h3 { margin-bottom: 9px; }
.category-card p { color: var(--muted); min-height: 50px; }
.category-card a { color: var(--primary); font-weight: 850; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps article { padding: 30px; }
.steps span { display:grid; place-items:center; width:42px; height:42px; border-radius:14px; background: var(--primary); color:#fff; font-weight:900; margin-bottom:20px; }
.steps p { color: var(--muted); }
.split-section { padding: 78px 0; background: #101828; color: #fff; }
.split-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.split-grid > div { padding: 42px; border-radius: 30px; }
.split-grid p { color: rgba(255,255,255,.72); font-size: 1.08rem; }
.pro-box { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); box-shadow: none; }
.faq-wrap { display:grid; grid-template-columns: .75fr 1.25fr; gap: 34px; }
.faq-list { display: grid; gap: 12px; }
details { background:#fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
summary { cursor:pointer; font-weight: 850; }
details p { margin: 14px 0 0; color: var(--muted); }

.form-hero, .admin-hero { padding: 70px 0 34px; text-align: center; }
.form-hero h1, .admin-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.form-hero p, .admin-hero p { color: var(--muted); font-size: 1.1rem; }
.form-section { padding-top: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 28px; }
.field { display: grid; gap: 8px; }
.field.full, .check.full, .form-actions.full { grid-column: 1 / -1; }
.hidden-field { position:absolute; left:-9999px; opacity:0; pointer-events:none; }
label { font-weight: 800; }
input, textarea, select {
    width: 100%;
    border: 1px solid #d7dee8;
    background: #fff;
    border-radius: 14px;
    padding: 14px 14px;
    font: inherit;
    outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(21,94,239,.12); }
textarea { resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 12px; color: #3b4654; font-weight: 600; }
.check input { width: auto; margin-top: 5px; }
.form-actions { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.form-actions p { margin: 0; color: var(--muted); }
.alert { border-radius: 18px; padding: 16px 20px; margin-bottom: 18px; }
.alert.error { background: #fff1f0; color: var(--error); border: 1px solid #ffd4cf; }
.alert ul { margin-bottom: 0; }
.thanks { padding: 92px 0; }
.thanks-card { text-align:center; padding: 52px 30px; }
.success-icon { width: 70px; height: 70px; display:grid; place-items:center; margin: 0 auto 22px; border-radius: 24px; color:#fff; background: var(--success); font-size: 2.2rem; font-weight: 900; }
.admin-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 34px; }
.stat { padding: 26px; }
.stat strong { display:block; font-size: 2.8rem; line-height:1; letter-spacing:-.05em; }
.stat span { color: var(--muted); font-weight:800; }
.admin-block { margin-top: 36px; }
.table-wrap { overflow:auto; background:#fff; border:1px solid var(--line); border-radius: 18px; }
table { width:100%; border-collapse: collapse; min-width: 920px; }
th, td { text-align:left; padding: 14px 16px; border-bottom:1px solid var(--line); vertical-align: top; font-size: .93rem; }
th { background:#f8fafc; font-weight:900; }

.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 46px 0 24px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr repeat(3, .7fr); gap: 30px; }
.footer-grid p { color: var(--muted); max-width: 360px; }
.footer-grid h4 { margin: 0 0 12px; }
.footer-grid a:not(.brand) { display:block; color: var(--muted); margin: 8px 0; }
.footer-grid a:hover { color: var(--primary); }
.legal { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top: 36px; padding-top: 20px; border-top:1px solid var(--line); color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) {
    .hero-grid, .split-grid, .faq-wrap { grid-template-columns: 1fr; }
    .hero { padding-top: 50px; }
    .hero-card { min-height: 380px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav { display:none; position:absolute; top:76px; left:0; right:0; background:#fff; border-bottom:1px solid var(--line); padding:18px 16px; flex-direction:column; align-items:flex-start; }
    .nav.open { display:flex; }
    .menu-btn { display:block; }
}

@media (max-width: 620px) {
    .search-box { border-radius: 22px; flex-direction: column; }
    .search-box input { padding: 14px; }
    .category-grid, .form-grid, .admin-grid, .footer-grid { grid-template-columns: 1fr; }
    .split-grid > div { padding: 28px; }
    .form-actions { align-items: stretch; }
    .form-actions .button, .search-box button { width: 100%; }
}
