/* Гостевая страница: макет «Гостевой портал — бронь», системный шрифт, без внешних ресурсов. */
:root {
  color-scheme: light;
  --bg: #f4f2ee;
  --surface: #fff;
  --ink: #1c1b19;
  --ink-2: #3d3a35;
  --muted: #625d55;
  --line: #e2ddd4;
  --accent: #b4552d;
  --accent-ink: #8f4020;
  --ok: #1a7f4b;
  --warn-bg: #fff8e1;
  --warn-ink: #6b4a00;
  --radius: 1rem;
  --radius-s: 0.75rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 1rem; line-height: 1.45; -webkit-text-size-adjust: 100%; }
p, h1, h2, h3, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.banner { background: var(--warn-bg); color: var(--warn-ink); padding: 0.75rem 1rem; font-size: 0.875rem; font-weight: 700; }

/* Шапка: фото квартиры или цветная заглушка, затемнение под белым текстом. */
.hero { position: relative; height: 18.75rem; background: linear-gradient(180deg, #7d766b, #b9b2a6); overflow: hidden; }
.hero--placeholder { background: linear-gradient(160deg, #b4552d, #d9a27e); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0) 55%); }
.hero-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.25rem 1rem 0; color: #fff; }
.hero-greeting { font-size: 1.25rem; font-weight: 800; text-shadow: 0 1px 2px rgb(0 0 0 / 0.4); }
.wa-round { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #1a8f4b; color: #fff; display: flex; align-items: center; justify-content: center; }
.wa-round:hover { color: #fff; background: #157a40; }

.summary { position: relative; z-index: 2; margin: -4.5rem 1rem 0; background: var(--surface); border: 1px solid var(--line); border-radius: 1.125rem; box-shadow: 0 8px 24px rgb(0 0 0 / 0.08); }
.summary-head { padding: 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.summary-title { font-size: 1.0625rem; font-weight: 800; }
.summary-body { padding: 0.75rem 1rem 1rem; border-top: 1px solid #eeeae3; display: flex; flex-direction: column; gap: 0.75rem; }
.dates { display: flex; justify-content: space-between; gap: 1rem; }
.dates-end { text-align: right; }
.date { font-size: 0.9375rem; font-weight: 700; }
.cap { font-size: 0.8125rem; color: var(--muted); }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.tab { min-height: 3rem; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 0.875rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 0.5rem; text-decoration: none; }
.tab:hover { color: var(--ink); border-color: var(--accent); }
.tab[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

.page { padding: 1.25rem 1rem 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.page.narrow { padding-top: 2rem; }
.panel { display: flex; flex-direction: column; gap: 1rem; scroll-margin-top: 1rem; }
.h1 { font-size: 1.375rem; font-weight: 800; }
.h2 { font-size: 1.125rem; font-weight: 800; }
.h { font-size: 1rem; font-weight: 800; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; gap: 0.625rem; scroll-margin-top: 1rem; }
.card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.block { display: flex; flex-direction: column; gap: 0.625rem; }
.prose { color: var(--ink-2); }
.prose ul, .steps { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 0.5rem; }
.pairs { display: flex; flex-direction: column; gap: 0.375rem; }
.pairs > div { display: flex; justify-content: space-between; gap: 1rem; }
.pairs dt { color: var(--muted); font-size: 0.875rem; }
.pairs dd { font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.pairs .ok { color: var(--ok); }
.defs dt { font-weight: 700; margin-top: 0.5rem; }
.defs dt:first-child { margin-top: 0; }
.defs dd { color: var(--ink-2); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; user-select: all; }
.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.price { font-weight: 800; white-space: nowrap; }
.stack-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.notice { font-weight: 700; }
.photo { border-radius: var(--radius-s); }

.tiles { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25rem; }
.tile { min-height: 4.75rem; display: flex; flex-direction: column; align-items: center; gap: 0.375rem; font-size: 0.8125rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.tile:hover { color: var(--accent); }
.tile-ic { width: 2.75rem; height: 2.75rem; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }

.btn { min-height: 3rem; border-radius: var(--radius-s); border: 0; background: var(--accent); color: #fff; font: inherit; font-size: 0.9375rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.5rem 1rem; text-align: center; text-decoration: none; cursor: pointer; }
.btn:hover { color: #fff; background: var(--accent-ink); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); }
.actions { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: 0.625rem; }
.btn.stack { flex-direction: column; min-height: 4.75rem; gap: 0.25rem; font-size: 0.8125rem; height: 100%; }
.code { font-size: 2.25rem; font-weight: 800; letter-spacing: 0.35em; text-align: center; padding: 0.875rem; border-radius: var(--radius-s); background: var(--bg); font-variant-numeric: tabular-nums; }

/* Без JS все секции идут подряд. Скрывать неактивные разделы можно только после того,
   как скрипт выбрал вкладку (класс tabs-ready): сбой скрипта не должен прятать код и Wi‑Fi. */
.js-only { display: none; }
.js .js-only { display: flex; }
.tabs-ready .panel:not(.is-active) { display: none; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.foot { text-align: center; }
