:root {
  --ink: #102a43;
  --muted: #5b7083;
  --paper: #f7f5ef;
  --line: #dfe5e8;
  --white: #ffffff;
  --accent: #ffb000;
  --accent-dark: #d98a00;
  --navy: #0b2438;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 800 19px/1 "Manrope", sans-serif;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--accent);
  border-radius: 10px 3px 10px 3px;
  font-size: 16px;
}

nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
nav a:not(.nav-cta):hover { color: var(--accent-dark); }

.nav-cta {
  padding: 11px 17px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(44px, 8vw, 110px);
  padding: 74px 0 100px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; font-family: "Manrope", sans-serif; letter-spacing: -0.045em; }
h1 { max-width: 720px; font-size: clamp(48px, 7vw, 83px); line-height: 0.98; }
h1 span { color: var(--accent-dark); }
h2 { font-size: clamp(34px, 4.8vw, 56px); line-height: 1.08; }
h3 { font-size: 23px; }

.hero-text {
  max-width: 640px;
  margin: 27px 0 31px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--navy); background: var(--accent); }
.button-primary:hover { background: #ffc233; }
.button-secondary { border-color: #bbc8cf; background: transparent; }
.button-secondary:hover { background: var(--white); }

.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 33px; color: var(--muted); font-size: 13px; font-weight: 600; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--accent-dark); font-weight: 800; }

.estimate-card {
  position: relative;
  padding: 27px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(16, 42, 67, 0.14);
}

.estimate-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20px 32px 20px -20px;
  background: var(--navy);
  border-radius: 18px;
  transform: rotate(-3deg);
}

.card-top { display: flex; justify-content: space-between; gap: 20px; }
.card-top div { display: grid; gap: 4px; }
.card-top small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.card-top strong { font: 700 18px/1.3 "Manrope", sans-serif; }
.status { align-self: start; padding: 5px 9px; color: #17643b; background: #e2f7eb; border-radius: 999px; font-size: 11px; font-weight: 700; }

.plan-grid {
  height: 176px;
  margin: 24px 0;
  overflow: hidden;
  position: relative;
  border: 1px solid #bdcbd2;
  background:
    linear-gradient(90deg, transparent 49%, #d5dfe4 50%, transparent 51%) 0 0 / 36px 36px,
    linear-gradient(transparent 49%, #d5dfe4 50%, transparent 51%) 0 0 / 36px 36px,
    #f2f6f7;
}

.plan-grid span { position: absolute; display: block; border: 2px solid #6d8797; }
.plan-grid span:nth-child(1) { inset: 18px 46% 88px 20px; }
.plan-grid span:nth-child(2) { inset: 18px 20px 88px 54%; }
.plan-grid span:nth-child(3) { inset: 98px 60% 18px 20px; }
.plan-grid span:nth-child(4) { inset: 98px 20px 18px 46%; }
.plan-grid span:nth-child(5) { width: 25px; height: 45px; left: 48%; top: 65px; border-color: var(--accent-dark); }

.summary-lines { display: grid; gap: 10px; }
.summary-lines div, .card-total { display: flex; justify-content: space-between; gap: 15px; }
.summary-lines div { color: var(--muted); font-size: 13px; }
.summary-lines strong { color: var(--ink); font-weight: 600; }
.card-total { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); font-size: 14px; }
.card-total strong { color: var(--accent-dark); }

.section { padding: 110px 0; border-top: 1px solid #d9ddd9; }
.section-heading { max-width: 750px; }
.section-heading > p:last-child { max-width: 630px; margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 53px; }
.service-grid article { padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: 13px; }
.service-number { display: block; margin-bottom: 35px; color: var(--accent-dark); font: 700 12px/1 "Manrope", sans-serif; }
.service-grid p { margin: 13px 0 0; color: var(--muted); }

.process-section {
  margin-bottom: 100px;
  padding: clamp(40px, 7vw, 78px);
  color: var(--white);
  background: var(--navy);
  border-radius: 20px;
}

.light .eyebrow, .process-section .eyebrow { color: var(--accent); }
.process-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 52px 0 0; padding: 0; list-style: none; }
.process-list li { display: flex; align-items: flex-start; gap: 15px; }
.process-list li > span { flex: 0 0 34px; height: 34px; display: grid; place-items: center; color: var(--navy); background: var(--accent); border-radius: 50%; font-weight: 800; }
.process-list strong { font: 700 17px/1.4 "Manrope", sans-serif; }
.process-list p { margin: 7px 0 0; color: #b9c9d4; font-size: 14px; }

.cta-section { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 20px 0 100px; }
.cta-section h2 { max-width: 660px; }

footer {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 35px;
  padding: 28px 0 42px;
  border-top: 1px solid #d9ddd9;
  color: var(--muted);
  font-size: 13px;
}
footer p { margin: 0; }
.footer-contact { color: var(--ink); font-weight: 600; }

@media (max-width: 800px) {
  nav > a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 55px; }
  .estimate-card { margin: 10px 15px 0; }
  .service-grid, .process-list { grid-template-columns: 1fr; }
  .process-list { gap: 28px; }
  .cta-section { align-items: flex-start; flex-direction: column; }
  footer { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 480px) {
  .site-header, main, footer { width: min(100% - 26px, 1180px); }
  .site-header { min-height: 76px; }
  .brand { font-size: 17px; }
  .nav-cta { padding: 10px 12px; font-size: 12px; }
  .hero { padding-bottom: 80px; }
  h1 { font-size: 45px; }
  .hero-actions .button { width: 100%; }
  .estimate-card { padding: 20px; }
  .estimate-card::before { inset: -11px 20px 10px -11px; }
  .section { padding: 82px 0; }
  .service-grid article { padding: 25px; }
  .process-section { margin-bottom: 80px; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
