/* Світло — відключення електроенергії по Україні.

   Оформлення перенесене зі сторінки «Світло» Ніжин onLine і розширене на всю
   країну: та сама картка стану, та сама смуга доби, той самий висувний аркуш
   вибору адреси — лише з областю перед містом.

   Що лишилось від попередньої версії, бо це не смак, а потреба:
   1) стан несе і колір, і слово — колір лише підсилює текст;
   2) «невідомо» завжди сіре й ніколи не схоже на «світло є»;
   3) шрифти системні: сторінку відкривають на поганому зв'язку, і чекати
      на файл шрифту, щоб прочитати «світла немає», нема коли. */

:root {
  color-scheme: light;
  --navy: #054e66;
  --teal: #0f9799;
  --steel: #1e79a6;
  --orange: #f08300;
  --on: #2ebd6b;
  --off: #e84d45;
  --maybe: #f5a524;
  --unknown: #9bb0bc;
  --ink: #0b2e3d;
  --sub: #5c7686;
  --faint: #9bb0bc;
  --bg: #ecf4fa;
  --card: #ffffff;
  --field: #ecf4fa;
  --divider: #d5dfe2;
  --press: #e1eef4;
  --on-soft: rgba(46, 189, 107, .16);
  --off-soft: rgba(232, 77, 69, .16);
  --maybe-soft: rgba(245, 165, 36, .18);
  --unknown-soft: rgba(155, 176, 188, .22);
  --teal-soft: rgba(15, 151, 153, .10);
  --solid: #054e66;      /* заливка активної кнопки */
  --solid-ink: #ffffff;
  --scrim: rgba(5, 46, 61, .42);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --navy: #bfe6ee;
    --teal: #35c2c4;
    --steel: #5fb4dc;
    --ink: #e8f3f7;
    --sub: #9bb4c0;
    --faint: #6b8794;
    --bg: #06171e;
    --card: #0d2630;
    --field: #0a1f28;
    --divider: #1c3c49;
    --press: #143340;
    --teal-soft: rgba(53, 194, 196, .16);
    --solid: #0f9799;
    --solid-ink: #ffffff;
    --scrim: rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--steel); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── шапка: назва і розділи завжди вгорі ─────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 9;
  background: var(--bg);
  border-bottom: 1px solid transparent;
}
.top__in {
  max-width: 600px; margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.top__name {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 800; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none;
}
.top__name svg { width: 22px; height: 22px; color: var(--orange); }
.nav {
  display: flex; background: var(--card); border: 1px solid var(--divider);
  border-radius: 14px; padding: 4px;
}
.nav__item {
  padding: 8px 16px; border-radius: 11px;
  font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none;
  white-space: nowrap;
}
.nav__item--on { background: var(--solid); color: var(--solid-ink); }

main { max-width: 600px; margin: 0 auto; padding: 4px 16px 40px; }

/* ── заголовок сторінки ──────────────────────────────────────────────────── */
.hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
h1 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.hd__sub, .lead { display: block; margin: 4px 0 0; font-size: 13.5px; color: var(--sub); font-weight: 500; }
.lead { font-size: 14.5px; line-height: 1.6; margin-top: 8px; }
.add {
  flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal);
  font-size: 24px; font-weight: 600; line-height: 1; display: grid; place-items: center; cursor: pointer;
}
.crumbs { margin: 6px 0 0; font-size: 12.5px; color: var(--sub); }
.crumbs a { color: var(--sub); }

/* ── картка ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--divider);
  border-radius: 18px; padding: 18px; margin-top: 12px;
}
.h { margin: 0; font-size: 17px; font-weight: 700; color: var(--navy); }
.h a { color: inherit; text-decoration: none; }
.card__note { margin: 4px 0 0; font-size: 13px; color: var(--sub); }
.muted { color: var(--sub); font-size: 13px; }

/* ── перемикач «Адреси / Черги» і «Сьогодні / Завтра» ────────────────────── */
.seg {
  display: flex; background: var(--card); border: 1px solid var(--divider);
  border-radius: 14px; padding: 4px; margin-top: 12px;
}
.seg button {
  flex: 1; border: 0; background: none; padding: 9px; border-radius: 11px;
  font-size: 14px; font-weight: 700; color: var(--navy); cursor: pointer;
}
.seg button.active { background: var(--solid); color: var(--solid-ink); }

.days { display: flex; gap: 8px; margin-top: 12px; }
.days button {
  flex: 1; height: 44px; border: 1px solid var(--divider); border-radius: 13px;
  background: var(--card); font-size: 14px; font-weight: 700; color: var(--navy); cursor: pointer;
}
.days button.active { background: var(--solid); color: var(--solid-ink); border-color: transparent; }

/* ── чипи збережених адрес і черг ────────────────────────────────────────── */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 5px 15px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--divider);
  cursor: pointer; white-space: nowrap; text-align: left;
}
.chip.active { background: var(--solid); border-color: transparent; }
.chip .dot, .dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; background: var(--unknown); }
.dot.dot--on { background: var(--on); }
.dot.dot--off { background: var(--off); }
.dot.dot--maybe { background: var(--maybe); }
.chip .t { display: block; font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.15; }
.chip .s { display: block; font-size: 11px; color: var(--sub); line-height: 1.2; }
.chip.active .t { color: var(--solid-ink); }
.chip.active .s { color: rgba(255, 255, 255, .85); }
.chip.plus {
  width: 44px; padding: 0; justify-content: center;
  background: var(--teal-soft); border-color: transparent;
  color: var(--teal); font-size: 20px; font-weight: 700;
}

/* ── головна картка стану ────────────────────────────────────────────────── */
.hero-top { display: flex; align-items: center; gap: 14px; }
.hero-ic { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.hero-ic svg { width: 26px; height: 26px; }
.hero-title { font-size: 25px; font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
.hero-next { font-size: 13px; color: var(--sub); margin-top: 4px; }
.hero-next b { color: var(--navy); font-weight: 700; }
.hero-meta { font-size: 12px; color: var(--sub); margin-top: 3px; }
.is-on { color: var(--on); }
.is-off { color: var(--off); }
.is-maybe { color: var(--maybe); }
.is-unknown { color: var(--sub); }
.bg-on { background: var(--on-soft); color: var(--on); }
.bg-off { background: var(--off-soft); color: var(--off); }
.bg-maybe { background: var(--maybe-soft); color: var(--maybe); }
.bg-unknown { background: var(--unknown-soft); color: var(--sub); }
.fill-on { background: var(--on); }
.fill-off { background: var(--off); }
.fill-maybe { background: var(--maybe); }
.fill-unknown { background: var(--unknown); }

.prog { margin-top: 14px; }
.prog .track { height: 8px; border-radius: 999px; overflow: hidden; }
.prog .fill { height: 100%; border-radius: 999px; }
.prog .lab { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; margin-top: 5px; color: var(--sub); }
.prog .lab b { font-weight: 700; }
.divider { height: 1px; background: var(--divider); margin: 16px 0; }
.bal-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bal-lab .r { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--sub); }
.bal-lab .v { font-size: 14px; font-weight: 700; color: var(--navy); margin-top: 2px; }
.bal-lab.right { text-align: right; }
.bal-lab.right .r { justify-content: flex-end; }
.bal-bar { display: flex; gap: 2px; height: 12px; margin-top: 10px; }
.bal-bar i { border-radius: 999px; min-width: 4px; }

/* ── смуга доби ──────────────────────────────────────────────────────────── */
.sched-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.sched-head .fmt { font-size: 12px; color: var(--sub); text-align: right; }
/* Відступ під бульбашку «зараз» — саме padding, а не margin смуги: верхній
   margin першого нащадка зливається з батьківським, і бульбашка лягала на смугу. */
.barwrap { position: relative; padding-top: 22px; }
.nowbubble {
  position: absolute; top: 0; transform: translateX(-50%);
  font-size: 10px; font-weight: 700; color: #fff; background: var(--steel);
  padding: 2px 7px; border-radius: 999px; white-space: nowrap;
}
.bar {
  position: relative; display: flex; height: 46px;
  border-radius: 11px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .05);
  background: var(--unknown-soft);
}
.bar--plain { margin-top: 10px; height: 34px; }
.bar i { display: block; height: 100%; flex: 1 1 0; }
.bar__cell--on { background: var(--on); }
.bar__cell--off { background: var(--off); }
.bar__cell--maybe { background: var(--maybe); }
.bar__cell--unknown { background: var(--unknown-soft); }
.bar .past { position: absolute; top: 0; left: 0; height: 100%; background: var(--bg); opacity: .55; }
.bar .nowline, .bar__now {
  position: absolute; top: 0; width: 2.5px; height: 100%;
  background: var(--steel); transform: translateX(-50%);
}
.bar__now { left: calc(var(--at) * 100%); }
.ticks { position: relative; height: 14px; margin-top: 6px; }
.ticks span { position: absolute; transform: translateX(-50%); font-size: 10px; color: var(--sub); white-space: nowrap; }
.bar__hours { display: flex; justify-content: space-between; font-size: 10px; color: var(--sub); margin-top: 5px; }
.day { margin-top: 14px; }
.day:first-of-type { margin-top: 12px; }
.day__lab { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--sub); }
.day__lab b { color: var(--navy); font-weight: 700; text-transform: capitalize; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 2px 0; font-size: 12px; color: var(--sub); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .dot { width: 10px; height: 10px; }

/* ── список інтервалів і робіт ───────────────────────────────────────────── */
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--divider); }
.list-row:first-child { border-top: 0; }
.card > .h + .list-row, .card > .card__note + .list-row { border-top: 0; margin-top: 4px; }
.divider + .list-row { border-top: 0; padding-top: 0; }
.ring { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; background: var(--off); box-shadow: 0 0 0 3px rgba(232, 77, 69, .22); }
.ring--maybe { background: var(--maybe); box-shadow: 0 0 0 3px rgba(245, 165, 36, .25); }
.ring--planned { background: var(--steel); box-shadow: 0 0 0 3px rgba(30, 121, 166, .22); }
.list-row .time { font-size: 14px; font-weight: 700; color: var(--navy); }
.list-row .time.past { text-decoration: line-through; color: var(--faint); }
.list-row .txt { min-width: 0; flex: 1; }
.list-row .txt small { display: block; font-size: 12.5px; color: var(--sub); font-weight: 400; margin-top: 2px; overflow-wrap: anywhere; }
.badge-now, .tag {
  flex: 0 0 auto; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--off);
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.tag--planned { background: var(--steel); }
.tag--maybe { background: var(--maybe); }
.ok-row { display: flex; align-items: center; gap: 10px; color: var(--sub); font-size: 14px; margin-top: 10px; }
.ok-row svg { width: 18px; height: 18px; color: var(--on); flex: 0 0 auto; }

/* ── статусні плашки ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--unknown-soft); color: var(--sub); white-space: nowrap;
}
.badge--off { background: var(--off-soft); color: var(--off); }
.badge--on, .badge--live { background: var(--on-soft); color: #1d9a55; }
.badge--maybe, .badge--stale { background: var(--maybe-soft); color: #b46f00; }
.badge--works { background: rgba(30, 121, 166, .14); color: var(--steel); }
@media (prefers-color-scheme: dark) {
  .badge--on, .badge--live { color: var(--on); }
  .badge--maybe, .badge--stale { color: var(--maybe); }
}

/* ── порожній стан і кнопки ──────────────────────────────────────────────── */
.empty { text-align: center; padding: 26px 8px; }
.empty h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--navy); }
.empty p { margin: 0 0 16px; font-size: 14px; color: var(--sub); }
p.empty { padding: 4px 0 0; text-align: left; font-size: 14px; color: var(--sub); margin: 8px 0 0; }
.btn-navy {
  display: inline-block; border: 0; background: var(--solid); color: var(--solid-ink);
  font-size: 14px; font-weight: 700; padding: 12px 20px; border-radius: 12px; cursor: pointer; text-decoration: none;
}
.btn-ghost {
  display: block; width: 100%; margin-top: 10px; padding: 12px 14px;
  border: 1px dashed var(--divider); border-radius: 12px; background: none;
  font-size: 13.5px; font-weight: 600; color: var(--steel); cursor: pointer; text-align: center;
}
.linkbtn { border: 0; background: none; padding: 6px 0; font-size: 13px; color: var(--sub); text-decoration: underline; cursor: pointer; }
.note {
  margin: 12px 0 0; padding: 12px 14px; border-radius: 14px;
  background: var(--maybe-soft); color: var(--ink); font-size: 13.5px; line-height: 1.5;
}
.card .note:first-child { margin-top: 0; }
.fine { font-size: 12px; color: var(--sub); text-align: center; margin: 18px 0 0; }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.spin { color: var(--sub); font-size: 13px; text-align: center; padding: 14px; }

/* ── висувний аркуш вибору адреси ────────────────────────────────────────── */
.sheet { position: fixed; inset: 0; z-index: 20; display: none; }
.sheet.open { display: block; }
.sheet .scrim { position: absolute; inset: 0; background: var(--scrim); }
.sheet .panel {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 600px;
  background: var(--card); border-radius: 22px 22px 0 0;
  padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
  max-height: 88vh; min-height: 46vh; overflow: auto; overscroll-behavior: contain;
}
.sheet .grab { width: 38px; height: 4px; border-radius: 999px; background: var(--divider); margin: 0 auto 12px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet__x {
  width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--field);
  color: var(--sub); font-size: 20px; line-height: 1; cursor: pointer;
}
.steps { display: flex; gap: 6px; margin-top: 12px; }
.steps i { flex: 1; height: 4px; border-radius: 999px; background: var(--divider); }
.steps i.done { background: var(--teal); }
.fld { display: block; font-size: 12px; color: var(--sub); margin: 14px 0 6px; font-weight: 600; }
.fld b { color: var(--teal); font-weight: 700; margin-right: 4px; }
select, input[type=text], input[type=search] {
  width: 100%; font-size: 16px; color: var(--ink); background: var(--field);
  border: 1px solid var(--divider); border-radius: 12px; padding: 12px 13px;
  appearance: none; -webkit-appearance: none;
}
select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c7686' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
select:focus, input:focus { outline: none; border-color: var(--teal); }
input::placeholder { color: var(--faint); }
.results {
  border: 1px solid var(--divider); border-radius: 12px; margin-top: 6px;
  max-height: 264px; overflow: auto; background: var(--field);
}
.results button, .results a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  width: 100%; border: 0; border-top: 1px solid var(--divider); background: none;
  padding: 12px 13px; font-size: 14.5px; text-align: left; cursor: pointer;
  color: var(--ink); text-decoration: none;
}
.results button:first-child, .results a:first-child { border-top: 0; }
.results button:active, .results a:active { background: var(--press); }
.results small { flex: 0 0 auto; font-size: 11.5px; color: var(--sub); }
.results:empty { display: none; }
.results .none { padding: 12px 13px; font-size: 13px; color: var(--sub); }
.hchips { display: flex; flex-wrap: wrap; gap: 8px; }
.hchip {
  min-width: 48px; padding: 10px 14px; border: 1px solid var(--divider); border-radius: 999px;
  background: var(--field); font-size: 14px; font-weight: 600; color: var(--navy); cursor: pointer;
}
.hchip:active { background: var(--press); border-color: var(--teal); }
.hchip--q { display: inline-flex; align-items: center; gap: 8px; }

/* ── області: карта і плитки ─────────────────────────────────────────────── */
.map { margin: 12px 0 0; }
.map svg { display: block; width: 100%; height: auto; }
.map__o { fill: var(--unknown-soft); stroke: var(--card); stroke-width: 1.2; transition: opacity .15s; }
a:hover .map__o, a:focus .map__o { opacity: .75; }
.map__o--off { fill: var(--off); }
.map__o--on { fill: var(--on); }
.map__o--stale { fill: var(--maybe); }
.map__o--works { fill: var(--steel); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; margin-top: 12px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: var(--card); border: 1px solid var(--divider); border-radius: 14px;
  padding: 12px 14px; text-decoration: none; color: var(--ink);
}
.tile:active { background: var(--press); }
.tile__name { font-size: 14.5px; font-weight: 700; color: var(--navy); }
.tile__meta { font-size: 12px; color: var(--sub); }
.tile .badge { white-space: normal; }

/* ── текстові блоки ──────────────────────────────────────────────────────── */
.seo { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--divider); }
.seo h2 { margin: 22px 0 8px; font-size: 17px; font-weight: 700; color: var(--ink); }
.seo h2:first-child { margin-top: 0; }
.seo p, .prose p, .prose li { font-size: 14px; line-height: 1.7; color: var(--sub); margin: 0 0 10px; }
.seo b, .prose strong { color: var(--ink); font-weight: 600; }
.prose h1 { font-size: 24px; margin: 6px 0 12px; }
.prose h2 { font-size: 18px; margin: 26px 0 8px; color: var(--ink); }
.prose h3 { font-size: 15px; margin: 18px 0 6px; color: var(--ink); }
.prose pre, .prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.prose pre { background: var(--card); border: 1px solid var(--divider); border-radius: 12px; padding: 12px; overflow: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 13px; display: block; overflow: auto; }
.prose th, .prose td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.streets { font-size: 13.5px; line-height: 1.9; color: var(--sub); margin: 10px 0 0; }

/* ── розкладка: телефон ──────────────────────────────────────────────────── */
/* Колонка «що дивимось» і колонка «що там відбувається» на телефоні йдуть
   одна під одною. `display: contents` розчиняє ліву колонку, щоб примітку про
   зберігання адрес можна було опустити під картки, а не лишити над ними. */
.home { display: flex; flex-direction: column; }
.home__side { display: contents; }
.home__main { order: 2; }
.home__side .fine { order: 3; }

.hero__side { border-top: 1px solid var(--divider); margin-top: 16px; padding-top: 16px; }

.cta { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 22px 18px; }
.cta h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--navy); }
.cta p { margin: 0; font-size: 14px; color: var(--sub); }

/* Довгий перелік робіт стає у дві колонки там, де картці є куди розвернутись.
   Міряється сама картка, а не вікно: поруч із графіком вона вдвічі вужча. */
.rows { container-type: inline-size; margin-top: 4px; }
@container (min-width: 820px) {
  .rows__in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .rows__in > .list-row:nth-child(2) { border-top: 0; }
}

/* ── розкладка: широкий екран ────────────────────────────────────────────── */
/* Від 960px сторінка перестає бути «телефоном посеред монітора»: головна
   ділиться на дві колонки, картки стають у сітку, карта областей — поруч із
   переліком. */
@media (min-width: 960px) {
  .top { border-bottom-color: var(--divider); }
  .top__in, main { max-width: 1160px; }
  .top__in { padding: 14px 28px 12px; }
  .top__name { font-size: 20px; }
  .top__name svg { width: 24px; height: 24px; }
  .nav__item { padding: 9px 24px; font-size: 15px; }
  main { padding: 12px 28px 64px; }
  h1 { font-size: 32px; }
  .lead, .seo p, .prose p { max-width: 76ch; }
  .card { padding: 22px; border-radius: 20px; }
  .h { font-size: 18px; }

  /* головна */
  .home { display: grid; grid-template-columns: 348px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 12px; }
  .home__side { display: block; position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow: auto; scrollbar-width: thin; }
  .home__side .hd { margin-top: 0; }
  .home__side h1 { font-size: 28px; }
  .home__side .fine { text-align: left; margin-top: 16px; }
  .home__main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .home__main > * { grid-column: 1 / -1; margin-top: 0; }
  .home__main > .card--half { grid-column: auto; }
  .home__main .empty { padding: 56px 8px; }

  /* збережені адреси — стовпчиком, черги — сіткою */
  .chips { overflow: visible; flex-wrap: wrap; }
  .chips--addr { flex-direction: column; }
  .chips--addr .chip { width: 100%; border-radius: 16px; padding: 10px 16px; white-space: normal; }
  .chips--addr .chip.plus {
    order: 9; justify-content: center; gap: 0; font-size: 14px;
    background: none; border: 1px dashed var(--divider); color: var(--steel);
  }
  .chips--addr .chip.plus::after { content: '\00a0Додати адресу'; font-weight: 600; }
  .chips--queue .chip { flex: 1 1 calc(33.333% - 6px); justify-content: center; padding: 5px 8px; }

  /* картка стану: ліворуч стан і відлік, праворуч баланс доби */
  .hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: 28px; align-items: center; padding: 26px; }
  .hero__side { border-top: 0; margin-top: 0; padding-top: 0; border-left: 1px solid var(--divider); padding-left: 28px; }
  .hero-ic { width: 68px; height: 68px; }
  .hero-ic svg { width: 30px; height: 30px; }
  .hero-title { font-size: 30px; }
  .hero-next { font-size: 14.5px; }
  .hero-meta { font-size: 12.5px; }
  .bal-lab .v { font-size: 17px; }
  .bar { height: 58px; border-radius: 13px; }
  .bar--plain { height: 38px; }
  .nowbubble { font-size: 11px; }
  .ticks span, .bar__hours { font-size: 11.5px; }
  .list-row .time { font-size: 15px; }

  /* області, область, населений пункт, черга */
  .split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .split__map { position: sticky; top: 88px; }
  .split .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
  .cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); column-gap: 16px; align-items: start; }
  .cols--wide { grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); }
  .cta { flex-direction: row; justify-content: space-between; text-align: left; padding: 22px 26px; }
  .cta h3 { font-size: 19px; }
  .seo { max-width: 860px; }
  .sheet .panel { max-width: 560px; }
}

@media (min-width: 720px) {
  h1 { font-size: 30px; }
  .top__in { padding-top: 14px; padding-bottom: 12px; }
  .sheet .panel { bottom: auto; top: 50%; transform: translateY(-50%); border-radius: 22px; min-height: 420px; max-height: 80vh; }
  .sheet .grab { display: none; }
}
@media (max-width: 360px) {
  .nav__item { padding: 8px 12px; }
  h1 { font-size: 23px; }
}
