/* Город 926: стили клиентской части. Палитра клуба, стекло и клавиши в манере Оперативного штаба. */

:root {
  --navy: #07277C;
  --navy-d: #051C5C;
  --ink: #0B1B4D;
  --lilac: #6C7FC4;
  --orange: #F55100;
  --lime: #CDDE5E;
  --milk: #FBF8F3;
  --paper: #FFFDF9;
  --mute: rgba(11, 27, 77, .62);
  --mute2: rgba(11, 27, 77, .45);
  --line: rgba(7, 39, 124, .08);
  --line2: rgba(7, 39, 124, .15);
  --glass: rgba(255, 255, 255, .66);
  --glass2: rgba(255, 255, 255, .82);
  --sh: 0 8px 24px rgba(7, 39, 124, .08);
  --sh2: 0 18px 48px rgba(7, 39, 124, .16);
  --warm: #FFD36B;
  --dark-win: #1B2F6E;
  --red: #C2412D;
  --head: 'Playfair Display', Georgia, serif;
  --text: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --num: 'Montserrat', 'Golos Text', system-ui, sans-serif;
  --r: 12px;
  --r2: 16px;
  --side: 248px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: rgba(7, 39, 124, .25) transparent; scrollbar-width: thin; }
html.lock { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--milk);
  font: 400 16px/1.5 var(--text); -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 520px at 100% -10%, rgba(108, 127, 196, .14), transparent 60%),
    radial-gradient(700px 480px at -10% 30%, rgba(205, 222, 94, .12), transparent 60%),
    radial-gradient(800px 600px at 60% 110%, rgba(245, 81, 0, .05), transparent 60%);
  background-attachment: fixed;
}
h1, h2, h3 { font-family: var(--head); font-weight: 700; color: var(--navy); margin: 0; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
p { margin: 0 0 10px; }
a { color: var(--navy); text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: rgba(205, 222, 94, .7); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; border-radius: 10px; }
::placeholder { color: rgba(11, 27, 77, .38); opacity: 1; }

/* Свои полосы прокрутки везде, включая шторки и модалки */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(7, 39, 124, .22); border-radius: 9px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(7, 39, 124, .38); }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }

.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.muted { color: var(--mute); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.gap16 { gap: 16px; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.hr { height: 1px; background: var(--line2); margin: 16px 0; border: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--c, var(--lilac)); box-shadow: 0 0 0 2px rgba(255, 255, 255, .8); }

/* ---------- экран загрузки ---------- */
.splash { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--milk); }
.splash-logo { width: 88px; height: 88px; animation: breathe 1.8s ease-in-out infinite; }
.splash-name { font: 700 26px var(--head); color: var(--navy); }
.splash-sub { font-size: 14px; color: var(--mute); min-height: 21px; }
@keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* ---------- стекло и карточки ---------- */
.glass, .card {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r2);
  backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), var(--sh);
}
.card { padding: 18px; }
.card.tight { padding: 12px 14px; }
.card + .card { margin-top: 14px; }
.stats > .card, .ev-grid > .card, .tariffs > .card, .perks > .card, .team > .card, .dcards > *, .skills > .card { margin-top: 0; }
.sec { margin-top: 28px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.sec-head h2 { font-size: 22px; }
.sec-head .link { font-size: 14px; color: var(--lilac); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.page-head { margin: 4px 0 18px; }
.page-head h1 { font-size: 30px; }
.page-head .sub { color: var(--mute); margin-top: 6px; max-width: 640px; }
.kicker { font: 700 11.5px var(--num); letter-spacing: .14em; text-transform: uppercase; color: var(--lilac); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r);
  font: 600 15px var(--text); white-space: nowrap; user-select: none;
  background: var(--glass2); border: 1px solid var(--line2); color: var(--navy);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 2px 6px rgba(7, 39, 124, .06);
  transition: transform .08s, box-shadow .15s, background .15s, border-color .15s;
  text-decoration: none;
}
.btn:hover { border-color: rgba(7, 39, 124, .28); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.block { display: flex; width: 100%; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--navy); }
.btn.ghost:hover { background: rgba(7, 39, 124, .06); }
.btn.navy { background: linear-gradient(180deg, #123A9E, var(--navy)); color: #fff; border-color: transparent; box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 14px rgba(7, 39, 124, .22); }
.btn.danger { color: var(--red); border-color: rgba(194, 65, 45, .3); }
.btn.danger:hover { background: rgba(194, 65, 45, .06); }
.btn:disabled, .btn.off { opacity: .5; transform: none; }
/* Главная оранжевая клавиша: одна на экран, проседает при нажатии */
.btn.key {
  position: relative; min-height: 52px; padding: 0 26px; border-radius: 14px; font: 700 16px var(--text); letter-spacing: .01em;
  color: #fff; border: 0; background: linear-gradient(180deg, #FF6A1F, var(--orange));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 0 #C84300, 0 6px 14px rgba(245, 81, 0, .28);
  transition: transform .07s, box-shadow .07s;
}
.btn.key::before { content: ''; position: absolute; inset: 1px 1px 50% 1px; border-radius: 13px 13px 6px 6px; background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0)); pointer-events: none; }
.btn.key:hover { filter: brightness(1.04); }
.btn.key:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 0 #C84300, 0 2px 6px rgba(245, 81, 0, .25); }
.btn.key:disabled { filter: grayscale(.4); opacity: .6; }
.btn.lime { background: var(--lime); color: var(--ink); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 0 #A9B843; }
.btn.lime:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 0 #A9B843; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--navy); flex: none; }
.icon-btn:hover { background: rgba(7, 39, 124, .06); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.sm { width: 36px; height: 36px; }
.icon-btn.sm svg { width: 18px; height: 18px; }
.badge { position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--orange); color: #fff; font: 700 11px/18px var(--num); text-align: center; box-shadow: 0 0 0 2px var(--milk); }
.pen { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; color: var(--lilac); flex: none; }
.pen:hover { background: rgba(108, 127, 196, .12); color: var(--navy); }
.pen svg { width: 17px; height: 17px; }

/* ---------- метки ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px; border-radius: 999px; font: 600 12.5px var(--num); letter-spacing: .01em; background: rgba(7, 39, 124, .07); color: var(--navy); white-space: nowrap; }
.pill.lime { background: var(--lime); color: var(--ink); }
.pill.navy { background: var(--navy); color: #fff; }
.pill.orange { background: rgba(245, 81, 0, .12); color: #B53C00; }
.pill.grey { background: rgba(11, 27, 77, .06); color: var(--mute); }
.pill.red { background: rgba(194, 65, 45, .1); color: var(--red); }
.pill.lilac { background: rgba(108, 127, 196, .16); color: var(--navy); }

/* ---------- поля ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span, .label { display: block; font-size: 13.5px; font-weight: 600; color: var(--mute); margin-bottom: 6px; }
.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r);
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .85); color: var(--ink);
  font: 400 16px/1.4 var(--text); transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
textarea.input { min-height: 96px; resize: vertical; }
.input:focus { border-color: var(--lilac); box-shadow: 0 0 0 4px rgba(108, 127, 196, .18); }
.input.big { font: 600 20px var(--text); min-height: 56px; }
.input.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.input-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer; }
.input-btn svg { width: 18px; height: 18px; color: var(--lilac); }
.err { color: var(--red); font-size: 14px; min-height: 20px; margin-top: 6px; }
.hint { font-size: 13.5px; color: var(--mute); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two > * { min-width: 0; }
@media (max-width: 760px) { .two.stack-m { grid-template-columns: 1fr; } }
.three { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }

/* Переключатель */
.switch, .check { text-align: left; }
.switch { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; user-select: none; }
.switch i { position: relative; width: 46px; height: 28px; border-radius: 14px; background: rgba(7, 39, 124, .16); flex: none; transition: background .2s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(7, 39, 124, .25); transition: transform .2s; }
.switch.on i { background: var(--navy); }
.switch.on i::after { transform: translateX(18px); background: var(--lime); }
.switch span { font-size: 15px; }

/* Свой чекбокс */
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check i { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line2); background: #fff; flex: none; display: flex; align-items: center; justify-content: center; }
.check.on i { background: var(--navy); border-color: var(--navy); }
.check.on i::after { content: ''; width: 10px; height: 5px; border-left: 2.5px solid var(--lime); border-bottom: 2.5px solid var(--lime); transform: rotate(-45deg) translate(1px, -1px); }

/* Чипы */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--glass2); border: 1px solid var(--line2); font: 600 14px var(--text); color: var(--navy); white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: rgba(7, 39, 124, .3); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.on .dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.chip .cnt { font: 700 12px var(--num); opacity: .7; }

/* Сегменты (три состояния и т.п.) */
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(7, 39, 124, .07); gap: 2px; }
.seg button { min-height: 38px; padding: 0 12px; border-radius: 9px; font: 600 13.5px var(--text); color: var(--mute); white-space: nowrap; }
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 2px 6px rgba(7, 39, 124, .12); }
.seg button.on.yes { background: var(--lime); color: var(--ink); }
.seg button.on.no { background: #fff; color: var(--red); }

/* ---------- подсказка ---------- */
.tip {
  position: fixed; z-index: 1000; max-width: 290px; padding: 9px 12px; border-radius: 10px; pointer-events: none;
  background: rgba(11, 27, 77, .94); color: #fff; font: 400 13.5px/1.4 var(--text);
  box-shadow: 0 10px 28px rgba(7, 39, 124, .28); backdrop-filter: blur(8px);
  animation: tipIn .12s ease-out;
}
@keyframes tipIn { from { opacity: 0; transform: translateY(3px); } }

/* ---------- тосты ---------- */
.toasts { position: fixed; z-index: 950; left: 50%; transform: translateX(-50%); bottom: calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(92vw, 440px); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px 12px 16px; border-radius: 14px;
  background: rgba(11, 27, 77, .95); color: #fff; font-size: 15px; box-shadow: var(--sh2); animation: toastIn .2s ease-out;
}
.toast.bad { background: #7A2416; }
.toast .grow { line-height: 1.35; }
.toast button { color: var(--lime); font-weight: 700; min-height: 36px; padding: 0 6px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- модальные окна ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 800; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(11, 27, 77, .32); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .18s; }
.modal {
  width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; padding: 22px; border-radius: 20px;
  background: rgba(255, 253, 249, .96); border: 1px solid var(--line); box-shadow: var(--sh2); animation: pop .2s ease-out;
}
.modal.wide { max-width: 640px; }
.modal h2 { font-size: 22px; margin-bottom: 10px; }
.modal p { color: var(--mute); }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* Календарь-попап */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font: 700 16px var(--text); text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid span { text-align: center; font: 600 11.5px var(--num); color: var(--mute2); text-transform: uppercase; padding: 4px 0; }
.cal-grid button { height: 44px; border-radius: 10px; font: 600 15px var(--num); font-variant-numeric: tabular-nums; }
.cal-grid button:hover { background: rgba(7, 39, 124, .06); }
.cal-grid button.out { color: rgba(11, 27, 77, .3); }
.cal-grid button.today { box-shadow: inset 0 0 0 1.5px var(--lilac); }
.cal-grid button.on { background: var(--navy); color: #fff; }

/* ---------- каркас ---------- */
.shell { min-height: 100vh; }
.side { display: none; }
.mob-head {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px;
  padding: calc(8px + var(--safe-t)) 12px 8px 16px; background: rgba(251, 248, 243, .82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.mob-head img { width: 32px; height: 32px; }
.mob-head b { font: 700 18px var(--head); color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mob-head .mode button { padding: 0 9px; min-height: 34px; }
@media (max-width: 420px) { .mob-head .mode + .icon-btn { margin-left: -4px; } .mob-head:has(.mode) b { display: none; } .mob-head:has(.mode) .mode { margin-left: auto; } }
.main { padding: 18px 16px calc(100px + var(--safe-b)); max-width: 1100px; margin: 0 auto; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; padding: 6px 6px calc(6px + var(--safe-b));
  background: rgba(255, 253, 249, .88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line);
}
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; border-radius: 12px; color: var(--mute2); font: 600 11.5px var(--text); }
.tabbar button svg { width: 24px; height: 24px; }
.tabbar button.on { color: var(--navy); }
.tabbar button.on svg { filter: drop-shadow(0 2px 4px rgba(7, 39, 124, .2)); }
.tabbar button.on::after { content: ''; width: 18px; height: 3px; border-radius: 2px; background: var(--orange); margin-top: 1px; }
.mode { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(7, 39, 124, .07); }
.mode button { min-height: 36px; padding: 0 12px; border-radius: 9px; font: 600 13px var(--text); color: var(--mute); }
.mode button.on { background: var(--navy); color: #fff; }

@media (min-width: 761px) {
  .side {
    display: flex; flex-direction: column; gap: 4px; position: fixed; top: 0; bottom: 0; left: 0; width: var(--side); z-index: 40;
    padding: 20px 14px; background: rgba(255, 255, 255, .55); border-right: 1px solid var(--line);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 14px; }
  .brand img { width: 40px; height: 40px; }
  .brand b { display: block; font: 700 19px var(--head); color: var(--navy); }
  .brand span { display: block; font-size: 12.5px; color: var(--mute); }
  .side .mode { margin: 0 4px 12px; }
  .side .mode button { flex: 1; }
  .nav { position: relative; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 12px; color: var(--mute); font-weight: 600; font-size: 15px; text-align: left; }
  .nav svg { width: 21px; height: 21px; flex: none; }
  .nav:hover { background: rgba(7, 39, 124, .05); color: var(--navy); }
  .nav.on { background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(7, 39, 124, .2); }
  .nav .badge { position: static; margin-left: auto; box-shadow: none; }
  .side-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
  .side-foot b { display: block; color: var(--ink); font-size: 14px; }
  .shell > .body { margin-left: var(--side); }
  .mob-head, .tabbar { display: none; }
  .main { padding: 32px 36px 60px; }
  .toasts { bottom: 28px; left: calc(50% + var(--side) / 2); }
  h1 { font-size: 36px; }
  .page-head h1 { font-size: 36px; }
}
@media (max-height: 640px) and (min-width: 761px) {
  .side { padding: 12px 12px; gap: 2px; }
  .nav { min-height: 40px; }
  .brand { padding-bottom: 8px; }
}

/* ---------- шторки (справа, раздел остаётся под ними) ---------- */
.sheets-bg { position: fixed; inset: 0; z-index: 300; background: rgba(11, 27, 77, .26); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: fade .2s; }
.sheet {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 310; width: min(580px, 100vw); display: flex; flex-direction: column;
  background: var(--milk); border-left: 1px solid var(--line2); box-shadow: -20px 0 60px rgba(7, 39, 124, .18);
  animation: slideIn .26s cubic-bezier(.2, .8, .2, 1); transition: transform .25s, filter .25s;
}
.sheet.wide { width: min(680px, 100vw); }
.sheet.under { transform: translateX(-36px); filter: brightness(.96); }
.sheet.under::after { content: ''; position: absolute; inset: 0; background: rgba(11, 27, 77, .05); }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: calc(10px + var(--safe-t)) 10px 10px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .6); backdrop-filter: blur(12px); }
.sheet-head .t { flex: 1; min-width: 0; font: 700 18px var(--head); color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px calc(28px + var(--safe-b)); }
.sheet-foot { padding: 12px 18px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .7); display: flex; gap: 10px; flex-wrap: wrap; }
@keyframes slideIn { from { transform: translateX(100%); } }
@media (max-width: 760px) {
  .sheet, .sheet.wide { width: 100vw; border-left: 0; background: var(--milk); }
  .sheet.under { transform: translateX(-12px); }
}

/* ---------- загрузка: афиши проявляются ---------- */
.develop { border-radius: var(--r2); background: linear-gradient(135deg, rgba(108, 127, 196, .16), rgba(205, 222, 94, .14), rgba(245, 81, 0, .08)); background-size: 300% 300%; animation: develop 2.4s ease-in-out infinite; }
.develop.poster { aspect-ratio: 4 / 5; }
.develop.line { height: 18px; border-radius: 9px; margin: 10px 0; }
.develop.blk { height: 120px; }
@keyframes develop { 0% { background-position: 0% 50%; opacity: .55; } 50% { background-position: 100% 50%; opacity: 1; } 100% { background-position: 0% 50%; opacity: .55; } }
.loading-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

/* ---------- пустые состояния ---------- */
.empty { text-align: center; padding: 36px 18px; color: var(--mute); }
.empty .ill { width: 92px; height: 92px; margin: 0 auto 12px; }
.empty b { display: block; font: 700 21px var(--head); color: var(--navy); margin-bottom: 6px; }
.empty .btn { margin-top: 14px; }

/* ---------- афиша ---------- */
.poster { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--c, var(--lilac)); isolation: isolate; }
.poster img { width: 100%; height: 100%; object-fit: cover; animation: reveal .6s ease-out; }
@keyframes reveal { from { opacity: 0; filter: blur(8px) saturate(.6); } }
.poster-ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; color: #fff;
  background:
    radial-gradient(120% 70% at 85% 0%, rgba(255, 255, 255, .32), transparent 55%),
    linear-gradient(160deg, color-mix(in srgb, var(--c) 92%, #fff), color-mix(in srgb, var(--c) 70%, var(--navy)));
}
.poster-ph::before { content: '926'; position: absolute; top: 10px; right: 12px; font: 800 13px var(--num); letter-spacing: .1em; opacity: .7; }
.poster-ph b { font: 700 clamp(17px, 4.6vw, 24px)/1.1 var(--head); text-shadow: 0 1px 12px rgba(7, 39, 124, .25); }
.poster-ph span { font: 700 11px var(--num); text-transform: uppercase; letter-spacing: .12em; opacity: .85; margin-bottom: 6px; }
.poster.light .poster-ph { color: var(--ink); }
.poster-ph b { overflow-wrap: anywhere; }
.poster.sm .poster-ph { padding: 10px; }
.poster.sm .poster-ph b { font-size: 14px; }
.poster.sm .poster-ph span, .poster.sm .poster-ph::before { display: none; }
.poster.cancelled { filter: grayscale(1); opacity: .6; }
.dplate { position: absolute; left: 10px; top: 10px; z-index: 2; display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 6px 8px 5px; border-radius: 12px; background: rgba(255, 253, 249, .94); color: var(--navy); box-shadow: 0 4px 12px rgba(7, 39, 124, .18); }
.dplate b { font: 800 24px/1 var(--num); font-variant-numeric: tabular-nums; }
.dplate span { font: 700 10.5px var(--num); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }

.ev-grid { display: grid; gap: 14px; }
.ev-card { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 10px; text-align: left; width: 100%; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.ev-card:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), var(--sh2); }
.ev-card .poster { border-radius: 12px; }
.ev-card .poster .dplate { transform: scale(.82); transform-origin: top left; left: 6px; top: 6px; }
.ev-card .poster-ph b { font-size: 14px; }
.ev-card .poster-ph::before, .ev-card .poster-ph span { display: none; }
.ev-card .ev-meta.top { flex-wrap: nowrap; min-width: 0; }
.ev-card .ev-meta.top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ev-card .ev-meta.top .t { flex: none; }
.ev-card .info { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 2px 4px 2px 0; }
.ev-card h3 { font-size: 18px; line-height: 1.2; }
.ev-meta { font-size: 13.5px; color: var(--mute); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ev-meta b { color: var(--ink); font-weight: 600; }
.ev-card .win-wrap { margin-top: auto; padding-top: 6px; }
.ev-card.cancelled { opacity: .62; }
.ev-card.cancelled h3 { text-decoration: line-through; text-decoration-thickness: 1px; }
@media (min-width: 900px) {
  .ev-grid.posters { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .ev-grid.posters .ev-card { grid-template-columns: 1fr; padding: 10px 10px 14px; }
  .ev-grid.posters .ev-card .poster .dplate { transform: none; left: 10px; top: 10px; }
  .ev-grid.posters .ev-card .poster-ph b { font-size: 22px; }
  .ev-grid.posters .ev-card .poster-ph::before { display: block; }
  .ev-grid.posters .ev-card .poster-ph span { display: block; }
  .ev-grid.posters .ev-card .info { padding: 2px 6px; }
}
.day-head { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 12px; scroll-margin-top: 80px; }
.day-head:first-child { margin-top: 6px; }
.day-head b { font: 700 21px var(--head); color: var(--navy); }
.day-head span { font-size: 14px; color: var(--mute); }

/* Большая афиша на главной */
.hero-ev { display: grid; grid-template-columns: 1fr; gap: 0; overflow: hidden; padding: 0; cursor: pointer; text-align: left; width: 100%; }
.hero-ev .poster { border-radius: 0; aspect-ratio: 16 / 11; }
.hero-ev .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.hero-ev h3 { font-size: 24px; }
@media (min-width: 761px) {
  .hero-ev { grid-template-columns: 300px 1fr; }
  .hero-ev .poster { aspect-ratio: 4 / 5; }
  .hero-ev .body { padding: 24px 26px; justify-content: center; }
  .hero-ev h3 { font-size: 30px; }
}

/* ---------- окошки: шкала мест ---------- */
.win-row { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-radius: 9px; background: linear-gradient(180deg, #0E2566, #0A1D52); width: max-content; max-width: 100%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.win { position: relative; width: 12px; height: 15px; border-radius: 2.5px 2.5px 1.5px 1.5px; background: var(--dark-win); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.win::before { content: ''; position: absolute; left: 50%; top: 2px; bottom: 2px; width: 1px; background: rgba(0, 0, 0, .2); transform: translateX(-50%); }
.win::after { content: ''; position: absolute; left: 2px; right: 2px; top: 45%; height: 1px; background: rgba(0, 0, 0, .2); }
.win.lit { background: linear-gradient(180deg, #FFE08F, var(--warm)); box-shadow: 0 0 6px rgba(255, 211, 107, .65); }
.win.me { background: linear-gradient(180deg, #FF8A45, var(--orange)); box-shadow: 0 0 8px rgba(245, 81, 0, .75); animation: litMe .5s ease-out; }
.win.blink { animation: lastWin 2.2s ease-in-out infinite; }
@keyframes lastWin { 0%, 100% { background: var(--dark-win); } 50% { background: #3C5AA8; box-shadow: 0 0 6px rgba(205, 222, 94, .5); } }
@keyframes litMe { from { transform: scale(1.5); filter: brightness(1.6); } }
.win-row.big { gap: 6px; padding: 9px; border-radius: 12px; }
.win-row.big .win { width: 18px; height: 23px; border-radius: 4px 4px 2px 2px; }
.win-cap { font: 600 13px var(--num); font-variant-numeric: tabular-nums; color: var(--navy); margin-top: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.win-cap.free { color: var(--ink); }
.win-cap .ok { background: var(--lime); color: var(--ink); padding: 1px 8px; border-radius: 6px; }
.win-cap .full { color: #B53C00; }
.win-free svg { width: 16px; height: 16px; flex: none; }
.win-free { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 8px; background: var(--navy); color: var(--lime); font: 700 13px var(--num); }

/* ---------- шторка мероприятия ---------- */
.ev-sheet .poster { width: min(100%, 360px, 40vh); margin: 0 auto; border-radius: 16px; box-shadow: var(--sh2); }
.sheet .paybar { bottom: 0; }
.ev-sheet .poster-wrap { position: relative; display: flex; justify-content: center; }
.ev-title { font-size: 28px; margin: 18px 0 8px; }
.ev-facts { display: grid; gap: 8px; margin: 10px 0 16px; }
.fact { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.fact svg { width: 20px; height: 20px; color: var(--lilac); flex: none; margin-top: 2px; }
.fact b { font-weight: 600; }
.ev-actions { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.ev-actions .pair { display: flex; gap: 10px; flex-wrap: wrap; }
.ev-actions .pair > * { flex: 1; }
.in-list { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 14px; background: var(--navy); color: var(--lime); font: 700 16px var(--text); }
.in-list svg { width: 20px; height: 20px; }
.bench { padding: 14px 16px; border-radius: 14px; background: rgba(108, 127, 196, .14); border: 1px dashed rgba(7, 39, 124, .25); color: var(--ink); }
.bench b { font-family: var(--head); font-size: 18px; color: var(--navy); display: block; margin-bottom: 4px; }
.note-plate { padding: 12px 14px; border-radius: 12px; background: rgba(7, 39, 124, .06); color: var(--ink); font-size: 15px; }
.note-plate.warn { background: rgba(245, 81, 0, .08); }
.desc { white-space: pre-wrap; font-size: 16px; line-height: 1.6; }

/* Штамп района */
.stamp-layer { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 3; }
.stamp-svg { width: 62%; max-width: 230px; transform: rotate(-12deg); opacity: .94; filter: drop-shadow(0 2px 6px rgba(7, 39, 124, .18)); }
.stamp-svg.drop { animation: stamp .4s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes stamp { 0% { transform: rotate(-4deg) scale(1.7); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(-12deg) scale(1); opacity: .94; } }

/* ---------- главная ---------- */
.greet { margin: 2px 0 6px; }
.greet h1 { font-size: 30px; }
.reg-line { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; color: var(--mute); }
.reg-line b { color: var(--ink); font-weight: 600; }
.grace { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; background: rgba(245, 81, 0, .07); border: 1px solid rgba(245, 81, 0, .18); }
.grace p { margin: 0; flex: 1 1 240px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 18px; padding: 10px; }
.wday { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px; min-height: 76px; border-radius: 12px; transition: background .15s; }
.wday:hover { background: rgba(7, 39, 124, .05); }
.wday small { font: 700 11px var(--num); text-transform: uppercase; color: var(--mute2); letter-spacing: .05em; }
.wday b { font: 800 19px var(--num); font-variant-numeric: tabular-nums; color: var(--navy); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.wday.today b { box-shadow: inset 0 0 0 2px var(--navy); }
.wday.mine b { background: var(--orange); color: #fff; box-shadow: 0 4px 10px rgba(245, 81, 0, .3); }
.wday .dots { display: flex; gap: 3px; height: 7px; }
.wday .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.signs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.sign {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px 8px 12px; border-radius: 8px; text-align: left;
  background: var(--navy); color: #fff; box-shadow: inset 0 0 0 2px var(--navy), inset 0 0 0 3.5px rgba(255, 255, 255, .85), 0 4px 12px rgba(7, 39, 124, .2);
  font: 700 13.5px var(--num); letter-spacing: .06em; text-transform: uppercase; transition: transform .12s;
}
.sign:hover { transform: translateY(-1px); }
.sign .dot { width: 14px; height: 14px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.sign small { display: block; font: 500 11.5px var(--text); letter-spacing: 0; text-transform: none; opacity: .75; margin-top: 1px; }
.sign .n { margin-left: auto; font: 800 12px var(--num); color: var(--lime); }

/* ---------- паспорт ---------- */
.passport {
  position: relative; overflow: hidden; padding: 22px 20px 20px; border-radius: 10px 20px 20px 10px; color: #EEF1FF;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(108, 127, 196, .35), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 7px),
    linear-gradient(160deg, #0B3196, var(--navy) 55%, #041A55);
  box-shadow: inset 7px 0 0 rgba(0, 0, 0, .18), inset 9px 0 0 rgba(255, 255, 255, .06), 0 18px 40px rgba(7, 39, 124, .3);
}
.passport::before { content: 'ГОРОД 926 · ПАСПОРТ ЖИТЕЛЬНИЦЫ'; display: block; font: 700 10.5px var(--num); letter-spacing: .2em; color: var(--lime); opacity: .9; margin-bottom: 16px; }
.pp-top { display: flex; gap: 16px; align-items: center; }
.ava { position: relative; width: 92px; height: 112px; border-radius: 10px; overflow: hidden; flex: none; background: rgba(255, 255, 255, .1); border: 2px solid rgba(255, 255, 255, .7); display: flex; align-items: center; justify-content: center; font: 700 32px var(--head); color: #fff; }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava .up { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 0; font: 600 11px var(--text); background: rgba(4, 26, 85, .72); color: #fff; }
.pp-name { font: 700 26px/1.1 var(--head); color: #fff; }
.pp-since { font-size: 14px; opacity: .8; margin-top: 4px; }
.pp-stats { display: flex; gap: 18px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, .25); }
.pp-stats div { display: flex; flex-direction: column; }
.pp-stats b { font: 800 26px var(--num); color: var(--lime); font-variant-numeric: tabular-nums; }
.pp-stats span { font-size: 12.5px; opacity: .8; }
.stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; margin-top: 14px; }
@media (min-width: 640px) { .stamps { grid-template-columns: repeat(6, 1fr); } }
.dstamp { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12.5px; color: var(--mute); }
.dstamp .st { width: 78px; height: 78px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px dashed rgba(7, 39, 124, .25); color: rgba(7, 39, 124, .35); font: 700 8.5px var(--num); letter-spacing: .02em; text-transform: uppercase; padding: 6px; line-height: 1.2; overflow: hidden; overflow-wrap: anywhere; text-align: center; }
.dstamp.on { color: var(--ink); }
.dstamp.on .st { border: 3px solid var(--c); color: var(--c); box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4.5px var(--c); transform: rotate(var(--rot, -8deg)); background: color-mix(in srgb, var(--c) 8%, transparent); filter: saturate(1.1); }

/* Прописка как предмет */
.obj { position: relative; overflow: hidden; border-radius: 14px; padding: 20px; min-height: 170px; }
.obj .o-k { font: 700 11px var(--num); letter-spacing: .18em; text-transform: uppercase; }
.obj .o-t { font: 700 26px/1.1 var(--head); margin: 8px 0 12px; }
.obj .o-row { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.obj .o-row b { display: block; font: 700 17px var(--num); font-variant-numeric: tabular-nums; }
.obj-pass { color: #3E2A12; background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .22), transparent 40%), repeating-linear-gradient(90deg, rgba(110, 75, 30, .05) 0 1px, transparent 1px 4px), linear-gradient(140deg, #D9B98A, #C49A62); box-shadow: inset 0 0 0 1px rgba(80, 50, 15, .2), 0 10px 22px rgba(90, 60, 20, .22); }
.obj-pass::after { content: ''; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--milk); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .25); }
.obj-pass .o-k { color: #6B4A1F; }
.obj-form { color: var(--ink); background: repeating-linear-gradient(0deg, transparent 0 27px, rgba(7, 39, 124, .07) 27px 28px), linear-gradient(180deg, #FFFEFA, #F6F1E6); box-shadow: inset 0 0 0 1px rgba(7, 39, 124, .12), 0 10px 22px rgba(7, 39, 124, .1); border-radius: 4px 4px 14px 14px; }
.obj-form .o-k { color: var(--lilac); }
.obj-form .o-t { color: var(--navy); }
.obj-form::after { content: 'ВРЕМЕННАЯ'; position: absolute; right: -6px; top: 26px; transform: rotate(14deg); padding: 4px 10px; border: 2px solid rgba(245, 81, 0, .55); color: rgba(245, 81, 0, .65); font: 800 12px var(--num); letter-spacing: .15em; border-radius: 6px; }
.obj-plate {
  --sx: 30%; color: #13213F; border-radius: 10px;
  background: linear-gradient(115deg, transparent calc(var(--sx) - 18%), rgba(255, 255, 255, .75) var(--sx), transparent calc(var(--sx) + 18%)), linear-gradient(160deg, #E9ECF1, #B7BECB 45%, #DDE1E8 60%, #A3ABBA);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7), inset 0 0 0 4px rgba(19, 33, 63, .25), 0 12px 26px rgba(7, 39, 124, .25);
  animation: shine 5s ease-in-out infinite;
}
.obj-plate.tilt { animation: none; }
.obj-plate::before, .obj-plate::after { content: ''; position: absolute; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #8D95A6); box-shadow: 0 1px 1px rgba(0, 0, 0, .3); }
.obj-plate::before { left: 12px; } .obj-plate::after { right: 12px; }
.obj-plate .o-k { color: #3A4A6E; }
@keyframes shine { 0%, 100% { --sx: 10%; } 50% { --sx: 90%; } }
@property --sx { syntax: '<percentage>'; inherits: true; initial-value: 30%; }

/* ---------- тарифы ---------- */
.tariffs { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) { .tariffs { grid-template-columns: repeat(3, 1fr); } }
.tariff { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; text-align: left; width: 100%; transition: transform .15s, box-shadow .15s, border-color .15s; }
.tariff.sel { border: 2px solid var(--navy); box-shadow: 0 0 0 4px rgba(7, 39, 124, .08), var(--sh2); }
.tariff.sel::after { content: ''; position: absolute; top: 16px; right: 16px; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); box-shadow: inset 0 0 0 6px var(--navy), inset 0 0 0 12px var(--lime); }
.tariff.na { opacity: .5; cursor: default; }
.tariff .t-title { font: 700 22px var(--head); color: var(--navy); padding-right: 30px; }
.tariff .t-sub { font-size: 14px; color: var(--mute); }
.price { font: 800 30px var(--num); font-variant-numeric: tabular-nums; color: var(--navy); }
.price small { font: 600 14px var(--text); color: var(--mute); }
.feat { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; font-size: 14.5px; }
.feat li { position: relative; padding-left: 20px; }
.feat li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 0 1.5px var(--navy); }
.paybar { position: sticky; bottom: calc(76px + var(--safe-b)); z-index: 20; margin-top: 18px; padding: 12px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.paybar .grow { min-width: 180px; }
@media (min-width: 761px) { .paybar { bottom: 16px; } }

/* ---------- гостья ---------- */
.guest-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 16px 10px; background: rgba(251, 248, 243, .85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.guest-top img { width: 34px; height: 34px; }
.guest-top b { font: 700 19px var(--head); color: var(--navy); margin-right: auto; }
.guest { max-width: 1100px; margin: 0 auto; padding: 22px 16px 60px; }
.club-hero { position: relative; overflow: hidden; padding: 30px 22px; border-radius: 22px; color: #fff; background: radial-gradient(90% 90% at 100% 0%, rgba(108, 127, 196, .55), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(205, 222, 94, .2), transparent 60%), linear-gradient(160deg, #0B3196, var(--navy)); box-shadow: var(--sh2); }
.club-hero h1 { color: #fff; font-size: 38px; }
.club-hero .lead { font-size: 17px; opacity: .92; max-width: 620px; margin: 12px 0 20px; }
.club-hero .kicker { color: var(--lime); }
.club-hero .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.club-hero .btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.club-hero .houses { position: absolute; right: -10px; bottom: -6px; width: 260px; opacity: .9; pointer-events: none; }
@media (max-width: 760px) { .club-hero .houses { width: 170px; opacity: .35; } .club-hero h1 { font-size: 30px; } }
.dcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.dcard { position: relative; overflow: hidden; padding: 18px 18px 18px 22px; border-radius: 16px; background: var(--glass2); border: 1px solid var(--line); box-shadow: var(--sh); }
.dcard::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); }
.dcard::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--c); opacity: .14; }
.dcard b { display: block; font: 700 19px var(--head); color: var(--navy); margin-bottom: 4px; }
.dcard p { margin: 0; font-size: 14.5px; color: var(--mute); }
.perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.perk b { display: block; font: 700 17px var(--head); color: var(--navy); margin-bottom: 4px; }
.perk p { margin: 0; font-size: 14.5px; color: var(--mute); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.contacts { display: flex; flex-wrap: wrap; gap: 8px; }

/* Вход */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-box { width: 100%; max-width: 420px; }
.login-box .logo { width: 64px; height: 64px; margin-bottom: 14px; }
.login-box h1 { font-size: 30px; margin-bottom: 8px; }
.login-box > p { color: var(--mute); margin-bottom: 18px; }
.code-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code-boxes input { width: 100%; height: 60px; text-align: center; border-radius: 12px; border: 1.5px solid var(--line2); background: #fff; font: 800 26px var(--num); color: var(--navy); caret-color: var(--orange); }
.code-boxes input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(7, 39, 124, .1); }
.code-boxes.bad input { border-color: var(--red); animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Экскурсия первого входа */
.tour { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.tour-box { width: 100%; max-width: 560px; }
.tour-steps { display: flex; gap: 6px; margin-bottom: 22px; }
.tour-steps i { flex: 1; height: 4px; border-radius: 2px; background: rgba(7, 39, 124, .12); }
.tour-steps i.on { background: var(--navy); }
.tour h1 { font-size: 30px; margin-bottom: 10px; }
.tour .lead { color: var(--mute); font-size: 17px; margin-bottom: 20px; }
.tour-map { position: relative; height: 150px; margin: 6px 0 22px; }
.tour-walker { position: absolute; bottom: 18px; width: 18px; height: 30px; transition: left .7s cubic-bezier(.4, 0, .2, 1); }
.pick-d { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .pick-d { grid-template-columns: repeat(3, 1fr); } }
.pick-d button { position: relative; min-height: 86px; padding: 12px; border-radius: 14px; text-align: left; background: var(--glass2); border: 2px solid var(--line); box-shadow: var(--sh); transition: border-color .15s, transform .12s; }
.pick-d button b { display: block; font: 700 16px var(--head); color: var(--navy); margin-top: 8px; }
.pick-d button.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); }
.pick-d button.on::after { content: ''; position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); box-shadow: inset 0 0 0 5px var(--navy), inset 0 0 0 10px var(--lime); }
.skills { display: grid; gap: 12px; margin-bottom: 20px; }
.skill { display: flex; gap: 14px; align-items: center; padding: 14px; }
.skill .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: var(--lime); display: flex; align-items: center; justify-content: center; flex: none; }
.skill .ic svg { width: 24px; height: 24px; }
.skill b { display: block; color: var(--navy); }

/* Праздник после оплаты */
.party { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; text-align: center; }
.party-box { max-width: 460px; }
.party .big-stamp { width: 180px; height: 180px; margin: 0 auto 18px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 700; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; background: var(--c); animation: fall var(--d, 2.4s) cubic-bezier(.3, .6, .5, 1) forwards; }
@keyframes fall { to { transform: translate(var(--x, 0), 105vh) rotate(var(--r, 540deg)); opacity: .7; } }

/* ---------- списки и строки ---------- */
.list { display: flex; flex-direction: column; }
.list.card { padding: 4px 0; }
.lrow { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px; text-align: left; width: 100%; border-bottom: 1px solid var(--line); }
.lrow:last-child { border-bottom: 0; }
button.lrow:hover, .lrow.click:hover { background: rgba(7, 39, 124, .035); cursor: pointer; }
.lrow .t { font-weight: 600; color: var(--ink); }
.lrow .s { font-size: 13.5px; color: var(--mute); }
.lrow .r { text-align: right; flex: none; }
.lrow.dim { opacity: .55; }
.av { width: 40px; height: 40px; border-radius: 50%; background: rgba(108, 127, 196, .2); color: var(--navy); display: flex; align-items: center; justify-content: center; font: 700 14px var(--num); flex: none; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.kv { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 6px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); min-height: 52px; }
.kv:last-child { border-bottom: 0; }
.kv .k { font-size: 13.5px; color: var(--mute); }
.kv .v { min-width: 0; overflow-wrap: anywhere; }
.kv .v.empty-v { color: var(--mute2); }
.kv.editing { grid-template-columns: 1fr; }
.kv.editing .k { margin-bottom: -2px; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr auto; } .kv .k { grid-column: 1 / -1; margin-bottom: -6px; } }

/* ---------- администратор ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 16px; text-align: left; width: 100%; }
.stat b svg { width: 32px; height: 32px; }
.stat b { display: block; font: 800 32px/1.1 var(--num); font-variant-numeric: tabular-nums; color: var(--navy); }
.stat span { display: block; font-size: 13.5px; color: var(--mute); margin-top: 4px; }
.stat.accent { background: var(--navy); color: #fff; border-color: transparent; }
.stat.accent b { color: var(--lime); }
.stat.accent span { color: rgba(255, 255, 255, .8); }
.delta { font: 700 13px var(--num); }
.delta.up { color: #4F6B00; } .delta.down { color: var(--red); }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 150px 1fr 80px; gap: 10px; align-items: center; font-size: 14px; }
.bar .track { height: 12px; border-radius: 6px; background: rgba(7, 39, 124, .07); overflow: hidden; }
.bar .track i { display: block; height: 100%; border-radius: 6px; background: var(--c, var(--navy)); }
.bar .v { text-align: right; font: 700 13px var(--num); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .bar { grid-template-columns: 1fr 70px; } .bar .track { grid-column: 1 / -1; grid-row: 2; } }
.fillbar { width: 90px; height: 8px; border-radius: 4px; background: rgba(7, 39, 124, .08); overflow: hidden; }
.fillbar i { display: block; height: 100%; background: var(--navy); border-radius: 4px; }
.fillbar i.full { background: var(--orange); }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.search { position: relative; flex: 1 1 260px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--mute2); }
.search .input { padding-left: 42px; }
.month-sw { display: inline-flex; align-items: center; gap: 4px; }
.month-sw b { min-width: 150px; text-align: center; font: 700 16px var(--text); text-transform: capitalize; }
.adm-ev-time { width: 64px; flex: none; text-align: center; }
.adm-ev-time b { display: block; font: 800 18px var(--num); font-variant-numeric: tabular-nums; color: var(--navy); }
.adm-ev-time span { font-size: 12px; color: var(--mute); }
.drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; border: 2px dashed var(--line2); background: rgba(255, 255, 255, .6); transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--navy); background: rgba(108, 127, 196, .1); }
.drop .pv { width: 84px; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: rgba(7, 39, 124, .06); flex: none; display: flex; align-items: center; justify-content: center; color: var(--mute2); }
.drop .pv img { width: 100%; height: 100%; object-fit: cover; }
.drop .pv svg { width: 28px; height: 28px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 36px; height: 36px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.swatches button.on { box-shadow: 0 0 0 3px var(--navy), inset 0 0 0 2px #fff; }
.imp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.imp-table th { text-align: left; font-weight: 600; color: var(--mute); padding: 6px 8px; border-bottom: 1px solid var(--line2); }
.imp-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.imp-table tr.bad td { color: var(--red); }
.imp-wrap { max-height: 280px; overflow: auto; border-radius: 10px; border: 1px solid var(--line); margin: 10px 0; }
.set-card h3 { margin-bottom: 4px; }
.set-card > .hint { margin-bottom: 12px; }
.tar-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.tar-row:last-child { border-bottom: 0; }

/* Уведомления */
.notice { display: block; padding: 14px 16px; border-radius: 14px; text-align: left; width: 100%; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); margin-bottom: 10px; }
.notice.unread { border-color: rgba(245, 81, 0, .35); box-shadow: inset 3px 0 0 var(--orange); }
.notice b { display: block; color: var(--navy); }
.notice p { margin: 4px 0 6px; font-size: 14.5px; color: var(--ink); }
.notice small { color: var(--mute); font-size: 12.5px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .win.blink { animation: none; background: #3C5AA8; }
  .obj-plate { animation: none; }
}

/* Плотнее на узком телефоне: пять пунктов меню у клуба, крупные суммы в плитках */
@media (max-width: 560px) {
  .stat b { font-size: 24px; }
  .stat { padding: 14px 12px; }
  .tabbar button { min-width: 0; font-size: 10.5px; }
  .tabbar button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
}
