:root {
  --ink: #101b19;
  --ink-soft: #30403d;
  --cream: #f5f2e9;
  --paper: #fffdf7;
  --line: #d8d9d0;
  --lime: #c8ff45;
  --green: #1ca77b;
  --green-soft: #dff6ec;
  --coral: #ff6d55;
  --blue: #5568ff;
  --muted: #6c7774;
  --shadow: 0 24px 70px rgba(16, 27, 25, 0.12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 90% 8%, rgba(200, 255, 69, 0.2), transparent 30rem),
    radial-gradient(circle at 8% 30%, rgba(85, 104, 255, 0.08), transparent 26rem),
    var(--cream);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 34px;
  padding: 8px 20px;
  color: white;
  background: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topline__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100% - 48px));
  height: 92px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand__mark {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ink);
}

.brand__mark i {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid var(--lime);
  border-radius: 50%;
}

.brand__mark i:nth-child(2) {
  width: 21px;
  height: 21px;
  opacity: 0.75;
}

.brand__mark i:nth-child(3) {
  width: 5px;
  height: 5px;
  border: 0;
  background: var(--coral);
}

.brand__mark::after {
  position: absolute;
  width: 23px;
  height: 2px;
  background: var(--lime);
  content: "";
  transform: rotate(-37deg) translate(7px, 5px);
  transform-origin: right;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.city {
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.7);
  font-weight: 750;
}

.round-button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 11px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
}

.round-button svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

main {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 8px 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: inherit;
}

.quest-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(390px, 0.65fr);
  gap: 32px;
  align-items: start;
}

.quest-info {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 27, 25, 0.12);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.quest-cover {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(16, 27, 25, 0.1), rgba(16, 27, 25, 0.72)),
    linear-gradient(145deg, #65706d, #17211f 58%, #0a100f);
}

.quest-cover::before,
.quest-cover::after {
  position: absolute;
  content: "";
}

.quest-cover::before {
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
}

.quest-cover::after {
  right: -8%;
  bottom: -48%;
  width: 66%;
  aspect-ratio: 1;
  border: 1px solid rgba(200, 255, 69, 0.25);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(200, 255, 69, 0.04),
    0 0 0 84px rgba(200, 255, 69, 0.03);
}

.quest-cover__radar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(200, 255, 69, 0.24);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.quest-cover__radar span {
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(200, 255, 69, 0.24);
  border-radius: 50%;
}

.quest-cover__radar span:nth-child(2) {
  inset: 32%;
}

.quest-cover__radar span:nth-child(3) {
  inset: 48%;
  border: 0;
  background: var(--coral);
  box-shadow: 0 0 28px rgba(255, 109, 85, 0.7);
}

.quest-cover__radar i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104px;
  height: 2px;
  background: var(--lime);
  box-shadow: 0 0 16px rgba(200, 255, 69, 0.7);
  transform: rotate(-36deg);
  transform-origin: left;
}

.quest-cover__label {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: white;
  background: rgba(16, 27, 25, 0.55);
  font-size: 12px;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

.quest-cover__score {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 220px;
  padding: 12px 16px;
  border-radius: 16px;
  color: var(--ink);
  background: var(--lime);
}

.quest-cover__score strong {
  font-size: 27px;
  letter-spacing: -0.06em;
}

.quest-cover__score span {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.quest-copy {
  padding: 42px 46px 50px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 20px;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.quest-lead {
  max-width: 690px;
  margin-bottom: 32px;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.55;
}

.quest-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quest-facts div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 18px 22px 0;
}

.quest-facts div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.quest-facts strong {
  font-size: 18px;
}

.quest-facts span,
.address-card span,
.price span {
  color: var(--muted);
  font-size: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tags span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.address-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 42px;
  padding: 18px;
  border-radius: 18px;
  background: #edf1ec;
}

.address-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: white !important;
  background: var(--ink);
  font-size: 20px !important;
}

.address-card div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.description {
  max-width: 720px;
}

.description h2 {
  margin-bottom: 16px;
  font-size: 27px;
  letter-spacing: -0.04em;
}

.description p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.booking-card {
  position: sticky;
  top: 22px;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--ink);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--ink);
}

.booking-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
}

.booking-card__head h2 {
  margin-bottom: 0;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #087453;
  background: var(--green-soft);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.live-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(28, 167, 123, 0.13);
}

.live-status.is-error {
  color: #a52d1b;
  background: #ffe8e3;
}

.live-status.is-error span {
  background: var(--coral);
  box-shadow: none;
}

.booking-section {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.booking-section--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-label > span {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-label small {
  color: var(--muted);
  font-size: 11px;
}

.date-strip {
  display: grid;
  grid-template-columns: repeat(var(--date-count, 7), minmax(0, 1fr));
  gap: 5px;
}

.date-toolbar {
  display: grid;
  margin-bottom: 8px;
  grid-template-columns: minmax(0, 3fr) minmax(150px, 1fr);
  align-items: center;
  gap: 14px;
}

.date-week-nav {
  display: grid;
  width: 100%;
  grid-template-columns: 34px minmax(130px, 1fr) 34px;
  align-items: center;
  gap: 6px;
}

.date-week-button,
.date-picker {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-soft);
  background: white;
}

.date-week-button {
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.date-week-button:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.date-period {
  display: grid;
  min-height: 34px;
  min-width: 0;
  overflow: hidden;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  font-size: 11px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-picker {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 0 11px;
  place-items: center;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.date-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.date-button {
  display: flex;
  min-width: 0;
  padding: 9px 3px;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  cursor: pointer;
}

.date-button span {
  overflow: hidden;
  max-width: 100%;
  font-size: 9px;
  font-weight: 750;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.date-button strong {
  font-size: 16px;
}

.date-button.is-active {
  border-color: var(--ink);
  background: var(--lime);
  box-shadow: 0 3px 0 var(--ink);
}

.empty-message strong,
.empty-message span {
  display: block;
}

.empty-message strong {
  color: var(--ink);
  font-size: 12px;
}

.empty-message span {
  max-width: 360px;
  font-size: 10px;
  line-height: 1.45;
}

.counter {
  display: grid;
  grid-template-columns: 38px 48px 38px;
  height: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.counter button {
  border: 0;
  background: white;
  font-size: 20px;
  cursor: pointer;
}

.counter output {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  font-weight: 850;
}

.price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.price strong {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.mode-options {
  display: grid;
  gap: 7px;
}

.mode-options button {
  display: flex;
  padding: 11px 13px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  text-align: left;
}

.mode-options button span {
  color: var(--muted);
  font-size: 11px;
}

.mode-options button.is-active {
  border-color: var(--blue);
  background: rgba(85, 104, 255, 0.08);
  box-shadow: inset 3px 0 0 var(--blue);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  min-height: 96px;
}

.slot-button {
  position: relative;
  min-height: 48px;
  padding: 9px 5px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: white;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.slot-button:hover,
.slot-button.is-active {
  background: var(--lime);
  box-shadow: 0 3px 0 var(--ink);
  transform: translateY(-1px);
}

.slot-button:disabled {
  border-color: var(--line);
  color: #a4aaa7;
  background:
    repeating-linear-gradient(
      -45deg,
      #f3f3ef,
      #f3f3ef 5px,
      #e9eae5 5px,
      #e9eae5 10px
    );
  box-shadow: none;
  cursor: not-allowed;
  text-decoration: line-through;
  transform: none;
}

.slot-button small {
  display: block;
  margin-top: 2px;
  color: #895110;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.loading,
.error-message,
.empty-message {
  grid-column: 1 / -1;
  display: grid;
  min-height: 96px;
  place-items: center;
  padding: 20px;
  border-radius: 14px;
  color: var(--muted);
  background: #eff1ed;
  font-size: 13px;
  text-align: center;
}

.error-message {
  color: #9f2f1f;
  background: #ffe8e3;
}

.slot-legend {
  display: flex;
  gap: 16px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 10px;
}

.slot-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slot-legend i {
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  border-radius: 3px;
}

.slot-legend .legend-busy {
  border-color: var(--line);
  background: #e5e7e2;
}

.selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 16px;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--green-soft);
}

.selection div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.selection span {
  color: var(--muted);
  font-size: 10px;
}

.selection strong {
  font-size: 13px;
}

.selection button {
  border: 0;
  color: #087453;
  background: none;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  font-weight: 850;
  cursor: pointer;
}

.primary-button {
  color: white;
  background: var(--ink);
  box-shadow: 0 5px 0 var(--blue);
}

.primary-button:disabled {
  border-color: #c7cbc6;
  color: #8c9490;
  background: #e6e8e3;
  box-shadow: none;
  cursor: not-allowed;
}

.booking-note {
  margin: 12px 8px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.pilot-note {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 42px 0;
  padding: 24px 30px;
  border: 1px dashed #8d9794;
  border-radius: 20px;
  color: var(--ink-soft);
}

.pilot-note > span {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 8px;
  color: white;
  background: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.pilot-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
}

.brand--footer {
  font-size: 16px;
}

.brand--footer .brand__mark {
  width: 36px;
  height: 36px;
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.pilot-dialog {
  width: min(480px, calc(100% - 32px));
  padding: 38px;
  border: 1px solid var(--ink);
  border-radius: 24px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 14px 14px 0 var(--ink);
}

.pilot-dialog::backdrop {
  background: rgba(16, 27, 25, 0.7);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: none;
  font-size: 26px;
  cursor: pointer;
}

.dialog-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  font-size: 25px;
  font-weight: 900;
}

.pilot-dialog h2 {
  margin-bottom: 12px;
  font-size: 31px;
  letter-spacing: -0.05em;
}

.pilot-dialog > p:not(.eyebrow) {
  color: var(--ink-soft);
  line-height: 1.55;
}

.dialog-notice {
  margin: 22px 0;
  padding: 15px;
  border-radius: 14px;
  color: #334841;
  background: var(--green-soft);
  font-size: 12px;
  line-height: 1.5;
}

.form-field {
  display: flex;
  margin-bottom: 14px;
  flex-direction: column;
  gap: 7px;
}

.form-field span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: white;
}

.form-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(85, 104, 255, 0.12);
}

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 16px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

.consent-field input {
  width: 17px;
  height: 17px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.form-error {
  margin: 0 0 14px;
  padding: 11px 12px;
  border-radius: 10px;
  color: #9f2f1f !important;
  background: #ffe8e3;
  font-size: 12px;
}

.booking-status-view {
  text-align: left;
}

.booking-status-view.is-confirmed .dialog-icon {
  background: var(--lime);
}

.booking-status-view.is-declined .dialog-icon {
  background: #ffd7d0;
}

.secondary-button {
  background: white;
}

@media (max-width: 1040px) {
  .quest-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-card {
    position: static;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
  }
}

@media (max-width: 660px) {
  .topline {
    gap: 8px;
    font-size: 8px;
  }

  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1320px);
  }

  .site-header {
    height: 76px;
  }

  .brand {
    gap: 8px;
    font-size: 17px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .city {
    display: none;
  }

  .breadcrumbs {
    margin-top: 0;
  }

  .quest-layout {
    gap: 18px;
  }

  .quest-cover {
    min-height: 290px;
  }

  .quest-cover__radar {
    width: 180px;
    height: 180px;
  }

  .quest-cover__score {
    right: 16px;
    bottom: 16px;
  }

  .quest-copy {
    padding: 30px 22px 36px;
  }

  h1 {
    font-size: 52px;
  }

  .quest-lead {
    font-size: 16px;
  }

  .quest-facts {
    grid-template-columns: 1fr;
  }

  .quest-facts div,
  .quest-facts div + div {
    padding: 14px 0;
    border-left: 0;
  }

  .quest-facts div + div {
    border-top: 1px solid var(--line);
  }

  .booking-card {
    padding: 22px 18px;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .booking-card__head {
    align-items: center;
  }

  .booking-card__head h2 {
    font-size: 25px;
  }

  .date-strip {
    overflow-x: auto;
    grid-template-columns: repeat(7, 54px);
    padding-bottom: 4px;
  }

  .slot-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mode-options button {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .pilot-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}

/* Dark compact product theme */
:root {
  --ink: #f2f5ee;
  --ink-soft: #aeb8b6;
  --cream: #070a0f;
  --paper: #10161e;
  --surface: #151d27;
  --surface-soft: #0c1118;
  --line: #29333f;
  --lime: #c8ff62;
  --green: #5ce0aa;
  --green-soft: rgba(92, 224, 170, 0.12);
  --coral: #ff705c;
  --blue: #806cff;
  --muted: #7f8b96;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  --quest-accent: var(--lime);
  color-scheme: dark;
}

body[data-quest-theme="family"] {
  --quest-accent: #ffc95c;
}

body[data-quest-theme="bunker"] {
  --quest-accent: #ffb84d;
}

body[data-quest-theme="hostage"] {
  --quest-accent: #ff667a;
}

body[data-quest-theme="ritual"] {
  --quest-accent: #b99aff;
}

body[data-quest-theme="apocalypse"] {
  --quest-accent: #a8ff5c;
}

body[data-quest-theme="hannibal"] {
  --quest-accent: #ff824d;
}

html {
  scrollbar-color: #313b47 #090d13;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 6%, rgba(128, 108, 255, 0.15), transparent 30rem),
    radial-gradient(circle at 8% 40%, rgba(200, 255, 98, 0.07), transparent 28rem),
    linear-gradient(180deg, #0a0e14 0%, var(--cream) 55%);
}

.topline {
  min-height: 28px;
  padding: 6px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #9ca7b0;
  background: #05080c;
  font-size: 9px;
}

.topline__dot {
  background: var(--quest-accent);
  box-shadow: 0 0 12px rgba(200, 255, 98, 0.65);
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 66px;
}

.brand {
  color: var(--ink);
  font-size: 18px;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border: 1px solid #313c48;
  background: #080d13;
}

.brand__mark i,
.brand__mark::after {
  border-color: var(--quest-accent);
}

.brand__mark::after {
  background: var(--quest-accent);
}

.city,
.round-button {
  border-color: var(--line);
  color: var(--ink-soft);
  background: rgba(19, 26, 35, 0.85);
}

.city {
  padding: 8px 14px;
  font-size: 12px;
}

.round-button {
  width: 38px;
  height: 38px;
  padding: 9px;
}

main,
footer {
  width: min(1180px, calc(100% - 40px));
}

.breadcrumbs {
  margin: 4px 0 14px;
  font-size: 11px;
}

.quest-switcher {
  display: flex;
  gap: 7px;
  margin: 0 0 12px;
}

.quest-switcher a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(16, 22, 30, 0.66);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.quest-switcher a:hover,
.quest-switcher a.is-active {
  border-color: var(--quest-accent);
  color: #11160d;
  background: var(--quest-accent);
}

.quest-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(410px, 0.92fr);
  gap: 18px;
}

.quest-info {
  border-color: var(--line);
  border-radius: 22px;
  background: rgba(16, 22, 30, 0.96);
  box-shadow: var(--shadow);
}

.quest-cover {
  min-height: 270px;
  background:
    linear-gradient(125deg, rgba(8, 12, 17, 0.04), rgba(5, 8, 12, 0.82)),
    linear-gradient(145deg, #35414a, #131a20 58%, #070b10);
}

body[data-quest-theme="bunker"] .quest-cover {
  background:
    linear-gradient(125deg, rgba(20, 12, 5, 0.04), rgba(8, 6, 4, 0.84)),
    linear-gradient(145deg, #4c4033, #211a14 58%, #0d0906);
}

.quest-cover::before {
  opacity: 0.2;
  background-size: 34px 34px;
}

.quest-cover::after {
  border-color: rgba(200, 255, 98, 0.2);
}

.quest-cover__radar {
  width: 180px;
  height: 180px;
  border-color: rgba(200, 255, 98, 0.19);
}

.quest-cover__radar span {
  border-color: rgba(200, 255, 98, 0.19);
}

.quest-cover__radar i {
  width: 82px;
  background: var(--quest-accent);
}

.quest-cover__label {
  top: 18px;
  left: 18px;
  padding: 8px 11px;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(5, 9, 13, 0.66);
  font-size: 10px;
}

.quest-cover__score {
  right: 18px;
  bottom: 18px;
  padding: 9px 12px;
  color: #11160d;
  background: var(--quest-accent);
}

.quest-cover__score strong {
  font-size: 22px;
}

.quest-copy {
  padding: 26px 30px 28px;
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--quest-accent);
  font-size: 9px;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(42px, 5.4vw, 64px);
  line-height: 0.94;
}

.quest-lead {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.48;
}

.quest-facts {
  margin-bottom: 16px;
  border-color: var(--line);
}

.quest-facts div,
.quest-facts div + div {
  padding: 13px 12px;
  border-color: var(--line);
}

.quest-facts div:first-child {
  padding-left: 0;
}

.quest-facts strong {
  font-size: 15px;
}

.quest-facts span,
.address-card span,
.price span {
  color: var(--muted);
  font-size: 10px;
}

.tags {
  gap: 6px;
  margin-bottom: 16px;
}

.tags span {
  padding: 6px 9px;
  border-color: var(--line);
  color: #bbc4cb;
  background: rgba(255, 255, 255, 0.02);
  font-size: 10px;
}

.address-card {
  gap: 10px;
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.address-card__icon {
  width: 34px;
  height: 34px;
  color: #11160d !important;
  background: var(--quest-accent);
  font-size: 16px !important;
}

.address-card strong {
  font-size: 12px;
}

.description {
  max-width: none;
  border-top: 1px solid var(--line);
}

.description summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 1px 0;
  color: #d8dedd;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.description summary::-webkit-details-marker {
  display: none;
}

.description summary i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--quest-accent);
  font-style: normal;
  transition: transform 160ms ease;
}

.description[open] summary i {
  transform: rotate(45deg);
}

.description > div {
  padding-top: 13px;
}

.description p {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.58;
}

.booking-card {
  top: 14px;
  padding: 20px;
  border-color: #35414e;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(24, 32, 43, 0.98), rgba(14, 20, 28, 0.98));
  box-shadow: var(--shadow);
}

.booking-card__head {
  padding-bottom: 12px;
}

.booking-card__head h2 {
  font-size: 24px;
}

.live-status {
  color: var(--green);
  background: rgba(92, 224, 170, 0.1);
}

.booking-section {
  padding: 13px 0;
  border-color: var(--line);
}

.section-label {
  margin-bottom: 8px;
}

.section-label > span {
  font-size: 10px;
}

.section-label small {
  font-size: 9px;
}

.date-strip {
  gap: 4px;
}

.date-week-button,
.date-picker {
  border-color: var(--line);
  color: #c8d0d6;
  background: var(--surface-soft);
}

.date-period {
  color: var(--ink-soft);
  border-color: var(--line);
  background: var(--surface-soft);
}

.date-button {
  padding: 7px 2px;
  border-color: var(--line);
  border-radius: 9px;
  color: #c8d0d6;
  background: var(--surface-soft);
}

.date-button span {
  font-size: 8px;
}

.date-button strong {
  font-size: 14px;
}

.date-button.is-active {
  border-color: var(--quest-accent);
  color: #11160d;
  background: var(--quest-accent);
  box-shadow: none;
}

.counter {
  height: 36px;
  border-color: var(--line);
  border-radius: 10px;
}

.counter button,
.counter output {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface-soft);
}

.price strong {
  color: var(--quest-accent);
  font-size: 21px;
}

.mode-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.mode-options button {
  min-height: 58px;
  padding: 9px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  border-color: var(--line);
  border-radius: 10px;
  color: #dce2e5;
  background: var(--surface-soft);
}

.mode-options button strong {
  font-size: 11px;
}

.mode-options button span {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.25;
}

.mode-options button.is-active {
  border-color: var(--blue);
  background: rgba(128, 108, 255, 0.14);
  box-shadow: inset 0 -2px 0 var(--blue);
}

.slot-grid {
  gap: 6px;
  min-height: 86px;
}

.slot-button {
  min-height: 42px;
  border-color: #35414e;
  border-radius: 10px;
  color: #edf2ef;
  background: var(--surface-soft);
  font-size: 13px;
}

.slot-button:hover,
.slot-button.is-active {
  border-color: var(--quest-accent);
  color: #11160d;
  background: var(--quest-accent);
  box-shadow: none;
  transform: none;
}

.loading,
.error-message,
.empty-message {
  min-height: 86px;
  color: var(--muted);
  background: var(--surface-soft);
}

.error-message {
  color: #ff9b8b;
  background: rgba(255, 112, 92, 0.1);
}

.slot-legend {
  margin-top: 8px;
}

.slot-legend i {
  border-color: var(--quest-accent);
  background: var(--quest-accent);
}

.selection {
  margin: 2px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(92, 224, 170, 0.2);
  border-radius: 11px;
  background: var(--green-soft);
}

.selection button {
  color: var(--green);
}

.primary-button,
.secondary-button {
  min-height: 48px;
  border-color: var(--quest-accent);
  border-radius: 11px;
}

.primary-button {
  color: #11160d;
  background: var(--quest-accent);
  box-shadow: none;
}

.primary-button:hover:not(:disabled) {
  filter: brightness(1.06);
}

.primary-button:disabled {
  border-color: var(--line);
  color: #69747e;
  background: #1a222c;
}

.booking-note {
  margin-top: 9px;
  color: #6f7b86;
}

.pilot-note {
  gap: 14px;
  margin: 20px 0;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink-soft);
  background: rgba(16, 22, 30, 0.62);
}

.pilot-note > span {
  color: #11160d;
  background: var(--quest-accent);
}

footer {
  padding: 20px 0 28px;
  border-color: var(--line);
}

.pilot-dialog {
  width: min(440px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  padding: 28px;
  border-color: #36414e;
  border-radius: 20px;
  color: var(--ink);
  background: #111821;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.pilot-dialog::backdrop {
  background: rgba(3, 6, 9, 0.82);
}

.dialog-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 15px;
  border-color: var(--quest-accent);
  color: #11160d;
  background: var(--quest-accent);
}

.pilot-dialog h2 {
  font-size: 27px;
}

.dialog-notice {
  margin: 16px 0 0;
  color: #a8c7bc;
  background: rgba(92, 224, 170, 0.1);
}

.form-field {
  margin-bottom: 11px;
}

.form-field input {
  min-height: 44px;
  border-color: var(--line);
  color: var(--ink);
  background: #0b1118;
}

.form-field input:focus {
  border-color: var(--quest-accent);
  box-shadow: 0 0 0 3px rgba(200, 255, 98, 0.1);
}

.consent-field {
  color: var(--ink-soft);
}

.consent-field input {
  accent-color: var(--quest-accent);
}

.form-error {
  color: #ffad9f !important;
  background: rgba(255, 112, 92, 0.12);
}

.secondary-button {
  color: var(--ink);
  background: var(--surface);
}

@media (max-width: 1040px) {
  .quest-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-card {
    max-width: 680px;
  }
}

@media (max-width: 700px) {
  .topline {
    min-height: 25px;
    padding-inline: 10px;
    font-size: 7px;
  }

  .site-header,
  main,
  footer {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    height: 58px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .breadcrumbs {
    margin-bottom: 10px;
  }

  .quest-switcher {
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .quest-switcher::-webkit-scrollbar {
    display: none;
  }

  .quest-switcher a {
    flex: 0 0 auto;
  }

  .quest-layout {
    display: flex;
    gap: 12px;
    flex-direction: column;
  }

  .booking-card {
    order: -1;
    width: 100%;
    max-width: none;
    padding: 16px;
    border-radius: 18px;
  }

  .booking-card__head {
    align-items: center;
  }

  .booking-card__head h2 {
    font-size: 22px;
  }

  .date-strip {
    grid-template-columns: repeat(
      var(--date-count, 7),
      minmax(42px, 1fr)
    );
  }

  .date-toolbar {
    display: flex;
    align-items: stretch;
    gap: 6px;
  }

  .date-week-nav {
    width: min(100%, 220px);
    grid-template-columns: 34px minmax(110px, 1fr) 34px;
  }

  .date-picker {
    min-width: 96px;
    padding-inline: 8px;
  }

  .mode-options button {
    min-height: 52px;
    padding: 7px;
  }

  .slot-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .quest-cover {
    min-height: 220px;
  }

  .quest-cover__radar {
    width: 150px;
    height: 150px;
  }

  .quest-copy {
    padding: 22px 18px 24px;
  }

  h1 {
    font-size: 44px;
  }

  .quest-lead {
    font-size: 14px;
  }

  .quest-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quest-facts div,
  .quest-facts div + div {
    padding: 11px 7px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .quest-facts div:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .quest-facts strong {
    font-size: 13px;
  }

  .pilot-note {
    gap: 8px;
    padding: 12px;
  }

  footer {
    gap: 12px;
    padding-bottom: 22px;
  }

  .pilot-dialog {
    padding: 22px 18px;
    border-radius: 18px;
  }
}

/* Home / catalog */
.home-page {
  --quest-accent: var(--lime);
}

.home-header {
  position: relative;
  z-index: 5;
}

.home-nav-link {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.home-nav-link:hover {
  color: var(--ink);
}

.home-main {
  overflow: hidden;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 390px;
  padding: 54px 58px 116px;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 76% 50%, rgba(200, 255, 98, 0.08), transparent 24rem),
    linear-gradient(135deg, #151d27, #0b1017 68%);
  box-shadow: var(--shadow);
}

.home-hero::before {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, black);
}

.home-hero__copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.home-hero h1 {
  max-width: none;
  margin-bottom: 22px;
  font-size: clamp(58px, 7vw, 94px);
  line-height: 0.88;
}

.home-hero h1 em {
  color: var(--quest-accent);
  font-style: normal;
}

.home-hero__copy > p:last-child {
  max-width: 600px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}

.home-radar {
  position: relative;
  z-index: 1;
  width: 300px;
  height: 300px;
  justify-self: end;
  border: 1px solid rgba(200, 255, 98, 0.28);
  border-radius: 50%;
  box-shadow:
    0 0 0 40px rgba(200, 255, 98, 0.025),
    0 0 80px rgba(200, 255, 98, 0.06);
}

.home-radar::before,
.home-radar::after,
.home-radar > span {
  position: absolute;
  border: 1px solid rgba(200, 255, 98, 0.2);
  border-radius: 50%;
  content: "";
}

.home-radar::before {
  inset: 17%;
}

.home-radar::after {
  inset: 34%;
}

.home-radar > span:nth-child(1) {
  inset: 49%;
  border: 0;
  background: var(--coral);
  box-shadow: 0 0 25px rgba(255, 112, 92, 0.8);
}

.home-radar > span:nth-child(2) {
  top: 23%;
  left: 68%;
  width: 8px;
  height: 8px;
  border: 0;
  background: var(--quest-accent);
  box-shadow: 0 0 20px rgba(200, 255, 98, 0.8);
}

.home-radar > span:nth-child(3) {
  top: 70%;
  left: 28%;
  width: 5px;
  height: 5px;
  border: 0;
  background: var(--quest-accent);
}

.home-radar i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 138px;
  height: 2px;
  background: linear-gradient(90deg, var(--quest-accent), transparent);
  transform: rotate(-35deg);
  transform-origin: left;
}

.home-radar b {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(200, 255, 98, 0.12);
}

.home-radar small {
  position: absolute;
  right: -12px;
  bottom: 24px;
  padding: 10px 13px;
  border: 1px solid rgba(200, 255, 98, 0.25);
  border-radius: 12px;
  color: var(--quest-accent);
  background: rgba(8, 12, 17, 0.88);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.finder {
  position: relative;
  z-index: 4;
  display: grid;
  margin: -72px 32px 0;
  padding: 14px;
  grid-template-columns: 1.15fr 0.8fr 0.9fr 1fr 1.25fr;
  gap: 8px;
  border: 1px solid #34404d;
  border-radius: 20px;
  background: rgba(18, 25, 34, 0.96);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.finder-field {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 9px 13px;
  flex-direction: column;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #0c1219;
}

.finder-field > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finder-field input,
.finder-field select {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 750;
}

.finder-field input {
  color-scheme: dark;
}

.finder-button {
  display: flex;
  min-height: 58px;
  padding: 0 19px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 13px;
  color: #10150d;
  background: var(--quest-accent);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.finder-button b {
  font-size: 20px;
}

.finder-button:hover {
  box-shadow: 0 8px 24px rgba(200, 255, 98, 0.17);
  transform: translateY(-1px);
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 22px 0 48px;
  color: var(--ink-soft);
  font-size: 11px;
}

.trust-row span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.trust-row i {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  color: #0c120b;
  background: var(--quest-accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.catalog {
  padding: 22px 0 34px;
  scroll-margin-top: 18px;
}

.catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.catalog-head h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.06em;
}

.catalog-head > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.quest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.catalog-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, #151d27, #10161e);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.catalog-card__visual {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(9, 13, 18, 0.08), rgba(6, 9, 13, 0.82)),
    linear-gradient(145deg, #37434c, #151c22 60%, #080c10);
}

.catalog-card[data-theme="bunker"] .catalog-card__visual {
  background:
    linear-gradient(120deg, rgba(15, 9, 4, 0.06), rgba(8, 6, 4, 0.85)),
    linear-gradient(145deg, #544535, #211a13 60%, #0b0805);
}

.catalog-card__visual::before {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  content: "";
}

.catalog-card__radar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 145px;
  height: 145px;
  border: 1px solid rgba(200, 255, 98, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.catalog-card[data-theme="bunker"] .catalog-card__radar {
  border-color: rgba(255, 184, 77, 0.25);
}

.catalog-card__radar span {
  position: absolute;
  inset: 23%;
  border: 1px solid rgba(200, 255, 98, 0.2);
  border-radius: 50%;
}

.catalog-card__radar span:nth-child(2) {
  inset: 46%;
  border: 0;
  background: var(--coral);
  box-shadow: 0 0 18px rgba(255, 112, 92, 0.75);
}

.catalog-card__radar i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 1px;
  background: var(--lime);
  transform: rotate(-38deg);
  transform-origin: left;
}

.catalog-card[data-theme="bunker"] .catalog-card__radar i {
  background: #ffb84d;
}

.catalog-card__format,
.catalog-card__rating {
  position: absolute;
  z-index: 2;
  top: 15px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #e5e9e8;
  background: rgba(6, 10, 14, 0.72);
  font-size: 9px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.catalog-card__format {
  left: 15px;
}

.catalog-card__rating {
  right: 15px;
  color: #11160d;
  background: var(--lime);
}

.catalog-card[data-theme="bunker"] .catalog-card__rating {
  background: #ffb84d;
}

.catalog-card__body {
  padding: 22px;
}

.catalog-card__brand {
  margin-bottom: 6px;
  color: var(--lime);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.catalog-card[data-theme="bunker"] .catalog-card__brand {
  color: #ffb84d;
}

.catalog-card h3 {
  margin-bottom: 10px;
  font-size: 31px;
  letter-spacing: -0.055em;
}

.catalog-card__lead {
  display: -webkit-box;
  min-height: 60px;
  margin-bottom: 14px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.catalog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.catalog-card__tags span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b9c2c8;
  font-size: 9px;
  font-weight: 750;
}

.catalog-card__facts {
  display: grid;
  margin-bottom: 15px;
  grid-template-columns: 0.8fr 0.9fr 1.3fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.catalog-card__facts span {
  min-width: 0;
  padding: 11px 8px;
  color: var(--muted);
  font-size: 9px;
}

.catalog-card__facts span:first-child {
  padding-left: 0;
}

.catalog-card__facts span + span {
  border-left: 1px solid var(--line);
}

.catalog-card__facts b {
  color: var(--ink);
  font-size: 11px;
}

.catalog-card__schedule {
  display: flex;
  min-height: 36px;
  margin-bottom: 17px;
  padding: 7px 10px;
  align-items: center;
  gap: 7px;
  border-radius: 10px;
  color: var(--ink-soft);
  background: #0b1118;
  font-size: 10px;
}

.schedule-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(92, 224, 170, 0.75);
}

.catalog-card__schedule.is-empty .schedule-dot {
  background: var(--muted);
  box-shadow: none;
}

.schedule-label {
  margin-right: 2px;
  color: var(--green);
  font-weight: 800;
}

.schedule-time,
.schedule-more {
  padding: 4px 6px;
  border: 1px solid #31403f;
  border-radius: 7px;
  color: #dce5e1;
  background: rgba(92, 224, 170, 0.06);
  font-weight: 800;
}

.schedule-more {
  border-color: transparent;
  color: var(--muted);
  background: transparent;
}

.catalog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.catalog-card__price {
  display: flex;
  flex-direction: column;
}

.catalog-card__price strong {
  font-size: 22px;
  letter-spacing: -0.04em;
}

.catalog-card__price span {
  color: var(--muted);
  font-size: 9px;
}

.catalog-card__link {
  display: flex;
  min-height: 44px;
  padding: 0 14px;
  align-items: center;
  gap: 16px;
  border-radius: 11px;
  color: #11160d;
  background: var(--lime);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.catalog-card[data-theme="bunker"] .catalog-card__link {
  background: #ffb84d;
}

.catalog-card__link b {
  font-size: 17px;
}

.catalog-loading,
.catalog-empty {
  grid-column: 1 / -1;
  padding: 44px 24px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.catalog-loading {
  display: grid;
  min-height: 156px;
  place-content: center;
  justify-items: center;
  gap: 7px;
}

.catalog-loading i,
.loading i {
  width: 26px;
  height: 26px;
  margin-bottom: 4px;
  border: 2px solid rgba(200, 255, 98, 0.2);
  border-top-color: var(--quest-accent);
  border-radius: 50%;
  animation: schedule-spin 800ms linear infinite;
}

.catalog-loading strong,
.loading strong {
  color: var(--ink);
  font-size: 14px;
}

.catalog-loading span,
.loading span {
  color: var(--muted);
  font-size: 10px;
}

.slot-grid .loading {
  place-content: center;
  justify-items: center;
  gap: 5px;
}

@keyframes schedule-spin {
  to {
    transform: rotate(360deg);
  }
}

.catalog-loading.is-error {
  color: #ffad9f;
}

.catalog-empty {
  margin-top: 4px;
}

.catalog-empty strong {
  color: var(--ink);
  font-size: 18px;
}

.catalog-empty p {
  margin: 8px 0 16px;
  font-size: 12px;
}

.catalog-empty button {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 800;
  cursor: pointer;
}

.empty-date-actions {
  display: flex;
  margin: 0 0 10px;
  justify-content: center;
  gap: 8px;
}

.empty-date-actions button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.unavailable-group {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(16, 22, 30, 0.62);
}

.unavailable-group summary {
  display: flex;
  min-height: 52px;
  padding: 0 17px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.unavailable-group summary::-webkit-details-marker {
  display: none;
}

.unavailable-group summary i {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 17px;
  font-style: normal;
  transition: transform 160ms ease;
}

.unavailable-group details[open] summary i {
  transform: rotate(45deg);
}

.unavailable-list {
  display: grid;
  padding: 0 12px 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}

.unavailable-list a {
  display: flex;
  min-width: 0;
  padding: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  color: var(--ink);
  background: rgba(8, 12, 17, 0.56);
  text-decoration: none;
}

.unavailable-list a:hover {
  border-color: #3a4857;
}

.unavailable-list div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.unavailable-list strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unavailable-list span {
  color: var(--muted);
  font-size: 9px;
}

.unavailable-list b {
  color: var(--lime);
  font-size: 16px;
}

.how-it-works {
  display: grid;
  margin: 22px 0 44px;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(16, 22, 30, 0.6);
}

.how-it-works > div {
  position: relative;
  padding: 22px 24px;
}

.how-it-works > div + div {
  border-left: 1px solid var(--line);
}

.how-it-works span {
  display: block;
  margin-bottom: 12px;
  color: var(--quest-accent);
  font-size: 9px;
  font-weight: 900;
}

.how-it-works strong {
  font-size: 14px;
}

.how-it-works p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 980px) {
  .home-hero {
    min-height: 360px;
    padding-inline: 38px;
    grid-template-columns: minmax(0, 1fr) 230px;
  }

  .home-radar {
    width: 220px;
    height: 220px;
  }

  .home-radar i {
    width: 100px;
  }

  .finder {
    grid-template-columns: repeat(2, 1fr);
  }

  .finder-button {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .home-nav-link {
    display: none;
  }

  .home-hero {
    min-height: 380px;
    padding: 35px 24px 104px;
    grid-template-columns: 1fr;
  }

  .home-hero h1 {
    font-size: clamp(47px, 14vw, 68px);
  }

  .home-hero__copy > p:last-child {
    font-size: 14px;
  }

  .home-radar {
    position: absolute;
    right: -72px;
    bottom: -62px;
    width: 210px;
    height: 210px;
    opacity: 0.58;
  }

  .home-radar small {
    display: none;
  }

  .finder {
    margin: -72px 10px 0;
    padding: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finder-field {
    padding: 8px 10px;
  }

  .finder-button {
    grid-column: span 2;
  }

  .trust-row {
    align-items: flex-start;
    gap: 9px;
    padding: 18px 10px 34px;
    flex-direction: column;
  }

  .catalog {
    padding-top: 8px;
  }

  .catalog-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .catalog-head > p {
    margin: 0;
  }

  .quest-grid {
    grid-template-columns: 1fr;
  }

  .catalog-card__visual {
    min-height: 160px;
  }

  .catalog-card__body {
    padding: 18px;
  }

  .catalog-card h3 {
    font-size: 27px;
  }

  .catalog-card__lead {
    min-height: 0;
    -webkit-line-clamp: 2;
  }

  .catalog-card__facts {
    grid-template-columns: 0.8fr 0.9fr 1.3fr;
  }

  .catalog-card__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-card__price {
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
  }

  .catalog-card__link {
    justify-content: space-between;
  }

  .how-it-works {
    grid-template-columns: 1fr;
  }

  .how-it-works > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

/* Home redesign: calmer finder and photo-led cards */
.home-hero {
  min-height: 320px;
  padding: 44px 52px;
  grid-template-columns: minmax(0, 1fr) 250px;
}

.home-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(50px, 5.8vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.home-hero__copy > p:last-child {
  max-width: 570px;
  font-size: 15px;
}

.home-radar {
  width: 230px;
  height: 230px;
}

.home-radar i {
  width: 105px;
}

.finder {
  margin: 16px 0 0;
  border-radius: 18px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.28);
}

.trust-row {
  justify-content: flex-start;
  gap: 26px;
  padding: 16px 4px 40px;
}

.catalog {
  padding-top: 12px;
}

.catalog-head {
  align-items: center;
  margin-bottom: 18px;
}

.catalog-head > p {
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(16, 22, 30, 0.7);
}

.catalog-head__status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-head__status > p {
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(16, 22, 30, 0.7);
  font-size: 12px;
}

.catalog-head__status button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.catalog-head__status button:hover {
  color: var(--ink);
  border-color: #465363;
}

.finder-button:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
}

.quest-grid {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.catalog-card {
  --card-accent: var(--lime);
  border-radius: 20px;
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.catalog-card:hover {
  border-color: #3a4857;
  transform: translateY(-2px);
}

.catalog-card__visual {
  min-height: 260px;
  background: #080c11;
}

.catalog-card__visual::before {
  z-index: 1;
  opacity: 1;
  background:
    linear-gradient(
      180deg,
      rgba(5, 8, 12, 0.06) 28%,
      rgba(5, 8, 12, 0.62) 66%,
      #080c11 100%
    ),
    linear-gradient(90deg, rgba(5, 8, 12, 0.18), transparent 55%);
}

.catalog-card__visual::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 34%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(8, 12, 17, 0.88) 48%,
    #080c11 100%
  );
  content: "";
}

.catalog-card__image {
  position: absolute;
  inset: -10% 0 0;
  width: 100%;
  height: 122%;
  object-fit: cover;
  object-position: center 34%;
  transition: transform 300ms ease;
}

.catalog-card[data-theme="bunker"] .catalog-card__image {
  object-position: center 32%;
}

.catalog-card:hover .catalog-card__image {
  transform: scale(1.025);
}

.catalog-card__format,
.catalog-card__rating {
  z-index: 3;
}

.catalog-card__title {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  z-index: 3;
}

.catalog-card__title span {
  display: block;
  margin-bottom: 5px;
  color: var(--lime);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.catalog-card[data-theme="bunker"] .catalog-card__title span {
  color: #ffb84d;
}

.catalog-card__title h3 {
  max-width: 90%;
  margin: 0;
  color: white;
  font-size: clamp(28px, 3vw, 37px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.8);
}

.catalog-card__body {
  padding: 0 20px 20px;
}

.catalog-card__facts {
  display: grid;
  margin: 0 -20px 16px;
  grid-template-columns: repeat(4, 1fr);
  border-top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 17, 0.42);
}

.catalog-card__facts span,
.catalog-card__facts span:first-child {
  display: flex;
  min-width: 0;
  padding: 12px 9px;
  flex-direction: column;
  gap: 2px;
}

.catalog-card__facts span:first-child {
  padding-left: 20px;
}

.catalog-card__facts span:last-child {
  padding-right: 20px;
}

.catalog-card__facts b {
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-card__facts small {
  color: var(--muted);
  font-size: 8px;
}

.catalog-card__lead {
  min-height: 40px;
  margin-bottom: 9px;
  font-size: 12px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
}

.catalog-card__address {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 10px;
}

.catalog-card__schedule {
  margin-bottom: 15px;
}

.catalog-card__footer {
  padding-top: 1px;
}

.catalog-card__price strong {
  font-size: 21px;
}

.catalog-card__link {
  min-height: 42px;
}

.catalog-card[data-theme="bunker"] {
  --card-accent: #ffb84d;
}

.catalog-card[data-theme="hostage"] {
  --card-accent: #ff667a;
}

.catalog-card[data-theme="ritual"] {
  --card-accent: #b99aff;
}

.catalog-card[data-theme="apocalypse"] {
  --card-accent: #a8ff5c;
}

.catalog-card[data-theme="hannibal"] {
  --card-accent: #ff824d;
}

.catalog-card .catalog-card__rating,
.catalog-card .catalog-card__link {
  background: var(--card-accent);
}

.catalog-card .catalog-card__title span {
  color: var(--card-accent);
}

.catalog-card[data-theme="ritual"] .catalog-card__image,
body[data-quest-theme="ritual"] .quest-cover__image {
  object-position: 64% 34%;
}

.catalog-card[data-theme="apocalypse"] .catalog-card__image,
body[data-quest-theme="apocalypse"] .quest-cover__image {
  object-position: center 38%;
}

.catalog-card[data-theme="hannibal"] .catalog-card__image,
body[data-quest-theme="hannibal"] .quest-cover__image {
  object-position: center 38%;
}

.quest-cover {
  isolation: isolate;
}

.quest-cover__image {
  position: absolute;
  inset: -10% 0 0;
  z-index: 0;
  width: 100%;
  height: 122%;
  object-fit: cover;
  object-position: center 34%;
}

body[data-quest-theme="bunker"] .quest-cover__image {
  object-position: center 32%;
}

.quest-cover::before {
  z-index: 1;
  opacity: 1;
  background:
    linear-gradient(
      180deg,
      rgba(5, 8, 12, 0.04) 30%,
      rgba(5, 8, 12, 0.58) 68%,
      #080c11 88%,
      #080c11 100%
    ),
    linear-gradient(90deg, rgba(5, 8, 12, 0.16), transparent);
}

.quest-cover::after,
.quest-cover__label,
.quest-cover__score {
  z-index: 2;
}

@media (max-width: 980px) {
  .home-hero {
    min-height: 310px;
    padding: 38px;
    grid-template-columns: minmax(0, 1fr) 190px;
  }

  .home-radar {
    width: 185px;
    height: 185px;
  }
}

@media (max-width: 720px) {
  .topline {
    min-height: 28px;
    justify-content: center;
    gap: 7px;
    font-size: 8px;
    letter-spacing: 0.07em;
  }

  .topline__price,
  .topline__dot {
    display: none;
  }

  .topline__pilot::after {
    margin-left: 7px;
    color: var(--quest-accent);
    content: "·";
  }

  .home-hero {
    min-height: 325px;
    padding: 32px 24px;
    grid-template-columns: 1fr;
  }

  .home-hero h1 {
    font-size: clamp(42px, 12vw, 56px);
  }

  .finder {
    margin: 12px 0 0;
  }

  .trust-row {
    padding: 16px 4px 30px;
  }

  .catalog-head {
    align-items: flex-start;
  }

  .catalog-head__status {
    width: 100%;
    justify-content: space-between;
  }

  .catalog-head__status > p {
    max-width: calc(100% - 82px);
  }

  .catalog-card__visual {
    min-height: 220px;
  }

  .catalog-card__title {
    right: 18px;
    bottom: 16px;
    left: 18px;
  }

  .catalog-card__title h3 {
    font-size: 29px;
  }

  .catalog-card__body {
    padding: 0 16px 16px;
  }

  .catalog-card__facts {
    margin: 0 -16px 14px;
  }

  .catalog-card__facts span,
  .catalog-card__facts span:first-child {
    padding: 10px 7px;
  }

  .catalog-card__facts span:first-child {
    padding-left: 16px;
  }

  .catalog-card__facts span:last-child {
    padding-right: 16px;
  }

  .empty-date-actions {
    flex-direction: column;
  }

  .unavailable-list {
    grid-template-columns: 1fr;
  }
}

.duplicate-booking-view {
  text-align: left;
}

.duplicate-booking-view > p:not(.eyebrow):not(.form-error) {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.duplicate-actions {
  display: grid;
  gap: 9px;
}

.duplicate-actions .primary-button,
.duplicate-actions .secondary-button {
  width: 100%;
}

/* Booking dialog: validation, demo mode and confirmation summary */
.pilot-dialog {
  width: min(520px, calc(100% - 24px));
}

.field-error {
  display: block;
  margin-top: -2px;
  color: #ff9b8b;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

.field-error[hidden] {
  display: none;
}

.form-field.has-error input {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 112, 92, 0.1);
}

.consent-group {
  margin-bottom: 14px;
}

.consent-group .consent-field {
  margin-bottom: 4px;
}

.consent-group.has-error .consent-field {
  color: #ffb4a8;
}

.consent-field--optional {
  margin-top: 0;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.consent-field--optional span > small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

/* Legal and production footer */
.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
}

.footer-links a,
.consent-field a,
.legal-page a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: rgba(156, 255, 73, 0.35);
  text-underline-offset: 3px;
}

.footer-links a:hover,
.consent-field a:hover,
.legal-page a:hover {
  color: var(--quest-accent, #9cff49);
}

.legal-page {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(156, 255, 73, 0.08), transparent 28rem),
    #080d13;
}

.legal-header,
.legal-document,
.legal-footer {
  width: min(860px, calc(100% - 40px));
  margin-inline: auto;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.legal-document {
  padding: 64px 0 80px;
}

.legal-document h1 {
  max-width: 760px;
  margin: 10px 0 10px;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.legal-update {
  margin: 0 0 42px;
  color: var(--muted);
}

.legal-document section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.legal-document h2 {
  margin: 0 0 12px;
  font-size: 21px;
}

.legal-document section p {
  max-width: 760px;
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.legal-warning {
  margin: 0 0 30px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 180, 64, 0.35);
  border-radius: 14px;
  color: #ffd28f;
  background: rgba(255, 180, 64, 0.08);
  line-height: 1.5;
}

.legal-footer {
  justify-content: flex-start;
  gap: 20px;
  font-size: 12px;
}

@media (max-width: 760px) {
  footer:not(.legal-footer) {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .legal-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .legal-document {
    padding: 42px 0 56px;
  }

  .legal-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

.dialog-notice.is-demo {
  border: 1px solid rgba(255, 201, 92, 0.22);
  color: #e5c77f;
  background: rgba(255, 201, 92, 0.08);
}

.status-mode-banner {
  margin: 16px 0;
  padding: 12px 13px;
  border: 1px solid rgba(255, 201, 92, 0.24);
  border-radius: 11px;
  color: #e9cf91;
  background: rgba(255, 201, 92, 0.08);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.booking-status-details {
  display: grid;
  gap: 7px;
  margin: 18px 0 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-status-details[hidden],
.status-mode-banner[hidden],
.status-next-step[hidden] {
  display: none;
}

.booking-status-details > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
}

.booking-status-details > div.is-wide {
  grid-column: 1 / -1;
}

.booking-status-details dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-status-details dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.status-next-step {
  margin: 12px 0 16px;
  padding: 12px 13px;
  border-radius: 11px;
  color: #b8d8cd;
  background: rgba(92, 224, 170, 0.08);
  font-size: 11px;
  line-height: 1.5;
}

.booking-status-view #dialog-ok {
  width: 100%;
}

@media (max-width: 520px) {
  .booking-status-details {
    grid-template-columns: 1fr;
  }

  .booking-status-details > div.is-wide {
    grid-column: auto;
  }
}

/* Secure booking management */
.manage-booking-button {
  display: block;
  width: 100%;
  margin: 0 0 9px;
  padding: 13px 16px;
  border: 1px solid rgba(200, 255, 98, 0.35);
  border-radius: 11px;
  color: #10160d;
  background: var(--lime);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.management-page {
  --quest-accent: var(--lime);
}

.manager-main {
  min-height: calc(100vh - 260px);
  padding-bottom: 54px;
}

.manager-intro {
  max-width: 720px;
  padding: 58px 0 34px;
}

.manager-intro h1 {
  margin: 0 0 17px;
  font-size: clamp(54px, 8vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.manager-intro > p:last-child {
  max-width: 610px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}

.manager-runtime {
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 201, 92, 0.2);
  border-radius: 13px;
  color: #e3c986;
  background: rgba(255, 201, 92, 0.07);
  font-size: 12px;
  line-height: 1.5;
}

.manager-empty {
  max-width: 720px;
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(16, 22, 30, 0.9);
  box-shadow: var(--shadow);
}

.manager-empty > span,
.manager-error-state > span {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid #3a4654;
  border-radius: 50%;
  color: #11160d;
  background: var(--lime);
  font-size: 25px;
  font-weight: 900;
}

.manager-empty h2,
.manager-error-state h2 {
  margin: 0 0 12px;
  font-size: 30px;
  letter-spacing: -0.045em;
}

.manager-empty p,
.manager-error-state p {
  max-width: 540px;
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.manager-primary-link,
.manager-primary-button,
.manager-danger-button,
.manager-secondary-button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.manager-primary-link,
.manager-primary-button {
  color: #10160d;
  background: var(--lime);
}

.manager-primary-button:disabled {
  color: #73808c;
  background: #1b2530;
  cursor: not-allowed;
}

.manager-danger-button {
  border-color: rgba(255, 112, 92, 0.4);
  color: #ff9585;
  background: rgba(255, 112, 92, 0.08);
}

.manager-secondary-button {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface-soft);
}

.manager-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.manager-list,
.manager-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(16, 22, 30, 0.94);
  box-shadow: var(--shadow);
}

.manager-list {
  position: sticky;
  top: 18px;
  padding: 16px;
}

.manager-list > p {
  margin: 2px 4px 13px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.manager-list button {
  display: flex;
  width: 100%;
  padding: 13px;
  flex-direction: column;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.manager-list button + button {
  margin-top: 5px;
}

.manager-list button:hover,
.manager-list button.is-active {
  border-color: #364352;
  background: var(--surface-soft);
}

.manager-list button.is-active {
  box-shadow: inset 3px 0 0 var(--lime);
}

.manager-list button strong {
  font-size: 12px;
  line-height: 1.35;
}

.manager-list button span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.manager-card {
  min-height: 480px;
  padding: 34px;
}

.manager-loading {
  display: flex;
  min-height: 400px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 15px;
  color: var(--ink-soft);
  font-size: 13px;
}

.manager-loading i {
  width: 34px;
  height: 34px;
  border: 3px solid #26313c;
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.manager-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.manager-card__head h2 {
  margin: 12px 0 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.manager-status {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: #84e9bd;
  background: rgba(92, 224, 170, 0.1);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manager-status.is-cancelled {
  color: #ff9a8b;
  background: rgba(255, 112, 92, 0.1);
}

.manager-sync-warning,
.manager-cancelled-copy {
  margin-top: 18px;
  padding: 14px 15px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.55;
}

.manager-sync-warning {
  border: 1px solid rgba(255, 201, 92, 0.2);
  color: #e0c381;
  background: rgba(255, 201, 92, 0.07);
}

.manager-cancelled-copy {
  color: #ffb0a4;
  background: rgba(255, 112, 92, 0.08);
}

.manager-details {
  display: grid;
  margin: 22px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}

.manager-details > div {
  min-width: 0;
  padding: 17px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.manager-details > div:nth-child(3n) {
  border-right: 0;
}

.manager-details > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.manager-details > div.is-wide {
  grid-column: span 1;
}

.manager-details dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manager-details dd {
  margin: 0;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.4;
}

.manager-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.manager-reschedule {
  margin-top: 28px;
  padding-top: 27px;
  border-top: 1px solid var(--line);
}

.manager-reschedule__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.manager-reschedule h3 {
  margin: 0 0 18px;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.manager-reschedule__head > button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 20px;
  cursor: pointer;
}

.manager-fields {
  display: grid;
  gap: 9px;
  grid-template-columns: 1.15fr 0.85fr 1fr;
}

.manager-fields label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.manager-fields label > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manager-fields input,
.manager-fields select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--surface-soft);
}

.manager-slots {
  display: grid;
  gap: 8px;
  margin: 15px 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.manager-slots button {
  min-height: 45px;
  border: 1px solid #354352;
  border-radius: 11px;
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.manager-slots button:hover,
.manager-slots button.is-active {
  border-color: var(--lime);
  color: #10160d;
  background: var(--lime);
}

.manager-slots__loading,
.manager-slots__empty {
  padding: 18px;
  grid-column: 1 / -1;
  border: 1px dashed #33404d;
  border-radius: 11px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.manager-reschedule > .manager-primary-button {
  width: 100%;
}

.manager-error {
  margin: 12px 0;
  padding: 12px 13px;
  border-radius: 11px;
  color: #ffad9f;
  background: rgba(255, 112, 92, 0.1);
  font-size: 11px;
  line-height: 1.5;
}

.manager-error-state {
  padding: 30px;
}

.manager-error-state > span {
  background: var(--coral);
}

.manager-error-state a {
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
}

.cancel-dialog {
  width: min(460px, calc(100% - 24px));
  padding: 34px;
  border: 1px solid #3b4651;
  border-radius: 22px;
  color: var(--ink);
  background: #121923;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.cancel-dialog::backdrop {
  background: rgba(2, 5, 8, 0.8);
  backdrop-filter: blur(5px);
}

.cancel-dialog__icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  color: #1a0b08;
  background: var(--coral);
  font-size: 24px;
  font-weight: 900;
}

.cancel-dialog h2 {
  margin: 0 0 12px;
  font-size: 30px;
  letter-spacing: -0.045em;
}

.cancel-dialog > p:not(.eyebrow):not(.manager-error) {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.cancel-dialog__actions {
  display: grid;
  gap: 9px;
}

.cancel-dialog__actions button {
  width: 100%;
}

@media (max-width: 820px) {
  .manager-shell {
    grid-template-columns: 1fr;
  }

  .manager-list {
    position: static;
  }

  .manager-list > div {
    display: flex;
    gap: 6px;
    overflow-x: auto;
  }

  .manager-list button {
    min-width: 210px;
  }
}

@media (max-width: 620px) {
  .manager-intro {
    padding: 36px 0 24px;
  }

  .manager-intro h1 {
    font-size: 56px;
  }

  .manager-empty,
  .manager-card {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .manager-card__head {
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .manager-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manager-details > div,
  .manager-details > div:nth-child(3n),
  .manager-details > div:nth-last-child(-n + 3) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .manager-details > div:nth-child(2n) {
    border-right: 0;
  }

  .manager-details > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .manager-actions {
    flex-direction: column;
  }

  .manager-fields {
    grid-template-columns: 1fr;
  }

  .manager-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cancel-dialog {
    padding: 28px 20px;
  }
}
