:root {
  --bg: #F6F2EC;
  --bg-2: #EFE8DE;
  --surface: #FFFFFF;
  --ink: #1C2427;
  --ink-2: #5A6463;
  --ink-3: #8C9492;
  --line: rgba(28, 36, 39, .08);
  --sea: #355F69;
  --sea-ink: #FFFFFF;
  --sea-tint: #E2EBE9;
  --sand: #E8DDCC;
  --terra: #C2825F;
  --sage: #9EA88F;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius: 18px;
  --shadow-card: 0 1px 2px rgba(18, 28, 30, .04), 0 18px 48px -18px rgba(18, 28, 30, .18);
  --shadow-pop: 0 2px 6px rgba(18, 28, 30, .06), 0 30px 80px -20px rgba(18, 28, 30, .35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- nawigacja */
.top {
  position: sticky; top: 0; z-index: 30; backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); background: rgba(246, 242, 236, .78);
  transition: box-shadow .3s var(--ease);
}
.top.scrolled { box-shadow: 0 1px 0 var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; padding: 9px 14px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.nav a:hover { background: rgba(28, 36, 39, .06); color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: .005em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--sea); color: var(--sea-ink); box-shadow: 0 10px 24px -10px rgba(53, 95, 105, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(53, 95, 105, .75); }
.btn-light { background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--shadow-card); }
.btn-light:hover { transform: translateY(-2px); background: #fff; }
.btn-ghost { background: rgba(28, 36, 39, .06); }
.btn-ghost:hover { background: rgba(28, 36, 39, .1); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.top .btn { height: 42px; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 8px 0 0; }
.hero-card {
  position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 560px; height: 74vh; max-height: 820px;
  background: #ddd center/cover no-repeat; box-shadow: var(--shadow-card); isolation: isolate;
}
.hero-card img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transform: scale(1.04); animation: heroIn 1.6s var(--ease) forwards; }
@keyframes heroIn { to { transform: scale(1); } }
.hero-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 18, 20, 0) 40%, rgba(10, 18, 20, .55) 100%);
}
.hero-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px; color: #fff; display: flex;
  align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 500; color: #fff;
}
.chip svg { width: 16px; height: 16px; }
.hero h1 {
  font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6.4vw, 88px); line-height: .98;
  letter-spacing: -.025em; margin: 14px 0 10px;
}
.hero p.lead { margin: 0; font-size: 18px; opacity: .92; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.play-3d { height: 60px; padding: 0 26px 0 10px; font-size: 16px; }
.play-3d .ring {
  width: 42px; height: 42px; border-radius: 50%; background: var(--sea); color: #fff; display: grid; place-items: center;
  position: relative;
}
.play-3d .ring::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(53, 95, 105, .35);
  animation: pulse 2.2s infinite var(--ease);
}
@keyframes pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.badge-3d {
  position: absolute; top: 24px; left: 24px; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 8px;
  border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-weight: 600; font-size: 13.5px;
  box-shadow: var(--shadow-card);
}
.badge-3d i { width: 22px; height: 22px; border-radius: 50%; background: var(--sea); display: grid; place-items: center; }
.badge-3d i svg { width: 13px; height: 13px; color: #fff; }

/* ---------------------------------------------------------------- fakty */
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.fact {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 12px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-card); font-size: 15px; font-weight: 500;
}
.fact svg { width: 22px; height: 22px; color: var(--sea); }

/* ---------------------------------------------------------------- układ */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; margin-top: 28px; align-items: start; }
.section { padding: 44px 0 8px; }
.section h2 {
  font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.02em;
  line-height: 1.05; margin: 0 0 22px;
}
.section p { color: var(--ink-2); font-size: 17px; margin: 0 0 14px; max-width: 680px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* galeria */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 12px; }
.gallery button { border-radius: var(--radius); overflow: hidden; position: relative; padding: 0; background: var(--sand); }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }
.gallery .g-main { grid-column: span 2; grid-row: span 2; }
.gallery .g-wide { grid-column: span 2; }

/* pomieszczenia */
.rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.room {
  display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow-card); text-align: left; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.room:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.room img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; flex: none; }
.room b { display: block; font-size: 17px; font-weight: 600; }
.room span { color: var(--ink-3); font-size: 14.5px; }
.room .go {
  margin-left: auto; width: 44px; height: 44px; border-radius: 50%; background: var(--sea-tint); color: var(--sea);
  display: grid; place-items: center; flex: none; transition: background .2s, color .2s;
}
.room:hover .go { background: var(--sea); color: #fff; }
.room .go svg { width: 20px; height: 20px; }

/* udogodnienia */
.amen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amen div {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow-card); font-weight: 500; font-size: 15px;
}
.amen svg { width: 24px; height: 24px; color: var(--sea); flex: none; }

/* rzut */
.plan-card { background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); padding: 22px; }
.plan-card svg { width: 100%; height: auto; display: block; }
.plan-room { cursor: pointer; transition: fill .25s; }
.plan-room:hover { fill: rgba(53, 95, 105, .12); }
.plan-label { font-family: var(--font); pointer-events: none; }

/* lokalizacja */
.loc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.loc-map { border-radius: var(--radius-xl); overflow: hidden; background: #E7EEEC; min-height: 300px; position: relative; box-shadow: var(--shadow-card); }
.loc-map svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.loc-list { display: grid; gap: 10px; }
.loc-list div {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.loc-list svg { width: 22px; height: 22px; color: var(--sea); flex: none; }
.loc-list b { font-weight: 600; }
.loc-list span { margin-left: auto; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- rezerwacja */
.book {
  position: sticky; top: 92px; background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-pop);
  padding: 26px;
}
.book-head { display: flex; align-items: baseline; gap: 8px; }
.price { font-family: var(--display); font-size: 40px; letter-spacing: -.02em; line-height: 1; }
.per { color: var(--ink-3); }
.demo { margin-left: auto; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--sand); color: #7C6A52; }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0 8px; }
.field {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 16px; background: var(--bg);
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s, background .2s; position: relative;
}
.field:focus-within { box-shadow: inset 0 0 0 1.5px var(--sea); background: #fff; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.field input {
  border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 15px; color: var(--ink); padding: 0;
  outline: none; width: 100%; min-height: 24px;
}
.field input::-webkit-calendar-picker-indicator { opacity: .45; cursor: pointer; margin-left: 2px; }
.field input[type=date] { min-width: 0; }
.guests { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button {
  width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line);
  display: grid; place-items: center; font-size: 20px; line-height: 1; transition: box-shadow .2s, transform .15s;
}
.stepper button:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.stepper button:active { transform: scale(.9); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 18px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.sum { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; display: grid; gap: 8px; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; color: var(--ink-2); }
.sum .total { color: var(--ink); font-weight: 700; font-size: 17px; padding-top: 6px; }
.book .btn { width: 100%; height: 56px; margin-top: 18px; font-size: 16px; }
.book .btn-3d { margin-top: 10px; height: 50px; }

/* pasek mobilny */
.mbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25; display: none; align-items: center; gap: 12px;
  padding: 10px 10px 10px 20px; border-radius: 999px; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-pop);
  backdrop-filter: blur(12px);
}
.mbar .price { font-size: 26px; }
.mbar .btn { margin-left: auto; }

/* ---------------------------------------------------------------- modal */
.modal {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(14, 20, 22, .45);
  backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.modal.open { opacity: 1; pointer-events: auto; }
.sheet {
  width: min(460px, 100%); background: var(--surface); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-pop);
  transform: translateY(24px) scale(.98); transition: transform .4s var(--ease); position: relative;
}
.modal.open .sheet { transform: none; }
.sheet h3 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 0 0 4px; letter-spacing: -.02em; }
.sheet .meta { color: var(--ink-3); margin: 0 0 18px; }
.sheet .field { margin-bottom: 8px; }
.sheet .x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); }
.sheet .x svg { width: 18px; height: 18px; }
.done { text-align: center; padding: 18px 0 6px; }
.done .check {
  width: 76px; height: 76px; border-radius: 50%; background: var(--sea-tint); margin: 0 auto 16px; display: grid; place-items: center;
}
.done .check svg { width: 38px; height: 38px; color: var(--sea); stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .15s forwards var(--ease); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 70; background: rgba(8, 12, 13, .92); display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .3s; }
.lb.open { opacity: 1; pointer-events: auto; }
.lb img { max-width: 92vw; max-height: 86vh; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb .nav-b { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; }
.lb .nav-b:hover { background: rgba(255, 255, 255, .25); }
.lb .prev { left: 20px; } .lb .next { right: 20px; }
.lb .close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; }
.lb svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- spacer 3D */
.walk { position: fixed; inset: 0; z-index: 80; background: #0D1112; opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
.walk.open { opacity: 1; pointer-events: auto; }
.walk canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.walk canvas.dragging { cursor: grabbing; }
.walk .ui { position: absolute; inset: 0; pointer-events: none; }
.walk .ui > * { pointer-events: auto; }
.glass {
  background: rgba(20, 26, 28, .55); color: #fff; backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
}
.walk .close {
  position: absolute; top: 18px; left: 18px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  transition: transform .2s, background .2s;
}
.walk .close:hover { transform: scale(1.06); background: rgba(20, 26, 28, .75); }
.walk .close[hidden] { display: none; }
.walk .close svg { width: 20px; height: 20px; }
.walk .rooms-bar {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  max-width: calc(100vw - 150px); overflow-x: auto; scrollbar-width: none;
}
.walk .rooms-bar::-webkit-scrollbar { display: none; }
.walk .rooms-bar button {
  height: 38px; padding: 0 16px; border-radius: 999px; color: rgba(255, 255, 255, .85); font-size: 14px; font-weight: 500;
  white-space: nowrap; transition: background .2s, color .2s;
}
.walk .rooms-bar button:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.walk .rooms-bar button.on { background: #fff; color: var(--ink); }
.walk .mini {
  position: absolute; left: 18px; bottom: 18px; width: 200px; padding: 10px; border-radius: 22px; cursor: crosshair;
}
.walk .mini svg { width: 100%; height: auto; display: block; }
.walk .joy {
  position: absolute; right: 26px; bottom: 26px; width: 120px; height: 120px; border-radius: 50%; display: none;
  touch-action: none;
}
.walk .joy i {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); box-shadow: 0 6px 16px rgba(0, 0, 0, .3); transition: transform .12s;
}
.walk .keys {
  position: absolute; right: 22px; bottom: 22px; display: grid; grid-template-columns: repeat(3, 40px); gap: 6px; padding: 10px;
  border-radius: 20px; transition: opacity .6s;
}
.walk .keys span {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .9); transition: background .15s, transform .15s;
}
.walk .keys span.on { background: #fff; color: var(--ink); transform: translateY(1px); }
.walk .keys [data-k=w] { grid-column: 2; grid-row: 1; }
.walk .keys [data-k=a] { grid-column: 1; grid-row: 2; }
.walk .keys [data-k=s] { grid-column: 2; grid-row: 2; }
.walk .keys [data-k=d] { grid-column: 3; grid-row: 2; }
.walk .keys.fade { opacity: 0; pointer-events: none; }
.walk .loader {
  position: absolute; inset: 0; display: grid; place-items: center; background: #0D1112 center/cover no-repeat;
  transition: opacity .7s var(--ease);
}
.walk .loader::before { content: ""; position: absolute; inset: 0; background: rgba(13, 17, 18, .55); backdrop-filter: blur(18px); }
.walk .loader.hide { opacity: 0; pointer-events: none; }
.walk .loader .ring { position: relative; width: 104px; height: 104px; }
.walk .loader svg { width: 104px; height: 104px; transform: rotate(-90deg); }
.walk .loader circle { fill: none; stroke-width: 5; }
.walk .loader .track { stroke: rgba(255, 255, 255, .15); }
.walk .loader .bar { stroke: #fff; stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; transition: stroke-dashoffset .3s; }
.walk .loader .pct { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.walk .target {
  position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), inset 0 0 0 1px rgba(0, 0, 0, .1); pointer-events: none; opacity: 0;
  transform: perspective(300px) rotateX(62deg) scale(.8); transition: opacity .15s, transform .15s;
}
.walk .target.show { opacity: 1; transform: perspective(300px) rotateX(62deg) scale(1); }
.walk .target.no { border-color: rgba(255, 255, 255, .25); }

/* ---------------------------------------------------------------- stopka */
footer { margin-top: 72px; padding: 36px 0 120px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 26px; }

/* ---------------------------------------------------------------- responsywność */
@media (max-width: 1060px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .book { display: none; }
  .mbar { display: flex; }
  .nav { display: none; }
  .top .btn { margin-left: auto; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .top .wrap { height: 62px; }
  .hero-card { height: 78vh; min-height: 520px; border-radius: 26px; }
  .hero-content { padding: 22px; }
  .hero p.lead { font-size: 16px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .badge-3d { top: 16px; left: 16px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 8px; }
  .gallery .g-wide { grid-column: span 2; }
  .rooms { grid-template-columns: 1fr; }
  .amen { grid-template-columns: repeat(2, 1fr); }
  .loc { grid-template-columns: 1fr; }
  .fact { height: 42px; font-size: 14px; }
  .walk .mini { width: 132px; left: 12px; bottom: 12px; padding: 7px; border-radius: 18px; }
  .walk .keys { display: none; }
  .walk .joy { display: block; right: 18px; bottom: 18px; }
  .walk .rooms-bar { top: 74px; left: 12px; right: 12px; transform: none; max-width: none; }
  .walk .close { top: 14px; left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
