:root {
  --color-orange-300: #fbae42;
  --color-orange-500: #f58220;
  --color-red-orange: #f15d29;
  --color-green: #38b54a;
  --color-white: #ffffff;
  --color-ink: #151515;
  --color-muted: #666b73;
  --color-line: #e8e8e8;
  --color-bg: #fffaf4;
  --gradient-brand: linear-gradient(135deg, #f15d29 0%, #f58220 56%, #fbae42 100%);
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page-x: clamp(12px, 1.35vw, 24px);
  --header-height: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

.skip-link {
  position: fixed;
  left: var(--page-x);
  top: 10px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--color-ink);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
  padding: 14px var(--page-x);
  background: rgba(255, 250, 244, .94);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(14px);
}

.site-header:before {
  content: "";
  position: absolute;
  left: var(--page-x);
  right: var(--page-x);
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-red-orange), rgba(241, 93, 41, 0) 34%, var(--color-line) 34%);
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

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

.brand strong {
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.15;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow-x: auto;
  color: var(--color-muted);
  font-size: 14px;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar { display: none; }

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 1.8vw, 32px);
}

.header-price {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.live i,
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 0 6px rgba(56, 181, 74, .16);
}

.header-contact {
  display: inline-flex;
  align-items: stretch;
  min-height: 44px;
  background: var(--color-ink);
  border: 1px solid var(--color-ink);
}

.phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--color-ink);
  color: var(--color-white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.header-contact .phone-link {
  border: 0;
  background: transparent;
}

.header-max-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 42px;
  border-left: 1px solid rgba(255, 255, 255, .22);
}

.header-max-link img {
  display: block;
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.header-max-link:hover {
  background: var(--color-red-orange);
}

.hero-board {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(390px, .75fr);
  min-height: calc(100vh - var(--header-height));
  gap: 1px;
  background: var(--color-line);
}

.hero-copy {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(34px, 7vw, 96px) clamp(20px, 4vw, 72px) clamp(34px, 7vw, 96px) var(--page-x);
  color: var(--color-white);
  background: var(--gradient-brand);
}

.hero-copy:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: clamp(74px, 8vw, 128px) clamp(74px, 8vw, 128px);
  opacity: .26;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .75), transparent 78%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(48px, 5.25vw, 74px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 0;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.4;
  text-wrap: balance;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.btn-icon {
  gap: 10px;
}

.btn-icon img {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  object-fit: contain;
}

.hero-actions .btn:hover {
  transform: none;
}

.hero-actions .btn {
  border: 1px solid transparent;
}

.btn-dark {
  background: var(--color-ink);
  color: var(--color-white);
}

.btn-soft {
  color: var(--color-white);
  background: rgba(255, 255, 255, .17);
  border: 1px solid rgba(255, 255, 255, .4);
}

.hero-actions .btn-dark {
  border-color: var(--color-ink);
}

.hero-actions .btn-dark:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-ink);
}

.simple-page .hero-actions .btn-dark:hover {
  background: var(--color-red-orange);
  border-color: var(--color-red-orange);
  color: var(--color-white);
}

.simple-page .hero-actions .btn-dark:hover img {
  filter: none;
}

.hero-actions .btn-soft:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-ink);
}

.hero-actions .btn-soft:hover img {
  filter: brightness(0) saturate(100%);
}

.microcopy {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 16px;
  line-height: 1.4;
  text-wrap: balance;
}

.dispatch-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 520px;
  background: var(--color-white);
}

.dispatch-panel:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(241, 93, 41, .08), transparent 32%),
    linear-gradient(315deg, rgba(21, 21, 21, .08), transparent 28%);
}

.price-cell {
  padding: clamp(24px, 4vw, 42px);
  border-bottom: 1px solid var(--color-line);
}

.price-cell span,
.fact-grid span {
  display: block;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.price-cell strong {
  display: block;
  margin: 10px 0;
  font-size: clamp(74px, 6.35vw, 100px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -0.04em;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--color-line);
}

.fact-grid div {
  padding: 20px;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.fact-grid div:nth-child(2n) { border-right: 0; }
.fact-grid div:nth-last-child(-n+2) { border-bottom: 0; }

.fact-grid strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(18px, 1.4vw, 20px);
  font-weight: 700;
  line-height: 1.2;
}

.fact-grid .fact-note {
  display: block;
  margin-top: 6px;
  color: var(--color-muted);
  font-size: 9px;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.hero-gallery {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background: var(--color-line);
}

.hero-truck {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  animation: hero-gallery-slide 18s infinite;
}

.hero-truck[data-src] {
  visibility: hidden;
  animation-play-state: paused;
}

.hero-truck:nth-child(2) { animation-delay: 3s; }
.hero-truck:nth-child(3) { animation-delay: 6s; }
.hero-truck:nth-child(4) { animation-delay: 9s; }
.hero-truck:nth-child(5) { animation-delay: 12s; }
.hero-truck:nth-child(6) { animation-delay: 15s; }

@keyframes hero-gallery-slide {
  0%, 15% {
    opacity: 1;
    transform: scale(1);
  }

  20%, 100% {
    opacity: 0;
    transform: scale(1.025);
  }
}

@media (max-width: 720px) {
  body { padding-bottom: 0; }

  .site-header {
    position: relative;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 64px;
    padding: 10px var(--page-x);
    gap: 8px;
  }

  .site-header > .brand small,
  .site-header > .brand span,
  .header-price,
  .live { display: none; }

  .brand {
    min-height: 42px;
    gap: 0;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .header-actions {
    min-width: 0;
    justify-self: end;
    gap: 0;
  }

  .phone-link {
    min-height: 42px;
    padding: 0 12px;
    font-size: clamp(12px, 3.2vw, 14px);
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  .header-contact {
    min-height: 42px;
  }

  .header-max-link {
    width: 42px;
    min-height: 40px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    order: 3;
    grid-column: 1 / -1;
    margin: 2px 0 0;
    padding: 0;
    overflow: visible;
    background: var(--color-line);
    border: 1px solid var(--color-line);
  }

  .nav a {
    justify-content: center;
    min-height: 36px;
    padding: 0 6px;
    background: rgba(255, 250, 244, .96);
    font-size: 13px;
    line-height: 1.05;
    text-align: center;
  }

  .nav a:last-child {
    grid-column: 1 / -1;
  }

  .hero-board {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .hero-truck {
    animation: none;
    opacity: 0;
    transform: scale(1);
  }

  .hero-truck:first-child {
    opacity: 1;
  }

  .hero-truck:not(:first-child) {
    display: none;
  }

  .hero-copy {
    padding: 30px var(--page-x);
  }

  h1 {
    font-size: clamp(34px, 9.6vw, 46px);
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .dispatch-panel {
    grid-template-rows: auto auto auto;
    min-height: 0;
  }

  .price-cell strong {
    font-size: clamp(64px, 22vw, 88px);
  }

  .fact-grid {
    grid-template-columns: 1fr;
  }

  .fact-grid div,
  .fact-grid div:nth-child(2n),
  .fact-grid div:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }
}
