/* =========================================================
   PERLAGE — butik z szampanem · koncept piasecki.studio
   Trzy światy: noc (ink) · papier · kolor butelki
   Czerwień = akcja i znak marki.
   ========================================================= */

@property --bg-a { syntax: '<color>'; inherits: true; initial-value: #07100c; }
@property --bg-b { syntax: '<color>'; inherits: true; initial-value: #1d3a2b; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #f2c230; }
@property --fg { syntax: '<color>'; inherits: true; initial-value: #f2ece4; }

:root {
  --ink: #0b0809;
  --ink-2: #120d0e;
  --ink-3: #1a1314;
  --bone: #f2ece4;
  --paper: #ece5d9;
  --paper-2: #e2dacb;
  --mute: rgba(242, 236, 228, .66);
  --faint: rgba(242, 236, 228, .56);
  --line: rgba(242, 236, 228, .13);
  --line-2: rgba(242, 236, 228, .3);
  --red: #e3111f;
  --red-hot: #ff2b38;
  --red-text: #ff4d57;
  --fg-c: var(--bone);
  --bg-c: var(--ink);

  --f-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --f-serif: 'Instrument Serif', 'Times New Roman', serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --pad: clamp(16px, 3vw, 44px);
  --hdr: 68px;
  --ease: cubic-bezier(.19, 1, .22, 1);
}

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

html {
  background: var(--ink);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hdr) + 24px);
  scroll-padding-bottom: 90px;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-display);
  font-stretch: 88%;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* ziarno: statyczne, tylko w nocy */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--fg-c, var(--bone)); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 400;
  padding: 12px 18px; background: var(--bone); color: var(--ink);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  transform: translateY(-160%); transition: transform .3s;
}
.skip:focus { transform: none; }

/* ---------- role typografii ---------- */
.poster {
  font-family: var(--f-display);
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.004em;
}
.display-l {
  font-family: var(--f-display);
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(56px, 7vw, 128px);
  line-height: .88;
  letter-spacing: -.003em;
}
.serif-m {
  font-family: var(--f-serif);
  font-weight: 400;
  font-size: clamp(38px, 4.2vw, 66px);
  line-height: 1;
  letter-spacing: -.01em;
}
.serif { font-family: var(--f-serif); font-weight: 400; letter-spacing: -.005em; }
em, .serif em { font-style: italic; }
.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .09em;
  text-transform: uppercase;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.red-t { color: var(--red-text); }
.mute { color: var(--mute); }
.dot-r { color: var(--red); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.nums { font-variant-numeric: lining-nums tabular-nums; }

/* maska linii (nagłówki) */
.hl { display: block; overflow: hidden; padding: .08em 0 .03em; margin: -.08em 0 -.03em; white-space: nowrap; }
.hl__in { display: inline-block; will-change: transform; }

/* ---------- światy ---------- */
.is-paper {
  --fg-c: var(--ink);
  --bg-c: var(--paper);
  --line: rgba(20, 14, 15, .14);
  --line-2: rgba(20, 14, 15, .3);
  --mute: rgba(20, 14, 15, .66);
  --faint: rgba(20, 14, 15, .56);
  --red-text: #c40d1a;
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
}
.is-paper .btn::before { background: var(--ink); }
.is-paper .btn:hover { color: var(--bone); border-color: var(--ink); }
.is-paper .btn--red::before { background: var(--red-hot); }

/* ---------- przyciski ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bone);
  transform: translateY(101%);
  transition: transform .6s var(--ease);
}
@media (hover: hover) {
  .btn:hover { color: var(--ink); border-color: var(--bone); }
  .btn:hover::before { transform: translateY(0); }
  .btn:hover .arr { transform: translateX(4px); }
}
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red::before { background: var(--red-hot); }
@media (hover: hover) { .btn--red:hover { color: #fff; border-color: var(--red-hot); } }
.btn--ink { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.btn--ink::before { background: #2a1d1e; }
@media (hover: hover) { .btn--ink:hover { color: var(--bone); border-color: #2a1d1e; } }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 11px; }
.btn .arr { transition: transform .6s var(--ease); }

.link-u { position: relative; display: inline-block; }
.link-u::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease);
}
@media (hover: hover) { .link-u:hover::after { transform: scaleX(1); transform-origin: left; } }
.link-u--on::after { transform: scaleX(1); }

/* ---------- nagłówek ---------- */
.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--hdr);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--pad);
  color: var(--bone);
  border-bottom: 1px solid transparent;
  transition: background .5s var(--ease), color .4s var(--ease), border-color .5s var(--ease), transform .6s var(--ease);
}
.hdr.is-scrolled { background: rgba(11, 8, 9, .82); border-bottom-color: rgba(242, 236, 228, .1); }
@media (min-width: 861px) { .hdr.is-scrolled { background: rgba(11, 8, 9, .66); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); } }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr.hdr--paper { color: var(--ink); }
.hdr.hdr--paper.is-scrolled { background: rgba(236, 229, 217, .86); border-bottom-color: rgba(20, 14, 15, .1); }
.hdr__left { display: flex; align-items: center; }
.hdr__nav { display: flex; gap: 24px; }
.hdr__nav a, .hdr__right a, .hdr__right button, .hdr__menu {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hdr__nav a[aria-current="page"]::after { transform: scaleX(1); }
.hdr__right { justify-self: end; display: flex; align-items: center; gap: 24px; }
.hdr__menu { display: none; }
.hdr__icon { width: 18px; height: 18px; }

.logo {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-family: var(--f-display);
  font-stretch: 62%;
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.logo i {
  font-style: normal;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: .06em;
  color: #fff;
  background: var(--red);
  padding: 2px 4px 1px;
  margin-top: 1px;
}

.cart-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.cart-link .count {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: currentColor; font-size: 10.5px; letter-spacing: 0;
}
.cart-link .count span { color: var(--ink); }
.hdr--paper .cart-link .count span { color: var(--paper); }
.cart-link .count.has { background: var(--red); }
.cart-link .count.has span { color: #fff; }

.mnav {
  position: fixed; inset: 0; z-index: 70;
  background: var(--ink);
  padding: calc(var(--hdr) + 30px) var(--pad) 30px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.mnav[hidden] { display: none; }
.mnav nav { display: flex; flex-direction: column; }
.mnav nav a { font-size: clamp(56px, 16vw, 110px); }
.mnav__search { display: flex; border-bottom: 1px solid var(--line-2); }
.mnav__search input { flex: 1; background: none; border: 0; color: var(--bone); font-family: var(--f-mono); font-size: 16px; padding: 14px 0; }

/* ---------- bramka 18+ ---------- */
dialog.gate {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; border: 0; padding: var(--pad);
  background: var(--ink); color: var(--bone);
  display: grid; place-items: center; text-align: center;
  overflow: hidden;
}
dialog.gate:not([open]) { display: none; }
dialog.gate::backdrop { background: var(--ink); }
.gate__bg {
  position: absolute; inset: -40px;
  background: url('../img/scenes/terrace-night.jpg') center/cover no-repeat;
  filter: blur(24px) saturate(1.1);
  opacity: .4;
}
.gate__bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, transparent, var(--ink) 90%); }
.gate__inner { position: relative; max-width: 680px; display: grid; justify-items: center; gap: 22px; }
.gate__word {
  font-family: var(--f-display); font-stretch: 62%; font-weight: 900; text-transform: uppercase;
  font-size: clamp(72px, 12vw, 200px); line-height: .82; letter-spacing: .02em;
  display: inline-flex; align-items: flex-start; gap: .06em;
}
.gate__word i {
  font-style: normal; font-family: var(--f-mono); font-weight: 500; font-size: .09em; letter-spacing: .06em;
  background: var(--red); color: #fff; padding: .14em .22em .1em; margin-top: .12em; line-height: 1;
}
.gate__q { font-size: clamp(32px, 4vw, 52px); line-height: 1.04; margin: 6px 0 4px; }
.gate__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.gate__deny { min-height: 1.5em; color: var(--mute); margin: 0; font-size: 20px; }
.gate__note { color: var(--faint); margin: 0; }

/* ---------- butelka 2D (zapas / plakat) ---------- */
.bottle { position: relative; width: 100%; height: 100%; }
.bottle__img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; user-select: none; -webkit-user-drag: none; }

/* ---------- scena 3D ---------- */
.stage3d { position: absolute; inset: -8% -75% -6% -75%; pointer-events: none; }
.stage3d__canvas { display: block; width: 100%; height: 100%; }
.poster-img { position: absolute; inset: 0; transition: opacity .8s var(--ease); }
.has-3d .poster-img { opacity: 0; }

/* =========================================================
   HOME — HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100svh;
  min-height: 660px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -6% -3% 0;
  background: url('../img/scenes/hero.jpg') center 72%/cover no-repeat;
  z-index: -3;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(transparent, #07100c);
}
.hero::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 30%; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(11, 8, 9, .6), transparent);
}
.hero canvas.perlage { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero__title {
  position: absolute;
  left: var(--pad); right: var(--pad);
  top: calc(var(--hdr) + 6vh);
  z-index: 1;
  margin: 0;
  font-size: clamp(88px, 18vw, 340px);
}
.hl--r { text-align: right; }
.hero__fact { display: none; }
.hero__anchor {
  position: absolute;
  left: 50%;
  bottom: 5vh;
  height: min(76svh, 800px);
  aspect-ratio: 306 / 940;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero__foot {
  position: absolute;
  left: var(--pad); right: var(--pad); bottom: 28px;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
}
.hero__lead { max-width: 340px; font-size: 22px; line-height: 1.15; margin: 0; }
.hero__lead small { display: block; margin-bottom: 10px; color: var(--faint); }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--mute); }
.scroll-cue span:last-child { width: 1px; height: 46px; background: linear-gradient(var(--bone), transparent); }
.hero__link { justify-self: end; display: grid; gap: 4px; text-align: right; }
.hero__link .serif { font-size: 24px; line-height: 1.05; }

/* =========================================================
   HOME — PRZEŁĄCZNIK (trzy butelki, trzy światy)
   ========================================================= */
.switch {
  --bg-a: #07100c; --bg-b: #1d3a2b; --accent: #f2c230; --fg: #f2ece4;
  --fg-c: var(--fg);
  position: relative;
  z-index: 5;
  height: 100svh;
  min-height: 640px;
  color: var(--fg);
  background: radial-gradient(60% 70% at 50% 55%, var(--bg-b), var(--bg-a) 72%);
  transition: --bg-a .9s, --bg-b .9s, --accent .9s, --fg .9s;
}
.switch[data-world="1"] { --bg-a: #e7d2d3; --bg-b: #f8eeec; --accent: #b3475f; --fg: #3b0d1a; --line: rgba(59, 13, 26, .18); --line-2: rgba(59, 13, 26, .35); --mute: rgba(59, 13, 26, .7); color-scheme: light; }
.switch[data-world="2"] { --bg-a: #0d0e10; --bg-b: #2a2d31; --accent: #c7cbd1; --fg: #e4e7ec; }
.switch__title {
  position: absolute;
  left: 0; right: 0;
  top: 46%;
  transform: translateY(-50%);
  margin: 0;
  text-align: center;
  font-size: clamp(120px, 19vw, 330px);
  z-index: 1;
  pointer-events: none;
}
.switch__title .hl { display: inline-block; }
.switch__slot {
  position: absolute;
  left: 50%;
  top: 50%;
  height: min(74svh, 780px);
  aspect-ratio: 306 / 940;
  transform: translate(-50%, -47%);
  z-index: 3;
}
.journey { position: absolute; inset: 0; will-change: transform; transform-origin: 50% 60%; }
.switch__top {
  position: absolute;
  top: calc(var(--hdr) + 18px);
  left: var(--pad); right: var(--pad);
  display: flex; justify-content: space-between; align-items: center;
  z-index: 4;
}
.switch__skip { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.switch__info {
  position: absolute;
  left: var(--pad);
  bottom: 30px;
  max-width: 360px;
  z-index: 4;
  display: grid; gap: 6px;
}
.switch__name { font-size: 30px; line-height: 1.02; margin: 0; }
.switch__sub { margin: 0; font-size: 19px; line-height: 1.2; opacity: .85; }
.switch__buy {
  position: absolute;
  right: var(--pad);
  bottom: 30px;
  z-index: 4;
  display: grid; justify-items: end; gap: 12px;
}
.switch__price { font-size: 34px; line-height: 1; }
.switch__buy-row { display: flex; align-items: center; gap: 18px; }
.switch__tabs {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 26px;
}
.stab {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  opacity: .5;
  transition: opacity .4s var(--ease);
}
.stab::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .4s var(--ease); }
.stab::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform-origin: left; transform: scaleX(var(--p, 0)); }
.stab.is-on { opacity: 1; }
.stab.is-on::before { transform: scale(1); }
@media (hover: hover) { .stab:hover { opacity: 1; } }

/* =========================================================
   HOME — INDEKS DOMÓW
   ========================================================= */
.houses { padding: clamp(90px, 11vw, 170px) var(--pad); }
.houses__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: 50px; }
.houses__head h2 { margin: 0; }
.houses__head p { margin: 0; justify-self: end; max-width: 440px; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
.houses__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.houses__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.house-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
  transition: opacity .4s var(--ease);
}
.house-row__name { font-family: var(--f-display); font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 5.2vw, 90px); line-height: .9; }
.house-row__meta { color: var(--mute); }
@media (hover: hover) {
  .houses__list:hover .house-row { opacity: .38; }
  .houses__list .house-row:hover, .houses__list .house-row:focus-visible { opacity: 1; }
}
.houses__peek { position: sticky; top: calc(var(--hdr) + 6vh); height: min(70svh, 640px); display: grid; place-items: center; }
.houses__peek img { max-height: 100%; width: auto; position: absolute; bottom: 4%; left: 50%; translate: -50% 0; height: 86%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .55)); }
.houses__peek::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: 2%; height: 4%; background: radial-gradient(closest-side, rgba(0, 0, 0, .8), transparent); }

/* =========================================================
   KARTY (półka na papierze)
   ========================================================= */
.collection { padding: clamp(90px, 10vw, 150px) 0 clamp(70px, 8vw, 120px); }
.shead { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: end; padding: 0 var(--pad); margin-bottom: 40px; }
.shead h2 { margin: 0; }
.shead__meta { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.collection__more { display: flex; justify-content: center; padding: 50px var(--pad) 0; }

.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 0 var(--pad) 8px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { scroll-snap-type: none; }
.rail.is-drag .card { pointer-events: none; }
.rail .card { flex: 0 0 calc((100vw - 2 * var(--pad) - 4 * 18px) / 4.5); scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
}
@media (hover: hover) { .rail-nav button:hover { background: var(--fg-c); color: var(--bg-c); border-color: var(--fg-c); } }

.card { --tint: #d9b45a; position: relative; display: flex; flex-direction: column; }
.card:has(.card__link:focus-visible) { outline: 2px solid var(--fg-c); outline-offset: 4px; }
.card__link:focus-visible { outline: none; }
.card__stage {
  position: relative;
  aspect-ratio: 3 / 4;
  background: radial-gradient(42% 5% at 50% 90%, rgba(20, 14, 15, .28), transparent);
}
.card__stage::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(40% 40% at 50% 60%, color-mix(in srgb, var(--tint) 34%, transparent), transparent);
  opacity: 0;
  transition: opacity .7s var(--ease);
}
.card__img {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 10%;
  height: 80%;
  width: auto;
  max-width: 70%;
  object-fit: contain;
  object-position: center bottom;
  translate: -50% 0;
  transition: transform .9s var(--ease);
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .28));
}
@media (hover: hover) {
  .card:hover .card__stage::before { opacity: 1; }
  .card:hover .card__img { transform: translateY(-8px) scale(1.03); }
}
.card__badge { position: absolute; top: 8px; left: 0; z-index: 2; }
.card__badge--fill { padding: 4px 8px 3px; background: var(--red); color: #fff; left: 0; }
.card__meta { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: start; padding: 14px 0 0; border-top: 1px solid var(--line); }
.card__house { color: var(--mute); }
.card__name { font-family: var(--f-serif); font-size: 24px; line-height: 1.04; margin: 2px 0 0; font-weight: 400; grid-column: 1; }
.card__price { font-family: var(--f-mono); font-size: 15px; letter-spacing: .02em; grid-column: 2; grid-row: 2; align-self: start; padding-top: 6px; white-space: nowrap; }
.card__line { grid-column: 1 / -1; color: var(--mute); margin-top: 4px; }
.card__add {
  position: absolute; z-index: 3; right: 10px; top: 10px;
  min-width: 44px; height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  background: color-mix(in srgb, var(--bg-c) 70%, transparent);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.card__add .lbl { display: none; }
@media (hover: hover) {
  .card__add .lbl { display: inline; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .5s var(--ease); }
  .card:hover .card__add .lbl, .card__add:focus-visible .lbl { max-width: 120px; }
  .card__add:hover { background: var(--red); border-color: var(--red); color: #fff; }
}
.card__link { position: absolute; inset: 0; z-index: 2; }

/* =========================================================
   METODA
   ========================================================= */
.method {
  position: relative;
  padding: clamp(90px, 12vw, 180px) var(--pad);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.method canvas.perlage { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.method__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: clamp(50px, 7vw, 110px); }
.method__head h2 { margin: 0; }
.method__head p { margin: 0; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.15; max-width: 520px; justify-self: end; }
.method__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 6vw, 110px); align-items: start; }
.method__media { position: sticky; top: calc(var(--hdr) + 4vh); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; margin: 0; }
.method__media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; }
.method__media .tag { position: absolute; left: 14px; bottom: 14px; padding: 6px 10px 5px; background: rgba(11, 8, 9, .78); }
.method__list { list-style: none; margin: 0; padding: 0; }
.method__item { display: grid; grid-template-columns: 70px 1fr; gap: 8px 16px; padding: 34px 0 40px; border-top: 1px solid var(--line); }
.method__item:last-child { border-bottom: 1px solid var(--line); }
.method__item .mono { color: var(--mute); padding-top: 12px; }
.method__item h3 { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: clamp(34px, 3.4vw, 52px); line-height: 1; }
.method__item p { grid-column: 2; margin: 6px 0 0; color: var(--mute); max-width: 46ch; }

/* =========================================================
   TARAS — dzień → noc
   ========================================================= */
.terrace { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: #0b1226; isolation: isolate; }
.terrace__stage { position: absolute; inset: 0; }
.terrace__canvas { display: block; width: 100%; height: 100%; }
.terrace__fallback { position: absolute; inset: 0; }
.terrace__fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.4s var(--ease); }
.terrace__fallback .n { opacity: 0; }
.terrace.is-night .terrace__fallback .n { opacity: 1; }
.has-3d .terrace__fallback { display: none; }
.terrace__scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(6, 4, 4, .72), transparent 48%), linear-gradient(90deg, rgba(6, 4, 4, .45), transparent 45%); }
.terrace__clock { position: absolute; top: calc(var(--hdr) + 20px); right: var(--pad); font-size: 13px; letter-spacing: .14em; }
.terrace__ui { position: absolute; left: var(--pad); bottom: 40px; max-width: 520px; display: grid; gap: 18px; }
.terrace__ui h2 { margin: 0; }
.terrace__ui p { margin: 0; }
.terrace__lead { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.18; max-width: 440px; }
.terrace__buy { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.terrace__price { font-size: 34px; line-height: 1; }
.seg {
  position: absolute; right: var(--pad); bottom: 44px;
  display: inline-flex; padding: 4px; gap: 4px;
  border: 1px solid rgba(242, 236, 228, .35); border-radius: 999px;
  background: rgba(11, 8, 9, .35);
}
.seg button { min-height: 40px; padding: 0 18px; border-radius: 999px; transition: background .4s var(--ease), color .4s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }

/* =========================================================
   USŁUGI — jedyny czerwony plakat
   ========================================================= */
.gift { background: #dc0b17; color: #140708; --fg-c: #140708; --line: rgba(20, 7, 8, .25); display: grid; grid-template-columns: 1.15fr 1fr; min-height: 92svh; }
.gift__body { padding: clamp(80px, 9vw, 140px) var(--pad); display: flex; flex-direction: column; justify-content: center; gap: 40px; }
.gift__body h2 { margin: 0; }
.gift .svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.gift .svc li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.gift .svc .mono { opacity: .75; }
.gift .svc .serif { font-size: 22px; line-height: 1.15; }
.gift__media { margin: 0; position: relative; overflow: hidden; }
.gift__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.gift :focus-visible { outline-color: #140708; }

/* =========================================================
   FAQ (papier)
   ========================================================= */
.faq { padding: clamp(90px, 12vw, 170px) var(--pad); display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.faq h2 { margin: 0; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 20px;
  padding: 24px 0;
  font-family: var(--f-serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { font-family: var(--f-mono); font-size: 18px; transition: transform .5s var(--ease); }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq details p { margin: -6px 0 26px; color: var(--mute); max-width: 58ch; }

/* =========================================================
   STOPKA
   ========================================================= */
.ftr { position: relative; padding: 80px var(--pad) 26px; background: var(--ink); color: var(--bone); }
.ftr__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 70px; }
.ftr__grid h3 { margin: 0 0 16px; font-weight: 400; color: var(--faint); }
.ftr__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ftr__grid li a { display: inline-block; padding: 4px 0; }
.ftr__news p.serif { font-size: 30px; line-height: 1.05; margin: 0 0 22px; max-width: 400px; }
.news-form { display: flex; border-bottom: 1px solid var(--line-2); max-width: 440px; }
.news-form:focus-within { border-bottom-color: var(--bone); }
.news-form input {
  flex: 1; min-width: 0; background: none; border: 0; color: var(--bone);
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; padding: 14px 0;
}
.news-form input:focus-visible { outline: none; }
.news-form input::placeholder { color: var(--faint); }
.news-form button { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--red-text); min-height: 44px; }
.ftr__note { color: var(--faint); margin-top: 12px; }
.ftr__word { display: block; width: 100%; height: auto; margin: 0; user-select: none; }
.ftr__word text { font-family: var(--f-display); font-stretch: 62%; font-weight: 900; text-transform: uppercase; fill: var(--bone); }
.ftr__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 26px; color: var(--faint); }

/* ---------- toast + mini-koszyk ---------- */
.toast {
  position: fixed; right: var(--pad); bottom: var(--pad); z-index: 150;
  width: min(380px, calc(100vw - 2 * var(--pad)));
  display: grid; grid-template-columns: 60px 1fr auto; gap: 14px;
  padding: 12px; background: rgba(18, 13, 14, .96); color: var(--bone);
  border: 1px solid rgba(242, 236, 228, .3); border-radius: 4px;
  visibility: hidden; overflow: hidden;
}
.has-buybar .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
.toast__img { background: var(--ink-3); display: grid; place-items: center; height: 76px; }
.toast__img img { height: 66px; width: auto; }
.toast__name { font-family: var(--f-serif); font-size: 20px; line-height: 1.05; margin: 4px 0 8px; }
.toast__close { width: 32px; height: 32px; display: grid; place-items: center; font-size: 18px; color: var(--mute); }
.toast__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--red); transform-origin: left; }
.flyer { position: fixed; z-index: 160; pointer-events: none; }

dialog.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(440px, 100vw); height: 100%; max-height: none;
  border: 0; padding: 0;
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column;
  --line: rgba(20, 14, 15, .14); --mute: rgba(20, 14, 15, .66); --fg-c: var(--ink);
}
dialog.drawer:not([open]) { display: none; }
dialog.drawer::backdrop { background: rgba(6, 4, 4, .55); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-size: 34px; }
.drawer__close { min-height: 44px; padding: 0 6px; }
.drawer__body { flex: 1; overflow: auto; padding: 8px 22px; }
.drawer__item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.drawer__item img { height: 72px; width: auto; margin: auto; }
.drawer__item .serif { font-size: 20px; line-height: 1.05; }
.drawer__rm { min-height: 32px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.drawer__empty { padding: 40px 0; font-family: var(--f-serif); font-size: 26px; color: var(--mute); }
.drawer__foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer__row { display: flex; justify-content: space-between; }
.drawer__sum { font-family: var(--f-serif); font-size: 30px; }

/* ---------- kursor kontekstowy ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none;
  width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: var(--bone); color: var(--ink);
  display: grid; place-items: center; text-align: center;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  transform: scale(0); transition: transform .35s var(--ease);
}
.cursor.is-on { transform: scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* =========================================================
   KATEGORIA
   ========================================================= */
.cat-hero {
  position: relative;
  min-height: 56svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--hdr) + 30px) var(--pad) 34px;
  overflow: hidden; isolation: isolate;
}
.cat-hero__bg { position: absolute; inset: -10% 0 0; background: url('../img/scenes/cellar.jpg') center 60%/cover no-repeat; z-index: -2; }
.cat-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 8, 9, .88), rgba(11, 8, 9, .25) 70%), linear-gradient(0deg, rgba(11, 8, 9, .9), transparent 50%); }
.crumbs { display: flex; gap: 10px; color: var(--mute); margin-bottom: auto; flex-wrap: wrap; }
.crumbs a { padding-block: 12px; margin-block: -12px; }
@media (hover: hover) { .crumbs a:hover { color: var(--fg-c); } }
.cat-hero h1 { margin: 0; font-size: clamp(72px, 14vw, 240px); }
.cat-hero__foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
.cat-hero__foot p { margin: 0; }
.cat-hero__lead { font-size: clamp(22px, 2vw, 30px); line-height: 1.1; max-width: 560px; }

.catalog { position: relative; }
.filters {
  position: sticky; top: var(--hdr); z-index: 40;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px var(--pad);
  background: rgba(236, 229, 217, .94);
  border-bottom: 1px solid var(--line);
  transition: top .6s var(--ease);
}
.hdr-hidden .filters { top: 0; }
.chips { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips--sep { padding-left: 12px; border-left: 1px solid var(--line); }
.chip {
  flex: none;
  min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s;
}
.chip sup { font-size: 10.5px; color: var(--mute); }
@media (hover: hover) { .chip:hover { border-color: var(--fg-c); } }
.chip.is-on { background: var(--fg-c); color: var(--bg-c); border-color: var(--fg-c); }
.chip.is-on sup { color: inherit; opacity: .7; }
.sel { position: relative; flex: none; }
.sel select {
  appearance: none; -webkit-appearance: none;
  min-height: 40px; padding: 0 34px 0 16px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: inherit;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; cursor: pointer;
}
.sel::after {
  content: ''; position: absolute; right: 15px; top: 50%; width: 6px; height: 6px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.filters__count { margin-left: auto; color: var(--mute); }
.filters__open { display: none; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 22px; padding: 34px var(--pad) clamp(80px, 10vw, 140px); }
.grid .tile {
  grid-column: span 2; position: relative; overflow: hidden; min-height: 100%;
  background: #000; color: var(--bone);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 26px;
}
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
@media (hover: hover) { .tile:hover .tile__img { transform: scale(1.05); } }
.tile::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent 55%); }
.tile > *:not(img) { position: relative; z-index: 2; }
.tile h3 { margin: 10px 0 18px; }
.grid__empty { grid-column: 1 / -1; padding: 80px 0; text-align: center; display: grid; gap: 18px; justify-items: center; }
.grid__empty .serif-m { margin: 0; }

dialog.sheet {
  position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 86svh;
  border: 0; border-radius: 16px 16px 0 0; padding: 0;
  background: var(--paper); color: var(--ink);
  --line: rgba(20, 14, 15, .14); --line-2: rgba(20, 14, 15, .3); --mute: rgba(20, 14, 15, .66); --fg-c: var(--ink); --bg-c: var(--paper);
}
dialog.sheet:not([open]) { display: none; }
dialog.sheet::backdrop { background: rgba(6, 4, 4, .55); }
.sheet__in { padding: 20px var(--pad) calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 22px; }
.sheet__group { display: grid; gap: 10px; }
.sheet__group .chips { flex-wrap: wrap; overflow: visible; }
.sheet__actions { display: flex; gap: 10px; }
.sheet__actions .btn { flex: 1; }

.guide { padding: clamp(80px, 10vw, 150px) var(--pad); }
.guide__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: 50px; }
.guide__head h2 { margin: 0; }
.guide__head p { margin: 0; justify-self: end; max-width: 480px; font-size: 22px; line-height: 1.2; color: var(--mute); }
.guide__list { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.guide__item { padding: 26px 22px 30px 0; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 10px; }
.guide__item + .guide__item { padding-left: 22px; }
.guide__item:last-child { border-right: 0; }
.guide__item .num { font-family: var(--f-display); font-stretch: 62%; font-weight: 800; font-size: clamp(48px, 5vw, 84px); line-height: .9; }
.guide__item h3 { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: 28px; line-height: 1; }
.guide__item p { margin: 0; color: var(--mute); }
.guide__item a.mono { margin-top: 6px; }

/* =========================================================
   PRODUKT
   ========================================================= */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; }
.pdp__stage {
  --tint: #d9b45a;
  position: sticky; top: 0; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(50% 60% at 50% 56%, color-mix(in srgb, var(--tint) 30%, transparent), transparent 70%),
    radial-gradient(38% 6% at 50% 87%, rgba(0, 0, 0, .75), transparent),
    linear-gradient(180deg, #0b0809 0%, #120d0e 62%, #070505 100%);
}
.pdp__bottle { position: absolute; left: 50%; bottom: 13svh; height: min(70svh, 720px); aspect-ratio: 306 / 940; transform: translateX(-50%); z-index: 1; }
.pdp__bottle .stage3d { pointer-events: auto; }
.pdp__photo { position: absolute; inset: 0; z-index: 2; opacity: 0; visibility: hidden; background: #0b0809; }
.pdp__photo img { width: 100%; height: 100%; object-fit: cover; }
.pdp__photo.is-wide img { object-fit: contain; padding: 12% 10%; }
.pdp__gal { position: absolute; left: var(--pad); right: var(--pad); bottom: 22px; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pdp__gal-tabs { display: flex; gap: 18px; flex-wrap: wrap; }
.pdp__gal-tabs button { min-height: 44px; opacity: .55; transition: opacity .3s; }
.pdp__gal-tabs button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.pdp__gal-count { color: var(--mute); }
.pdp__stage-meta { position: absolute; right: var(--pad); top: calc(var(--hdr) + 20px); z-index: 3; text-align: right; color: var(--mute); }
.pdp__hint { position: absolute; left: var(--pad); top: calc(var(--hdr) + 20px); z-index: 3; color: var(--mute); }

.pdp__info { padding: calc(var(--hdr) + 36px) var(--pad) 70px; display: flex; flex-direction: column; gap: 24px; }
.pdp__info .crumbs { margin-bottom: 0; }
.pdp__house { display: flex; justify-content: space-between; color: var(--mute); }
.pdp__info h1 { margin: 0; font-size: clamp(64px, 6.8vw, 132px); }
.pdp__h1-house { display: block; font-family: var(--f-mono); font-stretch: 100%; font-weight: 400; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; line-height: 1.6; margin-bottom: 10px; color: var(--mute); }
.pdp__sub { margin: -6px 0 0; font-size: clamp(24px, 2vw, 30px); line-height: 1.1; color: var(--mute); }
.pdp__lead { margin: 0; font-size: 17px; line-height: 1.55; max-width: 46ch; }
.pdp__price { display: grid; gap: 6px; }
.pdp__price .serif { font-size: clamp(44px, 4vw, 64px); line-height: 1; }
.stock { display: grid; gap: 4px; }
.stock__state::before { content: '●'; margin-right: 8px; font-size: 9px; vertical-align: 2px; color: #3fd27a; }
.stock__state.is-low::before { color: #f2b230; }
.stock__state.is-out::before { content: '○'; color: var(--mute); }
.pdp__variants { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp__buy { display: flex; gap: 10px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; min-height: 52px; border: 1px solid var(--line-2); border-radius: 999px; }
.qty button { width: 46px; height: 100%; min-height: 50px; font-size: 18px; color: var(--mute); }
.qty button:disabled { opacity: .3; cursor: default; }
@media (hover: hover) { .qty button:not(:disabled):hover { color: var(--bone); } }
.qty output { min-width: 28px; text-align: center; font-family: var(--f-mono); font-size: 14px; }
.pdp__buy .btn--red { flex: 1; min-width: 220px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 4px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle__ui { width: 42px; height: 24px; border-radius: 99px; border: 1px solid rgba(242, 236, 228, .55); position: relative; flex: none; transition: background .4s var(--ease), border-color .4s; }
.toggle__ui::after { content: ''; position: absolute; top: 4px; left: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bone); transition: transform .5s var(--ease); }
.toggle input:checked + .toggle__ui { background: var(--red); border-color: var(--red); }
.toggle input:checked + .toggle__ui::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle__ui { outline: 2px solid var(--bone); outline-offset: 3px; }
.toggle__txt b { display: block; font-weight: 400; font-family: var(--f-serif); font-size: 22px; line-height: 1.1; }
.gift-more { display: grid; gap: 10px; padding: 0 2px; }
.gift-more[hidden] { display: none; }
.gift-more textarea {
  width: 100%; min-height: 86px; resize: vertical;
  background: transparent; color: var(--bone); border: 1px solid var(--line-2); border-radius: 4px;
  padding: 12px; font-family: var(--f-serif); font-size: 18px; line-height: 1.3;
}
.gift-more textarea:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.gift-more label.row { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.gift-more input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--red); }
.trust { display: grid; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust span::before { content: '—'; margin-right: 10px; color: var(--mute); }
.legal18 { color: var(--mute); margin: -8px 0 0; }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 13px 0; border-top: 1px solid var(--line); font-weight: 400; vertical-align: top; }
.specs th { width: 40%; color: var(--mute); font-family: var(--f-mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; padding-top: 16px; }
.specs td { font-family: var(--f-serif); font-size: 21px; line-height: 1.2; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 1px solid var(--line); }

.notes { padding: clamp(80px, 10vw, 150px) var(--pad); border-top: 1px solid var(--line); }
.notes__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.notes__head h2 { margin: 0; }
.notes__band { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.note { padding: 26px 24px 30px 0; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 16px; }
.note + .note { padding-left: 24px; }
.note:last-child { border-right: 0; }
.note p { margin: 0; font-family: var(--f-serif); font-size: clamp(24px, 2vw, 28px); line-height: 1.12; }
.swatch { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), transparent 45%), var(--sw); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.meter { display: flex; gap: 5px; align-items: end; height: 44px; }
.meter i { width: 2px; height: 100%; background: var(--line-2); }
.meter i.on { background: var(--bone); }
.note__icon { height: 44px; display: flex; align-items: end; color: var(--mute); }

.serve { display: grid; grid-template-columns: 1.3fr 1fr 1fr; border-bottom: 1px solid var(--line); }
.serve > div { padding: 40px var(--pad); border-right: 1px solid var(--line); }
.serve > div:last-child { border-right: 0; }
.serve .poster { font-size: clamp(80px, 10vw, 190px); display: block; margin-top: 16px; }
.serve .serif { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.08; display: block; margin-top: 16px; }

.related { padding: clamp(80px, 10vw, 150px) 0; }

.buybar {
  position: fixed; inset: auto 0 0; z-index: 60;
  display: none; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 8, 9, .95); border-top: 1px solid rgba(242, 236, 228, .14);
  transform: translateY(110%); transition: transform .5s var(--ease);
}
.buybar.is-on { transform: none; }
.buybar img { height: 48px; width: auto; margin: auto; }
.buybar .serif { font-size: 17px; line-height: 1.1; }

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide__list { grid-template-columns: repeat(3, 1fr); }
  .guide__item:nth-child(3) { border-right: 0; }
  .guide__item:nth-child(4) { padding-left: 0; }
  .guide__item:nth-child(n+4) { border-top: 1px solid var(--line); }
  .rail .card { flex-basis: calc((100vw - 2 * var(--pad) - 3 * 18px) / 3.4); }
  .notes__band { grid-template-columns: 1fr 1fr; }
  .note:nth-child(2) { border-right: 0; }
  .note:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line); }
  .note:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  :root { --hdr: 60px; }
  body::after { display: none; }
  .hdr__nav { display: none; }
  .hdr__menu { display: inline-flex; align-items: center; min-height: 44px; padding-right: 10px; }
  .hdr__right { gap: 14px; }
  .hdr__right .hide-m { display: none; }
  .logo { font-size: 26px; }

  .hero__bg { background-image: url('../img/scenes/hero-v.jpg'); background-position: center 70%; }
  .hero__title { top: calc(var(--hdr) + 3svh); font-size: clamp(60px, 21.5vw, 190px); }
  .hero__fact { display: block; position: absolute; left: var(--pad); top: calc(var(--hdr) + 3svh + 2 * .9 * clamp(60px, 21.5vw, 190px) + 14px); z-index: 2; margin: 0; }
  .hero__anchor { height: min(52svh, 520px); bottom: 17svh; }
  .hero__foot { grid-template-columns: 1fr; gap: 12px; bottom: 18px; }
  .hero__lead, .scroll-cue { display: none; }
  .hero__link { justify-self: start; text-align: left; }

  .switch { height: auto; min-height: 100svh; padding: calc(var(--hdr) + 16px) var(--pad) 26px; display: grid; grid-template-rows: auto 1fr auto auto; }
  .switch__title { position: relative; top: auto; transform: none; font-size: clamp(64px, 20vw, 160px); text-align: left; }
  .switch__slot { position: relative; left: auto; top: auto; transform: none; height: 50svh; margin: 0 auto; }
  .switch__top { position: absolute; top: calc(var(--hdr) + 16px); left: auto; right: var(--pad); }
  .switch__tabs { position: relative; left: auto; bottom: auto; transform: none; justify-content: center; gap: 18px; margin: 8px 0 14px; }
  .switch__info { position: relative; left: auto; bottom: auto; max-width: none; }
  .switch__sub { display: none; }
  .switch__buy { position: relative; right: auto; bottom: auto; justify-items: stretch; margin-top: 12px; }
  .switch__buy-row { justify-content: space-between; }
  .switch__skip { display: none; }

  .houses__head, .houses__grid { grid-template-columns: 1fr; }
  .houses__head p { justify-self: start; }
  .houses__peek { display: none; }
  .house-row { grid-template-columns: 1fr; gap: 4px; }
  .house-row__name { font-size: 40px; }

  .shead { grid-template-columns: 1fr; }
  .rail .card { flex-basis: 70vw; }

  .method__head, .method__grid { grid-template-columns: 1fr; }
  .method__head p { justify-self: start; }
  .method__media { position: relative; top: 0; aspect-ratio: 4 / 4.4; }
  .method__item { grid-template-columns: 44px 1fr; }

  .terrace { height: 100svh; }
  .terrace__ui { right: var(--pad); bottom: 96px; }
  .seg { left: var(--pad); right: auto; bottom: 30px; }
  .terrace__clock { left: var(--pad); right: auto; }

  .gift { grid-template-columns: 1fr; }
  .gift__media { min-height: 70svh; order: -1; }
  .gift .svc { grid-template-columns: 1fr; }

  .faq { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .ftr__news { grid-column: 1 / -1; }

  .cat-hero { min-height: 46svh; }
  .filters { flex-wrap: nowrap; gap: 8px; }
  .filters .chips, .filters .sel--house { display: none; }
  .filters__open { display: inline-flex; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 12px; }
  .grid .tile { grid-column: 1 / -1; min-height: 48svh; }
  .card__name { font-size: 20px; }
  .card__price { grid-column: 1; grid-row: auto; padding-top: 4px; }
  .card__line { display: none; }
  .guide__head { grid-template-columns: 1fr; }
  .guide__head p { justify-self: start; }
  .guide__list { grid-template-columns: 1fr 1fr; }
  .guide__item, .guide__item + .guide__item { padding: 22px 16px 26px 0; border-right: 0; border-top: 1px solid var(--line); }

  .pdp { grid-template-columns: 1fr; }
  .pdp__stage { position: relative; height: 62svh; min-height: 440px; }
  .pdp__bottle { height: min(44svh, 400px); bottom: 11svh; }
  .pdp__stage-meta, .pdp__hint { display: none; }
  .pdp__info { padding-top: 26px; }
  .pdp__info .crumbs .full { display: none; }
  .notes__band { grid-template-columns: 1fr; }
  .note, .note + .note { padding: 22px 0; border-right: 0; border-top: 1px solid var(--line); }
  .serve { grid-template-columns: 1fr; }
  .serve > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .serve > div:last-child { border-bottom: 0; }
  .buybar { display: grid; }
  .has-buybar .ftr { padding-bottom: 110px; }
}

@media (min-width: 861px) { .pdp__info .crumbs .short { display: none; } }

@media (max-width: 520px) {
  .ftr__grid { grid-template-columns: 1fr; }
  .gate__actions .btn { width: 100%; }
}

@media (pointer: coarse) {
  .sel select, .news-form input, .gift-more textarea, .mnav__search input { font-size: 16px; }
}

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

/* intro: bez mignięcia treści przed wejściem */
.js:not(.is-entered) main { visibility: hidden; }

/* przejścia między stronami: butelka z karty morfuje w scenę produktu */
@view-transition { navigation: auto; }
::view-transition-group(root) { animation-duration: .45s; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.19, 1, .22, 1); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

@media (max-width: 860px) {
  a.card__add { display: none; }
  .card__badge { max-width: calc(100% - 56px); white-space: normal; line-height: 1.3; }
}

/* =========================================================
   v3 — przełącznik bez pinu · noc (zdjęcie) · karta produktu ze zdjęciami
   ========================================================= */
.switch__slot { cursor: pointer; }
.houses__peek { margin: 0; }
.houses__peek figcaption { position: absolute; left: 0; right: 0; bottom: -10px; text-align: center; }

/* ---------- noc: zbliżenie na stolik ---------- */
.noc { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: #05070d; isolation: isolate; }
.noc__bg { position: absolute; inset: -5% 0 -5%; background: url('../img/plates/night-table.jpg') center bottom/cover no-repeat; z-index: -2; }
.noc__stage { position: absolute; left: 64%; bottom: 11%; height: 82%; aspect-ratio: 580 / 1880; transform: translateX(-50%); z-index: 1; }
.noc__bottle { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; z-index: 3; }
.noc__reflect {
  position: absolute; left: 0; top: 100%; width: 100%; height: 100%;
  object-fit: contain; object-position: center bottom;
  transform: scaleY(-1);
  opacity: .34; filter: blur(1.5px) saturate(1.1);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 22%);
  mask-image: linear-gradient(to top, #000 0%, transparent 22%);
  z-index: 1;
}
.noc__shadow { position: absolute; left: -45%; right: -45%; bottom: -2.4%; height: 5%; background: radial-gradient(closest-side, rgba(0, 0, 0, .9), transparent); z-index: 2; }
.noc__spill { position: absolute; left: -170%; right: -170%; bottom: -9%; height: 15%; background: radial-gradient(closest-side, rgba(70, 255, 150, .26), transparent); mix-blend-mode: screen; z-index: 2; }
.noc__halo { position: absolute; left: -110%; right: -110%; bottom: 2%; height: 42%; background: radial-gradient(closest-side, rgba(80, 255, 160, .2), transparent 70%); mix-blend-mode: screen; z-index: 4; pointer-events: none; animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.noc__scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(4, 5, 10, .78), rgba(4, 5, 10, .25) 46%, transparent 62%), linear-gradient(0deg, rgba(4, 5, 10, .55), transparent 35%); z-index: 2; }
.noc__ui { position: absolute; left: var(--pad); bottom: 48px; max-width: 520px; display: grid; gap: 18px; z-index: 5; }
.noc__ui h2, .noc__ui p { margin: 0; }
.noc__lead { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.18; max-width: 440px; }
.noc__buy { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.noc__price { font-size: 34px; line-height: 1; }

/* ---------- karta produktu: jasna scena, prawdziwe zdjęcia ---------- */
.pdp.is-paper .pdp__stage { background: #ebe3d6; }
.pdp__plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.pdp__set { position: absolute; z-index: 1; transform: translateX(-50%); }
.pdp__set img { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; translate: -50% 0; }
.pdp__set .pdp__shot { filter: drop-shadow(0 2px 2px rgba(40, 25, 10, .25)); }
.pdp__cast { filter: brightness(0) blur(9px); opacity: .2; mix-blend-mode: multiply; transform-origin: 50% 100%; transform: translateX(22%) skewX(-16deg) scaleY(.97); }
.pdp__contact { position: absolute; left: -30%; right: -30%; bottom: -2.2%; height: 5%; background: radial-gradient(closest-side, rgba(55, 35, 15, .55), transparent); mix-blend-mode: multiply; }
.pdp__print {
  position: absolute; z-index: 2; left: 50%; top: 47%; margin: 0;
  width: min(68%, 600px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: #fbf8f2; padding: 14px;
  box-shadow: 0 30px 60px rgba(50, 30, 10, .22), 0 4px 10px rgba(50, 30, 10, .12);
  opacity: 0; visibility: hidden;
}
.pdp__print img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp.is-paper .pdp__gal { color: var(--ink); }
.pdp.is-paper .pdp__stage-meta { color: rgba(20, 14, 15, .6); }
.pdp.is-paper .toggle__ui { border-color: rgba(20, 14, 15, .4); }
.pdp.is-paper .toggle__ui::after { background: var(--ink); }
.pdp.is-paper .toggle input:checked + .toggle__ui::after { background: #fff; }
.pdp.is-paper .qty button:not(:disabled):hover { color: var(--ink); }
.pdp.is-paper .gift-more textarea { color: var(--ink); }
.pdp.is-paper .stock__state::before { color: #1f9a52; }
.pdp.is-paper .stock__state.is-low::before { color: #c27a00; }

@media (max-width: 860px) {
  .noc__bg { background-image: url('../img/plates/night-table-v.jpg'); }
  .noc__stage { left: 50%; bottom: 44%; height: 46%; }
  .noc__scrim { background: linear-gradient(0deg, rgba(4, 5, 10, .9) 0%, rgba(4, 5, 10, .55) 30%, transparent 55%); }
  .noc__ui { right: var(--pad); bottom: 28px; }
  .pdp__print { width: 78%; }
}

@media (max-width: 860px) {
  /* telefon: najpierw kadr (butelka stoi na blacie), tekst pod spodem */
  .noc { height: auto; min-height: 0; padding: calc(100svh + 8px) var(--pad) 44px; }
  .noc__bg { inset: 0 0 auto; height: 100svh; background-position: center bottom; }
  .noc__bg::after { content: ''; position: absolute; inset: auto 0 0; height: 22%; background: linear-gradient(transparent, #05070d); }
  .noc__stage { left: 50%; bottom: auto; top: calc(100svh - 13svh - 58svh); height: 58svh; }
  .noc__scrim { display: none; }
  .noc__ui { position: relative; left: auto; right: auto; bottom: auto; }
}
