/* Generated by webclient/build.js — правьте исходники в webclient/src/styles. */
/* ---- tokens.css ---- */
/* Resort design tokens. Daylight is the primary scheme; the ink scheme is the
   design's QR screen extended to the whole client. */

@font-face {
  font-family: "Prata";
  src: url("assets/fonts/prata-cyrillic-ext.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Prata";
  src: url("assets/fonts/prata-cyrillic.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Prata";
  src: url("assets/fonts/prata-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-cyrillic-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  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-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root,
:root[data-theme="light"] {
  color-scheme: light;

  --ground: #ede9e0;
  --surface: #f4f1ea;
  --raised: #fffdf8;
  --ink: #1b1a15;
  --moss: #5b6a4e;
  --moss-deep: #45523a;
  --amber: #8a6a34;
  --brick: #8c3a2b;

  --text: var(--ink);
  --muted: rgba(27, 26, 21, 0.5);
  --faint: rgba(27, 26, 21, 0.35);
  --hair: rgba(27, 26, 21, 0.14);
  --hair-soft: rgba(27, 26, 21, 0.1);
  --hair-strong: rgba(27, 26, 21, 0.24);
  --scrim: rgba(27, 26, 21, 0.42);
  --map-ground: #efebe1;
  --map-road: #e2dcce;
  --on-ink: #f4f1ea;

  --font-ui: Manrope, "Segoe UI", system-ui, sans-serif;
  --font-display: Prata, "Times New Roman", Georgia, serif;

  --gutter: 24px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --ground: #1b1a15;
  --surface: #1b1a15;
  --raised: #23221b;
  --ink: #f4f1ea;
  --moss: #8fa37a;
  --moss-deep: #a8b995;
  --amber: #c79a53;
  --brick: #c2705c;

  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.55);
  --faint: rgba(244, 241, 234, 0.38);
  --hair: rgba(244, 241, 234, 0.16);
  --hair-soft: rgba(244, 241, 234, 0.1);
  --hair-strong: rgba(244, 241, 234, 0.3);
  --scrim: rgba(9, 9, 6, 0.66);
  --map-ground: #232219;
  --map-road: #2f2d23;
  --on-ink: #1b1a15;
}


/* ---- base.css ---- */
/* Ground rules: square corners, hairline rules, no shadows. */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

@keyframes rr-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rr-rise {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes rr-slide-left {
  from { transform: translateX(-101%); }
  to { transform: translateX(0); }
}

@keyframes rr-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  70% { transform: scale(2.6); opacity: 0; }
  100% { opacity: 0; }
}

@keyframes rr-shimmer {
  0% { background-position: -320px 0; }
  100% { background-position: 320px 0; }
}

@keyframes rr-scan {
  0% { transform: translateY(8px); }
  100% { transform: translateY(216px); }
}

@keyframes rr-dash {
  to { stroke-dashoffset: -24; }
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border-inline: 1px solid var(--hair);
}

.stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px var(--gutter) calc(28px + var(--safe-bottom));
  animation: rr-fade 0.35s ease both;
}

.screen__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

.screen__foot {
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: none;
}

.screen__stick {
  margin-top: auto;
}

/* Screens that own their scroll region drop the page padding. */
.screen--home,
.screen--trip {
  padding: 0;
}


/* ---- components.css ---- */
/* Components of the resort kit: type scale, buttons, rows, sheets, segments. */

/* --- Type ---------------------------------------------------------------- */

.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 33px;
  line-height: 1.12;
  text-wrap: pretty;
}

.display--sm {
  font-size: 25px;
  line-height: 1.18;
}

.display--onink {
  color: var(--on-ink);
}

.label {
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.label--rule {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--hair);
}

.label--amber {
  color: var(--amber);
}

.lede {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 34ch;
}

.lede--onink {
  color: rgba(244, 241, 234, 0.5);
}

.hint {
  margin: 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.45;
  color: var(--faint);
}

.msg {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  min-height: 1em;
}

.msg--bad { color: var(--brick); }
.msg--ok { color: var(--moss); }

.empty {
  margin: 22px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.stack--center {
  align-items: center;
  text-align: center;
}

.stack--tight {
  gap: 7px;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 19px 16px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--ink);
  color: var(--surface);
  /* 12px с разрядкой .2em — размер кнопки действия из макета. */
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn--primary:active {
  background: var(--moss-deep);
  border-color: var(--moss-deep);
}

.btn--ghost {
  background: transparent;
  border-color: var(--hair-strong);
  color: var(--text);
  padding: 17px 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.btn--ghost:active {
  border-color: var(--moss);
}

.btn--onink {
  border-color: rgba(244, 241, 234, 0.28);
  color: var(--on-ink);
}

.btn--wide {
  flex: 1.5;
}

.btn:disabled {
  background: transparent;
  border-color: var(--hair);
  color: var(--faint);
  cursor: default;
}

.btn--icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.linkline {
  align-self: center;
  padding: 4px 0 3px;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(91, 106, 78, 0.4);
  color: var(--moss);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.backlink {
  align-self: flex-start;
  padding: 0;
  background: none;
  border: none;
  color: var(--faint);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.backlink--onink {
  color: rgba(244, 241, 234, 0.5);
}

/* --- Rows ---------------------------------------------------------------- */

.rows {
  display: flex;
  flex-direction: column;
}

.rows--scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 36px;
}

.rows--sheet {
  margin-top: 4px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  /* Отступ и высота — как в макете (13px сверху и снизу). Минимальную высоту
     фиксируем отдельно: содержимое строк разное (у папки есть шеврон), а
     список должен читаться ровным. */
  min-height: 44px;
  padding: 13px 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--hair-soft);
  text-align: left;
  color: var(--text);
}

.row--pickup {
  border-bottom: none;
  border-top: 1px solid var(--hair);
}

.row:active {
  background: rgba(91, 106, 78, 0.06);
}

.row__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.row__title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
}

.row__meta {
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
}

.row__time {
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.row__chevron {
  font-size: 15px;
  line-height: 1;
  color: var(--faint);
}

.row__mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss);
}

.row__no {
  width: 34px;
  flex: none;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
}

.row__amount {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.row__amount--free {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss);
}

.row--history {
  align-items: flex-start;
}

.group {
  margin-bottom: 24px;
}

/* --- Chips / segments ---------------------------------------------------- */


.segment {
  display: flex;
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}

.segment__item {
  flex: 1;
  padding: 12px 10px;
  background: var(--surface);
  border: none;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.segment__item.is-active {
  background: var(--ink);
  color: var(--surface);
}

.segment--sm .segment__item {
  padding: 8px 12px;
  flex: none;
}

/* --- Fields -------------------------------------------------------------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input {
  width: 100%;
  padding: 16px 14px;
  background: var(--raised);
  border: 1px solid var(--hair);
  border-radius: 0;
  font-size: 14.5px;
  font-weight: 500;
}

.input:focus {
  outline: none;
  border-color: var(--moss);
}

.input--code {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.3em;
  text-align: center;
}

/* --- Sheets and scrims --------------------------------------------------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--scrim);
  animation: rr-fade 0.25s ease both;
}

.scrim--side {
  flex-direction: row;
  justify-content: flex-start;
}

.scrim__rest {
  flex: 1;
  background: none;
  border: none;
}

.sheet {
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 26px var(--gutter) calc(42px + var(--safe-bottom));
  background: var(--surface);
  animation: rr-rise 0.34s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.sheet--tight {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.sheet__x {
  background: none;
  border: none;
  color: var(--faint);
  font-size: 19px;
  line-height: 1;
}

.sheet__actions {
  display: flex;
  gap: 10px;
}

/* В ряду кнопки делят ширину: «остаться» шире, «отменить» уже. */
.sheet__actions .btn {
  flex: 1;
  width: auto;
  padding-inline: 8px;
  letter-spacing: 0.12em;
}

.sidepanel {
  width: min(318px, 82vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 22px calc(24px + var(--safe-bottom));
  background: var(--surface);
  animation: rr-slide-left 0.32s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.sidepanel__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: none;
  padding: calc(28px + var(--safe-top)) 0 16px;
  border-bottom: 1px solid var(--hair);
}

/* --- Toast --------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + var(--safe-bottom));
  z-index: 60;
  transform: translateX(-50%);
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  background: var(--ink);
  color: var(--surface);
  font-size: 12.5px;
  line-height: 1.45;
  animation: rr-rise 0.24s ease both;
}

.recaptcha-holder {
  position: fixed;
  bottom: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}

/* Пин посадки на нашей карте (MapLibre): чернильная капля с кольцом и рябью,
   как в макете. Рябь — rr-pulse из дизайн-системы анимаций. */
.gpin { position: relative; width: 46px; height: 52px; }
.gpin__drop {
  position: absolute;
  left: 50%;
  top: 0;
  width: 30px;
  height: 30px;
  transform: translateX(-50%);
  background: var(--ink);
  border: 2px solid var(--raised);
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ink) 35%, transparent);
}
.gpin__drop b {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  background: var(--raised);
  border-radius: 50%;
}
.gpin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 6px;
  height: 6px;
  transform: translateX(-50%);
  background: var(--ink);
  border-radius: 50%;
}
.gpin__ripple {
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 12px;
  height: 12px;
  transform: translateX(-50%);
  border: 1.5px solid var(--moss);
  border-radius: 50%;
  animation: rr-pulse 1.8s ease-out infinite;
}
/* Карта занимает весь кадр mapframe и не наследует скругления макета. */
.mapframe__canvas .maplibregl-map { position: absolute; inset: 0; }

/* Меню «⋮» в шапке: язык и тема. Панель — оверлей в геометрии макета
   (без скруглений, тень как у шторок). */
.topmenu { position: relative; }
.topmenu__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hair-strong);
  color: var(--text);
  background: transparent;
}
.topmenu__btn:active { background: color-mix(in srgb, var(--moss) 10%, transparent); }
.topmenu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  min-width: 216px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--raised);
  border: 1px solid var(--hair-strong);
  box-shadow: 0 10px 30px rgba(27, 26, 21, 0.35);
  animation: rr-rise 0.34s cubic-bezier(0.2, 0.8, 0.25, 1);
}

/* Метки карты поездки: A (подача) и B (назначение) — квадраты в геометрии
   макета; кар — чернильный кружок с контурным гольф-каром, крутится по курсу. */
.tpin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font: 700 12px/1 var(--font-ui);
  letter-spacing: 0.02em;
  background: var(--raised);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: 0 3px 10px rgba(27, 26, 21, 0.25);
}
.tpin--b { background: var(--ink); color: var(--on-ink); }
.tcart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  border: 2px solid var(--raised);
  box-shadow: 0 4px 14px rgba(27, 26, 21, 0.35);
  transition: rotate 0.6s ease;
}

/* Кнопка «моя позиция» на карте — круглая, как в макете. */
.maplocate {
  position: absolute;
  right: 16px;
  bottom: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--raised);
  color: var(--ink);
  border: 1px solid var(--hair-strong);
  box-shadow: 0 4px 14px rgba(27, 26, 21, 0.18);
}
.maplocate:active { background: color-mix(in srgb, var(--moss) 10%, transparent); }

.pickupcard__hint {
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

/* Пункты и разделитель в меню «⋮». */
.topmenu__rule { height: 1px; background: var(--hair); margin: 4px 0; }
.topmenu__item {
  text-align: left;
  padding: 10px 2px;
  font: 600 12px/1 var(--font-ui);
  letter-spacing: 0.08em;
  color: var(--text);
  background: transparent;
  border: 0;
}
.topmenu__item:active { color: var(--moss); }

/* Чипы категорий на главном — язык макета: рамки, активный — ink. */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 6px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 10px 16px;
  font: 500 13px/1 var(--font-ui);
  color: var(--text);
  background: transparent;
  border: 1px solid var(--hair-strong);
}
.chip.is-active {
  background: var(--ink);
  color: var(--on-ink);
  border-color: var(--ink);
}


/* ---- screens.css ---- */
/* Per-screen composition: header, entry, keypad, map-led home, trip, done. */

/* --- Header / tabs ------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + var(--safe-top)) var(--gutter) 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--hair);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar__logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  object-fit: cover;
  flex: none;
}

.topbar__name {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.langs {
  display: flex;
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  flex: none;
}

.lang {
  padding: 6px 9px;
  background: var(--surface);
  border: none;
  color: var(--faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.lang.is-active {
  background: var(--ink);
  color: var(--surface);
}

.tabs {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--hair);
}

.tab {
  flex: 1;
  padding: 16px 0 calc(16px + var(--safe-bottom));
  background: none;
  border: none;
  border-top: 2px solid transparent;
  color: var(--faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tab + .tab {
  border-left: 1px solid var(--hair);
}

.tab.is-active {
  border-top-color: var(--text);
  color: var(--text);
}

/* --- Entry --------------------------------------------------------------- */

.screen--login {
  padding-top: calc(40px + var(--safe-top));
}

.brandmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brandmark__name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.44em;
  padding-left: 0.44em;
  text-transform: uppercase;
  text-align: center;
}

.brandmark__rule {
  width: 38px;
  height: 1px;
  background: var(--hair-strong);
}

.brandmark__svc {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}


/* --- Hotel code ---------------------------------------------------------- */

.screen--code {
  padding-top: calc(28px + var(--safe-top));
  gap: 26px;
}

.codeslots {
  display: flex;
  gap: 7px;
  flex: none;
}

.slot {
  flex: 1;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--raised);
  border: 1px solid var(--hair);
  font-family: var(--font-display);
  font-size: 24px;
}

.slot.is-cursor::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--moss);
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: auto;
  background: var(--hair);
  border: 1px solid var(--hair);
  flex: none;
}

.key {
  height: 62px;
  background: var(--surface);
  border: none;
  font-size: 21px;
  font-weight: 500;
}

.key:active {
  background: var(--raised);
}

.key--empty {
  background: var(--surface);
}

/* --- QR ------------------------------------------------------------------ */

.screen--qr {
  background: var(--ink);
  color: var(--on-ink);
  padding-top: calc(28px + var(--safe-top));
}

:root[data-theme="dark"] .screen--qr {
  background: #14130f;
}

.reticle {
  position: relative;
  width: 246px;
  height: 246px;
  border: 1px solid rgba(244, 241, 234, 0.14);
  overflow: hidden;
}

.reticle__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reticle__corner {
  position: absolute;
  width: 30px;
  height: 30px;
}

.reticle__corner--tl { top: 0; left: 0; border-top: 2px solid #8fa37a; border-left: 2px solid #8fa37a; }
.reticle__corner--tr { top: 0; right: 0; border-top: 2px solid #8fa37a; border-right: 2px solid #8fa37a; }
.reticle__corner--bl { bottom: 0; left: 0; border-bottom: 2px solid #8fa37a; border-left: 2px solid #8fa37a; }
.reticle__corner--br { bottom: 0; right: 0; border-bottom: 2px solid #8fa37a; border-right: 2px solid #8fa37a; }

.reticle__scan {
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: #8fa37a;
  box-shadow: 0 0 18px rgba(143, 163, 122, 0.8);
  animation: rr-scan 1.6s ease-in-out infinite alternate;
}

/* --- Locating ------------------------------------------------------------ */

.beacon {
  position: relative;
  width: 14px;
  height: 14px;
}

.beacon__dot,
.beacon__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--moss);
}

.beacon__pulse {
  animation: rr-pulse 2s ease-out infinite;
}

/* --- Home (variant B) ---------------------------------------------------- */

.mapframe {
  position: relative;
  height: 296px;
  flex: none;
  background: var(--map-ground);
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
}

.mapframe--trip {
  height: 342px;
}

.mapframe__canvas {
  position: absolute;
  inset: 0;
}

.mapframe__canvas svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mapframe__badge {
  position: absolute;
  top: 16px;
  left: 20px;
  padding: 7px 11px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--hair);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pickupcard {
  position: absolute;
  left: 20px;
  bottom: 16px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 11px 13px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--hair);
}

.pickupcard__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.home__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px var(--gutter) 0;
}

/* Вариант B: заголовок мельче, чем на других экранах, — 22px против 25px
   у общего .display--sm. Значение из макета. */
.home__title {
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 14px;
}


/* --- Trip ---------------------------------------------------------------- */

.trip__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px var(--gutter) calc(28px + var(--safe-bottom));
}

.trip__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.clock {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  color: var(--moss);
  white-space: nowrap;
}

.driver {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

/* Фото-заглушка водителя из макета: диагональная штриховка вместо буквы. */
.driver__avatar {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--hair-soft);
  background: repeating-linear-gradient(135deg, var(--map-road) 0 5px, var(--map-ground) 5px 10px);
}

.driver__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.driver__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.driver__line {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--muted);
}

/* Кнопка звонка появляется только когда есть номер (см. renderTrip). */
.driver__call {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--hair-strong);
  color: var(--text);
}

.driver__call:active { background: color-mix(in srgb, var(--moss) 10%, transparent); }

.trip__actions {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Searching / queue --------------------------------------------------- */

.shimmer {
  height: 2px;
  background: linear-gradient(90deg, var(--hair-soft) 0%, var(--moss) 45%, var(--hair-soft) 90%);
  background-size: 320px 100%;
  animation: rr-shimmer 1.1s linear infinite;
}

.queuemark {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.queuemark__num {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: var(--moss);
}

/* --- Route figure -------------------------------------------------------- */

.route {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.route__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}

.route__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2.5px solid var(--moss);
}

.route__line {
  width: 1px;
  flex: 1;
  min-height: 26px;
  margin: 5px 0;
  background: var(--hair-strong);
}

.route__square {
  width: 8px;
  height: 8px;
  background: var(--text);
}

.route__points {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}

.route__block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.route__from,
.route__to {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.route__from {
  color: var(--muted);
}

.route__meta {
  font-size: 11.5px;
  color: var(--muted);
}

.route__summary {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  text-align: right;
  white-space: pre-line;
}

/* --- Confirm sheet options ----------------------------------------------- */

.optrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
}

.optrow--ruled {
  border-top: 1px solid var(--hair-soft);
}

.optrow--price {
  margin-bottom: 20px;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.optrow__name {
  font-size: 13.5px;
  font-weight: 500;
}

.optrow__value {
  font-size: 13.5px;
  color: var(--muted);
  text-align: right;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stepper__btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--hair-strong);
  font-size: 16px;
}

.stepper__value {
  min-width: 12px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

/* --- Done / rating ------------------------------------------------------- */

.screen--done {
  padding-top: calc(48px + var(--safe-top));
}

.screen--done .display {
  margin: 12px 0 28px;
}

.rating {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
}

.rating__q {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.3;
}

.stars {
  display: flex;
  gap: 10px;
}

.star {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
  color: var(--moss);
}

.rating__hint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* --- History / settings -------------------------------------------------- */

.sectionhead {
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--hair);
  flex: none;
}

.metaline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  flex: none;
}

.setting {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair-soft);
}

.setting--foot {
  margin-top: auto;
  align-items: flex-start;
  border-bottom: none;
}

.buildstamp {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --- Шапка на экранах входа ---------------------------------------------
   В макете у экранов 00/00b/00c шапки нет: марка стоит в самом экране, а
   сверху остаётся только переключатель языка. */

body[data-view="login"] .topbar,
body[data-view="code"] .topbar,
body[data-view="qr"] .topbar,
body[data-view="auth"] .topbar,
body[data-view="name"] .topbar,
body[data-view="locating"] .topbar {
  background: transparent;
  border-bottom: none;
}

body[data-view="login"] .topbar__brand,
body[data-view="code"] .topbar__brand,
body[data-view="qr"] .topbar__brand,
body[data-view="auth"] .topbar__brand,
body[data-view="name"] .topbar__brand,
body[data-view="locating"] .topbar__brand {
  visibility: hidden;
}

/* Чернильный экран сканера: язык на нём — костяной. */
body[data-view="qr"] .topbar {
  background: var(--ink);
}

body[data-view="qr"] .langs {
  background: rgba(244, 241, 234, 0.24);
  border-color: rgba(244, 241, 234, 0.24);
}

body[data-view="qr"] .lang {
  background: var(--ink);
  color: rgba(244, 241, 234, 0.5);
}

body[data-view="qr"] .lang.is-active {
  background: var(--on-ink);
  color: var(--ink);
}

/* Экран сканера занимает весь кадр — отступ сверху берёт на себя шапка. */
body[data-view="qr"] .screen--qr {
  padding-top: 8px;
}

/* --- Знак объекта --------------------------------------------------------
   SVG-знак отеля красится в цвет темы (костяной на чернильном фоне и
   наоборот), поэтому рисуем его маской, а не <img>. */

.topbar__mark,
.brandmark__mark {
  display: block;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--brand-mark) center / contain no-repeat;
  mask: var(--brand-mark) center / contain no-repeat;
}

.topbar__mark {
  width: 22px;
  height: 18px;
}

.brandmark__mark {
  width: 46px;
  height: 38px;
  margin-bottom: 2px;
}

/* --- Deep-link flows: регистрация на ресепшене и приглашение близких ------
   Оба экрана — ожидание с одной карточкой состояния, поэтому делят разметку. */

.screen--flow {
  gap: 22px;
  padding-top: calc(28px + var(--safe-top));
}

.flowcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 20px;
  background: var(--raised);
  border: 1px solid var(--hair);
  text-align: center;
}

.flowcard__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 34ch;
}

.flowcard__room {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.flowcard__roomno {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  color: var(--text);
}

/* Незаселённый гость: подсказка над списком направлений, а не поверх него. */
.notice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--raised);
  border-left: 2px solid var(--amber);
}

.notice__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.setting__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}


/* --- Обновление макета (август) -------------------------------------------
   Рабочая поверхность посветлела: список направлений, шторки и боковая панель
   переехали с костяного #F4F1EA на приподнятый #FFFDF8. */

.home__body,
.sheet__panel,
.panel--villas {
  background: var(--raised);
}

/* Карточка точки посадки: плотнее и на приподнятой поверхности. */
.pickupcard {
  background: var(--raised);
  padding: 11px 13px;
}

.pickupcard .label { font-size: 8.5px; }

.pickupcard__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.pickupcard .linkline {
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0.14em;
  border-bottom: none;
}


/* --- Экран входа, обновление макета ---------------------------------------
   Язык переехал на сам экран, иллюстрация и кнопка сканирования убраны:
   код активации теперь получают звонком на ресепшен. */

.screen--login {
  padding-top: calc(64px + var(--safe-top));
}

.loginlangs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-bottom: 26px;
  flex: none;
}

.loginlang {
  appearance: none;
  background: none;
  border: none;
  padding: 0 0 5px;
  font: 600 10.5px/1 var(--font-ui);
  letter-spacing: 0.14em;
  color: var(--faint);
  border-bottom: 1px solid transparent;
  cursor: pointer;
}

.loginlang.is-active {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* Знак и марка отеля — главное на экране входа, поэтому крупные. */
.screen--login .brandmark__mark {
  width: 104px;
  height: 86px;
}

.screen--login .brandmark__name {
  font-size: 17px;
  letter-spacing: 0.44em;
  padding-left: 0.44em;
  color: color-mix(in srgb, var(--text) 72%, transparent);
}

.screen--login .brandmark__rule {
  width: 56px;
  margin-top: -8px;
}

.screen--login .screen__center { gap: 18px; }

.logintext {
  gap: 14px;
  padding-top: 22px;
}

.logintext .display {
  font-size: 34px;
  line-height: 1.3;
  max-width: 270px;
  text-wrap: balance;
}

.logintext .lede {
  font-size: 13px;
  line-height: 1.6;
  max-width: 236px;
}

.loginhint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding-top: 6px;
}

.loginphone {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--moss);
  border-bottom: 1px solid color-mix(in srgb, var(--moss) 40%, transparent);
  padding-bottom: 2px;
}

/* Язык на входе живёт в самом экране — верхний переключатель прячем. */
body[data-view="login"] .topbar { display: none; }

/* --- 01b Геопозиция недоступна --------------------------------------------
   Карта сверху приглушена: она здесь для ориентира, а не для выбора. Ниже —
   шторка со списком площадок и зонами, куда они ведут. */

.screen--geooff {
  padding: 0;
  position: relative;
}

.geomap {
  position: absolute;
  inset: 0 0 auto;
  height: 340px;
  background: var(--map-ground);
  border-bottom: 1px solid var(--hair);
  overflow: hidden;
  opacity: 0.55;
}

.geomap svg { display: block; width: 100%; height: 100%; }

.geosheet {
  position: relative;
  margin-top: auto;
  max-height: 82%;
  display: flex;
  flex-direction: column;
  background: var(--raised);
  animation: rr-rise 0.34s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

.geosheet__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px var(--gutter) 16px;
  flex: none;
  border-bottom: 1px solid var(--hair);
}

.geosheet__icon {
  width: 26px;
  height: 26px;
  color: var(--amber);
}

.geosheet__list { padding: 4px var(--gutter) 10px; }

.geosheet__foot {
  flex: none;
  padding: 14px var(--gutter) calc(40px + var(--safe-bottom));
  border-top: 1px solid var(--hair);
}

.row--geo .row__mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--hair-strong);
  background: none;
  flex: none;
}

.setting__note {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}
