/* Бауманка — внешний вид.
   Цвета и размеры — переменные ниже (светлая тема; тёмная — html.dark). Шрифт — Golos Text, как на сайте Бауманки. */
:root {
  --bg: #f4f3f0; --surface: #ffffff; --surface-2: #f0eeea; --ink: #141417; --ink-2: #3b3b42; --muted: #6c6c75; --line: #e7e4df;
  --accent: #d21f1f; --accent-2: #b51717; --accent-ink: #fffaf8; --accent-soft: #fbeceb;
  --asphalt: #19191d; --asphalt-2: #26262c; --on-asphalt: #f2f0ec; --on-asphalt-2: #b7b7bf;
  --green: #17804a; --green-soft: #e5f4ec; --amber: #a86100; --amber-soft: #fbf0df; --blue: #2a5fc4; --blue-soft: #e8eefb; --gray: #74747c;
  --r-lg: 20px; --r: 16px; --r-sm: 12px;
  --sh-1: 0 1px 2px rgb(20 20 23 / 5%); --sh-2: 0 1px 2px rgb(20 20 23 / 4%), 0 10px 28px -14px rgb(20 20 23 / 22%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1); --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dot: rgb(20 20 23 / 9%); --glow: rgb(210 31 31 / 9%); --glow-2: rgb(210 31 31 / 5%);
  --font: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}
html.dark {
  --bg: #0e0e10; --surface: #19191d; --surface-2: #222227; --ink: #f2f0ec; --ink-2: #d4d2ce; --muted: #9d9da6; --line: #2a2a31;
  --accent: #ee3a3a; --accent-2: #ff5252; --accent-soft: #3a1b1b;
  --asphalt: #1d1d22; --asphalt-2: #2a2a31;
  --green: #4cc583; --green-soft: #15301f; --amber: #f2a646; --amber-soft: #36270f; --blue: #82a8ff; --blue-soft: #1a2440; --gray: #8e8e97;
  --dot: rgb(255 255 255 / 7%); --glow: rgb(229 41 43 / 16%); --glow-2: rgb(229 41 43 / 8%);
  --sh-1: none; --sh-2: 0 12px 30px -16px rgb(0 0 0 / 60%);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
/* фон как в презентации и ролике: мелкая сетка точек и мягкое красное свечение по углам; не прокручивается вместе со страницей */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(60% 45% at 100% 0%, var(--glow), transparent 70%),
    radial-gradient(55% 40% at 0% 100%, var(--glow-2), transparent 70%),
    radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.5px);
  background-size: 100% 100%, 100% 100%, 22px 22px;
  background-attachment: fixed;
  min-height: 100vh;
}
body { padding-bottom: env(safe-area-inset-bottom); overflow-x: clip; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-user-select: none; user-select: none; }
a { color: var(--accent); text-decoration: none; cursor: pointer; font-weight: 500; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.boot { min-height: 60vh; display: grid; place-items: center; color: var(--muted); }

/* ---------- раскладка ---------- */
.page { max-width: 640px; margin: 0 auto; padding: 14px 16px 32px; display: flex; flex-direction: column; gap: 12px; }
.page.with-bar { padding-bottom: 112px; }
.page.with-tabs { padding-bottom: 104px; }
.page.with-bar.with-tabs { padding-bottom: 180px; }
.head { display: flex; gap: 10px; align-items: center; padding: 6px 0 2px; }
.head h1 { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
.sub { color: var(--muted); font-size: 15px; margin-top: 2px; }
.back { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; flex: none; transition: transform 0.15s var(--ease); }
.back:active { transform: scale(0.92); }
.sect { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; min-height: 32px; }
.sect h3, .cat { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.cat { margin-top: 10px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.big { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.green { color: var(--green); }
.break { word-break: break-all; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > .field { flex: 1; min-width: 120px; }
.row > input { flex: 1; min-width: 0; }
.between { justify-content: space-between; flex-wrap: nowrap; }
.nowrap { flex-wrap: nowrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.meta { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 14px; }
.meta .ic { width: 16px; height: 16px; }
.link { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 500; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; font-size: 15px; align-self: flex-start; }
.link .ic { width: 18px; height: 18px; }

/* ---------- карточки ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--sh-1); position: relative; text-align: left; width: 100%; }
.card.tap { cursor: pointer; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.card.tap:active { transform: scale(0.985); }
.card.soft { background: var(--surface-2); border-color: transparent; box-shadow: none; }
.booking-card { flex-direction: row; align-items: center; gap: 12px; }
.bc-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.bc-ic .ic { width: 22px; height: 22px; }
.bc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bc-main .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: var(--muted); width: 18px; height: 18px; }
.soft-box { background: var(--surface-2); padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.note { display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); border-radius: var(--r-sm); padding: 12px; font-size: 14px; color: var(--ink-2); }
.note .ic { color: var(--accent); margin-top: 1px; }
.note.good { background: var(--green-soft); color: var(--green); }
.note.good .ic { color: var(--green); }
.bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--sh-1); }
.bubble .ic { width: 15px; height: 15px; margin-right: 4px; }
.cross { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); border-radius: var(--r); padding: 14px; }
.cross .grow { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* ---------- кнопки ---------- */
.btn { border: 1px solid transparent; border-radius: 14px; padding: 12px 18px; font-weight: 600; cursor: pointer; background: var(--surface-2); min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: transform 0.15s var(--ease), background 0.2s, box-shadow 0.2s, opacity 0.2s; }
.btn .ic { width: 19px; height: 19px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: var(--surface); border-color: var(--line); }
.btn.danger { background: var(--accent); color: #fff; }
.btn.danger-text { color: var(--accent); }
.btn.wide { width: 100%; }
.btn.small { min-height: 38px; padding: 7px 13px; font-size: 14px; border-radius: 11px; }
.btn.icon-only { width: 38px; padding: 0; }
.btn:disabled { opacity: 0.5; }
.btn:active { transform: scale(0.97); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- поля ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.lbl { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hint { font-size: 13px; line-height: 1.45; color: var(--muted); }
.hint .ic { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.hint.center { text-align: center; }
.hint.warn { color: var(--amber); }
input, select, textarea { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 13px; min-height: 48px; transition: border-color 0.2s, box-shadow 0.2s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); outline: none; }
textarea { resize: vertical; min-height: 72px; }
.sel { position: relative; flex: 1; min-width: 0; }
.sel select { appearance: none; -webkit-appearance: none; padding-right: 36px; }
.sel-ic { position: absolute; right: 12px; top: 50%; transform: translateY(-50%) rotate(90deg); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
/* переключатель вместо галочки */
.check { display: flex; gap: 12px; align-items: center; padding: 8px 0; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.check .sw { width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background 0.25s var(--ease); }
.check .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 25%); transition: transform 0.3s var(--spring); }
.check input:checked + .sw { background: var(--accent); }
.check input:checked + .sw::after { transform: translateX(18px); }
.check input:focus-visible + .sw { outline: 2px solid var(--accent); outline-offset: 2px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 15px; cursor: pointer; font-size: 15px; min-height: 40px; transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s, transform 0.15s var(--ease); }
.chip:active { transform: scale(0.95); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; flex: none; }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.blue { background: var(--blue-soft); color: var(--blue); }
.pill.red { background: var(--accent-soft); color: var(--accent); }
.pill.gray { color: var(--gray); }

/* ---------- главная ---------- */
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 18px; color: var(--on-asphalt); display: flex; flex-direction: column; gap: 14px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgb(210 31 31 / 38%), transparent 55%),
    repeating-linear-gradient(115deg, rgb(255 255 255 / 3.5%) 0 2px, transparent 2px 14px),
    var(--asphalt); }
.hero-top { display: flex; gap: 12px; align-items: center; }
.hero-top b { display: block; font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; }
.hero-top span { color: var(--on-asphalt-2); font-size: 14px; }
.hero-car { display: flex; align-items: center; gap: 10px; border: 1px solid rgb(255 255 255 / 12%); background: rgb(255 255 255 / 7%); color: inherit; border-radius: 14px; padding: 12px 14px; cursor: pointer; text-align: left; backdrop-filter: blur(6px); transition: background 0.2s; }
.hero-car:hover { background: rgb(255 255 255 / 11%); }
.hero-car span { flex: 1; font-weight: 500; }
.hero-car .ic:last-child { width: 16px; height: 16px; opacity: 0.6; }
.hero-promo { display: flex; gap: 10px; align-items: center; background: var(--accent); color: #fff; border-radius: 14px; padding: 11px 14px; font-weight: 600; font-size: 15px; }
.logo { flex: none; border-radius: 14px; box-shadow: 0 6px 18px -6px rgb(0 0 0 / 50%); }

.point { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sh-2); }
.point-head { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.point-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.point-head h2 { font-size: 18px; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 2px; }
.pic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; flex: none; color: #fff; background: var(--asphalt); }
.pic .ic { width: 28px; height: 28px; }
.pic.tire { background: linear-gradient(145deg, #2b2b31, #141417); }
.pic.wash { background: linear-gradient(145deg, #e23a3a, #b51717); }
.pic.sm { width: 40px; height: 40px; border-radius: 12px; }
.pic.sm .ic { width: 22px; height: 22px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; padding: 6px 12px 6px 10px; border-radius: 999px; align-self: flex-start; background: var(--surface-2); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--gray); position: relative; }
.live.on { background: var(--green-soft); color: var(--green); }
.live.on i { background: var(--green); animation: pulse 2s infinite; }
.live.busy { background: var(--amber-soft); color: var(--amber); }
.live.busy i { background: var(--amber); }
.live.off { color: var(--muted); }
.point .row { flex-wrap: nowrap; }
.point .row .btn { flex: 1; min-width: 0; padding-inline: 10px; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; text-align: left; cursor: pointer; font-weight: 600; position: relative; min-height: 96px; box-shadow: var(--sh-1); transition: transform 0.18s var(--ease); }
.tile:active { transform: scale(0.97); }
.t-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); }
.t-ic .ic { width: 22px; height: 22px; }
.tile em, .tab em { font-style: normal; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 7px; position: absolute; top: 12px; right: 12px; }
.phone-line { border: 0; background: none; color: var(--muted); display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 15px; padding: 10px; cursor: pointer; }
.phone-line .ic { width: 17px; height: 17px; color: var(--accent); }

/* ---------- машина ---------- */
.cls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cls { border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.15s var(--ease); }
.cls .ic { width: 26px; height: 26px; color: var(--muted); margin-bottom: 4px; transition: color 0.2s; }
.cls small { color: var(--muted); font-size: 13px; }
.cls.on { border-color: var(--accent); background: var(--accent-soft); }
.cls.on .ic { color: var(--accent); }
.cls:active { transform: scale(0.97); }
.cls:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.roles-pick { display: grid; gap: 8px; }
.role-card { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 2px; }
.role-card .ic { margin: 0; }
.role-card b { flex: 1; }
.role-card small { flex-basis: 100%; padding-left: 38px; }
.role-card .lock { color: var(--amber); }
.car-inline { display: flex; gap: 8px; }
.point-info { display: flex; flex-direction: column; gap: 6px; margin-top: -4px; }

/* ---------- услуги ---------- */
.list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); }
.svc { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; width: 100%; transition: background 0.25s var(--ease); }
.svc:first-child { border-top: 0; }
.svc-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.svc .price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tick { width: 24px; height: 24px; border: 2px solid var(--line); border-radius: 8px; flex: none; display: grid; place-items: center; color: #fff; transition: background 0.25s var(--ease), border-color 0.25s, transform 0.3s var(--spring); }
.tick .ic { width: 16px; height: 16px; stroke-width: 2.6; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset 0.3s var(--ease) 0.05s; }
.svc.on { background: var(--accent-soft); }
.svc.on .tick { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.svc.on .tick .ic { stroke-dashoffset: 0; }
.svc.admin { cursor: pointer; }
.svc.admin.off { opacity: 0.5; }
.list.compact .svc { padding: 10px 12px; }

.lines { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; font-size: 15px; font-variant-numeric: tabular-nums; }
.lines .green .ic { width: 16px; height: 16px; margin-right: 4px; }
.lines .total { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 3px; font-size: 17px; }

/* ---------- время ---------- */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 9px 12px; display: flex; flex-direction: column; align-items: center; min-width: 78px; cursor: pointer; transition: background 0.2s var(--ease), color 0.2s, transform 0.15s var(--ease); }
.day span { font-size: 12px; color: var(--muted); }
.day.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.day.on span { color: inherit; opacity: 0.7; }
.day:active, .slot:active { transform: scale(0.95); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; margin-top: 8px; }
.slot { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 11px 0; cursor: pointer; font-variant-numeric: tabular-nums; font-weight: 600; position: relative; transition: background 0.2s var(--ease), color 0.2s, transform 0.2s var(--spring); }
.slot small { position: absolute; top: 2px; right: 6px; font-size: 10px; color: var(--muted); font-weight: 500; }
.slot.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: scale(1.04); }
.skel { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%) 0 0 / 300% 100%; border-color: transparent; animation: shimmer 1.2s infinite linear; min-height: 44px; }
.day.skel { min-height: 54px; }
.fade-in > * { animation: inUp 0.35s var(--ease) both; }
.fade-in > :nth-child(n+2) { animation-delay: 20ms; } .fade-in > :nth-child(n+5) { animation-delay: 50ms; } .fade-in > :nth-child(n+9) { animation-delay: 80ms; } .fade-in > :nth-child(n+13) { animation-delay: 110ms; }

/* ---------- запись ---------- */
.done-mark { width: 76px; height: 76px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 4px auto 0; animation: pop 0.5s var(--spring) both; box-shadow: 0 10px 30px -10px var(--green); }
.done-mark .ic { width: 40px; height: 40px; stroke-width: 2.4; stroke-dasharray: 22; stroke-dashoffset: 22; animation: draw 0.45s var(--ease) 0.25s forwards; }
.done-mark.soft { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.done-mark.soft .ic { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; stroke-width: 1.8; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.steps span { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.steps i { height: 4px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.steps .on { color: var(--ink); font-weight: 600; }
.steps .on i::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform-origin: left; animation: grow 0.6s var(--ease) both; }

/* ---------- фото ---------- */
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.ph { width: 88px; height: 88px; border-radius: 14px; overflow: hidden; position: relative; border: 1px solid var(--line); display: grid; place-items: center; background: var(--surface); animation: pop 0.35s var(--spring) both; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgb(0 0 0 / 60%); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.ph button .ic { width: 14px; height: 14px; }
.ph.add { cursor: pointer; color: var(--muted); font-size: 13px; border: 1.5px dashed var(--line); display: flex; flex-direction: column; gap: 2px; justify-content: center; align-items: center; animation: none; }
.photos.big { display: grid; gap: 8px; }
.photos.big img { width: 100%; max-height: 380px; object-fit: contain; border-radius: var(--r); background: #000; }
.thumb { width: 100%; max-height: 170px; object-fit: cover; border-radius: 12px; }

/* ---------- посты ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 10px; }
.post { border-radius: var(--r); padding: 13px; display: flex; flex-direction: column; gap: 4px; min-height: 132px; text-align: left; border: 1px solid var(--line); background: var(--surface); cursor: pointer; box-shadow: var(--sh-1); transition: transform 0.18s var(--ease), box-shadow 0.2s, border-color 0.3s; position: relative; overflow: hidden; }
.post:active { transform: scale(0.98); }
.post.free { border: 1.5px dashed var(--line); background: transparent; box-shadow: none; align-items: flex-start; }
.post.free .plus { margin-top: auto; color: var(--accent); font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.post.free .plus .ic { width: 18px; height: 18px; }
.post.busy::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--amber); transition: background 0.3s; }
.post.busy.ready::before { background: var(--green); }
.post.busy.ready { animation: glow 1.6s var(--ease) 1; }
.post.off { opacity: 0.45; cursor: default; }
.post .row:last-child { margin-top: auto; padding-top: 6px; }
.post .row:last-child .btn { flex: 1; }

/* ---------- нижняя панель и вкладки ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: center;
  padding: 14px max(12px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
  background: linear-gradient(to top, var(--bg) 40%, transparent); pointer-events: none; }
.bar-in { pointer-events: auto; width: 100%; max-width: 608px; display: flex; gap: 10px; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 22px; padding: 8px; box-shadow: 0 12px 32px -14px rgb(0 0 0 / 35%); }
.page[class*='enter-'] + .bar .bar-in { animation: barIn 0.45s var(--ease) 0.1s both; }
.bar-in:has(.bar-sum) { padding-left: 16px; }
.bar-in > .btn { flex: 1; }
.bar-in > .btn.ghost { flex: 0 0 auto; }
.bar.over-tabs { bottom: calc(76px + env(safe-area-inset-bottom)); padding-bottom: 8px; }
.bar-sum { flex: 1; display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.bar-sum b { font-size: 20px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; display: inline-block; transform-origin: left center; }
.bar-sum + .btn { flex: 0 0 auto; padding-inline: 22px; }
.bar-hint { color: var(--muted); font-size: 14px; flex: 1; text-align: center; display: flex; gap: 8px; justify-content: center; align-items: center; min-height: 48px; }
.bar-hint .ic { width: 17px; height: 17px; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 11; display: flex; justify-content: center; padding: 0 12px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
.tabs-in { pointer-events: auto; display: flex; width: 100%; max-width: 520px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--line); border-radius: 22px; padding: 6px; box-shadow: 0 10px 30px -12px rgb(0 0 0 / 30%); }
.tab { flex: 1; border: 0; background: transparent; padding: 7px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--muted); cursor: pointer; position: relative; border-radius: 16px; transition: color 0.2s; }
.tab .ic { width: 23px; height: 23px; transition: transform 0.3s var(--spring); }
.tab.on { color: var(--accent); }
.tab.on::before { content: ''; position: absolute; inset: 0; background: var(--accent-soft); border-radius: 16px; z-index: -1; animation: pop 0.35s var(--spring) both; }
.tab.on .ic { transform: translateY(-1px) scale(1.06); }
.tab em { top: 2px; right: calc(50% - 24px); }

/* ---------- меню настроек ---------- */
.menu { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); }
.menu button { min-width: 0; display: flex; gap: 12px; align-items: center; text-align: left; padding: 13px 14px; border: 0; border-top: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; transition: background 0.2s; }
.menu button:hover { background: var(--surface-2); }
.menu button:first-child { border-top: 0; }
.menu.big button > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.menu small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.m-ic .ic { width: 21px; height: 21px; }
.menu em { font-style: normal; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 9px; background: var(--amber-soft); color: var(--amber); white-space: nowrap; }
.cat-row { margin-top: 6px; }
.cat-row .cat { margin: 0; }
.post-row input { flex: 1; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.ptable { border-collapse: collapse; width: 100%; font-size: 14px; }
.ptable th { text-align: left; padding: 9px 8px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); position: sticky; top: 0; }
.ptable td { padding: 3px; border-top: 1px solid var(--line); }
.ptable td:first-child { padding: 0 10px; font-weight: 600; white-space: nowrap; }
.ptable input { min-height: 38px; padding: 6px 8px; min-width: 80px; border-radius: 9px; font-variant-numeric: tabular-nums; }
.paste summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 6px 0; }
.paste { display: flex; flex-direction: column; gap: 8px; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.msg { border-top: 1px solid var(--line); padding: 9px 0; }

.empty { text-align: center; padding: 30px 12px; color: var(--muted); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.empty-ic { width: 60px; height: 60px; border-radius: 50%; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; }
.empty-ic .ic { width: 28px; height: 28px; }

/* ---------- шторка, уведомления ---------- */
.modal { position: fixed; inset: 0; background: rgb(10 10 12 / 45%); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fadeIn 0.22s var(--ease) both; }
.sheet { background: var(--surface); width: 100%; max-width: 520px; border-radius: 24px 24px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; animation: sheetIn 0.38s var(--ease) both; box-shadow: 0 -10px 40px -10px rgb(0 0 0 / 30%); }
.grip { width: 40px; height: 5px; border-radius: 5px; background: var(--line); align-self: center; }
.sheet-q { font-size: 18px; font-weight: 600; text-align: center; padding: 4px 8px 0; text-wrap: balance; }
.sheet .row .btn { flex: 1; }
.modal.closing { animation: fadeOut 0.22s var(--ease) both; }
.modal.closing .sheet { animation: sheetOut 0.22s var(--ease) both; }
#toast { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translate(-50%, -160%) scale(0.95); background: var(--ink); color: var(--bg); padding: 11px 16px 11px 13px; border-radius: 14px; z-index: 60; font-size: 15px; font-weight: 500; max-width: calc(100% - 32px); transition: transform 0.4s var(--spring), opacity 0.3s; opacity: 0; box-shadow: 0 10px 30px rgb(0 0 0 / 25%); display: flex; gap: 8px; align-items: center; }
#toast .ic { width: 18px; height: 18px; color: var(--green); flex: none; }
#toast.show { transform: translate(-50%, 0) scale(1); opacity: 1; }
#toast.bad { background: var(--accent); color: #fff; }
#toast.bad .ic { color: #fff; }

.demo-bar { display: flex; gap: 6px; align-items: center; padding: 8px 16px; background: var(--asphalt); color: var(--on-asphalt); font-size: 13px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 0; z-index: 9; }
.demo-bar::-webkit-scrollbar { display: none; }
.demo-bar > span { color: var(--on-asphalt-2); margin-right: 2px; }
.demo-bar button { border: 1px solid #3a3a42; background: transparent; color: inherit; border-radius: 999px; padding: 5px 12px; cursor: pointer; white-space: nowrap; transition: background 0.2s, border-color 0.2s; }
.demo-bar button.on { background: var(--accent); border-color: var(--accent); }

/* ---------- анимации ---------- */
.enter-fwd > * { animation: inRight 0.42s var(--ease) both; }
.enter-back > * { animation: inLeft 0.42s var(--ease) both; }
.enter-fade > * { animation: inUp 0.42s var(--ease) both; }
.page[class*='enter-'] > :nth-child(2) { animation-delay: 30ms; }
.page[class*='enter-'] > :nth-child(3) { animation-delay: 60ms; }
.page[class*='enter-'] > :nth-child(4) { animation-delay: 90ms; }
.page[class*='enter-'] > :nth-child(5) { animation-delay: 120ms; }
.page[class*='enter-'] > :nth-child(6) { animation-delay: 150ms; }
.page[class*='enter-'] > :nth-child(n+7) { animation-delay: 180ms; }
.bump { animation: bump 0.4s var(--spring); }
@keyframes inRight { from { opacity: 0; transform: translateX(24px); } }
@keyframes inLeft { from { opacity: 0; transform: translateX(-24px); } }
@keyframes inUp { from { opacity: 0; transform: translateY(10px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes sheetIn { from { transform: translateY(100%); } }
@keyframes sheetOut { to { transform: translateY(100%); } }
@keyframes barIn { from { transform: translateY(20px); opacity: 0; } }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes bump { 40% { transform: scale(1.08); } }
@keyframes shimmer { to { background-position: -150% 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes glow { 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 30%, transparent); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- компьютер ---------- */
@media (hover: hover) {
  .card.tap:hover, .tile:hover, .post:not(.off):hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
  .svc:hover:not(.on) { background: var(--surface-2); }
  .chip:hover:not(.on), .day:hover:not(.on), .slot:hover:not(.on) { border-color: var(--muted); }
}
@media (min-width: 760px) {
  .page { padding: 24px 24px 40px; gap: 14px; }
  .head h1 { font-size: 30px; }
  /* minmax(0, …): колонка сжимается, длинный подзаголовок обрезается многоточием, а не распирает меню за край */
  .menu.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu.cols button { min-width: 0; }
  .menu.cols button:nth-child(2) { border-top: 0; }
  .menu.cols button:nth-child(even) { border-left: 1px solid var(--line); }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero { padding: 24px; }
}
@media (min-width: 900px) {
  .page.wide { max-width: 1080px; }
  .page.wide .posts { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}

/* ---------- выбор из списка (марка, модель) ---------- */
.pick { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 8px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 12px 0 13px; cursor: pointer; transition: border-color 0.2s, transform 0.15s var(--ease); }
.pick span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.pick.is-empty span { color: var(--muted); font-weight: 400; }
.pick .sel-ic { position: static; transform: none; }
.pick:active { transform: scale(0.98); }
.pick:disabled { opacity: 0.5; cursor: default; }
.car-fields { display: flex; flex-direction: column; gap: 12px; }
.modal.tall .sheet { max-height: 86%; }
.pk-search { position: relative; }
.pk-search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.pk-search input { padding-left: 40px; }
.pk-list { overflow-y: auto; margin: 0 -16px; padding: 0 8px 4px; max-height: 58vh; overscroll-behavior: contain; }
.pk-item { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 13px 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; border-radius: 10px; }
.pk-item span { flex: 1; font-weight: 500; }
.pk-item small { color: var(--muted); font-size: 13px; }
.pk-item .ic { color: var(--accent); width: 18px; height: 18px; }
.pk-item.on { background: var(--accent-soft); }
.pk-item.custom { color: var(--accent); }
.pk-item:hover { background: var(--surface-2); }
.found:empty { display: none; }

/* ---------- посты: свободен / в работе ---------- */
.post-toggle { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.post-toggle:first-child { border-top: 0; }
.post-toggle small { display: block; color: var(--green); font-size: 13px; }
.post-toggle.busy small { color: var(--amber); }
.post-toggle .check { padding: 0; }
.pt-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: none; transition: background 0.25s, color 0.25s; }
.post-toggle.busy .pt-ic { background: var(--amber-soft); color: var(--amber); }
.post.busy.manual::before { background: repeating-linear-gradient(180deg, var(--amber) 0 6px, transparent 6px 10px); }

/* ---------- смена ---------- */
.shift { background: var(--asphalt); color: var(--on-asphalt); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 14px;
  background: radial-gradient(120% 90% at 100% 0%, rgb(210 31 31 / 30%), transparent 55%), var(--asphalt); }
.shift .muted { color: var(--on-asphalt-2); }
.shift-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.shift-nums div { background: rgb(255 255 255 / 6%); border-radius: 14px; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.shift-nums b { font-size: 26px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.shift-nums div:last-child b { font-size: 19px; line-height: 1.5; }
.shift-nums span { font-size: 12px; color: var(--on-asphalt-2); }
.shift-head { display: flex; flex-direction: column; gap: 2px; }

/* площадки (адреса) на главной: «Бауманка», «Басманный» */
.site-head { display: flex; gap: 10px; align-items: flex-start; margin: 10px 2px -2px; }
.site-head > .ic { color: var(--accent); width: 20px; height: 20px; margin-top: 2px; flex: none; }
.site-head div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.site-head b { font-size: 17px; letter-spacing: -0.01em; }
.site-head span { color: var(--muted); font-size: 13px; }
/* длинные описания (пакеты мойки): две строки, целиком — у отмеченной услуги */
.svc .desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc.on .desc { -webkit-line-clamp: unset; display: block; }
.invite-card { border: 1px solid var(--accent); }

/* плашка «кто я» у сотрудников: владелец — красный, администратор — синий, мастер — зелёный */
.role-badge { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-sm); font-size: 14px; margin-bottom: 4px; }
.role-badge .ic { width: 18px; height: 18px; flex: none; }
.role-badge span { flex: 1; min-width: 0; }
.role-badge button { border: 0; border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; background: currentColor; flex: none; }
.role-badge.owner { background: var(--accent-soft); color: var(--accent); }
.role-badge.admin { background: var(--blue-soft); color: var(--blue); }
.role-badge.master { background: var(--green-soft); color: var(--green); }
.role-badge button { color: var(--surface); }
.role-badge.owner button { background: var(--accent); color: var(--accent-ink); }
.role-badge.admin button { background: var(--blue); }
.role-badge.master button { background: var(--green); }

/* ---------- ПК и Telegram Desktop ---------- */
/* сетки, которые на телефоне — одна колонка */
.points, .cats, .cards-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.cat-block { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
@media (min-width: 760px) {
  .points { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
}
@media (min-width: 900px) {
  /* прайс точки: разделы в две колонки, сверху — адрес и машина на всю ширину */
  .page.wide .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 4px 20px; }
  .page.wide .car-inline { max-width: 640px; }
  .page.wide .hero { padding: 28px 32px; }
  .page.wide .tiles { max-width: none; }
  /* настройки: три колонки на широком экране */
}
@media (min-width: 1100px) {
  .page.wide .menu.cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page.wide .menu.cols button:nth-child(3) { border-top: 0; }
  .page.wide .menu.cols button:nth-child(even) { border-left: 0; }
  .page.wide .menu.cols button:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
}
