/* Сайт приложения Badass Nav (badassnav.com): асфальт, хром, синий и оранжевый,
   как у логотипа. Сайт компании FLY JUICE и PermitRouting оформлены по-своему. */
:root {
  --asphalt: #0e0f12;
  --asphalt-2: #16181d;
  --asphalt-3: #1f2229;
  --line: #2b2f38;
  --chrome: #d9dde4;
  --muted: #9097a3;
  --blue: #2ea8ff;
  --blue-deep: #1a6dff;
  --orange: #ff7a1a;
  --stripe: #ffd21a;
  --radius: 16px;
  --heavy: Impact, Haettenschweiler, "Arial Narrow Bold", "Franklin Gothic Bold", "Arial Black", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--chrome);
  background: var(--asphalt);
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.05; margin: 0 0 .5em; color: #fff; }
h1, h2 { font-family: var(--heavy); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(34px, 5vw, 54px); }
h3 { font-size: 19px; }

.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(780px, 100% - 40px); }
.center { text-align: center; }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 15, 18, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; gap: 26px; height: 66px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-family: var(--heavy); font-size: 26px; letter-spacing: .04em; text-transform: uppercase;
}
.brand b { color: var(--blue); font-weight: 400; }
.brand.small { font-size: 20px; }
.menu { display: flex; gap: 24px; margin-left: auto; }
.menu a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.menu a:hover { color: #fff; }

/* Кнопки */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9a3c, var(--orange));
  color: #111; font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: .05em; font-size: 15px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(255, 122, 26, .45); }
.btn-chrome {
  background: linear-gradient(180deg, #f4f6f9, #aab1bc);
  color: #111;
}
.btn-chrome:hover { box-shadow: 0 8px 28px rgba(217, 221, 228, .25); }
.btn-small { padding: 9px 18px; font-size: 13px; white-space: nowrap; }
.btn-big { font-size: 17px; padding: 17px 34px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.note { color: var(--muted); font-size: 15px; }

/* Первый экран: дорога ночью, разметка уходит вдаль */
.hero {
  position: relative; overflow: hidden;
  padding: 90px 0 110px;
  background:
    radial-gradient(700px 420px at 80% 20%, rgba(46, 168, 255, .22), transparent 65%),
    radial-gradient(600px 380px at 10% 90%, rgba(255, 122, 26, .16), transparent 65%),
    var(--asphalt);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: repeating-linear-gradient(90deg, var(--stripe) 0 60px, transparent 60px 110px);
  opacity: .9;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.kicker {
  display: inline-block; margin: 0 0 18px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--stripe); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(52px, 8.5vw, 104px); line-height: .92; }
.chrome-text {
  background: linear-gradient(180deg, #ffffff 0%, #c8ced8 45%, #6f7785 52%, #e9edf2 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hot { color: var(--orange); }
.cool { color: var(--blue); }
.lead { font-size: 20px; color: #b9c0cb; max-width: 560px; }

/* Телефон с экраном ведения */
.phone {
  width: min(320px, 100%); margin: 0 auto; aspect-ratio: 9 / 18.5;
  border-radius: 44px; padding: 12px;
  background: linear-gradient(145deg, #3a3f49, #0b0c0f);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px #4a505c inset;
  transform: rotate(4deg);
}
.screen {
  position: relative; height: 100%; border-radius: 34px; overflow: hidden;
  background:
    linear-gradient(#20242c 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, #20242c 1px, transparent 1px) 0 0 / 26px 26px,
    #15181e;
}
.screen svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.turnbar {
  position: absolute; left: 10px; right: 10px; top: 12px;
  display: flex; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 16px;
  background: #0f7a3a; color: #fff; font-size: 13px; line-height: 1.3;
}
.turnbar .arr { font-size: 34px; line-height: 1; font-weight: 900; }
.turnbar b { font-size: 22px; }
.shield {
  display: inline-block; padding: 0 5px; margin-right: 4px;
  border-radius: 5px 5px 9px 9px; background: #1d4fd8; border: 2px solid #fff;
  font-weight: 800; font-size: 12px;
}
.botbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-around; padding: 14px 8px 18px;
  background: rgba(10, 11, 14, .95); border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); text-align: center; line-height: 1.2;
}
.botbar b { display: block; color: #fff; font-size: 19px; }
.permit-chip {
  position: absolute; right: 10px; top: 100px;
  padding: 6px 10px; border-radius: 10px;
  background: var(--stripe); color: #111; font-size: 11px; font-weight: 800; text-transform: uppercase;
}

/* Разделы */
.section { padding: 100px 0; }
.section.alt { background: var(--asphalt-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { font-size: 19px; color: #b9c0cb; max-width: 760px; }
.center .section-lead { margin-left: auto; margin-right: auto; }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.feat {
  padding: 28px 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--asphalt-3), var(--asphalt-2));
  border: 1px solid var(--line);
}
.feat .ico {
  width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 16px;
  border-radius: 12px; font-size: 24px;
  background: rgba(46, 168, 255, .12); border: 1px solid rgba(46, 168, 255, .35);
}
.feat:nth-child(even) .ico { background: rgba(255, 122, 26, .12); border-color: rgba(255, 122, 26, .4); }
.feat p { margin: 0; color: #a8b0bc; font-size: 16px; }

/* Пермит → маршрут: три шага */
.steps { list-style: none; padding: 0; margin: 50px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 26px 0 0; }
.steps li + li { padding-left: 26px; border-left: 2px dashed var(--stripe); }
.steps .num { font-family: var(--heavy); font-size: 72px; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--orange); }
.steps p { color: #a8b0bc; margin: 0; }

/* Логотип наклейкой */
.logo-sticker {
  background: #fff; border-radius: 26px; padding: 22px;
  transform: rotate(-3deg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }

/* Бесплатно водителю */
.free {
  text-align: center; padding: 90px 0;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 210, 26, .07) 0 22px, transparent 22px 44px),
    var(--asphalt);
}
.free .big { font-family: var(--heavy); font-size: clamp(80px, 16vw, 180px); line-height: .9; color: var(--stripe); margin: 0; }
.free p { color: #b9c0cb; font-size: 19px; }

.stores { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }
.store {
  display: flex; align-items: center; gap: 12px; min-width: 210px;
  padding: 12px 20px; border-radius: 14px;
  background: #000; border: 1px solid #555; color: #fff; text-decoration: none; text-align: left;
}
.store .s-ico { font-size: 28px; line-height: 1; }
.store small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.store b { font-size: 18px; }

.fleet-band {
  display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between;
  padding: 34px 38px; border-radius: 22px;
  background: linear-gradient(110deg, #10213d, #0e1626); border: 1px solid #22385e;
}
.fleet-band h3 { font-size: 26px; margin: 0 0 6px; }
.fleet-band p { margin: 0; color: #a8b0bc; }

/* Контактная форма */
.cform {
  display: grid; gap: 18px; margin: 36px auto 0; max-width: 720px; text-align: left;
  padding: 32px; border-radius: 22px;
  background: var(--asphalt-2); border: 1px solid var(--line);
}
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cform label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; min-width: 0; }
.cform .opt { font-weight: 400; text-transform: none; letter-spacing: 0; }
.cform input, .cform select, .cform textarea {
  width: 100%; padding: 13px 14px;
  font: inherit; font-size: 16px; text-transform: none; letter-spacing: 0; font-weight: 400;
  color: #fff; background: var(--asphalt); border: 1px solid var(--line); border-radius: 12px;
}
.cform textarea { resize: vertical; min-height: 140px; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46, 168, 255, .25); }
.cform button { justify-self: center; min-width: 240px; border: 0; cursor: pointer; font-family: inherit; }
.cform button:disabled { opacity: .6; cursor: wait; }
.cform .hp { position: absolute !important; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.cform-status { margin: 0; font-size: 16px; text-align: center; }
.cform-status:empty { display: none; }
.cform-status.ok { color: #4ade80; }
.cform-status.err { color: #ff6b6b; }

/* Подвал */
.foot { background: #08090b; color: var(--muted); font-size: 14px; padding: 34px 0; border-top: 4px solid var(--orange); }
.foot-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.foot a { color: var(--chrome); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.legal { margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--line); line-height: 1.7; }

/* Страницы Support и Privacy */
.doc { padding: 64px 0 90px; }
.doc h1 { font-size: clamp(44px, 7vw, 72px); }
.doc h2 { font-size: 30px; margin-top: 1.6em; }
.doc h3 { font-size: 18px; margin-top: 1.4em; }
.doc p, .doc li { color: #c3c9d2; }
.doc ul { padding-left: 1.3em; }
.doc li { margin: .35em 0; }
.doc .updated { color: var(--muted); font-size: 15px; }
.doc a { overflow-wrap: anywhere; }
.mailbox {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  margin: 28px 0; padding: 24px 26px;
  background: var(--asphalt-2); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius);
}
.mailbox .addr { font-size: 22px; font-weight: 800; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.faq { margin-top: 10px; }
.faq h3 { margin-bottom: .3em; }
.faq p { margin-top: 0; }

@media (max-width: 900px) {
  .menu { display: none; }
  .top-row { justify-content: space-between; }
  .hero { padding: 56px 0 80px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 50px; }
  .phone { width: min(280px, 80%); }
  .feats, .steps, .cform-row { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 18px 0; border-left: 0; border-top: 2px dashed var(--stripe); }
  .logo-sticker { max-width: 420px; margin: 0 auto; }
  .section { padding: 70px 0; }
}

@media (max-width: 560px) {
  .cform { padding: 22px 18px; gap: 16px; }
  .cform button { width: 100%; min-width: 0; }
  .doc { padding: 40px 0 56px; }
  .mailbox { padding: 18px; }
  .mailbox .btn { width: 100%; text-align: center; }
  .fleet-band { padding: 26px 22px; }
}
