/*
  Сайт эвакуатора evo70.ru. Асфальт и сигнальный жёлтый: тёмные шапка и
  первый экран, светлые разделы ниже — на телефоне у дороги, на солнце,
  тёмный текст на светлом читается лучше.
*/

:root {
  --asphalt: #14171c;
  --asphalt-2: #1d2128;
  --asphalt-3: #2a2f38;
  --yellow: #ffc21a;
  --yellow-dark: #e0a500;
  --ink: #16191f;
  --paper: #f6f5f1;
  --paper-2: #ecebe5;
  --line: #d9d7cf;
  --muted: #5d6370;
  --muted-dark: #a3a9b5;
  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

/* Классы с display (кнопки, значки) иначе перебивают атрибут hidden. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 6.5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ── Кнопки ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 20px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn--big { min-height: 56px; padding: 0 26px; font-size: 1.08rem; }
.btn--call { background: var(--yellow); color: var(--ink); }
.btn--call:hover { background: #ffd04d; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { border-color: #fff; }

/* ── Шапка ─────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(20, 23, 28, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--asphalt-3);
  color: #fff;
}
.top__inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; background: var(--yellow); color: var(--asphalt);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text b { font-size: 1.15rem; letter-spacing: .02em; }
.brand__sub { font-size: .78rem; color: var(--muted-dark); }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted-dark); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: #fff; }

.top__call { margin-left: 8px; }

/* ── Первый экран ──────────────────────────────────── */
.hero {
  background:
    radial-gradient(ellipse 70% 60% at 85% 20%, rgba(255, 194, 26, .12), transparent 70%),
    var(--asphalt);
  color: #fff;
  padding: 56px 0 64px;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--yellow); font-weight: 700; font-size: .95rem; margin-bottom: 18px;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%; background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}
.hero__lead { font-size: 1.15rem; color: #d3d7de; max-width: 32em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }

.locate {
  margin-top: 14px; padding: 14px 16px; max-width: 34em;
  background: var(--asphalt-2); border: 1px solid var(--asphalt-3); border-radius: var(--radius);
}
.locate__status { margin: 0; color: #d3d7de; }
.locate__status code { color: #fff; font-size: .95em; }
.locate__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.hero__facts {
  list-style: none; padding: 0; margin: 34px 0 0;
  display: flex; flex-wrap: wrap; gap: 14px 34px;
}
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts b { font-size: 1.3rem; color: #fff; }
.hero__facts span { font-size: .9rem; color: var(--muted-dark); }

.hero__art { margin: 0; }
.truck { width: 100%; height: auto; display: block; }
.beacon { animation: beacon 1.2s steps(2, jump-none) infinite; }
@keyframes beacon { 50% { fill: #ffd04d; } }

/* ── Разделы ───────────────────────────────────────── */
.section { padding: 72px 0; }
.section--alt { background: var(--paper-2); }
.section__lead { color: var(--muted); max-width: 44em; font-size: 1.05rem; margin-bottom: 32px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.card p { color: var(--muted); margin: 0; }
.card__ico {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 14px;
  border-radius: 12px; background: var(--asphalt); color: var(--yellow); fill: var(--yellow);
}

.prices { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.price-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { background: var(--asphalt); color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child { font-weight: 800; white-space: nowrap; text-align: right; }
.price-table th:last-child { text-align: right; }

.note {
  background: var(--asphalt); color: #fff; border-radius: var(--radius); padding: 22px 24px;
  border-left: 6px solid var(--yellow);
}
.note ul { margin: 0; padding-left: 1.1em; color: #d3d7de; }
.note li + li { margin-top: .5em; }

.steps {
  list-style: none; counter-reset: step; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.steps li {
  counter-increment: step; position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 62px 20px 22px; display: flex; flex-direction: column; gap: 6px;
}
.steps li::before {
  content: counter(step);
  position: absolute; top: 18px; left: 20px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); font-weight: 800;
}
.steps b { font-size: 1.08rem; }
.steps span { color: var(--muted); }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--yellow-dark); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.contact-list { margin: 0; display: grid; gap: 14px; }
.contact-list dt { font-size: .85rem; color: var(--muted); }
.contact-list dd { margin: 0; font-size: 1.15rem; font-weight: 700; }
.contact-list a { text-decoration: none; font-size: 1.4rem; }
.contacts__cta {
  background: var(--asphalt); color: #fff; border-radius: var(--radius);
  padding: 30px; text-align: center;
}
.contacts__cta p { font-size: 1.2rem; font-weight: 700; }

.foot { background: var(--asphalt); color: var(--muted-dark); padding: 26px 0; font-size: .9rem; }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }
.foot p { margin: 0; }

.callbar { display: none; }

/* ── Водители на линии ─────────────────────────────── */
.section--dark { background: var(--asphalt); color: #fff; }
.section--dark .section__lead { color: var(--muted-dark); }
.drivers {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px;
}
.driver {
  background: var(--asphalt-2); border: 1px solid var(--asphalt-3); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.driver__photo {
  aspect-ratio: 4 / 3; background: var(--asphalt-3);
  display: grid; place-items: center; color: var(--yellow);
}
.driver__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.driver__photo svg { width: 64px; height: 64px; fill: currentColor; opacity: .7; }
.driver__body { padding: 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.driver__body h3 { margin: 0; font-size: 1.25rem; }
.driver__vehicle { color: var(--muted-dark); margin: 0 0 10px; }
.driver__call { margin-top: auto; }
.drivers__status { color: var(--muted-dark); font-size: 1.05rem; margin: 0; }

/* ── Узкие экраны ──────────────────────────────────── */
@media (max-width: 960px) {
  .nav { display: none; }
  .top__call { margin-left: auto; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .prices, .contacts { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .wrap { padding: 0 16px; }
  .top__call span { display: none; }
  .top__call { width: 46px; padding: 0; }
  .hero { padding: 28px 0 44px; }
  .hero__actions .btn { width: 100%; }
  .section { padding: 52px 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .price-table th, .price-table td { padding: 12px 14px; }
  .callbar {
    display: flex; align-items: center; justify-content: center; gap: .5em;
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 30; min-height: 56px; border-radius: 999px;
    background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 1.08rem;
    text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    transition: transform .2s, opacity .2s;
  }
  /* Пока кнопки первого экрана видны, нижняя полоса их не дублирует. */
  .callbar.is-hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot, .beacon { animation: none; }
}
