@font-face {
  font-family: Outfit;
  src: url("fonts/Outfit-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #090909;
  --ink: #f4f1ea;
  --muted: #b7b1a8;
  --line: rgba(244, 241, 234, 0.14);
  --orange: #ff6a1a;
  --blue: #8ecfff;
  --max: 1120px;
  --header: 64px;
  --card: #121212;
  --danger: #ff6b6b;
  --ok: #b6e3a8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Outfit, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 430;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--orange); color: #140800; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--orange);
  color: #140800;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.test-banner {
  background: #3a1408;
  color: #ffd7b0;
  border-bottom: 1px solid #ff6a1a55;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.01em;
}
.test-banner .wrap { padding: 8px 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header);
  padding: 0 28px;
  background: rgba(9, 9, 9, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.mark { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; flex-shrink: 0; }
.mark a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark img { width: auto; height: 44px; flex-shrink: 0; object-fit: contain; }
.mark-text { display: flex; flex-direction: column; gap: 2px; }
.mark-rest { font-weight: 430; color: var(--muted); }
.mark-sub { font-size: 11px; font-weight: 520; color: var(--orange); letter-spacing: 0.08em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a {
  font-size: 14px;
  font-weight: 520;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--muted);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav-book {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--orange);
  color: #140800;
}
.nav a.nav-book { color: #140800; }
.nav-book:hover { background: #ff8140; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.page { padding: 40px 0 72px; }
.eyebrow { margin: 0 0 8px; color: var(--orange); font-size: 13px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; }
.page h1 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 52px); font-weight: 650; letter-spacing: -0.04em; line-height: 1.05; }
.lede { margin: 0 0 28px; color: var(--muted); max-width: 46rem; }

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 16px;
  padding: 20px;
  margin: 0 0 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.filters .span-2 { grid-column: span 2; }
.filters label, .field label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.filters .check {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 520;
  color: var(--ink);
  padding-top: 22px;
}
input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d0d0d;
  color: var(--ink);
  font: inherit;
}
input[type="checkbox"] {
  width: 1.1em;
  height: 1.1em;
  min-height: 0;
  min-width: 1.1em;
  padding: 0;
  accent-color: var(--orange);
  flex: none;
}
label.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 520;
  color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.filters-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.filters-meta strong { color: var(--ink); font-weight: 600; }
.problem { color: var(--danger); }

.list { display: flex; flex-direction: column; gap: 16px; }
.card {
  display: block;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
}
.card:hover { border-color: rgba(255, 106, 26, 0.45); }
.card.cancelled { border-color: #ff6b6b55; background: #1a0f0f; }
.card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.when { color: var(--blue); font-weight: 600; letter-spacing: -0.02em; }
.card h2 { margin: 6px 0 8px; font-size: 24px; letter-spacing: -0.03em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag-classic { border-color: #8ecfff66; color: var(--blue); }
.tag-cancelled { border-color: #ff6b6b88; color: var(--danger); background: #ff6b6b18; }
.tag-test { color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 16px 0 0;
}
.facts div { min-width: 0; }
.facts dt { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.card-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 16px; }
.card-actions a, .text-link { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
.card-actions a:hover, .text-link:hover { color: var(--orange); }

.detail {
  margin: 0 0 28px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.detail[hidden] { display: none; }
.detail h2 { margin: 8px 0 12px; font-size: 32px; letter-spacing: -0.03em; }

.empty { padding: 32px 0; color: var(--muted); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; max-width: 800px; }
.form .full { grid-column: 1 / -1; }
.hint { margin: 0; color: var(--muted); font-size: 13px; font-weight: 430; text-transform: none; letter-spacing: 0; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.notice { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: #161616; }
.notice.ok { border-color: #b6e3a855; }
.notice.err { border-color: #ff6b6b66; color: #ffd0d0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; overflow-wrap: anywhere; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #140800;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #ff8140; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #1a1a1a; }
.btn-danger { background: #8a1f1f; color: #fff; }
.btn-danger:hover { background: #a32828; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

.queue { display: flex; flex-direction: column; gap: 16px; }
.queue-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.flag { color: #ffcc80; font-size: 14px; }

.badge-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d0d0d;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.badge-preview img { height: 36px; width: auto; flex-shrink: 0; object-fit: contain; }

.hop {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 16px;
}
.hop img { height: 72px; width: auto; object-fit: contain; margin: 0 auto 20px; display: block; }

.site-footer { padding: 0 0 28px; }
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.site-footer p, .footer-links a { margin: 0; color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 900px) {
  :root { --header: 56px; }
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .site-header {
    height: auto;
    min-height: var(--header);
    flex-wrap: wrap;
    padding: 8px 10px;
    gap: 8px;
  }
  .mark { font-size: 14px; }
  .mark img { height: 36px; width: auto; flex-shrink: 0; object-fit: contain; }
  .mark-rest { display: none; }
  .nav { gap: 8px 12px; justify-content: flex-end; }
  .nav a { font-size: 12px; white-space: nowrap; }
  .nav-book { padding: 6px 9px; }
  .filters, .form, .facts { grid-template-columns: 1fr; }
  .filters .span-2 { grid-column: auto; }
  .card { padding: 18px; }
  .page { padding-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.place-search { position: relative; }
.place-search input[type="search"] { width: 100%; }
#place-suggestions {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #141414;
  max-height: 240px;
  overflow: auto;
  z-index: 4;
}
#place-suggestions li {
  margin: 0;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
}
#place-suggestions li[aria-selected="true"],
#place-suggestions li:hover { background: #242424; color: var(--ink); }
.place-attr { margin-top: 8px; }
#place-status { min-height: 1.3em; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
