/* =========================================================
   YaMRP Такси - landing "noir"
   глубокий чёрный + янтарное свечение + стекло
   Unbounded / Manrope (self-hosted), motion: cubic-bezier(.32,.72,0,1)
   ========================================================= */

/* ---------- шрифты: свой хостинг, вариативные woff2 ---------- */
@font-face {
  font-family: "Unbounded";
  src: url("./assets/fonts/unbounded-cyrillic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("./assets/fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --page: 1240px;
  --bg: #050505;
  --bg-2: #0b0b0a;
  --text: #f6f5f1;
  --muted: rgba(246, 245, 241, 0.56);
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-2: rgba(255, 255, 255, 0.16);
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.07);
  --yellow: #ffd400;
  --yellow-ink: #151000;
  --glow: rgba(255, 183, 3, 0.14);
  --r-outer: 28px;
  --r-inner: 21px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-disp: "Unbounded", "Manrope", system-ui, sans-serif;
  /* геометрия рендера машины 3/4 (2048x1152) */
  --car-aspect: 2048 / 1152;
}

@font-face {
  font-family: "Material Icons";
  src: url("./driver-training-videos/material-icons.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}
.material-icons {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.top-anchor {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.frame { width: calc(100vw - 48px); max-width: var(--page); margin: 0 auto; }

.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  transform: translateY(-120%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-weight: 800;
}
.skip-link:focus {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  width: auto; height: auto; overflow: visible; clip: auto;
  white-space: normal; transform: none;
}

a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 6px 8px 6px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 500ms var(--ease), background 500ms var(--ease),
              border-color 500ms var(--ease), box-shadow 500ms var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn__orb {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.12);
  font-size: 17px;
  transition: transform 500ms var(--ease);
}
.btn:hover .btn__orb { transform: translate(2px, -2px) scale(1.06); }

.btn--yellow {
  background: var(--yellow);
  color: var(--yellow-ink);
  box-shadow: 0 0 0 0 rgba(255, 212, 0, 0);
}
.btn--yellow:hover { box-shadow: 0 8px 44px -8px rgba(255, 212, 0, 0.45); }

.btn--secondary {
  padding: 6px 26px;
  background: var(--bg-2);
  border-color: var(--hairline-2);
  color: var(--text);
}
.btn--secondary:hover { background: var(--panel-2); border-color: rgba(255, 255, 255, 0.28); }

/* ---------- плавающая навигация-пилюля ---------- */
.nav {
  position: fixed;
  top: 18px;
  left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  background: #0a0a09;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 6px;
  min-height: 42px;
}
.brand__mark {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand__mark img { width: 28px; height: 28px; object-fit: contain; }
.brand__name { font-family: var(--font-disp); font-weight: 700; font-size: 13px; }

.nav__links { display: flex; gap: 2px; }
.nav__links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 400ms var(--ease), background 400ms var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active,
.nav__links a[aria-current="location"] { color: var(--text); background: var(--panel-2); }

.nav__cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-weight: 800;
  font-size: 14px;
  transition: box-shadow 500ms var(--ease), transform 500ms var(--ease);
}
.nav__cta:hover { box-shadow: 0 6px 30px -6px rgba(255, 212, 0, 0.5); }
.nav__cta:active { transform: scale(0.97); }

.nav__account-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}
.nav__account {
  appearance: none;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 7px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  background-clip: padding-box;
  color: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: background 160ms ease;
}
.nav__account:hover,
.nav__account[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.06);
}
.nav__account:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 999px;
}
.nav__account-avatar {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
  flex: 0 0 auto;
  background: transparent;
}
.nav__account-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline-2);
  color: var(--text);
  font-weight: 800;
  font-size: 15px;
}
.nav__account-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.nav__account-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav__account-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.nav__account-chevron {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease, stroke 160ms ease;
}
.nav__account:hover .nav__account-chevron,
.nav__account[aria-expanded="true"] .nav__account-chevron {
  stroke: var(--text);
}
.nav__account[aria-expanded="true"] .nav__account-chevron {
  transform: rotate(180deg);
}
.nav__account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: 230px;
  padding: 8px;
  border: 1px solid var(--hairline-2);
  border-radius: 16px;
  background: #10100f;
  background-clip: padding-box;
  overflow: hidden;
  isolation: isolate;
  transform-origin: top right;
  animation: nav-account-menu-in 180ms var(--ease) both;
}
.nav__account-menu[hidden] { display: none; }
@keyframes nav-account-menu-in {
  from { opacity: 0; transform: translateY(-5px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.nav__account-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 9px;
}
.nav__account-summary .nav__account-avatar {
  width: 36px;
  height: 36px;
}
.nav__account-summary-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.nav__account-summary-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav__account-summary-copy span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}
.nav__account-divider {
  height: 1px;
  margin: 0 4px 5px;
  background: var(--hairline-2);
}
.nav__account-logout {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.nav__account-logout svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #d08a8a;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav__account-logout:hover,
.nav__account-logout:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}
.nav__account-logout:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: -2px;
}

.nav__burger {
  display: none;
  position: relative;
  width: 42px; height: 42px;
  border: 1px solid var(--hairline-2);
  border-radius: 50%;
  background: var(--panel);
  cursor: pointer;
}
.nav__burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.6px;
  background: var(--text);
  transition: transform 500ms var(--ease), top 500ms var(--ease);
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 24px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 90px 16px 24px;
  background: rgba(4, 4, 4, 0.96);
  opacity: 0;
  transition: opacity 500ms var(--ease);
}
.menu-overlay[hidden] { display: none; }
.menu-overlay:not(.is-open) { pointer-events: none; }
.menu-overlay.is-open { opacity: 1; pointer-events: auto; }
.menu-overlay__links { display: grid; gap: 10px; text-align: center; }
.menu-overlay__links a {
  font-family: var(--font-disp);
  font-size: clamp(26px, 7vw, 40px);
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 20px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms var(--ease), transform 700ms var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.menu-overlay.is-open .menu-overlay__links a { opacity: 1; transform: none; }
.menu-overlay__links a:hover,
.menu-overlay__links a.is-active,
.menu-overlay__links a[aria-current="location"] { color: var(--yellow); }

/* ---------- hero: видео играет один раз при заходе ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 104px 0 34px;
  overflow: clip;
}
.hero::before {
  content: none;
}
.hero::after {
  content: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 12px clamp(18px, 2.4vw, 38px);
  align-items: center;
  padding-bottom: 0;
}

.hero__title {
  margin: 0;
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: clamp(46px, 6.4vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero__title .hl {
  color: var(--yellow);
  text-shadow: 0 0 44px rgba(255, 212, 0, 0.35);
}

.hero__sub {
  margin: 22px 0 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: 17px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* видео-подиум рядом с заголовком (рендер из Blender) */
.hero__car {
  position: relative;
  min-width: 0;
  min-height: clamp(410px, 40vw, 560px);
}
.hero__route {
  position: absolute;
  inset: -4% -4% 4% -12%;
  overflow: hidden;
  pointer-events: none;
}
.hero__route svg { width: 100%; height: 100%; }
.hero__roads { fill: none; stroke: rgba(246, 245, 241, 0.085); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hero__roads--major { stroke: rgba(246, 245, 241, 0.15); stroke-width: 3; }
.hero__route-line { fill: none; stroke: var(--yellow); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hero__route-point { fill: var(--yellow); }
.hero__route-ring { fill: rgba(255, 212, 0, 0.12); stroke: rgba(255, 212, 0, 0.45); stroke-width: 1; }
.hero__fare {
  position: absolute;
  top: 45%;
  left: 47%;
  min-width: 112px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 212, 0, 0.78);
  border-radius: 999px;
  background: var(--bg);
  color: var(--yellow);
  font-family: var(--font-disp);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.hero__video,
.hero__still {
  position: absolute;
  z-index: 2;
  right: -15%;
  bottom: 5%;
  display: block;
  width: 132%;
  max-width: none;
  height: auto;
}
/* видео декоративное - клики проходят сквозь него, не мешают тексту/кнопкам */
.hero__video { pointer-events: none; }
.hero__still[hidden] { display: none; }

.car-anchor {
  display: block;
  width: 100%;
  aspect-ratio: var(--car-aspect);
  position: relative;
}
.car-anchor img { width: 100%; height: 100%; object-fit: contain; }

.scroll-hint {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.scroll-hint::after {
  content: "↓";
  display: inline-block;
  margin-left: 8px;
  color: var(--yellow);
  animation: hint-bounce 1.8s var(--ease) infinite;
}
@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ---------- секции ---------- */
.tariffs, .flow, .yamrpay, .faq, .drivers { padding: clamp(96px, 11vw, 150px) 0; }

.sec-head h2 {
  margin: 0;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.04;
  text-transform: uppercase;
  text-wrap: balance;
}

/* ---------- double-bezel карточки ---------- */
.shell {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-outer);
  padding: 7px;
}
.core {
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--r-inner);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

/* ---------- тарифы ---------- */
.tariff-showcase { margin-top: clamp(36px, 5vw, 60px); }
.tariff-showcase__core {
  grid-template: none / repeat(2, minmax(0, 1fr));
}
.tariff-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(300px, 1fr) auto;
  background: var(--bg-2);
}
.tariff-panel + .tariff-panel { border-left: 1px solid var(--hairline-2); }
.tariff-panel--vip { background: #070706; }
.tariff-panel__visual {
  min-width: 0;
  width: 100%;
  min-height: 330px;
  overflow: hidden;
  background: #050505;
}
.tariff-panel__video,
.tariff-panel__fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.tariff-panel__fallback[hidden] { display: none; }
.tariff-panel__body {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--hairline);
}
.tariff-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tariff-panel h3 {
  margin: 0;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  text-transform: uppercase;
}
.price {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--yellow);
  border: 1px solid rgba(255, 212, 0, 0.35);
  background: rgba(255, 212, 0, 0.07);
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.tariff-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}
.tariff-facts li { padding: 9px 0; border-top: 1px solid var(--hairline); color: var(--muted); }
.tariff-facts li:last-child { border-bottom: 1px solid var(--hairline); }
.tariff-panel__body .btn { justify-self: start; margin-top: 4px; }

/* ---------- как работает ---------- */
.flow__stage {
  position: relative;
  min-height: 500px;
  margin-top: clamp(36px, 5vw, 60px);
  overflow: hidden;
}
.flow__map { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow__roads { fill: none; stroke: rgba(246, 245, 241, 0.075); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.flow__route-segment {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.motion-ready .flow__route-segment {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 900ms var(--ease);
}
.motion-ready .flow__route-segment--one { transition-delay: 180ms; }
.motion-ready .flow__route-segment--two { transition-delay: 650ms; }
.motion-ready .flow__stage.is-visible .flow__route-segment { stroke-dashoffset: 0; }
.flow__list {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow__step {
  position: absolute;
  width: min(100%, 300px);
  background: transparent;
}
.flow__step:nth-child(1) { left: 4.333%; top: 61.364%; }
.flow__step:nth-child(2) { left: 35.833%; top: 43.182%; }
.flow__step:nth-child(3) { left: 68.333%; top: 28.409%; }
.flow__node {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 18px;
  height: 18px;
  border: 3px solid var(--yellow);
  border-radius: 50%;
  background: var(--bg);
  transform: translate(-50%, -50%);
}
.flow__step:last-child .flow__node { background: var(--yellow); }
.flow__step-copy {
  margin-top: 16px;
  padding: 0 20px 20px 0;
  background: var(--bg);
}
.motion-ready .flow__node { opacity: 0; transform: translate(-50%, -50%) scale(0.6); transition: opacity 360ms var(--ease), transform 460ms var(--ease); }
.motion-ready .flow__step-copy { opacity: 0; transform: translateY(12px); transition: opacity 520ms var(--ease), transform 620ms var(--ease); }
.motion-ready .flow__step:nth-child(1) .flow__node { transition-delay: 240ms; }
.motion-ready .flow__step:nth-child(1) .flow__step-copy { transition-delay: 340ms; }
.motion-ready .flow__step:nth-child(2) .flow__node { transition-delay: 790ms; }
.motion-ready .flow__step:nth-child(2) .flow__step-copy { transition-delay: 890ms; }
.motion-ready .flow__step:nth-child(3) .flow__node { transition-delay: 1350ms; }
.motion-ready .flow__step:nth-child(3) .flow__step-copy { transition-delay: 1450ms; }
.motion-ready .flow__stage.is-visible .flow__node { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.motion-ready .flow__stage.is-visible .flow__step-copy { opacity: 1; transform: none; }
.flow__step h3 { margin: 0; font-family: var(--font-disp); font-size: 20px; font-weight: 700; text-transform: uppercase; }
.flow__step p { margin: 8px 0 0; color: var(--muted); }

/* ---------- YaMRPay ---------- */
.yamrpay__header { max-width: 860px; margin-bottom: clamp(34px, 5vw, 58px); }
.yamrpay h2 {
  margin: 0;
  font-family: var(--font-disp);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.04;
  text-transform: uppercase;
  text-wrap: balance;
}
.yamrpay__header p {
  max-width: 61ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
}

.yamrpay__experience {
  --yamrpay-parallax-card-x: 0px;
  --yamrpay-parallax-card-y: 0px;
  --yamrpay-parallax-bg-x: 0px;
  --yamrpay-parallax-bg-y: 0px;
  --yamrpay-parallax-tilt-x: 0deg;
  --yamrpay-parallax-tilt-y: 0deg;
  --yamrpay-glow-x: 0px;
  --yamrpay-glow-y: 0px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  overflow: hidden;
  border: 0;
  border-radius: var(--r-outer);
  background: #0b0b0a;
}
.yamrpay__experience::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24) 0%, transparent 28%, rgba(166, 178, 193, 0.2) 56%, transparent 76%),
    linear-gradient(118deg, rgba(232, 237, 244, 0.14) 0%, rgba(145, 157, 172, 0.42) 46%, rgba(236, 240, 245, 0.18) 72%, rgba(92, 102, 115, 0.26) 100%);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--yamrpay-parallax-bg-x), var(--yamrpay-parallax-bg-y), 0) scale(1.08);
  transition: opacity 520ms var(--ease), transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.yamrpay__experience::after {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 0;
  background:
    radial-gradient(ellipse at 26% 38%, rgba(252, 253, 255, 0.88) 0%, rgba(205, 212, 221, 0.52) 13%, rgba(126, 138, 153, 0.2) 30%, transparent 50%),
    radial-gradient(ellipse at 76% 64%, rgba(244, 247, 250, 0.68) 0%, rgba(181, 190, 202, 0.34) 17%, rgba(105, 117, 132, 0.13) 32%, transparent 48%),
    linear-gradient(112deg, transparent 23%, rgba(154, 164, 177, 0.18) 39%, rgba(252, 253, 255, 0.52) 50%, rgba(158, 168, 181, 0.2) 62%, transparent 79%);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--yamrpay-glow-x), var(--yamrpay-glow-y), 0) scale(0.94) rotate(-2deg);
}
.yamrpay__experience[data-card-variant="white"] {
  background: #13161b;
  box-shadow:
    0 28px 100px rgba(154, 168, 185, 0.3),
    0 0 96px rgba(225, 232, 240, 0.32);
}
.yamrpay__experience[data-card-variant="white"]::before { opacity: 1; }
.yamrpay__experience[data-card-variant="white"]::after {
  animation: yamrpay-silver-glow 4300ms cubic-bezier(0.45, 0, 0.55, 1) infinite;
  will-change: transform, opacity;
}
.yamrpay__card-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  gap: 22px;
  min-width: 0;
  min-height: clamp(430px, 46vw, 590px);
  padding: clamp(34px, 5vw, 64px) clamp(24px, 4vw, 52px) 26px;
  overflow: hidden;
  background: #090909;
}
.yamrpay__experience[data-card-variant="white"] .yamrpay__card-stage {
  background: linear-gradient(145deg, rgba(9, 10, 12, 0.7), rgba(25, 29, 35, 0.42));
}
.yamrpay__card-view {
  --card-rotate-x: 0deg;
  --card-rotate-y: 0deg;
  width: min(92%, 720px);
  aspect-ratio: 1800 / 1074;
  align-self: end;
  perspective: 1200px;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  outline: none;
  transform: translate3d(0, 0, 0);
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.yamrpay__experience[data-card-variant="white"] .yamrpay__card-view {
  transform:
    perspective(1200px)
    translate3d(var(--yamrpay-parallax-card-x), var(--yamrpay-parallax-card-y), 0)
    rotateX(var(--yamrpay-parallax-tilt-x))
    rotateY(var(--yamrpay-parallax-tilt-y));
  will-change: transform;
}
.yamrpay__card-view:active,
.yamrpay__card-view.is-dragging { cursor: grabbing; }
.yamrpay__card-view:focus-visible { outline: none; }
.yamrpay__card-rotor {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y));
  transition: transform 480ms var(--ease);
  will-change: transform;
}
.yamrpay__card-view.is-dragging .yamrpay__card-rotor { transition: none; }
.yamrpay__card-face {
  position: absolute;
  inset: 0;
  margin: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(1px);
}
.yamrpay__card-face--white { transform: rotateY(180deg) translateZ(1px); }
.yamrpay__card-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.yamrpay__card-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
}
.yamrpay__card-hint .material-icons {
  color: var(--yellow);
  font-size: 19px;
}
.yamrpay__experience[data-card-variant="white"] .yamrpay__card-hint .material-icons { color: #dbe1e8; }
.yamrpay__card-view:focus-visible + .yamrpay__card-hint {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.yamrpay__story {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 3.6vw, 48px);
  border-left: 1px solid var(--hairline-2);
}
.yamrpay__experience[data-card-variant="white"] .yamrpay__story {
  border-color: transparent;
  background: linear-gradient(145deg, rgba(80, 89, 101, 0.42), rgba(35, 40, 47, 0.58) 45%, rgba(14, 16, 20, 0.44));
}
.yamrpay__story h3 {
  margin: 0;
  font-family: var(--font-disp);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.08;
  text-transform: uppercase;
}
.yamrpay__story-copy {
  max-width: 34ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.yamrpay__variant-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  width: min(100%, 300px);
  margin-top: 30px;
  padding: 4px;
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  background: #090909;
}
.yamrpay__variant-switch button {
  min-height: 42px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 180ms var(--ease), background-color 180ms var(--ease), transform 180ms var(--ease);
}
.yamrpay__variant-switch button:hover { color: var(--text); }
.yamrpay__variant-switch button:active { transform: scale(0.98); }
.yamrpay__variant-switch button:focus-visible {
  outline: 2px solid #8a8a84;
  outline-offset: 2px;
}
.yamrpay__variant-switch button[aria-pressed="true"] {
  background: var(--yellow);
  color: #090909;
}
.yamrpay__experience[data-card-variant="white"] .yamrpay__variant-switch {
  border-color: rgba(221, 227, 234, 0.36);
  background: rgba(8, 9, 11, 0.68);
}
.yamrpay__experience[data-card-variant="white"] .yamrpay__variant-switch button[aria-pressed="true"] {
  background: linear-gradient(145deg, #f7f9fb 0%, #bfc7d1 52%, #eef1f4 100%);
  color: #090a0b;
  box-shadow: 0 0 28px rgba(226, 232, 239, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.84), inset 0 -1px 0 rgba(78, 88, 101, 0.18);
}

@keyframes yamrpay-silver-glow {
  0%, 100% {
    opacity: 0.62;
    transform: translate3d(calc(var(--yamrpay-glow-x) - 9%), calc(var(--yamrpay-glow-y) + 4%), 0) scale(0.94) rotate(-2deg);
  }
  34% {
    opacity: 0.96;
    transform: translate3d(calc(var(--yamrpay-glow-x) + 2%), calc(var(--yamrpay-glow-y) - 5%), 0) scale(1.05) rotate(0.8deg);
  }
  68% {
    opacity: 0.78;
    transform: translate3d(calc(var(--yamrpay-glow-x) + 10%), calc(var(--yamrpay-glow-y) + 4%), 0) scale(1) rotate(2.4deg);
  }
}

.yamrpay__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 32px;
}
.yamrpay__cta { flex: 0 0 auto; }

.yamrpay__note {
  max-width: 840px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
.yamrpay__note .material-icons { flex: 0 0 auto; color: var(--text); font-size: 18px; }

/* ---------- водителям ---------- */
.drivers__core {
  grid-template-rows: none;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  padding: clamp(28px, 3.6vw, 52px);
}
.drivers h2 {
  margin: 0;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.06;
  text-transform: uppercase;
}
.drivers__sub { color: var(--muted); font-size: 16.5px; margin: 16px 0 28px; }

.driver-screen {
  position: relative;
  min-height: 548px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
  background: #10100f;
}
.driver-screen__map {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  overflow: hidden;
}
.driver-screen__map::before,
.driver-screen__map::after,
.driver-screen__map span {
  content: "";
  position: absolute;
  height: 1px;
  background: #53534f;
  transform-origin: left center;
}
.driver-screen__map::before { width: 88%; top: 18%; left: -4%; transform: rotate(15deg); }
.driver-screen__map::after { width: 72%; top: 54%; left: 18%; transform: rotate(-28deg); }
.driver-screen__map span:nth-child(1) { width: 72%; top: 34%; left: -8%; transform: rotate(-46deg); }
.driver-screen__map span:nth-child(2) { width: 66%; top: 78%; left: 0; transform: rotate(8deg); }
.driver-screen__map span:nth-child(3) { width: 68%; top: 7%; left: 52%; transform: rotate(63deg); }
.driver-screen__map span:nth-child(4) { width: 64%; top: 88%; left: 45%; transform: rotate(-65deg); }

.driver-order-modal {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 20px;
  width: min(400px, calc(100% - 44px));
  overflow: hidden;
  border: 1px solid var(--hairline-2);
  border-radius: 18px;
  background: #171717;
  transition: opacity 520ms var(--ease), transform 620ms var(--ease);
  will-change: transform, opacity;
}
.js .driver-order-modal { opacity: 0; transform: translateY(34px); }
.js .driver-order-modal.is-active { opacity: 1; transform: none; }
.js .driver-order-modal.is-leaving { opacity: 0; transform: translateY(24px); }
.driver-order-modal__handle {
  width: 76px;
  height: 4px;
  margin: 10px auto 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}
.driver-order-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 18px 12px;
  border-bottom: 1px solid var(--hairline-2);
}
.driver-order-modal__title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.driver-order-modal__title h3 { margin: 0; color: #f3f3f3; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.driver-order-modal__title > span {
  flex-shrink: 0;
  padding: 5px 10px;
  border: 1px solid rgba(255, 200, 0, 0.28);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}
.driver-order-modal__minimize {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--hairline-2);
  border-radius: 10px;
  background: #242424;
  color: #b8b8b8;
}
.driver-order-modal .material-icons { font-size: 20px; line-height: 1; }
.driver-order-modal__content { display: flex; flex-direction: column; padding: 14px 18px 18px; }
.driver-pickup-card {
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--hairline-2);
  border-radius: 14px;
  background: #202020;
}
.driver-pickup-card__head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.driver-pickup-card__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 200, 0, 0.28);
  border-radius: 12px;
  background: #242424;
  color: var(--yellow);
}
.driver-pickup-card__address { display: grid; gap: 3px; min-width: 0; }
.driver-pickup-card__address small { color: #9a9a9a; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.driver-pickup-card__address strong { overflow: hidden; color: #f0f0f0; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.driver-pickup-card__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.driver-pickup-card__meta > span {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #191919;
}
.driver-pickup-card__meta .material-icons { color: var(--yellow); font-size: 18px; }
.driver-pickup-card__meta b { color: #fff; font-size: 14px; font-weight: 700; }
.driver-pickup-card__meta small { margin-left: -3px; color: #888; font-size: 10px; }
.driver-order-modal__accept,
.driver-order-modal__decline {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
}
.driver-order-modal__accept {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 12px 0 10px;
  border: 1px solid rgba(255, 200, 0, 0.38);
  background: #202020;
  color: #f3f3f3;
}
.driver-order-modal__accept-label {
  min-width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}
.driver-order-modal__accept-fill {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: var(--yellow);
  color: #111;
  clip-path: inset(0 0 0 0);
}
.driver-order-modal.is-counting .driver-order-modal__accept-fill {
  animation: driver-order-countdown 12s linear 600ms both;
}
@keyframes driver-order-countdown {
  from { clip-path: inset(0 0 0 0); }
  to { clip-path: inset(0 100% 0 0); }
}
.driver-order-modal__decline { border: 1px solid rgba(255, 138, 128, 0.32); border-radius: 12px; background: #241b1b; color: #ff8a80; }
.driver-order-modal__accept .material-icons,
.driver-order-modal__decline .material-icons { font-size: 22px; }

/* ---------- владельцам бизнеса ---------- */
.business {
  overflow-x: clip;
  padding: clamp(96px, 11vw, 150px) 0;
  scroll-margin-top: 88px;
}
.business__layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
  padding: clamp(46px, 6vw, 76px) 0 clamp(54px, 7vw, 88px);
  border-top: 1px solid var(--hairline-2);
  border-bottom: 1px solid var(--hairline-2);
}
.business__copy { min-width: 0; }
.business__eyebrow {
  margin: 0 0 16px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.business h2 {
  margin: 0;
  max-width: 760px;
  font-family: var(--font-disp);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.business__lead {
  max-width: 62ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.65;
  text-wrap: pretty;
}
.business__actions { display: flex; align-items: center; margin: 28px 0 0; }
.business__visual { position: relative; margin: 0; min-width: 0; }
/* Терминал у прилавка: та же сцена оплаты, что в YaMRPay. */
.business__visual .business__pay { position: absolute; right: 9%; bottom: -6%; --pay-show-scale: .3; }
.business__scene { display: block; width: 100%; height: auto; mix-blend-mode: lighten; }
.business__actions .btn {
  min-height: 48px;
  gap: 10px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--yellow-ink);
  box-shadow: none;
  transition: background-color 160ms ease, transform 120ms ease;
}
.business__actions .btn:hover { background: #e7c000; box-shadow: none; }
.business__actions .material-icons { font-size: 19px; }
.business__features {
  display: grid;
  gap: 0;
  max-width: 62ch;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.business__features li {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline-2);
}
.business__features li:has(img) { grid-template-columns: 44px minmax(0, 1fr); }
.business__features img { display: block; width: 44px; height: auto; }
.business__features span { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.business__features b { display: block; margin-bottom: 2px; color: #f4f4f2; font-size: 15px; font-weight: 700; }
/* ---------- faq ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.faq__list details { border-top: 1px solid var(--hairline-2); }
.faq__list details:last-child { border-bottom: 1px solid var(--hairline-2); }
.faq__list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 2px;
  font-weight: 700;
  font-size: 16.5px;
  cursor: pointer;
  transition: color 400ms var(--ease);
}
.faq__list summary:hover { color: var(--yellow); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+";
  font-family: var(--font-disp);
  font-size: 19px;
  line-height: 1;
  color: var(--muted);
  transition: transform 500ms var(--ease), color 400ms var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(45deg); color: var(--yellow); }
.faq__list details p { margin: 0; padding: 0 2px 22px; color: var(--muted); max-width: 60ch; }

/* ---------- финальный CTA ---------- */
.cta { padding: 0 0 clamp(96px, 11vw, 150px); }
.cta__core {
  position: relative;
  min-height: 340px;
  display: grid;
  grid-template: none / minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(44px, 6vw, 76px) clamp(24px, 4vw, 48px);
  background: var(--bg-2);
  overflow: hidden;
}
.cta__route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cta__roads { fill: none; stroke: rgba(246, 245, 241, 0.07); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.cta__route-line { fill: none; stroke: var(--yellow); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cta__route-point { fill: var(--yellow); stroke: rgba(255, 212, 0, 0.24); stroke-width: 10; vector-effect: non-scaling-stroke; }
.cta__copy,
.cta__action { position: relative; z-index: 1; }
.cta__copy { max-width: 720px; padding: 18px 20px 18px 0; background: var(--bg-2); }
.cta__core h2 {
  margin: 0;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
}
.cta__copy > p {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}
.cta__action {
  max-width: 270px;
  display: grid;
  justify-items: end;
  gap: 12px;
  align-self: center;
  justify-self: end;
}
.cta__note {
  margin: 0;
  color: #777772;
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
  text-wrap: pretty;
}

/* ---------- футер ---------- */
.footer { border-top: 1px solid var(--hairline); }
.footer__in {
  min-height: 84px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 0;
  font-size: 13.5px;
  color: var(--muted);
}
.footer a {
  font-weight: 700;
  color: var(--text);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color 400ms var(--ease), color 400ms var(--ease);
}
.footer a:hover { border-color: var(--hairline-2); color: var(--yellow); }
.footer__links { display: flex; flex-wrap: wrap; gap: 2px; }
.footer__links a,
.footer__links button {
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.footer__links a:hover,
.footer__links button:hover { color: var(--text); }
.footer__legal-note {
  max-width: 980px;
  margin: 0;
  padding: 18px 0 26px;
  border-top: 1px solid var(--hairline);
  color: #777772;
  font-size: 12px;
  line-height: 1.6;
}

/* ---------- reveal ---------- */
.motion-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
}
.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 480ms var(--ease), transform 520ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

/* =========================================================
   адаптив
   ========================================================= */
@media (max-width: 1120px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__account-copy, .nav__account-chevron { display: none; }
  .nav__account { padding: 4px; gap: 0; }
  .hero__grid { grid-template-columns: 1fr; gap: 16px; padding-bottom: 0; }
  .hero { padding-top: 106px; }
  .hero__title { font-size: clamp(46px, 9vw, 84px); }
  .hero__car { min-height: clamp(330px, 48vw, 470px); }
  .hero__route { inset: -6% 4% 0; }
  .hero__video, .hero__still { width: min(112%, 820px); right: 50%; transform: translateX(50%); }
  .tariff-showcase__core { grid-template: none / 1fr; }
  .tariff-panel { grid-template: none / repeat(2, minmax(0, 1fr)); }
  .tariff-panel + .tariff-panel { border-left: 0; border-top: 1px solid var(--hairline-2); }
  .tariff-panel__visual { min-height: 280px; }
  .tariff-panel__body { border-top: 0; border-left: 1px solid var(--hairline); }
  .flow__stage { min-height: 470px; }
  .drivers__core { grid-template-columns: 1fr; }
  .business__layout { grid-template-columns: 1fr; gap: 28px; }
  .faq__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__account { padding: 4px; gap: 0; }
  .nav__account-copy,
  .nav__account-chevron { display: none; }
  .nav__burger { display: block; }
  .yamrpay__experience { grid-template-columns: 1fr; }
  .yamrpay__card-stage { min-height: 480px; }
  .yamrpay__story { border-top: 1px solid var(--hairline-2); border-left: 0; }
}

@media (max-width: 760px) {
  .frame { width: calc(100vw - 32px); }
  .nav { top: 12px; }
  .nav__pill { width: min(100% - 24px, 560px); justify-content: space-between; }
  .nav__links, .nav__cta { display: none; }
  .nav__account { padding: 4px; gap: 0; }
  .nav__account-copy,
  .nav__account-chevron { display: none; }
  .nav__burger { display: block; }
  .hero { padding: 92px 0 24px; min-height: auto; }
  .hero__grid { gap: 8px; padding-bottom: 0; }
  .hero__title { font-size: clamp(42px, 12.5vw, 60px); }
  .hero__cta .btn { flex: 1 1 auto; justify-content: space-between; }
  .hero__car { min-height: 220px; }
  .hero__route { inset: -4% -24% 0; }
  .hero__fare { top: 38%; left: 50%; min-width: 96px; padding: 7px 12px; font-size: 11px; }
  .hero__video, .hero__still { width: 134%; bottom: 0; }
  .tariff-panel { grid-template: minmax(210px, auto) auto / 1fr; }
  .tariff-panel__visual { min-height: 210px; aspect-ratio: 16 / 9; }
  .tariff-panel__body { border-left: 0; border-top: 1px solid var(--hairline); }
  .tariff-panel__head { align-items: flex-start; flex-wrap: wrap; }
  .tariff-facts li { font-size: 14px; }
  .flow__stage { min-height: auto; overflow: visible; }
  .flow__map { display: none; }
  .flow__list {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .flow__list::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 18px;
    left: 6px;
    width: 2px;
    background: var(--yellow);
    transform-origin: top;
  }
  .motion-ready .flow__list::before { transform: scaleY(0); transition: transform 900ms var(--ease); }
  .motion-ready .flow__stage.is-visible .flow__list::before { transform: scaleY(1); }
  .flow__step,
  .flow__step:nth-child(n) {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    margin: 0;
    padding: 0 0 38px 40px;
    justify-self: stretch;
    align-self: auto;
    background: transparent;
  }
  .flow__step:last-child { padding-bottom: 0; }
  .flow__node { top: 8px; left: 7px; }
  .flow__step-copy { margin: 0; padding: 0; background: transparent; }
  .yamrpay__header { margin-bottom: 30px; }
  .yamrpay__header p { font-size: 15px; }
  .yamrpay__experience { border-radius: 22px; }
  .yamrpay__card-stage { min-height: 300px; gap: 16px; padding: 28px 18px 20px; }
  .yamrpay__card-view { width: 100%; align-self: center; }
  .yamrpay__experience::before { transform: scale(1.08); }
  .yamrpay__experience[data-card-variant="white"] .yamrpay__card-view { transform: translate3d(0, 0, 0); will-change: auto; }
  .yamrpay__card-hint { font-size: 12px; }
  .yamrpay__story { padding: 26px 22px 24px; }
  .yamrpay__variant-switch { width: 100%; }
  .yamrpay__actions { margin-top: 28px; }
  .yamrpay__note { margin-top: 14px; padding-inline: 2px; }
  .drivers__core { padding: 22px; }
  .driver-screen { min-height: 500px; }
  .driver-order-modal { right: 12px; bottom: 12px; width: calc(100% - 24px); }
  .driver-order-modal__content { padding: 12px 14px 14px; }
  .driver-pickup-card__meta { display: grid; grid-template-columns: 1fr 1fr; }
  .driver-pickup-card__meta > span:first-child { grid-column: 1 / -1; }
  .business__layout { padding: 42px 0 46px; }
  .business__actions { align-items: stretch; flex-direction: column; }
  .business__actions .btn { justify-content: center; }
  .cta__core {
    min-height: 390px;
    grid-template: 1fr auto / 1fr;
    align-items: end;
    gap: 24px;
    padding: 32px 22px;
  }
  .cta__copy { align-self: end; padding-right: 0; }
  .cta__action { justify-items: start; justify-self: start; align-self: end; }
  .cta__note { text-align: left; }
  .footer__in { justify-content: center; text-align: center; }
  .footer__links { justify-content: center; }
  .footer__legal-note { margin-inline: auto; text-align: center; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav__account-menu { animation: none; }
  .scroll-hint::after { animation: none; }
  .motion-ready .reveal { opacity: 1; transform: none; filter: none; }
  .flow__route-segment { stroke-dashoffset: 0; transition: none; }
  .flow__node,
  .flow__step-copy { opacity: 1; transform: none; transition: none; }
  .yamrpay__card-rotor,
  .yamrpay__card-view,
  .yamrpay__variant-switch button,
  .yamrpay__experience::before { transition: none !important; }
  .yamrpay__experience[data-card-variant="white"]::after {
    animation: none !important;
    opacity: 0.72;
    transform: scale(1.02);
    will-change: auto;
  }
  .flow__node { transform: translate(-50%, -50%); }
  .js .driver-order-modal,
  .js .driver-order-modal.is-active,
  .js .driver-order-modal.is-leaving { opacity: 1; transform: none; transition: none; }
  .driver-order-modal.is-counting .driver-order-modal__accept-fill { animation: none; clip-path: inset(0 0 0 0); }
}

/* Keep the restored header usable on narrow phones. */
.nav__burger, .nav__locale, .nav__account-wrap { flex-shrink: 0; }
@media (max-width: 520px) {
  .nav__pill:has(.nav__account) .brand__name { display: none; }
  .brand { padding-inline: 2px; }
}
@media (max-width: 380px) { .brand__name { display: none; } }
/* Keep the new wording inside the original narrow-phone composition. */
@media (max-width: 520px) {
  .yamrpay__header h2 { font-size: clamp(24px, 7.8vw, 34px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
}

/* ── Сцена оплаты в терминале (общая с бизнес-порталом: business-editor/src/components/portal/pay-showcase.css) ── */
/*
 * Витрина оплаты в терминале: те же слои Blender, что в YaMRPay (терминал,
 * карта у считывателя, тень), и та же перспектива экрана. Сцена 505×955 —
 * кадр рендера; масштаб задаёт --pay-show-scale. Цикл 8 с: карта подлетает,
 * импульс, «Оплачено», лента чека, карта возвращается.
 */
.pay-show {
  --pay-show-scale: 0.5;
  --pay-show-headroom: 190px;
  --pay-show-accent: #ffd400;
  --pay-show-ok: #45d483;
  position: relative;
  flex: none;
  width: calc(505px * var(--pay-show-scale));
  height: calc((955px + var(--pay-show-headroom)) * var(--pay-show-scale));
}

.pay-show__stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 505px;
  height: 955px;
  transform-origin: 0 0;
  transform: translateY(calc(var(--pay-show-headroom) * var(--pay-show-scale))) scale(var(--pay-show-scale));
}

.pay-show__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  user-select: none;
  pointer-events: none;
}

/* Экран терминала: перспектива из layout.json (терминал-сцена банка). */
.pay-show__screen {
  position: absolute;
  left: 0;
  top: 0;
  width: 272px;
  height: 392px;
  overflow: hidden;
  border-radius: 21px;
  background: #0b0b0c;
  color: #f4f4f5;
  font-family: inherit;
  font-feature-settings: "tnum";
  transform-origin: 0 0;
  transform: matrix3d(1.212368097, 0.000734544347, 0, -0.0001249520643, 0.02094937133, 1.306358746, 0, 0.0000852199599, 0, 0, 1, 0, 44.4602, 142.05625, 0, 1);
}

.pay-show__state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 18px;
  text-align: center;
  opacity: 0;
}

.pay-show__state svg {
  width: 60px;
  height: 60px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pay-show__state b {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.15;
  color: #d4d4d8;
}

.pay-show__state strong {
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.pay-show__state--ready { color: var(--pay-show-accent); animation: pay-show-ready 8s linear infinite; }
.pay-show__state--ready svg { stroke-width: 2.2; }
.pay-show__state--wait { animation: pay-show-wait 8s linear infinite; }
.pay-show__state--done { animation: pay-show-done 8s linear infinite; }
.pay-show__state--done b { color: var(--pay-show-ok); }
.pay-show__state--done svg { color: var(--pay-show-ok); stroke-width: 3.4; }
.pay-show__state--done circle { stroke-dasharray: 132; animation: pay-show-draw-ring 8s linear infinite; }
.pay-show__state--done path { stroke-dasharray: 34; animation: pay-show-draw-tick 8s linear infinite; }

.pay-show__dots { display: flex; gap: 10px; height: 60px; align-items: center; }
.pay-show__dots i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--pay-show-accent);
  animation: pay-show-dot 900ms ease-in-out infinite;
}
.pay-show__dots i:nth-child(2) { animation-delay: 150ms; }
.pay-show__dots i:nth-child(3) { animation-delay: 300ms; }

/* Лента чека растёт из щели принтера; контейнер режет её по линии щели. */
.pay-show__printer {
  position: absolute;
  left: 93.3px;
  top: calc(70.8px - 248px);
  width: 277.6px;
  height: 248px;
  overflow: hidden;
  transform-origin: 0 100%;
  transform: rotate(0.447deg);
  pointer-events: none;
}

.pay-show__paper {
  position: absolute;
  inset: 0;
  padding: 18px 16px 10px;
  background: linear-gradient(180deg, #f6f5f1 0%, #e8e7e2 100%);
  color: #26262a;
  font-family: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  line-height: 1.45;
  text-transform: uppercase;
  transform: translateY(100%);
  animation: pay-show-print 8s cubic-bezier(0.45, 0.05, 0.35, 1) infinite;
}

.pay-show__paper p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-show__paper .pay-show__paper-title { font-weight: 700; text-align: center; }
.pay-show__paper .pay-show__paper-rule { margin: 6px 0; border-top: 2px dashed #9a9a9e; }
.pay-show__paper .pay-show__paper-row { display: flex; justify-content: space-between; gap: 10px; }
.pay-show__paper .pay-show__paper-total { font-weight: 700; }

.pay-show__shadow { opacity: 0; animation: pay-show-shadow 8s linear infinite; }

/* Карта: из руки у кассы к считывателю и обратно. Origin — точка считывателя. */
.pay-show__card {
  position: absolute;
  inset: 0;
  transform-origin: 47.828% 22.347%;
  transform: translate3d(215px, 470px, 0) rotate(-18deg) scale(1.02);
  animation: pay-show-card 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.pay-show__pulse {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.pay-show__pulse circle {
  fill: none;
  stroke: var(--pay-show-accent);
  stroke-width: 5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: pay-show-pulse 8s ease-out infinite;
}

.pay-show__pulse circle:nth-child(2) { animation-delay: 150ms; }

@keyframes pay-show-card {
  0%, 12% { transform: translate3d(215px, 470px, 0) rotate(-18deg) scale(1.02); }
  28% { transform: translate3d(-6px, -10px, 0) rotate(1.5deg) scale(1); }
  31%, 47% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  60%, 100% { transform: translate3d(215px, 470px, 0) rotate(-18deg) scale(1.02); }
}

@keyframes pay-show-shadow {
  0%, 26% { opacity: 0; }
  31%, 47% { opacity: 1; }
  52%, 100% { opacity: 0; }
}

@keyframes pay-show-ready {
  0%, 29% { opacity: 1; }
  32%, 96% { opacity: 0; }
  99%, 100% { opacity: 1; }
}

@keyframes pay-show-wait {
  0%, 30% { opacity: 0; }
  33%, 45% { opacity: 1; }
  48%, 100% { opacity: 0; }
}

@keyframes pay-show-done {
  0%, 46% { opacity: 0; }
  49%, 94% { opacity: 1; }
  97%, 100% { opacity: 0; }
}

@keyframes pay-show-draw-ring {
  0%, 48% { stroke-dashoffset: 132; }
  54%, 100% { stroke-dashoffset: 0; }
}

@keyframes pay-show-draw-tick {
  0%, 52% { stroke-dashoffset: 34; }
  57%, 100% { stroke-dashoffset: 0; }
}

@keyframes pay-show-pulse {
  0%, 46% { opacity: 0; transform: scale(0.55); }
  48% { opacity: 0.85; transform: scale(0.6); }
  60%, 100% { opacity: 0; transform: scale(1.45); }
}

@keyframes pay-show-print {
  0%, 52% { transform: translateY(100%); opacity: 1; }
  70%, 90% { transform: translateY(0); opacity: 1; }
  96% { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(100%); opacity: 0; }
}

@keyframes pay-show-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

/* Без анимации: сразу итог — «Оплачено», чек напечатан, карта в руке. */
@media (prefers-reduced-motion: reduce) {
  .pay-show *,
  .pay-show *::before { animation: none !important; }
  .pay-show__state--done { opacity: 1; }
  .pay-show__state--done circle,
  .pay-show__state--done path { stroke-dashoffset: 0; }
  .pay-show__paper { transform: none; }
}

@media (max-width: 900px) {
  .business__visual .business__pay { --pay-show-scale: .24; right: 12%; bottom: -4%; }
}
@media (max-width: 520px) {
  .business__visual .business__pay { --pay-show-scale: .2; }
}
