:root {
  --bg: #101311;
  --bg-2: #1a1f1c;
  --paper: #f4efe6;
  --ink: #161816;
  --bone: #f6f1e8;
  --muted: #8d877d;
  --line: rgba(22, 24, 22, 0.12);
  --line-light: rgba(246, 241, 232, 0.16);
  --accent: #e07a3d;
  --accent-2: #d7b56a;
  --forest: #24312b;
  --display: "Unbounded", "Arial Narrow", sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --header: 84px;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
body > main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; margin: 0; }
p { margin: 0; }

body[data-house="lapki"] { --accent: #e07a3d; }
body[data-house="rowan"] { --accent: #c6a15b; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--bg);
  color: var(--bone);
  padding: 8px 12px;
  z-index: 40;
}
.skip:focus { top: 12px; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--accent);
  z-index: 50;
  pointer-events: none;
}

.cursor {
  position: fixed;
  z-index: 60;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: width 0.25s, height 0.25s, margin 0.25s, opacity 0.25s;
}
body.cursor-on .cursor { opacity: 1; }
.cursor.is-hot {
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  background: transparent;
  border: 1px solid var(--bone);
  mix-blend-mode: normal;
}

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

html.js [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(22px);
}
[data-reveal] { transition: opacity 0.7s ease, transform 0.7s ease; }

/* Home gate */
.home { background: var(--bg); color: var(--bone); --accent: #d7b56a; }
.gate {
  position: relative;
  height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  padding: 18px 22px 22px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(215, 181, 106, 0.16), transparent 42%),
    #070807;
  overflow: hidden;
}
.gate-bar {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 4px 0 2px;
}
.brand-lockup {
  display: grid;
  justify-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--bone);
}
.brand-mark { width: 54px; height: 30px; }
.brand-name {
  margin-top: 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}
.gate .brand-name { font-size: 18px; letter-spacing: 0.46em; }
.brand-place {
  font-family: "Marck Script", cursive;
  font-size: 46px;
  font-weight: 400;
  line-height: 0.85;
  color: #f0ddb0;
}
.brand-place-ink {
  display: block;
  margin-bottom: 6px;
  color: #8d6733;
  font-size: 40px;
  line-height: 1;
}
.gate-policy {
  position: absolute;
  top: 8px;
  right: 0;
  color: var(--bone);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.78;
}
.gate-policy:hover { opacity: 1; }
.gate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  min-height: 0;
}
.gate-card {
  position: relative;
  display: block;
  min-height: 0;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  color: white;
  text-decoration: none;
  background: #121614;
}
.gate-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transition: transform 0.7s ease;
}
.gate-card:hover img { transform: scale(1.04); }
.gate-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.08) 42%, rgba(0,0,0,.22) 100%);
}
.gate-index {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.gate-copy {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 8px;
  justify-items: start;
}
.gate-copy strong {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 4vw, 68px);
  letter-spacing: -0.045em;
  line-height: 0.92;
}
.gate-copy .meta { opacity: 0.88; }
.gate-card:last-child .gate-copy > .gate-index {
  position: absolute;
  top: 22px;
  left: 22px;
  margin: 0;
}
.go {
  width: fit-content;
  border-bottom: 1px solid rgba(255,255,255,.7);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  padding-bottom: 3px;
}

.home-rest { background: var(--paper); color: var(--ink); }
.intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding: 88px 0 30px;
  align-items: end;
}
.intro h2 { font-size: clamp(36px, 5vw, 64px); }
.rotator { min-height: 1.3em; color: var(--accent); }
.intro p { font-size: 18px; max-width: 460px; }

.story-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-bottom: 72px;
}
.story {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: flex-end;
}
.story img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.story:hover img { transform: scale(1.06); }
.story span {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent 55%);
}
.story div { position: relative; padding: 24px; display: grid; gap: 6px; }
.story h3 { font-size: 36px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 10px 0 88px;
}
.steps article { border-top: 1px solid var(--line); padding-top: 18px; }
.steps b { font-family: var(--display); font-size: 28px; color: var(--accent); font-weight: 500; }
.steps h3 { font-size: 26px; margin: 10px 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 32px;
  background: rgba(8, 9, 8, 0.94);
  color: var(--bone);
  border-bottom: 1px solid rgba(215, 181, 106, 0.32);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header { transition: transform 0.35s ease; }
.logo { text-decoration: none; display: grid; gap: 2px; line-height: 1; }
.logo b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.logo span {
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #d7b56a;
}
.logo em {
  font-family: "Marck Script", cursive;
  font-style: normal;
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
}
.nav {
  display: none;
  position: fixed;
  inset: var(--header) 0 0 0;
  background: rgba(16, 19, 17, 0.97);
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 22px;
  gap: 16px;
  z-index: 9;
}
.nav.is-open { display: flex; }
.nav a {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav a.is-on { color: var(--accent); }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(215, 181, 106, 0.45);
  background: transparent;
  color: var(--bone);
  min-height: 38px;
  padding: 0 16px;
  border-radius: 0;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--accent);
  color: #1a120c;
  border: 0;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn:hover { filter: brightness(1.08); }
.btn-line { background: transparent; color: var(--bone); border: 1px solid var(--line-light); }
.nav-book { display: inline; }
.site-header > .btn,
.nav-book {
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(215, 181, 106, 0.72);
  border-radius: 0;
  min-height: 40px;
  padding: 0 18px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.2em;
}
.site-header > .btn:hover,
.nav-book:hover {
  background: #d7b56a;
  color: #14110c;
  filter: none;
}
.site-header:has(.nav-toggle) > .btn { display: none; }

.hero { position: relative; min-height: calc(100svh - var(--header)); color: white; display: grid; align-items: end; overflow: visible; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,10,9,.82), rgba(8,10,9,.12) 50%); }
.hero-stack {
  align-self: end;
  display: grid;
  gap: 6px;
  position: relative;
  overflow: visible;
}
.hero-copy { position: relative; z-index: 1; padding-bottom: 8px; display: grid; gap: 14px; }
.hero-booking {
  position: relative;
  z-index: 10000;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 32px;
  overflow: visible;
}
.hero-booking [data-roomslot-widget-id] { overflow: visible; }
.hero-booking iframe { min-height: 88px !important; background: transparent; }
.hero h1 { font-size: clamp(46px, 8vw, 104px); max-width: 980px; }
.hero h1 span { display: inline-block; margin-right: 0.22em; }
html.js .hero h1 span { animation: rise 0.7s ease both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg);
  color: var(--bone);
}
.stats div { padding: 26px 18px; }
.stats div + div { border-left: 1px solid var(--line-light); }
.stats b { display: block; font-family: var(--display); font-size: 40px; font-weight: 500; }
.stats span { color: rgba(246,241,232,.68); font-size: 14px; }

.section { padding: 84px 0; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(32px, 4vw, 56px); max-width: 740px; }

.split-text { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 42px; align-items: center; }
.prose { display: grid; gap: 14px; font-size: 17px; }
.portrait { width: 100%; height: 620px; object-fit: cover; }
.quote {
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.amenity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amenity {
  background: white;
  border: 1px solid var(--line);
  min-height: 150px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  transition: transform 0.35s ease, border-color 0.35s;
}
.amenity:hover { transform: translateY(-4px); border-color: var(--accent); }
.amenity i { font-style: normal; font-family: var(--display); color: var(--accent); font-size: 20px; }
.amenity span { color: var(--muted); font-size: 14px; }

.rail-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 16px; }
.rail-head h2.kicker { font-family: var(--sans); }
.rail-controls { display: flex; gap: 8px; align-items: center; }
.rail-controls button, .icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
}
.rail {
  display: flex;
  gap: 12px;
  padding-left: max(20px, calc((100vw - 1180px) / 2));
  padding-right: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  padding-bottom: 8px;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.shot {
  flex: 0 0 min(78vw, 540px);
  height: min(68vh, 640px);
  border: 0;
  padding: 0;
  background: #ddd4c6;
  scroll-snap-align: start;
  overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.rail-meta { margin-top: 10px; color: var(--muted); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }

.prices { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 36px; }
.price-row {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.price-row b { font-family: var(--display); font-size: 24px; font-weight: 500; }
.note { color: var(--muted); margin-top: 14px; font-size: 14px; }

.acc + .acc { border-top: 1px solid var(--line); }
.acc button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
}
.acc button:after { content: "+"; font-family: var(--display); color: var(--accent); font-size: 28px; line-height: 1; }
.acc.is-open button:after { content: "–"; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.acc.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding-bottom: 16px; max-width: 720px; color: #3c3832; }

.place { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 22px; }
.map { width: 100%; min-height: 420px; border: 0; filter: grayscale(0.35) contrast(1.05); }
.contacts { display: grid; gap: 8px; margin-top: 16px; }
.contacts a { font-weight: 750; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  background: var(--bone);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 40;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10030;
  background: rgba(6, 8, 7, 0.94);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 18px;
}
body.lightbox-open .msg-dock { display: none; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1200px, 100%); max-height: 74vh; margin: auto; object-fit: contain; }
.lb-top, .lb-bottom { display: flex; justify-content: space-between; align-items: center; color: white; }
.lb-top button, .lb-bottom button {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,.35);
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
}

.site-footer {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(215, 181, 106, 0.14), transparent 36%),
    #070807;
  color: var(--bone);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.8fr;
  gap: 36px 28px;
  align-items: start;
}
.footer-lockup { justify-items: start; text-align: left; }
.footer-lockup .brand-place { font-size: 40px; }
.footer-brand p {
  max-width: 320px;
  margin-top: 16px;
  color: rgba(246, 241, 232, 0.72);
}
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d7b56a;
  margin-bottom: 6px;
}
.footer-col strong { font-family: var(--display); font-weight: 500; font-size: 22px; }
.footer-col a { color: rgba(246, 241, 232, 0.82); text-decoration: none; }
.footer-col a:hover { color: white; }
.footer-go {
  width: fit-content;
  margin-top: 8px;
  border-bottom: 1px solid rgba(246, 241, 232, 0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid rgba(246, 241, 232, 0.14);
  color: rgba(246, 241, 232, 0.62);
  font-size: 14px;
}
.footer-base a { color: inherit; }

.policy { padding: 54px 0 80px; }
.policy h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 18px; }
.policy p, .policy li { margin-top: 12px; }
.curtain {
  position: fixed;
  inset: 0;
  background: var(--bg);
  color: var(--bone);
  z-index: 70;
  display: grid;
  place-items: center;
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(100%);
  pointer-events: none;
}
.curtain.is-on { transform: none; transition: transform 0.45s ease; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (min-width: 1101px) {
  .nav {
    display: flex;
    position: static;
    inset: auto;
    background: transparent;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 26px;
  }
  .nav a { font-size: 16px; letter-spacing: 0.14em; }
  .nav-toggle { display: none; }
  .nav-book { display: none; }
  .site-header:has(.nav-toggle) > .btn { display: inline-flex; }
}

@media (max-width: 900px) {
  .intro, .story-rail, .steps, .split-text, .prices, .place, .amenity-grid, .stats {
    grid-template-columns: 1fr;
  }
  .stats div + div { border-left: 0; border-top: 1px solid var(--line-light); }
  .hero-row { display: grid; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .gate { padding: 14px; gap: 12px; }
  .brand-place { font-size: 38px; }
  .gate-copy strong { font-size: 40px; }
  .portrait { height: 420px; }
  .section-head { flex-direction: column; align-items: start; }
}

@media (max-width: 800px) {
  .gate {
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }
  .gate-grid {
    position: relative;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    gap: 0;
    border-radius: 24px;
    overflow: hidden;
    min-height: 0;
  }
  .gate-grid::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(
      to bottom right,
      transparent calc(50% - 1.5px),
      rgba(246, 241, 232, 0.55) calc(50% - 1.5px),
      rgba(246, 241, 232, 0.55) calc(50% + 1.5px),
      transparent calc(50% + 1.5px)
    );
  }
  .gate-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
  }
  .gate-card:first-child {
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    z-index: 1;
    background: #9ec5e6;
  }
  .gate-card:first-child::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse 120% 85% at 100% 0%, #e8f4fc 0%, #b8d7ef 28%, #8ebee3 52%, transparent 70%),
      linear-gradient(215deg, #c9e2f4 0%, #94c0e3 38%, #7aafd6 100%);
  }
  .gate-card:last-child {
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 2;
  }
  .gate-card:first-child .gate-shade {
    background: linear-gradient(325deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.14) 52%, transparent 78%);
  }
  .gate-card:last-child .gate-shade {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.12) 48%, transparent 72%);
  }
  .gate-card:first-child .gate-index {
    top: auto;
    left: auto;
    right: 12px;
    bottom: 16px;
  }
  .gate-card:last-child .gate-copy > .gate-index {
    position: static;
    justify-self: start;
    margin: 0 0 8px;
  }
  .gate-card:first-child .gate-copy {
    top: auto;
    left: auto;
    right: 12px;
    bottom: 14px;
    width: min(54vw, 210px);
    text-align: right;
    justify-items: end;
  }
  .gate-card:first-child img {
    position: relative;
    z-index: 1;
    object-position: 36% 32%;
    transform: translate(12%, 21%) scale(1.1);
    transform-origin: center center;
  }
  .gate-card:first-child:hover img {
    transform: translate(12%, 21%) scale(1.12);
  }
  .gate-card:last-child .gate-copy {
    top: 52px;
    left: 12px;
    right: auto;
    bottom: auto;
    width: min(54vw, 210px);
    text-align: left;
    justify-items: start;
  }
  .gate-copy strong { font-size: clamp(20px, 5.6vw, 30px); }
  .gate-copy .meta { font-size: 10px; line-height: 1.35; }
  .gate-copy .kicker { font-size: 10px; }
  .gate-copy .go { font-size: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding-top: 48px; }
}

.msg-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10020;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
body.home .msg-dock {
  right: auto;
  left: 18px;
  align-items: flex-start;
}
.msg-panel {
  display: grid;
  gap: 6px;
  min-width: 210px;
  padding: 12px;
  border-radius: 16px;
  background: #161816;
  color: var(--bone);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.msg-panel[hidden] { display: none; }
.msg-panel p {
  margin: 0 4px 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d7b56a;
}
.msg-panel a {
  display: block;
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
}
.msg-panel a:hover { background: rgba(255, 255, 255, 0.12); }
.msg-btn {
  position: relative;
  width: 54px;
  height: 54px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.msg-wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  pointer-events: none;
  animation: msg-wave 1.8s ease-out forwards;
}
.msg-telegram .msg-wave { color: #7fd4ff; }
.msg-max .msg-wave { color: #b7adff; }
@keyframes msg-wave {
  from { transform: scale(1); opacity: 0.55; }
  to { transform: scale(1.75); opacity: 0; }
}
.msg-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.msg-btn svg { width: 26px; height: 26px; display: block; }
.msg-telegram { background: #2aabee; }
.msg-max { background: #5a45f5; }

html.roomslot-modal-open .progress,
html.roomslot-modal-open .cursor,
html.roomslot-modal-open .toast,
html.roomslot-modal-open .msg-dock { z-index: 1; }
html.roomslot-modal-open:not(.roomslot-modal-from-header) .site-header {
  z-index: 1;
  transform: none;
}
html.roomslot-modal-from-header .site-header {
  z-index: 10050;
  overflow: visible;
}
html.roomslot-modal-open .hero-copy,
html.roomslot-modal-open .hero-shade {
  z-index: 0;
  pointer-events: none;
}
html.roomslot-modal-open .hero-booking { z-index: 10050; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .amenity, .story img, .site-header, .acc-panel, .curtain, .gate-card img { transition: none; }
  html.js .hero h1 span, .msg-wave { animation: none; }
}
