/* Sinaloa SPA — „Przez bulaj". Tokeny wg specyfikacji zespołu projektowego. */
@font-face { font-family: "Jost"; font-weight: 100 900; font-display: swap; src: url(../fonts/jost-latin-ext-wght.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jost"; font-weight: 100 900; font-display: swap; src: url(../fonts/jost-latin-wght.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Manrope"; font-weight: 300 800; font-display: swap; src: url(../fonts/manrope-latin-ext-wght.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 300 800; font-display: swap; src: url(../fonts/manrope-latin-wght.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --night: #0b0a0f;
  --layer: #16131d;
  --line: rgb(242 237 228 / .12);
  --text: #f2ede4;
  --muted: #a39e96;
  --gold: #c9a45c;
  --gold-lt: #e8cf95;
  --duo: #9b6bff;
  --party: #e0409a;
  --tint: var(--gold);
  --display: "Jost", "Futura", system-ui, sans-serif;
  --ui: "Manrope", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
}
html[data-dla="dwoje"] { --tint: var(--duo); }
html[data-dla="ekipa"] { --tint: var(--party); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 1.0625rem/1.6 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-style: normal; color: var(--gold-lt); }
.h2 em { color: inherit; }
.frame--final .h2 em { color: var(--gold-lt); }
:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 2px; box-shadow: 0 0 0 6px var(--night); border-radius: 4px; }
::selection { background: var(--gold); color: var(--night); }

[data-for] { display: none; }
html[data-dla="neutral"] [data-for="neutral"], html[data-dla="dwoje"] [data-for="dwoje"], html[data-dla="ekipa"] [data-for="ekipa"] { display: inline; }
html:not(.gl) [data-gl-only] { display: none; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--night); }
.skip:focus { top: 12px; }

/* typografia */
.eyebrow { font: 600 .8125rem/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-lt); }
.display { font: 300 clamp(3.25rem, 1.6rem + 7.2vw, 10.5rem)/.92 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.h2 { font: 300 clamp(2.25rem, 1.4rem + 3.4vw, 5.25rem)/.96 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.lead { max-width: 34em; font-size: clamp(1.0625rem, 1rem + .3vw, 1.3rem); line-height: 1.5; color: rgb(242 237 228 / .9); text-wrap: pretty; }
.small { max-width: 52em; font-size: .875rem; color: var(--muted); }
.link { color: var(--gold-lt); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.hint { font: 600 .7rem/1.4 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* przyciski-pigułki z wewnętrznym bulajem, który obiega obrys przy najechaniu */
.pill { position: relative; display: inline-flex; align-items: center; gap: .75em; min-height: 48px; padding: 0 1.4em 0 1.1em; border-radius: 999px; font: 600 .875rem/1 var(--ui); letter-spacing: .02em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 200ms, color 200ms; }
.pill::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color 200ms, transform 600ms var(--ease-drawer); }
.pill:hover::before { background: currentColor; transform: rotate(360deg) scale(1.25); }
.pill:active { transform: scale(.97); }
.pill--gold { background: var(--gold); color: var(--night); border: 0; padding: 0 1.4em; }
.pill--gold::before, .bar .pill::before { display: none; }
.pill--line[aria-pressed="true"]::before { background: currentColor; }
.pill--gold:hover { background: var(--gold-lt); }
.pill--line { background: transparent; color: var(--text); border: 1px solid rgb(242 237 228 / .35); }
.pill--line:hover, .pill--line[aria-pressed="true"] { border-color: var(--tint); background: color-mix(in srgb, var(--tint) 22%, transparent); }

/* nagłówek i rozdziały */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 18px var(--gutter); pointer-events: none; }
.top > * { pointer-events: auto; }
.top::before { content: ""; position: absolute; inset: 0 0 -48px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgb(11 10 15 / .75), rgb(11 10 15 / .35) 60%, transparent); }
.top__logo img { width: auto; height: 72px; filter: drop-shadow(0 2px 14px rgb(11 10 15 / .8)); }
.top__phone { margin-left: auto; font: 500 1.125rem/1 var(--ui); letter-spacing: .02em; text-decoration: none; font-variant-numeric: tabular-nums; text-shadow: 0 1px 12px rgb(11 10 15 / .9); }
.top__lang { padding: 10px 4px; font: 600 .875rem/1 var(--ui); letter-spacing: .12em; text-decoration: none; text-shadow: 0 1px 12px rgb(11 10 15 / .9); }
.top__lang:hover { text-decoration: underline; text-underline-offset: 4px; }
.chapters { position: fixed; right: calc(var(--gutter) - 22px); top: 50%; z-index: 20; translate: 0 -50%; display: grid; gap: 0; padding: 8px 0; border-radius: 999px; background: rgb(11 10 15 / .45); backdrop-filter: blur(6px); }
.chapters button { position: relative; width: 38px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; }
.chapters button::before { content: ""; position: absolute; right: 14px; top: 15px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgb(242 237 228 / .8); transition: transform 300ms var(--ease-out), border-color 300ms, background-color 300ms; }
.chapters button[aria-current="true"]::before { border-color: var(--gold-lt); background: var(--gold-lt); transform: scale(1.3); }
.chapters span { position: absolute; right: 40px; top: 50%; translate: 6px -50%; padding: 4px 10px; border-radius: 999px; background: rgb(11 10 15 / .8); font: 600 .72rem/1.4 var(--ui); white-space: nowrap; opacity: 0; transition: opacity 200ms, translate 300ms var(--ease-out); pointer-events: none; }
.chapters button:hover span, .chapters button:focus-visible span { opacity: 1; translate: 0 -50%; }

/* kadry */
.frame__inner { position: relative; display: grid; align-content: end; gap: 24px; padding: 120px var(--gutter) clamp(40px, 9vh, 96px); }
.copy { display: grid; gap: 22px; justify-items: start; max-width: min(46rem, 48vw); }
.frame--hero .copy { max-width: min(58rem, 70vw); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

/* pokrętło */
.dial-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.dial { position: relative; width: 200px; aspect-ratio: 1; border-radius: 50%; touch-action: pan-y; cursor: grab; background: radial-gradient(closest-side, rgb(22 19 29 / .95) 70%, transparent 72%); }
.dial:active { cursor: grabbing; }
.dial svg { position: absolute; inset: 0; overflow: visible; }
.dial__arc, .dial__arc-on { fill: none; stroke-width: 2; stroke-linecap: round; }
.dial__arc { stroke: rgb(242 237 228 / .4); stroke-width: 3; stroke-dasharray: .75 1; }
.dial__arc-on { stroke: var(--tint); stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke 600ms; filter: drop-shadow(0 0 6px var(--tint)); }
.dial__knob { position: absolute; left: 20.3%; top: 79.7%; width: 28px; height: 28px; translate: -50% -50%; border-radius: 50%; border: 3px solid var(--night); background: var(--gold-lt); box-shadow: 0 0 0 1px var(--gold-lt), 0 0 18px color-mix(in srgb, var(--tint) 60%, transparent); }
.dial__knob { touch-action: none; }
.dial__readout { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.dial__value { font: 300 3.6rem/1 var(--display); font-variant-numeric: tabular-nums; }
.dial__label { font: 600 .7rem/1.4 var(--ui); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.mode-buttons { display: flex; gap: 10px; }
.offer-line { max-width: 34em; font-size: 1.05rem; color: rgb(242 237 228 / .9); }
.offer-line strong { font: 300 1.5rem/1 var(--display); color: var(--gold-lt); }

/* seanse */
.seans-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.seans-stop { min-height: 46px; padding: 0 1.2em; border-radius: 999px; border: 1px solid rgb(242 237 228 / .3); background: transparent; color: var(--text); font: 600 .875rem/1 var(--ui); cursor: pointer; transition: background-color 200ms, border-color 200ms, transform 140ms var(--ease-out); }
.seans-stop:hover { border-color: var(--gold-lt); }
.seans-stop:active { transform: scale(.97); }
.seans-stop[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--night); }
.seans-price { display: grid; gap: 6px; font: 300 clamp(2rem, 1.5rem + 1.6vw, 3.25rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.seans-price__time { font: 500 .9rem/1.4 var(--ui); color: var(--muted); }

/* oferta */
.offers { display: flex; flex-direction: column; width: min(100%, 36rem); border-top: 1px solid var(--line); }
.offer-item { order: 2; }
.offer-item--romantic { order: 0; }
.offer-item--night { order: 1; }
html[data-dla="ekipa"] .offer-item--night { order: -1; }
.offer { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 15px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color 200ms; }
.offer span { font-size: .98rem; transition: translate 300ms var(--ease-out); }
.offer:hover span, .offer:focus-visible span { translate: 10px 0; }
.offer b { font: 300 1.45rem/1 var(--display); color: var(--gold-lt); white-space: nowrap; font-variant-numeric: tabular-nums; }
.offer:hover, .offer:focus-visible { background: color-mix(in srgb, var(--tint) 12%, transparent); }
.contact { display: grid; gap: 6px; }
.contact__phone { font: 300 clamp(2.6rem, 2rem + 3vw, 4.6rem)/1 var(--display); color: var(--gold-lt); text-decoration: none; font-variant-numeric: tabular-nums; }
.legal a { color: var(--muted); }
.bar { display: none; }

/* ---------- świat 3D ---------- */
.world, .poster { position: fixed; inset: 0; width: 100%; height: 100%; }
.world { z-index: 0; opacity: 0; transition: opacity 400ms ease; }
.poster { z-index: 0; object-fit: cover; transform: scale(1.22); transition: opacity 600ms ease; }
.gl.is-ready .world { opacity: 1; }
.gl.is-ready .poster { opacity: 0; }
.gl main { position: relative; z-index: 2; }
.gl .frame { height: 130vh; }
.gl .frame--final { height: 100vh; }
.gl .frame--tall { height: auto; }
.gl .frame--tall .frame__inner { position: relative; height: auto; min-height: 100svh; }
.gl .frame__inner { position: sticky; top: 0; height: 100svh; }
.gl .frame__inner::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgb(11 10 15 / .85) 0, rgb(11 10 15 / .72) 30%, rgb(11 10 15 / .3) 48%, transparent 62%), linear-gradient(0deg, rgb(11 10 15 / .55), transparent 40%); opacity: 0; transition: opacity 500ms; }
.gl .frame.is-active .frame__inner::before { opacity: 1; }
.gl .frame__img { display: none; }
.gl .copy > * { opacity: 0; transform: translateY(12px); transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out); }
.gl .frame.is-active .copy > *, .gl .frame:focus-within .copy > * { opacity: 1; transform: none; transition-duration: 700ms; }
.calm .copy > * { transform: none; }
.calm .pill:hover::before { transform: none; }
.gl .frame.is-active .copy > *:nth-child(2) { transition-delay: 60ms; }
.gl .frame.is-active .copy > *:nth-child(3) { transition-delay: 120ms; }
.gl .frame.is-active .copy > *:nth-child(4) { transition-delay: 180ms; }
.gl .frame.is-active .copy > *:nth-child(n+5) { transition-delay: 240ms; }
.gl .frame:not(.is-active):not(:focus-within) .copy { pointer-events: none; }
.gl .frame--final .frame__inner { align-content: center; }

.cursor { position: fixed; left: 0; top: 0; z-index: 60; width: var(--size, 28px); height: var(--size, 28px); margin: calc(var(--size, 28px) / -2) 0 0 calc(var(--size, 28px) / -2); border-radius: 50%; border: 1.5px solid var(--gold-lt); pointer-events: none; opacity: 0; transition: opacity 200ms, border-color 200ms; }
.cursor.is-on { opacity: 1; }
.cursor.is-link { border-color: transparent; }
html:not(.gl) .cursor, html.calm .cursor { display: none; }
@media (hover: none) { .hint { display: none; } }

/* niski ekran (powiększenie 200%, telefon w poziomie): zwykły dokument nad światem 3D, nic nie ucieka nad krawędź */
@media (max-height: 600px) {
  .gl .frame, .gl .frame--final { height: auto; }
  .gl .frame__inner { position: relative; height: auto; min-height: 100svh; }
  .gl .frame .copy { pointer-events: auto; }
  .gl .frame .copy > *, .gl .frame .frame__inner::before { opacity: 1; transform: none; }
}

/* ---------- bez 3D: zwykły dokument ---------- */
html:not(.gl) .poster { position: relative; height: 72svh; transform: none; }
html:not(.gl) .top { position: absolute; }
html:not(.gl) .chapters { display: none; }
html:not(.gl) .frame { border-top: 1px solid var(--line); }
html:not(.gl) .frame--hero .frame__inner { padding-top: 48px; }
html:not(.gl) .copy { max-width: 46rem; }
html:not(.gl) .frame__img { width: min(100%, 64rem); aspect-ratio: 3 / 2; object-fit: cover; }
html:not(.gl) .offer-line [data-for] { display: block; }
html:not(.gl) .dial-row { display: none; }

@media (max-width: 760px) {
  .top { gap: 12px; padding-top: 14px; }
  .top__phone { display: none; }
  .top__lang { margin-left: auto; }
  .top > .pill { display: none; }
  .top__logo img { height: 52px; }
  .copy, .frame--hero .copy { max-width: 100%; gap: 16px; }
  .gl .frame__inner { padding-bottom: 92px; }
  .gl .frame__inner::before { background: linear-gradient(0deg, rgb(11 10 15 / .94) 0 48%, rgb(11 10 15 / .72) 70%, transparent 92%); }
  .display, .h2 { font-weight: 400; }
  .chapters { display: none; }
  .dial { width: 170px; }
  .bar { position: fixed; inset: auto 12px 12px 12px; z-index: 30; display: flex; gap: 10px; }
  .bar .pill { flex: 1; justify-content: center; }
  .frame--final .copy { gap: 12px; }
  .offer { padding: 11px 2px; }
}
