:root {
  --paper: #f7f3ea; --paper2: #efe9dc; --ink: #16140f; --ink-soft: #57514a;
  --taxi: #f5c344; --taxi-deep: #a8780f; --taxi-wash: #fff3bd; --card: #fffdf8; --border: #e4dccb;
  --on-taxi: #20241f; --success: #15803d;
  --radius: 18px; --radius-sm: 10px;
  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171918; --paper2: #2b2e29; --ink: #f5f2e8; --ink-soft: #b0b4aa;
    --taxi-deep: #ffdd66; --taxi-wash: #3a2f0a; --card: #232623; --border: #3d413b; --success: #4ade80;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--taxi); outline-offset: 3px; border-radius: 6px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 14px; background: var(--taxi); color: var(--on-taxi); font: 600 16px/1 var(--font-body);
  text-decoration: none; border: 1.5px solid var(--taxi); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgb(245 195 68 / .35); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { box-shadow: none; background: var(--paper2); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--taxi); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* Шапка */
.top { padding: 12px 0; }
.top-in { display: flex; align-items: center; gap: 24px; }
.brand img { width: 52px; height: 52px; border-radius: 12px; }
.nav { display: flex; gap: 28px; margin-left: 12px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink-soft); padding: 10px 0; }
.nav a:hover { color: var(--ink); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; background: var(--paper2); border-radius: 999px; padding: 3px; font-size: 14px; font-weight: 600; }
.lang > * { padding: 7px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); min-height: 32px; }
.lang .on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }

/* Первый экран */
.hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: 48px; align-items: center; padding: 40px 0 120px; }
.hero h1 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.12; }
.lead { margin-top: 22px; font-size: 19px; color: var(--ink-soft); max-width: 34em; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.hero-media { position: relative; }
.hero-photo { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; object-position: 12% 50%; border-radius: 28px; }
.phone.phone-hero { aspect-ratio: 9 / 14.5; position: absolute; right: 20px; bottom: -96px; transform: scale(.68); transform-origin: right bottom; }

/* Телефон-макет (всегда светлый, как приложение) */
.phone {
  --p-paper: #f7f3ea; --p-paper2: #efe9dc; --p-ink: #16140f; --p-soft: #57514a; --p-card: #fffdf8; --p-border: #e4dccb;
  width: 280px; aspect-ratio: 9 / 18.5; background: #16140f; border-radius: 40px; padding: 8px;
  box-shadow: 0 24px 60px rgb(22 20 15 / .28), 0 2px 0 rgb(255 255 255 / .06) inset; color: var(--p-ink);
}
.phone-screen { height: 100%; background: var(--p-paper); border-radius: 33px; padding: 38px 16px 16px; overflow: hidden; position: relative; }
.phone-screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 74px; height: 20px; margin-left: -37px; border-radius: 999px; background: #16140f; }
.scr { display: none; font-size: 13px; line-height: 1.4; }
.scr.is-active { display: block; animation: scr-in .28s ease both; }
@keyframes scr-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.scr-title { font: 700 17px/1.2 var(--font-display); margin-bottom: 4px; }
.scr-car { color: var(--p-soft); margin-bottom: 14px; }
.scr-list, .scr-places, .scr-chips { list-style: none; margin: 0; padding: 0; }
.scr-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--p-card); border: 1px solid var(--p-border); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.scr-list b, .scr-places b { display: block; font-weight: 600; font-size: 13.5px; }
.scr-list i, .scr-places i { display: block; font-style: normal; color: var(--p-soft); font-size: 12.5px; }
.pill { font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.pill.soon { background: #fff3bd; color: #6b4a00; }
.pill.ok { background: #e3f1e6; color: #15803d; }
.scr-places li { display: flex; gap: 10px; align-items: center; background: var(--p-card); border: 1px solid var(--p-border); border-radius: 14px; padding: 8px; margin-bottom: 8px; }
.scr-places img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.bubble { padding: 10px 12px; border-radius: 16px; margin-top: 10px; max-width: 92%; }
.bubble.me { background: var(--taxi); color: #20241f; margin-left: auto; border-bottom-right-radius: 5px; }
.bubble.bot { background: var(--p-card); border: 1px solid var(--p-border); border-bottom-left-radius: 5px; }
.scr-btn { margin-top: 14px; text-align: center; background: #20241f; color: #f5f3ed; border-radius: 12px; padding: 12px; font-weight: 600; }
.scr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.scr-chips li { background: var(--p-card); border: 1px solid var(--p-border); border-radius: 999px; padding: 8px 12px; font-weight: 500; }

/* Возможности */
.features { padding: 40px 0 72px; }
h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; }
.features h2 { margin-bottom: 36px; }
.features-grid { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: center; }
.ft-list { display: grid; gap: 10px; }
.ft {
  text-align: left; font: inherit; color: inherit; background: transparent; border: 1px solid transparent; border-radius: var(--radius);
  padding: 18px 22px; cursor: pointer; display: grid; gap: 4px; transition: background .2s ease, border-color .2s ease;
}
.ft b { font: 700 19px/1.25 var(--font-display); }
.ft span { color: var(--ink-soft); font-size: 16px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .25s ease; }
.ft:hover { background: var(--paper2); }
.ft.is-active { background: var(--card); border-color: var(--border); }
.ft.is-active span { max-height: 9em; opacity: 1; }
.ft-stage { display: flex; justify-content: center; }
.phone.phone-stage { width: 300px; aspect-ratio: 9 / 14; }
.phone-stage .phone-screen { min-height: 0; }

/* Остальное */
.more { padding: 24px 0 88px; }
.more h2 { margin-bottom: 28px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--border); }
.more-grid > div { padding: 24px 28px 28px 0; border-bottom: 1px solid var(--border); }
.more-grid > div:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--border); }
.more-grid dt { font: 700 18px/1.3 var(--font-display); margin-bottom: 8px; }
.more-grid dd { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* Если сломались */
.help { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding-bottom: 96px; }
.help img { border-radius: 28px; width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.help h2 { margin-bottom: 18px; }
.help p { color: var(--ink-soft); font-size: 18px; margin-bottom: 28px; max-width: 30em; }

/* Партнёрам */
.partners { background: var(--paper2); padding: 80px 0; }
.partners-head { max-width: 46em; }
.partners-head h2 { margin-bottom: 18px; }
.partners-head p { color: var(--ink-soft); font-size: 18px; }
.partners-cols { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.partners-cols > div { padding-right: 48px; }
.partners-cols > div + div { padding: 0 0 0 48px; border-left: 1px solid var(--border); }
.partners h3 { font-size: 22px; margin-bottom: 10px; }
.partners-cols p { color: var(--ink-soft); margin-bottom: 24px; max-width: 26em; }

/* О нас, финал */
.about { padding: 88px 0 24px; }
.about h2 { margin-bottom: 16px; }
.about p { color: var(--ink-soft); font-size: 18px; margin-bottom: 18px; max-width: 40em; }
.final { padding: 64px 0 96px; }
.final h2 { margin-bottom: 12px; }
.final p { color: var(--ink-soft); margin-bottom: 28px; }

.foot { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 14px; color: var(--ink-soft); }
.foot-in { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { text-decoration: none; padding: 6px 0; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* Планшет и телефон */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 24px 0 96px; }
  .phone.phone-hero { right: 16px; bottom: -88px; }
  .features-grid { grid-template-columns: 1fr; gap: 32px; }
  .ft-stage { order: -1; }
  .help { grid-template-columns: 1fr; gap: 32px; }
  .more-grid { grid-template-columns: 1fr 1fr; }
  .more-grid > div:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .more-grid > div:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--border); }
  .more-grid > div:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top-in { gap: 12px; }
  .top-end .btn { display: none; }
  .lead { font-size: 17px; }
  .actions .btn { flex: 1 1 100%; }
  .hero-photo { aspect-ratio: 4 / 3.6; }
  .phone.phone-hero { right: 8px; bottom: -80px; transform: scale(.56); }
  .hero { padding-bottom: 112px; }
  .partners { padding: 56px 0; }
  .partners-cols { grid-template-columns: 1fr; gap: 36px; }
  .partners-cols > div, .partners-cols > div + div { padding: 0; border-left: 0; }
  .partners-cols > div + div { border-top: 1px solid var(--border); padding-top: 32px; }
  .more-grid { grid-template-columns: 1fr; }
  .more-grid > div, .more-grid > div:nth-child(2n) { padding: 20px 0; border-left: 0; }
  .about { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .ft, .ft span { transition: none; }
  .scr.is-active { animation: none; }
}
