/*
  Оформление сайта al paso.

  # Почему цвета повторяют приложение числами, а не токенами

  У приложения есть дизайн-система, у сайта её нет и не будет: несколько
  страниц не стоят сборки. Но знак на корпусе станции, экран телефона и эта
  страница — один бренд, и расходиться им нельзя. Поэтому значения взяты из
  DSPalette теми же числами и подписаны, откуда.

  # Почему без сборщика

  Сайт — это текст и несколько экранов. Vite с постпроцессорами здесь
  обслуживали бы сами себя: правка доезжала бы до браузера через сборку, а
  выкладка требовала бы node на машине. Файлы как есть доезжают быстрее.

  # Про `.ph`

  Это места под картинки, которых пока нет. Подложка держит ту же площадь, что
  займёт снимок, поэтому раскладка не поедет, когда файлы появятся: размеры
  заданы соотношением сторон, а не содержимым.
*/

:root {
  /* Чёрный, а не ink900: на макете фон страницы чернее, чем в приложении, и
     бирюза на нём звенит сильнее. Карточки остаются на ink800. */
  --bg: #000;
  /* DSPalette.ink800 */
  --surface: #161d22;
  /* DSPalette.ink700 */
  --border: #232c33;
  /* DSPalette.inkOnDark */
  --text: #e8eef2;
  /* DSPalette.ink400 */
  --muted: #8b99a3;
  /* DSPalette.cyan400 — акцент бренда, тот же, что в приложении */
  --brand: #1cc8e6;

  --page: 72rem;
  --gap: clamp(48px, 7vw, 96px);

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

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

/* Доступно для чтения с экрана, не видно глазами: подписи полей, у которых на
   макете только placeholder. Плейсхолдер подписью не является — он исчезает
   ровно тогда, когда поле заполняют. */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── Знак ────────────────────────────────────────────────────────────────────

   «al pa⚡o»: молния стоит на месте буквы s, а не рядом со словом.

   Шрифт — скруглённый системный, как в приложении: там он выбран потому, что у
   знака в макете круглые окончания штрихов, чего у Geist нет. На Apple это
   `ui-rounded`, в остальных системах подставится обычный системный — знак
   станет строже, но останется одним словом.

   Картинкой знак не делается, пока не нарисован настоящий логотип: сейчас это
   набранный текст, и растр из него был бы растром набранного текста. */
.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand);
  font-size: 1.6rem;
  text-decoration: none;
  /* Знак — одно слово. Без этого флексом его переносит по буквам, и молния
     уезжает на вторую строку отдельно от слова. */
  white-space: nowrap;
}

.wordmark svg {
  width: 0.62em;
  height: 0.86em;
  margin: 0 -0.04em;
  fill: #fff;
}

/* ── Шапка ───────────────────────────────────────────────────────────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  /* Полупрозрачная с размытием: шапка висит над содержимым, и сплошная
     чёрная полоса резала бы страницу пополам при прокрутке. */
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(35, 44, 51, 0.6);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.menu {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
  flex: 1;
}

.menu a {
  color: var(--muted);
  text-decoration: none;
}

.menu a:hover {
  color: var(--text);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.lang a {
  text-decoration: none;
  color: inherit;
}

.lang .is-current {
  color: var(--text);
}

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

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-brand {
  background: var(--brand);
  color: #000;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border);
}

.btn-wide {
  width: 100%;
  padding: 14px 20px;
}

/* ── Первый экран ────────────────────────────────────────────────────────── */

.hero {
  padding: clamp(32px, 6vw, 72px) 0 var(--gap);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 800;
  margin-bottom: 24px;
}

.accent {
  color: var(--brand);
}

.hero p {
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 28px;
}

.label {
  font-size: 0.85rem;
  color: var(--text);
  margin: 0 0 10px;
}

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

.store {
  display: inline-grid;
  gap: 2px;
  background: #0d1114;
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: 10px;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--text);
}

.store-top {
  font-size: 0.65rem;
  color: var(--muted);
}

.store-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.store-sm {
  padding: 6px 12px;
}

.hero-art {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
}

/* ── Разделы ─────────────────────────────────────────────────────────────── */

section {
  padding: var(--gap) 0;
}

/* Заголовок с бирюзовой полосой до края колонки — как на макете. Полоса не
   декоративная мелочь: она держит ритм страницы, где секции идут одна за
   другой без рамок. */
.rule {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 28px;
}

.rule::after {
  content: "";
  flex: 1;
  height: 0.5em;
  background: var(--brand);
}

.rule-left::before {
  content: "";
  width: 2.5em;
  height: 0.5em;
  background: var(--brand);
}

.lead {
  color: var(--text);
  font-weight: 600;
  margin: 0 0 28px;
}

/* ── Шаги ────────────────────────────────────────────────────────────────── */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.steps li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 15rem);
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

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

.num {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

.steps h3 {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
}

.step-art {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.step-art.ph {
  height: 56px;
  border-radius: 12px;
}

/* ── Галерея ─────────────────────────────────────────────────────────────── */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.shot {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
}

/* ── Цены ────────────────────────────────────────────────────────────────── */

.prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 16px;
}

.price {
  background: var(--surface);
  border-radius: 18px;
  padding: 22px;
  min-height: 11rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.price-brand {
  background: var(--brand);
  color: #000;
}

.chip {
  align-self: flex-start;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.8rem;
}

.price-brand .chip {
  background: #000;
  color: var(--brand);
}

.amount {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: auto 0 0;
}

/* Старая цена рядом с «free»: зачёркнутая и мельче, иначе она спорит с тем,
   что должна подчёркивать. */
.amount s {
  font-size: 0.45em;
  opacity: 0.55;
  margin-left: 6px;
}

.note {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ── Карта ───────────────────────────────────────────────────────────────── */

.map {
  position: relative;
  margin-top: 28px;
  height: clamp(20rem, 42vw, 30rem);
}

.map-list {
  position: absolute;
  left: max(24px, calc((100vw - var(--page)) / 2 + 24px));
  top: 50%;
  transform: translateY(-50%);
  width: min(20rem, calc(100% - 48px));
  background: rgba(13, 17, 20, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.map-title {
  margin: 0 0 12px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.map-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.map-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(35, 44, 51, 0.7);
  font-size: 0.92rem;
}

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

.map-list b {
  color: var(--brand);
}

/* ── Станция в заведение ─────────────────────────────────────────────────── */

.business {
  background: var(--brand);
  color: #000;
}

.business-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.business h2 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.business p {
  margin: 0 0 18px;
  max-width: 34ch;
}

.ticks {
  margin: 0;
  padding-left: 1.1em;
}

.ticks li {
  margin-bottom: 6px;
}

.business-form {
  background: #0d1114;
  color: var(--text);
  border-radius: 22px;
  padding: 24px;
  display: grid;
  gap: 12px;
}

.business-form input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  padding: 13px 18px;
}

.business-form input::placeholder {
  color: var(--muted);
}

.business-form input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

/* ── Вопросы ─────────────────────────────────────────────────────────────── */

.faq {
  max-width: 44rem;
  margin-left: auto;
}

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

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: "+";
  color: var(--brand);
  font-weight: 400;
}

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

.faq p {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 60ch;
}

/* ── Низ ─────────────────────────────────────────────────────────────────── */

.bottom {
  border-top: 1px solid var(--border);
  padding: var(--gap) 0 48px;
}

.bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.claim {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 16px 0 0;
}

.bottom-right {
  text-align: right;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.contact,
.legal {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Места под картинки ──────────────────────────────────────────────────── */

.ph {
  background:
    radial-gradient(120% 90% at 70% 15%, rgba(28, 200, 230, 0.18), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
}

/* ── Узкий экран ─────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .menu {
    display: none;
  }

  .top-inner {
    gap: 12px;
  }

  /* «Registrarme» на узком экране убираем: он ведёт туда же, куда «Soporte»,
     а вдвоём они не помещаются и выдавливают знак за край. */
  .top .btn-ghost {
    display: none;
  }

  .wordmark {
    font-size: 1.35rem;
  }

  .hero-inner,
  .business-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps li {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  /* Картинка шага на узком экране уходит под текст во всю ширину: ужатая до
     четверти колонки, она перестаёт что-либо показывать. */
  .step-art {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-list {
    position: static;
    transform: none;
    width: auto;
    margin: 12px;
  }

  .map {
    height: auto;
    min-height: 20rem;
    display: flex;
    align-items: flex-end;
  }

  .faq {
    margin-left: 0;
  }

  .bottom-right {
    text-align: left;
    justify-items: start;
  }
}

/* ── Текстовые страницы: политика и оферта ───────────────────────────────── */

.doc {
  padding: 32px 0 72px;
  max-width: 40rem;
}

.doc h1 {
  font-size: 2rem;
  margin: 0 0 8px;
}

.doc .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 32px;
}

.doc h2 {
  font-size: 1.15rem;
  margin: 36px 0 10px;
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc li {
  margin-bottom: 6px;
}

.doc strong {
  color: var(--text);
  font-weight: 600;
}

.doc a {
  color: var(--brand);
}

/* ── Страница за QR-кодом ────────────────────────────────────────────────── */

.scan {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.scan h1 {
  font-size: 1.6rem;
  margin: 24px 0 8px;
}

.scan p {
  color: var(--muted);
  margin: 0 0 24px;
}

.scan code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px;
  color: var(--text);
}
