:root {
  --ink: #111418;
  --muted: #606873;
  --line: #e6e8ec;
  --surface: #ffffff;
  --soft: #f4f6f8;
  --dark: #080b0f;
  --red: #d71920;
  --red-dark: #a90f15;
  --steel: #28313a;
  --shadow: 0 22px 60px rgba(10, 14, 20, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(20, 24, 30, 0.08);
  backdrop-filter: blur(16px);
}

.contact-strip {
  background: var(--dark);
  color: #f7f8fa;
  font-size: 13px;
}

.strip-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.strip-inner span {
  margin-left: auto;
  color: #cfd4db;
}

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

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

.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--red), #7d0b12);
  font-weight: 800;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(215, 25, 32, 0.25);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 12px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  place-items: center;
  gap: 4px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: white;
}

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

.hero-media {
  background-image: url("./public/engine-hero.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.94) 0%, rgba(5, 8, 12, 0.78) 38%, rgba(5, 8, 12, 0.18) 78%),
    linear-gradient(180deg, rgba(5, 8, 12, 0.1), rgba(5, 8, 12, 0.72));
}

.hero-content {
  position: relative;
  padding: 90px 0 120px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  width: min(760px, 100%);
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  width: min(620px, 100%);
  margin: 26px 0 0;
  color: #dce2e8;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button.primary {
  color: white;
  background: var(--red);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--red-dark);
}

.button.secondary {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.button.light {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.proof-bar {
  background: white;
  box-shadow: var(--shadow);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-grid article {
  min-height: 132px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.proof-grid article:last-child {
  border-right: 0;
}

.proof-grid h2 {
  margin: 0 0 6px;
  font-size: 15px;
  text-transform: uppercase;
}

.proof-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.proof-icon {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 2px solid var(--red);
  border-radius: 8px;
}

.proof-icon::before,
.proof-icon::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid var(--red);
  border-radius: 50%;
}

.proof-icon.gear {
  border-radius: 50%;
}

.proof-icon.gear::after {
  inset: 18px;
  border-radius: 2px;
}

.proof-icon.shield {
  border-radius: 50% 50% 45% 45%;
}

.proof-icon.clock {
  border-radius: 50%;
}

.proof-icon.clock::after {
  inset: auto auto 19px 20px;
  width: 13px;
  height: 2px;
  border: 0;
  background: var(--red);
  border-radius: 2px;
  transform: rotate(35deg);
  transform-origin: left center;
}

.section {
  padding: 96px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 78px;
  align-items: start;
}

.section h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

.copy p,
.muted,
.contact-panel p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.copy p:first-child {
  margin-top: 0;
}

.services,
.process {
  background: var(--soft);
}

.section-heading {
  width: min(720px, 100%);
  margin-bottom: 42px;
}

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

.service-card {
  min-height: 280px;
  padding: 28px;
  background: white;
  border: 1px solid rgba(17, 20, 24, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.service-card span {
  color: var(--red);
  font-weight: 800;
}

.service-card h3,
.timeline h3 {
  margin: 34px 0 12px;
  font-size: 22px;
}

.service-card p,
.timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.engines {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 90% 10%, rgba(215, 25, 32, 0.09), transparent 32%);
}

.brand-cloud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.brand-cloud span {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--steel);
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 800;
  text-align: center;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.gallery {
  background: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 220px 220px;
  gap: 18px;
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 220px;
  padding: 24px;
  border-radius: 8px;
  background-image:
    linear-gradient(180deg, rgba(5, 8, 12, 0.04), rgba(5, 8, 12, 0.82)),
    url("./public/engine-hero.png");
  background-size: cover;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
}

.gallery-tile span {
  position: relative;
  color: white;
  font-size: 20px;
  font-weight: 800;
}

.tile-wide {
  grid-row: span 2;
  background-position: center right;
}

.tile-mid {
  background-position: center center;
}

.tile-close {
  background-position: 76% center;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.timeline article {
  min-height: 230px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.timeline article:last-child {
  border-right: 0;
}

.timeline span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--ink);
  border-radius: 50%;
  font-weight: 800;
}

.contact-section {
  padding: 96px 0;
  color: white;
  background:
    linear-gradient(90deg, rgba(8, 11, 15, 0.96), rgba(8, 11, 15, 0.82)),
    url("./public/engine-hero.png") center right / cover;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.78fr);
  align-items: start;
  gap: 48px;
}

.contact-panel p {
  width: min(660px, 100%);
  color: #d7dde4;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.two {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label {
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d7dce3;
  border-radius: 8px;
  padding: 13px 14px;
  background: white;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 128px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.12);
}

.captcha-row {
  grid-template-columns: 1fr 120px;
  align-items: end;
}

.form-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

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

.form-status.success {
  color: #17633a;
}

.form-status.error {
  color: var(--red-dark);
}

.form-trap {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.contact-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.contact-shortcuts a {
  color: var(--steel);
}

.footer {
  color: #d9dde4;
  background: #05070a;
}

.footer-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 118px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 15px 12px;
  }

  .proof-grid,
  .service-grid,
  .timeline,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-rows: 220px 220px;
  }

  .tile-wide {
    grid-column: span 2;
    grid-row: span 1;
  }

  .proof-grid article:nth-child(2),
  .timeline article:nth-child(2) {
    border-right: 0;
  }

  .proof-grid article {
    border-bottom: 1px solid var(--line);
  }

  .split,
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .strip-inner {
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 8px 0;
  }

  .strip-inner span {
    margin-left: 0;
  }

  .nav {
    min-height: 76px;
  }

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

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    max-width: 170px;
  }

  .nav-links {
    top: 122px;
    left: 14px;
    right: 14px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 8, 12, 0.94), rgba(5, 8, 12, 0.74)),
      linear-gradient(180deg, rgba(5, 8, 12, 0.08), rgba(5, 8, 12, 0.86));
  }

  .hero-content {
    padding: 68px 0 88px;
  }

  .button {
    width: 100%;
  }

  .contact-form {
    padding: 20px;
  }

  .form-row.two,
  .captcha-row {
    grid-template-columns: 1fr;
  }

  .proof-grid,
  .service-grid,
  .timeline,
  .brand-cloud,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-rows: none;
  }

  .tile-wide {
    grid-column: auto;
  }

  .proof-grid article,
  .timeline article {
    border-right: 0;
  }

  .section,
  .contact-section {
    padding: 70px 0;
  }
}
