:root {
  --ink: #000;
  --paper: #fff;
  --muted: #595959;
  --line: #000;
  --hair: #c9c9c9;
  --error: #b3160b;
  --ok: #1a6b37;

  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--font); }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Ekran powitalny: logo na całym ekranie przez 3 s, potem znika w 0,6 s. Działa bez JavaScriptu. */
/* Tło: ciemny, szczotkowany grafit (rozciągnięty w poziomie szum SVG na ciemnej, metalicznej poświacie). */
.splash {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.9' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.85 0 0 0 0 0.85 0 0 0 0.14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 80% 70% at 50% 45%, #55585e 0%, #3a3c41 40%, #26282b 75%, #1a1b1e 100%);
  pointer-events: none;
  animation: splash-out .6s var(--ease) 3s forwards;
}
/* Delikatny ruch: pas światła powoli przesuwa się po metalu, jak refleks na blasze. */
.splash::before {
  content: ""; position: absolute; inset: -20%;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .13) 50%, transparent 62%);
  transform: translateX(-60%);
  animation: splash-sheen 3.6s ease-in-out forwards;
}
@keyframes splash-sheen { to { transform: translateX(60%); } }
/* Logo z cienką jasną obwódką i głębokim cieniem, żeby czarne koło nie zlewało się z grafitem. */
.splash img {
  position: relative; z-index: 1; width: min(60vmin, 420px); height: auto; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .28), 0 0 40px rgba(255, 255, 255, .08), 0 22px 50px rgba(0, 0, 0, .6);
  animation: splash-in .7s var(--ease) both;
}
/* Gruby, ciemniejszy metalowy pasek u góry i u dołu. Wjeżdżają z przeciwnych stron,
   a ich ukośne prążki dalej suną w przeciwnych kierunkach (górny w prawo, dolny w lewo). */
.splash__bars {
  position: absolute; left: 0; right: 0; height: clamp(40px, 7vh, 64px);
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .07) 0 3px, transparent 3px 18px),
    linear-gradient(to bottom, #2b2d31 0%, #17181a 45%, #0f1012 55%, #222428 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(255, 255, 255, .08), 0 6px 18px rgba(0, 0, 0, .45);
}
.splash__bars--top {
  top: clamp(24px, 6vh, 64px);
  animation: splash-bar-in-left .9s var(--ease) both, splash-drift-right 4s linear infinite;
}
.splash__bars--bottom {
  bottom: clamp(24px, 6vh, 64px);
  animation: splash-bar-in-right .9s var(--ease) both, splash-drift-left 4s linear infinite;
}
@keyframes splash-bar-in-left { from { transform: translateX(-100%); } }
@keyframes splash-bar-in-right { from { transform: translateX(100%); } }
@keyframes splash-drift-right { to { background-position: 180px 0, 0 0; } }
@keyframes splash-drift-left { to { background-position: -180px 0, 0 0; } }
@keyframes splash-in { from { opacity: 0; transform: scale(.92); } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }
.no-splash .splash { display: none; }
.splash-hold .splash { animation: none; }
.splash-hold .splash::before { animation: splash-sheen 3.6s ease-in-out infinite alternate; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.skip:focus { top: 8px; }

/* Nagłówek */
.top {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: 38.5% 1fr auto; align-items: center;
  height: 48px; background: var(--paper); border-bottom: 1px solid var(--line);
  font-stretch: 75%; font-weight: 700; font-size: 15px; letter-spacing: .02em; text-transform: uppercase;
}
.top__nav { display: flex; gap: 20px; padding-left: var(--gutter); height: 100%; align-items: center; border-right: 1px solid var(--line); }
.top a { text-decoration: none; }
.top__logo { display: inline-flex; align-items: center; gap: 10px; }
.top__logo img { display: block; width: 34px; height: 34px; }
.top a:hover, .cartbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.top__note { padding-left: var(--gutter); }
.top__right { display: flex; gap: 20px; padding-right: var(--gutter); align-items: center; }
.cartbtn { font: inherit; letter-spacing: inherit; text-transform: inherit; min-height: 44px; font-variant-numeric: tabular-nums; }

/* Sekcja główna */
.hero {
  display: grid; grid-template-columns: 38.5% 1fr; grid-template-rows: 1fr auto;
  min-height: calc(100dvh - 48px); border-bottom: 1px solid var(--line);
}
.hero__info { border-right: 1px solid var(--line); padding: 36px var(--gutter) 24px; }
.hero__head { display: grid; grid-template-columns: minmax(96px, 26%) 1fr; gap: 16px; }
.wordmark, .hero__name {
  font-stretch: 75%; font-weight: 800; font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1; letter-spacing: -.01em; text-transform: uppercase;
}
.hero__name { overflow-wrap: anywhere; }
.wordmark img { display: block; width: clamp(88px, 8.5vw, 128px); height: auto; }
/* Drugie logo po prawej stronie nazwy pokazujemy tylko na telefonie. */
.wordmark--end { display: none; }
.hero__body { margin: 24px 0 0 calc(min(26%, 9999px) + 16px); max-width: 340px; }
.hero__text { font-size: 18px; line-height: 1.4; min-height: 4.2em; }
.draw { margin-top: 12px; font-size: 14px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; font-size: 14px; }
.facts div:last-child { grid-column: 1 / -1; }
.facts dt, .chips__label { font-size: 13px; color: var(--muted); }
.facts dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.chips__label { margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.chips li { border: 1px solid var(--hair); border-radius: 4px; padding: 1px 6px; font-size: 13px; }

/* Tło zależy od strony: dobre w niebie, złe w piekle */
[data-side="good"] { --t-bg: var(--paper); --t-accent: var(--ink); --side-shadow: rgba(90, 50, 40, .35); }
[data-side="evil"] { --t-bg: #120304; --t-accent: #fff; --side-shadow: rgba(0, 0, 0, .65); }
.stage[data-side="good"], .tile__img[data-side="good"], .pick[data-side="good"] {
  background: #f2d9cb url('../img/niebo.jpg') center / cover no-repeat;
}
.stage[data-side="evil"], .tile__img[data-side="evil"], .pick[data-side="evil"] {
  background: #120304 url('../img/pieklo.jpg') center / cover no-repeat;
}
.stage img, .tile__img img { filter: drop-shadow(0 8px 10px var(--side-shadow)); }

.stage { position: relative; overflow: hidden; isolation: isolate; container-type: size; }
.stage__img {
  position: absolute; inset: 0; margin: auto; width: min(100cqw, 90cqh); height: auto; max-width: none;
  transition: opacity .28s var(--ease);
}
.stage__img.is-out { opacity: 0; }
.stage__arrow {
  position: absolute; bottom: 16px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--t-bg); color: var(--t-accent); border: 1px solid var(--t-accent); border-radius: 4px;
}
.stage__arrow:hover { background: var(--t-accent); color: var(--t-bg); }
.stage__arrow--prev { left: 12px; }
.stage__arrow--next { left: 64px; }
.stage__arrow svg, .drawer__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; }

/* Dolny pasek */
.bar {
  grid-column: 1 / -1; position: sticky; bottom: 0; z-index: 30;
  /* Tytuł w lewej kolumnie, miniatury zaczynają się tam, gdzie zdjęcie figurki (jak strzałki pod nim). */
  display: grid; grid-template-columns: calc((100% + 2 * var(--gutter)) * .385 - 28px) 1fr auto; align-items: center; gap: 28px;
  padding: 14px var(--gutter); background: var(--paper); border-top: 1px solid var(--line);
}
.bar__title {
  font-stretch: 75%; font-weight: 800; font-size: 16px; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap;
}
.bar__picker { display: flex; gap: 6px; justify-content: flex-start; }
.pick {
  width: 44px; height: 44px; padding: 2px; border: 1px solid var(--hair);
  transition: border-color .15s;
}
.pick img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.pick:hover { border-color: var(--ink); }
.pick[aria-pressed="true"] { border: 2px solid var(--ink); padding: 1px; }
.bar__buy { display: flex; gap: 8px; }

.qty { display: inline-grid; grid-template-columns: 44px 36px 44px; align-items: center; height: 44px; border: 1px solid var(--line); border-radius: 4px; }
.qty button { height: 100%; font-size: 18px; }
.qty button:hover { background: #eee; }
.qty button:disabled { opacity: .38; cursor: not-allowed; }
.qty output { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; }

.cta {
  display: inline-flex; justify-content: space-between; align-items: center; gap: 32px;
  min-height: 44px; min-width: 240px; padding: 0 14px; background: var(--ink); color: var(--paper); border-radius: 4px;
  font-stretch: 75%; font-weight: 800; font-size: 16px; letter-spacing: .02em; text-transform: uppercase;
  transition: opacity .15s, transform .1s;
}
.cta:hover { opacity: .82; }
.cta:active { transform: scale(.98); }
.cta:disabled { opacity: .45; cursor: not-allowed; }
.cta span:last-child { font-variant-numeric: tabular-nums; }
.cta--full { width: 100%; justify-content: center; min-height: 52px; margin-top: 12px; }

.btn {
  min-height: 44px; padding: 0 16px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 4px;
  font-stretch: 75%; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  transition: opacity .15s;
}
.btn:hover { opacity: .82; }
.section--dark .btn { background: var(--paper); color: var(--ink); }

/* Sekcje */
.section { border-bottom: 1px solid var(--line); }
/* Pierwsza kolumna kończy się na 38,5% szerokości sekcji (tam, gdzie pionowa linia w górnej części strony),
   a tekst w drugiej kolumnie zaczyna się gutter dalej, tak samo jak w sekcjach Dostawa i Kontakt. */
:root { --col-split: calc((100% + 2 * var(--gutter)) * .385 - var(--gutter)); }
.section__head {
  display: grid; grid-template-columns: var(--col-split) 1fr; align-items: start;
  padding: 44px var(--gutter) 28px;
}
.section__head h2 {
  font-stretch: 75%; font-weight: 800; font-size: clamp(32px, 4vw, 56px); line-height: 1; text-transform: uppercase; letter-spacing: -.01em;
}
/* Górna krawędź liter tekstu na wysokości górnej krawędzi liter nagłówka (nagłówek ma ok. 0,14 em pustego miejsca nad literami, tekst ok. 6 px). */
.section__head p { max-width: 75ch; padding-left: var(--gutter); margin-top: calc(.14 * clamp(32px, 4vw, 56px) - 6px); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.grid li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid li:nth-child(3n) { border-right: 0; }
.grid li:nth-last-child(-n+3) { border-bottom: 0; }
.tile { display: block; width: 100%; text-align: left; }
.tile__img { aspect-ratio: 1; overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: transform .35s var(--ease); }
.tile:hover .tile__img img { transform: scale(1.04); }
.tile__meta { display: flex; justify-content: space-between; gap: 12px; padding: 12px var(--gutter); }
.tile__name { font-stretch: 75%; font-weight: 800; font-size: 20px; text-transform: uppercase; }

/* Ciemne sekcje w kolorach logo: czarne tło, biały tekst. Szarości i linie jaśniejsze, żeby były widoczne na czerni. */
.section--dark {
  background: var(--ink); color: var(--paper);
  --muted: #b3b3b3; --line: #4d4d4d; --hair: #333; --error: #ff7a6e; --ok: #6fdc96;
  color-scheme: dark;
}
.section--dark input[type="email"], .section--dark input[type="tel"], .section--dark input:not([type]) { color: var(--ink); color-scheme: light; }
.section--dark .check input { accent-color: #fff; }
.about { display: grid; grid-template-columns: var(--col-split) 1fr; padding: 0 var(--gutter) 56px; row-gap: 40px; }
.about__lead { font-stretch: 75%; font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; padding-right: 32px; }
.about__text { max-width: 60ch; padding-left: var(--gutter); }
.about__text p + p { margin-top: 12px; }
/* Górna część O marce (nagłówek i opis) na zdjęciu wnętrza drukarki, przyciemnionym dla czytelności tekstu. */
.about__hero {
  background: linear-gradient(90deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .55)), #000 url('../img/wnetrze.jpg') center / cover no-repeat;
}
.about--intro { padding-bottom: 44px; }.steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid #555; padding-top: 20px; }
.about:not(.about--intro) { padding-top: 0; }
.steps span { font-size: 13px; color: #bdbdbd; font-variant-numeric: tabular-nums; }
.steps h3 { font-stretch: 75%; font-weight: 800; font-size: 20px; text-transform: uppercase; margin-top: 4px; }
.steps p { font-size: 15px; color: #dcdcdc; }
.steps .step--model, .steps .step--finish, .steps .step--draw {
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; padding: 16px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .85)), #3d3d3d url('../img/rycerz-model.jpg') center 22% / cover no-repeat;
}
.steps .step--finish { background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .85)), url('../img/obrobka.jpg'); background-position: center, 55% 40%; }
.steps .step--draw { background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, .9) 70%), url('../img/losowanie.jpg'); background-position: center, center; }
.step--model span, .step--finish span, .step--draw span { color: #e6e6e6; }
.steps .step--video {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; padding: 16px; background: #3d3d3d;
}
.step--video video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.step--video::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .85)); }
.step--video span { color: #e6e6e6; }

#reviews { padding: 0 var(--gutter) 44px; }
#reviews:empty { padding: 0 0 16px; }
.empty-reviews { margin-left: calc(38.5% - var(--gutter) + var(--gutter)); padding-left: var(--gutter); }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.reviews blockquote { margin: 0; font-size: 18px; line-height: 1.4; }
.reviews figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.reviews figure { margin: 0; }

.section--split { display: grid; grid-template-columns: 38.5% 1fr; }
.section--split .section__head { display: block; padding-bottom: 44px; }
.info { padding: 44px var(--gutter) 44px; display: grid; gap: 0; }
.info div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--hair); }
.info div:first-child { border-top: 0; padding-top: 0; }
.info dt { font-weight: 600; }
.info dd { max-width: 60ch; }

.contact { padding: 44px var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact__big { font-stretch: 75%; font-weight: 700; font-size: clamp(20px, 2vw, 26px); overflow-wrap: anywhere; }
.contact__big + .contact__big { margin-top: 4px; }
.contact__under { margin-top: 16px; }
.section__head .contact__under { padding-left: 0; }
.section--split .section__head .contact__big a { text-underline-offset: 3px; }
.contact a:not(.btn) { text-underline-offset: 3px; }
/* Podnagłówki w Kontakcie (Social media i newsletter): ten sam średni rozmiar, ta sama górna krawędź. */
.contact__title, .news h3 { font-stretch: 75%; font-weight: 800; font-size: 26px; line-height: 1; text-transform: uppercase; margin-bottom: 12px; }
.contact__title + .contact__under { margin-top: 0; }
.news label[for] { display: block; font-size: 14px; margin-bottom: 4px; }
.news__row { display: flex; gap: 8px; }
input[type="email"], input[type="tel"], input:not([type]) {
  width: 100%; min-height: 44px; padding: 8px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; font-size: 16px;
}
input[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }

.check { display: flex; gap: 8px; margin-top: 12px; font-size: 14px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: #000; }
.error { color: var(--error); font-size: 14px; min-height: 0; }
.error:empty, .ok:empty { display: none; }
.ok { color: var(--ok); font-size: 14px; margin-top: 8px; font-weight: 600; }
.help { font-size: 13px; color: var(--muted); }
.nowrap { white-space: nowrap; }

.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px var(--gutter); font-size: 14px;
}
.foot p { font-stretch: 75%; font-weight: 800; text-transform: uppercase; }
.foot nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }

/* Koszyk */
.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(480px, 100vw); max-width: 100vw;
  padding: 0; border: 0; border-left: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.drawer[open] { display: flex; flex-direction: column; animation: slide .26s var(--ease); }
.drawer::backdrop { background: rgba(0, 0, 0, .55); }
@keyframes slide { from { transform: translateX(32px); opacity: 0; } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; height: 56px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); flex: none; }
.drawer__head h2 { font-stretch: 75%; font-weight: 800; font-size: 22px; text-transform: uppercase; }
.drawer__close { width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center; }
.drawer__body { overflow-y: auto; padding: 16px var(--gutter) 28px; flex: 1; }
.line { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--hair); }
.line__name { font-weight: 600; }
.line__sub { font-size: 14px; color: var(--muted); }
fieldset { border: 0; margin: 20px 0 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font-stretch: 75%; font-weight: 800; font-size: 18px; text-transform: uppercase; }
.radio { display: flex; align-items: center; gap: 10px; min-height: 44px; border-top: 1px solid var(--hair); }
.radio input { width: 20px; height: 20px; margin: 0; accent-color: #000; }
.radio span { flex: 1; display: flex; justify-content: space-between; gap: 12px; }
.radio small { font-size: 13px; color: var(--muted); }
.field { margin-top: 12px; }
.field label { display: block; font-size: 14px; margin-bottom: 4px; }
.field2 { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.pointpick { display: flex; gap: 8px; }
.pointpick input { flex: 1; min-width: 0; }
.radio input:disabled + span { color: var(--muted); }

/* Mapa punktów odbioru (widżet Furgonetki) na całym ekranie, nad koszykiem. */
.pointmap { position: fixed; inset: 0; z-index: 10; background: #fff; }
.pointmap[hidden] { display: none; }
.pointmap__root { position: absolute; inset: 0; }
.pointmap__close {
  position: absolute; top: 12px; right: 12px; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center;
  background: #fff; color: #000; border: 1px solid #ccc; border-radius: 50%; box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.pointmap__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; }
/* Do 640 px widżet ma własny przycisk „wstecz”, więc nasz by go zasłaniał. */
@media (max-width: 640px) { .pointmap__close { display: none; } }
.sum { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 12px; font-variant-numeric: tabular-nums; }
.sum div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.sum__total { font-weight: 700; font-size: 20px; margin-top: 6px; }
.sum dd { text-align: right; }
.alert { margin-top: 16px; padding: 10px 12px; border: 2px solid var(--error); font-size: 14px; }
.alert a { display: block; color: var(--error); }
.done h3 { font-stretch: 75%; font-weight: 800; font-size: 28px; line-height: 1.05; text-transform: uppercase; }
.done p { margin-top: 12px; }
.done dl { margin-top: 16px; border-top: 1px solid var(--hair); }
.done dl div { padding: 8px 0; border-bottom: 1px solid var(--hair); }
.done dt { font-size: 13px; color: var(--muted); }
.done dd { font-weight: 600; overflow-wrap: anywhere; }
.done .btn { margin-top: 20px; }
.empty { padding-top: 24px; }
.empty .btn { margin-top: 12px; }

.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 16px); z-index: 60;
  background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: 14px; border-radius: 4px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Dokumenty prawne */
.legal { max-width: 720px; padding: 32px var(--gutter) 64px; margin: 0 auto; }
.legal h1 { font-stretch: 75%; font-weight: 800; font-size: clamp(32px, 5vw, 48px); line-height: 1; text-transform: uppercase; }
.legal h2 { font-stretch: 75%; font-weight: 800; font-size: 22px; text-transform: uppercase; margin-top: 32px; }
.legal p, .legal li { margin-top: 8px; }
.legal ol, .legal ul { padding-left: 22px; }
.legal ol { list-style: decimal; }
.legal ul { list-style: disc; }
.legal mark { background: #fff0a8; color: #000; padding: 0 3px; }
.legal__draft { margin-top: 16px; padding: 12px; border: 2px solid var(--ink); font-size: 15px; }
.top--legal { grid-template-columns: 1fr auto; }
.top--legal .top__nav { border-right: 0; }

/* Do ok. 1200 px cały pasek w jednym rzędzie (tytuł, miniatury, koszyk) nie mieści się. */
@media (max-width: 1200px) {
  .bar { grid-template-columns: 1fr auto; gap: 12px 20px; }
  .bar__title { grid-column: 1 / -1; font-size: 14px; }
  .bar__picker { justify-content: flex-start; }
}

/* Na najwęższych ekranach brakuje miejsca: na podstronach zostaje sam znak, bez napisu obok. */
@media (max-width: 479px) {
  .top__name { display: none; }
}

@media (max-width: 767px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 84px; }
  .top { grid-template-columns: 1fr auto; grid-template-rows: 48px auto; height: auto; }
  .top__right { grid-row: 1; grid-column: 2; }
  .top__note { grid-column: 1 / -1; padding: 6px var(--gutter); border-top: 1px solid var(--line); font-size: 13px; text-align: center; }
  .top__nav { gap: 12px; border-right: 0; font-size: 14px; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; }
  .hero__info { display: contents; }
  .hero__head { order: 1; padding: 20px var(--gutter) 16px; display: flex; align-items: center; justify-content: center; gap: 16px; }
  .hero__name { text-align: center; min-width: 0; }
  .wordmark { flex: none; }
  .wordmark img { width: 76px; }
  .wordmark--end { display: block; }
  .stage { order: 2; height: min(110vw, 62dvh); }
  .hero__body { order: 3; margin: 0; max-width: none; padding: 20px var(--gutter) 24px; }
  .bar { order: 4; grid-column: auto; grid-template-columns: 1fr; padding: 10px var(--gutter); }
  .bar__picker { justify-content: space-between; gap: 4px; }
  .bar__buy .cta { flex: 1; min-width: 0; gap: 12px; }
  .hero__text { min-height: 0; }
  .section__head, .about, .section--split, .contact { grid-template-columns: 1fr; }
  .section__head p, .about__text { padding-left: 0; margin-top: 12px; }
  .about__text { margin-top: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid li:nth-child(3n) { border-right: 1px solid var(--line); }
  .grid li:nth-child(2n) { border-right: 0; }
  .grid li:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .grid li:nth-last-child(-n+2) { border-bottom: 0; }
  .tile__meta { flex-direction: column; gap: 0; padding: 10px var(--gutter); }
  .steps { grid-template-columns: 1fr 1fr; }
  .section--split .section__head { padding-bottom: 0; }
  /* Nagłówek → treść zawsze 12 px; między blokami w Kontakcie wyraźnie więcej (36 px). */
  .info { padding-top: 12px; }
  .contact { padding-top: 36px; gap: 36px; }
  .section__head .contact__under { margin-top: 12px; }
  .about__hero .section__head { padding-bottom: 12px; }
  .info div { grid-template-columns: 1fr; gap: 0; }
  .empty-reviews { margin-left: 0; padding: 0 var(--gutter); }
  .news__row { flex-direction: column; }
  .stage__arrow { bottom: 10px; }
}

/* Firma w osobnej kolumnie, nazwa i opis figurki w drugiej */
@media (min-width: 768px) {
  .hero__info { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: clamp(24px, 3.4vw, 56px); align-content: start; }
  .hero__head { display: contents; }
  .wordmark { grid-row: 1 / 3; }
  .hero__body { margin: 24px 0 0; }
}

/* Niskie okna: cała treść musi zmieścić się nad dolnym paskiem */
@media (min-width: 768px) and (max-height: 820px) {
  .hero__info { padding-top: 20px; padding-bottom: 12px; }
  .wordmark, .hero__name { font-size: clamp(28px, 2.6vw, 36px); }
  .wordmark img { width: clamp(80px, 7vw, 104px); }
  .hero__body { margin: 12px 0 0; max-width: none; }
  .hero__text { font-size: 16px; min-height: 0; }
  .draw { margin-top: 8px; }
  .facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 10px; }
  .chips__label { margin-top: 8px; }
}

/* Tablety i wąskie okna: kolumna z opisem jest wąska, a opisy figurek długie. */
@media (min-width: 768px) and (max-width: 1100px) {
  .hero__info { column-gap: 20px; padding-top: 24px; }
  .wordmark img { width: 72px; }
  .hero__body { max-width: none; }
  .hero__text { font-size: 15px; line-height: 1.4; min-height: 0; }
  .facts { display: flex; flex-wrap: wrap; gap: 4px 20px; }
}

/* Gdy opis i tak nie mieści się nad paskiem, pasek przestaje się przyklejać i nic nie zasłania. */
@media (min-width: 768px) and (max-height: 620px), (min-width: 768px) and (max-width: 1100px) and (max-height: 760px) {
  .bar { position: static; }
}

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