:root {
  --navy: #0f2744;
  --ink: #1a202c;
  --muted: #4a5568;
  --blue: #3182ce;
  --blue-dark: #1e5a96;
  --sky: #ebf4ff;
  --cream: #f6f3ec;
  --paper: #fffdf8;
  --line: #e3ddd2;
  --gold: #b8860b;
  --ok: #2f855a;
  --danger: #c53030;
  --shadow: 0 18px 50px rgba(15, 39, 68, 0.12);
  --radius: 18px;
  --header: 76px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Poppins", "Inter", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  background: var(--cream);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue);
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}

.skip:focus {
  top: 12px;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 39, 68, 0.08);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand img,
.brand svg {
  width: 44px;
  height: 44px;
  color: var(--navy);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 800;
}

.brand-copy span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a,
.nav-toggle,
.submenu summary {
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
}

.site-nav a:hover,
.submenu summary:hover {
  background: rgba(49, 130, 206, 0.1);
}

.submenu {
  position: relative;
}

.submenu summary {
  list-style: none;
  cursor: pointer;
}

.submenu summary::-webkit-details-marker {
  display: none;
}

.submenu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  min-width: 280px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px;
  border: 1px solid var(--line);
  display: grid;
}

.submenu-panel a {
  display: block;
  padding: 10px 12px;
}

.nav-call {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 0.9rem 1.15rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(49, 130, 206, 0.28);
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn-phone {
  background: var(--navy);
  color: #fff;
  white-space: nowrap;
}

.btn-block {
  width: 100%;
}

.hero {
  position: relative;
  padding: 36px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  margin-bottom: 12px;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 52ch;
}

.hero-photo {
  position: relative;
  min-height: 420px;
}

.hero-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: 82% 38%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-photo figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(15, 39, 68, 0.78);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.trust-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.trust-item strong {
  display: block;
  font-family: var(--display);
  color: var(--navy);
}

.trust-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 72px 0;
}

.section-muted {
  background: #fff;
}

.section-navy {
  background: var(--navy);
  color: #e8eef7;
}

.section-navy h2,
.section-navy h3 {
  color: #fff;
}

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-navy .section-head p {
  color: #c5d4e8;
}

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

.split img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  min-height: 340px;
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--display);
}

.step h3 {
  margin-bottom: 4px;
  font-size: 1.15rem;
}

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

.situation-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.situation-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}

.situation-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--sky);
  color: var(--blue-dark);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 1.3rem;
}

.situation-card h3 {
  font-size: 1.15rem;
}

.situation-card p {
  color: var(--muted);
  flex: 1;
}

.situation-card span {
  font-weight: 700;
  color: var(--blue-dark);
}

.team-photo {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  object-position: center 20%;
  max-height: 420px;
}

.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.quote {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid var(--line);
}

.stars {
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.quote footer {
  margin-top: 16px;
  font-weight: 700;
  color: var(--navy);
}

.quote footer span {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  background: #0b1c31;
  color: #d5deea;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
}

.site-footer a {
  color: #d5deea;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin: 0.35em 0;
}

.legal {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.offer-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
  border: 1px solid rgba(15, 39, 68, 0.06);
}

.offer-card.compact {
  max-width: 560px;
}

.wizard-progress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.wizard-progress span {
  height: 6px;
  border-radius: 99px;
  background: var(--line);
}

.wizard-progress span.active {
  background: var(--blue);
}

.wizard-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

.offer-card h2,
.offer-card h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.offer-card .lede {
  color: var(--muted);
}

.field {
  margin: 12px 0;
}

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

.field input,
.field select {
  width: 100%;
  border: 1px solid #d5d0c6;
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(49, 130, 206, 0.45);
  border-color: var(--blue);
}

.address-wrap {
  position: relative;
}

.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 40;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
}

.suggest button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
}

.suggest button[aria-selected="true"],
.suggest button:hover {
  background: var(--sky);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.8fr;
  gap: 12px;
}

.wizard-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.error {
  color: var(--danger);
  font-size: 0.9rem;
  min-height: 1.2em;
}

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

.address-chip {
  background: var(--sky);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  color: var(--navy);
  font-weight: 600;
}

.success-panel {
  text-align: center;
  padding: 18px 8px 8px;
}

.success-panel .check {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #e6f6ed;
  color: var(--ok);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.page-hero {
  padding: 42px 0 20px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  margin-top: 1.4em;
}

.prose ol,
.prose ul {
  padding-left: 1.2em;
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.pac-container {
  z-index: 3000 !important;
  border-radius: 12px;
  font-family: var(--font);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .situation-grid,
  .quotes,
  .footer-grid,
  .cta-band,
  .trust-bar,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    min-height: 0;
  }

  .hero-photo img {
    height: 240px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(var(--header) + 8px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-call {
    display: block;
  }

  .submenu-panel {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 8px;
  }

  .header-actions .btn-phone {
    display: none;
  }

  .legal {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .situation-card {
    transition: none;
  }
}
