/* Long Table — коворкінг на Подолі. Концепція 1 «Розклад дня»: набір Geologica на всю ширину, панорама зали
   зі шкалою дня, кнопки-таблетки. Щиток «Що працює при відключеннях» — з концепції 2, вибір формату в цінах
   на телефоні — з концепції 3. Кольори — токени двох тем; графіки в коді немає, лише кольори, рамки й тіні. */
:root {
  --bg: #121416; --band: #16191B; --surface: #1B1E21; --surface-2: #262A2E; --line: #33383D;
  --text: #EEEAE3; --muted: #A9A49B;
  --accent: #49C5B1; --on-accent: #0B1F1C; --accent-text: #49C5B1;
  --err: #FF9A8A;
  --scrim: rgba(18, 20, 22, .82);
  --ph: #22262A;
  --font: "Geologica", system-ui, sans-serif;
  --pill: 999px; --r-img: 28px; --r-box: 24px;
  --wrap: 1312px; --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #EEF1F0; --band: #E4E9E7; --surface: #FFFFFF; --surface-2: #DDE3E1; --line: #C3CBC8;
  --text: #15181A; --muted: #4F5653;
  --accent: #0E7566; --on-accent: #FFFFFF; --accent-text: #0B6457;
  --err: #B3261E;
  --scrim: rgba(255, 255, 255, .86);
  --ph: #D5DCDA;
  color-scheme: light;
}
:root[lang="zh-Hans"] { --font: "Geologica", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
:root[lang="ja"] { --font: "Geologica", "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif; }
:root[lang="zh-Hans"] body, :root[lang="ja"] body { line-break: strict; }
:root[lang="ja"] :is(h1, h2, h3, .btn, summary, .what, figcaption, .k, b) { word-break: auto-phrase; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--font); overflow-wrap: break-word; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }  /* hidden сильніший за display з класів: інакше незавантажений знак (img) займає 135 px і виштовхує вордмарк за край */
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -100px; z-index: 60; background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: var(--pill); }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Кнопки: одна сім'я «таблетка» ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: var(--pill); border: 1.5px solid transparent; background: none; color: var(--text); font: 600 16px/1.15 var(--font); text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--text)); }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; }
.btn[disabled] { opacity: .55; cursor: default; }

/* ---------- Іконки: SVG-маска кольору тексту → картинка → контур-заглушка ---------- */
.ico { display: inline-block; flex: none; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.ico:not([style*="--icon"]):not(.as-img) { background: none; }
.ico.as-img { background: none; }
.ico.as-img img { width: 100%; height: 100%; }
[data-theme="dark"] .ico.as-img img { filter: invert(1); }
.ico.is-missing { display: none; }  /* немає файлу — без іконки, текст сам по собі */
.ico-ui { width: 20px; height: 20px; }
.ico-ui.is-missing { display: inline-grid; place-items: center; font: 600 18px/1 var(--font); }
.ico-ui.is-missing::before { content: attr(data-fb); }

/* ---------- Фото: нейтральна заглушка тієї ж пропорції, поки немає файлу ---------- */
.ph { position: relative; margin: 0; overflow: hidden; background: var(--ph); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
img.is-missing { visibility: hidden; }

/* ---------- Шапка ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top.is-stuck { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; min-width: 0; text-decoration: none; flex: 0 1 auto; overflow: hidden; }
.top .tools { flex: none; }
.brand .logo { height: 40px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
[data-theme="dark"] .brand .logo-light, [data-theme="light"] .brand .logo-dark { display: none; }
.wordmark { font: 700 22px/1 var(--font); letter-spacing: -.02em; white-space: nowrap; }
[data-theme="dark"] .brand.has-dark .wordmark, [data-theme="light"] .brand.has-light .wordmark { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.main-nav { margin-left: auto; display: flex; gap: 2px; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--pill); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.main-nav a:hover { background: var(--surface-2); }
.tools { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; }
/* Без JS меню, мова й тема не працюють — ховаємо їх; лишаються посилання й контент */
:root:not(.js) .tools > :not(.head-cta) { display: none !important; }

/* Кнопки шапки в мові Long Table — як «шкала дня» першого екрана: заповнена доріжка-таблетка з тонкою лінією,
   вибране — кругла або таблеткова ручка кольору акценту. */
.lang-btn, .menu-btn { background: var(--surface); border-width: 1px; border-color: var(--line); }
.lang-btn:hover, .menu-btn:hover { border-color: var(--text); }

/* Перемикач теми «день / вечір»: кругла ручка їде до активної теми; іконка на ручці — колір на акценті */
.daylight { position: relative; display: inline-grid; grid-template-columns: 36px 36px; align-items: center; flex: none; width: 80px; height: 44px; margin: 0; padding: 3px; box-sizing: border-box; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); color: var(--muted); font: inherit; cursor: pointer; transition: border-color .15s; }
.daylight:hover { border-color: var(--text); }
.dl-knob { position: absolute; top: 3px; left: 3px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); transition: transform .22s cubic-bezier(.3, .7, .2, 1); }
.daylight[aria-checked="true"] .dl-knob { transform: translateX(36px); }
.dl-cell { position: relative; display: grid; place-items: center; width: 36px; height: 36px; transition: color .22s; }
.daylight[aria-checked="false"] .dl-day, .daylight[aria-checked="true"] .dl-eve { color: var(--on-accent); }
.daylight .ico-ui { width: 18px; height: 18px; }
.daylight .ico-ui.is-missing { font: 400 17px/1 "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols 2", var(--font); font-variant-emoji: text; }
@media (prefers-reduced-motion: reduce) { .dl-knob, .dl-cell { transition: none; } }

/* Перемикач мови: кнопка-таблетка + список */
.lang { position: relative; flex: none; }
.lang-btn { gap: 8px; min-width: 64px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.lang-btn .chev { width: 7px; height: 7px; color: var(--accent-text); border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.lang-btn[aria-expanded="true"] .chev { transform: translateY(2px) rotate(-135deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; min-width: 220px; margin: 0; padding: 6px; list-style: none; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 32px rgba(0, 0, 0, .28); }
.lang-list[hidden] { display: none; }
.lang-list [role="option"] { display: grid; grid-template-columns: 1fr auto 18px; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 16px; cursor: pointer; font-size: 16px; }
.lang-list [role="option"]:hover, .lang-list [role="option"].is-active { background: var(--surface-2); }
.lang-list .code { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.lang-list .tick { width: 10px; height: 10px; justify-self: center; border-radius: 50%; }
/* Вибрана мова — як вибрана година на шкалі дня: заливка акцентом */
.lang-list [role="option"][aria-selected="true"] { font-weight: 600; background: var(--accent); color: var(--on-accent); }
.lang-list [aria-selected="true"] .code { color: var(--on-accent); }
.lang-list [aria-selected="true"] .tick { background: var(--on-accent); }

.lang-list:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.lang-list [role="option"].is-active { outline: 2px solid var(--accent); outline-offset: -2px; }
.lang-list [role="option"][aria-selected="true"].is-active { outline-color: var(--text); }
.menu-tools .lang-list { left: 0; right: auto; top: auto; bottom: calc(100% + 8px); }

/* Мобільне меню */
.mobile-menu { border: 0; padding: 0; margin: 0 0 0 auto; width: min(400px, 100vw); max-width: none; height: 100dvh; max-height: none; background: var(--bg); color: var(--text); }
.mobile-menu::backdrop { background: rgba(0, 0, 0, .55); }
.menu-in { display: grid; gap: 4px; padding: 16px var(--gutter) 32px; }
.menu-close { justify-self: end; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { display: flex; align-items: center; min-height: 52px; font-size: 21px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.mobile-menu > .menu-in > .btn-primary { margin-top: 12px; }

/* ---------- Перший екран ---------- */
.hero { padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 6vw, 88px); }
.where { margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 15px; }
.where b { color: var(--text); font-weight: 500; }
h1 { font-weight: 600; font-size: clamp(40px, 5.7vw, 84px); line-height: 1; letter-spacing: -.035em; }
h1 em { display: block; font-style: normal; color: var(--accent-text); }
:root:not([lang="uk"]) h1 { font-size: clamp(36px, 5vw, 76px); }
.intro { margin-top: clamp(20px, 2.6vw, 36px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.lead { max-width: 48ch; font-size: clamp(17px, 1.45vw, 20px); color: var(--muted); }
.lead b { color: var(--text); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.day { margin-top: clamp(28px, 3.4vw, 48px); }
.stage { position: relative; }
.pano { height: clamp(300px, calc(100svh - 560px), 560px); border-radius: var(--r-img); }
.pano img { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; pointer-events: none; }
.pano img.is-on { opacity: 1; pointer-events: auto; }
.ruler { position: absolute; left: 20px; right: 20px; bottom: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 26px; background: var(--scrim); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ruler [role="tab"] { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; min-height: 64px; padding: 10px 18px; border: 0; border-radius: 20px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ruler [role="tab"]:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.ruler [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.ruler time { font: 600 22px/1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ruler .what { font-size: 15px; line-height: 1.25; }
.ruler .now { grid-column: 1 / -1; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; display: none; }
.ruler [data-now] .now { display: block; }
.moments { margin-top: 18px; min-height: 3.2em; max-width: 72ch; }
.moment b { font-weight: 600; }

.rates { margin: clamp(28px, 3vw, 40px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.rates li { border-right: 1px solid var(--line); }
.rates li:last-child { border-right: 0; }
.rates a { display: block; padding: 18px 20px 4px; min-height: 44px; text-decoration: none; }
.rates li:first-child a { padding-left: 0; }
.rates a:hover .sum { color: var(--accent-text); }
.rates .k { display: block; color: var(--muted); font-size: 15px; }
.rates .sum { display: block; margin-top: 4px; font: 600 clamp(22px, 2.2vw, 30px)/1.1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* ---------- Розділи ---------- */
.section { padding: clamp(64px, 8vw, 120px) 0; }
.band { background: var(--band); }
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
h2 { font-weight: 600; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.02; letter-spacing: -.03em; }
h3 { font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.sub { color: var(--muted); font-size: clamp(17px, 1.3vw, 19px); max-width: 52ch; }
.more { margin-top: 32px; }

/* Формати: чотири рядки з ціною праворуч */
.fmt-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fmt { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(180px, auto); gap: 20px 32px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.fmt-ph { width: 120px; aspect-ratio: 4 / 5; border-radius: 18px; }
.fmt h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 2.2vw, 32px); }
.fmt h3 .ico { color: var(--accent-text); }
.fmt .who { margin-top: 8px; font-size: 18px; }
.fmt .inc { margin-top: 6px; color: var(--muted); max-width: 70ch; }
.fmt-price { text-align: right; }
.fmt-price .sum { display: block; font: 600 clamp(26px, 2.4vw, 34px)/1.1 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }
.fmt-price .per { color: var(--muted); font-size: 15px; }

/* Простір: список зон ліворуч, велике фото праворуч */
.zones { display: grid; grid-template-columns: minmax(240px, 4fr) minmax(0, 8fr); gap: 32px; align-items: start; }
.zone-list { display: grid; gap: 4px; }
.zone-list [role="tab"] { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-height: 56px; padding: 12px 20px; border: 0; border-radius: var(--pill); background: transparent; color: var(--text); font: 500 18px/1.25 var(--font); text-align: left; cursor: pointer; }
.zone-list [role="tab"]:hover { background: var(--surface-2); }
.zone-list [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.zone-list .zc { font-size: 14px; color: inherit; opacity: .8; white-space: nowrap; }
.zone-ph { aspect-ratio: 4 / 3; border-radius: var(--r-img); }
.zone figcaption { margin-top: 14px; font-size: 18px; max-width: 60ch; }
.zone { margin: 0; }

/* Світло і зв'язок: щиток */
.power { background: #0E1012; color: #EEEAE3; --text: #EEEAE3; --muted: #A9A49B; --line: #33383D; --surface: #1B1E21; --ph: #22262A; --accent: #49C5B1; --accent-text: #49C5B1; --on-accent: #0B1F1C; }
.power :focus-visible { outline-color: #49C5B1; }
.power .ico.as-img img { filter: invert(1); }
.power-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.power-text .sub { margin-top: 16px; }
.power-ph { margin-top: 32px; aspect-ratio: 4 / 3; border-radius: var(--r-img); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box); padding: clamp(20px, 3vw, 36px); }
.panel h3 { font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lamps { list-style: none; margin: 16px 0 0; padding: 0; }
.lamps li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--line); }
.lamps li:first-child { border-top: 0; }
.lamps b { font-size: 20px; font-weight: 600; }
.lamps p { margin-top: 4px; color: var(--muted); }
.lamps li > div { flex: 1 1 auto; min-width: 0; }
.lamp { flex: none; }
.lamps .ico { margin-top: 2px; color: var(--text); }
.lamp { width: 14px; height: 14px; margin-top: 7px; border-radius: 50%; border: 1.5px solid var(--accent); background: transparent; transition: background-color .3s ease, box-shadow .3s ease; }
.panel.is-lit .lamp { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent); }
.panel.is-lit li:nth-child(2) .lamp { transition-delay: .25s; }
.panel.is-lit li:nth-child(3) .lamp { transition-delay: .5s; }
.panel.is-lit li:nth-child(4) .lamp { transition-delay: .75s; }

/* Правила */
.rules { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 64px; align-items: start; }
.rules .lead2 { margin-top: 24px; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.4; max-width: 34ch; }
.rules p + p { margin-top: 16px; color: var(--muted); max-width: 56ch; }
.rule-list { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rule-list li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; }
.rule-list li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Ціни: таблиця; на телефоні — вибір формату */
.pick { display: none; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-box); background: var(--surface); overflow: hidden; }
.price-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.price-table th, .price-table td { padding: 16px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); font-size: 16px; }
.price-table thead th, .price-table thead td { border-top: 0; font-size: 18px; font-weight: 600; background: var(--surface-2); }
.price-table tbody th { font-weight: 500; color: var(--muted); width: 22%; }
.price-table .row-price b { display: block; font: 600 22px/1.15 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-table .row-price span { color: var(--muted); font-size: 14px; }
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; margin-top: 28px; color: var(--muted); }
.terms b { color: var(--text); font-weight: 600; }

/* Як почати */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.steps li { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.steps li:first-child { border-top-color: var(--accent); }
.steps .num { position: absolute; top: -18px; left: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); font-weight: 600; font-size: 15px; }
.steps li:first-child .num { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.steps b { display: block; font-size: 20px; font-weight: 600; }
.steps p { margin-top: 6px; color: var(--muted); }

/* Заявки */
.req-box { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; padding: clamp(24px, 3.5vw, 48px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box); scroll-margin-top: 96px; }
.req-intro p { margin-top: 12px; color: var(--muted); }
.req-box .req-result { grid-column: 1 / -1; }
.req-form { display: grid; gap: 18px; align-content: start; }
.req-form > .btn { justify-self: start; }
.field { display: grid; gap: 6px; min-width: 0; }
label, legend { font-weight: 500; font-size: 15px; }
input[type="text"], input[type="date"], select { width: 100%; min-height: 48px; padding: 0 18px; border-radius: var(--pill); border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font: 400 16px/1.2 var(--font); }
select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 24px) 21px, calc(100% - 18px) 21px; background-size: 6px 6px; background-repeat: no-repeat; }
input:hover, select:hover { border-color: var(--muted); }
input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.err { color: var(--err); font-size: 15px; font-weight: 500; }
.hint { color: var(--muted); font-size: 15px; }
.req-result { margin-top: 24px; padding: 24px; border-radius: var(--r-box); border: 1.5px solid var(--accent); background: var(--surface); }
.req-result:focus { outline: none; }
.req-result:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.res-h { font-weight: 500; }
.req-text { margin: 14px 0 18px; padding: 16px 18px; border-radius: 16px; background: var(--bg); white-space: pre-wrap; font: 400 15px/1.5 var(--font); overflow-wrap: anywhere; }
.status { margin-top: 10px; min-height: 1.5em; color: var(--muted); }

/* Переговорні */
.rooms { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px 48px; align-items: start; }
.room-ph { margin: 0; }
.room-ph .ph { aspect-ratio: 4 / 3; border-radius: var(--r-img); }
.room-ph figcaption { margin-top: 12px; color: var(--muted); }
.choice { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice legend { margin-bottom: 8px; padding: 0; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt > span { display: grid; gap: 2px; min-height: 64px; padding: 12px 20px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--bg); }
.opt > span > span { color: var(--muted); font-size: 15px; }
.opt input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.total { display: flex; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.total b { font: 600 30px/1 var(--font); font-variant-numeric: tabular-nums; }

/* Події */
.events { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; align-items: start; }
.ev-list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ev-list li { display: grid; grid-template-columns: minmax(150px, 2fr) minmax(0, 3fr); gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ev-list .when { color: var(--accent-text); font-weight: 600; }
.ev-list b { font-size: 20px; font-weight: 600; }
.ev-list p { margin-top: 4px; color: var(--muted); }
.ev-photos { display: grid; gap: 16px; }
.ev-photos .ph { aspect-ratio: 4 / 3; border-radius: var(--r-img); }
.ev-photos .ph:nth-child(2) { width: 72%; justify-self: end; }

/* Питання */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 48px; align-items: start; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 19px; font-weight: 500; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .15s; }
.qa details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.qa details p { padding: 0 40px 22px 0; color: var(--muted); max-width: 66ch; }

/* Контакти й карта */
.contacts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.cdata { margin: 28px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.cdata > div { display: grid; grid-template-columns: minmax(130px, 2fr) minmax(0, 3fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.cdata dt { color: var(--muted); font-size: 15px; }
.cdata dd { margin: 0; font-weight: 500; }
.cdata a { display: inline-block; padding-block: 10px; margin-block: -10px; text-underline-offset: 3px; }
.way { margin-top: 20px; color: var(--muted); }
.entrance { margin-top: 24px; aspect-ratio: 16 / 10; border-radius: var(--r-img); }
.place { display: grid; gap: 16px; }
.osm-frame { border-radius: var(--r-img); overflow: hidden; border: 1px solid var(--line); }
.osm-frame:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.osm { position: relative; width: 100%; aspect-ratio: 16 / 12; background: var(--ph); overflow: hidden; z-index: 0; outline: 0; }
.osm-fallback { margin: 0; padding: 24px; display: grid; gap: 8px; align-content: center; height: 100%; font-weight: 500; }
.osm.is-ready .osm-fallback { display: none; }
.osm-link { color: var(--accent-text); display: inline-block; padding-block: 10px; justify-self: start; }
.place-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.place-hint { color: var(--muted); font-size: 14px; }
.place .osm.leaflet-container { font: 400 14px/1.4 var(--font); background: var(--ph); }
[data-theme="dark"] .place .osm .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) saturate(.4) brightness(.85) contrast(.9); }
[data-theme="light"] .place .osm .leaflet-tile-pane { filter: saturate(.65); }
.place .osm .leaflet-bar { border: 1px solid var(--line); border-radius: 22px; box-shadow: none; overflow: hidden; }
.place .osm .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font: 500 22px/44px var(--font); background: var(--surface); color: var(--text); border-color: var(--line); }
.place .osm .leaflet-bar a:hover { background: var(--surface-2); }
.place .osm .leaflet-bar a:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.place .osm .leaflet-bar a.leaflet-disabled { background: var(--surface); color: var(--muted); }
.place .osm .leaflet-control-attribution { background: var(--surface); color: var(--muted); font-size: 12px; padding: 2px 8px; border-top-left-radius: 10px; }
.place .osm .leaflet-control-attribution a { color: var(--accent-text); }
.place .osm .leaflet-popup-content-wrapper, .place .osm .leaflet-popup-tip { background: var(--surface); color: var(--text); border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.place .osm .leaflet-popup-tip { border-radius: 0; }
.place .osm .leaflet-popup-content { margin: 12px 16px; font-weight: 500; }
.place .osm a.leaflet-popup-close-button { width: 44px; height: 44px; font: 400 22px/44px var(--font); color: var(--muted); }
.place .cw-pin { display: grid; place-items: center; background: none; border: 0; }
.place .cw-pin::before { content: ""; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--accent); }
.place .cw-pin:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; border-radius: 50%; }

/* Підвал */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; }
.foot p { color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; border-radius: var(--pill); }
.foot nav a:hover { background: var(--surface-2); }
.foot .copy { grid-column: 1 / -1; font-size: 14px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .main-nav, .tools > .head-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .tools { margin-left: auto; }
}
@media (max-width: 960px) {
  .head, .power-in, .rules, .zones, .rooms, .events, .faq, .contacts, .req-box { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .terms { grid-template-columns: 1fr; }
  .zone-list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .zone-list [role="tab"] { min-height: 48px; }
  .zone-list .zc { display: none; }
  .ev-photos { grid-template-columns: 1fr 1fr; }
  .ev-photos .ph:nth-child(2) { width: auto; }
  /* Ціни: показуємо одну колонку, вибір формату — сегменти */
  .pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; margin-bottom: 16px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
  .seg { min-height: 48px; padding: 0 10px; border: 1.5px solid transparent; border-radius: 20px; background: transparent; color: var(--text); font: 500 15px/1.15 var(--font); cursor: pointer; }
  .seg[aria-pressed="true"] { border-color: var(--accent); background: var(--bg); font-weight: 600; }
  .price-table thead { display: none; }
  .price-table tbody th { width: 44%; }
  .price-table tbody td { display: none; }
  .price-table[data-show="1"] td:nth-of-type(1), .price-table[data-show="2"] td:nth-of-type(2), .price-table[data-show="3"] td:nth-of-type(3),
  .price-table[data-show="4"] td:nth-of-type(4), .price-table[data-show="5"] td:nth-of-type(5) { display: table-cell; }
  .price-table .row-price b { white-space: normal; }
}
@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; }
  .pano { height: auto; aspect-ratio: 4 / 3; border-radius: 20px; }
  .ruler { position: static; margin-top: 10px; background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid var(--line); }
  .ruler [role="tab"] { grid-template-columns: 1fr; padding: 10px 12px; min-height: 56px; }
  .ruler .what { display: none; }
  .rates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rates li:nth-child(2) { border-right: 0; }
  .rates li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rates li:nth-child(3) a { padding-left: 0; }
  .rates a { padding-bottom: 16px; }
  .rates .sum { font-size: 20px; }
  .fmt { grid-template-columns: 88px minmax(0, 1fr); align-items: start; }
  .fmt-ph { width: 88px; border-radius: 14px; }
  .fmt-price { grid-column: 2; text-align: left; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .row { grid-template-columns: 1fr 1fr; }
  .row .field:first-child { grid-column: 1 / -1; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .choice { grid-template-columns: 1fr; }
  .ev-list li { grid-template-columns: 1fr; }
  .ev-photos { grid-template-columns: 1fr; }
  .ev-photos .ph:nth-child(2) { display: none; }
  .cdata > div { grid-template-columns: 1fr; gap: 2px; }
  .osm { aspect-ratio: auto; height: 340px; }
  .qa details p { padding-right: 0; }
}
@media (max-width: 480px) {
  .actions .btn, .req-form > .btn, .place-actions .btn { flex: 1 1 100%; width: 100%; }
  .lang-btn { min-width: 48px; padding: 0 12px; }
  .lang-btn .chev { display: none; }
  .tools { gap: 6px; }
  .menu-btn { width: 44px; padding: 0; }
  .menu-btn .menu-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .top-in { gap: 12px; }
  .wordmark { font-size: 20px; }
  .brand .logo { height: 36px; }
}

/* ---------- Редактор вмісту (?edit=1, лише локально) ---------- */
.ed-editing [data-k], .ed-editing img[data-slot] { cursor: pointer; }
.ed-editing [data-k]:hover, .ed-editing .ed-hover { outline: 2px dashed var(--accent); outline-offset: 2px; }
.ed-editing img[data-slot]:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.ed-editing .pano img { pointer-events: none; }
.ed-editing .pano img.is-on { pointer-events: auto; }
.ed-editing img[data-slot].is-missing { visibility: visible; color: transparent; background: color-mix(in srgb, var(--accent) 12%, transparent); outline: 2px dashed var(--accent); outline-offset: -2px; }
.ed-pencil { position: absolute; z-index: 55; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; background: var(--accent); color: var(--on-accent); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.ed-pencil[hidden] { display: none; }
.ed-bar { position: sticky; bottom: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px var(--gutter); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .25); }
.ed-bar .ed-msg { flex: 1 1 220px; color: var(--muted); font-size: 15px; }
.ed-bar .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
.ed-dialog { border: 0; padding: 0; background: var(--surface); color: var(--text); width: min(calc(100% - 32px), 560px); border-radius: var(--r-box); box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, .4); }
.ed-dialog::backdrop { background: rgba(5, 8, 10, .6); }
.ed-dialog form { margin: 0; padding: 24px; display: grid; gap: 14px; }
.ed-dialog h2 { font-size: 24px; letter-spacing: -.01em; }
.ed-dialog textarea { width: 100%; min-height: 140px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--font); resize: vertical; }
.ed-dialog textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.ed-dialog .ed-hint { color: var(--muted); font-size: 14px; }
.ed-dialog .err { min-height: 0; }
.ed-dialog .err:empty { display: none; }
.ed-dialog .actions { margin-top: 6px; }
.ed-dialog input[type="file"] { font: inherit; min-height: 44px; }
