/*
 * Страницы водителя — приглашение (/invite, /move) и установка (/install) — в том же бренде, что
 * лендинг (решение 92): тёмно-синяя сцена с паттерном из знака сверху, белый лист с выступом-
 * «вкладкой» снизу, Manrope. Открывают их почти всегда с телефона, поэтому колонка узкая, а
 * главная кнопка — во всю ширину. Токены те же, что в `index.html`.
 */
:root {
  --paper: #ffffff;
  --surface: #f4f6fa;
  --line: #e3e8f0;
  --line-strong: #c9d1de;
  --ink: #101010;
  --ink-2: #47556a;
  --ink-3: #6b7789;

  --navy: #102134;
  --navy-2: #172c47;
  --navy-line: rgba(255, 255, 255, 0.14);
  --on-navy-2: rgba(255, 255, 255, 0.74);
  --on-navy-3: rgba(255, 255, 255, 0.52);

  --royal: #1a459c;
  --royal-hover: #2253b8;
  --maya: #73c2fb;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --data: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", monospace;
  --column: 560px;
  --gutter: 20px;

  color-scheme: light;

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='208' viewBox='0 0 240 208' fill='none' stroke='white' stroke-width='1.4' stroke-linejoin='round'%3E%3Cpath d='M54 14 92 82c4 7-1 14-9 14H25c-8 0-13-7-9-14Z'/%3E%3Cpath d='M126 110h58c8 0 13 7 9 14l-29 52c-4 7-14 7-18 0l-29-52c-4-7 1-14 9-14Z'/%3E%3Cpath d='M174 14h58c8 0 13 7 9 14l-29 52c-4 7-14 7-18 0l-29-52c-4-7 1-14 9-14Z' transform='translate(-12 0)'/%3E%3Cpath d='M54 118 92 186c4 7-1 14-9 14H25c-8 0-13-7-9-14Z' transform='translate(0 -4)'/%3E%3C/svg%3E");
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

p { margin: 0; }
h1, h2 { margin: 0; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(28px, 7vw, 40px); line-height: 1.12; }
h2 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
a { color: inherit; }
[hidden] { display: none !important; }

.column { max-width: var(--column); margin: 0 auto; padding: 0 var(--gutter); }

/* — сцена сверху — */
.scene {
  position: relative;
  color: #fff;
  background:
    radial-gradient(720px 360px at 85% 0%, rgba(115, 194, 251, 0.22), transparent 62%),
    linear-gradient(180deg, #1f3c66 0%, #152b4a 52%, #0e1d31 100%);
  padding: 20px 0 72px;
  overflow: hidden;
}
.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern);
  background-size: 240px 208px;
  opacity: 0.05;
  pointer-events: none;
}
.scene > * { position: relative; }

.topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand svg { width: 36px; height: auto; flex: none; fill: #fff; }
.brand .name { display: flex; flex-direction: column; line-height: 1.05; }
.brand .name b { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.brand .name span { font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.6; margin-top: 3px; }

.scene .lead { margin-top: 14px; font-size: 16px; color: var(--on-navy-2); }
.scene .fine { margin-top: 12px; font-size: 13px; color: var(--on-navy-3); }

/* Переключатель языка — «стекло» поверх сцены, как кнопки в шапке лендинга. */
.glass-select {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--navy-line);
  border-radius: 12px;
  padding: 8px 32px 8px 12px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.glass-select option { color: var(--ink); }

.langs { display: flex; gap: 2px; justify-content: flex-end; }
.langs button {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  min-width: 32px;
  padding: 6px 4px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--on-navy-2);
  cursor: pointer;
}
.langs button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); border-color: var(--navy-line); color: #fff; }

/* «Стекло» — карточка поверх тёмной сцены. */
.glass {
  margin-top: 28px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--navy-line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.glass h2 { font-size: 17px; }
.glass p { margin-top: 6px; color: var(--on-navy-2); font-size: 15px; }

/* — кнопки — */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn.primary { background: var(--royal); color: #fff; }
.btn.primary:hover { background: var(--royal-hover); }
.btn.light { background: #fff; color: var(--royal); }
.btn.light:hover { background: #eef3fd; }
.btn.ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: var(--navy-line); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn.line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.line:hover { border-color: var(--ink-3); }
.btn.sm { min-height: 44px; font-size: 14px; border-radius: 12px; }
.btn:focus-visible, button:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--maya); outline-offset: 3px; }

/* — белый лист с выступом, как секции лендинга — */
.sheet { position: relative; background: var(--paper); padding: 36px 0 48px; }
.sheet > .column { display: flex; flex-direction: column; gap: 32px; }
.notch {
  position: absolute;
  top: -23px;
  left: 50%;
  width: min(72%, 480px);
  height: 24px;
  transform: translateX(-50%);
  background: var(--paper);
  border-radius: 24px 24px 0 0;
  pointer-events: none;
}
.notch::before, .notch::after { content: ""; position: absolute; bottom: 0; width: 24px; height: 24px; }
.notch::before { left: -24px; background: radial-gradient(circle at 0 0, transparent 23.5px, var(--paper) 24px); }
.notch::after { right: -24px; background: radial-gradient(circle at 100% 0, transparent 23.5px, var(--paper) 24px); }

.eyebrow { font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 0.01em; margin-bottom: 14px; }
.muted { font-size: 14px; color: var(--ink-3); }

/* Шаги — нумерованные кружки фирменного синего. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
  color: var(--ink-2);
  font-size: 15px;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #eaf0fb;
  color: var(--royal);
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.steps li > * { padding-top: 5px; }
.steps b { color: var(--ink); font-weight: 600; }

.card {
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.card ol { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; display: grid; gap: 8px; }
.card b { color: var(--ink); font-weight: 600; }

/* — подвал — */
.foot { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: 13px; color: var(--ink-3); }
.foot .column { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.foot a { color: var(--royal); text-decoration: none; font-weight: 600; }

/* Узкий телефон: пять языков и знак в одну строку не помещаются с подписью под именем. */
@media (max-width: 420px) {
  .brand .name span { display: none; }
}

@media (min-width: 720px) {
  .scene { padding: 28px 0 96px; }
  .topline { margin-bottom: 56px; }
  .sheet { padding-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
