/* ОСББ «Милославська 45» — стан опалення */

:root {
  --bg: #F2EEE5;
  --paper: #FFFDF8;
  --white: #FFFFFF;
  --ink: #1F1C17;
  --ink-hover: #3A352C;
  --text-2: #5E574C;
  --muted: #6B6458;
  --faint: #8A8274;
  --line: #D9D2C3;
  --line-soft: #E4DDCF;
  --divider: #ECE6DA;
  --track: #E6DFD1;
  --none: #EFEAE0;
  --none-fg: #A39B8C;
  --disabled: #DDD6C8;
  --warn-bg: #FBF1DA;
  --danger-bg: #FBE9E5;

  /* статуси опалення */
  --on: #C93A25;
  --weak: #F2B53A;
  --off: #2F6DB5;

  --font: 'Geologica', system-ui, sans-serif;
  --display: 'Geologica', system-ui, sans-serif;
}

/* Пари шрифтів (перемикаються атрибутом data-font на .app) */
.app[data-font="commissioner"] { --font: 'Commissioner', system-ui, sans-serif; --display: 'Commissioner', system-ui, sans-serif; }
.app[data-font="plex"] { --font: 'IBM Plex Sans', system-ui, sans-serif; --display: 'IBM Plex Sans', system-ui, sans-serif; }
.app[data-font="literata"] { --font: 'Commissioner', system-ui, sans-serif; --display: 'Literata', Georgia, serif; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, input, select { font-family: inherit; }
button { cursor: pointer; }
a { color: var(--ink); }
a:hover { color: var(--on); }

.app { min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--font); }

/* ---------- Верхня панель ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(242, 238, 229, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.topbar__in { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { display: flex; gap: 3px; align-items: flex-end; height: 20px; }
.brand__mark span { width: 5px; border-radius: 3px; }
.brand__mark span:nth-child(1) { height: 20px; background: var(--on); }
.brand__mark span:nth-child(2) { height: 14px; background: var(--weak); }
.brand__mark span:nth-child(3) { height: 9px; background: var(--off); }
.brand__name { font: 600 13px/1.2 var(--display); letter-spacing: .02em; }
.nav { display: flex; gap: 4px; padding: 4px; background: var(--track); border-radius: 999px; }
.nav__btn { height: 44px; padding: 0 18px; border-radius: 999px; border: none; background: transparent; color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.nav__btn.is-active { background: var(--ink); color: var(--paper); }
@media (max-width: 560px) {
  .nav { width: 100%; }
  .nav__btn { flex: 1; padding: 0 8px; font-size: 13px; white-space: normal; line-height: 1.1; }
}

/* ---------- Сторінка ---------- */
.page { max-width: 1080px; margin: 0 auto; padding: 26px 16px 72px; display: flex; flex-direction: column; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.narrow { width: 100%; max-width: 640px; margin: 0 auto; }
.hero { display: flex; flex-direction: column; gap: 12px; padding: 4px 4px 10px; }
.hero h1 { margin: 0; font: 600 clamp(26px, 6vw, 38px)/1.12 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.hero p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-2); max-width: 52ch; text-wrap: pretty; }

/* ---------- Картки ---------- */
.card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 20px; padding: 20px 18px 22px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.card--rooms { gap: 14px; padding-bottom: 10px; }
.card--date { gap: 16px; }
.card--done { padding: 26px 20px 22px; overflow: hidden; }
.done-img { display: block; width: calc(100% + 40px); max-width: none; margin: -26px -20px 0; aspect-ratio: 16 / 9; object-fit: cover; object-position: 62% 55%; background: #FBE7D0; }
.card--summary { padding: 18px; gap: 14px; }
.card--section { padding: 18px 16px 16px; gap: 12px; }
.card--risers { padding: 18px 16px 8px; gap: 6px; }
.card--floors { padding: 18px 16px 12px; gap: 12px; }
.card-head { display: flex; align-items: center; gap: 10px; }
.card-head--split { justify-content: space-between; flex-wrap: wrap; }
.step { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 600 13px var(--display); flex: none; }
.h2 { margin: 0; font: 600 18px/1.2 var(--display); }
.h3 { margin: 0; font: 600 17px/1.2 var(--display); }
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 14px; font-weight: 600; color: var(--muted); }
.sublabel { font-size: 12px; font-weight: 600; color: var(--faint); }
.muted { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.lead { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.meta { font-size: 13px; font-weight: 600; color: var(--muted); }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---------- Поля ---------- */
.input { height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); padding: 0 14px; font-size: 16px; font-weight: 600; color: var(--ink); outline: none; }
.input:focus, .input.is-selected { border-color: var(--ink); }
.input--apt { width: 128px; height: 56px; padding: 0 16px; font: 600 22px var(--display); }
.input--pill { height: 40px; border-radius: 999px; background: var(--paper); padding: 0 12px; font-size: 13px; font-weight: 700; }
.select { max-width: 240px; }
.apt-query { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.apt-query__msg { flex: 1 1 180px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.apt-query__msg.is-error { color: var(--on); }

/* ---------- Кнопки вибору ---------- */
.choice { border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 700; padding: 0; }
.choice:hover { border-color: var(--ink); }
.choice.is-selected { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice--entrance { min-height: 62px; border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; text-align: left; }
.choice--entrance b { font: 600 16px/1.2 var(--display); }
.choice--entrance small { font-size: 13px; font-weight: 500; }
.floors { display: flex; flex-direction: column; gap: 12px; }
.floors__zone { display: flex; flex-direction: column; gap: 6px; }
.floors__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.choice--floor { height: 44px; border-radius: 10px; font-size: 15px; }
.apts { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 6px; }
.choice--apt { min-height: 60px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px; }
.choice--apt b { font: 600 18px/1.1 var(--display); }
.choice--apt small { font-size: 12px; font-weight: 500; }
.choice--pill { height: 44px; padding: 0 16px; border-radius: 999px; font-size: 14px; }
.choice--pill-sm { height: 40px; padding: 0 14px; border-radius: 999px; font-size: 13px; }
.empty { border: 1.5px dashed var(--line); border-radius: 14px; padding: 18px; font-size: 14px; color: var(--muted); text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 7px 11px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 600; }
.note { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); font-size: 14px; line-height: 1.4; font-weight: 600; }

/* ---------- Статуси ---------- */
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--line); }
.dot--lg { width: 10px; height: 10px; }
.dot--on { background: var(--on); }
.dot--weak, .dot--part { background: var(--weak); }
.dot--off { background: var(--off); }
.dot--none { background: var(--line); }
.dot--ink { background: var(--ink); }

.seg { display: block; height: 100%; }
.seg--on { background: var(--on); }
.seg--weak, .seg--part { background: var(--weak); }
.seg--off { background: var(--off); }
.seg--none { background: var(--none); }

.pill { padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; background: var(--none); color: var(--none-fg); }
.pill--sm { padding: 5px 11px; font-size: 13px; }
.pill--on { background: var(--on); color: var(--white); }
.pill--weak, .pill--part { background: var(--weak); color: var(--ink); }
.pill--off { background: var(--off); color: var(--white); }

.swatch { width: 14px; height: 14px; border-radius: 4px; border: 1px solid transparent; }
.swatch--on { background: var(--on); }
.swatch--part { background: var(--weak); }
.swatch--off { background: var(--off); }
.swatch--none { background: var(--none); border-color: var(--line); }

/* ---------- Кімнати ---------- */
.layout { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.layout__group { display: flex; align-items: center; gap: 10px; }
.seg-ctl { display: flex; gap: 4px; padding: 4px; background: var(--track); border-radius: 12px; }
.seg-ctl__btn { min-width: 48px; height: 44px; padding: 0 12px; border: none; border-radius: 9px; background: transparent; color: var(--ink); font: 600 17px var(--display); }
.seg-ctl__btn:hover { background: rgba(255, 253, 248, .6); }
.seg-ctl__btn.is-active { background: var(--ink); color: var(--paper); }
.quick { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--bg); }
.quick__title { font-size: 14px; font-weight: 600; }
.quick__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 6px; }
.rooms { display: flex; flex-direction: column; }
.room { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 0; border-top: 1px solid var(--divider); }
.room__name { flex: 1 1 140px; display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.room__opts { flex: 1 1 280px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }

.opt { height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 6px; }
.opt:hover { border-color: var(--ink); }
.opt:disabled { opacity: .45; cursor: not-allowed; }
.opt:disabled:hover { border-color: var(--line); }
.opt.is-active .dot { background: currentColor; }
.opt--on.is-active { background: var(--on); border-color: var(--on); color: var(--white); }
.opt--weak.is-active { background: var(--weak); border-color: var(--weak); color: var(--ink); }
.opt--off.is-active { background: var(--off); border-color: var(--off); color: var(--white); }
.opt--prev.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.quick .opt { height: auto; min-height: 46px; padding: 6px 12px; font-size: 14px; gap: 8px; }
.quick .opt .dot { width: 9px; height: 9px; }

/* «Що у сусіда?» — форма лише для перегляду */
.card--neighbor { gap: 14px; }
.opt--static { cursor: default; }
.opt--static:not(.is-active) { opacity: .5; }
.opt--static:not(.is-active):hover { border-color: var(--line); }

.submit-wrap { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.submit { height: 60px; border-radius: 16px; border: none; background: var(--ink); color: var(--paper); font: 600 17px var(--display); }
.submit:disabled { background: var(--disabled); color: var(--faint); cursor: not-allowed; }
.hint { text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- Після надсилання ---------- */
.strip { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 3px; }
.strip .seg { flex: 1; }
.done-title { margin: 0; font: 600 28px/1.15 var(--display); }
.kv-list { display: flex; flex-direction: column; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--divider); font-size: 16px; font-weight: 700; }
.kv--sm { padding: 9px 0; font-size: 15px; font-weight: 600; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }

/* ---------- Кнопки ---------- */
.btn { height: 54px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; }
.btn:hover { border-color: var(--ink); }
.btn--primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn--danger { border-color: var(--on); color: var(--on); }
.btn--danger:hover { background: var(--danger-bg); border-color: var(--on); }
.btn--sm { height: 44px; border-radius: 12px; font-size: 14px; padding: 0 16px; }
.btn--md { height: 50px; }
.btn--icon { width: 44px; height: 44px; padding: 0; border-radius: 12px; font-size: 20px; line-height: 1; flex: none; }
.btn__icon { font-size: 16px; line-height: 1; }

/* ---------- Загальний стан ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 6px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 16px; }
.toolbar__info { flex: 1 1 200px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.toolbar__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--track); border-radius: 14px; }
.tab { height: 44px; padding: 0 16px; border-radius: 10px; border: none; background: transparent; color: var(--ink); font-size: 14px; font-weight: 700; }
.tab.is-active { background: var(--paper); box-shadow: 0 1px 3px rgba(31, 28, 23, .12); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }

.summary__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.summary__title { font: 600 16px/1.3 var(--display); }
.summary__period { font-size: 14px; color: var(--muted); }
.updated { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--none); }
.bar--sm { height: 16px; border-radius: 5px; }
.bar--md { height: 18px; border-radius: 5px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legend__item { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.legend__count { color: var(--muted); font-weight: 700; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.section-head--pad { padding-bottom: 6px; }
.section-head__title { display: flex; align-items: center; gap: 8px; }
.mine-tag { display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 700 11px/1.2 var(--font); vertical-align: middle; }
.section-head__title .mine-tag { margin-left: 0; }
.card--risers.is-mine { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.riser.is-mine { background: var(--warn-bg); margin: 0 -8px; padding: 12px 8px; border-radius: 12px; border-top-color: transparent; }
.riser.is-mine + .riser { border-top-color: transparent; }

/* Схема будинку */
.facade-row { display: grid; grid-template-columns: 30px repeat(6, minmax(0, 1fr)); gap: 3px; }
.axis { font-size: 11px; font-weight: 700; color: var(--faint); align-self: end; }
.axis--c { text-align: center; }
.floor-num { font-size: 12px; font-weight: 700; color: var(--muted); display: flex; align-items: center; }
.zone { display: flex; flex-direction: column; gap: 3px; }
.zone--floors { gap: 5px; }
.zone-sep { display: flex; align-items: center; gap: 8px; padding: 2px 0 4px; font-size: 11px; font-weight: 700; color: var(--faint); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.zone-sep::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.cell { height: 26px; border-radius: 6px; border: 2px solid transparent; font-size: 11px; font-weight: 700; padding: 0; min-width: 0; overflow: hidden; }
.cell--on { background: var(--on); border-color: var(--on); color: var(--white); }
.cell--part { background: var(--weak); border-color: var(--weak); color: var(--ink); }
.cell--off { background: var(--off); border-color: var(--off); color: var(--white); }
.cell--none { background: var(--none); border-color: var(--none); color: var(--none-fg); }
.cell--empty { background: transparent; border-color: transparent; cursor: default; }
.cell.is-picked { border-color: var(--ink); }

/* Стояки */
.riser { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--divider); }
.riser__name { font-size: 15px; font-weight: 700; }
.riser__bars { display: flex; flex-direction: column; gap: 7px; }
.mbar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 40px; gap: 8px; align-items: center; }
.mbar__label { font-size: 12px; font-weight: 700; color: var(--faint); }
.mbar__val { font-size: 12px; font-weight: 700; color: var(--muted); text-align: right; }

/* Поверхи */
.floor-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; }
.floor-row--head { align-items: end; gap: 10px 14px; }
.floor-row__title { font: 600 14px/1.2 var(--display); }
.floor-row .floor-num { font-size: 13px; }
.fbar { display: grid; grid-template-columns: minmax(0, 1fr) 30px; gap: 8px; align-items: center; }

/* ---------- Картка квартири ---------- */
.sheet-spacer { height: 340px; }
.sheet-wrap { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; padding: 0 12px 12px; pointer-events: none; }
.sheet { pointer-events: auto; width: 100%; max-width: 520px; max-height: 72vh; overflow: auto; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 20px; box-shadow: 0 14px 44px rgba(31, 28, 23, .2); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.sheet > *, .sheet .kv-list, .sheet .btn { flex: none; }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet__titles { display: flex; flex-direction: column; gap: 4px; }
.sheet__title { font: 600 22px/1.15 var(--display); }
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---------- 3D-модель ---------- */
.card--3d { padding: 16px 16px 18px; gap: 12px; overflow: hidden; }
.b3d-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.b3d {
  position: relative; height: clamp(360px, 62vw, 540px); perspective: 1400px; perspective-origin: 50% 35%;
  display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: pan-y; user-select: none; overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, var(--paper) 0%, var(--bg) 75%); border-radius: 14px;
}
.b3d:active { cursor: grabbing; }
.b3d-scene { position: relative; width: 0; height: 0; transform-style: preserve-3d; }
/* Стіни, дахи й тінь будуються з контурів у building.json → model3d */
.b3d-wall { position: absolute; left: 0; top: 0; display: grid; grid-template-rows: repeat(22, 1fr); gap: 2px; padding: 3px 3px 2px; background: linear-gradient(180deg, #DDD6C9, #CFC7B8); backface-visibility: hidden; }
.b3d-wall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 50%; height: 2px; background: rgba(31, 28, 23, .28); }
.b3d-roof { position: absolute; left: 0; top: 0; background: #BDB4A4; backface-visibility: hidden; }
.b3d-roof__label { position: absolute; transform: translate(-50%, -50%); font: 600 44px/1 var(--display); color: rgba(31, 28, 23, .42); }
.b3d-ground { position: absolute; left: 0; top: 0; background: radial-gradient(closest-side, rgba(31, 28, 23, .26), transparent); pointer-events: none; }
.win { border: none; padding: 0; border-radius: 2px; min-width: 0; min-height: 0; }
.win--on { background: var(--on); }
.win--part { background: var(--weak); }
.win--off { background: var(--off); }
.win--none { background: #F3EFE7; }
.win--blank { background: #E7E1D6; cursor: default; }
.win--empty { background: transparent; cursor: default; }
.win.is-picked { box-shadow: inset 0 0 0 2px var(--ink); }

/* ---------- Секретні файли ---------- */
.stamp { border: 2px solid var(--on); color: var(--on); font: 600 11px/1 var(--display); padding: 5px 8px; border-radius: 6px; transform: rotate(-4deg); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.kv--info { font-size: 15px; font-weight: 600; color: var(--muted); align-items: baseline; }
.kv__val { color: var(--ink); font-weight: 700; text-align: right; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: var(--bg); }
.stat__num { font: 600 34px/1 var(--display); color: var(--on); }
.stat__title { font-size: 14px; font-weight: 700; line-height: 1.3; }
.stat__note { font-size: 13px; color: var(--muted); }
.lifts { display: flex; align-items: flex-end; gap: 6px; padding: 12px 12px 0; border-radius: 14px; background: var(--bg); min-height: 116px; }
.lift { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; padding-bottom: 8px; border-radius: 8px 8px 0 0; background: var(--paper); border: 1.5px solid var(--line); border-bottom: none; font-size: 11px; font-weight: 700; color: var(--muted); position: relative; }
.lift::before { content: ""; position: absolute; top: 8px; bottom: 26px; left: 50%; width: 1.5px; background: var(--line); }
.lift--passenger { height: 72px; }
.lift--freight { height: 100px; flex: 1.4; background: var(--track); }
.tl { display: flex; flex-direction: column; }
.tl__item { display: grid; grid-template-columns: 58px 14px minmax(0, 1fr); gap: 10px; align-items: start; }
.tl__year { font: 600 15px/1.4 var(--display); }
.tl__rail { position: relative; align-self: stretch; }
.tl__rail::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--line-soft); }
.tl__rail::after { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.tl__text { font-size: 15px; line-height: 1.4; padding-bottom: 14px; }
.doc { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--divider); text-decoration: none; color: var(--ink); }
.doc:hover { color: var(--on); }
.doc__main { display: flex; flex-direction: column; gap: 3px; }
.doc__title { font-size: 15px; font-weight: 700; line-height: 1.35; }
.doc__note { font-size: 13px; color: var(--muted); line-height: 1.4; }
.doc__arrow { font-size: 18px; line-height: 1.2; flex: none; }
.miss { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--divider); font-size: 15px; line-height: 1.4; }
.miss__mark { width: 20px; height: 20px; border-radius: 6px; border: 1.5px dashed var(--line); flex: none; margin-top: 1px; }
.contact { display: flex; flex-direction: column; gap: 6px; }
.contact__name { font-size: 15px; font-weight: 700; line-height: 1.4; }

/* ---------- Згорнутий блок квартири ---------- */
.card--collapsed { padding: 16px 16px 16px 18px; gap: 12px; }
.apt-sum { display: flex; align-items: center; gap: 12px; }
.apt-sum__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.apt-sum__title { font: 600 18px/1.2 var(--display); }

/* ---------- «Покарати невнесунів» ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(31, 28, 23, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: 100%; max-width: 420px; background: var(--paper); border-radius: 22px; padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 20px 60px rgba(31, 28, 23, .3); }
.modal__head { display: flex; flex-direction: column; gap: 6px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--on); }
.modal__title { margin: 0; font: 600 22px/1.2 var(--display); }
.punish-list { display: flex; flex-direction: column; gap: 8px; }
.punish-line { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 15px; font-weight: 700; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.punish-line.is-shown { opacity: 1; transform: none; }
.punish-line__check { width: 22px; height: 22px; border-radius: 50%; background: var(--on); color: var(--white); display: grid; place-items: center; font-size: 12px; flex: none; }
.verdict { font: 600 clamp(28px, 8vw, 36px)/1.1 var(--display); color: var(--on); text-align: center; padding: 6px 0; opacity: 0; transform: scale(.6); transition: opacity .35s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.verdict.is-shown { opacity: 1; transform: scale(1) rotate(-3deg); }
.s-noscript { padding: 24px; font-family: var(--font); }
