/* =========================================================
   zakaz4 — booking, style aligned with index4 (red, no acid)
   ========================================================= */

:root {
  --red: #c8102e;
  --red-hot: #e11d3a;
  --red-deep: #8f0b20;
  --ink: #0a0a0c;
  --paper: #fff;
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.14);
  --pad: clamp(1rem, 3.5vw, 2.25rem);
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --display: "Bebas Neue", Impact, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.book4 {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font);
  color: var(--paper);
  background: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

/* Header */
.b4-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--pad);
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.b4-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.b4-logo .logo-img {
  width: auto;
  height: clamp(1.7rem, 3vw, 2.15rem);
  display: block;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.7))
    drop-shadow(0 0 5px rgba(255, 200, 210, 0.4))
    drop-shadow(0 0 12px rgba(200, 16, 46, 0.28));
  animation: logo-glow 4s ease-in-out infinite;
}

@keyframes logo-glow {
  0%,
  100% {
    filter:
      drop-shadow(0 0 1px rgba(255, 255, 255, 0.65))
      drop-shadow(0 0 5px rgba(255, 200, 210, 0.35))
      drop-shadow(0 0 10px rgba(200, 16, 46, 0.22));
  }
  50% {
    filter:
      drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.8))
      drop-shadow(0 0 7px rgba(255, 210, 220, 0.48))
      drop-shadow(0 0 14px rgba(200, 16, 46, 0.32));
  }
}

@media (prefers-reduced-motion: reduce) {
  .b4-logo .logo-img {
    animation: none;
  }
}

.b4-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
}

.b4-hours {
  display: grid;
  gap: 0.1rem;
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--muted);
  text-align: right;
}

.b4-hours b {
  color: #fff;
  font-weight: 700;
}

.hours-tip {
  position: relative;
}

.hours-tip-btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: #fff;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, color 0.25s;
}

.hours-tip-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.hours-tip-btn:hover,
.hours-tip:focus-within .hours-tip-btn {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-1px);
}

.hours-tip-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 30;
  min-width: 11.5rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  background: #15171d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: grid;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.hours-tip-panel strong {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.15rem;
}

.hours-tip-panel span {
  font-size: 0.82rem;
  font-weight: 650;
  color: #fff;
  white-space: nowrap;
}

.hours-tip:hover .hours-tip-panel,
.hours-tip:focus-within .hours-tip-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.b4-phone {
  font-size: 0.9rem;
  font-weight: 800;
}

.b4-socials {
  display: flex;
  gap: 0.4rem;
}

.b4-socials a {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: #fff;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.b4-socials a:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-1px);
}

.b4-socials svg {
  width: 1.45rem;
  height: 1.45rem;
}

/* WORLD */
.world {
  position: relative;
  min-height: calc(100svh - 4.2rem);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  padding: 1.25rem var(--pad) 1.5rem;
  background:
    radial-gradient(ellipse 55% 35% at 15% 0%, rgba(200, 16, 46, 0.28), transparent 55%),
    var(--ink);
}

.world-intro {
  max-width: 40rem;
}

.world-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 6.5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.world-sub {
  margin: 0.65rem 0 0;
  max-width: 38ch;
  color: var(--muted);
}

.world-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  min-height: 0;
}

.world-side {
  position: relative;
  overflow: hidden;
  border-radius: 1.4rem;
  min-height: clamp(280px, 52svh, 620px);
  height: 100%;
  border: 1px solid var(--line);
  cursor: pointer;
  outline: none;
  transition: transform 0.4s var(--ease), box-shadow 0.35s, border-color 0.3s;
}

.world-side.is-clickable:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
}

.world-side.is-clickable:focus-visible {
  box-shadow: 0 0 0 3px var(--red-hot);
}

.world-side img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1s var(--ease);
  pointer-events: none;
}

.world-side:hover img {
  transform: scale(1.1);
}

.world-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.82));
}

.world-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  pointer-events: none;
}

.world-copy strong {
  font-family: var(--display);
  font-size: clamp(1.7rem, 5.5vw, 3.8rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.world-copy em {
  margin-top: 0.4rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font);
}

.world-cta {
  margin-top: 1rem;
  display: inline-flex;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 800;
}

.world-side:hover .world-cta {
  background: var(--red-hot);
  color: #fff;
}

.world.is-chosen {
  min-height: 0;
  height: auto;
  grid-template-rows: auto;
  padding-bottom: 0.5rem;
  gap: 0;
}

.world.is-chosen .world-intro {
  display: none;
}

.world.is-chosen .world-split {
  grid-template-columns: 1fr;
  height: 110px;
}

.world.is-chosen .world-side {
  min-height: 110px;
  height: 110px;
  transform: none !important;
  cursor: default;
}

.world.is-chosen .world-side:not(.is-active) {
  display: none;
}

.world.is-chosen .world-side.is-active {
  box-shadow: 0 0 0 2px var(--red-hot);
}

.world.is-chosen .world-copy {
  inset: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
}

.world.is-chosen .world-copy strong {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
}

.world.is-chosen .world-copy em,
.world.is-chosen .world-cta {
  display: none;
}

.world.is-chosen .world-copy::after {
  content: "Зона выбрана";
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font);
}

/* FLOW */
.flow {
  padding: 1rem var(--pad) 3rem;
  animation: riseIn 0.5s var(--ease) both;
  background: var(--ink);
}

.flow[hidden] {
  display: none !important;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.flow-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.15rem;
}

.flow-back {
  font-weight: 700;
  color: var(--muted);
}

.flow-back:hover {
  color: #fff;
}

.flow-zone-pill {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--red);
  font-weight: 800;
  font-size: 0.84rem;
  font-family: var(--font);
}

.flow-zone-pill.is-pool {
  background: #0f5c4f;
}

.flow-grid {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 1.1rem;
  align-items: start;
}

.flow-form {
  display: grid;
  gap: 0.9rem;
}

.flow-block {
  margin: 0;
  padding: 1.25rem 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
}

.flow-block legend {
  padding: 0 0.3rem;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: 0.03em;
}

.flow-hint,
.field-hint {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-family: var(--font);
}


.lane-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) 0.42rem minmax(0, 2.1fr);
  gap: 0.4rem;
  align-items: stretch;
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.table-grid .lane-chip span {
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-content: stretch;
  gap: 0.55rem;
  min-height: 8.2rem;
  padding: 0.85rem 0.75rem 0.9rem;
  font-size: 1.05rem;
  border-radius: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(180deg, #24352c 0%, #152019 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -10px 18px rgba(0, 0, 0, 0.28);
  color: #f3efe8;
}

.table-grid .lane-chip span em {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table-scene {
  display: block;
  width: min(100%, 9.5rem);
  line-height: 0;
  color: rgba(255, 255, 255, 0.88);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
  transition: transform 0.22s, filter 0.22s, color 0.22s;
}

.table-scene svg {
  width: 100%;
  height: auto;
  display: block;
}

.table-grid .lane-chip:hover span {
  background:
    linear-gradient(180deg, rgba(120, 220, 170, 0.12), transparent 42%),
    linear-gradient(180deg, #2d4a3a 0%, #173024 100%);
  border-color: rgba(110, 200, 150, 0.45);
  box-shadow:
    0 12px 26px rgba(20, 80, 50, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.table-grid .lane-chip:hover .table-scene {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4));
}

.table-grid .lane-chip input:checked + span,
.table-grid .lane-chip:hover input:checked + span {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 36%),
    linear-gradient(180deg, #e2213d 0%, #b50f28 100%);
  border-color: #ff6b84;
  box-shadow:
    0 14px 30px rgba(200, 16, 46, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.table-grid .lane-chip input:checked + span .table-scene {
  transform: translateY(-1px) scale(1.04);
}

.table-grid .lane-pins {
  display: none;
}

.lane-wall {
  width: 100%;
  min-height: 100%;
  align-self: stretch;
  border-radius: 0.28rem;
  background-color: #9a5844;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 40%, transparent 60%, rgba(0, 0, 0, 0.22)),
    repeating-linear-gradient(
      0deg,
      #8b4a38 0 0.5rem,
      #6f3a2c 0.5rem 0.58rem
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 45%,
      rgba(0, 0, 0, 0.22) 45% 55%,
      transparent 55% 100%
    );
  box-shadow:
    inset 0 0 0 1px rgba(255, 210, 180, 0.14),
    inset 0 0 8px rgba(0, 0, 0, 0.35);
}

.lane-pair-slave {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lane-chip {
  position: relative;
  cursor: pointer;
  min-width: 0;
}

.lane-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lane-chip span {
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-content: start;
  gap: 0.7rem;
  min-height: 8.4rem;
  padding: 0.85rem 0.28rem 0.85rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, #3a342e 0%, #2a2622 55%, #1f1c19 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -10px 18px rgba(0, 0, 0, 0.25);
  color: #f3efe8;
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  font-family: var(--font);
  transition: background 0.22s, border-color 0.22s, transform 0.22s, box-shadow 0.22s, color 0.22s;
}

.lane-chip span em {
  font-style: normal;
  align-self: end;
  margin-top: auto;
  line-height: 1;
  font-size: 1.35rem;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.lane-pins {
  position: relative;
  width: 2.15rem;
  height: 1.9rem;
  margin-top: 0.15rem;
  opacity: 0.42;
  color: #fff;
}

.lane-pins::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, currentColor 52%, transparent 56%) 50% 4% / 0.38rem 0.38rem no-repeat,
    radial-gradient(circle, currentColor 52%, transparent 56%) 30% 30% / 0.38rem 0.38rem no-repeat,
    radial-gradient(circle, currentColor 52%, transparent 56%) 70% 30% / 0.38rem 0.38rem no-repeat,
    radial-gradient(circle, currentColor 52%, transparent 56%) 12% 56% / 0.38rem 0.38rem no-repeat,
    radial-gradient(circle, currentColor 52%, transparent 56%) 50% 56% / 0.38rem 0.38rem no-repeat,
    radial-gradient(circle, currentColor 52%, transparent 56%) 88% 56% / 0.38rem 0.38rem no-repeat,
    radial-gradient(circle, currentColor 52%, transparent 56%) 2% 84% / 0.36rem 0.36rem no-repeat,
    radial-gradient(circle, currentColor 52%, transparent 56%) 34% 84% / 0.36rem 0.36rem no-repeat,
    radial-gradient(circle, currentColor 52%, transparent 56%) 66% 84% / 0.36rem 0.36rem no-repeat,
    radial-gradient(circle, currentColor 52%, transparent 56%) 98% 84% / 0.36rem 0.36rem no-repeat;
}

.lane-chip:hover span {
  background:
    linear-gradient(180deg, rgba(255, 170, 185, 0.22) 0%, transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.12)),
    linear-gradient(180deg, #5a2a32 0%, #3d171d 100%);
  border-color: rgba(255, 120, 140, 0.55);
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 12px 26px rgba(200, 16, 46, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.lane-chip:hover .lane-pins {
  opacity: 0.72;
}

.lane-chip input:checked + span,
.lane-chip:hover input:checked + span {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.12)),
    linear-gradient(180deg, #e2213d 0%, #b50f28 100%);
  border-color: #ff6b84;
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(200, 16, 46, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.lane-chip input:checked + span .lane-pins {
  opacity: 0.85;
}

.lane-pair-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  position: relative;
  min-width: 0;
}

.lane-pair-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.45rem;
  height: 2px;
  background: rgba(232, 160, 144, 0.9);
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.lane-pair-wrap.is-on::before {
  opacity: 1;
  height: 3px;
}

.lane-pair-wrap.is-on .lane-pair span,
.lane-pair-wrap.is-on .lane-chip:hover span {
  background:
    linear-gradient(180deg, rgba(255, 220, 210, 0.2) 0%, transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.12)),
    linear-gradient(180deg, #c24a3e 0%, #8f2a24 100%);
  border-color: #e8a090;
  box-shadow:
    0 12px 28px rgba(160, 50, 40, 0.35),
    inset 0 0 0 1px rgba(232, 160, 144, 0.28);
}

.lane-pair-info {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(200, 16, 46, 0.12);
  border: 1px solid rgba(200, 16, 46, 0.35);
  display: grid;
  gap: 0.85rem;
}

.lane-pair-info-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  align-items: start;
}

.lane-notice {
  margin: 0;
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.45;
}

.lane-notice strong {
  color: #fff;
}

.lane-pair-close {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}

.lane-pair-close:hover {
  background: var(--red);
  border-color: var(--red);
}

.lane-map {
  margin: 0;
  padding: 0;
}

.lane-map svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}

.lane-pair-ok {
  justify-self: end;
  min-height: 2.4rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-family: var(--font);
  transition: transform 0.2s, background 0.2s;
}

.lane-pair-ok:hover {
  transform: translateY(-1px);
  background: #ffe4e8;
}

.map-vip {
  cursor: pointer;
}

.map-vip .lane-fill-pair,
.map-vip .lane-pair-stroke,
.map-vip .map-pair-link {
  opacity: 0;
  transition: opacity 0.22s ease;
}

.map-vip.is-active .lane-fill-pair,
.map-vip.is-active .lane-pair-stroke,
.map-vip.is-active .map-pair-link {
  opacity: 1;
}

.map-vip.is-active .map-lane-pair .lane-fill {
  opacity: 0;
}

.map-vip.is-active .map-pair-link {
  filter: drop-shadow(0 0 4px rgba(200, 16, 46, 0.45));
}

.map-vip.is-active .map-lane-pair[data-lane="7"] {
  transform: translateX(8px);
}

.map-vip.is-active .map-lane-pair[data-lane="8"] {
  transform: translateX(-8px);
}

.map-vip .map-lane-pair {
  transition: transform 0.22s ease;
}

/* Date + time */
.datetime-grid {
  display: grid;
  grid-template-columns: minmax(250px, 320px) 1fr;
  gap: 1.1rem;
  align-items: start;
}

.calendar {
  padding: 0.9rem;
  border-radius: 1.1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
}

.cal-head {
  display: grid;
  grid-template-columns: 2.2rem 1fr 2.2rem;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.cal-title {
  margin: 0;
  text-align: center;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.cal-nav {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-size: 1.2rem;
  line-height: 1;
  transition: background 0.2s;
}

.cal-nav:hover {
  background: var(--red);
  border-color: var(--red);
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
  margin-bottom: 0.35rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.cal-day {
  aspect-ratio: 1;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cal-day.is-muted {
  opacity: 0.25;
  pointer-events: none;
}

.cal-day.is-disabled {
  opacity: 0.28;
  text-decoration: line-through;
  pointer-events: none;
}

.cal-day:not(.is-disabled):not(.is-muted):hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.cal-day.is-today {
  border-color: rgba(255, 255, 255, 0.35);
}

.cal-day.is-selected,
.cal-day.is-selected:hover,
.cal-day.is-selected:focus,
.cal-day.is-selected:active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.35);
}

.time-panel {
  min-width: 0;
}

.time-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.4rem, 1fr));
  gap: 0.55rem;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.time-slot {
  min-height: 3.35rem;
  padding: 0.85rem 0.45rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  font-family: var(--font);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.time-slot:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.time-slot.selected {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 10px 22px rgba(200, 16, 46, 0.3);
}

.time-slot:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  text-decoration: line-through;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.field-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font);
}

.field input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  outline: none;
  font-family: var(--font);
}

.field input:focus {
  border-color: var(--red-hot);
  box-shadow: 0 0 0 3px rgba(225, 29, 58, 0.18);
}

.fields-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.promo-row {
  display: flex;
  gap: 0.6rem;
  align-items: end;
}

.promo-row .grow {
  flex: 1;
  margin-bottom: 0;
}

.btn-dark,
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  font-weight: 800;
  font-family: var(--font);
  transition: transform 0.3s var(--ease), background 0.25s;
}

.btn-dark {
  background: #fff;
  color: var(--ink);
  white-space: nowrap;
}

.btn-submit {
  margin-top: 0.35rem;
  width: 100%;
  background: var(--red-hot);
  color: #fff;
  box-shadow: 0 12px 30px rgba(200, 16, 46, 0.28);
}

.btn-dark:hover,
.btn-submit:hover {
  transform: translateY(-2px);
}

.promo-msg {
  margin: 0.7rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font);
}

.promo-msg.is-ok {
  color: #7dffa3;
}

.promo-msg.is-err {
  color: #ff8fa3;
}

.book-legal {
  margin: 0.4rem 0 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font);
}

.book-legal a {
  text-decoration: underline;
  color: #fff;
}

.book-error {
  margin: 0 0 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.7rem;
  background: rgba(200, 16, 46, 0.2);
  border: 1px solid rgba(255, 80, 100, 0.35);
  color: #ffb3bf;
  font-weight: 700;
  font-family: var(--font);
}

.flow-block[hidden],
.flow-step[hidden],
.lane-grid[hidden],
.table-grid[hidden],
.lane-pair-info[hidden],
.lane-notice[hidden],
.promo-msg[hidden],
.book-error[hidden],
.old-price[hidden],
.book-toast[hidden] {
  display: none !important;
}

.flow-step.is-revealed {
  animation: stepReveal 0.45s var(--ease) both;
}

@keyframes stepReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Summary */
.summary {
  position: sticky;
  top: 3.5rem;
  overflow: hidden;
  border-radius: 1.15rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.summary-visual {
  position: relative;
  height: 132px;
  overflow: hidden;
}

.summary-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 12, 0.9));
  pointer-events: none;
}

.summary-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-stamp {
  position: absolute;
  right: 0.75rem;
  bottom: 0.55rem;
  z-index: 1;
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

.summary-body {
  padding: 0.85rem 0.85rem 1rem;
}

.summary-label {
  margin: 0 0 0.2rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font);
}

.summary-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.price,
.old-price {
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
}

.price {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price.is-bump {
  animation: priceBump 0.4s var(--ease);
}

@keyframes priceBump {
  40% {
    transform: scale(1.05);
    color: #ffd0d8;
  }
}

.old-price {
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: line-through;
}

.summary-list {
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.summary-item {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0.6rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-ico {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.6rem;
  display: grid;
  place-items: center;
  background: rgba(200, 16, 46, 0.18);
  color: #ffb0bc;
}

.summary-ico svg {
  width: 1rem;
  height: 1rem;
}

.summary-item-text {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.summary-item-text small {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font);
}

.summary-item-text strong {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  font-family: var(--font);
  color: #fff;
  overflow-wrap: anywhere;
}

.summary-rates {
  display: none;
}

.summary-call {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 176, 188, 0.35);
  background: rgba(200, 16, 46, 0.12);
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffb0bc;
  font-family: var(--font);
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.summary-call:hover {
  background: rgba(200, 16, 46, 0.22);
  color: #fff;
  transform: translateY(-1px);
}

.book-toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  z-index: 50;
  transform: translateX(-50%);
  width: min(920px, calc(100% - 2rem));
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.book-toast a {
  color: var(--red);
  text-decoration: underline;
}

.b4-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem var(--pad) 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  font-family: var(--font);
}

.b4-footer > a {
  font-weight: 700;
  color: #fff;
}

.b4-footer-hours {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.8rem;
}

@media (max-width: 980px) {
  .world-split,
  .flow-grid,
  .fields-2,
  .datetime-grid {
    grid-template-columns: 1fr;
  }

  .world {
    min-height: auto;
  }

  .world-side {
    min-height: 250px;
    height: 250px;
  }

  .world.is-chosen .world-split,
  .world.is-chosen .world-side {
    height: 96px;
    min-height: 96px;
  }

  .summary {
    position: static;
  }
}

/* Mobile side booking bar */
.book-mobile-bar {
  display: none;
}

@media (max-width: 980px) {
  .book-mobile-bar {
    display: block;
    position: fixed;
    top: 50%;
    right: 0.55rem;
    left: auto;
    bottom: auto;
    z-index: 45;
    padding: 0;
    background: none;
    pointer-events: none;
    transform: translate(120%, -50%);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
  }

  .book-mobile-bar:not([hidden]) {
    transform: translate(0, -50%);
    opacity: 1;
    pointer-events: none;
  }

  .book-mobile-bar[hidden] {
    display: block !important;
    visibility: hidden;
  }

  .book-mobile-bar-inner {
    display: grid;
    gap: 0.15rem;
    justify-items: end;
    min-width: 0;
    max-width: 7.8rem;
    margin: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 0.85rem 0 0 0.85rem;
    background: rgba(22, 22, 26, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 0;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(14px);
  }

  .book-mobile-bar-hours {
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
    white-space: nowrap;
  }

  .book-mobile-bar-price {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    text-align: right;
    white-space: nowrap;
  }

  body.book4.has-mobile-bar {
    padding-bottom: 0;
  }
}

@media (max-width: 640px) {
  .world-title {
    font-size: clamp(1.7rem, 9vw, 2.15rem);
  }

  .world-copy strong {
    font-size: clamp(1.55rem, 8vw, 2.05rem);
  }

  .world {
    min-height: calc(100svh - 3.4rem);
    padding-top: 0.85rem;
  }

  .lane-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) 0.32rem minmax(0, 2.05fr);
    gap: 0.28rem;
  }

  .lane-chip span {
    min-height: 6.8rem;
    padding: 0.55rem 0.12rem 0.6rem;
    font-size: 1.05rem;
    border-radius: 0.75rem;
  }

  .lane-chip span em {
    font-size: 1.1rem;
  }

  .lane-pins {
    width: 1.55rem;
    height: 1.35rem;
  }

  .lane-pins::before {
    background:
      radial-gradient(circle, currentColor 52%, transparent 56%) 50% 4% / 0.28rem 0.28rem no-repeat,
      radial-gradient(circle, currentColor 52%, transparent 56%) 30% 30% / 0.28rem 0.28rem no-repeat,
      radial-gradient(circle, currentColor 52%, transparent 56%) 70% 30% / 0.28rem 0.28rem no-repeat,
      radial-gradient(circle, currentColor 52%, transparent 56%) 12% 56% / 0.28rem 0.28rem no-repeat,
      radial-gradient(circle, currentColor 52%, transparent 56%) 50% 56% / 0.28rem 0.28rem no-repeat,
      radial-gradient(circle, currentColor 52%, transparent 56%) 88% 56% / 0.28rem 0.28rem no-repeat,
      radial-gradient(circle, currentColor 52%, transparent 56%) 2% 84% / 0.26rem 0.26rem no-repeat,
      radial-gradient(circle, currentColor 52%, transparent 56%) 34% 84% / 0.26rem 0.26rem no-repeat,
      radial-gradient(circle, currentColor 52%, transparent 56%) 66% 84% / 0.26rem 0.26rem no-repeat,
      radial-gradient(circle, currentColor 52%, transparent 56%) 98% 84% / 0.26rem 0.26rem no-repeat;
  }

  .table-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .table-grid .lane-chip span {
    min-height: 7.2rem;
    padding: 0.55rem 0.3rem 0.55rem;
  }

  .table-grid .lane-chip span em {
    font-size: 1rem;
  }

  .table-scene {
    width: 100%;
    max-width: 5.5rem;
  }

  .promo-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow,
  .world-side,
  .price.is-bump,
  .flow-step.is-revealed {
    animation: none !important;
    transition: none !important;
  }
}

/* Онлайн-оплата отключена — поясняем, что платить нужно на месте */
.pay-note {
  margin: 2px 0 0;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(245, 197, 24, .1);
  border: 1px solid rgba(245, 197, 24, .35);
  color: rgba(255, 255, 255, .82);
  font-size: .88rem;
  line-height: 1.45;
}
