/* Клиентское приложение, дизайн «Гранж / Киберпанк / Русский этнос» (12.11.2026, тест на /app2/). Стиль: docs/design/client-tz.md */
@font-face { font-family: "Montserrat Ace"; src: url(/app2/fonts/Montserrat-Ace-Regular.otf) format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat Ace"; src: url(/app2/fonts/Montserrat-Ace-Medium.otf) format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat Ace"; src: url(/app2/fonts/Montserrat-Ace-SemiBold.otf) format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat Ace"; src: url(/app2/fonts/Montserrat-Ace-Bold.otf) format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat Black"; src: url(/app2/fonts/Montserrat-Variable.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #111; --surface: #1a1918; --surface-2: #242220; --line: #4a4541; --line-2: #77716b;
  --text: #f1ece2; --muted: #b9b3ab; --red: #b3202a; --red-2: #d73a42; --red-dark: #821a21;
  --ok: #5fc48f; --gold: #d9a43a;
  --head: "Montserrat Black", "Montserrat", sans-serif;
  --body: "Montserrat Ace", "Montserrat", system-ui, sans-serif;
  --nav-h: calc(68px + env(safe-area-inset-bottom));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 17px/1.4 var(--body); -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
body:before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .06; background: url(/app2/img/concrete.webp); background-size: 256px; z-index: 50; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
#view { isolation: isolate; max-width: 480px; margin: 0 auto; padding: 18px 16px calc(var(--nav-h) + 24px); min-height: 100vh; position: relative; }
#view.bare { padding: 0 0 calc(var(--nav-h) + 24px); } /* главная: без боковых полей, но с местом под нижнее меню */
#view.full { padding: 0; } /* заставка входа — без меню */
h1, h2, .h { font-family: var(--head); font-weight: 900; letter-spacing: .2px; margin: 0; }
h1 { font-size: 30px; line-height: 1.08; }
h2 { font-size: 24px; line-height: 1.1; margin: 22px 0 10px; }
h3 { font-size: 17px; margin: 0 0 4px; font-weight: 700; }
.top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 6px; }
.back { width: 44px; height: 44px; margin-left: -10px; border: 0; background: none; font-size: 28px; line-height: 1; }
.crest { width: 28px; height: 36px; object-fit: contain; }
.orn { position: absolute; top: 0; right: 0; width: 170px; height: auto; opacity: .85; pointer-events: none; z-index: 0; }
.top, h1 { position: relative; z-index: 1; }
h1 { text-shadow: 0 2px 10px #000; }

/* кнопки */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 17px; text-decoration: none; text-align: center; }
.btn.primary { background: var(--red); border-color: var(--red-2); box-shadow: inset 0 1px #ffffff1c; }
.btn.ghost { background: transparent; }
.btn.danger { background: transparent; border-color: var(--red-2); color: #ff9aa0; }
.btn[disabled] { opacity: .45; cursor: default; }
.btn + .btn { margin-top: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 .btn + .btn { margin-top: 0; }
.link { border: 0; background: none; padding: 8px 0; color: #ffb3b8; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* карточки */
.card { border: 1px solid var(--line); border-radius: 12px; background: #1a1918ee; padding: 16px; margin-top: 12px; position: relative; }
.card.red { border-color: var(--red-2); box-shadow: 0 0 0 1px #b3202a55; }
.card.dashed { border-style: dashed; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 6px; background: var(--text); color: #111; font-size: 13px; font-weight: 700; }
.badge.red { background: var(--red); color: #fff; }
.pill { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.big { font-family: var(--head); font-weight: 900; font-size: 26px; line-height: 1.15; }
.huge { font-family: var(--head); font-weight: 900; font-size: 54px; line-height: 1; font-variant-numeric: tabular-nums; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tile { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 14px; text-align: left; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; }
.tile .l { color: var(--muted); font-size: 14px; }
.tile .v { font-family: var(--head); font-weight: 900; font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
.tile .v.s { font-size: 16px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; padding-top: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.err { color: #ff8a90; margin: 10px 0; }
.empty { text-align: center; padding: 28px 12px; }

/* главная */
.hero { position: relative; margin: 0; height: 400px; overflow: hidden; background: #2a1215; }
.hero img.p { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: opacity .4s; }
.hero:after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0000 40%, #111 97%), linear-gradient(90deg, #000b, #0000 60%); }
.hero .hi { position: absolute; top: calc(16px + env(safe-area-inset-top)); left: 16px; right: 16px; z-index: 2; display: flex; align-items: center; gap: 10px; text-shadow: 0 1px 6px #000; }
.hero .hi .crest { width: 34px; height: 44px; }
.hero .hi b { font: 900 17px/1 var(--head); letter-spacing: .5px; border-left: 1px solid #ffffff55; padding-left: 10px; }
.hero .greet { position: absolute; left: 16px; bottom: 112px; z-index: 2; font: 500 16px/1.2 var(--body); color: #e8e0d6; text-shadow: 0 1px 6px #000; }
.hero .tag { position: absolute; left: 16px; bottom: 22px; z-index: 2; font: 900 36px/1 var(--head); text-shadow: 0 3px 12px #000; }
.hero .tag:before { content: ""; display: block; width: 60px; height: 4px; background: var(--red); margin-bottom: 12px; }
.hero .chat { position: absolute; right: 16px; bottom: 22px; z-index: 3; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: #111c; display: grid; place-items: center; }
.hero .chat .pill { position: absolute; top: -4px; right: -4px; }
.ico { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* вход */
.splash { position: relative; min-height: 100vh; overflow: hidden; background: radial-gradient(ellipse at 70% 35%, #5a161c 0, #1a1210 45%, #111 80%); }
.splash .mark { position: absolute; top: calc(28px + env(safe-area-inset-top)); left: 20px; display: flex; align-items: center; gap: 12px; z-index: 2; }
.splash .mark img { width: 46px; height: 60px; object-fit: contain; }
.splash .mark span { font: 900 26px/.95 var(--head); }
.splash .tag { position: absolute; top: 140px; left: 20px; z-index: 2; font: 900 40px/1 var(--head); text-shadow: 0 3px 12px #000; }
.splash .tag:before { content: ""; display: block; width: 64px; height: 4px; background: var(--red); margin-bottom: 14px; }
.splash .tag small { display: block; font: 500 16px/1.4 var(--body); color: #ddd3c8; margin-top: 12px; }
.splash .character { position: absolute; left: 50%; transform: translateX(-50%); bottom: 150px; width: min(470px, 118%); }
.splash .bottom { position: absolute; left: 16px; right: 16px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 2; }
.login-pad { padding-top: 10px; }
.login-pad .btn { justify-content: flex-start; min-height: 60px; font-size: 18px; }
.login-pad .btn.soon { opacity: .5; }
.login-pad .btn small { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--muted); }
.digits { position: relative; display: flex; gap: 8px; margin: 26px 0 14px; }
.digits span { flex: 1; height: 60px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); display: grid; place-items: center; font: 700 26px var(--body); font-variant-numeric: tabular-nums; }
.digits span.on { border-color: var(--red-2); box-shadow: 0 0 0 1px #b3202a88; }
.digits.bad span { border-color: #ff6b6b; }
.digits input { position: absolute; inset: 0; opacity: 0; width: 100%; font-size: 16px; }
.privacy { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* запись */
.steps { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 8px 0 4px; flex-wrap: wrap; }
.steps b { background: var(--red); color: #fff; padding: 3px 8px; border-radius: 6px; font-weight: 600; }
.pick { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 14px; margin-top: 10px; min-height: 64px; }
.pick img, .pick .av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; }
.pick .grow { flex: 1; min-width: 0; }
.pick .price { font-family: var(--head); font-weight: 900; font-size: 18px; white-space: nowrap; }
.pick.on { border-color: var(--red-2); box-shadow: 0 0 0 1px #b3202a88; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 600; font-size: 15px; }
.chip.on { background: var(--red); border-color: var(--red-2); }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; width: 62px; height: 72px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.day b { font: 900 22px var(--head); font-variant-numeric: tabular-nums; }
.day span { font-size: 13px; color: var(--muted); text-transform: uppercase; }
.day.on { background: var(--red); border-color: var(--red-2); }
.day.on span { color: #fff; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { min-height: 48px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.slot.on { background: var(--red); border-color: var(--red-2); }
.group { margin: 16px 0 8px; font-size: 14px; color: var(--muted); }
/* Календарь дат записи (14.11.2026): лента дней осталась, добавлен месяц со свободными сменами */
.cal { margin-top: 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.cal-head b { font: 900 20px var(--head); font-variant-numeric: tabular-nums; }
.cal-arrow { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 24px; line-height: 1; }
.cal-arrow:disabled { opacity: .35; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 12px; color: var(--muted); text-transform: uppercase; padding: 2px 0 6px; }
.cal-day { min-height: 44px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; position: relative; }
.cal-day.free { border-color: var(--line-2); background: var(--surface); color: var(--text); font-weight: 700; }
.cal-day.free:after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--red-2); }
.cal-day.on { background: var(--red); border-color: var(--red-2); color: #fff; }
.cal-day.on:after { display: none; }
.cal-day.now { outline: 1px solid var(--muted); outline-offset: -1px; }
.cal-day:disabled { opacity: .3; }
.cal-legend { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red-2); flex: none; }
.cal-empty { margin-top: 10px; padding: 20px 16px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.cal-empty b { font: 900 19px var(--head); }
/* Статус гостя и прогресс до следующего (ТЗ задачи 2) */
.status { padding: 14px 16px; }
.status-top { display: flex; align-items: center; gap: 8px; }
.status-top b { font: 900 20px var(--head); flex: 1; }
.bar { height: 6px; margin-top: 10px; border-radius: 3px; background: #ffffff14; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--red-2); }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.summary .k { color: var(--muted); }
.ok-mark { width: 96px; height: 96px; margin: 36px auto 18px; border-radius: 50%; border: 2px solid var(--red-2); display: grid; place-items: center; box-shadow: 0 0 0 8px #b3202a22; }
.ok-mark svg { width: 48px; height: 48px; stroke: #fff; stroke-width: 3; fill: none; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s .15s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* визиты */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.seg button { min-height: 46px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 700; }
.seg button.on { background: var(--red); border-color: var(--red-2); }
.visit { text-align: center; padding: 22px 16px; }
.visit .huge { margin: 6px 0; }
.visit .row2, .visit .btn { margin-top: 12px; }
.stars { display: flex; gap: 6px; margin: 6px 0 12px; }
.stars button { width: 44px; height: 44px; border: 0; background: none; font-size: 32px; color: #5a5450; padding: 0; line-height: 1; }
.stars button.on { color: var(--gold); }
textarea { width: 100%; min-height: 80px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); padding: 12px; font-size: 16px; resize: vertical; }
input.field { width: 100%; height: 54px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); padding: 0 14px; font-size: 16px; }

/* бонусы */
.balance { text-align: center; padding: 26px 16px; }
.balance .huge { color: var(--text); }
.code-box { display: flex; align-items: center; gap: 10px; border: 1px dashed var(--line-2); border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-family: var(--head); font-weight: 900; font-size: 20px; letter-spacing: 1px; }
.code-box button { margin-left: auto; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; text-align: center; }
.levels div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 6px; }
.levels b { display: block; font: 900 20px var(--head); }
.levels span { font-size: 12px; color: var(--muted); }
.plus { color: var(--ok); }

/* профиль */
.me { display: flex; align-items: center; gap: 14px; }
.me img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 2px solid var(--red-2); }

/* чат */
.msgs { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.msg { max-width: 82%; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); overflow-wrap: anywhere; }
.msg.me { align-self: flex-end; background: var(--red-dark); }
.msg small { display: block; font-size: 12px; color: #ffffffaa; margin-top: 4px; text-align: right; }
.chat-form { position: fixed; left: 0; right: 0; bottom: var(--nav-h); z-index: 9; background: #111; border-top: 1px solid var(--line); padding: 10px 16px; }
.chat-form form { max-width: 448px; margin: 0 auto; display: flex; gap: 8px; }
.chat-form input { flex: 1; min-width: 0; height: 48px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); padding: 0 14px; font-size: 16px; }
.chat-form button { width: 52px; border-radius: 10px; border: 0; background: var(--red); }

/* меню, панель, тост */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; height: var(--nav-h); padding: 6px 6px env(safe-area-inset-bottom); background: #111; border-top: 1px solid #55504b; display: flex; justify-content: center; }
.nav-in { display: flex; width: 100%; max-width: 480px; }
.nav button { flex: 1; min-width: 0; border: 0; background: none; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 600 12px/1 var(--body); color: #e3dcd2; position: relative; }
.nav button.on { background: var(--red-dark); color: #fff; }
.nav .pill { position: absolute; top: 4px; right: calc(50% - 22px); }
.sheet { position: fixed; inset: 0; z-index: 30; background: #000a; display: flex; align-items: flex-end; justify-content: center; }
.sheet .in { width: 100%; max-width: 480px; background: #1a1918; border-top: 1px solid var(--line-2); border-radius: 16px 16px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); animation: up .2s ease-out; }
.sheet .chips { flex-wrap: wrap; overflow: visible; margin: 12px 0; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(var(--nav-h) + 14px); z-index: 40; max-width: 448px; margin: 0 auto; padding: 14px 16px; border-radius: 12px; background: #f1ece2; color: #111; font-weight: 600; box-shadow: 0 10px 30px #000a; }
#ownerBar { max-width: 480px; margin: 0 auto; padding: 8px 16px; font-size: 13px; color: #111; background: var(--gold); }
#ownerBar form { display: flex; gap: 6px; margin-top: 6px; }
#ownerBar input { flex: 1; min-width: 0; height: 36px; border-radius: 8px; border: 1px solid #0004; padding: 0 8px; color: #111; background: #fff; }
#ownerBar button { height: 36px; border-radius: 8px; border: 0; padding: 0 10px; background: #111; color: #fff; }
.skel { height: 90px; border-radius: 12px; margin-top: 12px; background: linear-gradient(90deg, #1a1918, #24211f, #1a1918); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- орнаменты (12.11.2026: «верните кибер») ---------- */
/* фон всех экранов: вышивка + плата, по краям — полосы-обереги */
#view:before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .14;
  background: url(/app2/img/orn-tile.svg) center top / 192px 192px; }
#view:after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .4;
  background: url(/app2/img/orn-band.svg) left 2px top / 14px 28px repeat-y, url(/app2/img/orn-band.svg) right 2px top / 14px 28px repeat-y; }
#view:not(.bare) { padding-left: 22px; padding-right: 22px; }
/* красное свечение за шапкой */
#view:not(.bare) { background: radial-gradient(ellipse 70% 260px at 85% 0, #5a161c66, transparent 70%); }
/* уголки-стежки на карточках */
.card:before, .card:after, .tile:before, .tile:after, .pick.on:before, .pick.on:after { content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none;
  background: url(/app2/img/orn-corner.svg) 0 0 / 18px 18px no-repeat; opacity: .9; }
.card:before, .tile:before, .pick.on:before { top: -1px; left: -1px; }
.card:after, .tile:after, .pick.on:after { bottom: -1px; right: -1px; transform: rotate(180deg); }
.tile, .pick { position: relative; }
/* главная карточка (ближайший визит, баланс, отзыв): обереги по бокам, как на концепции */
.card.red { background: url(/app2/img/orn-band.svg) left 6px top / 14px 28px repeat-y, url(/app2/img/orn-band.svg) right 6px top / 14px 28px repeat-y, #1a1918f2;
  padding-left: 30px; padding-right: 30px; }
/* разделитель-вышивка под заголовками разделов */
h2 { padding-bottom: 14px; background: url(/app2/img/orn-divider.svg) left bottom / 220px 12px no-repeat; }
/* потёртая краска на красных кнопках и выбранных элементах */
.btn.primary, .chip.on, .day.on, .slot.on, .seg button.on, .nav button.on { background-image: url(/app2/img/concrete.webp); background-size: 160px; background-blend-mode: soft-light; }
/* меню: строка стежков над вкладками */
.nav { border-top: 0; }
.nav:before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; opacity: .8;
  background: repeating-linear-gradient(90deg, var(--red) 0 4px, transparent 4px 8px, var(--red) 8px 10px, transparent 10px 20px); }
.nav:after { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 1px solid #55504b; }
/* вход и заставка */
.splash:after { content: ""; position: absolute; inset: 0; opacity: .1; background: url(/app2/img/orn-tile.svg) center / 192px; pointer-events: none; }
.splash .orn { width: 200px; opacity: .9; }
.hero .bandline { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; z-index: 2; opacity: .7; background: url(/app2/img/orn-divider.svg) center / 260px 12px repeat-x; }
/* технические метки — кибер */
.code-tag { position: relative; z-index: 1; font: 600 11px/1 var(--body); letter-spacing: 2px; color: #ff6f78; text-transform: uppercase; margin: 2px 0 6px; }
.code-tag:before { content: "// "; color: var(--muted); }

/* щит «М» вышивкой: водяной знак на пустых экранах */
.card.empty { background: url(/app2/img/orn-crest.svg) center 20px / 40px 51px no-repeat, #1a1918ee; padding-top: 84px; }

/* приглашения: ссылка, кнопки мессенджеров, друзья 1-го и 2-го уровня, экран друга */
.code-box .url { overflow-wrap: anywhere; font: 600 14px/1.3 var(--body); letter-spacing: 0; }
.share-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.share-row .btn { min-height: 46px; font-size: 14px; padding: 0 6px; margin-top: 0; }
.levels.four { grid-template-columns: repeat(4, 1fr); }
.levels.four b { font-size: 18px; }
.levels.four span { font-size: 11px; line-height: 1.2; display: block; }
.friend { padding: 2px 0; }
.friend .av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; background: var(--red-dark); border: 1px solid var(--red-2); }
.lvl2 { margin: 10px 0 0 19px; padding-left: 20px; border-left: 1px dashed var(--red-2); }
.lvl2 .list-row { padding: 8px 0; }
.sep { height: 14px; margin: 12px 0; background: url(/app2/img/orn-divider.svg) center / 200px 12px no-repeat; opacity: .7; }
.splash .invited { position: absolute; left: 16px; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 3; padding: 14px 16px; border: 1px solid var(--red-2); border-radius: 12px; background: #111e; }
.splash .invited b { display: block; font: 900 20px/1.2 var(--head); margin: 4px 0; }
.splash .invited span:last-child { color: var(--muted); font-size: 14px; }
.qr { width: min(280px, 78vw); margin: 14px auto; padding: 10px; border-radius: 12px; background: #f1ece2; border: 2px solid var(--red-2); box-shadow: 0 0 0 6px #b3202a22; }
.qr svg { display: block; width: 100%; height: auto; }

/* фирменный логотип из исходного PDF (щит + надпись), перекрашен под тёмный фон */
.hero .hi .logo { height: 42px; width: auto; filter: drop-shadow(0 2px 6px #000); }
.splash .mark img { width: 250px; height: auto; filter: drop-shadow(0 2px 8px #000); }
#ownerBar #guestLink { display: block; margin: 8px 0 4px; }
#ownerBar #guestLink button { width: 100%; height: 44px; font-weight: 700; }
#ownerBar #guestStatus { font-weight: 600; }
