/* АвтоЗапись: общие стили клиента и кабинета.
   Вид родного приложения iPhone: системный шрифт, системные цвета (светлая и тёмная пары),
   сгруппированные списки с тонкими разделителями, обычная нижняя панель. Без теней и градиентов. */
:root {
  --bg: #f2f2f7;                       /* systemGroupedBackground */
  --cell: #ffffff;                     /* secondarySystemGroupedBackground */
  --cell-press: #e5e5ea;
  --ink: #000000;                      /* label */
  --ink-2: rgba(60, 60, 67, .6);       /* secondaryLabel */
  --ink-3: rgba(60, 60, 67, .3);       /* tertiaryLabel */
  --line: rgba(60, 60, 67, .29);       /* separator */
  --fill: rgba(118, 118, 128, .12);    /* tertiarySystemFill: серые кнопки и поля */
  --fill-2: rgba(120, 120, 128, .2);
  --bar: rgba(249, 249, 249, .94);     /* материал панелей */
  --accent: #007aff;                   /* цвет сервиса, подставляется со страницы */
  --on-accent: #ffffff;
  --tint: var(--accent-ink, var(--accent));   /* цвет сервиса для текста: светлый темнеет */
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
  --green: #34c759; --red: #ff3b30; --orange: #ff9500; --gray: #8e8e93; --indigo: #5856d6;
  --free: #248a3d; --free-bg: rgba(52, 199, 89, .14);
  --busy: #d70015; --busy-bg: rgba(255, 59, 48, .12);
  --warn-bg: rgba(255, 149, 0, .14); --warn: #c93400;
  --r: 10px;                           /* радиус сгруппированного списка */
  --r-btn: 12px;
  --tab-h: 49px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --plate: "DIN Alternate", "Roboto Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --cell: #1c1c1e; --cell-press: #2c2c2e; --ink: #ffffff;
    --ink-2: rgba(235, 235, 245, .6); --ink-3: rgba(235, 235, 245, .3); --line: rgba(84, 84, 88, .65);
    --fill: rgba(118, 118, 128, .24); --fill-2: rgba(120, 120, 128, .36); --bar: rgba(22, 22, 23, .92);
    --accent-soft: color-mix(in srgb, var(--accent) 22%, transparent); --tint: var(--accent);
    --green: #30d158; --red: #ff453a; --orange: #ff9f0a; --gray: #8e8e93; --indigo: #5e5ce6;
    --free: #30d158; --free-bg: rgba(48, 209, 88, .18); --busy: #ff6961; --busy-bg: rgba(255, 69, 58, .2);
    --warn-bg: rgba(255, 159, 10, .2); --warn: #ffb340;
    color-scheme: dark;
  }
}
@supports not (color: color-mix(in srgb, red, blue)) { :root { --accent-soft: rgba(0, 122, 255, .14); } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.29 var(--font); letter-spacing: -.41px;
  -webkit-font-smoothing: antialiased; min-height: 100dvh; -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + 28px);
}
a { color: var(--tint); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; letter-spacing: -.24px; }

/* ---------- навигационная панель: заголовок появляется, когда крупный уехал вверх ---------- */
.appbar {
  position: sticky; top: 0; z-index: 20; padding-top: var(--safe-t); height: calc(44px + var(--safe-t));
  display: flex; align-items: center; justify-content: center; background: transparent; transition: background-color .2s, box-shadow .2s;
}
.appbar.scrolled { background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 .5px 0 var(--line); }
.appbar .navtitle { margin: 0; font-size: 17px; font-weight: 600; opacity: 0; transition: opacity .15s; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar.scrolled .navtitle, .appbar.always .navtitle { opacity: 1; }
.appbar.always { background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 .5px 0 var(--line); }
.appbar .navside { position: absolute; right: 16px; bottom: 0; height: 44px; display: flex; align-items: center; font-size: 15px; color: var(--ink-2); }

.large { margin: -2px 16px 6px; font: 700 34px/41px var(--display); letter-spacing: .37px; }
.large.center { text-align: center; }
.lead { margin: -2px 16px 0; font-size: 15px; letter-spacing: -.24px; color: var(--ink-2); }

.view { max-width: 640px; margin: 0 auto; padding: 0 0 24px; outline: none; }

/* ---------- сгруппированные списки ---------- */
.hdr, .eyebrow { margin: 24px 32px 7px; font-size: 13px; line-height: 18px; letter-spacing: -.08px; text-transform: uppercase; color: var(--ink-2); font-weight: 400; }
.ftr { margin: 7px 32px 0; font-size: 13px; line-height: 18px; letter-spacing: -.08px; color: var(--ink-2); }
.group, .card, .svc-list, .tl {
  margin: 0 16px; background: var(--cell); border-radius: var(--r); overflow: hidden;
}
.card { padding: 12px 16px; }
.card + .card, .group + .group { margin-top: 16px; }
.card h2, .h2 { margin: 2px 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -.41px; }

.cell { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 11px 16px; color: var(--ink); width: 100%;
  border: 0; background: none; text-align: left; cursor: pointer; }
a.cell:active, button.cell:active { background: var(--cell-press); }
.cell + .cell::before, .cell + .svc::before, .svc + .svc::before, .svc + .cell::before {
  content: ""; position: absolute; top: 0; right: 0; left: 16px; height: .5px; background: var(--line);
}
.cell.ic + .cell::before { left: 57px; }
.cell .t { flex: 1; min-width: 0; }
.cell .d { color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cell .sub { display: block; font-size: 13px; line-height: 18px; letter-spacing: -.08px; color: var(--ink-2); margin-top: 1px; }
.cell.tint .t { color: var(--tint); }
.cell.danger .t { color: var(--red); }
.chev { width: 8px; height: 13px; flex: none; margin-left: -4px; fill: none; stroke: var(--ink-3); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sq { width: 29px; height: 29px; border-radius: 7px; display: grid; place-items: center; flex: none; color: #fff; }
.sq svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 0 20px;
  border-radius: var(--r-btn); border: 0; background: var(--fill); color: var(--tint); font-weight: 600; font-size: 17px; letter-spacing: -.41px;
  text-decoration: none; cursor: pointer; transition: opacity .12s; -webkit-user-select: none; user-select: none;
}
.btn:active { opacity: .6; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn-main { background: var(--accent); color: var(--on-accent); }
.btn-dark { background: var(--fill); color: var(--tint); }
.btn-line { background: var(--fill); color: var(--tint); }
.btn-danger { background: var(--busy-bg); color: var(--red); }
.btn-block { display: flex; width: 100%; }
.btn-s { min-height: 34px; padding: 0 14px; font-size: 15px; letter-spacing: -.24px; border-radius: 999px; white-space: nowrap; flex: none; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn.loading { opacity: .6; pointer-events: none; }
.pad { margin: 16px 16px 0; }
.pad > .btn + .btn { margin-top: 8px; }

.row { display: flex; gap: 8px; }
.row > * { flex: 1; }

/* ---------- нижняя панель вкладок ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; padding-bottom: var(--safe-b);
  background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 -.5px 0 var(--line);
}
.tabbar a {
  flex: 1; max-width: 160px; height: var(--tab-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  color: var(--gray); font-size: 10px; font-weight: 500; letter-spacing: .1px; position: relative;
}
.tabbar svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--tint); }
.tabbar a[aria-current="page"] svg { fill: currentColor; fill-opacity: .14; }
.tabbar .dot { position: absolute; top: 5px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--red); }

/* ---------- главная ---------- */
.dayline { padding: 12px 16px 0; font-size: 15px; letter-spacing: -.24px; color: var(--ink-2); }
.dayline b { color: var(--ink); font-weight: 600; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 16px 14px; }
.quick .time { height: 44px; }
.hours-row .d { text-align: right; }

/* ---------- цены и выбор услуг ---------- */
.search {
  display: block; width: calc(100% - 32px); margin: 4px 16px 0; height: 36px; border-radius: 10px; border: 0; background: var(--fill);
  padding: 0 12px 0 34px; font-size: 17px; letter-spacing: -.41px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 20 20'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 16px; background-position: 11px center; -webkit-appearance: none; appearance: none;
}
.search::placeholder { color: var(--ink-2); }
.search:focus { outline: none; }
.svc {
  position: relative; display: flex; width: 100%; gap: 12px; align-items: center; padding: 11px 16px; border: 0; background: none; text-align: left;
  cursor: pointer; min-height: 44px; color: var(--ink);
}
.svc:active { background: var(--cell-press); }
.svc-main { flex: 1; min-width: 0; }
.svc-name { display: block; }
.svc-meta { display: block; font-size: 13px; line-height: 18px; letter-spacing: -.08px; color: var(--ink-2); margin-top: 2px; }
.svc-price { color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.check {
  width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink-3); flex: none; display: grid; place-items: center;
}
.check svg { width: 13px; height: 13px; fill: none; stroke: var(--on-accent); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.svc[aria-pressed="true"] .check { background: var(--accent); border-color: var(--tint); }
.svc[aria-pressed="true"] .check svg { opacity: 1; }
.svc + .svc::before { left: 50px; }

/* ---------- запись ---------- */
.steps { display: flex; gap: 4px; margin: 4px 16px 0; }
.steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--fill-2); }
.steps i.on { background: var(--accent); }
.step-title { margin: 6px 16px 0; font: 700 28px/34px var(--display); letter-spacing: .36px; }
.step-sub { margin: 4px 16px 0; font-size: 15px; letter-spacing: -.24px; color: var(--ink-2); }
.step-sub a { color: var(--tint); }
.days { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 12px; padding: 4px 12px 4px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; scroll-snap-align: start; width: 52px; padding: 6px 0 8px; border: 0; background: none; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; color: var(--ink);
}
.day span { font-size: 13px; color: var(--ink-2); text-transform: uppercase; letter-spacing: -.08px; }
.day b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.day small { width: 5px; height: 5px; border-radius: 50%; background: var(--green); font-size: 0; }
.day.off b, .day.off span { color: var(--ink-3); }
.day.off small { background: transparent; }
.day[aria-pressed="true"] b { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.time {
  height: 44px; border-radius: 10px; border: 0; background: var(--accent-soft); color: var(--tint); font-weight: 600; font-size: 17px;
  font-variant-numeric: tabular-nums; cursor: pointer;
}
.time[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.time:disabled { background: transparent; color: var(--ink-3); text-decoration: line-through; cursor: default; }
.daypart { margin: 16px 0 8px; font-size: 13px; letter-spacing: -.08px; text-transform: uppercase; color: var(--ink-2); }
.slots { padding: 2px 16px 14px; }
.slots .daypart:first-child { margin-top: 10px; }
.allday { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.allday > span { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.allday .small { font-size: 13px; line-height: 18px; letter-spacing: -.08px; color: var(--ink-2); }
.empty { text-align: center; padding: 28px 16px; color: var(--ink-2); }
.empty svg { width: 44px; height: 44px; fill: none; stroke: var(--ink-3); stroke-width: 1.6; margin: 0 auto 8px; display: block; }

/* Переключатель как в iOS: обычный чекбокс в виде тумблера */
.switch, .toggle input, .allday input, .hours-ed input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: none; width: 51px; height: 31px; margin: 0; border-radius: 999px; background: var(--fill-2);
  position: relative; cursor: pointer; transition: background-color .2s;
}
.switch::after, .toggle input::after, .allday input::after, .hours-ed input[type="checkbox"]::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16); transition: transform .2s;
}
.switch:checked, .toggle input:checked, .allday input:checked, .hours-ed input[type="checkbox"]:checked { background: var(--green); }
.switch:checked::after, .toggle input:checked::after, .allday input:checked::after, .hours-ed input[type="checkbox"]:checked::after { transform: translateX(20px); }

/* ---------- формы: поля внутри сгруппированного списка ---------- */
.field { display: block; position: relative; padding: 10px 0; }
.field + .field { box-shadow: 0 -.5px 0 var(--line); }
.field > span { display: block; font-size: 13px; line-height: 18px; letter-spacing: -.08px; color: var(--ink-2); margin-bottom: 4px; }
.field > span em { font-style: normal; color: var(--ink-3); }
.input {
  width: 100%; min-height: 28px; border: 0; background: transparent; padding: 2px 0; font-size: 17px; letter-spacing: -.41px; color: var(--ink);
}
.input::placeholder { color: var(--ink-3); }
textarea.input { min-height: 66px; resize: vertical; }
.input:focus { outline: none; }
.input[aria-invalid="true"] { color: var(--red); }
select.input { -webkit-appearance: none; appearance: none; }
.err { display: block; color: var(--red); font-size: 13px; line-height: 18px; margin: 4px 0 0; }
.form > .err { padding: 0 0 10px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 12px 32px 0; font-size: 13px; line-height: 18px; color: var(--ink-2); cursor: pointer; }
.consent input { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 50%; border: 1.5px solid var(--ink-3); flex: none; display: grid; place-items: center; }
.consent input:checked { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--tint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Госномер в виде настоящего номерного знака */
.plate {
  display: flex; align-items: stretch; height: 52px; max-width: 280px; margin-top: 2px; background: #fff; color: #111; border: 2px solid #111;
  border-radius: 7px; overflow: hidden; font-family: var(--plate);
}
.plate input { border: 0; background: transparent; color: #111; font-family: var(--plate); font-weight: 700; text-transform: uppercase; min-width: 0; padding: 0; font-variant-numeric: tabular-nums; }
.plate input:focus { outline: none; background: #fffbe6; }
.plate input::placeholder { color: #b8bcc0; }
.plate .p-num { flex: 1; font-weight: 700; font-size: 28px; letter-spacing: .06em; text-align: center; }
.plate .p-reg { width: 70px; border-left: 2px solid #111; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.plate .p-reg input { width: 100%; text-align: center; font-size: 21px; line-height: 1; height: 28px; }
.plate .p-rus { display: flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.plate .p-flag { width: 14px; height: 9px; border: .5px solid #999; background: linear-gradient(#fff 33%, #1c57b5 33% 66%, #d52b1e 66%); }
.plate:focus-within { box-shadow: 0 0 0 3px var(--accent-soft); }

/* Нижняя полоса действия над вкладками (как панель инструментов) */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b)); z-index: 25;
  background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 -.5px 0 var(--line);
}
.actionbar-in { max-width: 640px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 12px; }
.actionbar .sum { flex: 1; min-width: 0; font-size: 13px; line-height: 18px; letter-spacing: -.08px; color: var(--ink-2); }
.actionbar .sum b { display: block; font-size: 15px; letter-spacing: -.24px; font-weight: 600; color: var(--ink); }
.actionbar .btn { flex: none; min-width: 120px; min-height: 44px; }
body.has-action .view { padding-bottom: 84px; }

/* Бирка на ключи: итог записи */
.tag {
  position: relative; margin: 16px 16px 0; background: var(--cell); border-radius: 14px; padding: 30px 20px 18px; overflow: hidden;
  -webkit-mask: radial-gradient(circle 8px at 50% 15px, transparent 98%, #000 100%);
          mask: radial-gradient(circle 8px at 50% 15px, transparent 98%, #000 100%);
}
.tag::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); }
.tag .eyebrow { margin: 0; }
.tag .when { font: 700 30px/1.1 var(--display); letter-spacing: .3px; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.tag .what { margin: 12px 0 0; padding: 12px 0 0; border-top: .5px solid var(--line); font-size: 15px; letter-spacing: -.24px; }
.tag .plate { height: 40px; max-width: 200px; margin-top: 10px; pointer-events: none; }
.tag .plate .p-num { font-size: 21px; display: flex; align-items: center; justify-content: center; }
.tag .plate .p-reg { width: 54px; }
.tag .plate .p-reg b { font-size: 15px; line-height: 1; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: -.08px; background: var(--fill); color: var(--ink-2); }
.badge.new { background: var(--warn-bg); color: var(--warn); }
.badge.confirmed { background: var(--free-bg); color: var(--free); }
.badge.cancelled, .badge.no_show { background: var(--busy-bg); color: var(--busy); }

.list > * + * { margin-top: 12px; }
.stack > * + * { margin-top: 16px; }

/* Всплывающее сообщение */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 72px); transform: translate(-50%, 12px); opacity: 0;
  background: rgba(30, 30, 32, .92); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 15px; letter-spacing: -.24px; z-index: 50;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Нижний лист */
.sheet-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 60; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
.sheet {
  background: var(--bg); width: 100%; max-width: 640px; border-radius: 12px 12px 0 0; padding: 8px 0 calc(16px + var(--safe-b));
  max-height: 92dvh; overflow: auto; animation: up .28s cubic-bezier(.2, .9, .3, 1);
}
.sheet::before { content: ""; display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--fill-2); margin: 0 auto 10px; }
.sheet h3 { margin: 4px 16px 4px; font-size: 17px; font-weight: 600; text-align: center; }
.sheet > p { margin: 0 16px 12px; text-align: center; }
.sheet > .btn, .sheet > .field, .sheet > .err { margin-left: 16px; margin-right: 16px; width: calc(100% - 32px); }
.sheet > .btn + .btn { margin-top: 8px; }
.sheet .days { margin: 0 4px; }
.sheet #mvtimes { padding: 0 16px; }
/* Выбор действия (как action sheet): группа кнопок и отдельная «Отмена» */
.acts { margin: 0 8px; border-radius: 14px; overflow: hidden; background: var(--cell); }
.acts p { margin: 0; padding: 14px 16px; text-align: center; font-size: 13px; line-height: 18px; color: var(--ink-2); }
.acts a, .acts button { display: block; width: 100%; padding: 17px 16px; border: 0; background: none; text-align: center; font-size: 20px; letter-spacing: .38px; color: var(--tint); cursor: pointer; box-shadow: 0 -.5px 0 var(--line); }
.acts a:active, .acts button:active { background: var(--cell-press); }
.acts + .acts { margin-top: 8px; }
.acts .cancel { font-weight: 600; box-shadow: none; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.again { display: grid; gap: 6px; justify-items: end; flex: none; }
.next-slot { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--fill); font-size: 15px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 76px; height: 76px; border-radius: 8px; overflow: hidden; background: var(--fill); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.install p { margin: 0 0 8px; }
.install ol { margin: 0 0 4px; padding-left: 20px; font-size: 15px; letter-spacing: -.24px; }
.install .x { float: right; margin: -4px -6px 0 0; background: none; border: 0; padding: 4px 6px; cursor: pointer; color: var(--ink-3); font-size: 22px; line-height: 1; }
.sheet.plain { background: transparent; padding-top: 0; }
.sheet.plain::before { display: none; }

/* Знак сервиса над названием на главной */
.brand { display: flex; justify-content: center; margin: 4px 0 8px; }
.brand .mark { border-radius: 14px; }
/* «Как заехать»: шаги по порядку, номер в кружке */
.way { list-style: none; padding: 0; counter-reset: way; }
.way li { position: relative; padding: 11px 16px 11px 52px; counter-increment: way; font-size: 17px; line-height: 22px; }
.way li + li::before { content: ""; position: absolute; top: 0; right: 0; left: 52px; height: .5px; background: var(--line); }
.way li::after { content: counter(way); position: absolute; left: 16px; top: 11px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-soft); color: var(--tint); font-size: 14px; font-weight: 600; line-height: 24px; text-align: center; }

/* Признаки неисправности: переключаемые метки */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; }
.chip { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--fill); color: var(--ink); font-size: 15px; letter-spacing: -.24px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
/* Окно с полями (форма): белая подложка, поля с разделителями, как форма в iOS */
.sheet:not(.plain) { background: var(--cell); }
.sheet:not(.plain) .card { background: var(--fill); }
.sheet .time { background: var(--accent-soft); }
.row > .field + .field { box-shadow: none; }
.sheet > .row { margin: 0 16px; }

/* Фото сервиса на главной: лента под названием, листается пальцем */
.shots { display: flex; gap: 8px; margin: 10px 0 0; padding: 0 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.shots::-webkit-scrollbar { display: none; }
.shot { flex: none; width: 280px; height: 190px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--fill); scroll-snap-align: start; cursor: pointer; }
.shot:only-child { width: 100%; }
.shot img, .way-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Фото въезда: во всю ширину группы «Как заехать», верхние углы скругляет сама группа */
.way-photo { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--fill); cursor: pointer; }
.group > .way { margin: 0; }

/* Просмотр фото на весь экран */
.noscroll, .noscroll body { overflow: hidden; }
.viewer { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; background: #000; color: #fff; animation: fade .2s ease; }
.v-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(var(--safe-t) + 6px) 8px 6px; }
.v-close { min-width: 80px; min-height: 44px; padding: 0 8px; border: 0; background: none; color: #fff; font-size: 17px; text-align: left; cursor: pointer; }
.v-gap { width: 80px; }
.v-count { font-size: 15px; letter-spacing: -.24px; color: rgba(255, 255, 255, .7); }
.v-track { flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; padding-bottom: var(--safe-b); }
.v-track::-webkit-scrollbar { display: none; }
.v-slide { flex: none; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; scroll-snap-stop: always; }
.v-slide img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.v-arrow { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16);
  color: #fff; font-size: 28px; line-height: 40px; cursor: pointer; }
.v-arrow.prev { left: 12px; }
.v-arrow.next { right: 12px; }
.v-arrow:disabled { opacity: 0; pointer-events: none; }
@media (hover: none) and (pointer: coarse) { .v-arrow { display: none; } }

/* Кабинет клиента: галочка на шаге 3, блок подтверждения номера, история с суммами */
.consent.acc { margin: 0; padding: 2px 0 12px; }
.consent.acc b { color: var(--ink); font-weight: 600; }
.verify .err { margin-top: 8px; }
.verify .field { margin-top: 4px; }
.cell.hist { cursor: default; align-items: flex-start; }
.cell.hist .d { font-weight: 600; color: var(--ink); }
.cell .note { display: block; margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: var(--fill); font-size: 13px; line-height: 18px; color: var(--ink); }
.mini-plate { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 6px; border: 1.5px solid #111; border-radius: 4px; background: #fff; color: #111;
  font: 700 14px/1 var(--plate); letter-spacing: .04em; flex: none; }
.mini-plate i { font-style: normal; font-size: 11px; border-left: 1.5px solid #111; padding-left: 5px; }
