/*
Theme Name: Słowo po upadku
Theme URI: https://slowopoupadku.pl
Author: NextLevelAds
Author URI: https://nextlevelads.pl
Description: Motyw strony i sklepu „Słowo po upadku” (S. Wierzbicki). Strona główna, blog z felietonami, kontakt z formularzem oraz sklep oparty na WooCommerce. Teksty, linki i komunikaty edytowalne w Wygląd → Dostosuj.
Version: 1.4.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
WC requires at least: 8.0
WC tested up to: 9.8
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: slowo-po-upadku
*/

/* =========================================================
   SŁOWO PO UPADKU, wizualizacja B (nowoczesna)
   Promienie: przyciski = pigułka, karty/zdjęcia = 24px, pola formularza = 14px.
   Warstwy (z-index): 10 nagłówek, 20 menu mobilne, 30 toast, 40 ziarno.
   ========================================================= */
:root {
  --bg: #fafafa;
  --surface: #f0f0f1;
  --surface-2: #e7e7e9;
  --ink: #111113;
  --ink-2: #3a3a40;
  --muted: #6b6b73;
  --line: rgba(17, 17, 19, .1);
  --red: #c1121f;
  --red-deep: #9e0e19;
  --dark: #121214;
  --dark-2: #1c1c1f;
  --r-card: 24px;
  --r-input: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Geist", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --read: "Literata", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::after {
  /* delikatne ziarno, tylko na stałej warstwie */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
main { flex: 1 0 auto; }
.red { color: var(--red); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--red); }
.h2 {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: .98;
  font-weight: 700;
  letter-spacing: -.045em;
  color: var(--ink);
}
.h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--ink);
}
.ph { line-height: 1; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease);
}
.btn .ph, .btn .ph-fill { font-size: 18px; transition: transform .35s var(--ease); }
.btn:hover .ph-arrow-right, .btn:hover .ph-arrow-up-right { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -12px rgba(193, 18, 31, .55); }
.btn-red:hover { background: var(--red-deep); }
.btn-line { background: transparent; color: var(--ink); border-color: rgba(17, 17, 19, .2); }
.btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fafafa; color: var(--ink); }
.btn-light:hover { background: #fff; }
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .45s var(--ease), color .3s;
}
.link:hover { background-size: 100% 1px; }
.link .ph { transition: transform .35s var(--ease); }
.link:hover .ph { transform: translateX(3px); }
.link.red { color: var(--red); }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 250, 250, .78);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
}
.wordmark {
  justify-self: start;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark span { color: var(--red); }
.nav-links {
  display: flex;
  gap: 4px;
  padding: 5px;
  margin: 0;
  list-style: none;
  border-radius: 999px;
  background: rgba(17, 17, 19, .045);
}
.nav-links a {
  display: block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color .3s var(--ease), color .3s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }
.nav-links a.active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(17, 17, 19, .08), 0 4px 12px -6px rgba(17, 17, 19, .15); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .3s, transform .2s var(--ease);
}
.cart-btn:hover { border-color: rgba(17, 17, 19, .3); }
.cart-btn:active { transform: scale(.97); }
.cart-btn .ph { font-size: 18px; }
.cart-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 22px;
  text-align: center;
  transition: background-color .3s, color .3s;
}
.cart-count.has { background: var(--red); color: #fff; }
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.mobile-menu {
  position: fixed;
  inset: 72px 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px var(--gutter) 32px;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
}
.menu-ready .mobile-menu { transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -.04em;
  color: var(--ink);
}
.mobile-menu li a.active { color: var(--red); }
.mobile-menu li a .ph { font-size: 26px; color: var(--muted); }
.mobile-menu .socials-row { display: flex; gap: 12px; }
.menu-open { overflow: hidden; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
main { animation: pageIn .7s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: clamp(560px, 76dvh, 760px);
  margin: 4px clamp(8px, 1.2vw, 16px) 0;
  padding: clamp(22px, 3vw, 44px);
  border-radius: 36px;
  overflow: hidden;
  background: #1a1a1d;
  color: #fafafa;
  animation: heroIn 1.3s var(--ease) both;
}
@keyframes heroIn { from { clip-path: inset(5% 3% 0 3% round 36px); } to { clip-path: inset(0 0 0 0 round 36px); } }
.hero-bg { position: absolute; inset: -18% -36% 0 0; z-index: -2; overflow: hidden; }
.hero-bg picture { display: block; width: 100%; height: 100%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-x, 50%) var(--hero-y, 42%); animation: kenburns 3s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.2); filter: brightness(.55); } to { transform: scale(1.02); filter: brightness(1); } }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 12, 14, .42) 0%, rgba(12, 12, 14, 0) 26%, rgba(12, 12, 14, .12) 50%, rgba(12, 12, 14, .86) 100%),
    linear-gradient(90deg, rgba(12, 12, 14, .5) 0%, rgba(12, 12, 14, 0) 55%);
  opacity: var(--hero-overlay, 1);
}
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hero .eyebrow { margin: 0; color: #fafafa; }
.hero-social { display: flex; gap: 8px; animation: wordIn 1s var(--ease) .3s both; }
.hero-social a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 19px;
  transition: background-color .3s var(--ease), color .3s, transform .3s var(--ease);
}
.hero-social a:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end; }
.display {
  margin: 0 0 28px;
  font-size: clamp(52px, 8.2vw, 124px);
  line-height: .86;
  font-weight: 800;
  letter-spacing: -.06em;
  color: var(--ink);
}
.hero .display { font-size: clamp(60px, 11vw, 190px); color: #fafafa; text-shadow: 0 12px 50px rgba(0, 0, 0, .25); }
.display .ln { display: block; white-space: nowrap; }
.display .w { display: inline-block; animation: wordIn 1.1s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 350ms); }
.display .fall {
  display: inline-block;
  margin-left: .1em;
  transform-origin: 50% 50%;
  animation: wordIn 1.1s var(--ease) both, fall 1.05s linear 1.25s forwards;
  animation-delay: 680ms, 1.25s;
}
@keyframes wordIn { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
@keyframes fall {
  0% { transform: translateY(0) rotate(0); animation-timing-function: cubic-bezier(.5, 0, .9, .45); }
  58% { transform: translateY(-.1em) rotate(186deg); animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
  76% { transform: translateY(-.1em) rotate(171deg); animation-timing-function: ease-in-out; }
  89% { transform: translateY(-.1em) rotate(177deg); animation-timing-function: ease-in-out; }
  100% { transform: translateY(-.1em) rotate(174deg); }
}
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 40px; }
.hero-sub {
  margin: 0;
  max-width: 32ch;
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.3;
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .92);
  animation: wordIn 1.1s var(--ease) .75s both;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; animation: wordIn 1.1s var(--ease) .85s both; }
.hero .btn-line { color: #fff; border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero .btn-line:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* szklana karta książki w hero (webowe przybliżenie efektu matowego szkła) */
.hero-card {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  width: 460px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: linear-gradient(135deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06));
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 30px 70px -30px rgba(0, 0, 0, .7);
  color: #fff;
  animation: cardIn 1.2s var(--ease) 1.1s both;
  transition: transform .5s var(--ease);
}
.hero-card:hover { transform: translateY(-4px); }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
.mini-book {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 2px 5px 5px 2px;
  overflow: hidden;
  transform: rotate(-5deg);
  box-shadow: -10px 14px 24px rgba(0, 0, 0, .5);
  transition: transform .6s var(--ease);
}
.hero-card:hover .mini-book { transform: rotate(0deg) scale(1.04); }
.mini-book img { width: 100%; height: 100%; object-fit: cover; }
.mini-book::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.4) 0, rgba(255,255,255,.25) 3%, rgba(0,0,0,.1) 7%, rgba(255,255,255,0) 11%); }
.hc-body { display: grid; gap: 4px; }
.hc-body .k { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.hc-body strong { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.045em; }
.hc-body .lead { font-size: 16px; line-height: 1.35; color: rgba(255, 255, 255, .82); }
.hc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.hc-foot .p { font-size: 23px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hc-foot .go {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 20px;
  transition: transform .4s var(--ease);
}
.hero-card:hover .go { transform: translateX(4px); }
@media (prefers-reduced-transparency: reduce) {
  .hero-card, .hero-social a, .hero .btn-line { background: rgba(20, 20, 22, .92); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* paralaksa hero napędzana przewijaniem (CSS scroll-driven, bez nasłuchiwania scrolla) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-bg { animation: heroPar linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero-bottom, .hero-top { animation: heroLift linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
  }
}
@keyframes heroPar { to { transform: translateY(15%); } }
@keyframes heroLift { to { transform: translateY(-70px); opacity: .15; } }

/* wprowadzenie pod hero (statyczne) */
section.intro { padding-top: clamp(72px, 9vw, 136px); padding-bottom: clamp(72px, 9vw, 136px); }
.intro-title {
  margin: 0 0 clamp(40px, 5vw, 72px);
  max-width: 17ch;
  font-size: clamp(42px, 6.2vw, 96px);
  line-height: .95;
  font-weight: 800;
  letter-spacing: -.055em;
  color: var(--ink);
}
.intro-title span { color: var(--red); }
.intro-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.intro-lead { margin: 0 0 28px; max-width: 38ch; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.5; letter-spacing: -.015em; color: var(--ink-2); }
.intro-lead strong { font-weight: 600; color: var(--ink); }
.intro-points { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.intro-points li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.intro-points .ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(193, 18, 31, .08);
  color: var(--red);
  font-size: 24px;
}
.intro-points h3 { margin: 2px 0 6px; font-size: 21px; line-height: 1.2; font-weight: 650; letter-spacing: -.025em; color: var(--ink); }
.intro-points p { margin: 0; font-size: 16px; color: var(--muted); }

/* =========================================================
   EDEN (jedyny ciemny blok strony)
   ========================================================= */
.eden {
  margin: 0 clamp(8px, 1.2vw, 16px);
  border-radius: 36px;
  background: radial-gradient(120% 80% at 20% 30%, #232327 0%, var(--dark) 60%);
  color: #c9c9cf;
  overflow: hidden;
}
.eden .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
  padding-top: clamp(64px, 9vw, 128px);
  padding-bottom: clamp(64px, 9vw, 128px);
}
.eden .eyebrow { color: #fafafa; }
.eden-title {
  margin: 0 0 18px;
  font-size: clamp(72px, 10vw, 150px);
  line-height: .85;
  font-weight: 800;
  letter-spacing: -.065em;
  color: #fafafa;
}
.eden-lead { margin: 0 0 20px; font-size: clamp(20px, 1.8vw, 25px); line-height: 1.35; letter-spacing: -.02em; color: #fafafa; }
.eden-desc { margin: 0 0 40px; max-width: 56ch; color: #a8a8b0; }
.buy {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.buy .price { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: #fafafa; }
.perks { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 15px; color: #a8a8b0; }
.perks li { display: flex; align-items: center; gap: 10px; }
.perks .ph { font-size: 20px; color: #fafafa; }
.alt-format { margin-top: 18px; font-size: 15px; color: #8c8c95; }
.alt-format a { color: #fafafa; }

/* Książka 3D */
.book-stage { display: grid; place-items: center; perspective: 1800px; padding: 20px 0; }
.book3d {
  --rx: 4deg;
  --ry: -24deg;
  position: relative;
  width: min(320px, 70vw);
  aspect-ratio: 2 / 3;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .9s var(--ease);
}
.book3d > * { position: absolute; }
.book3d .front {
  inset: 0;
  transform: translateZ(19px);
  border-radius: 2px 6px 6px 2px;
  overflow: hidden;
  background: #ddd;
}
.book3d .front img { width: 100%; height: 100%; object-fit: cover; }
.book3d .front::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.35) 0, rgba(255,255,255,.2) 2.2%, rgba(0,0,0,.08) 4.5%, rgba(255,255,255,0) 7%), linear-gradient(120deg, rgba(255,255,255,.16), rgba(255,255,255,0) 45%);
}
.book3d .pages {
  top: 4px;
  bottom: 4px;
  right: 0;
  width: 36px;
  transform: translateX(18px) rotateY(90deg);
  background: repeating-linear-gradient(90deg, #f2f2f0 0 1px, #d9d9d6 1px 2px);
}
.book3d .spine {
  top: 0;
  bottom: 0;
  left: 0;
  width: 38px;
  transform: translateX(-19px) rotateY(-90deg);
  background: linear-gradient(90deg, #0b0b0c, #2a2a2c 50%, #0b0b0c);
}
.book3d .back { inset: 0; transform: translateZ(-19px) rotateY(180deg); background: #151517; border-radius: 6px 2px 2px 6px; }
.book-shadow {
  position: absolute;
  left: 8%;
  right: 2%;
  bottom: -34px;
  height: 40px;
  background: radial-gradient(closest-side, rgba(0,0,0,.55), rgba(0,0,0,0));
  transform: translateZ(-40px) rotateX(90deg);
  filter: blur(6px);
}
.on-light .book-shadow { background: radial-gradient(closest-side, rgba(17,17,19,.28), rgba(17,17,19,0)); }

/* =========================================================
   NAJNOWSZE WPISY (strona główna)
   ========================================================= */
.section { padding-top: clamp(80px, 11vw, 160px); }
.posts-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.posts-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); }
.post-feature .media, .post-mini .media, .blog-row .media, .article-cover {
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--surface-2);
}
.post-feature .media { aspect-ratio: 16 / 11; margin-bottom: 26px; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
a:hover .media img, .post-feature:hover .media img, .post-mini:hover .media img, .blog-row:hover .media img { transform: scale(1.045); }
.meta { display: block; margin-bottom: 10px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.post-feature h3 { margin: 0 0 12px; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.05; font-weight: 650; letter-spacing: -.035em; color: var(--ink); }
.post-feature p { margin: 0 0 18px; max-width: 46ch; }
.post-side { display: grid; gap: clamp(28px, 3vw, 44px); align-content: start; }
.post-mini { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 22px; align-items: start; }
.post-mini .media { aspect-ratio: 1; }
.post-mini h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.15; font-weight: 600; letter-spacing: -.025em; color: var(--ink); }
.post-mini p { margin: 0 0 12px; font-size: 16px; }
.post-side .note {
  padding: 28px;
  border-radius: var(--r-card);
  background: var(--surface);
}

/* =========================================================
   O AUTORZE
   ========================================================= */
.about-statement {
  margin: 0 0 56px;
  font-size: clamp(56px, 9vw, 140px);
  line-height: .9;
  font-weight: 800;
  letter-spacing: -.06em;
  color: var(--ink);
}
.about-statement span { color: var(--red); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.about-person { display: flex; gap: 22px; align-items: flex-start; }
.about-person img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; filter: grayscale(1) contrast(1.05); }
.about-person p { margin: 0; max-width: 44ch; font-size: 18px; }
.about-person strong { display: block; margin-bottom: 6px; font-weight: 600; color: var(--ink); }
.quote {
  margin: 0;
  padding-left: clamp(20px, 3vw, 44px);
  border-left: 2px solid var(--red);
}
.quote p {
  margin: 0 0 18px;
  font-family: var(--read);
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--ink);
  padding-bottom: 4px;
}
.quote cite { font-style: normal; font-size: 15px; font-weight: 500; color: var(--muted); }

/* =========================================================
   BĄDŹ NA BIEŻĄCO (Facebook)
   ========================================================= */
.news {
  position: relative;
  display: grid;
  min-height: 460px;
  border-radius: var(--r-card);
  overflow: hidden;
  align-items: end;
  background: var(--surface-2);
}
.news > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-card {
  position: relative;
  max-width: 460px;
  margin: clamp(16px, 3vw, 40px);
  padding: clamp(24px, 3vw, 40px);
  border-radius: 20px;
  background: rgba(250, 250, 250, .88);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 24px 60px -30px rgba(17, 17, 19, .35);
}
.news-card h2 { margin: 0 0 10px; font-size: clamp(30px, 3vw, 42px); line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--ink); }
.news-card p { margin: 0 0 24px; }

/* =========================================================
   STOPKA
   ========================================================= */
.site-footer { margin-top: clamp(80px, 11vw, 160px); background: var(--bg); border-top: 1px solid var(--line); overflow: hidden; }
.footer-mark { align-self: start; font-size: 20px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.footer-top h4 { margin: 0 0 16px; font-size: 14px; font-weight: 600; color: var(--muted); }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-top a { color: var(--ink); transition: color .25s; }
.footer-top a:hover { color: var(--red); }
.socials { display: flex; gap: 10px; }
.socials a {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
  transition: background-color .3s var(--ease), color .3s, transform .3s var(--ease);
}
.socials a:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a:hover { color: var(--ink); }

/* obserwuj nas (strona główna) */
.follow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 48px;
  align-items: center;
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.follow p { margin: 14px 0 0; max-width: 46ch; font-size: 18px; }
.follow-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* notka o autorze (blog, kontakt) */
.author-note .about-grid { padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }

/* =========================================================
   NAGŁÓWEK PODSTRONY
   ========================================================= */
.page-head { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(40px, 5vw, 72px); }
.page-head h1 {
  margin: 0 0 16px;
  font-size: clamp(64px, 11vw, 176px);
  line-height: .84;
  font-weight: 800;
  letter-spacing: -.065em;
  color: var(--ink);
}
.page-head p { margin: 0; max-width: 34ch; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35; letter-spacing: -.02em; color: var(--ink-2); }
.page-head.compact h1, .contact.compact h1 { font-size: clamp(44px, 5.6vw, 84px); line-height: .92; letter-spacing: -.05em; }
.page-head.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.page-head.split .head-media { border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.page-head.split .head-media img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   SKLEP
   ========================================================= */
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.product-tile { display: block; }
.product-tile .stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  margin-bottom: 26px;
  border-radius: var(--r-card);
  background: radial-gradient(90% 70% at 50% 40%, #fff 0%, var(--surface) 70%);
  overflow: hidden;
  perspective: 1600px;
}
.product-tile .book3d { width: min(230px, 46%); --ry: -26deg; }
.product-tile:hover .book3d { --ry: -14deg; }
.product-tile .info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: end; }
.product-tile h2 { text-transform: uppercase;  margin: 0; font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--ink); }
.product-tile .format { margin: 0; color: var(--muted); }
.product-tile .desc { grid-column: 1 / -1; margin: 10px 0 18px; max-width: 42ch; }
.product-tile .price { grid-row: 1; grid-column: 2; margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.product-tile .btn { grid-column: 1 / -1; justify-self: start; }

/* tablet */
.tablet {
  position: relative;
  width: min(230px, 50%);
  aspect-ratio: .7;
  padding: 5.5% 5.5% 9%;
  border-radius: 22px;
  background: linear-gradient(150deg, #2d2d31, #0e0e10 45%, #1d1d20);
  box-shadow: inset 0 0 0 1.5px #3a3a3f, 0 40px 60px -30px rgba(17, 17, 19, .5), 0 10px 20px -10px rgba(17, 17, 19, .3);
  transform: rotate(-4deg);
  transition: transform .9s var(--ease);
}
.product-tile:hover .tablet { transform: rotate(0deg) translateY(-6px); }
.tablet .screen { width: 100%; height: 100%; border-radius: 6px; overflow: hidden; background: #000; }
.tablet .screen img { width: 100%; height: 100%; object-fit: cover; }
.tablet::after { content: ""; position: absolute; left: 50%; bottom: 3.2%; width: 7%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; border: 1.5px solid #46464b; }

/* =========================================================
   KARTA PRODUKTU
   ========================================================= */
.crumbs { display: flex; align-items: center; gap: 8px; padding-top: 28px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--ink); }
.crumbs a:hover { color: var(--red); }
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
  padding-top: 24px;
}
.p-gallery { position: sticky; top: 96px; }
.p-gallery .stage {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--r-card);
  background: radial-gradient(90% 70% at 50% 40%, #fff 0%, var(--surface) 70%);
  perspective: 1600px;
  overflow: hidden;
}
.p-gallery .book3d { width: min(290px, 52%); }
.p-gallery .tablet { width: min(300px, 56%); }
.thumbs { display: flex; gap: 10px; margin-top: 14px; }
.thumbs button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 18px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .3s, color .3s, background-color .3s;
}
.thumbs button img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.thumbs button.active { border-color: var(--ink); color: var(--ink); }
.product-info .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(193, 18, 31, .08);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--red);
}
.product-info h1 { margin: 0; font-size: clamp(64px, 8vw, 120px); line-height: .85; font-weight: 800; letter-spacing: -.065em; color: var(--ink); }
.product-info .author { margin: 14px 0 26px; font-size: 18px; color: var(--muted); }
.product-info .lead { margin: 0 0 14px; font-size: 24px; line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
.product-info .desc { margin: 0 0 32px; max-width: 54ch; }
.product-info .price { margin: 0 0 20px; font-size: 40px; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; }
.buy-row .btn { flex: 1 1 220px; }
.facts { display: grid; gap: 2px; margin: 28px 0 0; padding: 0; list-style: none; }
.facts li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  font-size: 15.5px;
  color: var(--ink);
}
.facts li:first-child { border-radius: 18px 18px 4px 4px; }
.facts li:last-child { border-radius: 4px 4px 18px 18px; }
.facts li:only-child { border-radius: 18px; }
.facts .ph { font-size: 22px; color: var(--red); }

.tabs { margin-top: clamp(56px, 8vw, 110px); }
.tablist { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface); }
.tablist button {
  height: 44px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s;
}
.tablist button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(17, 17, 19, .08), 0 4px 12px -6px rgba(17, 17, 19, .15); }
.tabpanel { max-width: 68ch; padding-top: 28px; font-family: var(--read); font-size: 19px; line-height: 1.7; color: var(--ink); }
.tabpanel p { margin: 0; }

/* =========================================================
   BLOG
   ========================================================= */
.blog-list { display: grid; gap: clamp(40px, 6vw, 88px); }
.blog-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.blog-row .meta { margin: 6px 0 0; }
.blog-row h2 { margin: 0 0 14px; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.02; font-weight: 650; letter-spacing: -.04em; color: var(--ink); transition: color .3s; }
.blog-row:hover h2 { color: var(--red); }
.blog-row p { margin: 0 0 20px; max-width: 40ch; }
.blog-row .media { aspect-ratio: 16 / 10; }

/* Wpis */
.article { max-width: 760px; margin: 0 auto; padding-top: clamp(40px, 6vw, 88px); }
.article h1 { margin: 12px 0 0; font-size: clamp(40px, 5.6vw, 76px); line-height: .98; font-weight: 750; letter-spacing: -.05em; color: var(--ink); }
.article-cover { aspect-ratio: 16 / 9; margin: clamp(32px, 5vw, 56px) 0; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body p { margin: 0 0 24px; font-family: var(--read); font-size: clamp(19px, 1.5vw, 21px); line-height: 1.75; color: var(--ink); }
.article-body .lead-in { font-size: clamp(22px, 2vw, 26px); line-height: 1.5; }
.article-body .soon { color: var(--muted); font-style: italic; }
.article .back { margin-top: 24px; }

/* =========================================================
   KONTAKT
   ========================================================= */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
  padding-top: clamp(40px, 7vw, 96px);
}
.contact h1 { margin: 0 0 12px; font-size: clamp(64px, 9vw, 150px); line-height: .84; font-weight: 800; letter-spacing: -.065em; color: var(--ink); }
.contact .kicker { margin: 0 0 22px; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.03em; color: var(--red); }
.contact .intro { margin: 0 0 36px; max-width: 40ch; font-size: 18px; }
.mail-big {
  display: inline-block;
  margin-bottom: 40px;
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--ink);
  word-break: break-word;
  background: linear-gradient(var(--red), var(--red)) 0 100% / 100% 2px no-repeat;
  padding-bottom: 4px;
  transition: color .3s;
}
.mail-big:hover { color: var(--red); }
.social-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.social-pills a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 500;
  color: var(--ink);
  transition: background-color .3s var(--ease), color .3s, border-color .3s;
}
.social-pills a .ph { font-size: 20px; }
.social-pills a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.form-panel { padding: clamp(24px, 3.5vw, 48px); border-radius: var(--r-card); background: var(--surface); }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.field label small { font-weight: 400; color: var(--muted); font-size: 14px; }
.field input, .field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(17, 17, 19, .14);
  border-radius: var(--r-input);
  background: #fff;
  font-size: 16px;
  color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #75757d; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17, 17, 19, .08); }
.field .err { display: none; font-size: 14px; color: var(--red); }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.field.invalid .err { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 24px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); flex: none; cursor: pointer; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.consent-err { display: none; margin: -14px 0 20px; font-size: 14px; color: var(--red); }
.consent-err.show { display: block; }
.form-panel .btn { width: 100%; }
.sent { display: grid; justify-items: start; gap: 14px; padding: 12px 0; }
.sent .ph { font-size: 44px; color: var(--red); }
.sent h2 { margin: 0; font-size: 34px; line-height: 1.05; font-weight: 700; letter-spacing: -.04em; color: var(--ink); }
.sent p { margin: 0 0 8px; }

/* ---------- Toast ---------- */

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: 1fr; }
  .post-side { grid-template-columns: 1fr 1fr; }
  .blog-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .blog-row .meta { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .cart-btn .label { display: none; }
  .cart-btn { padding: 0 10px 0 12px; }

  .hero { min-height: 560px; border-radius: 28px; }
  .hero-top { margin-bottom: 72px; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-bg { inset: -18% -60% 0 0; }
  .hero-card { width: 100%; max-width: 480px; }
  .display { margin-bottom: 24px; }

  .eden .wrap { grid-template-columns: 1fr; }
  .book-stage { padding: 0 0 24px; }

  .about-grid { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: 1fr; }

  .page-head.split { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr; }

  .product-layout { grid-template-columns: 1fr; }
  .p-gallery { position: static; }
  .p-gallery .stage { aspect-ratio: 5 / 4; }

  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .display, .hero .display { font-size: 17vw; }
  .hero-social { display: none; }
  .hero-sub { max-width: none; }
  .hero-card { grid-template-columns: 84px minmax(0, 1fr); padding: 16px; gap: 18px; }
  .hc-body strong { font-size: 30px; }
  .hc-body .lead { font-size: 14.5px; }
  .hc-foot .p { font-size: 20px; }
  .page-head h1, .contact h1 { font-size: 22vw; }
  .page-head.compact h1, .contact.compact h1 { font-size: 13vw; }
  .follow { grid-template-columns: 1fr; }
  .follow-links .btn { flex: 1 1 100%; }
  .hero-cta .btn { flex: 1 1 140px; }
  .buy { gap: 18px; }
  .buy .btn { width: 100%; }
  .perks { flex-direction: column; gap: 12px; }
  .posts-head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
  .post-side { grid-template-columns: 1fr; }
  .post-mini { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
  .post-mini h3 { font-size: 19px; }
  .post-mini p { display: none; }
  .about-person { flex-direction: column; }
  .news { min-height: 520px; }
  .blog-row { grid-template-columns: 1fr; }
  .blog-row .media { grid-row: 2; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .product-tile .info { grid-template-columns: 1fr auto; }
  .product-tile .btn { width: 100%; justify-self: stretch; }
  .buy-row .btn { flex-basis: 100%; }
  .tablist { display: flex; }
  .tablist button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .display .fall { transform: translateY(-.1em) rotate(174deg); }
}

/* =========================================================
   WORDPRESS: elementy systemowe
   ========================================================= */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed !important;
  top: 12px;
  left: 12px;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
}
body.admin-bar .site-header { top: 32px; }
body.admin-bar .mobile-menu { inset: 104px 0 0; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .mobile-menu { inset: 118px 0 0; }
}
@media (max-width: 600px) {
  body.admin-bar .site-header { top: 0; }
}

/* aktywna pozycja menu (klasy nadawane przez WordPress) */
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links .current-menu-parent > a,
.nav-links .current-page-ancestor > a {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(17, 17, 19, .08), 0 4px 12px -6px rgba(17, 17, 19, .15);
}
.mobile-menu .current-menu-item > a,
.mobile-menu .current_page_item > a,
.mobile-menu .current-menu-parent > a { color: var(--red); }
.nav-links .sub-menu, .mobile-menu .sub-menu { display: none; }

/* przycisk koszyka jako link */
a.cart-btn { text-decoration: none; }

/* =========================================================
   TREŚĆ Z EDYTORA (wpisy, strony, regulaminy)
   ========================================================= */
.entry-content > * { margin-top: 0; }
.entry-content p { margin: 0 0 24px; }
.entry-content h2, .entry-content h3, .entry-content h4 {
  margin: 48px 0 16px;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--ink);
}
.entry-content h2 { font-size: clamp(28px, 2.6vw, 36px); }
.entry-content h3 { font-size: clamp(22px, 2vw, 26px); }
.entry-content h4 { font-size: 19px; }
.entry-content a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--red-deep); }
.entry-content ul, .entry-content ol { margin: 0 0 24px; padding-left: 1.3em; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote, .entry-content .wp-block-quote {
  margin: 36px 0;
  padding: 0 0 0 clamp(20px, 3vw, 36px);
  border-left: 2px solid var(--red);
  font-family: var(--read);
  font-style: italic;
  font-size: 1.15em;
  color: var(--ink);
}
.entry-content img { height: auto; border-radius: var(--r-input); }
.entry-content figure { margin: 36px 0; }
.entry-content figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.entry-content hr { margin: 48px 0; border: 0; border-top: 1px solid var(--line); }
.entry-content table { width: 100%; margin: 0 0 24px; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* treść wpisu w kroju do czytania */
.article-body.entry-content { font-family: var(--read); font-size: clamp(19px, 1.5vw, 21px); line-height: 1.75; color: var(--ink); }
.article-body.entry-content h2, .article-body.entry-content h3 { font-family: var(--font); }

/* zwykła strona (regulamin, polityka, dostawa) */
.page-body { max-width: 780px; padding-bottom: 24px; font-size: 17.5px; line-height: 1.75; color: var(--ink-2); }
.page-wide { padding-bottom: 24px; }

/* blog: wpis bez zdjęcia */
.blog-row.no-media { grid-template-columns: 160px minmax(0, 1fr); }
.blog-row.no-media > div { max-width: 760px; }

/* stronicowanie */
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(40px, 6vw, 72px); }
.pager .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 500;
  color: var(--ink);
  transition: background-color .3s, color .3s, border-color .3s;
}
.pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager a.page-numbers:hover { border-color: var(--ink); }

/* 404 i puste stany */
.empty-state { padding: clamp(32px, 5vw, 64px) 0; }
.empty-state p { margin: 0 0 24px; max-width: 46ch; font-size: 18px; }

/* komunikaty formularza kontaktowego */
.form-notice {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: var(--r-input);
  background: #fff;
  border-left: 3px solid var(--red);
  font-size: 15px;
  color: var(--ink);
}
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sent a.btn { text-decoration: none; }

/* =========================================================
   WOOCOMMERCE
   ========================================================= */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 0 0 24px;
  padding: 16px 20px;
  list-style: none;
  border-radius: var(--r-input);
  background: var(--surface);
  border-left: 3px solid var(--red);
  font-size: 15.5px;
  color: var(--ink);
}
.woocommerce-error li { margin: 0; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; }
.single-notices { padding-top: 24px; }

/* przyciski WooCommerce w stylu motywu */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt,
.wc-block-components-button:not(.is-link), .wp-block-button__link, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), transform .2s var(--ease);
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.wc-block-components-button:not(.is-link):hover, .wp-block-button__link:hover { background: var(--red-deep); color: #fff; }
.woocommerce a.button:active, .woocommerce button.button:active { transform: scale(.98); }
.woocommerce button.button:disabled, .woocommerce button.button.disabled { opacity: .5; cursor: not-allowed; }

/* ceny */
.price del, .hc-foot .p del { opacity: .45; font-weight: 400; margin-right: 8px; }
.price ins, .hc-foot .p ins { text-decoration: none; }

/* karta produktu: formularz dodania do koszyka */
.product-info form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 0; }
.product-info form.cart .single_add_to_cart_button { flex: 1 1 220px; min-height: 54px; }
.product-info form.cart .single_add_to_cart_button::after {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='16' d='M184 184H69.8L41.9 30.6A8 8 0 0 0 34.1 24H16'/%3E%3Ccircle cx='80' cy='204' r='20' fill='none' stroke='%23000' stroke-width='16'/%3E%3Ccircle cx='184' cy='204' r='20' fill='none' stroke='%23000' stroke-width='16'/%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='16' d='M62.5 144h125.6a16 16 0 0 0 15.7-13.1L216 64H48'/%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 fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='16' d='M184 184H69.8L41.9 30.6A8 8 0 0 0 34.1 24H16'/%3E%3Ccircle cx='80' cy='204' r='20' fill='none' stroke='%23000' stroke-width='16'/%3E%3Ccircle cx='184' cy='204' r='20' fill='none' stroke='%23000' stroke-width='16'/%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='16' d='M62.5 144h125.6a16 16 0 0 0 15.7-13.1L216 64H48'/%3E%3C/svg%3E") center / contain no-repeat;
}
.product-info .stock { margin: 0 0 14px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.product-info .stock.out-of-stock { color: var(--red); }
.product-info .tag.preorder { margin-left: 6px; background: var(--ink); color: #fff; }
.preorder-note {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: var(--r-input);
  background: rgba(193, 18, 31, .07);
  font-size: 15px;
  color: var(--ink);
}
.product-info .desc p { margin: 0 0 12px; }
.tabpanel.entry-content p { margin: 0 0 20px; }
.p-gallery .stage img { display: block; }

/* pole ilości (WooCommerce .quantity + przyciski dodawane skryptem) */
.quantity {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}
.quantity .qty-step {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background-color .25s;
}
.quantity .qty-step:hover { background: var(--surface); }
.quantity input.qty {
  width: 44px;
  height: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  -moz-appearance: textfield;
}
.quantity input.qty:focus-visible { outline: none; }
.quantity input.qty::-webkit-outer-spin-button, .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity input[type="hidden"] + .qty-step, .quantity.hidden { display: none; }

/* strony WooCommerce (koszyk, kasa, moje konto) w wersji klasycznej */
.woocommerce table.shop_table { width: 100%; margin: 0 0 32px; border-collapse: collapse; font-size: 16px; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.woocommerce table.shop_table th { font-size: 14px; font-weight: 600; color: var(--muted); }
.woocommerce table.shop_table img { width: 64px; height: auto; border-radius: 6px; }
.woocommerce a.remove { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; color: var(--red) !important; font-size: 20px; text-decoration: none; }
.woocommerce a.remove:hover { background: rgba(193, 18, 31, .08); }
.woocommerce form .form-row { margin: 0 0 18px; }
.woocommerce form .form-row label { display: block; margin-bottom: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce-cart .coupon input.input-text {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(17, 17, 19, .14);
  border-radius: var(--r-input);
  background: #fff;
  font-size: 16px;
  color: var(--ink);
}
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17, 17, 19, .08); }
.woocommerce .cart-collaterals, .woocommerce-checkout-review-order { margin-top: 24px; }
.woocommerce ul.woocommerce-shipping-methods, .woocommerce ul.wc_payment_methods { list-style: none; margin: 0; padding: 0; }
.woocommerce ul.wc_payment_methods li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.woocommerce .payment_box { margin-top: 10px; padding: 14px 16px; border-radius: var(--r-input); background: var(--surface); font-size: 15px; }
.woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.woocommerce-MyAccount-navigation a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: #fff; border-color: var(--ink); }

/* bloki WooCommerce (koszyk i kasa jako bloki) */
.wc-block-cart, .wc-block-checkout { font-family: var(--font); }
.wc-block-components-text-input input, .wc-block-components-textarea, .wc-blocks-components-select__select {
  border-radius: var(--r-input) !important;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-weight: 700; }

@media (max-width: 640px) {
  .quantity { flex: 1; justify-content: space-between; }
  .product-info form.cart .single_add_to_cart_button { flex-basis: 100%; }
  .blog-row.no-media { grid-template-columns: 1fr; }
  .woocommerce table.shop_table_responsive thead { display: none; }
  .woocommerce table.shop_table_responsive tr td { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; }
  .woocommerce table.shop_table_responsive tr td::before { content: attr(data-title); font-weight: 600; color: var(--muted); }
}

/* nagłówek WordPress: menu w elemencie <nav> */
@media (max-width: 860px) {
  .site-header .nav > nav { display: none; }
}
.mobile-menu nav ul { list-style: none; margin: 0; padding: 0; }
/* miniatury zdjęć produktu (podpis opcjonalny z biblioteki mediów) */
.p-gallery .thumbs button { padding: 6px 14px 6px 6px; }
.p-gallery .thumbs button img { width: 34px; height: 34px; }

/* =========================================================
   WERSJA MOBILNA: wyśrodkowanie nagłówków i treści
   ========================================================= */
@media (max-width: 860px) {
  /* hero: hasło na środku */
  .hero-row { flex-direction: column; align-items: stretch; }
  .hero-sub { max-width: none; text-align: center; }

  /* wprowadzenie: nagłówek, tekst i przycisk na środku */
  .intro-title { max-width: none; margin-left: auto; margin-right: auto; text-align: center; }
  .intro-grid > div:first-child { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .intro-lead { margin-left: auto; margin-right: auto; }

  /* obserwuj nas */
  .follow { justify-items: center; text-align: center; }
  .follow p { margin-left: auto; margin-right: auto; }
  .follow-links { justify-content: center; }

  /* nagłówki podstron: sklep, blog, archiwa, strony */
  .page-head, .page-head.split > div:first-child { text-align: center; }
  .page-head p { margin-left: auto; margin-right: auto; }

  /* kontakt: nagłówek, podtytuł, tekst, e-mail, profile */
  .contact > div:first-child { text-align: center; }
  .contact .intro { margin-left: auto; margin-right: auto; }
  .contact .social-pills { justify-content: center; }
}

@media (max-width: 640px) {
  /* hero: przyciski obok siebie, równej szerokości */
  .hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .hero-cta .btn { width: 100%; min-width: 0; padding: 0 14px; }
  .hero-cta .btn:only-child { grid-column: 1 / -1; }
}
