:root {
  --bg: #F3EDE2;          /* beż */
  --ivory: #FBF8F2;       /* kość słoniowa – karty */
  --sand: #E2D6C2;        /* ramki */
  --bordo: #6B1E2E;       /* kolor główny */
  --bordo-dark: #551624;
  --gold: #C9A45C;        /* tylko detale na bordo */
  --text: #2B2220;        /* ciemny brąz */
  --taupe: #857668;       /* opisy */
  --green: #2F4F3E;       /* ukończone */
  --radius: 20px;
  --max: 1160px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
/* phones: page moves only up/down – no sideways drag or empty strip at the edges.
   Only the screenshot gallery may be swiped sideways. */
html, body { overflow-x: hidden; overflow-x: clip; overscroll-behavior-x: none; }
body { touch-action: pan-y pinch-zoom; }
.hero, .section, .footer { overflow-x: clip; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }

h1, h2, h3 { font-family: var(--serif); color: var(--bordo); font-weight: 700; }
.accent { font-style: italic; color: var(--bordo); }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(243, 237, 226, 0.88);
  border-bottom: 1px solid var(--sand);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--bordo); }
.logo img { width: 40px; height: 40px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--taupe); font-weight: 500; font-size: 0.95rem; transition: color .2s; }
.nav-links a:hover { color: var(--bordo); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600;
  background: var(--bordo); color: var(--ivory);
  transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); background: var(--bordo-dark); }
.btn-small { padding: 9px 18px; font-size: 0.9rem; }

.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--bordo); border-radius: 2px; transition: .25s; }
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 23px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* HERO */
.hero { padding: 80px 0 100px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.pill {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: var(--ivory); border: 1px solid var(--sand);
  font-size: 0.85rem; font-weight: 600; color: var(--bordo); margin-bottom: 22px;
  letter-spacing: 0.02em;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); line-height: 1.08; letter-spacing: -0.01em; }
.lead { margin: 22px 0 34px; font-size: 1.15rem; color: var(--taupe); max-width: 540px; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.store-buttons.center { justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 22px 11px 18px; border-radius: 14px;
  background: var(--text); color: var(--ivory); min-width: 190px;
  transition: transform .2s, box-shadow .2s;
}
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(43, 34, 32, 0.22); }
.store-btn svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 1.15rem; }
.store-btn small { font-weight: 500; font-size: 0.72rem; opacity: 0.7; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; list-style: none; margin-top: 44px; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--bordo); }
.hero-stats span { color: var(--taupe); font-size: 0.88rem; }

/* PHONE MOCKUP */
.hero-visual { position: relative; display: flex; justify-content: center; text-align: left; }
/* realistic phone: titanium edge, black bezel, Dynamic Island, side buttons */
.phone {
  position: relative; width: 330px; padding: 9px; border-radius: 52px;
  background: linear-gradient(150deg, #6b5d56 0%, #2a2220 18%, #17110f 50%, #2a2220 82%, #6b5d56 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.22),
    inset 0 0 0 5px #0c0908,
    0 50px 90px -20px rgba(107, 30, 46, 0.45),
    0 20px 40px rgba(43, 34, 32, 0.22);
  animation: float 6s ease-in-out infinite;
}
.phone::before, .phone::after {
  content: ""; position: absolute; width: 4px; border-radius: 2px;
  background: linear-gradient(90deg, #3d332f, #6b5d56);
}
.phone::before { left: -3px; top: 118px; height: 30px; box-shadow: 0 46px 0 #4a3f3b, 0 92px 0 #4a3f3b; }
.phone::after { right: -3px; top: 168px; height: 72px; background: linear-gradient(90deg, #6b5d56, #3d332f); }
.phone-screen {
  position: relative; overflow: hidden; border-radius: 43px;
  background: #F4EEE3; isolation: isolate;
}
.phone-screen img {
  width: 100%; height: auto; display: block;
}
.status-bar {
  position: relative; height: 42px; display: flex; align-items: center; justify-content: space-between;
  padding: 4px 24px 0 32px; color: #1d1716; font: 600 14px/1 "Inter", system-ui, sans-serif;
}
.sb-island {
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 20px; background: #050404;
}
.sb-icons { display: flex; align-items: center; gap: 5px; }
.sb-icons svg { fill: currentColor; }
.home-bar {
  position: absolute; left: 50%; bottom: 7px; transform: translateX(-50%);
  width: 100px; height: 4px; border-radius: 3px; background: rgba(29, 23, 22, 0.85);
}
.phone-glare {
  position: absolute; inset: 9px; border-radius: 43px; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.05) 28%, rgba(255, 255, 255, 0) 42%);
}
.screen {
  height: 100%; border-radius: 36px; padding: 52px 14px 18px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 9px; overflow: hidden;
}
.screen-head { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 700; color: var(--bordo); font-size: 1.05rem; }
.screen-head img { width: 26px; height: 26px; }
.hero-card {
  background: var(--bordo); color: var(--ivory); border-radius: 18px; padding: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.badge-gold {
  align-self: flex-start; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 2px 8px;
}
.hero-card h4 { font-family: var(--serif); font-size: 1rem; line-height: 1.25; font-weight: 700; }
.counter { display: flex; justify-content: space-between; font-size: 0.68rem; opacity: 0.85; }
.counter b { color: var(--gold); }
.thin-bar { height: 3px; border-radius: 3px; background: rgba(251, 248, 242, 0.18); overflow: hidden; }
.thin-bar i { display: block; width: 12.5%; height: 100%; background: var(--gold); }
.start-btn {
  margin-top: 2px; text-align: center; padding: 9px; border-radius: 12px;
  background: var(--bg); color: var(--bordo); font-weight: 700; font-size: 0.8rem;
}
.screen-label { margin-top: 4px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--taupe); }
.unit {
  display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 13px;
  background: var(--ivory); border: 1px solid var(--sand); font-size: 0.76rem;
}
.unit-num {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 700; background: var(--bg); color: var(--bordo); border: 1px solid var(--sand);
}
.unit div { display: flex; flex-direction: column; line-height: 1.25; }
.unit strong { font-weight: 600; color: var(--text); }
.unit small { color: var(--taupe); font-size: 0.64rem; }
.unit.done .unit-num { background: var(--green); color: var(--ivory); border-color: var(--green); }
.unit .lock { margin-left: auto; font-size: 0.8rem; opacity: 0.75; }
.unit.locked strong { color: var(--taupe); }

/* PRICING */
.pricing { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; max-width: 920px; margin: 0 auto; align-items: stretch; }
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--ivory); border: 1px solid var(--sand); border-radius: var(--radius);
  overflow: hidden; font-size: 1rem;
}
.compare th, .compare td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--sand); }
.compare tr:last-child td { border-bottom: 0; }
.compare th { font-size: 0.85rem; font-weight: 600; color: var(--taupe); }
.compare td:first-child, .compare th:first-child { text-align: left; }
.compare td { color: var(--taupe); }
.compare td:first-child { color: var(--text); font-weight: 500; }
.compare .prem { color: var(--bordo); font-weight: 700; }
.price-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 36px 28px; border-radius: var(--radius); background: var(--bordo); color: var(--ivory);
}
.price-eyebrow { color: var(--gold); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.price { font-family: var(--serif); font-size: 3.2rem; font-weight: 700; line-height: 1.1; margin: 10px 0 6px; }
.price-card p { font-size: 0.92rem; color: rgba(251, 248, 242, 0.8); margin-bottom: 22px; }
.price-btn {
  width: 100%; max-width: 280px; padding: 14px 20px; border-radius: 14px;
  background: var(--bg); color: var(--bordo); font-weight: 700; transition: transform .2s;
}
.price-btn:hover { transform: translateY(-2px); }

.float-card {
  position: absolute; padding: 12px 16px; border-radius: 16px; font-size: 0.85rem;
  background: var(--ivory); border: 1px solid var(--sand); color: var(--text);
  box-shadow: 0 18px 36px rgba(43, 34, 32, 0.12);
}
.float-card strong { color: var(--bordo); }
.float-card { z-index: 2; }
/* side cards: pop in with a bounce shortly after load, then keep floating */
.fc-1 { top: 36%; left: -40px; max-width: 190px;
  animation: cardPopL .75s cubic-bezier(.34, 1.9, .5, 1) .7s both, float 7s ease-in-out 1.5s infinite reverse; }
.fc-2 { bottom: 14%; right: -30px;
  animation: cardPopR .75s cubic-bezier(.34, 1.9, .5, 1) 1.25s both, float 5s ease-in-out 2s infinite; }
.fc-2 strong { color: var(--green); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes cardPopL {
  0%   { opacity: 0; transform: translate(40px, 10px) scale(.3) rotate(-12deg); }
  60%  { opacity: 1; transform: translate(-4px, -4px) scale(1.12) rotate(3deg); }
  80%  { transform: scale(.96) rotate(-1deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes cardPopR {
  0%   { opacity: 0; transform: translate(-40px, 10px) scale(.3) rotate(12deg); }
  60%  { opacity: 1; transform: translate(4px, -4px) scale(1.12) rotate(-3deg); }
  80%  { transform: scale(.96) rotate(1deg); }
  100% { opacity: 1; transform: none; }
}

/* SECTIONS */
.section { padding: 100px 0; }
.section-alt { background: var(--ivory); border-block: 1px solid var(--sand); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow { color: var(--taupe); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.15; margin: 12px 0 14px; }
.section-head p { color: var(--taupe); font-size: 1.05rem; }

.grid.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  padding: 30px; border-radius: var(--radius);
  background: var(--ivory); border: 1px solid var(--sand);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: #d4c4aa; box-shadow: 0 16px 34px rgba(107, 30, 46, 0.08); }
.icon {
  width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.45rem;
  border-radius: 14px; margin-bottom: 18px; background: var(--bg); border: 1px solid var(--sand);
}
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card.wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; }
.card.wide .icon { margin-bottom: 0; flex-shrink: 0; }
.card p { color: var(--taupe); font-size: 0.96rem; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding: 34px 30px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--sand); }
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin-bottom: 18px;
  background: var(--bordo); color: var(--gold);
}
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--taupe); }

.topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; margin: 0 auto; }
.topic {
  padding: 12px 20px; border-radius: 999px; font-weight: 500; font-size: 0.95rem;
  background: var(--ivory); border: 1px solid var(--sand);
  transition: border-color .2s, transform .2s, color .2s;
}
.topic:hover { border-color: var(--bordo); color: var(--bordo); transform: translateY(-2px); }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  border-radius: 16px; background: var(--bg); border: 1px solid var(--sand);
  padding: 0 24px; transition: border-color .2s;
}
.faq details[open] { border-color: var(--bordo); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--bordo); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--taupe); padding-bottom: 20px; }
.faq a { color: var(--bordo); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.cta {
  text-align: center; padding: 70px 30px; border-radius: 32px;
  background: var(--bordo); color: var(--ivory);
}
.cta h2 { color: var(--ivory); }
.cta .badge-gold { display: inline-block; font-size: 0.75rem; padding: 4px 12px; margin-bottom: 8px; }
.cta p { color: rgba(251, 248, 242, 0.78); margin-bottom: 32px; font-size: 1.1rem; }
.cta .store-btn { background: var(--bg); color: var(--bordo); }

/* FOOTER */
.footer { border-top: 1px solid var(--sand); padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-content: space-between; }
.footer nav { display: flex; gap: 24px; }
.footer nav a, .copy { color: var(--taupe); font-size: 0.9rem; }
.footer nav a:hover { color: var(--bordo); }

/* COMPACT ICON GRID ("Co w środku") */
.icons { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.icons li {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 16px 8px; border-radius: 16px; background: var(--ivory); border: 1px solid var(--sand);
}
.icons span { font-size: 1.6rem; line-height: 1; }
.icons b { font-family: var(--serif); color: var(--bordo); font-size: 1.02rem; line-height: 1.2; }
.icons small { color: var(--taupe); font-size: 0.8rem; line-height: 1.3; }

/* UNIT PILLS */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pill {
  font: inherit; font-size: 0.9rem; font-weight: 500; cursor: pointer;
  padding: 9px 14px; border-radius: 999px; background: var(--ivory); color: var(--text);
  border: 1px solid var(--sand); transition: background .2s, color .2s, border-color .2s;
}
.pill:hover { border-color: var(--bordo); }
.pill.is-active { background: var(--bordo); color: var(--ivory); border-color: var(--bordo); }
.pill:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.pill-info {
  max-width: 620px; margin: 18px auto 0; padding: 16px 20px; border-radius: 16px;
  background: var(--ivory); border: 1px solid var(--sand); text-align: center;
}
.pill-info b { font-family: var(--serif); color: var(--bordo); font-size: 1.1rem; }
.pill-info p { color: var(--text); margin: 6px 0 4px; }
.pill-info small { color: var(--taupe); }
.free-tag-inline {
  display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; vertical-align: 2px;
  background: var(--green); color: var(--ivory); font-size: 0.7rem; font-weight: 700;
}
.free-tag-inline[hidden] { display: none; }

/* ONE PRICING CARD (steps + table + price) */
.price-box {
  max-width: 560px; margin: 0 auto; border-radius: 24px; overflow: hidden;
  background: var(--ivory); border: 1px solid var(--sand);
}
.mini-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 16px; }
.mini-steps li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--text); line-height: 1.25; }
.mini-steps b {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--bordo); color: var(--gold); font-family: var(--serif);
}
.price-box .compare { border: 0; border-radius: 0; border-top: 1px solid var(--sand); }
.price-box .compare th, .price-box .compare td { padding: 11px 16px; }
.price-box .price-card { border-radius: 0; padding: 26px 20px; }

/* FEATURE TILES (compact) */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* glossary card: both screenshots are light, so no dark frame on the second one */
.glossary-card .theme-shots img:last-child { background: var(--ivory); border-color: var(--sand); }
.tile {
  padding: 20px; border-radius: 18px; background: var(--ivory); border: 1px solid var(--sand);
  transition: transform .25s, border-color .25s;
}
.tile:hover { transform: translateY(-3px); border-color: #d4c4aa; }
.tile-icon {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px;
  border-radius: 12px; background: var(--bg); border: 1px solid var(--sand); font-size: 1.15rem;
}
.tile h3 { font-size: 1.08rem; line-height: 1.25; margin-bottom: 4px; }
.tile p { color: var(--taupe); font-size: 0.88rem; line-height: 1.4; }
@media (max-width: 720px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 14px; }
  .tile h3 { font-size: 0.98rem; }
  .tile p { font-size: 0.8rem; }
}

/* REAL SCREENSHOT IN HERO PHONE */

/* THEME CARD */
.theme-card { justify-content: space-between; gap: 30px; padding: 30px 40px; }
.theme-text { max-width: 460px; }
.theme-text .icon { margin-bottom: 18px; }
.theme-shots { display: flex; gap: 18px; flex-shrink: 0; }
.theme-shots img {
  width: 150px; box-sizing: content-box; border-radius: 18px; padding: 5px; background: var(--ivory);
  border: 1px solid var(--sand);
  box-shadow: 0 14px 30px rgba(43, 34, 32, 0.12);
  transition: transform .35s ease, box-shadow .35s ease;
}
.theme-shots img:last-child { background: #1d1716; border-color: #1d1716; }
.theme-shots { gap: 0; padding: 10px 20px; }
.theme-shots img:first-child { position: relative; z-index: 1; transform: rotate(-6deg) translateX(8px); }
.theme-shots img:last-child { margin-left: -16px; transform: rotate(6deg) translate(-2px, 12px); }
.theme-card:hover .theme-shots img:first-child { transform: rotate(-8deg) translate(0, -6px); }
.theme-card:hover .theme-shots img:last-child { transform: rotate(8deg) translate(6px, 8px); }

/* theme phones: jump apart when scrolled into view, then gently float */
.theme-card.in-view .theme-shots img:first-child {
  animation: themeJumpL 1s cubic-bezier(.34, 1.56, .64, 1) both, themeFloatL 4s ease-in-out 1s infinite;
}
.theme-card.in-view .theme-shots img:last-child {
  animation: themeJumpR 1s cubic-bezier(.34, 1.56, .64, 1) .12s both, themeFloatR 4.4s ease-in-out 1.1s infinite;
}
.theme-card:hover .theme-shots img { animation: none !important; }
@keyframes themeJumpL {
  0%   { transform: rotate(-2deg) translate(30px, 30px); }
  45%  { transform: rotate(-10deg) translate(0, -22px); }
  100% { transform: rotate(-6deg) translateX(8px); }
}
@keyframes themeJumpR {
  0%   { transform: rotate(2deg) translate(-30px, 40px); }
  45%  { transform: rotate(10deg) translate(8px, -10px); }
  100% { transform: rotate(6deg) translate(-2px, 12px); }
}
@keyframes themeFloatL {
  0%, 100% { transform: rotate(-6deg) translateX(8px); }
  50%      { transform: rotate(-7.5deg) translate(4px, -10px); }
}
@keyframes themeFloatR {
  0%, 100% { transform: rotate(6deg) translate(-2px, 12px); }
  50%      { transform: rotate(7.5deg) translate(2px, 2px); }
}

/* GALLERY */
.gallery {
  display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px max(20px, calc((100% - var(--max)) / 2)) 30px;
  scrollbar-width: thin; scrollbar-color: var(--sand) transparent;
  touch-action: pan-x pan-y; overscroll-behavior-x: contain;
}
.gallery:focus-visible { outline: 2px solid var(--bordo); outline-offset: -2px; }
.shot { flex: 0 0 200px; scroll-snap-align: center; text-align: center; }
.shot img {
  width: 100%; aspect-ratio: auto; border-radius: 20px; padding: 6px; background: var(--bg);
  border: 1px solid var(--sand);
  box-shadow: 0 16px 34px rgba(107, 30, 46, 0.10);
  transition: transform .3s ease, box-shadow .3s ease;
}
.shot:hover img { transform: translateY(-8px); box-shadow: 0 24px 44px rgba(107, 30, 46, 0.16); }
.shot figcaption { margin-top: 14px; font-weight: 600; color: var(--bordo); font-size: 0.95rem; }
/* gallery: screens bounce in one after another, then bob gently */
.js .gallery:not(.in-view) .shot { opacity: 0; transform: translateY(50px); }
.gallery.in-view .shot {
  animation: shotJump .9s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i, 0) * 110ms) both,
             shotBob 3.6s ease-in-out calc(.9s + var(--i, 0) * 300ms) infinite;
}
.shot:nth-child(2) { --i: 1; }
.shot:nth-child(3) { --i: 2; }
.shot:nth-child(4) { --i: 3; }
.shot:nth-child(5) { --i: 4; }
.shot:nth-child(6) { --i: 5; }
@keyframes shotJump {
  0%   { opacity: 0; transform: translateY(50px) scale(.94); }
  55%  { opacity: 1; transform: translateY(-16px) scale(1.02); }
  100% { opacity: 1; transform: none; }
}
@keyframes shotBob {
  0%, 100% { transform: none; }
  50%      { transform: translateY(-8px); }
}
/* zoom button on each screenshot + full-screen view */
.shot-media { position: relative; display: block; }
.shot img { cursor: zoom-in; }
.zoom-btn {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: #1d1716; color: #fff;
  box-shadow: 0 6px 16px rgba(29, 23, 22, 0.35);
  transition: transform .2s, background .2s;
}
.zoom-btn:hover { transform: scale(1.1); background: var(--bordo); }
.zoom-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 56px 16px 24px;
  background: rgba(20, 15, 14, 0.88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  touch-action: pinch-zoom;
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; text-align: center; animation: pop .25s ease; }
.lb-img {
  height: calc(100vh - 140px); max-height: 1100px; width: auto; max-width: 92vw; object-fit: contain;
  border-radius: 18px; background: var(--bg); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  cursor: default;
}
.lb-caption { margin-top: 14px; color: #f3ede2; font-weight: 600; }
.lb-close {
  position: fixed; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%;
  border: 0; cursor: pointer; font-size: 2rem; line-height: 1;
  background: var(--ivory); color: var(--text); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.lb-close:hover { background: #fff; }
.lb-close:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.gallery-hint { text-align: center; color: var(--taupe); font-size: 0.85rem; }

/* UNITS */
.units { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.unit-card {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: var(--ivory); border: 1px solid var(--sand); border-radius: 18px;
  transition: transform .25s, border-color .25s;
}
.unit-card:hover { transform: translateY(-3px); border-color: #d4c4aa; }
.unit-emoji {
  flex-shrink: 0; width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.4rem;
  border-radius: 14px; background: #F1E4E2;
}
.unit-card h3 { font-family: "Inter", system-ui, sans-serif; font-size: 1.02rem; color: var(--text); margin-bottom: 2px; }
.unit-card p { color: var(--taupe); font-size: 0.86rem; line-height: 1.4; }
.unit-card > div { flex: 1; min-width: 0; }
.unit-count { flex-shrink: 0; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--bordo); line-height: 1; }
.unit-count small { display: block; font-family: "Inter", sans-serif; font-size: 0.66rem; font-weight: 500; color: var(--taupe); margin-top: 3px; }
.free-tag {
  position: absolute; top: -9px; right: 16px; padding: 2px 10px; border-radius: 999px;
  background: var(--green); color: var(--ivory); font-size: 0.7rem; font-weight: 700;
}

/* CONTACT MODAL */
.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
  background: rgba(43, 34, 32, 0.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal[hidden] { display: none; }
.modal-box {
  position: relative; width: min(440px, 100%); padding: 34px 28px 28px; text-align: center;
  background: var(--ivory); border: 1px solid var(--sand); border-radius: 24px;
  box-shadow: 0 30px 70px rgba(43, 34, 32, 0.3);
  animation: pop .25s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--bg); color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--sand); }
.modal-icon { font-size: 2rem; }
.modal-box h3 { font-size: 1.6rem; margin: 6px 0 8px; }
.modal-box p { color: var(--taupe); margin-bottom: 20px; }
.email-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; margin-bottom: 16px;
  background: var(--bg); border: 1px solid var(--sand); border-radius: 14px;
}
.email-text { flex: 1; min-width: 0; text-align: left; font-weight: 600; font-size: 0.92rem; color: var(--bordo); overflow-wrap: anywhere; user-select: all; }
.copy-btn {
  flex-shrink: 0; min-width: 104px; padding: 9px 12px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--bordo); color: var(--ivory); font: inherit; font-weight: 600; font-size: 0.85rem;
}
.copy-btn.copied { background: var(--green); }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }
.modal-actions .btn { width: 100%; }
.btn-ghost { background: transparent; color: var(--bordo); border: 1px solid var(--sand); }
.btn-ghost:hover { background: var(--bg); }

/* REVEAL */
/* ukrywamy tylko, gdy działa JavaScript – bez niego treść jest zawsze widoczna */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* LEGAL PAGE */
.legal { padding: 70px 0 100px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal .updated { color: var(--taupe); margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li { margin: 6px 0; }
.legal a { color: var(--bordo); font-weight: 600; }
.notice {
  padding: 16px 20px; border-radius: 14px; margin-bottom: 30px;
  background: #F8EFD9; border: 1px solid var(--gold); color: #6b5426;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .store-buttons, .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 30px; }
  .grid.features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .units { grid-template-columns: 1fr; }
  .theme-card { flex-direction: column; text-align: center; padding: 30px 24px 40px; }
  .theme-text .icon { margin-inline: auto; }
}

@media (max-width: 720px) {
  .nav-inner { gap: 12px; }
  .nav .btn-small { margin-left: auto; }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 20px 18px;
    background: var(--bg); border-bottom: 1px solid var(--sand);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 1.05rem; }
  .hero { padding: 50px 0 70px; }
  .grid.features { grid-template-columns: 1fr; }
  .theme-shots img { width: 130px; }
  .shot { flex-basis: 175px; }
  /* shorter page on phones */
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head p { font-size: 0.95rem; }
  .hero { padding: 32px 0 44px; }
  .lead { margin: 16px 0 24px; font-size: 1rem; }
  .hero-stats { gap: 6px; margin-top: 26px; justify-content: space-between; flex-wrap: nowrap; }
  .hero-stats li { flex: 1; }
  .hero-stats strong { font-size: 1.25rem; }
  .hero-stats span { font-size: 0.72rem; line-height: 1.2; display: block; }
  .hero-visual { margin-top: 8px; }
  .store-buttons { gap: 8px; flex-wrap: nowrap; }
  .store-btn { min-width: 0; flex: 1; padding: 9px 10px; gap: 8px; border-radius: 12px; }
  .store-btn svg { width: 22px; height: 22px; }
  .store-btn span { font-size: 0.95rem; }
  .icons { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .icons li { padding: 10px 4px; border-radius: 12px; gap: 3px; }
  .icons span { font-size: 1.3rem; }
  .icons b { font-size: 0.78rem; }
  .icons small { display: none; }
  .pill { font-size: 0.8rem; padding: 7px 11px; }
  h2 { font-size: 1.6rem; margin: 8px 0 10px; }
  .phone { width: 250px; border-radius: 44px; }
  .phone-screen, .phone-glare { border-radius: 35px; }
  .theme-card { padding: 22px 16px 30px; gap: 16px; }
  .theme-text .icon { display: none; }
  .theme-text h3 { font-size: 1.15rem; }
  .theme-text p { font-size: 0.88rem; }
  .theme-shots img { width: 108px; }
  .pill-info { margin-top: 14px; padding: 12px 14px; }
  .pill-info p { font-size: 0.9rem; }
  .mini-steps { padding: 12px 8px; }
  .price-box .compare th, .price-box .compare td { padding: 8px 12px; font-size: 0.9rem; }
  .price-box .price-card { padding: 20px 16px; }
  .price { font-size: 2.6rem; }
  .gallery { padding-bottom: 18px; }
  .faq { gap: 8px; }
  .faq summary { padding: 15px 0; font-size: 0.98rem; }
  .cta { padding: 44px 20px; }
  .fc-1 { left: 0; top: 36%; }
  .fc-2 { right: 0; }
  .float-card { font-size: 0.75rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .gallery:not(.in-view) .shot { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
