:root {
  --navy: #02447b;
  --navy-dark: #022f57;
  --orange: #ff8e1e;
  --orange-dark: #df7f21;
  --ink: #1b2430;
  --muted: #5b6675;
  --line: #e3e8ee;
  --soft: #f4f7fa;
  --white: #fff;
  --radius: 10px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.soft { background: var(--soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); }
.eyebrow { display: inline-block; color: var(--orange-dark); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; margin-bottom: .6em; }

.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; background: var(--orange); color: var(--navy-dark); font-weight: 700; text-decoration: none; border: 2px solid var(--orange); transition: background .15s, transform .15s; cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn.ghost:hover { background: var(--white); color: var(--navy); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 600; font-size: .95rem; letter-spacing: .02em; }
.nav a:hover { color: var(--orange-dark); }
.nav .btn { padding: 10px 20px; color: var(--navy-dark); }
.nav .btn:hover { color: var(--navy-dark); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 2px; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after { position: absolute; top: 8px; }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--navy) url("../images/hero.jpg") center/cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(2,47,87,.94) 35%, rgba(2,68,123,.55)); }
.hero .wrap { position: relative; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero p.lead { font-size: 1.25rem; max-width: 40ch; color: #e6eef7; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero .phone { margin-top: 22px; color: #cfdcec; }
.hero .phone a { color: var(--orange); font-weight: 700; text-decoration: none; font-size: 1.15rem; }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; }

/* Steps */
.step .num { width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: var(--navy-dark); font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; font-size: 1.1rem; }

/* Services */
.service { text-align: center; }
.service img { width: 110px; margin: 0 auto 14px; }

/* Features split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; }
.checks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checks li { padding-left: 32px; position: relative; margin-bottom: .6em; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23022f57' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat; }

/* Why */
.why .card { border-top: 4px solid var(--orange); }

/* CTA band */
.cta { background: var(--navy); color: var(--white); text-align: center; }
.cta h2 { color: var(--white); }
.cta p { color: #cfdcec; max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta .big-phone { display: block; font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; color: var(--orange); text-decoration: none; margin: 8px 0 24px; }

/* Areas */
.areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.areas li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 600; color: var(--navy); }

/* Page banner */
.page-banner { background: var(--navy); color: var(--white); padding: 56px 0; }
.page-banner h1 { color: var(--white); margin-bottom: .2em; }
.page-banner p { color: #cfdcec; margin: 0; max-width: 60ch; }

/* Form */
.form-card { max-width: 780px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: 0 10px 30px rgba(2,47,87,.07); }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: .95rem; padding: 0; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field select, .field textarea { width: 100%; padding: 12px 14px; font: inherit; border: 1px solid #c6d0db; border-radius: 8px; background: var(--white); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(255,142,30,.35); border-color: var(--orange); }
.field textarea { min-height: 120px; resize: vertical; }
fieldset.field { border: 0; margin: 0 0 20px; padding: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills label { margin: 0; font-weight: 600; cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 9px 18px; border: 1px solid #c6d0db; border-radius: 999px; color: var(--navy); background: var(--white); }
.pills input:checked + span { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pills input:focus-visible + span { outline: 3px solid rgba(255,142,30,.5); }
.hp { position: absolute; left: -9999px; }
.privacy-note { background: var(--soft); border-radius: 8px; padding: 14px 16px; font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.form-card .btn { width: 100%; padding: 16px; font-size: 1.05rem; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.err { color: #b3261e; }

/* Thank you */
.thanks { text-align: center; max-width: 640px; margin: 0 auto; }
.thanks img { margin: 0 auto 28px; border-radius: var(--radius); max-width: 420px; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #b9c8da; padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: #e6eef7; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.footer-grid img.logo { height: 64px; width: auto; margin-bottom: 14px; }
.footer-grid h4 { color: var(--white); margin: 0 0 10px; font-size: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.footer-bottom img { height: 36px; width: auto; border-radius: 4px; }

@media (max-width: 900px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(0,0,0,.08); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; text-align: center; border-bottom: 2px solid var(--orange); }
  .section { padding: 52px 0; }
  .hero .wrap { padding-top: 64px; padding-bottom: 64px; }
  .row { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
}
@media (max-width: 520px) {
  .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Footer contact form */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.footer-form input, .footer-form textarea { width: 100%; margin-bottom: 10px; padding: 11px 13px; font: inherit; font-size: .95rem; color: var(--white); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 8px; }
.footer-form input::placeholder, .footer-form textarea::placeholder { color: #9fb2c8; }
.footer-form input:focus, .footer-form textarea:focus { outline: 3px solid rgba(255,142,30,.4); border-color: var(--orange); }
.footer-form textarea { min-height: 90px; resize: vertical; }
.footer-form .btn { width: 100%; padding: 12px; }
.footer-form .form-status.ok { color: #7ddc9a; }
.footer-form .form-status.err { color: #ffb4a8; }
.site-footer .btn { color: var(--navy-dark); }
.site-footer .btn:hover { color: var(--navy-dark); }
@media (min-width: 901px) { .footer-grid { grid-template-columns: 1.2fr .8fr 1.2fr; } }

/* Hero logo */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-logo img { width: 100%; max-width: 520px; margin-left: auto; filter: drop-shadow(0 6px 24px rgba(0,0,0,.35)); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 320px; margin: 0; }
}
