/* Salam Taxi — лендинг «Стань водителем». Без внешних шрифтов и картинок. */
:root {
  --sun: #FFB800;
  --sun-ink: #1B1400;
  --sun-wash: #FFF3D1;
  --flag: #D7102B;
  --flag-soft: #FF8A95;
  --ink: #14161B;
  --muted: #6A6F7A;
  --bg: #F4F2EC;
  --surface: #FFF;
  --line: #E4E0D6;
  --wrap: 1120px;
  --gutter: 20px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

/* Язык: оба текста в разметке, показываем один. */
html[lang="ru"] [lang="ky"],
html[lang="ky"] [lang="ru"] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-left)) 0 max(var(--gutter), env(safe-area-inset-right));
}

/* ── Шапка ─────────────────────────────── */
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-mark { width: 34px; height: 34px; display: block; }

.langs {
  display: none;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.js .langs { display: inline-flex; }
.lang-btn {
  min-width: 44px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 14px/1 var(--font);
  cursor: pointer;
}
.lang-btn[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

/* ── Кнопки ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 14px;
  font: 800 18px/1.1 var(--font);
  text-decoration: none;
  text-align: center;
}
.btn-main {
  background: var(--sun);
  color: var(--sun-ink);
  box-shadow: 0 4px 0 var(--ink);
  border: 2px solid var(--ink);
}
.btn-main:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-line {
  border: 2px solid currentColor;
  color: #fff;
}
.btn-ico { width: 22px; height: 22px; flex: none; }
.btn-block { display: flex; width: 100%; }

/* ── Первый экран ───────────────────────── */
.hero { position: relative; padding-top: 12px; overflow: hidden; }
.hero-grid { display: grid; gap: 8px; }
.kicker {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
h1 {
  margin-top: 10px;
  font-size: clamp(42px, 12.4vw, 76px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede {
  margin-top: 18px;
  max-width: 34em;
  font-size: 18px;
}
.hero .btn-main { margin-top: 26px; width: 100%; }
.cta-note {
  margin-top: 14px;
  max-width: 34em;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

/* Колесо-тюндюк катится по дороге. */
.hero-art {
  position: relative;
  height: 168px;
  margin-top: 18px;
}
.wheel-roll {
  position: absolute;
  bottom: -2px;
  right: 4%;
  width: 170px;
  height: 170px;
  animation: roll-in 1.4s cubic-bezier(.2,.75,.25,1) .15s both;
}
.wheel {
  display: block;
  width: 100%;
  height: 100%;
  animation: spin-in 1.4s cubic-bezier(.2,.75,.25,1) .15s both;
}
@keyframes roll-in { from { transform: translateX(-130vw); } to { transform: none; } }
@keyframes spin-in { from { transform: rotate(-900deg); } to { transform: none; } }

.road {
  height: 30px;
  background:
    linear-gradient(90deg, var(--sun) 0 34px, transparent 34px 64px) 0 50% / 64px 4px repeat-x,
    var(--ink);
}

/* ── Секции ─────────────────────────────── */
.sec { padding: 56px 0; border-bottom: 1px solid var(--line); }
.sec-grid { display: grid; gap: 22px; }
.sec-title {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Почему Salam */
.perks { display: grid; gap: 0; }
.perks li {
  padding: 18px 0 18px 22px;
  border-top: 1px solid var(--line);
  position: relative;
}
.perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 2px var(--ink);
}
.perks p { margin-top: 6px; color: #3B3F47; }

/* Что понадобится */
.needs { display: grid; gap: 10px; }
.needs li {
  position: relative;
  padding: 14px 16px 14px 52px;
  background: var(--surface);
  border-radius: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.needs li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sun);
}
.needs li::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 18px;
  width: 7px;
  height: 12px;
  border: solid var(--sun-ink);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.need-sub {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: #4A4E57;
}
.need-sub.hint {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 4px solid var(--sun);
  border-radius: 0 8px 8px 0;
  background: var(--sun-wash);
  color: var(--ink);
}

/* Как начать: дорожная разметка между шагами */
.steps { counter-reset: step; display: grid; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 28px 64px;
  min-height: 72px;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -6px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sun);
  font-weight: 900;
  font-size: 20px;
}
.steps li:last-child::before { background: var(--sun); color: var(--sun-ink); box-shadow: inset 0 0 0 3px var(--ink); }
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 44px;
  bottom: 0;
  width: 4px;
  background: linear-gradient(var(--ink) 0 12px, transparent 12px 20px) 0 0 / 4px 20px repeat-y;
}
.steps p { margin-top: 4px; color: #3B3F47; }

/* Города */
.cities { display: flex; flex-wrap: wrap; gap: 8px; }
.cities li {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
  font-size: 16px;
}
.cities li:first-child { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.aside { margin-top: 16px; font-size: 15px; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 18px 44px 18px 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:focus-visible { outline-offset: -3px; }
.faq details p { padding: 0 0 20px; color: #3B3F47; max-width: 40em; }

/* Непроверенные условия: владелец подтверждает */
.tbc {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 0 7px;
  border: 1.5px dashed var(--flag);
  border-radius: 999px;
  color: var(--flag);
  font-weight: 700;
  white-space: nowrap;
}
.tbc-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* Вопросы / Direct */
.ask {
  padding: 56px 0 64px;
  background: var(--ink);
  color: #fff;
}
.ask h2 {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.025em;
}
.ask p { margin-top: 12px; max-width: 32em; color: #D3D6DC; }
.ask-actions { display: grid; gap: 14px; margin-top: 26px; }
.ask .btn-main { box-shadow: 0 4px 0 #000; border-color: var(--sun); }
.ask :focus-visible { outline-color: var(--sun); }

/* Подвал */
.foot { padding: 32px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 15px; }
.foot-inner { display: grid; gap: 14px; }
.made { font-weight: 800; }
.made::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 3px var(--flag);
  vertical-align: -1px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: var(--ink); text-underline-offset: 3px; }
.copy { color: var(--muted); }

/* Плавающая кнопка на телефоне */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  padding: 12px max(var(--gutter), env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom));
  background: rgba(244, 242, 236, .94);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}
.dock.on {
  transform: none;
  visibility: visible;
  transition: transform .25s ease, visibility 0s;
}

/* ── Шире телефона ──────────────────────── */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .hero .btn-main { width: auto; }
  .perks { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .ask-actions { display: flex; flex-wrap: wrap; }
}

@media (min-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: end;
    gap: 40px;
  }
  .hero-text { padding-bottom: 56px; }
  .hero-art { height: 100%; min-height: 340px; margin-top: 0; }
  .wheel-roll { width: 340px; height: 340px; right: 6%; }
  .sec { padding: 80px 0; }
  .sec-grid { grid-template-columns: 300px minmax(0, 1fr); gap: 48px; }
  .sec-title { font-size: 36px; position: sticky; top: 24px; align-self: start; }
  .ask h2 { font-size: 36px; }
  .dock { display: none; }
  .foot-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wheel-roll, .wheel { animation: none; }
  .faq summary::before, .faq summary::after, .dock, .dock.on { transition: none; }
}

/* Тестовый период перед полноценным запуском */
.test-note {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 2px solid #f5b400;
  border-radius: 14px;
  background: #fff6d6;
  color: #3a2c00;
  font-size: 15px;
  line-height: 1.45;
}
.test-note p { margin: 0; }
.test-note p + p { margin-top: 6px; }
