/* Sklep Andrzeja Tucholskiego. Kolory i kroje ze starego sklepu: Roboto, granat nagłówka, czerwień przycisków, żółć logo. */

@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/roboto-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: 'Roboto'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/roboto-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: 'Roboto Condensed'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/roboto-condensed-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: 'Roboto Condensed'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/roboto-condensed-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 {
  --granat: #202336;
  --granat-2: #2B2F48;
  --granat-3: #181A29;
  --czerwien: #CF2E2E;
  --czerwien-ciemna: #A9201F;
  --zolty: #EEA200;
  --zolty-jasny: #FFF4DA;
  --tekst: #14151E;
  --tekst-2: #4A4D5E;
  --tekst-3: #5F6276;
  --linia: #E2E3EA;
  --szary: #F2F3F6;
  --bialy: #fff;
  --zielony: #1F7A4D;
  --r: 4px;
  --cien: 0 1px 2px rgba(32, 35, 54, .06), 0 8px 24px -8px rgba(32, 35, 54, .18);
  --cien-duzy: 0 2px 6px rgba(32, 35, 54, .08), 0 24px 48px -16px rgba(32, 35, 54, .32);
  --szer: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --kroj: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --kroj-naglowki: 'Roboto Condensed', 'Roboto', system-ui, sans-serif;
  --wyjscie: cubic-bezier(.16, 1, .3, 1);
  --akcent: var(--granat);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body {
  margin: 0; background: var(--bialy); color: var(--tekst);
  font: 400 1.0625rem/1.65 var(--kroj); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--czerwien-ciemna); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--kroj-naglowki); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; margin: 0; text-wrap: balance; color: var(--tekst); }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.6rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--zolty); color: var(--granat); }
:focus-visible { outline: 3px solid var(--zolty); outline-offset: 2px; border-radius: 2px; }
s { text-decoration-thickness: 1.5px; }

.ik { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; vertical-align: -.2em; }
.w { width: 100%; max-width: calc(var(--szer) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.w-waska { width: 100%; max-width: calc(880px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.pomin { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--zolty); color: var(--granat); padding: 10px 16px; font-weight: 700; }
.pomin:focus { left: 8px; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .18em; }
[hidden] { display: none !important; }

/* ---------- przyciski ---------- */

.przycisk {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px; border: 2px solid var(--czerwien); border-radius: var(--r);
  background: var(--czerwien); color: #fff; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--wyjscie);
}
.przycisk:hover { background: var(--czerwien-ciemna); border-color: var(--czerwien-ciemna); text-decoration: none; }
.przycisk:active { transform: translateY(1px); }
.przycisk .ik { width: 1.2em; height: 1.2em; }
.przycisk--maly { min-height: 40px; padding: 8px 14px; font-size: .95rem; }
.przycisk--duzy { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.przycisk--pelny { width: 100%; }
.przycisk--obrys { background: transparent; color: var(--granat); border-color: var(--granat); }
.przycisk--obrys:hover { background: var(--granat); color: #fff; border-color: var(--granat); }
.przycisk--obrys-jasny { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.przycisk--obrys-jasny:hover { background: #fff; color: var(--granat); border-color: #fff; }
.przycisk--jasny { background: #fff; color: var(--granat); border-color: var(--linia); }
.przycisk--jasny:hover { background: var(--szary); border-color: var(--granat); color: var(--granat); }
.przycisk--granat { background: var(--granat); border-color: var(--granat); }
.przycisk--granat:hover { background: var(--granat-3); border-color: var(--granat-3); }
.przycisk--zolty { background: var(--zolty); border-color: var(--zolty); color: var(--granat); }
.przycisk--zolty:hover { background: #fff; border-color: #fff; color: var(--granat); }
.przycisk--wylaczony { background: var(--szary); border-color: var(--linia); color: var(--tekst-3); cursor: not-allowed; }
.przycisk--wylaczony:hover { background: var(--szary); border-color: var(--linia); }

/* ---------- nagłówek ---------- */

.naglowek { position: sticky; top: 0; z-index: 40; background: var(--granat); color: #fff; transition: box-shadow .25s; }
.naglowek.przewiniety { box-shadow: 0 6px 24px -6px rgba(10, 11, 20, .55); }
.naglowek__w { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; max-width: calc(var(--szer) + 2 * var(--gutter)); margin-inline: auto; padding: 14px var(--gutter); }
.logo { display: block; color: #fff; line-height: 0; }
.logo__svg { width: 196px; height: auto; aspect-ratio: 3352 / 512; display: block; }
.menu { display: flex; justify-content: center; gap: 4px 6px; flex-wrap: wrap; }
.menu a { color: #fff; text-decoration: none; font-weight: 500; font-size: .98rem; padding: 8px 10px; border-radius: var(--r); position: relative; }
.menu a::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; background: var(--zolty); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--wyjscie); }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu .menu__dom { color: rgba(255, 255, 255, .72); display: none; }
.menu__dom .ik { width: .95em; height: .95em; margin-left: 3px; }
.naglowek__akcje { display: flex; align-items: center; gap: 8px; }
.przycisk-koszyk { position: relative; display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; padding: 9px 14px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: var(--r); transition: border-color .2s, background .2s; }
.przycisk-koszyk:hover { border-color: var(--zolty); }
.przycisk-koszyk .ik { width: 1.35em; height: 1.35em; }
.przycisk-koszyk__suma { font-variant-numeric: tabular-nums; }
.przycisk-koszyk__licznik { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--zolty); color: var(--granat); font-size: .78rem; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }
.przycisk-menu { display: none; background: none; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: var(--r); color: #fff; width: 46px; height: 46px; place-items: center; }
.przycisk-menu .ik { width: 1.5em; height: 1.5em; }

@media (min-width: 1280px) { .menu .menu__dom { display: inline-flex; align-items: center; } }

/* ---------- wspólne sekcje ---------- */

.sekcja { padding-block: clamp(56px, 7vw, 104px); }
.sekcja--szara, .sekcja--mgla { background: var(--szary); }
.sekcja--kategoria { padding-top: 28px; }
.naglowek-sekcji { margin-bottom: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; }
.naglowek-sekcji h2, .naglowek-sekcji h1 { position: relative; padding-bottom: 16px; }
.naglowek-sekcji h2::after, .naglowek-sekcji h1::after { content: ''; position: absolute; left: 50%; translate: -50% 0; bottom: 0; width: 56px; height: 4px; background: var(--czerwien); }
.naglowek-sekcji--h1 { justify-items: start; text-align: left; }
.naglowek-sekcji--h1 h1::after { left: 0; translate: none; }
.naglowek-sekcji p { margin: 14px auto 0; color: var(--tekst-2); max-width: 62ch; font-size: 1.08rem; }
.naglowek-sekcji--h1 p { margin-left: 0; }
.naglowek-sekcji__link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--granat); text-decoration: none; white-space: nowrap; padding-bottom: 4px; }
.naglowek-sekcji__link .ik { transition: transform .25s var(--wyjscie); }
.naglowek-sekcji__link:hover .ik { transform: translateX(4px); }
.naglowek-sekcji--srodek { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.naglowek-sekcji--srodek h2::after { left: 50%; translate: -50% 0; }
.naglowek-sekcji--srodek p { margin-inline: auto; }
.wstep { color: var(--tekst-2); font-size: 1.1rem; max-width: 60ch; }

.okruszki ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 20px; padding: 0; font-size: .9rem; color: var(--tekst-3); }
.okruszki li + li::before { content: '/'; margin: 0 8px; color: var(--linia); }
.okruszki a { color: var(--tekst-2); text-decoration: none; }
.okruszki a:hover { color: var(--czerwien-ciemna); text-decoration: underline; }

/* ---------- cena, znaczki ---------- */

.cena { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; font-variant-numeric: tabular-nums; }
.cena__stara { color: var(--tekst-3); font-size: .95em; order: -1; }
.cena__teraz { font-weight: 800; font-size: 1.25rem; color: var(--tekst); }
.cena__zysk { font-size: .88rem; font-weight: 700; color: var(--zielony); background: #E6F3EC; padding: 3px 8px; border-radius: var(--r); }
.znaczek { display: inline-block; background: var(--czerwien); color: #fff; font-size: .78rem; font-weight: 800; padding: 4px 8px; border-radius: var(--r); letter-spacing: .02em; line-height: 1.2; }
.znaczek--zolty { background: var(--zolty); color: var(--granat); }
.znaczek--szary { background: var(--tekst-2); }

/* ---------- zdjęcia produktów w kafelkach ---------- */

.foto, .mini { display: grid; place-items: center; overflow: hidden; background: color-mix(in srgb, var(--akcent) 12%, #fff); aspect-ratio: 16 / 10; }
.foto img, .mini img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--wyjscie); }
.foto--okladka img { width: auto; height: 84%; object-fit: contain; box-shadow: 0 2px 4px rgba(20, 21, 30, .15), 0 14px 26px -10px rgba(20, 21, 30, .45); }
.foto--kwadrat { background: #fff; }
.foto--kwadrat img { object-fit: contain; padding: 4%; }
.mini { aspect-ratio: 1; border-radius: var(--r); }
.mini--okladka img { height: 86%; width: auto; object-fit: contain; }
.mini--kwadrat img { object-fit: contain; background: #fff; }

/* ---------- kafelek produktu ---------- */

.siatka-produktow { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.karta { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linia); border-radius: var(--r); overflow: hidden; transition: box-shadow .3s, transform .3s var(--wyjscie); }
.karta:hover { box-shadow: var(--cien); transform: translateY(-2px); }
.karta:hover .foto img { transform: scale(1.04); }
.karta__foto { position: relative; display: block; }
.karta__znaczki { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.karta__typ { margin: 16px 18px 4px; font-size: .82rem; font-weight: 700; color: color-mix(in srgb, var(--akcent) 72%, #14151E); text-transform: uppercase; letter-spacing: .06em; }
.karta__nazwa { margin: 0 18px 8px; font-size: 1.28rem; }
.karta__nazwa a { color: var(--tekst); text-decoration: none; }
.karta__nazwa a:hover { color: var(--czerwien-ciemna); }
.karta__lead { margin: 0 18px 16px; color: var(--tekst-2); font-size: .97rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.karta__dol { margin: auto 18px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--linia); }

.filtry { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filtry button { border: 1.5px solid var(--linia); background: #fff; border-radius: var(--r); padding: 8px 16px; font-weight: 600; font-size: .95rem; }
.filtry button:hover { border-color: var(--granat); }
.filtry button[aria-pressed="true"] { background: var(--granat); color: #fff; border-color: var(--granat); }

/* ---------- główna: hero ---------- */

.hero { background: var(--granat); color: #fff; overflow: hidden; position: relative; }
.hero::before { content: ''; position: absolute; inset: auto -10% -40% 40%; height: 80%; background: radial-gradient(closest-side, rgba(238, 162, 0, .14), transparent); pointer-events: none; }
.hero__w { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 6vw, 88px) clamp(56px, 7vw, 104px); position: relative; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 1.4rem + 3.2vw, 4.25rem); line-height: 1.02; letter-spacing: -.02em; }
.hero h1 span { display: block; color: var(--zolty); }
.hero__lead { font-size: clamp(1.08rem, 1rem + .3vw, 1.25rem); color: rgba(255, 255, 255, .86); margin: 24px 0 32px; max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scena { position: relative; justify-self: end; width: min(100%, 540px); }
.hero__portret { border-radius: var(--r); overflow: hidden; aspect-ratio: 1; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.hero__portret img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero__ksiazka { position: absolute; left: -18%; bottom: -12%; width: 32%; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .5)); transform: rotate(-4deg); animation: ksiazka 1.1s .25s var(--wyjscie) both; transition: transform .5s var(--wyjscie); }
.hero__ksiazka:hover { transform: rotate(-1deg) translateY(-6px); }
@keyframes ksiazka { from { transform: translate(-30px, 40px) rotate(-14deg); opacity: 0; } to { transform: rotate(-4deg); opacity: 1; } }
.hero__metka { position: absolute; bottom: 22px; right: -18px; margin: 0; background: var(--zolty); color: var(--granat); padding: 10px 14px; border-radius: var(--r); font-size: .86rem; line-height: 1.3; max-width: 190px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); }
.hero__metka strong { display: block; font-family: var(--kroj-naglowki); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .02em; }

/* ---------- główna: od czego zacząć ---------- */

.start { padding-block: clamp(56px, 7vw, 104px); background: linear-gradient(180deg, var(--szary), #fff 70%); }
.start__lista { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 12px; max-width: 1080px; }
.start__wiersz {
  display: grid; grid-template-columns: 52px 1fr minmax(260px, 340px) 40px; align-items: center; gap: 24px;
  padding: 20px 24px; color: var(--tekst); text-decoration: none; background: #fff; border: 1.5px solid var(--linia); border-radius: var(--r);
  transition: background .3s var(--wyjscie), color .3s, border-color .3s, transform .3s var(--wyjscie), box-shadow .3s;
}
.start__problem { font-family: var(--kroj-naglowki); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.15; letter-spacing: -.005em; text-wrap: balance; }
.start__produkt { display: flex; align-items: center; gap: 14px; }
.start__produkt .mini { width: 72px; flex: none; }
.start__produkt strong { display: block; font-size: 1.02rem; }
.start__produkt small { color: var(--tekst-2); font-size: .9rem; }
.start__ikona { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #FDF0F0; color: var(--czerwien); transition: background .3s, color .3s; }
.start__ikona .ik { width: 26px; height: 26px; }
.start__wiersz:hover .start__ikona { background: var(--zolty); color: var(--granat); }
.start__strzalka { width: 28px; height: 28px; color: var(--czerwien); transition: transform .35s var(--wyjscie); }
.start__wiersz:hover { background: var(--granat); border-color: var(--granat); color: #fff; transform: translateY(-2px); box-shadow: var(--cien); }
.start__wiersz:hover small { color: rgba(255, 255, 255, .75); }
.start__wiersz:hover .start__strzalka { transform: translateX(6px); color: var(--zolty); }

/* ---------- główna: książka ---------- */

.ksiazka { background: var(--szary); padding-block: clamp(56px, 7vw, 104px); }
.ksiazka__w { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ksiazka__foto { background: #fff; border-radius: var(--r); padding: 4%; box-shadow: var(--cien); }
.ksiazka h2 { font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); }
.ksiazka h2 span { display: block; font-size: .55em; color: var(--czerwien-ciemna); margin-top: 8px; letter-spacing: 0; }
.ksiazka__lead { font-size: 1.12rem; color: var(--tekst-2); margin: 20px 0; }
.ksiazka__fakty { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; }
.ksiazka__fakty li { font-weight: 700; padding: 6px 12px; border: 1.5px solid var(--granat); border-radius: var(--r); font-size: .95rem; }
.formaty { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.format { background: #fff; border: 1.5px solid var(--linia); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.format:hover { border-color: var(--granat); box-shadow: var(--cien); }
.format__nazwa { font-weight: 800; font-size: 1.08rem; margin: 0; }
.format__opis { color: var(--tekst-2); font-size: .92rem; margin: 2px 0 10px; }
.format__cena { font-weight: 800; font-size: 1.5rem; margin: auto 0 12px; font-variant-numeric: tabular-nums; }
.format__akcje { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.format__akcje a { font-size: .92rem; font-weight: 600; color: var(--tekst-2); }
.ksiazka__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 700; color: var(--granat); }

/* ---------- główna: kursy ---------- */

.kursy-duze { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); margin-bottom: clamp(20px, 2.4vw, 32px); }
.kursy-male { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.kurs { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--linia); transition: box-shadow .3s, transform .3s var(--wyjscie); }
.kurs:hover { box-shadow: var(--cien); transform: translateY(-2px); }
.kurs:hover .foto img { transform: scale(1.04); }
.kurs__foto { position: relative; display: block; }
.kurs__tresc { display: flex; flex-direction: column; flex: 1; }
.kurs__nazwa { margin: 0 18px 8px; font-size: 1.2rem; }
.kurs--duzy .kurs__nazwa { font-size: 1.55rem; }
.kurs__nazwa a { color: var(--tekst); text-decoration: none; }
.kurs__nazwa a:hover { color: var(--czerwien-ciemna); }
.kurs__lead { margin: 0 18px 16px; color: var(--tekst-2); font-size: 1rem; }
.kurs__param { margin: 0 18px 14px; color: var(--tekst-2); font-size: .92rem; }
.kurs--duzy { border: 1.5px solid color-mix(in srgb, var(--akcent) 55%, #fff); }

/* ---------- główna: pakiety jak rachunek ---------- */

.rachunek { max-width: 1040px; }
.rachunek__lista { list-style: none; margin: 0; padding: 8px 28px; background: #fff; border-radius: var(--r); box-shadow: var(--cien); }
.rachunek__wiersz { display: grid; grid-template-columns: 120px 1fr auto auto auto; gap: 22px; align-items: center; padding: 18px 0; border-bottom: 1.5px dashed var(--linia); }
.rachunek__wiersz:last-child { border-bottom: 0; }
.rachunek__foto { display: block; }
.rachunek__foto .mini { aspect-ratio: 4 / 3; transition: transform .4s var(--wyjscie); }
.rachunek__wiersz:hover .mini img { transform: scale(1.06); }
.rachunek__nazwa { text-decoration: none; color: var(--tekst); }
.rachunek__nazwa strong { display: block; font-family: var(--kroj-naglowki); font-size: 1.22rem; line-height: 1.2; }
.rachunek__nazwa span { color: var(--tekst-2); font-size: .92rem; }
.rachunek__nazwa:hover strong { color: var(--czerwien-ciemna); }
.rachunek__osobno, .rachunek__razem { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.rachunek small { font-size: .75rem; color: var(--tekst-3); text-transform: uppercase; letter-spacing: .06em; }
.rachunek__osobno s { color: var(--tekst-3); }
.rachunek__razem strong { font-size: 1.3rem; font-weight: 800; }

/* ---------- główna: myśli do pomyślenia ---------- */

.mdp { background: color-mix(in srgb, var(--akcent) 88%, #14151E); color: #fff; padding-block: clamp(56px, 7vw, 104px); }
.mdp__w { display: grid; grid-template-columns: 300px 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.mdp__okladka { display: block; border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); transform: rotate(-2deg); transition: transform .5s var(--wyjscie); }
.mdp__okladka:hover { transform: rotate(0); }
.mdp h2 { color: #fff; }
.mdp__lead { font-size: 1.12rem; margin: 18px 0 12px; color: rgba(255, 255, 255, .92); }
.mdp__nota { color: rgba(255, 255, 255, .78); font-size: .97rem; }
.mdp__kup { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 24px; }
.mdp .cena__teraz { color: #fff; font-size: 1.6rem; }
.mdp .cena__stara { color: rgba(255, 255, 255, .9); }
.mdp .przycisk { background: var(--zolty); border-color: var(--zolty); color: var(--granat); }
.mdp .przycisk:hover { background: #fff; border-color: #fff; }
.mdp__link { color: #fff; font-weight: 600; }
.mdp__glosy { display: grid; gap: 14px; }
.mdp__glosy-tytul { margin: 0; font-size: .92rem; color: rgba(255, 255, 255, .78); font-weight: 700; }
.glos { margin: 0; padding: 18px 20px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r); font-size: .98rem; line-height: 1.55; }
.glos p { margin: 0; }

/* ---------- główna: półka e-booków ---------- */

.polka { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.polka__tom { display: flex; flex-direction: column; color: var(--tekst); text-decoration: none; }
.polka__okladka { display: grid; place-items: end center; aspect-ratio: 4 / 5; background: color-mix(in srgb, var(--akcent) 12%, #fff); border-radius: var(--r); padding: 12% 14% 0; overflow: hidden; }
.polka__okladka img { box-shadow: 0 2px 4px rgba(20, 21, 30, .15), 0 18px 30px -12px rgba(20, 21, 30, .5); transition: transform .5s var(--wyjscie); transform: translateY(6%); }
.polka__tom:hover .polka__okladka img { transform: translateY(0); }
.polka__nazwa { font-family: var(--kroj-naglowki); font-weight: 700; font-size: 1.2rem; line-height: 1.2; margin: 16px 0 6px; }
.polka__tom:hover .polka__nazwa { color: var(--czerwien-ciemna); }

/* ---------- główna: autor ---------- */

.autor { position: relative; background: var(--granat-3); color: #fff; min-height: clamp(520px, 52vw, 680px); display: grid; align-items: center; overflow: hidden; }
.autor__tlo { position: absolute; inset: 0; }
.autor__tlo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.autor__tlo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 15, 26, .94) 0%, rgba(14, 15, 26, .82) 38%, rgba(14, 15, 26, .1) 75%); }
.autor__w { position: relative; padding-block: 72px; }
.autor__tekst { max-width: 560px; }
.autor h2 { color: #fff; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); margin-bottom: 20px; }
.autor .proza p { color: rgba(255, 255, 255, .88); }
.autor__podcast { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--zolty) !important; }
.autor__podcast .ik { width: 1.5em; height: 1.5em; }

/* ---------- newsletter i stopka ---------- */

.newsletter { background: var(--granat-2); color: #fff; padding-block: 40px; }
.newsletter__w { display: grid; grid-template-columns: 96px 1fr auto; gap: 28px; align-items: center; }
.newsletter__foto img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--zolty); }
.newsletter h2 { color: #fff; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); }
.newsletter p { margin: 8px 0 0; color: rgba(255, 255, 255, .8); max-width: 62ch; }

.stopka { position: relative; background: var(--granat-3); color: rgba(255, 255, 255, .8); font-size: .95rem; overflow: hidden; }
.stopka::before { content: ''; position: absolute; right: -60px; bottom: -40px; width: 380px; height: 460px; background: var(--zolty); opacity: .05; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128 8l112 120h-64v120H80V128H16z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128 8l112 120h-64v120H80V128H16z'/%3E%3C/svg%3E") center / contain no-repeat; pointer-events: none; }
.stopka__gora { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.stopka__gora-w { max-width: calc(var(--szer) + 2 * var(--gutter)); margin-inline: auto; padding: 48px var(--gutter) 40px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 40px; }
.stopka__logo { display: block; color: #fff; line-height: 0; }
.stopka__logo .logo__svg { width: 210px; }
.stopka__haslo { margin: 0; font-family: var(--kroj-naglowki); font-weight: 800; font-size: clamp(1.25rem, 1rem + .9vw, 1.7rem); line-height: 1.15; color: #fff; text-wrap: balance; }
.stopka__haslo span { display: block; color: var(--zolty); }
.stopka__kanaly { display: flex; flex-wrap: wrap; gap: 8px; }
.stopka__kanaly a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid rgba(255, 255, 255, .2); border-radius: var(--r); color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; transition: border-color .2s, background .2s, color .2s; }
.stopka__kanaly a:hover { background: var(--zolty); border-color: var(--zolty); color: var(--granat); }
.stopka__kanaly .ik { width: 1.25em; height: 1.25em; }
.stopka__w { position: relative; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 48px; max-width: calc(var(--szer) + 2 * var(--gutter)); margin-inline: auto; padding: 48px var(--gutter) 40px; }
.stopka__kol { display: flex; flex-direction: column; align-items: flex-start; }
.stopka__kol p { margin: 0 0 12px; line-height: 1.65; }
.stopka__tytul { font-family: var(--kroj-naglowki); font-weight: 800; font-size: 1.25rem; color: #fff; margin: 0 0 14px !important; display: flex; align-items: center; gap: 10px; }
.stopka__tytul--kontakt { margin-top: 14px !important; }
.stopka__kto { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.stopka__kto img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--zolty); }
.stopka__kto .stopka__tytul { margin: 0 !important; }
.stopka__kol--info { position: relative; background: #1F2131; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r); padding: 26px 28px 16px; }
.stopka__kol--info .stopka__tytul .ik { color: var(--zolty); width: 1.1em; height: 1.1em; }
.stopka__kol--info p:not(.stopka__tytul) { font-size: .9rem; color: rgba(255, 255, 255, .7); }
.stopka a, .stopka .link { color: rgba(255, 255, 255, .86); text-decoration: none; }
.stopka a:hover, .stopka .link:hover { color: var(--zolty); }
.stopka .stopka__link { color: var(--zolty); text-decoration: underline; text-underline-offset: .18em; }
.stopka__mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: #fff !important; }
.stopka__mail .ik { color: var(--zolty); }
.stopka__nawigacja { grid-column: 1 / 3; grid-row: 2; align-self: end; display: grid; gap: 10px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); }
.stopka__kol--info { grid-row: 1 / span 2; }
.stopka__nawigacja nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.stopka__nawigacja p { margin: 0; min-width: 96px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .5); }
.stopka .link { font-size: .95rem; }
.stopka__dol { max-width: calc(var(--szer) + 2 * var(--gutter)); margin-inline: auto; padding: 20px var(--gutter) 28px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .88rem; }
.stopka__dol p { margin: 0; }
.stopka__imker { display: inline-flex; align-items: center; gap: 10px; }
.stopka__imker img { width: 71px; height: auto; }

/* ---------- karta produktu: hero ---------- */

.p-hero { padding-block: 24px clamp(40px, 5vw, 72px); background: linear-gradient(180deg, color-mix(in srgb, var(--akcent) 7%, #fff) 0, #fff 520px); }
.p-hero__siatka { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.p-foto { position: relative; position: sticky; top: 96px; }
.p-foto__glowne { display: grid; place-items: center; background: color-mix(in srgb, var(--akcent) 12%, #fff); border-radius: var(--r); overflow: hidden; aspect-ratio: 1; }
.p-foto__glowne img { width: 100%; height: 100%; object-fit: contain; }
.p-foto__glowne--baner { aspect-ratio: auto; }
.p-foto__glowne--baner img { object-fit: cover; }
.p-foto__glowne--okladka img { width: auto; height: 88%; box-shadow: 0 2px 4px rgba(20, 21, 30, .15), 0 24px 40px -14px rgba(20, 21, 30, .5); }
.p-foto__glowne--kwadrat { background: #fff; border: 1px solid var(--linia); }
.p-foto__znaczki { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; }
.p-foto__miniatury { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; position: relative; }
.p-foto__miniatury a { display: block; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; border: 1.5px solid var(--linia); background: #fff; }
.p-foto__miniatury a:hover { border-color: var(--granat); }
.p-foto__miniatury img { width: 100%; height: 100%; object-fit: cover; }
.p-foto__wiecej { position: absolute; right: 0; bottom: 0; width: calc((100% - 40px) / 5); aspect-ratio: 1; display: grid; place-items: center; background: rgba(32, 35, 54, .8); color: #fff; font-weight: 800; border-radius: var(--r); pointer-events: none; }

.p-kup { display: flex; flex-direction: column; }
.p-kup__typ { margin: 0 0 8px; font-size: .85rem; font-weight: 800; color: color-mix(in srgb, var(--akcent) 72%, #14151E); text-transform: uppercase; letter-spacing: .07em; }
.p-kup h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem); }
.p-kup__lead { font-size: 1.12rem; color: var(--tekst-2); margin: 16px 0 18px; }
.parametry { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.parametry li { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.parametry .ik { color: var(--czerwien); margin-top: .2em; }
.warianty { margin-bottom: 20px; }
.warianty__tytul { font-weight: 700; margin-bottom: 8px; font-size: .95rem; }
.warianty__lista { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.wariant { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border: 1.5px solid var(--linia); border-radius: var(--r); color: var(--tekst); text-decoration: none; font-size: .95rem; line-height: 1.3; background: #fff; }
.wariant:hover { border-color: var(--granat); }
.wariant strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wariant { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "ikony cena" "nazwa cena"; row-gap: 6px; }
.wariant__ikony { grid-area: ikony; display: flex; gap: 6px; color: var(--granat); }
.wariant__ikony .ik { width: 22px; height: 22px; }
.wariant__nazwa { grid-area: nazwa; }
.wariant strong { grid-area: cena; align-self: center; }
.wariant[aria-current="true"] .wariant__ikony { color: var(--czerwien); }
.format__ikony { display: flex; gap: 6px; margin: 0 0 8px; color: var(--czerwien); }
.format__ikony .ik { width: 24px; height: 24px; }
.wariant[aria-current="true"] { border-color: var(--czerwien); box-shadow: inset 0 0 0 1px var(--czerwien); background: #FDF3F3; }
.p-kup > .cena { padding: 18px 0 4px; border-top: 1px solid var(--linia); }
.p-kup > .cena .cena__teraz { font-size: 2.2rem; line-height: 1; }
.p-kup > .cena .cena__stara { font-size: 1.15rem; }
.p-kup__omnibus, .p-kup__isbn { margin: 6px 0 0; font-size: .82rem; color: var(--tekst-3); }
.p-kup__przyciski { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 20px 0 18px; }
.p-kup__przyciski .przycisk { min-height: 56px; font-size: 1.05rem; }
.p-kup__przyciski .przycisk--jasny { border-color: var(--granat); }
.p-kup__brak { margin: 18px 0; padding: 16px 18px; background: var(--szary); border-radius: var(--r); color: var(--tekst-2); }
.p-kup__brak a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.zaufanie { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .93rem; color: var(--tekst-2); }
.zaufanie li { display: flex; align-items: flex-start; gap: 10px; }
.zaufanie .ik { color: var(--granat); margin-top: .15em; }

.dobierz { border: 1.5px solid var(--linia); border-radius: var(--r); padding: 6px 14px 10px; margin: 20px 0 0; }
.dobierz legend { font-weight: 800; padding: 0 6px; margin-left: -6px; font-size: .95rem; }
.dobierz__opcja { display: grid; grid-template-columns: auto 52px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linia); cursor: pointer; }
.dobierz__opcja:last-child { border-bottom: 0; }
.dobierz__opcja input { width: 20px; height: 20px; accent-color: var(--czerwien); }
.dobierz__opcja img { width: 52px; height: 52px; object-fit: cover; border-radius: 3px; }
.dobierz__nazwa { font-size: .93rem; font-weight: 600; line-height: 1.3; }
.dobierz__nazwa small { display: block; font-weight: 400; color: var(--tekst-3); font-size: .82rem; }
.dobierz__cena { font-weight: 800; font-size: .95rem; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; }
.dobierz__cena s { font-weight: 400; color: var(--tekst-3); font-size: .82rem; }

/* ---------- karta produktu: spis sekcji ---------- */

.p-spis { position: sticky; top: calc(var(--wys-naglowka, 76px) - 1px); z-index: 30; background: #fff; border-block: 1px solid var(--linia); }
.p-spis__w { position: relative; display: flex; align-items: center; justify-content: safe center; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: calc(var(--szer) + 2 * var(--gutter)); margin-inline: auto; padding: 0 var(--gutter); }
.p-spis__w::-webkit-scrollbar { display: none; }
.p-spis a { flex: none; padding: 15px 14px; color: var(--tekst-2); text-decoration: none; font-weight: 600; font-size: 1.2rem; border-bottom: 3px solid transparent; }
.p-spis a:hover { color: var(--tekst); }
.p-spis a.aktywny { color: var(--tekst); border-bottom-color: var(--czerwien); }
.p-spis__kup { position: absolute; right: var(--gutter); background: #fff; display: none; align-items: center; gap: 14px; flex: none; padding-left: 16px; }
.p-spis.pokaz-kup .p-spis__kup { display: flex; }
.p-spis__produkt { position: absolute; left: var(--gutter); display: none; align-items: center; gap: 12px; background: #fff; max-width: 300px; }
.p-spis.pokaz-kup .p-spis__produkt { display: flex; }
.p-spis__foto { width: 56px; aspect-ratio: 4 / 3; border-radius: 3px; overflow: hidden; background: color-mix(in srgb, var(--akcent) 12%, #fff); flex: none; }
.p-spis__foto img { width: 100%; height: 100%; object-fit: contain; }
.p-spis__nazwa { font-family: var(--kroj-naglowki); font-weight: 800; font-size: 1.05rem; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1240px) { .p-spis.pokaz-kup .p-spis__produkt { display: none; } }
.wiecej { display: flex; justify-content: center; margin: clamp(28px, 4vw, 44px) 0 0; }
/* nagłówki w opisach na środku */
.opis .w-waska.proza h2, .opis .pas__tekst h2 { text-align: center; }
.opis .w-waska.proza h2::after, .opis .pas__tekst h2::after { left: 50%; translate: -50% 0; }
/* zdjęcia w opisach wg proporcji */
.pas__foto { margin-inline: auto; box-shadow: var(--cien); }
.pas__foto--pasek { box-shadow: none; border: 1px solid var(--linia); }
.dwa--pion { grid-template-columns: minmax(0, 360px) 1fr; justify-content: center; }
.dwa--pion.dwa--odwr { grid-template-columns: 1fr minmax(0, 360px); }
.dwa--pion .dwa__foto img { max-height: 640px; width: 100%; object-fit: contain; }
/* dla kogo jest / nie jest */
.dla-kogo__siatka { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 1040px; margin: 8px auto 0; }
.dla-kogo__kol { border-radius: var(--r); padding: 26px 28px; border: 1.5px solid; }
.dla-kogo__kol--tak { background: #EEF7F1; border-color: #BFE0CB; }
.dla-kogo__kol--nie { background: #FCF1F1; border-color: #EFC7C7; }
.dla-kogo__tytul { font-family: var(--kroj-naglowki); font-weight: 800; font-size: 1.25rem; margin-bottom: 16px; }
.dla-kogo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dla-kogo li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.08rem; line-height: 1.5; }
.dla-kogo li .ik { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; color: #fff; margin-top: 1px; }
.dla-kogo__kol--tak .ik { background: var(--zielony); }
.dla-kogo__kol--nie .ik { background: var(--czerwien); }
.dla-kogo .proza h2 { text-align: center; }
@media (max-width: 760px) { .dla-kogo__siatka { grid-template-columns: 1fr; } .dwa--pion, .dwa--pion.dwa--odwr { grid-template-columns: 1fr; } .dwa--pion .dwa__foto { max-width: 320px; margin-inline: auto; } }

/* ---------- karta produktu: pakiety ---------- */

.pakiety-oferta { background: var(--szary); padding-block: clamp(48px, 6vw, 80px); }
.pakiety-oferta__siatka { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 980px; margin-inline: auto; }
.pakiet { position: relative; display: grid; grid-template-columns: 132px 1fr; gap: 20px; background: #fff; border: 1.5px solid var(--linia); border-radius: var(--r); padding: 20px; }
.pakiet--polecany { border-color: var(--czerwien); }
.pakiet__znaczek { position: absolute; top: -12px; left: 20px; }
.pakiet__foto { display: block; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: color-mix(in srgb, var(--akcent) 12%, #fff); }
.pakiet__foto img { width: 100%; height: 100%; object-fit: cover; }
.pakiet h3 a { color: var(--tekst); text-decoration: none; }
.pakiet__sklad { color: var(--tekst-2); font-size: .93rem; margin: 6px 0 8px; }
.pakiet__zysk { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--zielony); background: #E6F3EC; padding: 3px 8px; border-radius: var(--r); }
.pakiet__dol { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- karta produktu: opis ---------- */

.opis { padding-block: clamp(28px, 3.5vw, 48px) 0; }
.blok { padding-block: clamp(18px, 2.4vw, 32px); }
.blok + .blok { padding-top: clamp(10px, 1.2vw, 16px); }
.blok--tlo { background: var(--szary); margin-block: clamp(20px, 3vw, 40px); padding-block: clamp(44px, 5.5vw, 76px); }
.proza { max-width: 880px; }
.opis .proza h2 { position: relative; padding-bottom: 14px; margin-bottom: 22px; text-align: center; }
.opis .dwa .proza h2 { text-align: left; }
.opis .proza h2::after { content: ''; position: absolute; left: 50%; translate: -50% 0; bottom: 0; width: 44px; height: 3px; background: var(--czerwien); }
.opis .dwa .proza h2::after { left: 0; translate: none; }
.opis .wideo__tytul { text-align: center; }
.opis .proza--srodek h2::after { left: 50%; translate: -50% 0; }
.opis .proza > p:first-child { font-size: 1.28rem; color: var(--tekst); }
.proza h2 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.2rem); margin: 0 0 18px; }
.proza h3 { margin: 1.6em 0 .6em; }
.proza p, .proza li { font-size: 1.12rem; line-height: 1.7; }
.proza--duza p, .proza--duza li { font-size: 1.18rem; }
.proza ul, .proza ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.proza li { margin-bottom: .35em; }
.proza li::marker { color: var(--czerwien); font-weight: 700; }
.proza strong { font-weight: 700; }
.proza--srodek { text-align: center; margin-inline: auto; }
.dwa { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4.5vw, 72px); align-items: center; }
.dwa--odwr .dwa__foto { order: 2; }
.dwa__foto { display: block; width: 100%; justify-self: center; border-radius: var(--r); overflow: hidden; box-shadow: var(--cien); }
.dwa__foto img { width: 100%; transition: transform .6s var(--wyjscie); }
.dwa__foto:hover img { transform: scale(1.03); }
.pas { display: grid; gap: clamp(24px, 3vw, 40px); justify-items: center; }
.pas__foto { display: block; max-width: 1040px; width: 100%; border-radius: var(--r); overflow: hidden; }
.pas__foto img { width: 100%; }
.pas__tekst { width: 100%; max-width: 880px; }
.w-waska.proza { max-width: calc(880px + 2 * var(--gutter)); }
.wideo-szerokie { max-width: 980px; margin-top: 24px; }
.wideo { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: var(--r); overflow: hidden; background: var(--granat-3); }
.wideo img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s; }
.wideo:hover img { opacity: 1; }
.wideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wideo__play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: var(--czerwien); color: #fff; display: grid; place-items: center; transition: transform .3s var(--wyjscie); }
.wideo:hover .wideo__play { transform: scale(1.08); }
.wideo__play .ik { width: 34px; height: 34px; margin-left: 4px; }
.wideo__tytul { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.2rem); margin-bottom: 8px; }
.wideo__podpis { margin-top: 10px; color: var(--tekst-3); font-size: .92rem; }
.cytaty { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.cytaty--1 { grid-template-columns: minmax(0, 760px); justify-content: center; }
.cytat { position: relative; margin: 0; background: #fff; border-radius: var(--r); padding: 28px 28px 24px 28px; box-shadow: var(--cien); font-size: 1.08rem; line-height: 1.6; }
.cytat p { margin: 0; }
.cytat__znak { position: absolute; top: -14px; left: 22px; width: 36px; height: 36px; color: #fff; background: var(--czerwien); border-radius: 50%; padding: 7px; }
.uwaga { display: flex; gap: 16px; background: var(--zolty-jasny); border-radius: var(--r); padding: 20px 22px; }
.uwaga > .ik { color: var(--granat); width: 1.6em; height: 1.6em; }
.spis-tresci { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.spis-tresci__glowa p { color: var(--tekst-2); margin-top: 12px; }
.mozaika { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; }
.mozaika a { display: block; overflow: hidden; border-radius: var(--r); background: var(--szary); }
.mozaika img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--wyjscie); }
.mozaika a:hover img { transform: scale(1.07); }
.mozaika--5 a:first-child, .mozaika--7 a:first-child { grid-column: span 2; grid-row: span 2; }
.mozaika--2 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 320px; }
.mozaika--3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; }
.mozaika--4 { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; }
.mozaika--7 { grid-template-columns: repeat(5, 1fr); }

.opinie__siatka { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.opinia { margin: 0; background: #fff; border-radius: var(--r); padding: 24px; border: 1px solid var(--linia); }
.opinia blockquote { margin: 0 0 14px; font-size: 1.05rem; }

.autor-karta { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--granat); color: #fff; border-radius: var(--r); padding: clamp(24px, 3vw, 40px); }
.autor-karta__foto { border-radius: var(--r); overflow: hidden; aspect-ratio: 1; }
.autor-karta__foto img { width: 100%; height: 100%; object-fit: cover; }
.autor-karta h2 { color: #fff; }
.autor-karta .proza p { color: rgba(255, 255, 255, .86); font-size: 1.05rem; }
.autor-karta a { color: var(--zolty); }

.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1.5px solid var(--linia); border-radius: var(--r); transition: border-color .2s; }
.faq details[open] { border-color: var(--granat); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 700; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ik { color: var(--czerwien); transition: transform .3s var(--wyjscie); }
.faq details[open] summary .ik { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 18px; color: var(--tekst-2); }
.faq details > div p:last-child { margin-bottom: 0; }
.spis-tresci .faq { margin: 0; max-width: none; }

.pasek-kup { display: none; }

/* ---------- koszyk ---------- */

.koszyk-ekran { padding-top: clamp(28px, 3.5vw, 48px); }
.koszyk-ekran h1 { margin-bottom: 24px; }
.koszyk-komunikat { display: flex; align-items: center; gap: 10px; background: #E6F3EC; color: var(--zielony); font-weight: 700; padding: 12px 16px; border-radius: var(--r); margin-bottom: 20px; }
.koszyk-strona { display: grid; grid-template-columns: 1fr 380px; gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.koszyk-lista { display: grid; gap: 14px; }
.poz { display: grid; grid-template-columns: 168px 1fr auto; gap: 24px; align-items: center; padding: 18px; background: #fff; border: 1.5px solid var(--linia); border-radius: var(--r); }
.poz__foto { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--szary); border-radius: 3px; overflow: hidden; }
.poz img { width: 100%; height: 100%; object-fit: contain; }
.poz__nazwa { display: block; font-family: var(--kroj-naglowki); font-weight: 800; font-size: 1.35rem; color: var(--tekst); text-decoration: none; line-height: 1.2; }
.poz__nazwa:hover { color: var(--czerwien-ciemna); }
.poz__typ { display: block; color: var(--tekst-2); font-size: 1rem; margin: 6px 0 14px; }
.poz__ilosc { display: inline-flex; align-items: center; border: 1.5px solid var(--linia); border-radius: var(--r); }
.poz__ilosc button { width: 44px; height: 44px; background: none; border: 0; display: grid; place-items: center; }
.poz__ilosc button:hover { color: var(--czerwien); }
.poz__ilosc span { min-width: 34px; text-align: center; font-weight: 800; font-size: 1.1rem; }
.poz__prawo { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-variant-numeric: tabular-nums; }
.poz__prawo s { color: var(--tekst-3); font-size: .9rem; display: block; text-align: right; }
.poz__prawo strong { font-size: 1.6rem; font-weight: 800; }
.poz__prawo s { font-size: 1rem !important; }
.poz__usun { background: none; border: 0; color: var(--tekst-3); font-size: .88rem; display: inline-flex; align-items: center; gap: 4px; padding: 4px; }
.poz__usun:hover { color: var(--czerwien); }
.dostawa-info { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 12px 16px; background: var(--szary); border-radius: var(--r); font-size: .95rem; }
.zamiana { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; margin-top: 20px; padding: 18px; border: 2px dashed var(--czerwien); border-radius: var(--r); background: #FDF3F3; }
.zamiana img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--r); }
.zamiana__tytul { font-weight: 800; margin-bottom: 4px; }
.zamiana p { font-size: .95rem; }
.koszyk-sekcja { margin-top: 40px; }
.koszyk-sekcja h2 { font-size: 1.6rem; margin-bottom: 22px; text-align: center; position: relative; padding-bottom: 14px; }
.koszyk-sekcja h2::after { content: ''; position: absolute; left: 50%; translate: -50% 0; bottom: 0; width: 48px; height: 3px; background: var(--czerwien); }
.dobierz-siatka { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.dobierz-siatka > * { flex: 0 1 calc((100% - 28px) / 3); }
.propozycja { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; border: 1px solid var(--linia); border-radius: var(--r); padding: 12px; background: #fff; }
.propozycja__foto { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: var(--szary); }
.propozycja__foto img { width: 100%; height: 100%; object-fit: cover; }
.propozycja__nazwa { font-weight: 700; color: var(--tekst); text-decoration: none; line-height: 1.3; font-size: .97rem; }
.propozycja__powod { font-size: .85rem; color: var(--zielony); font-weight: 600; }
.propozycja .cena { margin-top: auto; justify-content: center; }
.propozycja__foto { align-self: stretch; }
.propozycja .przycisk { align-self: stretch; }
.propozycja .cena__teraz { font-size: 1.05rem; }
.koszyk-strona__bok { position: sticky; top: 96px; background: var(--granat); color: #fff; border-radius: var(--r); padding: 26px; }
.podsumowanie__tytul { color: #fff; font-size: 1.5rem; margin-bottom: 16px; }
.podsumowanie { display: grid; gap: 10px; margin-bottom: 22px; font-variant-numeric: tabular-nums; }
.podsumowanie > div { display: flex; justify-content: space-between; gap: 12px; color: rgba(255, 255, 255, .86); }
.podsumowanie small { display: block; font-size: .8rem; color: rgba(255, 255, 255, .6); }
.podsumowanie__zysk { color: #8FE0B3 !important; }
.podsumowanie__razem { padding-top: 14px; margin-top: 4px; border-top: 1px dashed rgba(255, 255, 255, .3); font-weight: 800; font-size: 1.35rem; color: var(--zolty) !important; }
.koszyk-strona__bok .przycisk { min-height: 56px; }
.szuflada__nota { font-size: .86rem; color: rgba(255, 255, 255, .7); margin: 14px 0; }
.koszyk-strona__bok .zaufanie { color: rgba(255, 255, 255, .8); font-size: .88rem; }
.koszyk-strona__bok .zaufanie .ik { color: var(--zolty); }
.koszyk-dalej { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: #fff; font-weight: 600; font-size: .92rem; }
.koszyk-dalej .ik { transform: scaleX(-1); }
.koszyk-pasek { display: none; }
.pusty { text-align: center; padding: 20px 0; }
.pusty__tytul { font-family: var(--kroj-naglowki); font-weight: 800; font-size: 1.8rem; margin-bottom: 6px; }
.pusty .siatka-produktow { text-align: left; margin-top: 32px; }

/* ---------- okno „dodano” ---------- */

.dodano { width: min(520px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: var(--r); box-shadow: var(--cien-duzy); color: var(--tekst); }
.dodano::backdrop { background: rgba(14, 15, 26, .6); }
.dodano[open] { animation: okno .4s var(--wyjscie); }
@keyframes okno { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.dodano__gora { display: flex; align-items: center; gap: 12px; background: var(--granat); color: #fff; padding: 14px 18px; }
.dodano__ptaszek { width: 32px; height: 32px; border-radius: 50%; background: var(--zolty); color: var(--granat); display: grid; place-items: center; flex: none; }
.dodano__tytul { margin: 0; font-weight: 800; font-size: 1.1rem; flex: 1; }
.dodano__x { background: none; border: 0; color: #fff; width: 36px; height: 36px; display: grid; place-items: center; }
.dodano__produkt { display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: center; padding: 18px; }
.dodano__produkt img { width: 100px; height: 100px; object-fit: cover; border-radius: var(--r); background: var(--szary); }
.dodano__nazwa { font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.dodano__extra { display: block; font-size: .88rem; color: var(--tekst-2); margin-bottom: 6px; }
[data-dodano-propozycja] { padding: 0 18px; }
.dodano__rabat { display: flex; align-items: center; gap: 8px; color: var(--zielony); font-weight: 700; font-size: .95rem; }
.dodano__pasuje { font-weight: 800; font-size: .9rem; margin: 4px 0 8px; text-transform: uppercase; letter-spacing: .05em; color: var(--tekst-2); }
.dodano__prop { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px; background: var(--szary); border-radius: var(--r); }
.dodano__prop img { width: 64px; height: 64px; object-fit: cover; border-radius: 3px; }
.dodano__prop-tytul { margin: 0 0 2px; font-weight: 700; font-size: .93rem; line-height: 1.3; }
.dodano__prop span { font-size: .85rem; color: var(--tekst-2); }
.dodano__przyciski { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px; }

/* ---------- zgoda, lightbox ---------- */

.zgoda { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 420px; background: #fff; border-radius: var(--r); box-shadow: var(--cien-duzy); padding: 18px; font-size: .92rem; border: 1px solid var(--linia); }
.zgoda p { margin-bottom: 12px; }
.zgoda__przyciski { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; }
.lightbox::backdrop { background: rgba(10, 11, 18, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 88dvh; width: auto; object-fit: contain; border-radius: var(--r); }
.ikona-przycisk { position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.ikona-przycisk:hover { background: rgba(255, 255, 255, .24); }
.ikona-przycisk .ik { width: 1.5em; height: 1.5em; }
.lightbox__zamknij { top: 16px; right: 16px; }
.lightbox__nav--wstecz { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__nav--dalej { right: 16px; top: 50%; translate: 0 -50%; }

/* ---------- informacje, 404 ---------- */

.informacja { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.informacja__menu { position: sticky; top: 100px; display: grid; gap: 4px; }
.informacja__menu a { color: var(--tekst-2); text-decoration: none; padding: 10px 14px; border-radius: var(--r); font-weight: 600; }
.informacja__menu a:hover { background: var(--szary); color: var(--tekst); }
.informacja__menu a[aria-current="page"] { background: var(--granat); color: #fff; }
.informacja__tresc h1 { margin-bottom: 24px; }
.informacja__tresc h2 { font-size: 1.4rem; margin: 1.6em 0 .6em; }
.informacja__tresc p, .informacja__tresc li { font-size: 1rem; }
.prosta { padding-block: clamp(64px, 9vw, 120px) 24px; text-align: center; }
.prosta__kod { font-family: var(--kroj-naglowki); font-weight: 800; font-size: clamp(5rem, 3rem + 8vw, 9rem); line-height: 1; color: var(--zolty); margin-bottom: 8px; }
.prosta .wstep { margin: 16px auto 28px; }
.prosta p:last-child { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }

/* ---------- responsywność ---------- */

@media (max-width: 1100px) {
  .mdp__w { grid-template-columns: 260px 1fr; }
  .mdp__glosy { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .mdp__glosy-tytul { grid-column: 1 / -1; }
  .stopka__w { grid-template-columns: 1fr 1fr; }
  .stopka__kol--info { grid-column: 1 / -1; grid-row: auto; }
  .stopka__nawigacja { grid-row: auto; }
  .stopka__gora-w { grid-template-columns: auto 1fr; }
  .stopka__kanaly { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .naglowek__w { grid-template-columns: auto 1fr auto; gap: 12px; padding-block: 10px; }
  .logo__svg { width: 168px; }
  .przycisk-menu { display: grid; }
  .menu { position: fixed; inset: 64px 0 auto 0; display: none; flex-direction: column; gap: 0; background: var(--granat); padding: 8px var(--gutter) 20px; box-shadow: 0 20px 30px -10px rgba(0, 0, 0, .5); }
  .menu-otwarte .menu { display: flex; }
  .menu a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .1); border-radius: 0; }
  .menu a::after { display: none; }
  .menu .menu__dom { display: inline-flex; align-items: center; }
  .hero__w { grid-template-columns: 1fr; }
  .hero__scena { justify-self: center; width: min(88%, 440px); margin: 12px 0 24px; }
  .start__wiersz { grid-template-columns: 44px 1fr 28px; gap: 12px 14px; padding: 18px 4px; }
  .start__ikona { width: 44px; height: 44px; grid-row: 1; align-self: start; }
  .start__ikona .ik { width: 22px; height: 22px; }
  .start__problem { grid-column: 2; }
  .start__produkt { grid-column: 2; }
  .start__strzalka { grid-column: 3; grid-row: 1 / span 2; }
  .ksiazka__w, .p-hero__siatka, .spis-tresci, .informacja { grid-template-columns: 1fr; }
  .kursy-duze { grid-template-columns: 1fr; }
  .kurs--duzy { display: grid; grid-template-columns: 1fr 1fr; }
  .polka { grid-template-columns: repeat(2, 1fr); }
  .p-foto { position: static; }
  .p-spis__kup { display: none !important; }
  .dwa { grid-template-columns: 1fr; }
  .dwa--odwr .dwa__foto { order: 0; }
  .koszyk-strona { grid-template-columns: 1fr; }
  .koszyk-strona__bok { position: static; }
  .informacja__menu { position: static; display: flex; flex-wrap: wrap; }
  .autor-karta { grid-template-columns: 1fr; }
  .autor-karta__foto { max-width: 280px; }
  .newsletter__w { grid-template-columns: 72px 1fr; }
  .newsletter__foto img { width: 72px; height: 72px; }
  .newsletter__w > .przycisk { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 640px) {
  body { font-size: 1.03rem; }
  .przycisk-koszyk__suma { display: none; }
  .przycisk-koszyk { padding: 10px; }
  .hero__cta .przycisk { width: 100%; }
  .hero__ksiazka { left: -8%; width: 30%; }
  .hero__metka { right: -6px; bottom: 12px; font-size: .8rem; max-width: 150px; }
  .formaty { grid-template-columns: 1fr; }
  .format { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
  .format__ikony { grid-column: 1 / -1; }
  .format__cena { grid-column: 2; grid-row: 2 / span 2; margin: 0; font-size: 1.3rem; }
  .format__akcje { grid-column: 1 / -1; }
  .kurs--duzy { display: flex; }
  .kursy-male { grid-template-columns: 1fr; }
  .kursy-male .kurs { display: grid; grid-template-columns: 120px 1fr; }
  .kursy-male .kurs .foto { height: 100%; aspect-ratio: auto; }
  .kursy-male .kurs__nazwa { margin: 12px 14px 4px; font-size: 1.08rem; }
  .kursy-male .karta__typ { margin: 12px 14px 0; }
  .kursy-male .kurs__param { margin: 0 14px 8px; }
  .kursy-male .karta__dol { margin: auto 14px 12px; padding-top: 10px; }
  .rachunek__lista { padding: 4px 16px; }
  .rachunek__wiersz { grid-template-columns: 96px 1fr auto; gap: 8px 14px; }
  .rachunek__foto { grid-row: 1 / span 2; align-self: start; }
  .rachunek__nazwa { grid-column: 2 / -1; }
  .rachunek__osobno { align-items: flex-start; grid-column: 2; }
  .rachunek__wiersz .przycisk { grid-column: 1 / -1; }
  .mdp__w { grid-template-columns: 1fr; }
  .mdp__okladka { max-width: 190px; }
  .mdp__glosy { grid-template-columns: 1fr; }
  .polka { gap: 16px; }
  .polka__nazwa { font-size: 1.05rem; }
  .autor { min-height: 0; align-items: end; }
  .autor__tlo { position: relative; height: 260px; }
  .autor__tlo::after { background: linear-gradient(180deg, transparent 40%, var(--granat-3)); }
  .autor__w { padding-block: 8px 56px; }
  .stopka__w { grid-template-columns: 1fr; gap: 32px; }
  .stopka__gora-w { grid-template-columns: 1fr; padding-top: 40px; }
  .stopka__kol--info { padding: 22px 18px 10px; }
  .stopka__nawigacja p { min-width: 100%; }
  .stopka__nawigacja { grid-column: 1; }
  .warianty__lista { grid-template-columns: 1fr; }
  .p-kup__przyciski { grid-template-columns: 1fr; }
  .pakiet { grid-template-columns: 88px 1fr; padding: 16px; }
  .cytaty { grid-template-columns: 1fr; }
  .mozaika, .mozaika--7 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .mozaika--3 { grid-template-columns: 1fr 1fr; }
  .mozaika--3 a:first-child { grid-column: span 2; }
  .mozaika--5 a:first-child { grid-row: span 1; }
  .mozaika--2 { grid-auto-rows: 200px; }
  .dobierz-siatka > * { flex-basis: calc((100% - 14px) / 2); }
  .poz { grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; }
  .poz__nazwa { font-size: 1.15rem; }
  .poz__prawo strong { font-size: 1.35rem; }
  .poz__prawo { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
  .zamiana { grid-template-columns: 80px 1fr; }
  .zamiana img { width: 80px; height: 80px; }
  .dodano__przyciski { grid-template-columns: 1fr; }
  .dodano__przyciski .przycisk:last-child { order: -1; }
  .zgoda { left: 8px; right: 8px; bottom: 8px; max-width: none; }
  .ma-pasek-kup .zgoda { bottom: 84px; }
  .ma-pasek-kup { padding-bottom: 76px; }
  .pasek-kup { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #fff; border-top: 1px solid var(--linia); box-shadow: 0 -8px 24px -8px rgba(32, 35, 54, .25); padding: 10px 16px; align-items: center; justify-content: space-between; gap: 12px; transform: translateY(110%); transition: transform .35s var(--wyjscie); }
  .pasek-kup.widoczny { transform: none; }
  .pasek-kup__nazwa { margin: 0; font-size: .85rem; color: var(--tekst-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
  .koszyk-pasek:not([hidden]) { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--granat); color: #fff; padding: 10px 16px; align-items: center; justify-content: space-between; gap: 12px; }
  .koszyk-pasek span { display: block; font-size: .8rem; color: rgba(255, 255, 255, .7); }
  .koszyk-pasek strong { color: var(--zolty); font-size: 1.2rem; }
  .koszyk-ekran { padding-bottom: 96px; }
  .ikona-przycisk { width: 44px; height: 44px; }
}

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