@import url("../fonts/fonts.css");

:root {
  --bg: #fbf8f3;
  --bg-alt: #f3ece1;
  --ink: #1c1916;
  --ink-soft: #3a342e;
  --muted: #6e655c;
  --gold: #b08d57;
  --gold-ink: #86673a;
  --gold-soft: #eadcc5;
  --line: #e4dacb;
  --white: #fff;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(40, 28, 12, .35);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
em.gold, .gold { color: var(--gold-ink); font-style: italic; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font: 600 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lead { margin-inline: auto; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- animacje (klatki) ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(25deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 150% center; } 100% { background-position: -150% center; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes tileIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: var(--shadow), 0 0 0 0 rgba(176, 141, 87, .45); } 70% { box-shadow: var(--shadow), 0 0 0 16px rgba(176, 141, 87, 0); } }
@keyframes blink { 50% { opacity: 0; } }

/* pojawianie się przy przewijaniu (tylko gdy działa JS) */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .8s ease, translate .8s var(--ease); transition-delay: calc(var(--i, 0) * 100ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* złoty połysk na napisie */
.shimmer {
  background: linear-gradient(100deg, var(--gold-ink) 0%, #d9b87a 42%, #fbe9c6 50%, #d9b87a 58%, var(--gold-ink) 100%);
  background-size: 250% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s linear infinite;
}

/* ---------- przyciski ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.7em; border-radius: 999px;
  font: 600 .95rem/1 var(--sans); letter-spacing: .02em; text-decoration: none;
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  transform: translateX(-130%); transition: transform .7s;
}
.btn:hover::after { transform: translateX(130%); }
.btn:hover { background: var(--gold-ink); border-color: var(--gold-ink); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(134, 103, 58, .7); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn.light:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 10px 30px -24px rgba(40, 28, 12, .5); }
.header-row { display: flex; align-items: center; gap: 32px; height: 76px; transition: height .3s; }
@media (min-width: 821px) { .site-header.scrolled .header-row { height: 62px; } }
.logo { font: 600 1.85rem/1 var(--serif); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.logo em { color: var(--gold-ink); font-weight: 500; }
.header-row { height: 108px; }
.logo img { height: 94px; width: auto; transition: height .3s; }
@media (min-width: 821px) { .site-header.scrolled .header-row { height: 72px; } .site-header.scrolled .logo img { height: 62px; } }
@media (max-width: 820px) { .logo img { height: 66px; } }
.site-footer .logo img { height: 110px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  position: relative; text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-soft);
  padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.header-cta { padding: .75em 1.3em; font-size: .88rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 2rem; }
.hero-copy > * { animation: fadeUp .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-copy > :nth-child(4) { animation-delay: .3s; }
.hero-copy > :nth-child(5) { animation-delay: .4s; }
.hero-media { position: relative; justify-self: center; width: min(460px, 100%); animation: fadeUp 1s .15s var(--ease) both; }
.arch {
  position: relative; border-radius: 999px 999px 22px 22px; overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow);
}
.hero .arch { animation: floatY 7s ease-in-out 1.2s infinite; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::before {
  content: ""; position: absolute; inset: -16px 16px 16px -16px;
  border: 1px solid var(--gold); border-radius: 999px 999px 26px 26px; z-index: -1;
}
.badge {
  position: absolute; left: -28px; bottom: 36px;
  background: var(--white); border-radius: 16px; padding: 16px 20px;
  box-shadow: var(--shadow); display: grid; gap: 2px;
  animation: fadeUp .8s .7s var(--ease) both;
}
.badge b { font: 600 2rem/1 var(--serif); color: var(--gold-ink); }
.badge span { font-size: .82rem; color: var(--muted); }
.badge.ring {
  left: auto; right: -26px; top: 26px; bottom: auto;
  width: 124px; height: 124px; padding: 0; border-radius: 50%;
  place-items: center; align-content: center; text-align: center; gap: 4px;
  animation: fadeUp .8s .9s var(--ease) both, pulse 3.2s 2s ease-out infinite;
}
.badge.ring::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px dashed var(--gold); animation: spin 22s linear infinite;
}
.badge.ring b { font-size: 2.2rem; }
.badge.ring span { font: 600 .66rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 0 14px; }
.sp {
  position: absolute; left: var(--x); top: var(--y); z-index: 2; pointer-events: none;
  width: calc(16px * var(--s, 1)); height: calc(16px * var(--s, 1)); background: var(--gold);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: twinkle 3.4s ease-in-out var(--d, 0s) infinite;
}
.perks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .92rem; color: var(--ink-soft); }
.perks li::before { content: "✓"; color: var(--gold-ink); font-weight: 700; margin-right: .5em; }

/* ---------- pasek przewijany ---------- */
.marquee {
  overflow: hidden; background: var(--ink); color: var(--bg);
  padding: 15px 0; font: 600 .8rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
}
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { padding: 0 26px; white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--gold); margin-left: 52px; }

/* ---------- liczby ---------- */
.stats { border-block: 1px solid var(--line); background: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font: 600 2.1rem/1.1 var(--serif); color: var(--gold-ink); margin-bottom: 6px; }
.stat span { font-size: .92rem; color: var(--muted); }

/* ---------- karty kolekcji ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0));
  transition: transform .3s, box-shadow .3s, opacity .8s ease, translate .8s var(--ease);
}
.card:hover { --ty: -6px; box-shadow: var(--shadow); }
.card .ph { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-alt); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .ph img { transform: scale(1.05); }
.card .ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .5) 50%, transparent 60%);
  transform: translateX(-120%); transition: transform .8s;
}
.card:hover .ph::after { transform: translateX(120%); }
.card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: .3em; }
.card p { color: var(--muted); font-size: .96rem; flex: 1; }
.more { font-weight: 600; font-size: .9rem; color: var(--gold-ink); }
.more b { font-weight: 700; }

/* ---------- kroki ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; counter-reset: step; }
.steps.vertical { grid-template-columns: 1fr; gap: 22px; align-content: center; }
.step { border-top: 1px solid var(--ink); padding-top: 22px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font: italic 500 2.6rem/1 var(--serif); color: var(--gold); margin-bottom: 14px;
}
.steps.vertical .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; padding-top: 18px; }
.steps.vertical .step::before { margin: 0; grid-row: 1 / span 2; }
.steps.vertical .step p { grid-column: 2; }
.step h3 { font-size: 1.5rem; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ---------- demo personalizacji ---------- */
.split.person { align-items: center; }
.demo {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: 28px;
  padding: 34px 32px 0; box-shadow: var(--shadow);
}
.demo-label { display: block; font: 600 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 34px; }
.demo-topper { text-align: center; font: italic 500 clamp(2rem, 3.6vw, 2.9rem)/1.1 var(--serif); color: var(--ink); min-height: 2.3em; display: grid; align-content: end; }
.demo-line { display: block; overflow-wrap: anywhere; }
.demo-topper::after { content: ""; display: block; width: 3px; height: 62px; margin: 8px auto 0; background: currentColor; border-radius: 2px; }
.demo-topper.light .demo-line { text-shadow: 0 1px 0 #cfc6ba, 0 3px 10px rgba(40, 28, 12, .3); }

/* ---------- generator wzorów ---------- */
.split.gen { align-items: start; }
.gen-form { display: grid; gap: 18px; }
.gen-form > label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.gen-form input[type="text"], .gen-form select, .gen-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  padding: .8em 1em; font: 500 1rem/1.5 var(--sans); color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.gen-form textarea { resize: vertical; }
.gen-form :is(input, select, textarea):focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176, 141, 87, .15); }
.swatches { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.swatches legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.swatches label { position: relative; cursor: pointer; }
.swatches input { position: absolute; inset: 0; opacity: 0; }
.swatches span {
  display: inline-flex; align-items: center; gap: 8px; padding: .5em .95em .5em .55em;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .9rem; font-weight: 500;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.swatches i { width: 20px; height: 20px; border-radius: 50%; background: var(--c); border: 1px solid rgba(28, 25, 22, .12); }
.swatches label:hover span { transform: translateY(-1px); border-color: var(--gold); }
.swatches input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.swatches input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.gen-form .hint { margin: 0; font-size: .88rem; }
.gen-preview { position: sticky; top: 100px; }
.gstep { display: grid; gap: 14px; }
.gstep + .gstep { margin-top: 12px; padding-top: 26px; border-top: 1px solid var(--line); }
.glabel { font-weight: 600; font-size: .9rem; }
.glabel small { font-weight: 500; color: var(--muted); margin-left: .5em; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer;
  font: 600 1rem var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.tile-btn:hover { transform: translateY(-1px); border-color: var(--gold); }
.tile-btn.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.dot { width: 18px; height: 18px; border-radius: 50%; background: var(--c); border: 1px solid rgba(28, 25, 22, .12); }
.dot.rainbow { background: conic-gradient(#1c1916, #c9a24d, #fbf8f3, #d4848c, #7bb8d4, #1c1916); }
.gen-out { min-height: 420px; }
.gen-empty, .gen-loading {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 420px;
  border: 1px dashed var(--line); border-radius: 28px; color: var(--muted);
}
.gen-prompt { font: italic 500 1.35rem/1.35 var(--serif); margin-bottom: 18px; }
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.slot { position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--white); border: 1px solid var(--line); animation: tileIn .6s var(--ease) both; }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: slotIn .7s var(--ease) both; }
.slot img.out { animation: slotOut .5s var(--ease) both; }
@keyframes slotIn { from { opacity: 0; transform: scale(1.08) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes slotOut { to { opacity: 0; transform: scale(.92); } }
.gate {
  max-width: 560px; margin-inline: auto; text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow);
}
.gate .eyebrow { justify-content: center; }
.gate form { display: grid; gap: 14px; justify-items: center; }
.gate label { display: grid; gap: 8px; font-weight: 600; font-size: .9rem; width: min(320px, 100%); }
.gate input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: .8em 1em;
  font: 600 1.15rem/1.4 var(--sans); text-align: center; letter-spacing: .25em; text-transform: uppercase; color: var(--ink); outline: none;
}
.gate input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176, 141, 87, .15); }
.err { color: #b3261e; font-size: .9rem; margin: 0; }
.caret { display: inline-block; width: 2px; height: .85em; background: var(--gold-ink); margin-left: 4px; vertical-align: -.08em; animation: blink 1s steps(2) infinite; }
.demo-cake { position: relative; height: 138px; margin-top: -2px; }
.demo-cake::before {
  content: ""; position: absolute; left: 21%; right: 21%; top: 0; height: 74px;
  background: #f6efe3; border-top: 10px solid var(--gold-soft); border-radius: 26px 26px 0 0;
  box-shadow: inset 0 -14px 0 rgba(176, 141, 87, .12);
}
.demo-cake::after {
  content: ""; position: absolute; left: -32px; right: -32px; top: 74px; height: 70px;
  background: #efe5d3; border-top: 12px solid var(--gold-soft); border-radius: 36px 36px 0 0;
  box-shadow: inset 0 -16px 0 rgba(176, 141, 87, .12);
}

/* ---------- cytat ---------- */
.quote { background: var(--ink); color: var(--bg); text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 900px; }
.quote p { font: italic 500 clamp(1.8rem, 3.6vw, 2.8rem)/1.25 var(--serif); margin-bottom: .8em; }
.quote cite { font-style: normal; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); }
.quote-mark { font: 600 5rem/.5 var(--serif); color: var(--gold); display: block; margin-bottom: .2em; }

/* ---------- CTA ---------- */
.cta-box {
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(32px, 5vw, 60px);
}
.cta-box h2 { margin-bottom: .25em; }
.cta-box p { color: var(--muted); margin: 0; }

/* ---------- nagłówek podstrony ---------- */
.page-hero { padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.page-hero > .wrap > * { animation: fadeUp .8s var(--ease) both; }
.page-hero > .wrap > :nth-child(2) { animation-delay: .1s; }
.page-hero > .wrap > :nth-child(3) { animation-delay: .2s; }
.page-hero > .wrap > :nth-child(4) { animation-delay: .3s; }
.page-hero > .wrap > :nth-child(5) { animation-delay: .4s; }
.hint { color: var(--muted); font-size: .95rem; margin: 20px 0 0; }

/* ---------- podstrona kolekcji ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chips a {
  text-decoration: none; font-size: .9rem; font-weight: 500;
  border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .55em 1.1em;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.chips a:hover { border-color: var(--gold); background: var(--gold-soft); transform: translateY(-1px); }
.chips a b { font-weight: 600; color: var(--gold-ink); margin-left: .4em; font-size: .82em; }
.chips a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips a[aria-current] b { color: var(--gold-soft); }
.gallery-section { min-height: 60vh; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 30px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--white); padding: 4px; }
.seg button {
  border: 0; background: transparent; cursor: pointer; color: var(--ink-soft);
  font: 600 .88rem/1 var(--sans); padding: .72em 1.2em; border-radius: 999px;
  transition: background .2s, color .2s;
}
.seg button.on { background: var(--ink); color: var(--bg); }
.search { flex: 1; min-width: 220px; position: relative; }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  padding: .85em 1.2em .85em 2.9em; font: 500 .95rem var(--sans); color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176, 141, 87, .15); }
.count { font-size: .9rem; color: var(--muted); margin-left: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.tile {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit;
  animation: tileIn .55s var(--ease) both; animation-delay: calc(min(var(--i, 0), 24) * 35ms);
}
.tile .ph { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: box-shadow .3s, transform .3s; }
.tile:hover .ph { box-shadow: var(--shadow); transform: translateY(-4px); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile:hover img { transform: scale(1.06); }
.tile .ph::after {
  content: "Zobacz na Allegro ↗"; position: absolute; left: 10px; right: 10px; bottom: 10px;
  padding: .6em .9em; border-radius: 999px; background: rgba(28, 25, 22, .86); color: var(--bg);
  font: 600 .78rem/1 var(--sans); text-align: center; opacity: 0; transform: translateY(8px);
  transition: opacity .25s, transform .25s;
}
.tile:hover .ph::after { opacity: 1; transform: none; }
.more-sentinel { display: grid; place-items: center; padding: 40px 0; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 36px; scroll-margin-top: 100px; }
.pager button {
  min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink); font: 600 .9rem var(--sans); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.pager button:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-1px); }
.pager button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager button:disabled { opacity: .4; cursor: default; }
.pager .dots { color: var(--muted); padding: 0 4px; }
.grid { scroll-margin-top: 96px; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold); animation: spin 1s linear infinite; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.all-link { margin: 40px 0 0; text-align: center; color: var(--ink-soft); }
.all-link .btn { margin-top: 14px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--white); border: 1px solid var(--line); }
.gallery figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; line-height: 1.4; }

/* ---------- do góry ---------- */
#totop {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); box-shadow: var(--shadow); cursor: pointer;
  font: 600 1.1rem/1 var(--sans); display: grid; place-items: center;
  opacity: 0; translate: 0 14px; pointer-events: none; transition: opacity .3s, translate .3s, background .2s, color .2s;
}
#totop.show { opacity: 1; translate: 0 0; pointer-events: auto; }
#totop:hover { background: var(--ink); color: var(--bg); }

/* ---------- dokumenty (regulamin, polityka) ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 2em 0 .6em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ol, .legal ul { padding-left: 1.4em; margin: 0 0 1em; }
.legal li { margin-bottom: .55em; }
.legal a { text-decoration-color: var(--gold); text-underline-offset: 3px; }
.site-footer .footer-bottom a { color: inherit; text-decoration: none; }
.site-footer .footer-bottom a:hover { color: var(--white); }

/* ---------- o marce ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split .arch { aspect-ratio: 4 / 5; max-width: 440px; }
.prose p { color: var(--ink-soft); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .3s, box-shadow .3s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature b { display: block; font: 600 1.7rem/1.1 var(--serif); color: var(--gold-ink); margin-bottom: 8px; }
.feature span { color: var(--muted); font-size: .95rem; }

/* ---------- informacje ---------- */
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 600; }
.spec dd { margin: 0; color: var(--ink-soft); }
.safety { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; }
.safety li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.safety li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 14px;
  border: 1px solid var(--gold); border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px);
}
.note {
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 12px; padding: 22px 26px;
}

/* ---------- kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; display: flex; flex-direction: column; gap: 6px;
  transition: transform .3s, box-shadow .3s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card .ico {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-ink); margin-bottom: 14px;
}
.contact-card h3 { font-size: 1.55rem; margin-bottom: .2em; }
.contact-card p { color: var(--muted); font-size: .96rem; margin-bottom: .6em; }
.contact-card .big { font-weight: 600; word-break: break-word; }
.contact-card .big a { text-decoration-color: var(--gold); text-underline-offset: 4px; }
.contact-card address { font-style: normal; color: var(--ink-soft); }
.contact-card .btn { align-self: flex-start; margin-top: auto; }

/* ---------- stopka ---------- */
.site-footer { background: var(--ink); color: #cfc6ba; padding: 72px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; }
.site-footer .logo { color: var(--bg); display: inline-block; margin-bottom: 14px; }
.site-footer .logo em { color: var(--gold-soft); }
.site-footer h4 { font: 600 .75rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft); margin: 6px 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #968b7e;
}

/* skrót `font` zeruje font-variant — cyfry w szeryfie ustawiamy jawnie */
.stat b, .badge b, .feature b, .step::before, .quote p, .demo-topper { font-variant-numeric: lining-nums; }

/* ---------- responsywność ---------- */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .header-row { flex-wrap: wrap; height: auto; padding: 14px 0 0; gap: 10px 16px; }
  .header-cta { margin-left: auto; }
  .nav {
    order: 3; width: 100%; min-width: 0; margin: 0; gap: 22px; overflow-x: auto; padding-bottom: 10px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-media { order: -1; width: min(360px, 88%); }
  .badge { left: -12px; bottom: 24px; }
  .badge.ring { right: -10px; top: 10px; width: 104px; height: 104px; }
  .badge.ring b { font-size: 1.8rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta-box { grid-template-columns: 1fr; }
  .safety { grid-template-columns: 1fr; }
  .spec div { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .stat { padding: 24px 12px; }
  .stat b { font-size: 1.55rem; }
  .logo { font-size: 1.6rem; }
  .header-cta { padding: .7em 1.05em; font-size: .82rem; }
  .cards, .features, .contact-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .count { margin-left: 0; width: 100%; }
  .gallery {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px;
  }
  .gallery figure { scroll-snap-align: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .demo { padding: 28px 22px 0; }
  .demo-cake::after { left: -22px; right: -22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; translate: 0 0; }
}
