/* Кеттік /go — веб-заказ (PWA). Токены — docs/DESIGN.md. Без инлайн-стилей (CSP): динамику JS задаёт через element.style. */
:root {
  --primary: #00AFCA;
  --on-primary: #0E1A24;
  --primary-soft: #E0F6FA;
  --link: #007C91;
  --selected: #007C91; /* рамка выбранного (тариф, чип, оплата): 4.9:1 на белом; #00AFCA — только 2.6:1 */
  --ink: #0E1A24;
  --text: #0E1A24;
  --text2: #4A5763;
  --border: #E6EBEF;
  --border-strong: #7A8691;
  --bg: #F5F7F9;
  --surface: #FFFFFF;
  --surface2: #F5F7F9;
  --input-bg: #FFFFFF;
  --accent: #F2B705;
  --success: #1E9E5A;
  --danger: #D93B3B;
  --danger-text: #C02F2F;
  --warn-bg: #FFF6D9;
  --warn-text: #5C4500;
  --disabled-bg: #E6EBEF;
  --disabled-text: #5F6B76;
  --dot-b: #0E1A24;
  --focus: #0E1A24;
  --shadow: 0 4px 16px rgba(14, 26, 36, .12);
  --shadow-up: 0 -4px 20px rgba(14, 26, 36, .14);
  --map-bg: #E6EBEF;
  --tile-filter: none;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Roboto, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --link: #4FD3E6; --selected: #00AFCA; --primary-soft: #12343C; --text: #F1F5F8; --text2: #A9B6C1; --border: #2A3946;
    --border-strong: #6B7C8A; --bg: #0B141C; --surface: #15212B; --surface2: #1E2C38; --input-bg: #0F1A23;
    --danger-text: #FF8A8A; --warn-bg: #3A2F0A; --warn-text: #FFE08A; --disabled-bg: #2A3946; --disabled-text: #A9B6C1;
    --dot-b: #F1F5F8; --focus: #F2B705; --shadow: 0 4px 16px rgba(0, 0, 0, .45); --shadow-up: 0 -4px 20px rgba(0, 0, 0, .5);
    --map-bg: #1E2C38; --tile-filter: brightness(.62) contrast(1.1) saturate(.8); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --link: #4FD3E6; --selected: #00AFCA; --primary-soft: #12343C; --text: #F1F5F8; --text2: #A9B6C1; --border: #2A3946;
  --border-strong: #6B7C8A; --bg: #0B141C; --surface: #15212B; --surface2: #1E2C38; --input-bg: #0F1A23;
  --danger-text: #FF8A8A; --warn-bg: #3A2F0A; --warn-text: #FFE08A; --disabled-bg: #2A3946; --disabled-text: #A9B6C1;
  --dot-b: #F1F5F8; --focus: #F2B705; --shadow: 0 4px 16px rgba(0, 0, 0, .45); --shadow-up: 0 -4px 20px rgba(0, 0, 0, .5);
  --map-bg: #1E2C38; --tile-filter: brightness(.62) contrast(1.1) saturate(.8); color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 400 17px/22px var(--font);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 20px; height: 20px; }
.muted { color: var(--text2); }
.small { font-size: 15px; line-height: 20px; }
.tiny { font-size: 13px; line-height: 18px; }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ каркас */
.app { position: fixed; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
.top {
  --focus: #F2B705;
  flex: none; position: relative; z-index: 1000;
  display: flex; align-items: center; gap: 8px;
  min-height: calc(56px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  background: var(--ink); color: #F1F5F8;
}
.brand { display: flex; align-items: center; gap: 8px; min-height: 48px; padding-right: 4px; color: inherit; text-decoration: none; margin-right: auto; }
.brand__mark { width: 28px; height: 28px; }
.brand__mark rect { fill: #15212B; }
.brand__mark path { stroke: var(--primary); stroke-width: 3.2; stroke-linecap: round; fill: none; }
.brand__name { font-weight: 800; font-size: 20px; line-height: 24px; }
.lang { display: flex; border: 1px solid #3A4B59; border-radius: 999px; overflow: hidden; }
.lang__btn { min-width: 44px; min-height: 40px; border: 0; background: transparent; color: #C9D3DB; font-weight: 600; font-size: 13px; cursor: pointer; }
.lang__btn[aria-pressed="true"] { background: var(--primary); color: var(--ink); }
.lang__btn:focus-visible { outline-offset: -3px; }
.top__btn { width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: #F1F5F8; cursor: pointer; }

.stage { position: relative; flex: 1 1 auto; min-height: 0; }
.mapwrap { position: absolute; inset: 0; }
#map { position: absolute; inset: 0; background: var(--map-bg); }
.leaflet-container { font: inherit; background: var(--map-bg); }
.leaflet-tile-pane { filter: var(--tile-filter); }
.leaflet-top, .leaflet-bottom { z-index: 700; }
.leaflet-control-attribution { font-size: 11px; line-height: 14px; }
.leaflet-container .leaflet-control-attribution { background: rgba(255, 255, 255, .85); color: #333; }
.leaflet-control-attribution a { color: #00596A; }
.map-error { position: absolute; left: 16px; right: 16px; top: 16px; z-index: 760; margin: 0; padding: 12px 16px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); }

/* Пин подачи по центру видимой части карты (координаты ставит JS) */
.pin { position: absolute; left: 50%; top: 50%; z-index: 750; width: 0; height: 0; pointer-events: none; }
.pin__svg { position: absolute; left: -20px; top: -52px; width: 40px; height: 52px; transition: transform .15s ease-out; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.pin__body { fill: var(--primary); stroke: #0E1A24; stroke-width: 2; }
.pin__dot { fill: #0E1A24; }
.pin--b .pin__body { fill: #0E1A24; stroke: #FFFFFF; }
.pin--b .pin__dot { fill: #FFFFFF; }
.pin__shadow { position: absolute; left: -5px; top: -3px; width: 10px; height: 6px; border-radius: 50%; background: rgba(0, 0, 0, .35); }
.pin.is-lifted .pin__svg { transform: translateY(-12px); }
.pin__label {
  position: absolute; bottom: 62px; left: 0; transform: translateX(-50%);
  max-width: 240px; padding: 6px 10px; border-radius: 10px; background: var(--ink); color: #F1F5F8;
  font-size: 13px; line-height: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: var(--shadow); transition: transform .15s ease-out;
}
.pin__label:empty { display: none; }
.pin.is-lifted .pin__label { transform: translate(-50%, -12px); }

.fab {
  position: absolute; right: 16px; bottom: 16px; z-index: 760;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--surface); color: var(--link); box-shadow: var(--shadow);
}

/* Маркеры карты (как /t/) */
.mk { border-radius: 50%; }
.mk-a { background: var(--primary); border: 3px solid #0E1A24; box-shadow: 0 0 0 3px #FFFFFF; }
.mk-b { background: #0E1A24; border: 3px solid #FFFFFF; box-shadow: 0 0 0 2px #0E1A24; }
.mk-car { background: transparent; border-radius: 0; }
.mk-car svg { width: 40px; height: 40px; display: block; transition: transform .4s linear; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35)); }
.mk-near svg { width: 30px; height: 30px; display: block; opacity: .9; }
.mk-me { background: #2F80ED; border: 3px solid #FFFFFF; box-shadow: 0 0 0 6px rgba(47, 128, 237, .25); }
.mk-learned { background: var(--accent); border: 2px solid #0E1A24; }

/* ------------------------------------------------------------ шторка */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 800;
  --sheet-pb: calc(16px + env(safe-area-inset-bottom));
  max-height: 74%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: var(--shadow-up);
  padding: 6px max(16px, env(safe-area-inset-right)) var(--sheet-pb) max(16px, env(safe-area-inset-left));
}
.sheet--tall { max-height: 88%; }
.sheet__grab { width: 36px; height: 5px; margin: 0 auto 10px; border-radius: 3px; background: var(--border); }
.sheet__body > :first-child { margin-top: 0; }
@media (min-width: 900px) {
  .sheet { --sheet-pb: 20px; left: 16px; top: 16px; right: auto; bottom: auto; width: 400px; max-height: calc(100% - 32px); border-radius: 16px; box-shadow: var(--shadow); padding: 20px; }
  .sheet--tall { max-height: calc(100% - 32px); }
  .sheet__grab { display: none; }
}

h1, h2, h3 { margin: 0; }
.h-title { font-size: 22px; line-height: 28px; font-weight: 700; overflow-wrap: anywhere; }
.h-sub { margin: 4px 0 0; color: var(--text2); font-size: 15px; line-height: 20px; }
.row { display: flex; align-items: center; gap: 8px; }
.row--top { align-items: flex-start; }
.grow { flex: 1 1 auto; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.gap-s > * + * { margin-top: 8px; }
.mt-s { margin-top: 8px; } .mt-m { margin-top: 12px; } .mt-l { margin-top: 16px; } .mt-xl { margin-top: 24px; }
.center { text-align: center; }

/* ------------------------------------------------------------ кнопки и поля */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; padding: 10px 16px; border: 1px solid transparent; border-radius: 12px;
  font-weight: 600; font-size: 17px; line-height: 22px; text-align: center; text-decoration: none; cursor: pointer;
  background: var(--surface); color: var(--text);
}
.btn--primary { background: var(--primary); color: var(--on-primary); min-height: 56px; }
.btn--primary:active { filter: brightness(.92); }
.btn--secondary { border-color: var(--border-strong); }
.btn--danger { background: transparent; color: var(--danger-text); }
.btn--plain { background: transparent; color: var(--link); width: auto; min-height: 44px; padding: 8px 4px; }
.btn--wa { background: #157A44; color: #FFFFFF; min-height: 56px; } /* 5.4:1 (зелёный #1E9E5A с белым — 3.4:1) */
.btn[disabled], .btn[aria-disabled="true"] { background: var(--disabled-bg); color: var(--disabled-text); border-color: transparent; cursor: default; filter: none; }
.btn--plain[disabled] { background: transparent; }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--on-primary); border-right-color: transparent; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btns { display: flex; gap: 8px; }
/* Кнопка «Заказать» прилипает к низу шторки и закрывает её нижний отступ (иначе под ней видно содержимое) */
.sticky-order {
  position: sticky; bottom: calc(-1 * var(--sheet-pb)); z-index: 1; margin-bottom: calc(-1 * var(--sheet-pb));
  margin-left: -8px; margin-right: -8px; padding: 8px 8px var(--sheet-pb); /* шире на 8 px — закрывает рамку фокуса поля под собой */
  background: var(--surface); box-shadow: 0 -10px 10px -10px rgba(14, 26, 36, .25);
}
.btns > .btn { flex: 1 1 0; }
.icon-btn { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--text); cursor: pointer; }

.field { display: block; }
.field__label { display: block; margin-bottom: 6px; font-size: 15px; line-height: 20px; color: var(--text2); }
.input, .select, .textarea {
  display: block; width: 100%; min-height: 52px; padding: 13px 14px; margin: 0;
  border: 1px solid var(--border-strong); border-radius: 12px; background: var(--input-bg); color: var(--text);
  font-size: 17px; line-height: 22px; -webkit-appearance: none; appearance: none;
}
.select {
  padding-right: 40px; background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%237A8691' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}
.textarea { min-height: 88px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text2); opacity: .85; }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.input--code { font: 600 28px/34px var(--mono); letter-spacing: .4em; text-align: center; padding-left: calc(14px + .4em); }
.phone-row { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 8px; }
.err { margin: 8px 0 0; color: var(--danger-text); font-size: 15px; line-height: 20px; }
.err:empty { display: none; }
.note { margin: 8px 0 0; color: var(--text2); font-size: 15px; line-height: 20px; }
.note:empty { display: none; }
.warn { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-text); font-size: 15px; line-height: 20px; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 48px; padding: 8px 0; cursor: pointer; font-size: 15px; line-height: 20px; }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--primary); }

/* ------------------------------------------------------------ адреса */
.addr {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px;
  border: 0; border-radius: 12px; background: var(--surface2); color: var(--text); text-align: left; cursor: pointer;
}
.addr + .addr, .addr-wrap + .addr { margin-top: 8px; }
.addr__dot { flex: none; width: 14px; height: 14px; border-radius: 50%; }
.dot-a { background: var(--primary); box-shadow: inset 0 0 0 4px var(--primary), inset 0 0 0 7px #0E1A24; }
.dot-b { background: var(--dot-b); }
.addr__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.addr__label { font-size: 13px; line-height: 18px; color: var(--text2); }
.addr__main { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr__main.is-placeholder { color: var(--text2); }
.addr-wrap { display: flex; gap: 8px; align-items: stretch; }
.addr-wrap > .addr { flex: 1 1 auto; min-width: 0; }
.entrance {
  flex: none; width: 104px; min-height: 56px; display: flex; flex-direction: column; justify-content: center;
  padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--input-bg); cursor: text;
}
.entrance:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.entrance__input { width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; font-size: 17px; line-height: 22px; }
.entrance__input:focus, .entrance__input:focus-visible { outline: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; margin: 12px -2px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text);
  font-size: 15px; line-height: 20px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--primary-soft); border: 2px solid var(--selected); padding: 7px 13px; }
.chip--learned { border-color: var(--accent); }
.hint-learned { display: flex; align-items: center; gap: 8px; margin-top: 8px; }

/* ------------------------------------------------------------ поиск */
.layer { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-end; justify-content: center; background: rgba(5, 12, 18, .55); }
.layer--full { align-items: stretch; background: var(--surface); }
.panel {
  width: 100%; max-width: 520px; max-height: 92%; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); color: var(--text); border-radius: 20px 20px 0 0; box-shadow: var(--shadow);
  padding: 20px max(16px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
@media (min-width: 600px) { .layer { align-items: center; } .panel { border-radius: 20px; } }
.search { display: flex; flex-direction: column; width: 100%; max-width: 640px; margin: 0 auto; height: 100%; }
.search__head { flex: none; display: flex; align-items: center; gap: 4px; padding: calc(8px + env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 8px max(8px, env(safe-area-inset-left)); border-bottom: 1px solid var(--border); }
.search__head .input { min-height: 48px; }
.search__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 8px max(16px, env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.sec-title { margin: 16px 0 4px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text2); text-transform: none; }
.list { list-style: none; margin: 0; padding: 0; }
.item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 4px;
  border: 0; border-bottom: 1px solid var(--border); background: transparent; color: var(--text); text-align: left; cursor: pointer;
}
.item__ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); color: var(--text2); }
.item__ico--learned { background: var(--accent); color: #0E1A24; }
.item__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.item__title { overflow-wrap: anywhere; }
.item__sub { font-size: 15px; line-height: 20px; color: var(--text2); overflow-wrap: anywhere; }

/* ------------------------------------------------------------ тарифы */
.summary { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; color: var(--text2); font-size: 15px; line-height: 20px; }
.surge { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent); color: #0E1A24; font-size: 13px; line-height: 18px; font-weight: 700; white-space: nowrap;
}
.tariffs { display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 0; padding: 2px 16px 6px; scrollbar-width: none; }
.tariffs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .tariffs { margin: 12px 0 0; padding: 2px 0 6px; flex-wrap: wrap; } }
.tariff { position: relative; flex: none; display: block; cursor: pointer; }
.tariff input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tariff__body {
  display: flex; flex-direction: column; gap: 2px; width: 136px; min-height: 104px; padding: 10px 12px;
  border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface);
}
.tariff input:checked + .tariff__body { background: var(--primary-soft); border: 2px solid var(--selected); padding: 9px 11px; }
.tariff input:focus-visible + .tariff__body { outline: 3px solid var(--focus); outline-offset: 2px; }
.tariff__name { font-weight: 600; }
.tariff__price { font-size: 20px; line-height: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tariff__old { font-size: 13px; line-height: 18px; color: var(--text2); text-decoration: line-through; }
.tariff__eta { font-size: 13px; line-height: 18px; color: var(--text2); }
.tariff .badge { align-self: flex-start; margin-top: 2px; }
.radios { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.radio { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 12px; cursor: pointer; }
.radio input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--primary); }
.radio:has(input:checked) { border: 2px solid var(--selected); padding: 7px 11px; background: var(--primary-soft); }
fieldset { border: 0; margin: 16px 0 0; padding: 0; min-width: 0; }
legend { padding: 0; font-weight: 600; }
.skeleton { height: 104px; border-radius: 16px; background: linear-gradient(90deg, var(--surface2), var(--border), var(--surface2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; margin-top: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------ поездка */
.status { display: flex; gap: 12px; align-items: flex-start; }
.status__dot { flex: none; width: 12px; height: 12px; margin-top: 8px; border-radius: 50%; background: var(--text2); }
.status__dot.is-live { background: var(--primary); animation: pulse 1.6s infinite; }
.status__dot.is-done { background: var(--success); }
.status__dot.is-bad { background: var(--danger); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 175, 202, .6); } 70% { box-shadow: 0 0 0 10px rgba(0, 175, 202, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 175, 202, 0); } }
.car { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 12px; border: 1px solid var(--border); border-radius: 16px; }
.plate {
  flex: none; padding: 4px 10px; border: 2px solid var(--text); border-radius: 8px;
  font: 700 22px/28px var(--mono); letter-spacing: .04em; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.car__info { min-width: 0; }
.car__info p { margin: 0; overflow-wrap: anywhere; }
.car__driver { color: var(--text2); font-size: 15px; line-height: 20px; }
.stars-inline { color: var(--text); font-weight: 600; }
.route { list-style: none; margin: 16px 0 0; padding: 0; }
.route li { display: flex; gap: 12px; align-items: flex-start; padding: 4px 0; }
.route li .addr__dot { margin-top: 4px; }
.route__addr { min-width: 0; overflow-wrap: anywhere; }
.pay-line { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.share { margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 16px; }
.share .input { font-size: 15px; }
.safety { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
.safety a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; }
.total { font-size: 34px; line-height: 40px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* оценка */
.stars { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
.star { position: relative; cursor: pointer; }
.star input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star svg { width: 44px; height: 44px; display: block; padding: 2px; fill: transparent; stroke: var(--border-strong); stroke-width: 1.5; stroke-linejoin: round; }
.star.is-on svg { fill: var(--accent); stroke: #9C7600; }
.star input:focus-visible + svg { outline: 3px solid var(--focus); outline-offset: 1px; border-radius: 8px; }
.star-caption { min-height: 22px; margin: 4px 0 0; text-align: center; color: var(--text2); }
.chips--wrap { flex-wrap: wrap; overflow: visible; }

/* ------------------------------------------------------------ диалоги, меню, тост */
.dlg-title { font-size: 20px; line-height: 26px; font-weight: 700; }
.dlg-text { margin: 8px 0 0; color: var(--text2); }
.dlg-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.menu-list { list-style: none; margin: 8px 0 0; padding: 0; }
.menu-list li + li { border-top: 1px solid var(--border); }
.menu-link { display: flex; align-items: center; gap: 12px; min-height: 52px; color: var(--text); text-decoration: none; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; padding: 4px 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.seg .chip { flex: 1 1 auto; justify-content: center; }
.toast {
  position: fixed; left: 50%; top: calc(64px + env(safe-area-inset-top)); z-index: 2100; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px;
  background: var(--ink); color: #F1F5F8; box-shadow: var(--shadow); font-size: 15px; line-height: 20px;
}
.boot { padding: 8px 0 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
