:root {
  --bg: #f0f4f8;
  --bg-strong: #dde5ee;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text: #0b1726;
  --muted: #5e6d7e;
  --line: rgba(11, 23, 38, 0.1);
  --line-strong: rgba(11, 23, 38, 0.18);
  --brand: #0f4f9b;
  --brand-strong: #092d59;
  --brand-soft: rgba(15, 79, 155, 0.1);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-lg: 0 30px 70px rgba(10, 26, 48, 0.12);
  --shadow-md: 0 16px 36px rgba(10, 26, 48, 0.09);
  --content: min(1160px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, #f8fafd 0%, #eef2f7 55%, #f6f8fb 100%);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  width: var(--content);
  margin: 0 auto;
  padding-bottom: 36px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(10, 26, 48, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: auto;
  height: 38px;
}

.site-footer img {
  width: auto;
  height: 44px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--brand-soft);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--brand-strong);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

.hero,
.section,
.site-footer {
  animation: rise 0.7s ease both;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  padding: 42px 0 26px;
}

.hero__copy {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.68)),
    linear-gradient(140deg, rgba(15, 79, 155, 0.04), rgba(255, 255, 255, 0));
  box-shadow: var(--shadow-lg);
}

.hero__copy h1,
.section__intro h2,
.difference-card__header h2,
.timeline__item h3,
.system-panel h3,
.service-card h3,
.hero__panel-card h2,
.quote-stage__header h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.hero__copy h1 {
  max-width: 11ch;
  font-size: clamp(3.1rem, 6vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero__lede,
.section__intro p,
.system-panel p,
.difference-grid p,
.timeline__item p,
.hero__panel-card p,
.service-card p,
.site-footer p,
.quote-status,
.field span {
  color: var(--muted);
}

.hero__lede {
  max-width: 56ch;
  margin: 22px 0 0;
  font-size: 1.06rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--brand-strong);
  color: white;
  box-shadow: 0 12px 24px rgba(9, 45, 89, 0.18);
}

.button--secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.64);
  color: var(--text);
}

.hero__strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.hero__strip div,
.hero__panel-card,
.service-card,
.difference-card,
.timeline__item,
.system-panel,
.quote-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-md);
}

.hero__strip div {
  min-height: 130px;
  padding: 18px;
  border-radius: var(--radius-md);
}

.hero__strip span,
.mini-metric span,
.system-panel__label,
.service-card__index,
.timeline__item span,
.field span {
  display: block;
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__strip strong,
.mini-metric strong {
  display: block;
  line-height: 1.5;
}

.hero__panel {
  display: grid;
  gap: 18px;
}

.hero__panel-card {
  padding: 26px;
  border-radius: var(--radius-lg);
}

.hero__panel-card--dark {
  background: linear-gradient(180deg, rgba(9, 45, 89, 0.98), rgba(11, 23, 38, 0.98));
  color: white;
}

.hero__panel-card--dark p {
  color: rgba(255, 255, 255, 0.7);
}

.hero__panel-card--dark .eyebrow {
  color: rgba(155, 203, 255, 0.9);
}

.hero__panel-card--light {
  display: grid;
  gap: 16px;
}

.mini-metric {
  padding-top: 2px;
}

.section {
  margin-top: 18px;
  padding: 36px;
  border-radius: var(--radius-xl);
}

.section__intro {
  max-width: 780px;
  margin-bottom: 24px;
}

.section__intro h2,
.difference-card__header h2,
.quote-stage__header h3 {
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section__intro p {
  max-width: 64ch;
  line-height: 1.7;
}

.section--services,
.section--quote,
.section--systems,
.section--process {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-md);
}

.quote-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.quote-rail {
  display: grid;
  gap: 14px;
}

.quote-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.quote-step,
.quote-rail__note,
.quote-card,
.estimate-option,
.estimate-metric,
.estimate-meta__block {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-md);
}

.quote-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: var(--radius-md);
  opacity: 0.64;
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.quote-step.is-active,
.quote-step.is-complete {
  opacity: 1;
}

.quote-step.is-active {
  border-color: rgba(15, 79, 155, 0.22);
  transform: translateY(-1px);
}

.quote-step strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.quote-step.is-complete strong,
.quote-step.is-active strong {
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  color: white;
}

.quote-step span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.quote-step p,
.quote-rail__note p,
.quote-stage__header p,
.estimate-meta__block p,
.estimate-option__description,
.quote-caption,
.quote-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.quote-rail__note {
  padding: 18px;
  border-radius: var(--radius-lg);
}

.quote-rail__note strong,
.estimate-option__top h4,
.quote-stage__header h3 {
  font-family: "Space Grotesk", sans-serif;
}

.quote-rail__note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.quote-card {
  padding: 26px;
  border-radius: var(--radius-xl);
}

.quote-stage {
  display: none;
}

.quote-stage.is-active {
  display: block;
}

.quote-stage__header {
  max-width: 760px;
  margin-bottom: 24px;
}

.quote-stage__header h3 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.quote-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.quote-caption {
  margin-top: 8px;
}

.quote-status {
  margin: 18px 2px 0;
  font-size: 0.95rem;
}

.quote-status.is-success {
  color: #14643d;
}

.quote-status.is-error {
  color: #c53030;
}

.quote-status.is-empty {
  display: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: rgba(197, 48, 48, 0.5);
  box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.09);
  background: rgba(255, 248, 248, 0.9);
}

.estimate-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.estimate-metric {
  padding: 18px;
  border-radius: var(--radius-md);
}

.estimate-metric span,
.estimate-meta__block span,
.estimate-option__top span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.estimate-metric strong {
  display: block;
  font-size: 1.28rem;
}

.estimate-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.estimate-option {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius-lg);
}

.estimate-option.is-recommended {
  border-color: rgba(15, 79, 155, 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(228, 239, 250, 0.78));
}

.estimate-option__top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.estimate-option__top h4 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.05;
}

.estimate-option__badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--brand-strong);
  color: white;
  font-size: 0.8rem;
}

.estimate-option__price {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
}

.estimate-option__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.estimate-option__list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}

.estimate-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.estimate-meta__block {
  padding: 18px;
  border-radius: var(--radius-md);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 280px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.service-card__index {
  color: var(--brand);
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.service-card p {
  min-height: 78px;
  line-height: 1.65;
}

.service-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.systems-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.systems-selector {
  display: grid;
  gap: 10px;
}

.system-tab {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
  text-align: left;
  font-weight: 800;
  color: var(--muted);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.system-tab.is-active {
  border-color: transparent;
  background: linear-gradient(180deg, var(--brand), var(--brand-strong));
  color: white;
}

.system-panels {
  position: relative;
  min-height: 330px;
}

.system-panel {
  position: absolute;
  inset: 0;
  padding: 26px;
  border-radius: var(--radius-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.system-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.system-panel__label {
  color: var(--brand);
}

.system-panel h3 {
  max-width: 16ch;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.system-panel p {
  max-width: 62ch;
  line-height: 1.8;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag-row span {
  padding: 11px 14px;
  border: 1px solid rgba(15, 79, 155, 0.12);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 0.92rem;
  font-weight: 800;
}

.tag-row--dense span {
  padding: 9px 12px;
}

.difference-card {
  padding: 34px;
  border-radius: var(--radius-xl);
}

.difference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.difference-grid article {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.difference-grid h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
}

.difference-grid p,
.timeline__item p {
  line-height: 1.75;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline__item {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.timeline__item span {
  color: var(--brand);
}

.timeline__item h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field textarea {
  resize: vertical;
  min-height: 150px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(15, 79, 155, 0.5);
  box-shadow: 0 0 0 4px rgba(15, 79, 155, 0.1);
  background: white;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 28px 6px 0;
}

.site-footer p {
  max-width: 40ch;
  text-align: right;
  line-height: 1.6;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .hero,
  .quote-layout,
  .systems-layout {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .timeline,
  .difference-grid,
  .estimate-options,
  .estimate-meta,
  .estimate-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-panels {
    min-height: 360px;
  }
}

@media (max-width: 820px) {
  .site-header {
    border-radius: 26px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-md);
  }

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

  .site-nav a {
    padding: 14px 10px;
  }

  .hero__strip,
  .service-grid,
  .timeline,
  .difference-grid,
  .estimate-options,
  .estimate-meta,
  .estimate-band,
  .quote-form-grid {
    grid-template-columns: 1fr;
  }

  .system-panels {
    min-height: 420px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 18px, 1160px);
  }

  .hero__copy,
  .section,
  .difference-card,
  .hero__panel-card,
  .quote-card {
    padding: 20px;
  }

  .hero__copy h1 {
    max-width: 12ch;
    font-size: 2.7rem;
  }

  .section__intro h2,
  .difference-card__header h2,
  .quote-stage__header h3 {
    font-size: 2rem;
  }

  .hero__actions,
  .quote-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .brand img {
    height: 34px;
  }

  .site-footer img {
    height: 40px;
  }

  .system-panels {
    min-height: 460px;
  }
}
