/* ==========================================================================
   Лендинг таксі — спільні стилі
   Правиш брендові кольори / шрифт тільки тут, у :root.
   ========================================================================== */

/* Inter, self-hosted — жодних сторонніх запитів зі сторінки. */
@font-face {
  font-family: "Inter";
  src: url("Inter.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


:root {
  --ink: #0b0b0c;
  --ink-soft: #4a4a52;
  --ink-faint: #8a8a94;
  --line: #e4e4e9;
  --bg: #ffffff;
  --bg-alt: #f6f6f8;
  --accent: #ffe500;
  --accent-dark: #e6ce00;
  --radius: 14px;
  --maxw: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Шапка ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.logo__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
}

/* Brand mark: three yellow bars, flat on top, rounded underneath. */
.logo__mark--bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
}

.logo__mark--bars i {
  display: block;
  width: 18px;
  height: 4px;
  background: var(--accent);
  border-radius: 1px 1px 3px 3px;
}

.footer .logo__mark--bars { background: #000; }

.nav__links {
  display: flex;
  gap: 26px;
  margin-left: 12px;
}

.nav__links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav__links a:hover { color: var(--ink); }

.nav__spacer { flex: 1; }

.nav__phone {
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}

.nav__ig {
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-soft);
  margin-right: 18px;
  white-space: nowrap;
}

.nav__ig:hover { color: var(--ink); }

@media (max-width: 720px) { .nav__ig { display: none; } }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #24242c; }

.btn--light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--light:hover { background: var(--bg-alt); }

.btn--accent { background: var(--accent); color: #15150a; }
.btn--accent:hover { background: var(--accent-dark); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); }

/* ---------- Головний екран ---------- */

.hero {
  background: var(--ink);
  color: #fff;
  padding: 84px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -180px;
  top: -140px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,229,0,0.22), transparent 62%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 229, 0, 0.12);
  border: 1px solid rgba(255, 229, 0, 0.45);
  color: #ffee5c;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  font-weight: 800;
}

.hero__lead {
  font-size: 19px;
  color: #b9b9c4;
  margin: 0 0 32px;
  max-width: 30em;
}

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__note {
  margin-top: 22px;
  font-size: 14px;
  color: #8b8b98;
}

/* Картка «замовлення» */

.order-card {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.order-card h2 {
  margin: 0 0 20px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.field {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--bg-alt);
}

.field__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  background: var(--ink);
}

.field__dot--dest { background: #8a7400; border-radius: 2px; }

.field span { color: var(--ink-faint); font-size: 15px; }

.order-card .btn { width: 100%; margin-top: 12px; }

.order-card__hint {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
}

/* ---------- Секції ---------- */

.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 640px; margin-bottom: 48px; }

.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 12px;
  font-weight: 700;
  /* Not var(--accent): pure yellow on white is unreadable. */
  color: #8a7400;
  margin: 0 0 12px;
}

.section h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 14px;
  font-weight: 800;
}

.section__lead { font-size: 17px; color: var(--ink-soft); margin: 0; }

/* ---------- Сітки ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}

.section--alt .card { background: #fff; }

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  font-size: 21px;
  margin-bottom: 16px;
}

.section--alt .card__icon { background: #f0f0f4; }

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Кроки */

.steps { counter-reset: step; }

.step__num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}

/* ---------- Блок для водіїв ---------- */

.drivers {
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.drivers h2 { color: #fff; margin-bottom: 16px; }
.drivers p { color: #b9b9c4; font-size: 17px; }

.perks { list-style: none; margin: 24px 0 32px; padding: 0; }

.perks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 16px;
}

.perks li:last-child { border-bottom: 0; }

.perks .tick { color: var(--accent); font-weight: 700; flex: none; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 24px;
}

.stat b {
  display: block;
  font-size: 30px;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.stat span { font-size: 14px; color: #a0a0ae; }

/* ---------- Завантаження застосунків ---------- */

.stores { display: flex; gap: 14px; flex-wrap: wrap; }

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  min-width: 200px;
}

.store-btn:hover { background: var(--bg-alt); }

.store-btn small { display: block; font-size: 11px; color: var(--ink-faint); }
.store-btn strong { display: block; font-size: 16px; letter-spacing: -0.01em; }
.store-btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.store-btn__icon { font-size: 24px; }

/* ---------- FAQ ---------- */

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 24px;
  color: var(--ink-faint);
  line-height: 1;
}

.faq details[open] summary::after { content: "−"; }

.faq p { color: var(--ink-soft); margin: 12px 0 0; max-width: 62em; }

/* ---------- Підвал ---------- */

.footer {
  background: var(--ink);
  color: #9a9aa6;
  padding: 60px 0 32px;
  font-size: 15px;
}

.footer a { color: #d4d4dc; text-decoration: none; }
.footer a:hover { color: #fff; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer h4 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }

.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .logo__mark { background: #000; color: #fff; }

.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

/* ---------- Текстові сторінки (політика, умови) ---------- */

.doc { padding: 64px 0 88px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.03em; margin: 0 0 8px; }
.doc .doc__date { color: var(--ink-faint); margin: 0 0 40px; font-size: 15px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--ink-soft); max-width: 68em; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: #8a7400; }


/* Місця, які власник ще має заповнити. Підсвічені навмисно яскраво —
   щоб їх неможливо було випадково опублікувати непоміченими. */
.fill {
  background: #fff3b0;
  color: #6b5800;
  border: 1px dashed #b39700;
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 600;
  font-size: 0.94em;
}

.doc code {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.9em;
}

.doc h3 { font-size: 18px; margin: 26px 0 10px; letter-spacing: -0.01em; }

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
  .hero__grid, .drivers, .grid-3, .grid-2, .footer__grid {
    grid-template-columns: 1fr;
  }
  .hero { padding: 56px 0 64px; }
  .section { padding: 60px 0; }
  .drivers { padding: 36px 24px; }
  .nav__links { display: none; }
  .footer__grid { gap: 32px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  /* Logo + phone have to share a 375px-wide bar without the number clipping. */
  .nav__inner { gap: 10px; }
  .logo { font-size: 17px; }
  .nav__phone { font-size: 14px; }
  .order-card { padding: 22px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .store-btn { min-width: 0; flex: 1; }
}

/* ---------- Калькулятор вартості ---------- */

/* The list of suggestions hangs off the field, so the field is the frame. */
.field--input { cursor: text; position: relative; }

.field--input input {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  width: 100%;
  outline: none;
  padding: 0;
}

.field--input input::placeholder { color: var(--ink-faint); }

.field--input:focus-within {
  border-color: var(--ink);
}

/* ---------- Підказки адрес ---------- */

.suggest {
  position: absolute;
  z-index: 20;
  /* Just below the field's own border, which the label draws. */
  top: calc(100% + 6px);
  left: -1px;
  right: -1px;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  max-height: 264px;
  overflow-y: auto;
}

.suggest[hidden] { display: none; }

.suggest__item {
  display: flex;
  align-items: baseline;
  /* The name keeps its width; the context is pushed to the right and is the
     part that gives way when the row is too narrow. */
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.3;
}

/* Keyboard and mouse highlight the same way — one row is "the one you'd get". */
.suggest__item:hover,
.suggest__item.is-active { background: var(--bg-alt); }

.suggest__name { color: var(--ink); white-space: nowrap; }

.suggest__parent {
  color: var(--ink-faint);
  font-size: 13px;
  /* Ellipsis on the context, never on the name itself. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card .btn[disabled] { opacity: 0.6; cursor: progress; }

.fare-result { margin-top: 18px; }

.fare-result__route {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0 0 12px;
}

.fare-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.fare-row__name { font-size: 15px; }

.fare-row__price {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.fare-result__error {
  margin: 14px 0 0;
  font-size: 14px;
  color: #a4302a;
}

.fare-result__surge {
  margin: 10px 0 0;
  font-size: 13px;
  color: #8a5a00;
}
