/* ============================================================
   Fridgook — strona wizytówka + dokumenty prawne
   Ten sam neo-brutalizm co aplikacja: tokeny, ramki 3px, twarde cienie, Bricolage + Space Grotesk.
   Mobile-first. Animacje wyłączają się przy „ogranicz ruch”.
   ============================================================ */
:root {
  --ink: #0B0B0B; --bg: #FFF4D6; --bg-dot: #F2DFA6; --surface: #FFFFFF; --surface-2: #FFFBEF; --muted: #45413A;
  --yellow: #FFD23F; --blue: #4D7CFE; --pink: #FF8FD8; --red: #FF5C39; --green: #2ED47A;
  --lilac: #C3B1FF; --mint: #B6F2D7; --sky: #9AD8FF;
  --hi: #0E8F4E; --hi-bg: #B6F2D7; --mid: #9A6200; --mid-bg: #FFE38A; --lo: #C9260B; --lo-bg: #FFC2B2;
  --bw: 3px; --sh: 4px 4px 0 var(--ink); --sh-sm: 2px 2px 0 var(--ink); --sh-lg: 6px 6px 0 var(--ink); --sh-xl: 10px 10px 0 var(--ink);
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --text: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .9, .25, 1);
  --wrap: 1120px;
  --pad: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F6F1E3; --bg: #141414; --bg-dot: #262626; --surface: #1F1F1F; --surface-2: #262626; --muted: #C2BBA8;
    --hi: #4BE39A; --hi-bg: #134D33; --mid: #FFC94A; --mid-bg: #4A3A0B; --lo: #FF8466; --lo-bg: #4D1A10;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #F6F1E3; --bg: #141414; --bg-dot: #262626; --surface: #1F1F1F; --surface-2: #262626; --muted: #C2BBA8;
  --hi: #4BE39A; --hi-bg: #134D33; --mid: #FFC94A; --mid-bg: #4A3A0B; --lo: #FF8466; --lo-bg: #4D1A10;
  color-scheme: dark;
}

/* płynne przejście strona → aplikacja (View Transitions między dokumentami; tam, gdzie przeglądarka obsługuje) */
@view-transition { navigation: auto; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0; color: var(--ink); background-color: var(--bg);
  background-image: radial-gradient(var(--bg-dot) 1.4px, transparent 1.6px); background-size: 18px 18px;
  font: 400 16px/1.55 var(--text); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--yellow); color: #0B0B0B; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--yellow); color: #0B0B0B;
  border: var(--bw) solid #0B0B0B; border-radius: var(--r); font-weight: 800; }
.skip:focus { top: 12px; }

/* ---------- przyciski (jak w aplikacji) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px;
  font: 800 .95rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; text-decoration: none; text-align: center;
  color: var(--ink); background: var(--surface); border: var(--bw) solid var(--ink); border-radius: var(--r);
  box-shadow: var(--sh); cursor: pointer; transition: transform .12s var(--ease), box-shadow .12s var(--ease), background .2s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--yellow); color: #0B0B0B; }
.btn-ink { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: 4px 4px 0 var(--yellow); }
.btn-ink:hover { box-shadow: 6px 6px 0 var(--yellow); }
.btn-xl { min-height: 56px; padding: 14px 22px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn .arrow { display: inline-block; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .sticker { border-color: #0B0B0B; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; background: var(--surface); color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--sh-sm); cursor: pointer; transition: transform .12s; }
.icon-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- górny pasek: logo + „Przejdź do aplikacji” w prawym górnym rogu ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) var(--pad) 10px; background: var(--bg);
  border-bottom: var(--bw) solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-bottom-color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.3rem var(--display); letter-spacing: -.01em; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 auto; transition: transform .3s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.nav-cta { min-height: 44px; padding: 8px 14px; font-size: .86rem; }
.cta-long { display: none; }
@media (min-width: 560px) { .cta-long { display: inline; } .cta-short { display: none; } }

/* ---------- układ ---------- */
main { display: block; }
.sec { max-width: var(--wrap); margin: 0 auto; padding: 64px var(--pad) 8px; }
.kicker { font: 800 .8rem var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.big { font: 800 clamp(2.1rem, 9vw, 4rem)/.95 var(--display); letter-spacing: -.025em; text-transform: uppercase; margin-bottom: 24px; }
.sec-lede { font-size: 1.05rem; max-width: 60ch; margin: -8px 0 24px; color: var(--muted); }
.sec-lede b { color: var(--ink); }
.card { background: var(--card-bg, var(--surface)); border: var(--bw) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh-lg); }

/* ---------- naklejki ---------- */
.sticker {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; color: #0B0B0B;
  font: 800 .82rem var(--display); text-transform: uppercase; letter-spacing: .04em;
  border: var(--bw) solid #0B0B0B; border-radius: var(--r-pill); box-shadow: var(--sh-sm);
}
.sticker small { font: 700 .7rem var(--text); text-transform: none; letter-spacing: 0; color: #2a2a2a; }
.sticker-pink { background: var(--pink); } .sticker-mint { background: var(--mint); }
.sticker-yellow { background: var(--yellow); } .sticker-lilac { background: var(--lilac); }
.tilt-l { transform: rotate(-3deg); } .tilt-r { transform: rotate(3deg); }

/* ============ HERO ============ */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 22px var(--pad) 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; }
.mega { font: 800 clamp(2.4rem, 12vw, 5.6rem)/.92 var(--display); letter-spacing: -.035em; text-transform: uppercase; margin: 16px 0 18px; }
.mega .line { display: block; animation: rise .7s var(--ease) both; }
.mega .line:nth-child(2) { animation-delay: .07s; } .mega .line:nth-child(3) { animation-delay: .14s; } .mega .line:nth-child(4) { animation-delay: .21s; }
.mega .hl { width: fit-content; max-width: 100%; padding: .02em .14em 0; margin: .06em 0 0 -.06em; background: var(--yellow); color: #0B0B0B;
  border: var(--bw) solid #0B0B0B; box-shadow: var(--sh); transform: rotate(-1.5deg); animation-name: rise-tilt; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes rise-tilt { from { opacity: 0; transform: translateY(24px) rotate(-1.5deg); } to { transform: rotate(-1.5deg); } }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 46ch; animation: rise .7s .28s var(--ease) both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 18px; animation: rise .7s .34s var(--ease) both; }
.hero-cta .btn { flex: 1 1 200px; }
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-weight: 700; font-size: .92rem; animation: rise .7s .4s var(--ease) both; }
.trust li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px;
  background: var(--green); color: #0B0B0B; border: 2px solid var(--ink); border-radius: 6px; font-size: .78rem; font-weight: 800; }

/* --- animowany telefon --- */
.hero-art { position: relative; justify-self: center; width: min(340px, 88vw); padding: 18px 10px 28px; animation: rise .8s .2s var(--ease) both; }
.phone {
  position: relative; background: var(--surface); border: var(--bw) solid var(--ink); border-radius: 34px; box-shadow: var(--sh-xl);
  padding: 14px; display: grid; gap: 12px; transform: rotate(2deg); transition: transform .4s var(--ease);
}
.hero-art:hover .phone { transform: rotate(0deg) translateY(-4px); }
.phone-top { display: flex; align-items: center; gap: 8px; font: 800 .95rem var(--display); }
.dot-logo { width: 22px; height: 22px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 2px 2px 0 var(--ink); }
.pill { margin-left: auto; padding: 2px 9px; background: var(--yellow); color: #0B0B0B; border: 2px solid var(--ink); border-radius: var(--r-pill); font-size: .75rem; }
.fridge { position: relative; overflow: hidden; height: 190px; padding: 10px; display: grid; grid-template-rows: repeat(3, 1fr);
  background: #EAF2F5; border: var(--bw) solid var(--ink); border-radius: var(--r-lg); }
:root[data-theme="dark"] .fridge { background: #263238; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fridge { background: #263238; } }
.shelf { display: flex; align-items: center; gap: 12px; padding: 0 6px; border-bottom: 3px solid rgba(11, 11, 11, .18); }
.shelf:last-of-type { border-bottom: 0; }
.shelf i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid #0B0B0B; animation: bob 3.2s ease-in-out infinite; }
.shelf i:nth-child(2n) { animation-delay: -.8s; width: 32px; border-radius: 10px; } .shelf i:nth-child(3n) { animation-delay: -1.6s; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.sweep { position: absolute; left: 0; right: 0; top: 0; height: 26px; background: linear-gradient(180deg, transparent, rgba(255, 210, 63, .65), transparent);
  border-bottom: 3px solid var(--yellow); animation: sweep 7s var(--ease) infinite; }
@keyframes sweep { 0% { transform: translateY(-30px); } 30%, 100% { transform: translateY(200px); } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 66px; align-content: flex-start; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; font: 700 .78rem var(--text);
  background: var(--surface-2); border: 2px solid var(--ink); border-radius: var(--r-pill); box-shadow: 2px 2px 0 var(--ink);
  opacity: 0; animation: chip-in 7s var(--ease) infinite; }
.chip em { font-style: normal; font-weight: 800; padding: 0 5px; background: var(--hi-bg); color: var(--hi); border-radius: 6px; }
.c2 { animation-delay: .25s; } .c3 { animation-delay: .5s; } .c4 { animation-delay: .75s; }
@keyframes chip-in { 0%, 28% { opacity: 0; transform: translateY(8px) scale(.9); } 34%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.recipe-pop { display: flex; gap: 10px; align-items: center; padding: 10px; background: var(--mint); color: #0B0B0B;
  border: var(--bw) solid #0B0B0B; border-radius: var(--r-lg); box-shadow: var(--sh); opacity: 0; animation: recipe-in 7s var(--ease) infinite; }
.rp-img { width: 46px; height: 46px; flex: 0 0 auto; border: 2px solid #0B0B0B; border-radius: 10px;
  background: radial-gradient(circle at 35% 40%, #FFD23F 0 18%, transparent 19%), radial-gradient(circle at 65% 60%, #FFD23F 0 16%, transparent 17%), #FF5C39; }
.rp-txt { display: grid; line-height: 1.2; } .rp-txt b { font: 800 .95rem var(--display); } .rp-txt small { font-size: .74rem; color: #2a2a2a; }
@keyframes recipe-in { 0%, 50% { opacity: 0; transform: translateY(14px) rotate(-2deg); } 58%, 92% { opacity: 1; transform: rotate(-1deg); } 100% { opacity: 0; } }
.float { position: absolute; z-index: 2; animation: float 5s ease-in-out infinite; }
.f1 { top: 74px; left: -14px; transform: rotate(-6deg); }
.f2 { top: 0; right: -8px; transform: rotate(5deg); animation-delay: -1.5s; }
.f3 { bottom: 2px; left: 18px; transform: rotate(3deg); animation-delay: -3s; }
@keyframes float { 50% { translate: 0 -8px; } }

/* ---------- pasek przewijanych produktów ---------- */
.marquee { overflow: hidden; margin: 18px -8px 0; padding: 12px 0; background: var(--yellow); color: #0B0B0B;
  border-block: var(--bw) solid #0B0B0B; transform: rotate(-1.6deg); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 32s linear infinite;
  font: 800 1.4rem var(--display); text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.marquee-track b { color: var(--red); -webkit-text-stroke: 1.5px #0B0B0B; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ JAK TO DZIAŁA ============ */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: s; }
.step { position: relative; padding: 22px 18px 20px; color: #0B0B0B; border-color: #0B0B0B; }
.step h3 { font: 800 1.45rem/1.05 var(--display); text-transform: uppercase; margin: 8px 0 8px; }
.step p { color: #2a2a2a; }
.step-no { display: grid; place-items: center; width: 52px; height: 52px; font: 800 1.6rem var(--display);
  background: #0B0B0B; color: var(--bg); border-radius: 14px; transform: rotate(-6deg); box-shadow: 3px 3px 0 var(--surface); }
:root[data-theme="dark"] .step-no { color: #FFF4D6; }

/* ============ FUNKCJE (bento) ============ */
.bento { display: grid; gap: 18px; grid-template-columns: 1fr; }
.tile { padding: 20px 18px; display: grid; gap: 8px; align-content: start; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.tile:hover { transform: translate(-2px, -2px) rotate(-.4deg); box-shadow: 8px 8px 0 var(--ink); }
.tile h3 { font: 800 1.3rem/1.05 var(--display); text-transform: uppercase; }
.tile[style*="--lilac"], .tile[style*="--pink"], .tile[style*="--sky"], .tile[style*="--green"] { color: #0B0B0B; border-color: #0B0B0B; }
.tile[style*="--lilac"] p, .tile[style*="--pink"] p, .tile[style*="--sky"] p, .tile[style*="--green"] p { color: #2a2a2a; }
.tile p { color: var(--muted); }
.tile-ico { display: grid; place-items: center; width: 48px; height: 48px; background: var(--c); color: #0B0B0B;
  border: var(--bw) solid #0B0B0B; border-radius: 12px; box-shadow: 3px 3px 0 #0B0B0B; font: 800 1.35rem var(--display); }
.tile-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mini-items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.mi { padding: 4px 10px; font-weight: 700; font-size: .84rem; border: 2px solid var(--ink); border-radius: var(--r-pill); }
.mi.lo { background: var(--lo-bg); color: var(--lo); } .mi.mid { background: var(--mid-bg); color: var(--mid); } .mi.ok { background: var(--hi-bg); color: var(--hi); }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .t-wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps .step:nth-child(2) { transform: translateY(18px); }
}

/* ============ CENNIK ============ */
.plans { display: grid; gap: 22px; }
.plan { --card-bg: var(--surface); position: relative; padding: 22px 18px; display: grid; gap: 12px; align-content: start; }
.plan h3 { font: 800 1.35rem var(--display); text-transform: uppercase; }
.price b { font: 800 2.3rem/1 var(--display); letter-spacing: -.02em; }
.price small { font-weight: 700; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: "◆"; position: absolute; left: 2px; top: 0; color: var(--blue); font-size: .9rem; }
.plan-main { --card-bg: var(--yellow); color: #0B0B0B; border-color: #0B0B0B; box-shadow: var(--sh-xl); }
.plan-main .price small { color: #2a2a2a; }
.plan-main li::before { color: #0B0B0B; }
.badge { position: absolute; top: -16px; right: 16px; padding: 4px 12px; background: var(--pink); color: #0B0B0B;
  border: var(--bw) solid #0B0B0B; border-radius: var(--r-pill); font: 800 .78rem var(--display); text-transform: uppercase; transform: rotate(4deg); box-shadow: var(--sh-sm); }
.packs li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 10px 12px 10px 34px; background: var(--surface-2);
  border: 2px solid var(--ink); border-radius: var(--r); }
.packs li::before { left: 12px; top: 10px; }
.pk-price { margin-left: auto; font-weight: 800; }
.mini-badge { padding: 0 7px; background: var(--mint); color: #0B0B0B; border: 2px solid #0B0B0B; border-radius: var(--r-pill); font-size: .74rem; font-weight: 800; }
.mini-badge.best { background: var(--pink); }
.plan-note { font-size: .9rem; color: var(--muted); }
.fine { margin-top: 18px; font-size: .86rem; color: var(--muted); max-width: 70ch; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: start; } .plan-main { transform: translateY(-10px); } }

/* ============ FAQ ============ */
.faq { display: grid; gap: 14px; max-width: 820px; }
.qa { --card-bg: var(--surface); box-shadow: var(--sh); overflow: hidden; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 56px; padding: 14px 16px; font: 800 1.05rem/1.2 var(--display); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; font-size: 1.3rem;
  background: var(--yellow); color: #0B0B0B; border: 2px solid #0B0B0B; border-radius: 8px; transition: transform .25s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa[open] summary { border-bottom: 2px dashed var(--ink); }
.qa p { padding: 14px 16px 18px; color: var(--muted); }
.qa[open] p { animation: rise .35s var(--ease) both; }

/* ============ ANDROID ============ */
.droid { display: grid; gap: 26px; }
.droid-lede { margin-top: -8px; }
.droid-perks { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.droid-perks .sticker { font-size: .78rem; }
.droid-cta { display: grid; gap: 10px; justify-items: start; }
.droid-dl { position: relative; gap: 12px; animation: dl-nudge 3.6s var(--ease) 1.2s infinite; }
.droid-dl .dl-ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.droid-dl:hover .dl-ico { animation: dl-drop .6s var(--ease); }
@keyframes dl-nudge { 0%, 86%, 100% { transform: none; } 90% { transform: translate(-1px, -3px) rotate(-1.5deg); } 94% { transform: translate(1px, -1px) rotate(1deg); } }
@keyframes dl-drop { 40% { transform: translateY(4px); } }
.droid-meta { font-size: .88rem; font-weight: 700; color: var(--muted); }
.droid-ios { --card-bg: var(--mint); margin-top: 18px; padding: 14px 16px; color: #0B0B0B; border-color: #0B0B0B; box-shadow: var(--sh); max-width: 52ch; }
.droid-ios a { font-weight: 800; white-space: nowrap; }
.droid-side { display: grid; gap: 18px; align-content: start; }
.droid-steps { --card-bg: var(--surface); list-style: none; margin: 0; padding: 6px 18px; }
.droid-steps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
.droid-steps li + li { border-top: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent); }
.droid-steps h3 { font: 800 1.12rem/1.1 var(--display); text-transform: uppercase; margin: 4px 0 6px; }
.droid-steps p { color: var(--muted); font-size: .95rem; }
.ds-no { display: grid; place-items: center; width: 44px; height: 44px; font: 800 1.3rem var(--display); background: var(--yellow); color: #0B0B0B;
  border: var(--bw) solid #0B0B0B; border-radius: var(--r); box-shadow: var(--sh-sm); transform: rotate(-4deg); }
.droid-steps li:nth-child(2) .ds-no { background: var(--sky); transform: rotate(3deg); }
.droid-steps li:nth-child(3) .ds-no { background: var(--mint); }
.droid-qr { --card-bg: var(--yellow); display: flex; align-items: center; gap: 16px; padding: 16px; color: #0B0B0B; border-color: #0B0B0B; }
.droid-qr img { flex: 0 0 auto; width: 112px; height: 112px; background: #fff; border: var(--bw) solid #0B0B0B; border-radius: var(--r); box-shadow: var(--sh-sm); }
.droid-qr p { font-size: .95rem; color: #2a2a2a; } .droid-qr b { font: 800 1.05rem var(--display); text-transform: uppercase; color: #0B0B0B; }
.droid-fine { margin-top: 22px; }
@media (min-width: 900px) {
  .droid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .droid-qr img { width: 132px; height: 132px; }
}

/* ============ CTA ============ */
.cta-band { max-width: var(--wrap); margin: 70px auto 10px; padding: 34px var(--pad); display: grid; gap: 14px; justify-items: start;
  border-block: var(--bw) solid var(--ink);
  background: repeating-linear-gradient(-45deg, transparent 0 14px, color-mix(in srgb, var(--yellow) 22%, transparent) 14px 28px); }
.cta-band .big { margin: 0; }
.cta-band p { font-size: 1.08rem; color: var(--muted); }
@media (min-width: 720px) { .cta-band { border: var(--bw) solid var(--ink); border-radius: var(--r-xl); box-shadow: var(--sh-xl); padding: 46px 40px; } }

/* ============ STOPKA ============ */
.foot { max-width: var(--wrap); margin: 60px auto 0; padding: 34px var(--pad) calc(28px + env(safe-area-inset-bottom, 0px)); border-top: var(--bw) solid var(--ink); }
.foot-grid { display: grid; gap: 26px; }
.foot-brand p { margin-top: 10px; color: var(--muted); max-width: 34ch; }
.foot-col { display: grid; gap: 6px; align-content: start; }
.foot-col h2 { font: 800 .8rem var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.foot-col a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 700; text-decoration: none; width: fit-content; }
.foot-col a:hover { text-decoration: underline; }
.foot-co { color: var(--muted); font-size: .92rem; }
.foot-col p { font-size: .92rem; }
.lang-pick { display: grid; gap: 4px; margin-top: 8px; font-weight: 700; font-size: .85rem; }
.lang-pick select { min-height: 44px; padding: 6px 10px; background: var(--surface); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--sh-sm); font: 700 .95rem var(--text); }
.foot-copy { margin-top: 26px; font-size: .84rem; color: var(--muted); }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* niewypełnione dane firmy — dobrze widoczne, żeby nic nie umknęło */
mark.todo { background: var(--red); color: #fff; padding: 0 4px; border-radius: 4px; font-weight: 700; }

/* ---------- pojawianie się przy przewijaniu ---------- */
.js .reveal { opacity: 0; transform: translateY(26px) rotate(-.6deg); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .steps .step.reveal.in:nth-child(2) { transform: none; }
@media (min-width: 720px) { .js .steps .step.reveal.in:nth-child(2) { transform: translateY(18px); } }

/* ============ HERO na szerokich ekranach ============ */
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; padding-top: 48px; padding-bottom: 60px; }
  .hero-art { width: 360px; }
  .nav { padding-inline: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); }
  .sec { padding-top: 96px; }
}

/* ============ dokumenty prawne ============ */
.doc { max-width: 820px; margin: 0 auto; padding: 28px var(--pad) 10px; }
.doc-head { margin-bottom: 26px; }
.doc-head .big { margin: 10px 0 12px; font-size: clamp(2rem, 8vw, 3.2rem); }
.doc-meta { color: var(--muted); font-size: .92rem; }
.toc { --card-bg: var(--surface); padding: 16px 18px; margin-bottom: 30px; box-shadow: var(--sh); }
.toc h2 { font: 800 .8rem var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.toc a { font-weight: 700; text-decoration: none; } .toc a:hover { text-decoration: underline; }
.prose h2 { font: 800 1.35rem/1.15 var(--display); text-transform: uppercase; margin: 36px 0 12px; padding-top: 6px; display: flex; gap: 10px; align-items: baseline; }
.prose h2 .num { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; background: var(--yellow); color: #0B0B0B;
  border: var(--bw) solid #0B0B0B; border-radius: 10px; box-shadow: var(--sh-sm); font-size: 1rem; transform: rotate(-4deg); flex: 0 0 auto; }
.prose h3 { font: 800 1.05rem var(--display); margin: 20px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose p { margin: 0 0 12px; }
.prose ol, .prose ul { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 6px; }
.prose a { font-weight: 700; }
.box { --card-bg: var(--surface-2); padding: 14px 16px; margin: 14px 0; box-shadow: var(--sh); }
.box.warn { --card-bg: var(--mid-bg); }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.tbl-wrap { overflow-x: auto; margin: 10px 0 16px; border: var(--bw) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh); background: var(--surface); }
.tbl-wrap table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.tbl-wrap code { white-space: nowrap; font-size: .8rem; }
.tbl-wrap th, .tbl-wrap td { padding: 9px 10px; text-align: left; vertical-align: top; border-bottom: 2px solid color-mix(in srgb, var(--ink) 20%, transparent); }
.tbl-wrap th { background: var(--yellow); color: #0B0B0B; font: 800 .82rem var(--display); text-transform: uppercase; letter-spacing: .03em; }
.tbl-wrap tr:last-child td { border-bottom: 0; }
.doc-back { margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- ogranicz ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .chip, .recipe-pop { opacity: 1; }
  .sweep { display: none; }
  @view-transition { navigation: none; }
}

/* ---------- menu języka (górny pasek) ---------- */
.lang-menu { position: relative; }
.lang-btn { width: auto; padding: 0 10px; gap: 6px; display: inline-flex; align-items: center; }
.lang-code { font: 800 .82rem var(--display); letter-spacing: .04em; }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 170px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: var(--bw) solid var(--ink); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  transform-origin: top right; animation: menu-in .18s var(--ease) both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
.lang-list button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 10px;
  background: none; border: 0; border-radius: var(--r-sm); color: var(--ink); font: 700 .95rem var(--text); cursor: pointer; text-align: left; }
.lang-list button:hover, .lang-list button:focus-visible { background: var(--surface-2); outline-offset: -3px; }
.lang-list button[aria-checked="true"] { background: var(--yellow); color: #0B0B0B; }
.flag { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 4px; font: 800 .72rem var(--display);
  background: var(--surface); color: var(--ink); border: 2px solid var(--ink); border-radius: 6px; }
.lang-list button[aria-checked="true"] .flag { background: #fff; color: #0B0B0B; border-color: #0B0B0B; }

/* ---------- tryb nocny: pływający przycisk (lewy dolny róg) ---------- */
.theme-fab { position: fixed; z-index: 55; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 52px; height: 52px; display: grid; place-items: center; cursor: pointer;
  background: var(--ink); color: var(--bg); border: var(--bw) solid var(--ink); border-radius: 50%;
  box-shadow: 4px 4px 0 var(--yellow); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.theme-fab:hover { transform: translate(-1px, -1px) rotate(-12deg); box-shadow: 5px 5px 0 var(--yellow); }
.theme-fab:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--yellow); }
.theme-fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  grid-area: 1 / 1; transition: transform .35s var(--ease), opacity .25s; }
.theme-fab .i-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme-fab .i-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] .theme-fab .i-sun { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-fab .i-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
  :root:not([data-theme="light"]) .theme-fab .i-sun { opacity: 1; transform: none; }
}

/* ---------- stopka: język + tryb nocny ---------- */
.foot-settings { display: grid; gap: 12px; margin-top: 10px; }
.foot-settings .lang-pick { margin-top: 0; }
.dark-pick { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-weight: 700; font-size: .85rem; }
.switch { -webkit-appearance: none; appearance: none; position: relative; width: 56px; height: 32px; flex: 0 0 auto; margin: 0; cursor: pointer;
  background: var(--surface-2); border: var(--bw) solid var(--ink); border-radius: var(--r-pill); box-shadow: var(--sh-sm); transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: var(--ink); border-radius: 50%;
  transition: transform .2s var(--ease); }
.switch:checked { background: var(--green); }
.switch:checked::after { transform: translateX(24px); background: #0B0B0B; }
.foot { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }   /* miejsce na pływający przycisk */

/* długie słowa (niemiecki, ukraiński — cyrylica w czcionce systemowej) */
.mega, .big { overflow-wrap: break-word; hyphens: auto; }
:lang(uk) .mega, :lang(de) .mega { font-size: clamp(2.1rem, 10.2vw, 5.2rem); }
:lang(uk) .big { font-size: clamp(1.9rem, 8vw, 3.6rem); }
.nav-cta { white-space: nowrap; }
.trust li { display: flex; align-items: flex-start; gap: 8px; }
.trust li::before { margin-right: 0; flex: 0 0 auto; }
@media (max-width: 400px) {
  .nav { gap: 6px; }
  .nav-tools { gap: 8px; }
  .brand { font-size: 1.15rem; gap: 8px; }
  .brand-mark { width: 36px; height: 36px; }
  .nav-cta { padding: 8px 10px; font-size: .78rem; }
  .lang-btn { padding: 0 8px; }
}
