/* Wosownik – wygląd sklepu. Kolory wosownik.pl; krój nagłówków zależy od szerokości ekranu
   (Switzer na szerokim, Bricolage Grotesque do 1000 px – patrz koniec pliku), tekst w Inter. */

@font-face { font-family: "Switzer"; font-weight: 400; font-display: swap; src: url("/static/fonts/switzer-400.woff2") format("woff2"); }
@font-face { font-family: "Switzer"; font-weight: 500; font-display: swap; src: url("/static/fonts/switzer-500.woff2") format("woff2"); }
@font-face { font-family: "Switzer"; font-weight: 600; font-display: swap; src: url("/static/fonts/switzer-600.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 400 800; font-display: swap; src: url("/static/fonts/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 400 800; font-display: swap; src: url("/static/fonts/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 400 700; font-display: swap; src: url("/static/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 400 700; font-display: swap; src: url("/static/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* marka */
  --navy: #131a2e;
  --crimson: #b3253c;
  --crimson-dark: #8f1a2e;

  /* role */
  --bg: #f7f3ea;
  --surface: #efe8da;
  --ink: var(--navy);
  --muted: #4a4f63;
  --accent: var(--crimson);
  --accent-hover: var(--crimson-dark);
  --accent-ink: #ffffff;
  --field: var(--navy);
  --field-ink: #f7f3ea;
  --field-muted: #c9cbd6;

  --font-display: Georgia, serif;
  --font-text: Georgia, serif;
  --display-weight: 400;
  --display-track: -0.02em;
  --r: 0px;
  --btn-r: 0px;

  --m: clamp(16px, 3.4vw, 48px);
  --sec: clamp(88px, 11vw, 176px);
  --t-small: 15px;
  --t-body: 18px;
  --t-lead: clamp(20px, 1.6vw, 24px);
  --t-head: clamp(34px, 4vw, 60px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-body)/1.55 var(--font-text); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); }
.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--m); }
.inline { display: inline; margin: 0; }
.skip { position: absolute; left: var(--m); top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 50; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
html:not(.js) .js-only { display: none; }
[hidden] { display: none !important; }

/* ---------- typografia ---------- */
.h1 { font-size: clamp(38px, 4.6vw, 68px); line-height: 1.02; }
.h2 { font-size: var(--t-head); line-height: 1.05; }
.h3 { font-size: 24px; line-height: 1.2; }
.lead { font-size: var(--t-lead); line-height: 1.5; max-width: 52ch; }
.small { font-size: var(--t-small); line-height: 1.5; color: var(--muted); }
.small a { color: var(--ink); }
.muted { color: var(--muted); }

/* ---------- przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--btn-r); font: 600 16px/1 var(--font-text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, transform .12s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 18px; }
.btn-full { width: 100%; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline { background: var(--surface); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--accent); color: var(--accent-ink); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.linklike:hover, .small-link:hover { color: var(--accent); }

/* ---------- nagłówek ---------- */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--bg); transition: background-color .2s; }
.hdr-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
/* logo jak na wosownik.pl: znak, napis z karmazynowym „Wos” i podpis */
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap; src: url("/static/fonts/cormorant-garamond-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("/static/fonts/jetbrains-mono-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("/static/fonts/jetbrains-mono-latin.woff2") format("woff2"); }
.logo { flex: none; margin-right: auto; }
.v2-logo { display: flex; align-items: center; gap: 10px; color: #131a2e; text-decoration: none; }
.hdr .v2-logo img { width: 52px; height: 26px; }
.v2-logo-text { display: block; font: 600 20px/32px "Cormorant Garamond", Georgia, serif; letter-spacing: .4px; white-space: nowrap; }
.v2-logo-wos { color: #b3253c; }
.v2-logo-sub { display: block; margin-top: -2px; font: 600 9px/14.4px "JetBrains Mono", ui-monospace, Menlo, monospace; letter-spacing: 2.16px; text-transform: uppercase; color: #3a4360; }
.hdr-nav { display: flex; gap: 28px; font-size: 16px; }
.hdr-nav a { white-space: nowrap; text-decoration: underline 1.5px transparent; text-underline-offset: .35em; padding-block: 8px; transition: text-decoration-color .15s; }
.hdr-nav a:hover { text-decoration-color: currentColor; }
.hdr-actions { display: flex; align-items: center; gap: 18px; }
.hdr-link { font-size: 16px; text-decoration: none; white-space: nowrap; }
.hdr-link:hover { color: var(--accent); }
.cart-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 16px; border-radius: var(--btn-r); background: var(--ink); color: var(--bg);
  font: 600 16px/1 var(--font-text); text-decoration: none; transition: background-color .15s; }
.cart-btn:hover { background: var(--accent); color: var(--accent-ink); }
.cart-n { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: var(--btn-r); background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 700; }

.notices { padding-top: 24px; }
.notice { background: var(--surface); padding: 16px 20px; margin: 0 0 24px; max-width: 780px; border-radius: var(--r); }
.notice.ok { background: #dcebdc; color: #13301b; }
.notice.err { background: #f5d3d7; color: #5a0f1c; }

/* ---------- okładka materiału rysowana w CSS (gdy produkt nie ma zdjęcia) ---------- */
.cover { position: relative; display: flex; flex-direction: column; justify-content: space-between; width: 100%; height: 100%; padding: 9% 10%;
  background: var(--cover-bg, var(--navy)); color: var(--cover-ink, #f7f3ea); font-family: var(--font-display); overflow: hidden; container-type: inline-size; }
.cover-dostep { --cover-bg: var(--cover-bg-2, var(--crimson)); --cover-ink: var(--cover-ink-2, #fff); }
.cover-brand { font: 600 clamp(10px, 6.5cqi, 20px)/1 var(--font-text); letter-spacing: .01em; opacity: .85; }
.cover-title { font-size: clamp(11px, 12.5cqi, 64px); line-height: 1.02; letter-spacing: var(--display-track); font-weight: var(--display-weight); text-wrap: balance; }
.cover-kind { align-self: flex-start; font: 700 clamp(10px, 6cqi, 18px)/1 var(--font-text); padding: .5em .7em; background: var(--cover-ink, #fff); color: var(--cover-bg, var(--navy)); border-radius: var(--btn-r); }

/* ---------- strony wewnętrzne ---------- */
.page { padding-block: clamp(40px, 6vw, 88px) var(--sec); }
.page > .h1 { margin-bottom: 20px; }
.page > .lead { margin-bottom: 32px; }
.back { display: inline-block; margin-bottom: 28px; font-size: 16px; text-decoration: none; color: var(--muted); }
.back:hover { color: var(--accent); }

.prod { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.prod-media { position: sticky; top: 108px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); border-radius: var(--r); }
.prod-media > img { width: 100%; height: 100%; object-fit: contain; }
.prod-info { display: flex; flex-direction: column; gap: 24px; }
.prod-info .h1 { font-size: clamp(36px, 4.2vw, 64px); }
.kind { align-self: flex-start; font-size: var(--t-small); font-weight: 600; color: var(--muted); }
.buybox { display: flex; flex-direction: column; gap: 20px; background: var(--surface); padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r); }
.buybox-price { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 48px; letter-spacing: var(--display-track); line-height: 1; }
.buybox-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.buybox .btn-outline, .box .btn-outline { background: var(--bg); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.checks li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--accent); border-radius: var(--btn-r); transform: translateY(-2px); }
.checks-dark { font-size: 16px; }
.description { white-space: pre-line; max-width: 64ch; }
.after-buy { display: grid; gap: 8px; padding: 22px 24px; background: var(--surface); border-radius: var(--r); }
.buybar { display: none; }

.cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; align-items: center; gap: 20px; padding: 14px 20px 14px 14px; background: var(--surface); border-radius: var(--r); }
.rows-lib .row { grid-template-columns: 72px minmax(0, 1fr) auto; }
.pickup-files { align-self: stretch; }
.pickup-files .row { display: flex; flex-wrap: wrap; justify-content: space-between; padding: 16px 20px; }
.thumb { width: 72px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--r) / 2); }
.thumb-ph { display: grid; place-items: center; background: var(--navy); }
.thumb-ph img { width: 78%; height: auto; }
.only-sm { display: none; }
/* miniatura okładki zastępczej (koszyk, konto): kolor jak okładka na liście – granat dla PDF, karmazyn dla dostępu online */
.thumb-cover { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--field); }
.thumb-cover-dostep { background: var(--accent-hover); }
.thumb-cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7%; background: rgba(0, 0, 0, .18); }
.thumb-cover img { width: 66%; height: auto; filter: brightness(0) invert(1); opacity: .9; }
.row-name { display: flex; flex-direction: column; gap: 2px; font-size: 19px; font-weight: 600; text-decoration: none; }
.row-name .small { display: block; font-weight: 400; }
a.row-name:hover { color: var(--accent); }
.row-price { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 24px; white-space: nowrap; }
.row-info { font-size: var(--t-small); color: var(--muted); max-width: 38ch; }
.box { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 18px; background: var(--surface); padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r); }
.box.empty { position: static; align-items: flex-start; max-width: 640px; }
.sum { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-weight: 600; }
.sum strong { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 38px; letter-spacing: var(--display-track); }
.mini-list { list-style: none; margin: 0; padding: 0 0 18px; display: flex; flex-direction: column; gap: 12px; }
.mini-list li { display: flex; justify-content: space-between; gap: 16px; }
.mini-list small { display: block; font-size: 14px; color: var(--muted); }
.small-link { font-size: var(--t-small); color: var(--muted); text-align: center; }
/* oferta specjalna w koszyku: propozycja pod listą pozycji, z odliczaniem (site.js) */
.cart-main { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.offer { display: flex; flex-direction: column; gap: 10px; }
.offer-row { background: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
.offer-note { display: block; font-size: 14px; font-weight: 600; color: var(--accent); }
.mini-list small.offer-note { color: var(--accent); }
[data-offer-left] { font-variant-numeric: tabular-nums; }
/* oferta specjalna na stronie zamówienia: pod podsumowaniem, oddzielona linią */
.offer-side { padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--muted) 30%, transparent); }
.offer-clock { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0; padding: 10px 16px; background: var(--accent); color: #fff; border-radius: calc(var(--r) / 2); }
.offer-clock-tag { font-weight: 600; }
.offer-clock-time { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 30px; line-height: 1.1; }
.offer-clock-time small { font-family: inherit; font-size: 15px; font-weight: 500; margin-right: .35em; opacity: .9; }
.offer-side-item { display: flex; align-items: center; gap: 14px; }
.offer-side-name { margin: 0; font-weight: 600; }
.offer-side-name a { color: inherit; }
.offer-side-name small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.offer-side-add { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 600; font-size: 20px; }
.status { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

.form { display: flex; flex-direction: column; gap: 22px; max-width: 620px; }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 16px; }
.field input { font: 400 17px/1.3 var(--font-text); padding: 15px 16px; border: 2px solid transparent; border-radius: var(--r); background: var(--surface); color: var(--ink); width: 100%; transition: border-color .15s; }
.field input:hover { border-color: var(--muted); }
.field input:focus { outline: none; border-color: var(--accent); }
.check { display: flex; align-items: flex-start; gap: 14px; font-size: 16px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.check a { color: var(--accent); }
.form .btn { align-self: flex-start; }
.field .opt { font-weight: 400; color: var(--muted); }
.field-msg { margin: 0; font-size: var(--t-small); font-weight: 600; color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--accent); }
/* Pole opcjonalne zwinięte pod pytaniem (np. NIP do paragonu) – żeby nie wyglądało na obowiązkowe. */
.opt-field > summary { display: inline-flex; align-items: center; gap: 10px; width: fit-content; cursor: pointer; list-style: none; font-size: var(--t-small); font-weight: 600; color: var(--ink); }
.opt-field > summary::-webkit-details-marker { display: none; }
.opt-field > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.opt-field[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.opt-field > summary:hover { color: var(--accent); }
.opt-field > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.opt-field-body { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.opt-field-body .small { margin: 0; }

.auth { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.auth-main { display: flex; flex-direction: column; gap: 22px; }
.auth-side { background: var(--field); color: var(--field-ink); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 28px; border-radius: var(--r); }
.auth-big { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); font-size: clamp(28px, 2.8vw, 40px); line-height: 1.08; }

.legal > * { max-width: 760px; }
.legal .h1 { font-size: clamp(34px, 4vw, 56px); margin-bottom: 12px; }
.legal h2 { font-size: 26px; line-height: 1.2; margin: 48px 0 14px; }
.legal ol, .legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: 10px; }
.legal p + p { margin-top: 14px; }
.legal a { color: var(--accent); }
.legal-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; background: var(--surface); }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.form-template { background: var(--surface); padding: 24px 28px; border-radius: var(--r); }

/* ---------- strona główna: części wspólne ---------- */
.cat { padding-block: clamp(40px, 5vw, 80px) var(--sec); }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.cat-h, .sec-h { font-size: var(--t-head); line-height: 1.05; }

.faq2 { padding-block: var(--sec); }
.faq2-note { color: var(--muted); }
.faq2-note a { color: var(--ink); }
.qa h3 { font-size: clamp(24px, 2.3vw, 34px); line-height: 1.15; }
.qa p { max-width: 46ch; }

/* ---------- stopka ---------- */
.ftr { background: var(--field); color: var(--field-ink); padding-top: clamp(64px, 8vw, 120px); overflow: hidden; }
.ftr-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 32px; font-size: 15px; }
.ftr-cols > div { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ftr-cols a, .ftr-cols .linklike { text-decoration: none; color: var(--field-muted); font-size: 15px; }
.ftr-cols a:hover, .ftr-cols .linklike:hover { color: var(--field-ink); text-decoration: underline; }
.ftr-cols p { color: var(--field-muted); line-height: 1.7; }
.ftr-h { font-family: var(--font-text); font-size: 16px; font-weight: 700; letter-spacing: 0; color: var(--field-ink); margin-bottom: 4px; }
.ftr-logo img { height: 96px; width: auto; }
.ftr-note { font-size: 14px; }
.ftr-word { display: none; }
.ftr-copy { padding-block: 48px 96px; font-size: 14px; color: var(--field-muted); }

/* ---------- baner cookies ---------- */
.cookie-banner { position: fixed; left: var(--m); right: var(--m); bottom: 72px; max-width: 760px; margin-inline: auto; z-index: 60;
  background: var(--bg); color: var(--ink); padding: 22px 24px; box-shadow: 0 12px 40px rgba(19, 26, 46, .25); border-radius: var(--r); }
.cookie-banner p { font-size: 15px; margin-bottom: 16px; }
.cookie-banner a { color: var(--accent); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- ruch: wejście elementów ---------- */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.js .is-shown .rise { opacity: 1; transform: none; }

/* ---------- tablet i telefon ---------- */
@media (max-width: 1000px) {
  .prod, .cols, .auth { grid-template-columns: 1fr; }
  .prod-media, .box { position: static; }
  .prod-media { max-width: 420px; }
  .ftr-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-logo { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --sec: 72px; --t-body: 17px; }
  .hdr-nav a:not(:last-child) { display: none; }
  .hide-sm { display: none; }
  .only-sm { display: inline; }
  .hdr-row { min-height: 64px; gap: 12px; }
  /* telefon: w nagłówku zostaje znak i napis, podpis pod logo się nie mieści obok linku i koszyka */
  .v2-logo { gap: 8px; }
  .hdr .v2-logo img { width: 44px; height: 22px; }
  .v2-logo-sub { display: none; }
  .hdr-row { gap: 10px; }
  .hdr-nav { font-size: 15px; }
  .cart-btn { padding-left: 13px; gap: 8px; }
  .prod-media { max-width: 240px; }
  .buybox-price { font-size: 40px; }
  .buybox-actions .btn { flex: 1; }
  .buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); transition: transform .2s; }
  .buybar-price { font-family: var(--font-display); font-size: 26px; }
  .buybar .btn { min-height: 50px; padding: 0 28px; }
  .buybar.is-away { transform: translateY(110%); }
  .row { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "img name name" "img price rm"; gap: 4px 14px; padding: 12px; }
  .row .thumb { grid-area: img; width: 56px; align-self: start; }
  .row-name { grid-area: name; font-size: 17px; }
  .row-price { grid-area: price; font-size: 20px; }
  .row-rm { grid-area: rm; justify-self: end; }
  .rows-lib .row { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "img name" "btn btn"; gap: 12px 14px; }
  .rows-lib .row .btn, .rows-lib .row .row-info { grid-area: btn; width: 100%; }
  .cols:has(> form) > .box, .cols:has(> .status) > .box { order: -1; }
  .sum strong { font-size: 30px; }
  .form .btn { width: 100%; }
  .field input { font-size: 16px; }
  .ftr-cols { gap: 28px 20px; }
  .ftr-cols > div:nth-child(n+4) { grid-column: 1 / -1; }
  .ftr-logo img { height: 72px; }
}
/* wąski telefon: „Zaloguj się” w jednej linii nie mieści się obok logo i koszyka */
@media (max-width: 380px) {
  .hide-xs { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rise { opacity: 1; transform: none; }
}

/* ---------- Promocje, kody rabatowe, darmowe materiały ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.price-sale { position: relative; display: inline-flex; align-items: baseline; gap: .4em; flex-wrap: wrap; }
.price-sale del { color: var(--muted); font-weight: 400; font-size: .62em; }
.price-sale ins { text-decoration: none; color: var(--accent); }
.price-free { color: var(--accent); }
.sale-tag { color: var(--accent); }
.presale-tag { color: var(--accent); font-weight: 700; }
.schedule { display: grid; gap: 14px; }
.schedule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 64ch; }
.schedule-list li { display: grid; grid-template-columns: 11.5em 1fr; gap: 4px 20px; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--muted) 22%, transparent); }
.schedule-list li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--muted) 22%, transparent); }
.schedule-when { font-weight: 700; white-space: nowrap; }
.schedule-list small { display: block; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .schedule-list li { grid-template-columns: 1fr; } }
.omnibus { display: block; font-size: 14px; color: var(--muted); }
.omnibus-line { margin-top: -6px; }
.sum-sub { font-weight: 400; }
.sum-discount { color: var(--accent); }
/* pole kodu jest zawsze widoczne w podsumowaniu: podpis, obramowane pole i przycisk */
.code-box { padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--muted) 22%, transparent); }
.code-label { display: block; font-weight: 600; font-size: 16px; color: var(--ink); }
.code-form { display: flex; gap: 10px; margin-top: 10px; }
.code-form input { flex: 1; min-width: 0; font: 500 16px/1.2 var(--font-text); padding: 11px 14px; border: 1.5px solid color-mix(in srgb, var(--muted) 55%, transparent); border-radius: var(--btn-r); background: var(--bg); color: var(--ink); text-transform: uppercase; transition: border-color .15s; }
.code-form input::placeholder { color: var(--muted); text-transform: none; opacity: 1; }
.code-form input:hover { border-color: var(--muted); }
.code-form input:focus { outline: none; border-color: var(--accent); }
.code-form .btn { flex: none; }
.code-form input[aria-invalid=true] { border-color: var(--accent); }
.code-err { color: var(--accent); font-size: 15px; font-weight: 600; margin-top: 8px; }
.code-applied { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.narrow { max-width: 760px; }
.narrow > .btn { margin: 8px 0 24px; }
.narrow > .small { margin-top: 12px; max-width: 60ch; }
.lead-form { gap: 16px; }
.lead-form .check { font-size: 14px; line-height: 1.45; }
.description p { margin: 0 0 .9em; }
.description ul { margin: 0 0 .9em; padding-left: 1.2em; }
.description h3 { font-size: 1.05em; margin: 1.2em 0 .5em; }
.description { white-space: normal; }
.description u { text-underline-offset: .15em; }
/* kolory tekstu w opisie produktu (paleta w text.go) */
.c-czerwony { color: #b3253c; }
.c-granatowy { color: #131a2e; }
.c-niebieski { color: #2a4f9e; }
.c-zielony { color: #1e6b45; }
.c-pomaranczowy { color: #a4470b; }
.c-fioletowy { color: #6a3d9a; }
.c-szary { color: #5d6170; }

/* Dane do faktury w zamówieniu */
.radio-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--surface); background: var(--surface); cursor: pointer; font-weight: 600; }
.radio-pill input { accent-color: var(--accent); margin: 0; }
.field-row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Warianty produktu ---------- */
.variants { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.variants legend { padding: 0; margin-bottom: 12px; }
.variant { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 18px; border: 2px solid transparent; border-radius: var(--r); background: var(--bg); cursor: pointer; transition: border-color .15s; }
.variant:hover { border-color: var(--muted); }
.variant:has(input:checked) { border-color: var(--accent); }
.variant input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.variant-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.variant-name { font-weight: 600; font-size: 17px; line-height: 1.3; }
.variant-desc { font-size: var(--t-small); color: var(--muted); line-height: 1.45; }
.variant .omnibus { font-size: 12.5px; margin-top: 2px; }
.variant-price { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 22px; white-space: nowrap; text-align: right; }
.variant-price .price-sale { flex-direction: column; align-items: flex-end; gap: 0; }
.variant-lead { color: var(--muted); }
.price-from { font-size: .6em; color: var(--muted); }
.price-sale-from { text-decoration: none; color: var(--accent); }
.download-list, .owned-files { display: flex; flex-wrap: wrap; gap: 10px; }
.owned-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.owned-main .row-info { max-width: 60ch; white-space: pre-line; }
@media (max-width: 640px) {
  .row-owned .owned-main { grid-area: name; }
  .row-owned .owned-files { grid-area: btn; }
  .owned-files .btn { width: 100%; }
}

/* ---------- kolory wosownik.pl i wspólne elementy sklepu ----------
   Kroje i kształt (--font-display, --r, --btn-r) ustawia koniec pliku; tu wspólna karta produktu,
   okładka zastępcza, strona produktu i sekcje pod listą. Prefiks :root daje tym regułom pierwszeństwo przed bazowymi wyżej. */
:root {
  --bg: #faf7f2;
  --surface: #f3ede2;
  --card: #ffffff;
  --ink: #131a2e;
  --muted: #3a4360;
  --rule: #e4ddd0;
  --accent: #b3253c;
  --accent-hover: #8a1a2e;
  --accent-ink: #ffffff;
  --field: #1a2340;
  --field-ink: #faf7f2;
  --field-muted: #c9cde0;
  --font-text: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display-weight: 600;
  --display-track: -0.025em;
  --t-body: 17px;
  --t-head: clamp(34px, 3.6vw, 52px);
  --shadow: 0 1px 2px rgba(19, 26, 46, .06), 0 10px 30px -12px rgba(19, 26, 46, .18);
  --shadow-up: 0 2px 4px rgba(19, 26, 46, .06), 0 22px 44px -16px rgba(19, 26, 46, .28);
}
:root .hdr { border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
:root .btn { font-weight: 600; font-size: 15px; }
:root .btn-accent { box-shadow: 0 6px 16px -8px rgba(179, 37, 60, .7); }
:root .btn-accent:hover { transform: translateY(-1px); }
:root .btn-outline { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--rule); }
:root .btn-outline:hover { background: var(--ink); color: var(--bg); box-shadow: none; }
:root .cart-btn { border-radius: var(--btn-r); }
:root .cart-n { border-radius: 999px; background: var(--accent); color: #fff; }
:root .ftr { background: var(--field); }

/* nagłówek listy: tytuł i jedno zdanie */
.cat-h em { font-style: inherit; }
:root .cat-head { display: block; }
:root .cat-lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 52ch; margin-top: 14px; }

/* okładka zastępcza (dopóki produkt nie ma zdjęcia z panelu): granatowy zeszyt dla PDF, karmazynowy dla dostępu online */
:root .cover {
  background: var(--field); color: #faf7f2; padding: 11% 11% 12%; justify-content: space-between; border-radius: calc(var(--r) * .6);
  box-shadow: 0 1px 2px rgba(19, 26, 46, .2), 0 24px 40px -20px rgba(19, 26, 46, .55); }
:root .cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5%; background: rgba(0, 0, 0, .18); }
:root .cover-dostep { background: var(--accent-hover); }
:root .cover-brand { font: 600 clamp(9px, 5.4cqi, 15px)/1 var(--font-text); letter-spacing: .02em; opacity: .7; }
:root .cover-title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(14px, 11cqi, 52px); line-height: 1.04; letter-spacing: var(--display-track); }
:root .cover-kind { background: rgba(255, 255, 255, .14); color: #fff; border-radius: 999px; font-weight: 600; font-size: clamp(9px, 5cqi, 14px); padding: .55em .9em; }
:root .cover:not(.cover-dostep) .cover-kind { background: var(--accent); }

/* karta produktu na liście: cała karta prowadzi do produktu, przycisk kupna działa osobno */
.plist { list-style: none; margin: 0; padding: 0; }
.p { position: relative; }
.p-cover { display: block; overflow: hidden; border-radius: var(--r); text-decoration: none; }
.p-cover, .p-cover * { text-decoration: none; }
/* Zdjęcie z panelu może mieć dowolne proporcje – mieści się w polu w całości, bez przycinania. */
.p-cover:has(> img) { display: grid; place-items: center; }
.p-cover > img { width: auto; height: auto; max-width: 100%; max-height: 100%; min-height: 0; transition: transform .5s var(--ease); }
.p-cover .cover { transition: transform .5s var(--ease); }
.p:hover .p-cover > img, .p:hover .p-cover .cover { transform: translateY(-4px); }
.p-kind { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.p-kind::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.p-var { color: var(--accent); }
.p-name { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-track); line-height: 1.15; }
.p-name a { text-decoration: none; }
.p-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.p:hover .p-name a { color: var(--accent); }
.p-desc { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 56ch; }
.p-buy { position: relative; z-index: 2; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.p-price { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.p-buy .btn { min-height: 46px; padding: 0 20px; }
.p-buy .price-from { font-family: var(--font-text); font-size: 14px; font-weight: 500; letter-spacing: 0; }

/* sekcja „Pytania” pod listą, w dwóch kolumnach */
:root .cat { padding-bottom: clamp(64px, 7vw, 112px); }
:root .faq2 { padding-block: clamp(56px, 6vw, 96px); }
:root .faq2 .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 5vw, 80px); align-items: start; }
:root .faq2-head { display: grid; gap: 14px; position: sticky; top: 108px; }
:root .qa-list { display: grid; gap: 12px; }
:root .qa { display: grid; gap: 8px; padding: 22px 24px; background: var(--card); border-radius: calc(var(--r) * .75); box-shadow: 0 0 0 1px var(--rule); }
:root .qa h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }
:root .qa p { max-width: 64ch; font-size: 16px; color: var(--muted); }
@media (max-width: 1000px) {
  :root .faq2 .wrap { grid-template-columns: minmax(0, 1fr); }
  :root .faq2-head { position: static; }
}

/* strona produktu, koszyk, formularze */
:root .prod-media { border-radius: var(--r); }
:root .prod-media:has(.cover) { background: var(--surface); padding: 11%; }
:root .kind { font-size: 14px; font-weight: 600; color: var(--accent); }
:root :is(.buybox, .box) { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
:root .buybox-price { font-weight: 700; }
:root .variants legend { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 24px; letter-spacing: var(--display-track); }
:root .variant { background: var(--bg); border: 1.5px solid var(--rule); border-radius: calc(var(--r) * .7); }
:root .variant:hover { border-color: var(--muted); }
:root .variant:has(input:checked) { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(179, 37, 60, .12); }
:root .variant-price { font-weight: 700; font-size: 22px; }
:root :is(.row, .after-buy, .auth-side, .form-template) { border-radius: var(--r); }
:root .field input { background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); border-radius: calc(var(--r) * .6); }

/* ---------- strona główna: lista materiałów ----------
   Szeroki ekran (> 1000 px): krój Switzer, granatowy pas z tytułem, pierwszy materiał jako duża karta, pozostałe w kartach po dwie.
   Węższy ekran: Bricolage Grotesque, okładki na beżowym polu, siatka po dwie (na telefonie po jednej), przyciski w pigułce. */
/* ---------- szeroki ekran: plansza 9 ---------- */
@media (min-width: 1001px) {
  :root { --font-display: "Switzer", "Inter", system-ui, sans-serif; --display-weight: 600; --display-track: -0.03em; --r: 24px; --btn-r: 12px; }

  .cat { padding-top: 0; }
  /* granatowy pas na całą szerokość ekranu, tekst na liniach strony; karty listy zachodzą na jego dół */
  .cat-head { padding-block: clamp(48px, 6vw, 88px) clamp(96px, 10vw, 150px); margin-bottom: calc(-1 * clamp(56px, 7vw, 100px));
    background: var(--field); color: var(--field-ink); box-shadow: 0 0 0 100vmax var(--field); clip-path: inset(0 -100vmax); }
  .cat-head .cat-h { font-size: clamp(42px, 5vw, 72px); line-height: 1; }
  .cat-head .cat-lead { color: var(--field-muted); }

  .plist { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .plist .p { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: auto 1fr; gap: 16px 28px;
    padding: 24px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s var(--ease); }
  .plist .p:hover { box-shadow: var(--shadow-up); transform: translateY(-3px); }
  .plist .p-cover { grid-row: 1 / span 2; aspect-ratio: 4 / 5; background: var(--surface); padding: 10%; border-radius: calc(var(--r) * .7); }
  .plist .p-main { display: grid; gap: 8px; align-content: start; padding-top: 6px; }
  .plist .p-name { font-size: 24px; }
  .plist .p-buy { align-self: end; justify-content: space-between; }
  .plist .p:last-child:nth-child(even):not(:nth-child(2)) { grid-column: 1 / -1; }

  /* pierwszy materiał: duża karta na całą szerokość – ale nie przy dwóch materiałach, wtedy stoją obok siebie */
  .plist .p:first-child:not(:nth-last-child(2)) { grid-column: 1 / -1; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding: clamp(24px, 3vw, 40px); gap: 20px clamp(32px, 5vw, 72px); }
  .plist .p:first-child:not(:nth-last-child(2)) .p-cover { padding: 9% 16%; }
  .plist .p:first-child:not(:nth-last-child(2)) .p-main { align-self: end; gap: 14px; }
  .plist .p:first-child:not(:nth-last-child(2)) .p-name { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.05; }
  .plist .p:first-child:not(:nth-last-child(2)) .p-desc { font-size: 18px; }
  .plist .p:first-child:not(:nth-last-child(2)) .p-buy { align-self: start; justify-content: flex-start; gap: 24px; padding-top: 20px; border-top: 1px solid var(--rule); }
  .plist .p:first-child:not(:nth-last-child(2)) .p-price { font-size: 40px; }
  .plist .p:first-child:not(:nth-last-child(2)) .p-buy .btn { min-height: 54px; padding: 0 30px; font-size: 16px; }
}

/* ---------- węższy ekran: witryna 7 ---------- */
@media (max-width: 1000px) {
  :root { --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif; --display-weight: 650; --r: 20px; --btn-r: 999px; }

  .cat-head { margin-bottom: clamp(36px, 4vw, 56px); }
  .cat-h { font-size: clamp(40px, 4.6vw, 68px); line-height: 1.02; }
  .plist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
  .plist .p { display: grid; grid-template-rows: auto 1fr auto; gap: 18px; }
  .plist .p-cover { aspect-ratio: 1 / 1; background: var(--surface); padding: 12% 22%; transition: background-color .3s; }
  .plist .p:hover .p-cover { background: #ece4d5; }
  .plist .p-cover > img { border-radius: 8px; box-shadow: var(--shadow); }
  .plist .p-main { display: grid; gap: 8px; align-content: start; }
  .plist .p-name { font-size: 24px; }
  .plist .p-buy { justify-content: space-between; }
}
@media (max-width: 640px) {
  .plist { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .plist .p-cover { aspect-ratio: 4 / 3; padding: 8% 28%; }
}

/* ---------- dostęp online: Konto, pakiet, nagranie, fiszki ---------- */
/* Fiszki używają kroju Khand – jak aplikacja fiszek z platformy (licencja SIL OFL). */
@font-face { font-family: "Khand"; font-weight: 400; font-display: swap; src: url("/static/fonts/khand-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Khand"; font-weight: 400; font-display: swap; src: url("/static/fonts/khand-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Khand"; font-weight: 600; font-display: swap; src: url("/static/fonts/khand-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Khand"; font-weight: 600; font-display: swap; src: url("/static/fonts/khand-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Khand"; font-weight: 700; font-display: swap; src: url("/static/fonts/khand-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Khand"; font-weight: 700; font-display: swap; src: url("/static/fonts/khand-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root { --known: #23794c; --known-soft: #d9ecdf; --unknown: var(--accent); }
.acc-sec { margin: 40px 0 16px; }
.acc-sec:first-of-type { margin-top: 8px; }
.acc-orders { max-width: 780px; }
.acc-links { margin-top: 32px; }
.row-owned.is-off { opacity: .6; }
/* kupiony pakiet, który jeszcze się nie otworzył: zapowiedź z terminami */
.row-owned.is-next { background: transparent; box-shadow: inset 0 0 0 1.5px var(--surface); }
.row-owned.is-next .thumb { opacity: .55; }
.next-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.next-list .schedule-when { font-weight: 600; color: var(--ink); margin-right: 4px; }
.thumb-online { color: var(--field-ink); font: 700 22px/1 var(--font-text); text-align: center; align-content: center; gap: 4px; }
.thumb-online small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--field-muted); }

.video { position: relative; aspect-ratio: 16 / 9; max-width: 1040px; background: var(--navy); border-radius: var(--r); overflow: hidden; margin-top: 8px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.fz-page > .h2 { margin-bottom: 28px; }
.fz { font-family: "Khand", var(--font-text); display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 380px; margin-inline: auto; }
.fz-top { display: flex; justify-content: space-between; width: 100%; font-size: var(--t-small); color: var(--muted); margin-bottom: 8px; }
.fz-counter { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.fz-bar { display: flex; width: 100%; height: 8px; border-radius: 4px; overflow: hidden; background: var(--rule); margin-bottom: 18px; }
.fz-bar-k { background: var(--known); transition: width .25s var(--ease); }
.fz-bar-u { background: var(--unknown); transition: width .25s var(--ease); }

.fz-scene { display: block; width: 100%; max-width: 320px; aspect-ratio: 810 / 1190; perspective: 1200px; padding: 0; border: 0; background: none; cursor: pointer; margin-bottom: 6px; color: inherit; font: inherit; }
.fz-scene:focus-visible { outline-offset: 6px; border-radius: 16px; }
.fz-card { position: relative; width: 100%; height: 100%; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  padding: 22px 20px; text-align: center; background-size: cover; background-position: center; box-shadow: 0 8px 28px rgba(19, 26, 46, .22);
  transition: transform .22s ease-in; line-height: 1.25; text-transform: uppercase; letter-spacing: .04em; overflow-wrap: anywhere; }
.fz-card.side-front { background-image: url("/static/img/fiszka-przod.svg"); color: #f5ede0; font: 700 1.8rem/1.25 "Khand", var(--font-text); }
.fz-card.side-back { background-image: url("/static/img/fiszka-tyl.svg"); color: #7a0b12; font: 600 1.2rem/1.5 "Khand", var(--font-text); letter-spacing: .03em; }
.fz-text { display: block; width: 100%; overflow-wrap: normal; word-break: normal; }
.fz-card.go-edge { transform: rotateY(90deg); }
.fz-card.no-trans { transition: none; transform: rotateY(-90deg); }
.fz-star { position: absolute; top: 10px; left: 12px; font-size: 26px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px #a0aec0; transition: color .2s; }
.fz-star.known { color: var(--known); -webkit-text-stroke: 0; }
.fz-star.unknown { color: var(--unknown); -webkit-text-stroke: 0; }
.fz-empty { width: 100%; max-width: 320px; padding: 48px 20px; text-align: center; font-weight: 600; background: var(--surface); border-radius: var(--r); }

.fz-row { display: flex; gap: 10px; width: 100%; margin-top: 10px; }
.fz-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 12px; border: 0; border-radius: 12px;
  font: 600 1rem/1 "Khand", var(--font-text); cursor: pointer; touch-action: manipulation; transition: transform .1s, background-color .15s; }
.fz-btn:active { transform: scale(.96); }
.fz-btn-soft { background: var(--surface); color: var(--ink); }
.fz-btn-soft:hover { background: var(--rule); }
.fz-btn-sq { flex: 0 0 48px; }
.fz-btn-auto { flex: 0 0 auto; padding: 0 16px; font-size: 14px; }
.fz-btn-unknown { background: var(--unknown); color: #fff; }
.fz-btn-unknown:hover { background: var(--accent-hover); }
.fz-btn-known { background: var(--known); color: #fff; }
.fz-btn-known:hover { background: #1a5e3a; }
.fz-btn-mode { background: var(--navy); color: #fff; font-size: 14px; }
.fz-btn-mode.mode-hard { background: #7a0b12; }
.fz-btn-mode.mode-unrated { background: #5a4a8a; }
.fz-stats { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; white-space: pre-wrap; font-variant-numeric: tabular-nums; }
.fz-save { min-height: 1.5em; font-size: 14px; color: var(--known); text-align: center; }
.fz-save.err { color: var(--unknown); }
.fz-help { text-align: center; margin-top: 10px; }

/* Obrót karty to część fiszek (jak w aplikacji z platformy) – zostaje także przy ograniczonym ruchu w systemie. */
@media (prefers-reduced-motion: reduce) {
  .fz .fz-card { transition: transform .22s ease-in !important; }
  .fz .fz-card.no-trans { transition: none !important; }
}
.video video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.video-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 1040px; margin-top: 20px; }
.video-nav .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* telefon: strona produktu – mniejsza okładka, żeby cena i wybór były bliżej; w wariancie cena pod nazwą, opis na całą szerokość */
@media (max-width: 640px) {
  :root .prod-media { max-width: 200px; }
  :root .variant { grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; padding: 14px 16px; }
  :root .variant-price { grid-column: 2; text-align: left; font-size: 20px; }
  :root .variant-price .price-sale { flex-direction: row; align-items: baseline; }
}
