:root {
  --bg: #f8f6f2;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #5f6b78;
  --line: rgba(17, 24, 39, .09);
  --line-strong: rgba(17, 24, 39, .2);
  --accent: #b59462;
  --accent-dark: #8d6c3e;
  --accent-soft: #f0ede7;
  --gold: #b59462;
  --danger: #b83b36;
  --danger-soft: #fff0ee;
  --success: #23734d;
  --shadow: 0 20px 56px rgba(17, 24, 39, .1);
  --radius: 6px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Manrope", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.booking-shell {
  width: min(1460px, calc(100% - 48px));
  margin: 0 auto;
}

.nav.scrolled .nav-links a[aria-current="page"] { color: var(--gold-dk); }
.mobile-menu__links a[aria-current="page"] { color: var(--gold-dk); }
.footer-nav a[aria-current="page"] { color: var(--gold-lt); }

.booking-intro {
  padding: 120px 0 48px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.booking-intro h1 {
  margin: 5px 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.booking-intro p:last-child { margin: 0; color: var(--muted); max-width: 720px; }

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 44px;
  align-items: start;
  padding-top: 44px;
  padding-bottom: 84px;
}

.catalog { min-width: 0; }
.equipment-group { margin: 0 0 58px; padding: 0; border: 0; min-width: 0; }
.equipment-group:last-child { margin-bottom: 0; }

.equipment-group > legend {
  width: 100%;
  margin: 0 0 20px;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.equipment-group__legend--inline { font-size: 28px; white-space: nowrap; }

.group-number {
  display: inline-block;
  min-width: 35px;
  margin-right: 8px;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}

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

.equipment-grid--three,
.equipment-grid--single { grid-template-columns: minmax(0, 1fr); }
.board-card--wide { grid-column: auto; max-width: none; }

.board-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.board-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.board-card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.board-radio { position: absolute; opacity: 0; pointer-events: none; }

.board-carousel {
  display: none;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #fff;
}

.board-card.is-selected .board-carousel { display: block; }

.board-carousel__track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translateX(0);
  transition: transform .32s ease;
}

.board-carousel__track img {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  object-fit: contain;
  object-position: center;
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 14px rgba(23, 32, 31, .16);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s, transform .2s;
}

.carousel-button:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.carousel-button svg { width: 19px; height: 19px; }
.carousel-button--prev { left: 10px; }
.carousel-button--next { right: 10px; }

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 2;
  display: flex;
  gap: 5px;
  transform: translateX(-50%);
}

.carousel-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 1px rgba(23, 32, 31, .22);
}
.carousel-dots .is-active { background: #fff; }

.board-card__body {
  min-height: 58px;
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}

.board-card.is-selected .board-card__body {
  min-height: 166px;
  padding: 18px;
  align-items: flex-start;
}

.radio-mark {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 0;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 4px #fff;
  transition: background .2s, border-color .2s;
}

.board-card.is-selected .radio-mark { margin-top: 2px; border-color: var(--accent); background: var(--accent); }
.board-card__copy { display: block; min-width: 0; }
.board-card__copy strong {
  display: block;
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}
.board-card__copy > span { display: none; color: var(--muted); font-size: 16px; line-height: 1.6; }
.board-card.is-selected .board-card__copy strong { margin-bottom: 7px; font-size: 25px; }
.board-card.is-selected .board-card__copy > span { display: block; }

.board-card .board-card__booking-link {
  width: calc(100% - 36px);
  margin: 0 18px 18px;
  display: none;
}

.board-card.is-selected .board-card__booking-link { display: inline-flex; }

.booking-sidebar {
  position: sticky;
  top: 94px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.selection-placeholder {
  min-height: 240px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
}
.selection-placeholder svg { width: 30px; height: 30px; margin-bottom: 14px; color: var(--accent); }
.selection-placeholder strong { color: var(--ink); font-size: 18px; }
.selection-placeholder span { margin-top: 4px; font-size: 13px; }

.selection-panel, .cart-panel { padding: 24px; }
.selection-panel { scroll-margin-top: 84px; }
.selection-panel h2, .cart-panel h2 { margin: 2px 0 20px; font-family: var(--font-serif); font-size: 29px; line-height: 1.05; letter-spacing: 0; }
.cart-panel { border-top: 1px solid var(--line); }
.panel-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.panel-heading h2 { margin-bottom: 14px; }
.cart-count {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.booking-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .duration-field > legend, .promo-field > label {
  color: #3e4947;
  font-size: 12px;
  font-weight: 700;
}

.field input, .field select, .field textarea, .promo-row input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  outline: none;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .promo-row input::placeholder { color: #8a9492; opacity: 1; }
.field textarea { min-height: 88px; resize: vertical; }
.field-hint { margin-top: -2px; color: var(--muted); font-size: 10px; }
.field input:focus, .field select:focus, .field textarea:focus, .promo-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(12, 112, 106, .12);
}

.duration-field { margin: 0; padding: 0; border: 0; }
.duration-field > legend { margin-bottom: 7px; }
.duration-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.duration-option { position: relative; }
.duration-option input { position: absolute; opacity: 0; pointer-events: none; }
.duration-option span {
  min-height: 40px;
  padding: 5px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.duration-option input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }

.selected-slot-price {
  padding: 13px 14px;
  border: 1px solid rgba(12, 112, 106, .28);
  border-radius: 4px;
  background: var(--accent-soft);
}
.selected-slot-price > span { display: block; margin-bottom: 3px; color: var(--accent-dark); font-size: 11px; font-weight: 700; }
.selected-slot-price > div { display: flex; align-items: baseline; gap: 8px; }
.selected-slot-price strong { color: var(--ink); font-family: var(--font-serif); font-size: 28px; line-height: 1; }
.selected-slot-price s { color: var(--muted); font-size: 12px; }
.selected-slot-price small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }

.button {
  min-height: 46px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, opacity .2s;
}
.button svg { width: 17px; height: 17px; }
.button--full { width: 100%; }
.button--primary { background: var(--accent); color: #fff; }
.button--primary:hover:not(:disabled) { background: var(--accent-dark); }
.button--secondary { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.button--secondary:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.button:disabled { opacity: .42; cursor: not-allowed; }

.cart-items { display: grid; }
.cart-item {
  position: relative;
  padding: 13px 38px 13px 0;
  border-top: 1px solid var(--line);
}
.cart-item:first-child { border-top: 0; }
.cart-item strong { display: block; padding-right: 8px; font-size: 13px; }
.cart-item__meta { margin-top: 3px; color: var(--muted); font-size: 12px; }
.cart-item__price { margin-top: 5px; font-size: 13px; font-weight: 800; }
.cart-item__old-price { margin-left: 5px; color: var(--muted); font-size: 11px; font-weight: 500; text-decoration: line-through; }
.cart-item__discount { display: inline-block; margin-left: 6px; color: var(--success); font-size: 10px; font-weight: 800; }
.cart-remove {
  position: absolute;
  top: 13px;
  right: 0;
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.cart-remove:hover { background: var(--danger-soft); color: var(--danger); }
.cart-remove svg { width: 17px; height: 17px; }
.cart-empty { padding: 20px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.cart-totals { padding: 14px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; gap: 18px; margin: 5px 0; color: var(--muted); font-size: 12px; }
.total-row strong { color: var(--ink); }
.total-row--discount { color: var(--success); }
.total-row--final { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); font-size: 16px; font-weight: 800; }

.promo-field { padding: 18px 0; border-bottom: 1px solid var(--line); }
.promo-field > label { display: block; margin-bottom: 7px; }
.promo-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.promo-row input { text-transform: uppercase; }
.field-message { min-height: 17px; margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.field-message.is-error { color: var(--danger); }
.field-message.is-success { color: var(--success); }

.contact-form { padding-top: 18px; }
.contact-grid { display: grid; gap: 13px; }
.contact-form > .field { margin-top: 13px; }
.consent { margin: 15px 0; display: flex; gap: 9px; align-items: flex-start; color: var(--muted); font-size: 10px; line-height: 1.45; }
.consent input { width: 16px; height: 16px; flex: 0 0 16px; margin: 0; accent-color: var(--accent); }
.consent a { color: var(--accent); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.button--book { min-height: 52px; }
.submit-result { display: none; margin-top: 12px; padding: 12px; border-radius: 4px; font-size: 12px; line-height: 1.5; }
.submit-result.is-visible { display: block; }
.submit-result.is-success { background: #e9f5ed; color: #165b39; }
.submit-result.is-error { background: var(--danger-soft); color: #8e2824; }

@media (max-width: 1180px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
  .equipment-group__legend--inline { font-size: 20px; }
}

@media (max-width: 920px) {
  .booking-layout { display: flex; flex-direction: column; }
  .catalog { width: 100%; }
  .booking-sidebar { position: static; width: 100%; }
}

@media (max-width: 760px) {
  .booking-shell { width: min(100% - 28px, 1460px); }
  .booking-intro { padding: 98px 0 30px; }
  .booking-intro h1 { font-size: 44px; }
  .booking-intro p:last-child { font-size: 13px; }
  .booking-layout { gap: 28px; padding-top: 30px; padding-bottom: 54px; }
  .equipment-group { margin-bottom: 42px; }
  .equipment-group > legend { font-size: 29px; }
  .equipment-group__legend--inline { font-size: 29px; white-space: normal; }
  .board-card--wide { grid-column: auto; max-width: none; }
  .board-card__body { min-height: 56px; }
  .board-card.is-selected .board-card__body { min-height: 0; }
  .board-card__copy strong { font-size: 22px; }
  .board-card.is-selected .board-card__copy strong { font-size: 24px; }
  .selection-panel, .cart-panel { padding: 20px; }
  .field input, .field select, .field textarea, .promo-row input { font-size: 16px; }
}

@media (max-width: 390px) {
  .booking-intro h1 { font-size: 40px; }
  .equipment-group > legend { font-size: 26px; }
  .duration-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
