/* Токены — см. DESIGN.md */
:root {
  --bg: #14171c;
  --bg-alt: #1a1e24;
  --surface: #20252c;
  --line: #2e343d;
  --text: #f1f3f5;
  --muted: #a3aab4;
  --accent: #2f80ed;
  --accent-hi: #4b93f5;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-hi); }
a:hover { color: #7db1fa; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }
svg { width: 20px; height: 20px; flex: none; }

h1, h2 { font-weight: 800; text-transform: uppercase; line-height: 1.12; letter-spacing: .01em; margin: 0 0 32px; }
h1 { font-size: clamp(32px, 5vw, 60px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 0 0 10px; }
p { margin: 0 0 16px; }
.center { text-align: center; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.lead { font-size: 18px; color: #c9ced5; max-width: 760px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 32px;
  background: var(--accent); color: #fff;
  font: 700 16px/1 var(--sans); text-decoration: none;
  border: 1px solid var(--accent); border-radius: 6px; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: #fff; }
.btn--outline { background: transparent; border-color: #5a626d; min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--outline:hover { background: rgba(255,255,255,.06); border-color: var(--text); }
.btn--block { width: 100%; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 50; background: rgba(20,23,28,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand__name { font: 800 20px/1 var(--sans); letter-spacing: .04em; display: flex; flex-direction: column; gap: 4px; }
.brand__name small { font: 500 11px/1.2 var(--sans); letter-spacing: 0; color: var(--muted); max-width: 190px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.nav a:hover { color: var(--accent-hi); }
.header__phone { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; text-decoration: none; white-space: nowrap; }
.header__phone svg { width: 16px; height: 16px; color: var(--accent-hi); }
.burger { display: none; }

/* Первый экран */
.hero { position: relative; overflow: hidden; padding: 120px 0 150px; text-align: center; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; z-index: -2; filter: grayscale(.35); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,23,28,.78) 0%, rgba(20,23,28,.62) 45%, var(--bg) 100%); }
.hero__in { display: flex; flex-direction: column; align-items: center; }
.hero h1 { margin-bottom: 20px; text-shadow: 0 2px 24px rgba(0,0,0,.5); }
.hero__lead { font-size: 19px; max-width: 640px; color: #dde1e6; margin-bottom: 36px; }

/* Полоса преимуществ */
.perks { list-style: none; margin: -72px 0 0; padding: 20px; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.perks svg { width: 22px; height: 22px; padding: 3px; color: #fff; background: var(--accent); border-radius: 4px; }

/* Секции */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }

/* Почему доверяют */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why__card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px 24px; }
.why__card p { color: var(--muted); font-size: 15px; margin: 0; }
.ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; background: rgba(47,128,237,.16); color: var(--accent-hi); margin-bottom: 20px; }
.ico svg { width: 22px; height: 22px; }

/* Когда нужна охрана */
.when { display: grid; grid-template-columns: 1fr 1.05fr 1fr; gap: 16px; align-items: stretch; }
.when__col { display: grid; grid-template-rows: repeat(3, 1fr); gap: 16px; }
.when__tile { position: relative; margin: 0; min-height: 170px; border-radius: 10px; overflow: hidden; background: #0d0f12; }
.when__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.42); transition: filter .3s; }
.when__tile:hover img { filter: grayscale(.4) brightness(.5); }
.when__tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px; background: linear-gradient(180deg, transparent, rgba(8,10,12,.85)); font-size: 15px; line-height: 1.45; color: #d6dadf; }
.when__tile b { color: #fff; }
.when__portrait { margin: 0; border-radius: 10px; overflow: hidden; }
.when__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

/* VIP */
.fleet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.fleet__item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.fleet__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.fleet__item img.pos-car { object-position: center 75%; }
.fleet__item > div { padding: 24px; }
.fleet__item p { color: var(--muted); margin: 0; font-size: 15px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 4px; background: var(--accent); color: #fff; margin-bottom: 12px; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; color: var(--muted); font-size: 15px; counter-increment: s; }
.steps li::before { content: counter(s); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(47,128,237,.16); color: var(--accent-hi); font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.steps b { color: var(--text); display: block; margin-bottom: 4px; }
.reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.reel { margin: 0; position: relative; cursor: pointer; }
.reel video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: #000; }
.reel::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px;
  border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") 55% 50%/26px no-repeat;
  transition: opacity .2s; pointer-events: none;
}
.reel.is-playing::after { opacity: 0; }

/* Команда */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.ticks svg { width: 20px; height: 20px; padding: 3px; color: #fff; background: var(--accent); border-radius: 4px; margin-top: 2px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 16px; margin-top: 48px; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.gallery img.g-wide { aspect-ratio: auto; }

/* Клиенты */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partners > div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.partners h3 { color: var(--accent-hi); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.partners ul { list-style: none; padding: 0; margin: 0; }
.partners li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: #c9ced5; }
.partners li:last-child { border-bottom: 0; }
.note { margin: 32px 0 0; color: var(--muted); font-size: 14px; }

/* Стоимость и форма */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.price .ticks { margin: 8px 0 32px; }
.contacts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 15px; }
.contacts dt { color: var(--muted); }
.contacts dd { margin: 0; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 32px; display: grid; gap: 16px; }
.form h3 { font-size: 22px; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--bg); color: var(--text); font: 500 16px/1.4 var(--sans);
  border: 1px solid var(--line); border-radius: 6px;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent-hi); box-shadow: 0 0 0 3px rgba(47,128,237,.25); }
.form__err { color: #ff8a8a; margin: 0; font-size: 14px; }
.form__hint { color: var(--muted); font-size: 13px; margin: 0; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer a { color: var(--text); font-weight: 700; text-decoration: none; }
.call-fab { display: none; }

/* Узкий десктоп / планшет */
@media (max-width: 1100px) {
  .header__cta { display: none; }
  .perks, .why { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery img.g-wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

@media (max-width: 960px) {
  .container { padding: 0 20px; }
  .header__phone { display: none; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    margin-left: auto; width: 44px; height: 44px; padding: 10px;
    background: none; border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
  }
  .burger span { display: block; height: 2px; background: var(--text); transition: transform .2s; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px 20px; border-top: 1px solid var(--line); font-size: 17px; }
  .section { padding: 64px 0; }
  .when { grid-template-columns: 1fr 1fr; }
  .when__portrait { grid-column: 1 / -1; grid-row: 1; max-height: 460px; }
  .split, .price { grid-template-columns: 1fr; gap: 32px; }
  .partners { grid-template-columns: 1fr 1fr; }
  .fleet { grid-template-columns: repeat(2, 1fr); }
  .reels { grid-template-columns: repeat(2, 1fr); }
  .call-fab {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40;
    min-height: 52px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
  }
  .footer { padding-bottom: 96px; }
}

@media (max-width: 600px) {
  .brand__name small { display: none; }
  .hero { padding: 72px 0 120px; }
  .hero__lead { font-size: 17px; }
  .hero .btn { width: 100%; }
  .perks, .why, .steps, .fleet, .partners, .when, .form__row { grid-template-columns: 1fr; }
  .perks { margin-top: -56px; padding: 12px; gap: 10px; }
  .when__portrait { max-height: 380px; }
  .when__tile { min-height: 150px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .form { padding: 22px; }
  .contacts { grid-template-columns: 1fr; gap: 2px; }
  .contacts dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Форма: ловушка для ботов и сообщение об успехе */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__ok h3 { color: var(--text); }
.form__ok p { color: var(--muted); margin: 0; }
.btn:disabled { opacity: .6; cursor: progress; }
.form [hidden] { display: none !important; }
.form__ok h3:focus { outline: none; }
