:root {
  --ink: #11161d;
  --ink-2: #222a34;
  --muted: #69717d;
  --paper: #f5f7fa;
  --white: #ffffff;
  --line: #d9dee6;
  --yellow: #f2b705;
  --yellow-2: #ffd44d;
  --red: #c9292f;
  --green: #18794e;
  --shadow: 0 20px 70px rgba(7, 13, 20, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  width: 100%;
  min-height: 68px;
  padding: 12px clamp(16px, 4vw, 48px);
  color: var(--white);
  background: rgba(17, 22, 29, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 34px rgba(4, 8, 13, 0.2);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 6px;
  font-size: 14px;
}

.brand-text {
  white-space: nowrap;
}

.top-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  min-width: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.top-nav a {
  white-space: nowrap;
}

.top-nav a,
.header-phones a,
.header-cta {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.top-nav a:hover,
.header-phones a:hover {
  color: var(--yellow-2);
}

.header-phones {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.header-phones a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.header-phones a::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.16);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  font-weight: 700;
}

.header-cta:hover {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 68px);
  color: var(--white);
  background: var(--ink);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("/assets/hero-engine.webp");
  background-position: center right;
  background-size: cover;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(17, 22, 29, 0.96) 0%, rgba(17, 22, 29, 0.78) 44%, rgba(17, 22, 29, 0.24) 100%),
    linear-gradient(180deg, rgba(17, 22, 29, 0.1) 0%, rgba(17, 22, 29, 0.72) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.74fr);
  align-items: center;
  gap: clamp(26px, 5vw, 70px);
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100svh - 68px);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 78px) 0 clamp(34px, 5vw, 58px);
}

.hero-copy {
  max-width: 710px;
}

.eyebrow,
.form-kicker {
  margin: 0 0 12px;
  color: var(--yellow-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 22px);
}

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

.button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button-primary,
.submit-button {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 16px 36px rgba(242, 183, 5, 0.24);
}

.button-primary:hover,
.submit-button:hover {
  background: var(--yellow-2);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.14);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.lead-card {
  width: 100%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lead-card-head {
  padding: 26px 26px 12px;
}

.lead-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.lead-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 26px 26px;
}

.lead-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.lead-form label > span {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
}

.lead-form .wide,
.lead-form .consent,
.lead-form .honeypot,
.submit-button,
.form-status {
  grid-column: 1 / -1;
}

.form-grid {
  display: contents;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.24);
}

.consent {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--yellow);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.submit-button {
  width: 100%;
  min-height: 54px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-status.success {
  color: var(--green);
  font-weight: 800;
}

.form-status.error {
  color: var(--red);
  font-weight: 800;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) 0;
}

.section-muted {
  width: 100%;
  margin: 0;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section h2,
.bottom-cta h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-head p:not(.eyebrow),
.split p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.service-card,
.process-step {
  position: relative;
  min-height: 240px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card.priority {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 34px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 6px;
  font-weight: 900;
}

.service-card h3,
.process-step h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
}

.service-card p,
.process-step p {
  margin: 13px 0 0;
  color: var(--muted);
}

.service-card.priority p {
  color: rgba(255, 255, 255, 0.74);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  width: min(1180px, 100%);
  margin: 0 auto;
}

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

.brand-list span {
  display: grid;
  place-items: center;
  min-height: 86px;
  padding: 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
}

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

.process-step span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 28px;
  color: var(--white);
  background: var(--red);
  border-radius: 6px;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 12px;
  width: min(860px, 100%);
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.bottom-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto clamp(54px, 7vw, 86px);
  padding: clamp(28px, 5vw, 48px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(17, 22, 29, 0.96), rgba(34, 42, 52, 0.96)),
    var(--ink);
  border-radius: 8px;
}

.bottom-cta h2 {
  color: var(--white);
}

.bottom-cta .eyebrow {
  color: var(--yellow-2);
}

.site-footer {
  display: grid;
  gap: 8px;
  padding: 28px clamp(16px, 4vw, 48px);
  color: rgba(255, 255, 255, 0.7);
  background: var(--ink);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .top-nav {
    display: none;
  }

  .header-phones {
    justify-self: center;
  }

  .header-cta {
    justify-self: end;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: clamp(34px, 6vw, 58px);
  }

  .hero-copy {
    max-width: 820px;
  }

  .lead-card {
    max-width: 760px;
  }

  .service-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 118px;
  }

  .site-header {
    min-height: 62px;
    padding: 10px 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text {
    display: none;
  }

  .header-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
  }

  .header-phones {
    gap: 3px;
    font-size: 12px;
  }

  .hero {
    min-height: 0;
  }

  .hero-bg {
    background-position: 64% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(17, 22, 29, 0.92) 0%, rgba(17, 22, 29, 0.86) 54%, rgba(17, 22, 29, 0.78) 100%),
      linear-gradient(90deg, rgba(17, 22, 29, 0.7), rgba(17, 22, 29, 0.24));
  }

  .hero-inner {
    width: min(100% - 24px, 680px);
    min-height: 0;
    padding: 34px 0 28px;
  }

  .hero h1 {
    font-size: clamp(32px, 10vw, 46px);
    line-height: 1.02;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .lead-card-head {
    padding: 22px 18px 8px;
  }

  .lead-form {
    grid-template-columns: 1fr;
    padding: 14px 18px 20px;
  }

  .section,
  .section-muted {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .service-grid,
  .process-grid,
  .split,
  .brand-list,
  .bottom-cta {
    grid-template-columns: 1fr;
  }

  .service-card,
  .process-step {
    min-height: 0;
  }

  .card-number,
  .process-step span {
    margin-bottom: 22px;
  }

  .bottom-cta {
    width: min(100% - 24px, 680px);
    padding: 26px 20px;
  }
}

@media (max-width: 520px) {
  html {
    scroll-padding-top: 142px;
  }

  .site-header {
    grid-template-columns: auto 1fr;
    row-gap: 8px;
  }

  .header-phones {
    justify-self: end;
    text-align: right;
  }

  .header-cta {
    grid-column: 1 / -1;
    justify-self: stretch;
    min-height: 36px;
  }

  .hero-inner {
    width: min(100% - 20px, 680px);
    padding-top: 28px;
  }

  .lead-card {
    border-radius: 6px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
