/* Juliusz Tomczak – paleta i krój ze starej strony, nowoczesny układ */
:root {
  --accent: #a0876e;
  --accent-dark: #7d654d;
  --heading: #5c544d;
  --text: #3f4245;
  --ink: #1d1a16;
  --dark: #2f2a23;
  --darker: #1f1b17;
  --paper: #f7f4ef;
  --paper-2: #efe9e0;
  --line: #e2dbd0;
  --white: #fff;
  --serif: 'Old Standard TT', Georgia, 'Times New Roman', serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(29, 26, 22, .06), 0 12px 32px rgba(29, 26, 22, .10);
  --shadow-lg: 0 2px 4px rgba(29, 26, 22, .06), 0 24px 60px rgba(29, 26, 22, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--serif); font-size: clamp(1.02rem, .98rem + .25vw, 1.125rem); line-height: 1.75; color: var(--text); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.15; font-weight: 700; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.section { padding-block: clamp(56px, 9vw, 112px); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--dark); color: #d6cec3; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.center { text-align: center; }
.muted { color: #7a736b; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* etykieta nad nagłówkiem: kapitaliki z kreską */
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-dark); font-weight: 700; margin-bottom: 18px; }
.kicker::before { content: ''; width: 32px; height: 1px; background: currentColor; }
.section--dark .kicker { color: var(--accent); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin: 0; }
.lead { font-size: 1.18em; color: var(--heading); max-width: 40em; }
.center .lead { margin-inline: auto; }

/* przyciski */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: .85em 1.6em; border-radius: 999px; background: var(--ink); color: var(--white); text-decoration: none; font: inherit; font-weight: 700; font-size: .95rem; border: 1px solid var(--ink); cursor: pointer; transition: background .2s, color .2s, transform .2s, border-color .2s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); transform: translateY(-1px); }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: #cdc4b7; }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); }
.section--dark .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.35); }
.link-arrow { font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: ' →'; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(29, 26, 22, .06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { text-decoration: none; color: var(--ink); line-height: 1.1; white-space: nowrap; display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; background: var(--dark); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: .95rem; letter-spacing: .02em; flex: none; }
.brand strong { display: block; font-size: 1.2rem; }
.brand span { font-size: .8rem; color: #7a736b; letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; text-decoration: none; color: var(--text); padding: 8px 12px; border-radius: 999px; white-space: nowrap; font-size: .98rem; }
.nav a:hover { color: var(--ink); background: var(--paper); }
.nav a[aria-current='page'] { color: var(--ink); font-weight: 700; }
.nav a[aria-current='page']::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav .lang { margin-left: 10px; font-size: .82rem; letter-spacing: .08em; border: 1px solid var(--line); padding: 6px 12px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: inherit; color: var(--ink); cursor: pointer; align-items: center; gap: 8px; }
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px var(--gutter) 20px; max-height: calc(100dvh - 76px); overflow: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:hover { background: none; }
  .nav a[aria-current='page']::after { display: none; }
  .nav a[aria-current='page'] { color: var(--accent-dark); }
  .nav .lang { margin: 16px 0 0; align-self: flex-start; border-radius: 999px; }
}

/* ---------- hero strony głównej ---------- */
.home-hero { position: relative; background: var(--dark) center / cover no-repeat; color: #eee6da; overflow: hidden; }
.home-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29, 26, 22, .82) 0%, rgba(29, 26, 22, .55) 55%, rgba(29, 26, 22, .25) 100%); }
.home-hero .wrap { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: min(88vh, 780px); padding-block: clamp(64px, 10vw, 120px); }
.home-hero .wrap > div { max-width: 640px; }
.home-hero h1 { margin-bottom: .35em; color: var(--white); }
.home-hero h1 em { font-style: italic; color: #d9c4ad; font-weight: 400; }
.home-hero .kicker { color: #d9c4ad; }
.home-hero .lead { color: #e2d8cc; }
.home-hero .btn { background: var(--accent); border-color: var(--accent); }
.home-hero .btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .45); }
.home-hero .btn--ghost:hover { background: var(--white); color: var(--ink); }
.home-hero .facts { border-top-color: rgba(255, 255, 255, .2); }
.home-hero .facts b { color: var(--white); }
.home-hero .facts span { color: #cfc4b6; }
.home-hero .caption { position: absolute; right: var(--gutter); bottom: 16px; font-size: .78rem; color: #cfc4b6; font-style: italic; }
.home-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-figure { position: relative; margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); filter: sepia(.25) contrast(1.02); }
.hero-figure figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(31, 27, 23, .82); color: #e8e0d4; font-size: .8rem; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.hero-figure::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--accent); border-radius: var(--radius); z-index: -1; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; }
.facts b { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); color: var(--ink); line-height: 1.1; }
.facts span { font-size: .85rem; color: #7a736b; }

/* ---------- nagłówek podstron ---------- */
.page-head { position: relative; background: var(--dark) center / cover no-repeat; color: #eee6da; text-align: center; }
.page-head::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(29, 26, 22, .55), rgba(29, 26, 22, .78)); }
.page-head .wrap { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: clamp(280px, 38vw, 440px); padding-block: clamp(56px, 8vw, 96px); }
.page-head .hero-title { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); line-height: 1.1; color: var(--white); font-weight: 700; margin: 0 0 .3em; text-wrap: balance; max-width: 22ch; }
.page-head .sub { font-size: 1.2em; color: #e2d8cc; margin: 0; font-style: italic; }
.page-head .kicker { color: #d9c4ad; }
.page-head .kicker::after { content: ''; width: 32px; height: 1px; background: currentColor; }
.page-head .lead { color: #e2d8cc; margin-inline: auto; }
.crumbs { font-size: .85rem; color: #cfc4b6; margin-bottom: 16px; }
.crumbs a { color: inherit; }

/* ---------- siatki i karty ---------- */
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.split { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse > :first-child { order: 2; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }

/* tematy badań */
.topics { display: grid; gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 600px) { .topics { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .topics { grid-template-columns: repeat(3, 1fr); } }
.topic { background: var(--dark); padding: 28px 24px; text-decoration: none; color: #cfc6ba; display: flex; flex-direction: column; gap: 6px; transition: background .25s; }
.topic:hover { background: #3a342b; color: #e8e0d4; }
.topic .icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: 10px; }
.topic h3 { color: var(--white); font-size: 1.15rem; margin: 0; }
.topic p { margin: 0; font-size: .92rem; }
.topic .count { margin-top: auto; padding-top: 12px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

.feature { padding: 4px; }
.feature .icon { width: 40px; height: 40px; margin-bottom: 14px; color: var(--accent); }
.feature h3 { margin-bottom: .3em; }
.section--dark .feature p { color: #bdb4a8; }

/* karta publikacji */
.pub-grid { display: grid; gap: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 32px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.pub { display: flex; flex-direction: column; position: relative; }
.pub .cover { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: var(--paper-2); box-shadow: var(--shadow); transition: transform .35s, box-shadow .35s; }
.pub .cover img { width: 100%; height: 100%; object-fit: contain; padding: 10px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.15)); }
.pub:hover .cover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pub .meta { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); margin: 18px 0 6px; font-weight: 700; }
.pub h3 { font-size: 1.12rem; line-height: 1.3; margin: 0 0 6px; }
.pub h3 a { color: var(--ink); text-decoration: none; }
.pub h3 a::after { content: ''; position: absolute; inset: 0; }
.pub .journal { font-size: .9rem; color: #7a736b; margin: 0; font-style: italic; }

/* lista publikacji (bibliografia) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; position: sticky; top: 76px; z-index: 5; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); padding: 12px 0; }
.chip { font: inherit; font-size: .9rem; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--text); cursor: pointer; transition: .2s; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip small { opacity: .6; margin-left: 4px; }
.year-group { display: grid; gap: 0 40px; grid-template-columns: 1fr; padding-block: 28px; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .year-group { grid-template-columns: 120px 1fr; } }
.year-group > h2 { font-size: 2rem; color: var(--accent); margin: 0 0 16px; position: sticky; top: 150px; align-self: start; }
.bib { display: grid; gap: 8px; }
.bib-item { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: center; padding: 14px; margin-inline: -14px; border-radius: var(--radius); text-decoration: none; color: inherit; transition: background .2s; }
.bib-item:hover { background: var(--paper); }
.bib-item img { width: 64px; aspect-ratio: 3 / 4; object-fit: contain; background: var(--paper-2); border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.bib-item h3 { font-size: 1.12rem; margin: 0 0 2px; color: var(--ink); }
.bib-item:hover h3 { color: var(--accent-dark); }
.bib-item p { margin: 0; font-size: .92rem; color: #7a736b; font-style: italic; }
.tag { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); background: var(--paper); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; margin-top: 6px; font-style: normal; }
[hidden] { display: none !important; }

details.acc { border-top: 1px solid var(--line); }
details.acc:last-of-type { border-bottom: 1px solid var(--line); }
details.acc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); font-weight: 700; color: var(--ink); }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: '+'; font-size: 1.6rem; color: var(--accent); transition: transform .2s; }
details.acc[open] summary::after { transform: rotate(45deg); }
details.acc .rich { padding-bottom: 28px; }

/* artykuł */
.article { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .article { grid-template-columns: minmax(0, 1fr) 320px; } }
.article aside { display: grid; gap: 20px; }
@media (min-width: 900px) { .article aside { position: sticky; top: 100px; } }
.article aside .cover img { width: 100%; border-radius: 6px; box-shadow: var(--shadow-lg); }
.facts-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--paper); font-size: .95rem; }
.facts-box dl { margin: 0 0 16px; display: grid; gap: 10px; }
.facts-box dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #8a8178; }
.facts-box dd { margin: 0; color: var(--ink); }
.facts-box .btn { width: 100%; justify-content: center; }
.prose { max-width: 68ch; }
.prose > p:first-of-type { font-size: 1.15em; color: var(--heading); }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose blockquote { margin: 1.8em 0; padding: .2em 0 .2em 1.4em; border-left: 3px solid var(--accent); font-style: italic; color: var(--heading); font-size: 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.gallery a { display: block; border-radius: 6px; overflow: hidden; background: var(--paper-2); }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; padding: 8px; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }
.shops { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.shops img { height: 32px; width: 88px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: .2s; }
.shops a:hover img { filter: none; opacity: 1; }
.pager { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-top: 48px; }
.pager a { display: block; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: .2s; }
.pager a:hover { border-color: var(--accent); background: var(--paper); }
.pager small { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #8a8178; margin-bottom: 4px; }
.pager .next { text-align: right; }

/* przekłady */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 180px); gap: 24px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shelf a { scroll-snap-align: start; text-decoration: none; color: inherit; }
.shelf img { width: 100%; aspect-ratio: 5 / 7; object-fit: contain; object-position: bottom; border-radius: 4px; box-shadow: var(--shadow); transition: transform .3s; }
.shelf a:hover img { transform: translateY(-4px) rotate(-1deg); }
.shelf span { display: block; font-size: .88rem; line-height: 1.35; margin-top: 12px; color: var(--ink); }
.books { display: grid; gap: clamp(16px, 2.5vw, 28px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .books { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px) { .books { grid-template-columns: 1fr; } }
.book { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.book:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.book-cover { display: flex; justify-content: center; align-items: center; padding: 26px 16px 22px; min-height: calc(clamp(226px, 24vw, 293px) + 48px); background: linear-gradient(var(--dark) 0 58%, var(--paper) 58%); }
.book-cover .cover3d img { height: clamp(226px, 24vw, 293px); }

/* okładka jak prawdziwa książka: grzbiet, odblask, cień */
.cover3d { position: relative; display: inline-block; border-radius: 2px 5px 5px 2px; overflow: hidden; box-shadow: 1px 1px 0 rgba(255,255,255,.08) inset, 6px 10px 22px rgba(0, 0, 0, .38), 2px 3px 6px rgba(0, 0, 0, .25); transition: transform .35s ease, box-shadow .35s ease; transform-origin: left center; }
.cover3d img { display: block; width: auto; max-width: 100%; }
.cover3d::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 9%; background: linear-gradient(90deg, rgba(255,255,255,.28) 0, rgba(0,0,0,.28) 35%, rgba(255,255,255,.12) 65%, rgba(0,0,0,.08) 100%); pointer-events: none; }
.cover3d::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 38%, rgba(0,0,0,0) 70%, rgba(0,0,0,.18) 100%); pointer-events: none; }
a:hover .cover3d, .book:hover .cover3d { transform: perspective(900px) rotateY(-8deg) translateY(-4px); box-shadow: 14px 16px 30px rgba(0, 0, 0, .42), 2px 3px 6px rgba(0, 0, 0, .25); }

/* półka na stronie głównej (karuzela na ciemnym pasie) */
.shelf-section { background: linear-gradient(var(--darker) 0 64%, var(--white) 64%); padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 72px); }
.shelf-head { text-align: center; color: var(--white); margin-bottom: clamp(32px, 5vw, 56px); }
.shelf-head h2 { color: var(--white); text-transform: uppercase; letter-spacing: .16em; font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); margin-bottom: 14px; }
.shelf-head h2::after { content: ''; display: block; width: 56px; height: 1px; background: var(--accent); margin: 18px auto 0; }
.carousel { position: relative; }
.carousel .shelf { grid-auto-columns: minmax(180px, 220px); gap: clamp(20px, 3vw, 40px); padding: 10px 6px 28px; scrollbar-width: none; }
.carousel .shelf::-webkit-scrollbar { display: none; }
.carousel .shelf a { display: flex; flex-direction: column; align-items: center; text-align: center; }
.carousel .shelf .cover3d img { height: 300px; aspect-ratio: auto; object-fit: initial; box-shadow: none; border-radius: 0; }
.carousel .shelf a:hover img { transform: none; }
.carousel .shelf span.title { margin-top: 16px; font-size: .92rem; color: var(--ink); max-width: 200px; }
.carousel-btn { position: absolute; top: 140px; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(31, 27, 23, .7); color: var(--white); font: inherit; font-size: 1.2rem; cursor: pointer; backdrop-filter: blur(4px); transition: .2s; }
.carousel-btn:hover { background: var(--accent); border-color: var(--accent); }
.carousel-btn.prev { left: -8px; } .carousel-btn.next { right: -8px; }
@media (max-width: 700px) { .carousel-btn { display: none; } }
.book > div:last-child { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.book h3 { font-size: 1.02rem; line-height: 1.3; margin: 0 0 4px; overflow-wrap: anywhere; hyphens: auto; }
.book p { margin: 0; font-size: .88rem; line-height: 1.45; color: #6c655d; }
.book .role { font-style: italic; color: var(--accent-dark); margin-top: 4px; }
.book .tags { margin-top: 8px; }
.book a.link { font-size: .85rem; margin-top: auto; padding-top: 10px; }
.cat-title { display: flex; align-items: center; gap: 16px; margin: clamp(40px, 6vw, 64px) 0 16px; }
.cat-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.cat-title h2 { margin: 0; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }

.rich ol, .rich ul { padding-left: 1.3em; }
.rich li { margin-bottom: .6em; }
.rich p { margin-bottom: .6em; }

/* cytat */
.quote { position: relative; color: var(--white); padding: clamp(80px, 12vw, 150px) var(--gutter); background: var(--darker) center / cover no-repeat; text-align: center; }
.quote::before { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(20, 17, 14, .82), rgba(20, 17, 14, .9)); }
.quote > * { position: relative; }
.quote blockquote { margin: 0 auto; max-width: 900px; font-size: clamp(1.5rem, 1rem + 2.2vw, 2.6rem); font-style: italic; line-height: 1.35; }
.quote blockquote::before { content: '“'; display: block; font-size: 4em; line-height: .6; color: var(--accent); font-style: normal; }
.quote cite { display: block; margin-top: 24px; font-style: normal; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }

/* bio */
.portrait { position: relative; max-width: 460px; margin-inline: auto; }
.portrait img { border-radius: var(--radius); background: var(--paper-2); width: 100%; }
.portrait::after { content: ''; position: absolute; inset: auto -14px -14px auto; width: 60%; height: 60%; border-right: 1px solid var(--accent); border-bottom: 1px solid var(--accent); border-radius: 0 0 var(--radius) 0; pointer-events: none; }

/* logotypy */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(40%, 170px), 1fr)); gap: 28px clamp(24px, 5vw, 56px); align-items: center; justify-items: center; max-width: 960px; margin-inline: auto; }
.logos img { width: 100%; max-width: 190px; height: 64px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: .2s; }
.logos img:hover { filter: none; opacity: 1; }
.logos-label { text-align: center; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: #8a8178; margin-bottom: 28px; }

/* CTA kontakt */
.cta { background: var(--dark); color: #d6cec3; border-radius: calc(var(--radius) * 1.6); padding: clamp(36px, 6vw, 72px); display: grid; gap: 24px 48px; align-items: center; grid-template-columns: 1fr; position: relative; overflow: hidden; }
@media (min-width: 820px) { .cta { grid-template-columns: 1.4fr auto; } }
.cta::before { content: ''; position: absolute; inset: 0; background: var(--cta-img) center / cover; opacity: .12; filter: sepia(1); }
.cta > * { position: relative; }
.cta h2 { color: var(--white); margin-bottom: .3em; }
.cta p { margin: 0; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .45); }
.cta .btn--ghost:hover { background: var(--white); color: var(--ink); }

/* kontakt – formularz */
.contact { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 1fr; }
@media (min-width: 880px) { .contact { grid-template-columns: 1fr 1.2fr; } }
.form { display: grid; gap: 16px; }
.form .row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form label { display: grid; gap: 6px; font-size: .9rem; color: var(--heading); }
.form input, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid #d5ccc0; border-radius: 8px; background: var(--white); color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(160, 135, 110, .18); }
.form textarea { min-height: 160px; resize: vertical; }
.form .hp { display: none; }
.form-status { min-height: 1.5em; font-size: .95rem; margin: 0; }

/* stopka */
.site-footer { background: var(--darker); color: #a9a095; padding-top: clamp(56px, 8vw, 88px); font-size: .95rem; }
.site-footer h3 { color: var(--white); font-size: 1.05rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-quote { border-left: 2px solid var(--accent); padding-left: 16px; font-style: italic; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 56px; padding-block: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; }

/* cookies */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 400px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 18px 20px; font-size: .9rem; }
.cookie[hidden] { display: none; }
.cookie p { margin-bottom: 14px; }
.cookie .btn { padding: .55em 1.2em; margin-right: 6px; }

/* blog */
.post-card { display: grid; gap: 24px; grid-template-columns: 1fr; text-decoration: none; color: inherit; align-items: center; }
@media (min-width: 720px) { .post-card { grid-template-columns: 320px 1fr; } }
.post-card img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.post-card h2 { font-size: 1.6rem; }
.post-card:hover h2 { color: var(--accent-dark); }

/* animacja wejścia */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* tagi */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tags .tag { margin: 0; text-decoration: none; }
a.tag:hover { border-color: var(--accent); color: var(--ink); }


/* przekłady – książka wystająca ponad beżowy panel (styl „Bookwise”) */
.feature-books { display: grid; gap: clamp(56px, 8vw, 110px); padding-top: 24px; }
.feature-book { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding-inline: clamp(20px, 5vw, 72px); }
.feature-book::before { content: ''; position: absolute; inset: 56px 0 -48px 0; background: var(--paper); z-index: -1; }
.feature-book:nth-child(even) { grid-template-columns: 1fr minmax(0, 320px); }
.feature-book:nth-child(even) .fb-cover { order: 2; }
.fb-cover { display: flex; justify-content: center; align-self: start; }
.fb-cover .cover3d img { height: clamp(280px, 30vw, 430px); }
.fb-body { padding-top: 56px; max-width: 34em; }
.fb-body h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); font-weight: 400; line-height: 1.25; margin-bottom: 16px; }
.fb-body h3 strong { font-weight: 700; }
.fb-meta { color: #6c655d; margin-bottom: 4px; }
.fb-body .role { font-style: italic; color: var(--accent-dark); margin-bottom: 8px; }
.fb-body .tags { margin: 0 0 26px; }
.btn-corner { position: relative; display: inline-flex; align-items: center; gap: 22px; padding: 16px 30px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; font-weight: 700; background: linear-gradient(135deg, transparent calc(100% - 46px), #ead9c0 calc(100% - 46px)); transition: background .25s, color .25s; }
.btn-corner:hover { background: var(--ink); color: var(--white); }
@media (max-width: 760px) {
  .feature-book, .feature-book:nth-child(even) { grid-template-columns: 1fr; padding-inline: 20px; }
  .feature-book:nth-child(even) .fb-cover { order: 0; }
  .feature-book::before { inset: 90px 0 -32px 0; }
  .fb-body { padding-top: 0; }
  .fb-cover .cover3d img { height: 300px; }
  .btn-corner { letter-spacing: .12em; padding: 14px 20px; }
}

/* efekt po najechaniu na okładkę: uniesienie, obrót, rosnący cień i przesuwający się odblask */
.cover3d { will-change: transform; transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease; }
.cover3d::after { background: linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.38) 45%, rgba(255,255,255,0) 60%), linear-gradient(115deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 38%, rgba(0,0,0,0) 70%, rgba(0,0,0,.18) 100%); background-size: 250% 100%, 100% 100%; background-position: 130% 0, 0 0; transition: background-position .9s ease; }
.cover3d:hover, a:hover .cover3d, .book:hover .cover3d, .feature-book:hover .cover3d {
  transform: perspective(1000px) rotateY(-14deg) rotateX(2deg) translateY(-8px) scale(1.03);
  box-shadow: 22px 24px 40px rgba(0, 0, 0, .45), 6px 8px 14px rgba(0, 0, 0, .25);
}
.cover3d:hover::after, a:hover .cover3d::after, .book:hover .cover3d::after, .feature-book:hover .cover3d::after { background-position: -40% 0, 0 0; }
.feature-book:nth-child(even):hover .cover3d { transform: perspective(1000px) rotateY(14deg) rotateX(2deg) translateY(-8px) scale(1.03); transform-origin: right center; box-shadow: -22px 24px 40px rgba(0, 0, 0, .45), -6px 8px 14px rgba(0, 0, 0, .25); }
@media (hover: none) { .cover3d:hover { transform: none; } }

/* odstępy na stronie przekładów */
.feature-books { padding-bottom: 48px; }
.feature-books + .cat-title, .cat-title { margin: clamp(96px, 11vw, 140px) 0 clamp(88px, 9vw, 112px); }
.section > .wrap > .lead + .cat-title { margin-top: clamp(56px, 7vw, 80px); }
.fb-body { padding-block: 72px 24px; }
.fb-body .fb-meta { margin-top: 4px; }
@media (max-width: 760px) {
  .feature-books { gap: 96px; }
  .cat-title { margin: 72px 0 64px; }
  .fb-body { padding-block: 8px 16px; }
}
.feature-books + .cat-title, .cat-title { margin-bottom: 40px; }
@media (max-width: 760px) { .cat-title { margin-bottom: 32px; } }

/* skala czcionek – spokojniejsza */
body { font-size: clamp(.98rem, .95rem + .15vw, 1.05rem); line-height: 1.7; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); }
h3 { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); }
.lead { font-size: 1.08em; }
.page-head .hero-title, .hero .hero-title { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); }
.page-head .sub { font-size: 1.08em; }
.home-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
.facts b { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }
.quote blockquote { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.9rem); }
.shelf-head h2 { font-size: clamp(1.1rem, .95rem + .8vw, 1.6rem); }
.pub h3, .bib-item h3 { font-size: 1.02rem; }
.topic h3 { font-size: 1.05rem; }
.prose > p:first-of-type { font-size: 1.08em; }
.prose h2 { font-size: 1.4rem; }
.post-card h2 { font-size: 1.35rem; }
details.acc summary { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); }

/* przekłady: tytuł książki mniejszy, nagłówek kategorii większy i brązowy */
.fb-body h3 { font-size: clamp(1.15rem, 1rem + .55vw, 1.45rem); }
.cat-title h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); color: var(--accent-dark); }
.cat-title::after { background: var(--accent); opacity: .5; }

@media (max-width: 760px) { .fb-body { padding: 40px 8px 24px; } .fb-cover { margin-bottom: 0; } }
@media (min-width: 761px) and (max-width: 1000px) { .fb-body { padding-block: 88px 32px; } }

@media (min-width: 761px) { .fb-body { align-self: start; padding-block: 112px 40px; } }

/* ===== bez zaokrągleń ===== */
*, *::before, *::after { border-radius: 0 !important; }

/* ===== jeden styl przycisków: prostokąt, kapitaliki, beżowy narożnik ===== */
.btn, .btn--accent, .btn--ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  padding: 15px 28px; border: 1px solid var(--ink); color: var(--ink);
  background: linear-gradient(135deg, transparent calc(100% - 40px), #ead9c0 calc(100% - 40px));
  font: inherit; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; line-height: 1.3;
  text-decoration: none; cursor: pointer; transform: none; transition: background .25s, color .25s, border-color .25s;
}
.btn:hover, .btn--accent:hover, .btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); transform: none; }

/* na ciemnym tle: biała ramka, narożnik w kolorze akcentu */
.home-hero .btn, .home-hero .btn--ghost, .cta .btn, .cta .btn--ghost, .cta .btn--accent, .section--dark .btn, .section--dark .btn--ghost, .page-head .btn {
  color: var(--white); border-color: rgba(255, 255, 255, .7);
  background: linear-gradient(135deg, transparent calc(100% - 40px), rgba(160, 135, 110, .85) calc(100% - 40px));
}
.home-hero .btn:hover, .home-hero .btn--ghost:hover, .cta .btn:hover, .cta .btn--ghost:hover, .cta .btn--accent:hover, .section--dark .btn:hover, .page-head .btn:hover {
  background: var(--white); border-color: var(--white); color: var(--ink);
}
.cta .btn--ghost { text-transform: none; letter-spacing: .02em; font-size: .9rem; }
.cookie .btn { padding: 10px 16px; letter-spacing: .1em; }
.facts-box .btn { width: 100%; }
.btn-corner { font-size: .76rem; letter-spacing: .18em; padding: 15px 28px; }
.chip { letter-spacing: .02em; }

/* imię i nazwisko w nagłówku strony głównej */
.home-hero .hero-name { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4rem); color: var(--white); margin: 0 0 .15em; letter-spacing: -.01em; }
.home-hero .hero-tagline { font-size: clamp(1.3rem, 1.05rem + 1.1vw, 2rem); color: #eee6da; line-height: 1.25; margin: 0 0 .9em; }
.home-hero .hero-tagline em { color: #d9c4ad; }

/* karty publikacji: okładka 3D wystająca ponad beżowy kwadrat + wyrównanie wierszy (subgrid) */
.pub-grid { row-gap: clamp(40px, 5vw, 56px); }
.pub { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.pub .cover { position: relative; aspect-ratio: auto; height: clamp(250px, 24vw, 300px); margin-top: 28px; overflow: visible; background: var(--paper-2); box-shadow: none; display: flex; justify-content: center; align-items: flex-end; padding: 0 0 18px; transform: none !important; }
.pub .cover .cover3d img { height: calc(clamp(250px, 24vw, 300px) + 28px - 18px); width: auto; object-fit: initial; padding: 0; filter: none; margin-top: -28px; }
.pub .cover .cover3d { margin-top: -28px; }
.pub .cover .cover3d img { margin-top: 0; }
.pub:hover .cover .cover3d { transform: perspective(1000px) rotateY(-14deg) rotateX(2deg) translateY(-8px) scale(1.03); }
.pub .meta { margin: 20px 0 8px; line-height: 1.5; }
.pub h3 { margin: 0 0 8px; }
.pub .journal { line-height: 1.5; }
.pub .journal span { font-style: normal; color: #8a8178; font-size: .85rem; }
.bib-item p { line-height: 1.5; }

/* półka przekładów: wyrównanie do lewej zamiast centrowania */
.shelf-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; text-align: left; }
.shelf-head h2 { margin: 0; }
.shelf-head h2::after { margin: 16px 0 0; }
.carousel .shelf a { align-items: flex-start; text-align: left; }
.carousel .shelf .cover3d { align-self: flex-start; }
.carousel .shelf span.title { max-width: none; width: 100%; }

/* recenzje: numerowane karty */
.reviews { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: 1fr; }
@media (min-width: 700px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { position: relative; background: var(--white); padding: clamp(26px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px; transition: background .25s; }
.review:hover { background: #fdfbf8; }
.review-no { font-size: 2.6rem; line-height: 1; color: var(--accent); font-weight: 700; opacity: .55; }
.review-src { margin: 0; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); font-weight: 700; line-height: 1.6; }
.review h3 { font-size: 1.2rem; font-style: italic; font-weight: 700; margin: 4px 0 0; }
.review-book { margin: 0 0 14px; font-size: .9rem; color: #6c655d; line-height: 1.5; padding-left: 14px; border-left: 2px solid var(--line); }
.review-book span { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #9a9188; margin-bottom: 2px; }
.review .btn { margin-top: auto; align-self: flex-start; padding: 12px 20px; }

/* cytowania: lista bibliograficzna z rokiem */
.citations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; column-gap: clamp(32px, 5vw, 64px); }
@media (min-width: 900px) { .citations { grid-template-columns: repeat(2, 1fr); } }
.citations li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.cit-year { font-size: 1.35rem; font-weight: 700; color: var(--accent); line-height: 1.2; }
.cit-author { margin: 0 0 4px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--heading); font-weight: 700; }
.cit-title { display: block; font-style: italic; color: var(--ink); text-decoration: none; line-height: 1.4; font-size: 1.02rem; }
.cit-title span { font-style: normal; color: var(--accent); font-size: .85em; }
.cit-title:hover { color: var(--accent-dark); text-decoration: underline; }
.cit-details { margin: 4px 0 0; font-size: .86rem; color: #8a8178; }

/* lista publikacji: większe okładki 3D */
.bib { gap: 4px; }
.bib-item { grid-template-columns: 120px 1fr; gap: 28px; padding: 18px; margin-inline: -18px; }
.bib-item .cover3d { justify-self: start; }
.bib-item .cover3d img { width: 120px; height: auto; aspect-ratio: auto; object-fit: initial; background: none; box-shadow: none; }
.bib-item h3 { font-size: 1.15rem; margin-bottom: 6px; }
@media (max-width: 520px) { .bib-item { grid-template-columns: 88px 1fr; gap: 18px; } .bib-item .cover3d img { width: 88px; } }

.year-group > h2 { position: static; }

/* strona kontakt – sam e-mail */
.contact-email { display: inline-block; margin: 8px 0 28px; font-size: clamp(1.4rem, 1.05rem + 1.6vw, 2.2rem); font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 4px; overflow-wrap: anywhere; }
.contact-email:hover { color: var(--accent-dark); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.contact-academia { color: #6c655d; }
.contact-figure { margin: 0; }
.contact-figure .cover3d img { width: 100%; height: auto; filter: sepia(.25); }
.contact-figure figcaption { margin-top: 12px; font-size: .82rem; font-style: italic; color: #8a8178; }

.review--img { min-height: 260px; background: var(--paper-2) center / cover no-repeat; filter: sepia(.2); padding: 0; }

/* blog: wyróżniony wpis */
.featured-post { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; text-decoration: none; color: inherit; }
@media (min-width: 900px) { .featured-post { grid-template-columns: 1.15fr 1fr; } }
.fp-img { position: relative; margin: 0; }
.fp-img::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--accent); z-index: -1; }
.fp-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: sepia(.2); box-shadow: var(--shadow-lg); transition: transform .5s ease, filter .5s ease; }
.featured-post:hover .fp-img img { transform: translateY(-4px); filter: sepia(0); }
.fp-meta { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #8a8178; margin: 0 0 12px; }
.fp-body h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.2; margin-bottom: 18px; }
.featured-post:hover h2 { color: var(--accent-dark); }
.fp-body .lead { margin-bottom: 28px; }
.featured-post:hover .btn { background: var(--ink); color: var(--white); }
.post-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.post-mini { text-decoration: none; color: inherit; }
.post-mini img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 14px; }
.post-mini h3 { font-size: 1.1rem; }
.more-links { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); grid-template-columns: 1fr; }
@media (min-width: 860px) { .more-links { grid-template-columns: repeat(3, 1fr); } }
.more-links a { background: var(--white); padding: clamp(26px, 3vw, 36px); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: background .25s; }
.more-links a:hover { background: #fdfbf8; }
.more-links h3 { font-size: 1.2rem; margin-bottom: 8px; }
.more-links p { color: #6c655d; font-size: .95rem; }
.more-links .link-arrow { margin-top: auto; color: var(--accent-dark); }

.bib-item { grid-template-columns: 150px 1fr; gap: 32px; }
.bib-item .cover3d img { width: 150px; }
@media (max-width: 520px) { .bib-item { grid-template-columns: 100px 1fr; gap: 18px; } .bib-item .cover3d img { width: 100px; } }

.bib-item { grid-template-columns: 180px 1fr; gap: 36px; }
.bib-item .cover3d img { width: 180px; }
@media (max-width: 520px) { .bib-item { grid-template-columns: 112px 1fr; gap: 18px; } .bib-item .cover3d img { width: 112px; } }

/* ===== strona artykułu ===== */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.art-hero { position: relative; background: var(--dark) center / cover no-repeat; color: #eee6da; }
.art-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29, 26, 22, .92) 0%, rgba(29, 26, 22, .78) 55%, rgba(29, 26, 22, .6) 100%); }
.art-hero-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 40px; padding-block: clamp(48px, 7vw, 88px) clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .art-hero-grid { grid-template-columns: 1.35fr 1fr; padding-bottom: 72px; } }
.art-hero .crumbs { color: #cfc4b6; }
.art-hero .kicker { color: #d9c4ad; }
.art-hero h1 { color: var(--white); font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem); line-height: 1.15; margin-bottom: 18px; max-width: 20ch; }
.art-journal { font-size: 1.05rem; color: #e2d8cc; margin-bottom: 30px; }
.art-journal em { color: #d9c4ad; }
.art-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.art-hero .btn { color: var(--white); border-color: rgba(255, 255, 255, .7); background: linear-gradient(135deg, transparent calc(100% - 40px), rgba(160, 135, 110, .85) calc(100% - 40px)); }
.art-hero .btn:hover { background: var(--white); color: var(--ink); }
.art-hero-cover { display: flex; justify-content: center; }
.art-hero-cover .cover3d img { height: clamp(300px, 34vw, 440px); width: auto; }
@media (min-width: 900px) { .art-hero-cover { margin-bottom: -150px; align-self: end; } .art-hero-cover .cover3d { box-shadow: 18px 24px 50px rgba(0, 0, 0, .5), 4px 6px 12px rgba(0, 0, 0, .3); } }

.art-facts { background: var(--paper); border-bottom: 1px solid var(--line); }
.art-facts dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-block: 0; padding-block: 22px; }
@media (min-width: 900px) { .art-facts dl { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-right: calc(100% / 2.35 * .9); } }
.art-facts dl > div { padding: 8px 18px 8px 0; }
@media (min-width: 900px) { .art-facts dl > div + div { border-left: 1px solid var(--line); padding-left: 18px; } }
.art-facts dt { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #9a9188; margin-bottom: 4px; }
.art-facts dd { margin: 0; color: var(--ink); font-size: .95rem; line-height: 1.35; }

.art-body { padding-top: clamp(56px, 9vw, 120px); }
.art-body .prose { max-width: 66ch; margin-inline: auto; font-size: 1.08rem; line-height: 1.85; }
.dropcap > p:first-of-type { font-size: 1.22em; line-height: 1.7; color: var(--heading); }
.dropcap > p:first-of-type::first-letter { float: left; font-size: 3.6em; line-height: .82; padding: .08em .12em 0 0; color: var(--accent-dark); font-weight: 700; }
.prose h2, .prose h3 { margin-top: 2em; }
.prose p strong:only-child { display: block; font-size: 1.15rem; color: var(--ink); margin-top: 1.6em; }
.art-empty { font-style: italic; color: #7a736b; border-left: 3px solid var(--accent); padding-left: 18px; }
.art-foot { max-width: 66ch; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: #8a8178; }
.share a, .share button { font: inherit; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--accent); padding: 2px 0; cursor: pointer; text-decoration: none; letter-spacing: inherit; text-transform: inherit; }
.share a:hover, .share button:hover { color: var(--accent-dark); }

.gallery a { cursor: zoom-in; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 17, 14, .9); }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; box-shadow: var(--shadow-lg); cursor: zoom-out; }
.lightbox button { position: absolute; top: -44px; right: 0; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }

.buy { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
@media (min-width: 860px) { .buy { grid-template-columns: 1fr 1.2fr; } }
.buy h2 { margin-bottom: 8px; }
.buy .shops { justify-content: flex-start; gap: 20px 40px; padding: 28px; border: 1px solid var(--line); }
.buy .shops img { height: 40px; width: 110px; }

.pager--covers a { display: flex; align-items: center; gap: 18px; }
.pager--covers a.next { justify-content: flex-end; }
.pager--covers img { width: 54px; height: auto; box-shadow: 3px 4px 10px rgba(0,0,0,.2); flex: none; }
.pager--covers span { display: block; }

/* artykuł: indywidualna ilustracja w tle, skan w nagłówku, okładka niżej */
.art-hero { background-position: center 35%; }
.art-hero::before { background: linear-gradient(90deg, rgba(29, 26, 22, .9) 0%, rgba(29, 26, 22, .72) 50%, rgba(29, 26, 22, .35) 100%); }
.art-credit { position: absolute; right: var(--gutter); bottom: 10px; z-index: 2; max-width: min(60vw, 520px); font-size: .72rem; font-style: italic; color: #cfc4b6; text-decoration: none; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-credit:hover { opacity: 1; color: var(--white); }
@media (min-width: 900px) { .art-credit { right: auto; left: var(--gutter); } }
.art-hero-cover a.cover3d { cursor: zoom-in; }
.art-hero-cover .cover3d img { max-width: min(100%, 520px); background: #f4efe6; }
.buy.buy--cover { grid-template-columns: 1fr; }
@media (min-width: 860px) { .buy.buy--cover { grid-template-columns: 200px 1fr 1.2fr; } }
.buy-cover { justify-self: start; }
.buy-cover img { width: 200px; height: auto; }

/* ilustracje z podpisami */
.gallery--captions { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 32px 24px; align-items: start; }
.gallery--captions figure { margin: 0; }
.gallery--captions a { display: block; background: var(--paper-2); border: 0; }
.gallery--captions img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; padding: 0; transition: transform .4s, filter .4s; }
.gallery--captions a:hover img { transform: scale(1.03); filter: brightness(1.05); }
.gallery--captions a { overflow: hidden; }
.gallery--captions figcaption { padding: 12px 2px 0; font-size: .88rem; line-height: 1.45; color: var(--heading); font-style: italic; }
.gallery--captions figcaption .src { display: block; margin-top: 6px; font-style: normal; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #9a9188; }
.gallery--captions figcaption .src a { color: var(--accent-dark); }
.lightbox .lb-caption { margin: 12px 0 0; color: #e2d8cc; font-style: italic; font-size: .92rem; max-width: 80ch; }
.buy .btn { margin-top: 8px; }

/* ilustracje: równe rzędy (subgrid), podpisy max 3 linie, źródło w jednej linii */
.gallery--captions { grid-template-columns: 1fr; row-gap: 40px; }
@media (min-width: 640px) { .gallery--captions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .gallery--captions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery--captions figure { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
.gallery--captions figcaption { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 14px 0 0; }
.gallery--captions .cap { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gallery--captions figcaption .src { margin-top: 0; padding-top: 8px; border-top: 1px solid var(--line); }

.gallery--captions figcaption a { display: inline; background: none; overflow: visible; }

/* miniatury ilustracji: przycięcie brzegów skanu (paski kalibracji, passe-partout) */
.gallery--captions a { overflow: hidden; }
.gallery--captions a img { transform: scale(1.16); }
.gallery--captions a:hover img { transform: scale(1.2); }
.gallery--captions figcaption .src { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .04em; font-size: .68rem; }

/* zapowiedź artykułu */
.soon-badge { display: inline-block; background: #7a1f1f; color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 5px 12px; }
.soon-wide { display: grid; grid-template-columns: 1fr; margin-bottom: clamp(40px, 6vw, 64px); background: var(--dark); color: #e2d8cc; box-shadow: var(--shadow-lg); overflow: hidden; }
@media (min-width: 900px) { .soon-wide { grid-template-columns: 1.45fr 1fr; } }
.soon-wide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.soon-wide-text { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.soon-title { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); font-weight: 700; line-height: 1.2; color: var(--white); margin: 0; }
.soon-wide-text p:last-child { margin: 0; font-size: .95rem; color: #cfc4b6; }
.soon-card .meta { margin-top: 20px; }
.soon-card h3 { color: #7a1f1f; }
.soon-card .cover::after { content: ''; position: absolute; inset: 0; border: 2px solid #7a1f1f; pointer-events: none; }
