/* ============================================================
   ЧИСТЫЙ РЕЙС — caution yellow on midnight steel
   Референс: docs/design/DESIGN.md (ON.energy)
   Плоская индустриальная система: без теней и градиентов,
   иерархия — цветовыми full-bleed актами и весом 300/400.
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --steel: #0b0b0c;
  --carbon: #1d1d1f;
  --gunmetal: #3f3f42;
  --aluminum: #a6a6a8;
  --white: #ececec;
  --yellow: #ffd400;
  --yellow-ghost: #d9b100;
  --ink: #101010;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --radius-btn: 6px;
  --radius-card: 9px;
  --container: 1160px;
  --section-gap: clamp(72px, 10vw, 120px);

  /* аварийная разметка — сигнатурный элемент */
  --hazard: repeating-linear-gradient(-45deg,
    var(--ink) 0 14px, var(--yellow) 14px 28px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  background: var(--steel);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}
.section-light :focus-visible { outline-color: var(--ink); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 200;
  background: var(--yellow); color: var(--ink);
  padding: 8px 16px; border-radius: var(--radius-btn); font-weight: 500;
}
.skip-link:focus-visible { left: 12px; }

/* --- Типографика --- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 18px;
}
.section-light .eyebrow { color: var(--ink); }
.section-light .eyebrow::before,
.section-dark .eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px; height: 10px;
  margin-right: 10px;
  background: var(--hazard);
  vertical-align: baseline;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-sub {
  max-width: 520px;
  color: var(--aluminum);
  margin-bottom: 44px;
}
.section-light .section-sub { color: #4c4c4c; }

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #ffdf3d; }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--gunmetal); }
.btn-ghost:hover { border-color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--carbon); }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: #bdbdbd; }
.btn-ghost-dark:hover { border-color: var(--ink); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 11, 12, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--gunmetal); }
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  background: var(--yellow);
  color: var(--ink);
  padding: 4px 8px;
  line-height: 1.2;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 17px;
  letter-spacing: 0.14em;
}

.nav-links {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.nav-links a {
  padding: 7px 14px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  color: var(--white);
  background: transparent;
  transition: background-color 0.15s ease;
}
.nav-links a:hover { background: var(--carbon); }
.nav-phone-mobile { display: none; }
.nav-cta { flex-shrink: 0; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO — тёмный full-bleed акт
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: url('img/hero-truck.webp') center 30% / cover no-repeat;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.35) 45%, rgba(11,11,12,0.92) 100%);
}
.hero-body {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 140px 24px 64px;
}
.hero-eyebrow { margin-bottom: 22px; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 10vw, 128px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero-sub {
  max-width: 480px;
  font-size: 17px;
  color: #d4d4d4;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-facts {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(166, 166, 168, 0.3);
  padding-top: 28px;
}
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero-facts span { font-size: 13px; color: var(--aluminum); }

/* ============================================================
   STATEMENT — жёлтый акт с аварийной разметкой (сигнатура)
   ============================================================ */
.statement {
  background: var(--yellow);
  color: var(--ink);
  padding: clamp(64px, 9vw, 110px) 24px;
  position: relative;
  text-align: left;
}
.statement::before,
.statement::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 14px;
  background: var(--hazard);
}
.statement::before { top: 0; }
.statement::after { bottom: 0; }

.statement-ghost {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 9vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--yellow-ghost);
  max-width: var(--container);
  margin: 0 auto;
}
.statement-note {
  max-width: var(--container);
  margin: 26px auto 0;
  font-size: 17px;
  color: var(--ink);
}

.statement-slim { padding: 44px 24px; }
.statement-line {
  max-width: var(--container);
  margin: 0 auto;
  font-size: 18px;
}
.statement-line strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-right: 10px;
}

/* ============================================================
   Секции
   ============================================================ */
.section { padding: var(--section-gap) 0; }
.section-light { background: var(--white); color: var(--ink); }
.section-dark { background: var(--steel); color: var(--white); }
.section-faq { padding-top: 0; }

/* --- Прайс --- */
.price-list { border-top: 1px solid #c9c9c9; }
.price-cat { border-bottom: 1px solid #c9c9c9; }
.price-cat summary {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
}
.price-cat summary::-webkit-details-marker { display: none; }
.price-cat-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(20px, 2.6vw, 28px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.price-cat-from {
  margin-left: auto;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.chev {
  width: 10px; height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  align-self: center;
}
details[open] > summary .chev { transform: rotate(-135deg) translateY(-2px); }
.price-cat summary:hover .price-cat-name { color: #4c4c4c; }

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 26px;
  font-size: 15px;
}
.price-table th {
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6b6b;
  padding: 8px 12px;
  border-bottom: 1px solid #c9c9c9;
}
.price-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #dcdcdc;
  font-variant-numeric: tabular-nums;
}
.price-table td:not(:first-child),
.price-table th:not(:first-child) {
  text-align: right;
  white-space: nowrap;
}
.price-table tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: #e2e2e2; }

.price-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* --- Юрлицам --- */
.fleet-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.fleet-text p { color: var(--aluminum); max-width: 480px; }
.fleet-points { margin: 28px 0 36px; display: grid; gap: 12px; }
.fleet-points li {
  padding-left: 34px;
  position: relative;
}
.fleet-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 20px; height: 8px;
  background: var(--hazard);
}
.fleet-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.fleet-photo {
  border: 1px solid var(--gunmetal);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.fleet-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* --- Фото --- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.photo-item {
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius-card);
  overflow: hidden;
}
.photo-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.photo-item:hover img { transform: scale(1.03); }

/* --- Отзывы --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.review {
  background: #f7f7f7;
  border: 1px solid #d6d6d6;
  border-radius: var(--radius-card);
  padding: 28px;
}
.review p { margin-bottom: 18px; color: #2c2c2c; }
.review footer { display: flex; align-items: baseline; gap: 10px; }
.review footer strong {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.review footer span { font-size: 13px; color: #6b6b6b; }

/* --- FAQ --- */
.faq-list { border-top: 1px solid #c9c9c9; }
.faq-item { border-bottom: 1px solid #c9c9c9; }
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 4px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { margin-left: auto; }
.faq-item p { padding: 0 4px 20px; color: #4c4c4c; max-width: 640px; }

/* --- Контакты --- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contacts-list { display: grid; gap: 24px; margin-top: 12px; }
.contacts-list dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--aluminum);
  margin-bottom: 6px;
}
.contacts-list dd a { border-bottom: 1px solid var(--gunmetal); }
.contacts-list dd a:hover { border-bottom-color: var(--yellow); color: var(--yellow); }
.contact-phone {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: 0.01em;
  border-bottom: 0 !important;
}
.contact-phone:hover { color: var(--yellow); }
.contacts-map {
  border: 1px solid var(--gunmetal);
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-height: 560px;
}
.contacts-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- Футер --- */
.footer {
  border-top: 1px solid var(--gunmetal);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-note { color: var(--aluminum); font-size: 14px; margin-right: auto; }
.footer-phone {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 20px;
}
.footer-phone:hover { color: var(--yellow); }

/* --- Плавающий телефон (мобайл) --- */
.fab-phone {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  display: none;
  align-items: center;
  justify-content: center;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(11, 11, 12, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-card);
}
.lightbox-close {
  position: absolute;
  top: 16px; right: 24px;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
}

/* --- Reveal-анимация (только при работающем JS) --- */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
html.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .photo-item img, .burger span, .chev, .btn { transition: none; }
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 960px) {
  .fleet-grid, .contacts-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-map { aspect-ratio: 4 / 3; }
}

@media (max-width: 760px) {
  .nav-cta { display: none; }
  .burger { display: flex; margin-left: auto; }
  .nav-links {
    position: fixed;
    top: 61px; left: 0; right: 0;
    background: var(--steel);
    border-bottom: 1px solid var(--gunmetal);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; font-size: 16px; }
  .nav-links a.nav-phone-mobile {
    display: block;
    margin-top: 10px;
    background: var(--yellow);
    color: var(--ink);
    text-align: center;
    font-weight: 500;
  }
  .nav-links a.nav-phone-mobile:hover { background: #ffdf3d; }

  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .fab-phone { display: flex; }

  .price-cat summary { flex-wrap: wrap; gap: 6px 18px; }
  .price-table { display: block; overflow-x: auto; }
}

@media (max-width: 480px) {
  .photo-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .price-foot .btn, .fleet-actions .btn { width: 100%; justify-content: center; }
  .brand-name { font-size: 15px; }
}
