:root {
  --ink: #102b40;
  --muted: #66717a;
  --red: #ad2637;
  --line: #deded9;
  --paper: #ffffff;
  --soft: #f4f4f1;
  --cover-bg: #d7d8e2;
  --error: #ad2637;
  --ok: #215c3a;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:hover,
button:hover { color: var(--red); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
button:disabled { cursor: default; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.wrap,
.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

@media (min-width: 761px) {
  .wrap,
  .container { width: min(1200px, calc(100% - 96px)); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.icon-sprite {
  width: 0;
  height: 0;
  position: absolute;
  overflow: hidden;
}

.icon {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 40;
  background: #fff;
  padding: 10px 20px;
  border: 1px solid var(--line);
}
.skip-link:focus { top: 10px; }

/* Header: white wordmark + 73px nav. No flags. */
.site-header {
  background: var(--paper);
  color: var(--ink);
  position: sticky;
  top: 0;
  z-index: 20;
}

.wordmark-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 16px 18px;
  color: var(--ink);
  background: #fff;
}
.wordmark-band:hover { color: var(--ink); }
.brand-name {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -1.2px;
  line-height: 1.15;
}
.brand-sub {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 2.4px;
  font-weight: 600;
  color: var(--muted);
}

.navigation {
  border-top: 1px solid #d5d7d9;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 73px;
  position: relative;
}
.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  position: relative;
  height: 73px;
  display: flex;
  align-items: center;
  color: var(--ink);
}
.nav-links a:hover { color: var(--red); }
.nav-links .active { color: var(--red); }
.nav-links .active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  height: 3px;
  left: 0;
  right: 0;
  background: var(--red);
}
.nav-action {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  padding: 8px 0;
  color: var(--ink);
}
.cart-link {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  height: 73px;
}
.nav-action.active,
.cart-link.active { color: var(--red); }
.cart-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid var(--line);
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  color: var(--red);
}
.nav-toggle,
.mobile-menu { display: none; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.4px;
  margin: 0 0 12px;
  color: var(--red);
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 43px;
  letter-spacing: -1.6px;
  line-height: 1.2;
  margin-bottom: 0;
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.6px;
}
h1 em, h2 em {
  font-weight: 400;
  font-style: italic;
  color: var(--red);
}

.lead {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 400;
  max-width: 40rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 32px;
}
.section-intro {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 3px;
  line-height: 1.7;
}

.catalog { padding-block: 58px 65px; }

.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.book-grid-2 { grid-template-columns: 1fr; }
@media (min-width: 800px) {
  .book-grid,
  .book-grid-2 { grid-template-columns: 1fr 1fr; }
}

.book-card { min-width: 0; }
.book-visual {
  height: 380px;
  background: var(--cover-bg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tag {
  position: absolute;
  z-index: 2;
  left: 22px;
  top: 21px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 600;
  padding: 6px 12px;
  line-height: 1.5;
}
.tag-outline {
  background: #ffffffb8;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.cover-button {
  height: 100%;
  width: 100%;
  padding: 28px 28px 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.real-cover {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px 18px;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-align: center;
  background: #efeff1e6;
  color: #4f5965;
  pointer-events: none;
}

.upcoming .book-visual {
  background: radial-gradient(ellipse at 38% 30%, #f7f4ec, #e4e0d4 72%, #d2cec3);
}
.upcoming-scene {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
}
.type-cover {
  width: 215px;
  height: 300px;
  position: relative;
  background: linear-gradient(160deg, #102b40, #1a3d58 55%, #0c2233);
  color: #f4f1e8;
  padding: 22px 18px 18px 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid #cfc8b8;
}
.mock-author {
  font-size: 10px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #d7cbb8;
}
.mock-title {
  font: 400 32px/1.15 var(--serif);
  margin-top: 42px;
  letter-spacing: -1px;
}
.mock-rule {
  display: block;
  width: 40px;
  height: 1px;
  background: #ad2637;
  margin-top: 24px;
}
.mock-bottom {
  margin-top: auto;
  font-size: 8px;
  letter-spacing: 2px;
  color: #c9bba6;
}

.book-info { padding: 24px 1px 0; }
.book-author {
  font-size: 11px;
  letter-spacing: 2.1px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.book-info h2 {
  font: 400 27px/1.25 var(--serif);
  letter-spacing: -0.6px;
  min-height: 70px;
  margin: 0 0 10px;
}
.book-info h2 a { color: inherit; }
.book-info h2 a:hover { color: var(--red); }
.book-description {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  min-height: 48px;
  max-width: 490px;
  margin-bottom: 22px;
}
.buy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.price {
  font: 400 27px/1.2 var(--serif);
  letter-spacing: -1px;
  white-space: nowrap;
  color: var(--ink);
}
.price > span { font-size: 18px; letter-spacing: 0; }
.price small,
.coming-copy small {
  display: block;
  font: 12px/1.5 var(--sans);
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 6px;
}
.coming-copy { font-size: 17px; font-weight: 500; }

.button,
.btn {
  min-height: 48px;
  padding: 11px 24px;
  border: 1px solid var(--ink);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  text-decoration: none;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}
.button:hover,
.btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.button.primary,
.btn:not(.btn-ghost):not(.btn-secondary) {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
.button.primary:hover,
.btn:not(.btn-ghost):not(.btn-secondary):hover {
  background: #8c1d2b;
  border-color: #8c1d2b;
  color: #fff;
}
.button.secondary,
.btn-ghost,
.btn-secondary {
  color: var(--ink);
  background: transparent;
  border-color: #bbc2c5;
}
.button.secondary:hover,
.btn-ghost:hover,
.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 12px;
}
.button .icon,
.btn .icon { width: 19px; height: 19px; }

.details-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  border-top: 1px solid var(--line);
  font-size: 13px;
  padding: 16px 0 0;
  margin-top: 23px;
  text-align: left;
  color: var(--ink);
  background: none;
}
.details-link:hover { color: var(--red); }
.details-link span {
  font-size: 20px;
  line-height: 1;
  color: var(--red);
}

.service-strip {
  border-block: 1px solid var(--line);
  background: var(--soft);
}
.service-inner {
  display: grid;
  grid-template-columns: 1fr;
  padding-block: 10px;
}
.service-inner > div,
.service-inner a {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  color: inherit;
}
.service-inner > div:last-child,
.service-inner a:last-child { border: 0; }
.service-inner .icon {
  width: 29px;
  height: 29px;
  color: var(--red);
  stroke-width: 1.1;
}
.service-inner strong,
.service-inner small { display: block; }
.service-inner strong { font-size: 14px; font-weight: 600; }
.service-inner small {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

@media (min-width: 800px) {
  .service-inner {
    grid-template-columns: repeat(3, 1fr);
    padding-block: 27px;
    gap: 0;
  }
  .service-inner > div,
  .service-inner a {
    padding: 0 28px;
    border-bottom: 0;
    border-left: 1px solid var(--line);
  }
  .service-inner > div:first-child,
  .service-inner a:first-child {
    border-left: 0;
    padding-left: 0;
  }
}

.author-section {
  background: var(--soft);
  border-top: 1px solid var(--line);
}
.author-inner {
  display: grid;
  gap: 40px;
  padding-block: 70px;
  align-items: start;
}
@media (min-width: 800px) {
  .author-inner { grid-template-columns: 1fr 1.15fr; gap: 80px; }
}
.authors-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 700px) {
  .authors-grid { grid-template-columns: 1fr 1fr; }
}
.author-copy h2,
.authors-grid h3 {
  font: 400 32px/1.2 var(--serif);
  margin: 0 0 12px;
  letter-spacing: -1px;
}
.author-copy > p:not(.eyebrow):not(.lead),
.authors-grid p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
}
.author-copy .button { margin-top: 8px; }

.page-header { padding: 2.5rem 0 4rem; }
.page-header h1,
.prose-section h1,
.prose h2 { font-family: var(--serif); font-weight: 400; }

.prose-section, .prose { max-width: 42rem; }
.prose p, .prose li { margin-bottom: 0.8rem; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

.placeholder-flag {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  padding: 0.15rem 0.45rem;
  font-size: 0.8rem;
}

.hero {
  background: var(--soft);
  color: var(--ink);
  padding: 3.5rem 0 4rem;
  border-bottom: 1px solid var(--line);
}
.hero h1 { margin: 0.3rem 0 0.6rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

.band { background: var(--paper); padding: 2.5rem 0; }
.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}

.product-stage {
  background: var(--cover-bg);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.product-stage img {
  max-height: 520px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.product-meta { text-transform: uppercase; }
.spec-grid {
  font-size: 13px;
  margin: 22px 0;
}
.spec-grid > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}
.spec-grid dt { color: var(--muted); margin: 0; }
.spec-grid dd { margin: 0; }

.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.two-col {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
}
@media (min-width: 800px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}

.card-list, .stack-list { list-style: none; padding: 0; margin: 0; }
.card-list li a, .stack-list article {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.card-list time, .stack-list time { color: var(--muted); font-size: 0.9rem; }

.product-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .product-grid { grid-template-columns: 1fr 1fr; }
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
}
.table th, .table td {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0.4rem;
  text-align: left;
  vertical-align: middle;
}

.stack-form, .newsletter-form { display: grid; gap: 0.85rem; max-width: 40rem; }
.field { display: grid; gap: 0.3rem; }
.field label { font-size: 13px; font-weight: 600; }
.input, .textarea, select {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--paper);
  width: 100%;
  border-radius: 0;
  color: var(--ink);
}
.textarea { min-height: 8rem; }
.input-narrow { width: 5rem; }
.check { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.95rem; }
.check input { margin-top: 0.3rem; }
.invoice-company { gap: 0.65rem; }
.invoice-panel {
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.invoice-panel[hidden] { display: none !important; }
.hint { color: var(--muted); font-size: 0.85rem; margin: 0; }
.error { color: var(--red); margin: 0; font-size: 0.95rem; }
.status-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1rem;
}
.status-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 1.25rem;
  font-size: 14px;
  color: #7a8690;
}
.status-step:not(:last-child):after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line);
  margin-left: 0.75rem;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
}
.status-step.is-done .status-dot,
.status-step.is-current .status-dot {
  background: var(--red);
  border-color: var(--red);
}
.status-step.is-done { color: var(--ink); }
.status-step.is-current {
  color: var(--red);
  font-weight: 500;
}
.status-badge {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 0.25rem 0.7rem;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
.status-card {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
}
.status-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}
.order-lines {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
  display: grid;
  gap: 0.4rem;
}
.account-cta {
  margin-top: 2rem;
  padding: 1.5rem 1.4rem;
  background: var(--soft);
  border: 1px solid var(--line);
}
.account-cta h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.account-page .inline-form { margin: 0 0 1.5rem; }
.help { font-size: 13px; color: #5c6b75; }
input[readonly],
input:disabled {
  background: var(--soft);
  color: #5c6b75;
}
.notice {
  background: var(--soft);
  border-left: 3px solid var(--red);
  padding: 1rem 1.2rem;
  margin: 1rem 0;
}

.radio-cards,
.radio-cards ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.radio-cards li { margin: 0; }
.radio-card,
.radio-cards label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  justify-items: start;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 14px 16px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.radio-card:has(input:checked),
.radio-cards label:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 3px 0 0 var(--red);
}
.radio-card input,
.radio-cards input { accent-color: var(--red); }
.radio-card-price { font-family: var(--serif); white-space: nowrap; }

.messages { padding-top: 1rem; }
.flash { padding: 0.7rem 1rem; background: #e7f3ea; color: var(--ok); border: 1px solid var(--line); }
.flash-error { background: #f8e8e8; color: var(--red); }

.newsletter-band {
  background: var(--soft);
  color: var(--ink);
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
.newsletter-inner {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .newsletter-inner { grid-template-columns: 1fr 1fr; align-items: start; }
}
.newsletter-form .input { background: #fff; }

.site-footer {
  background: var(--soft);
  color: var(--ink);
  padding: 0;
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
}
.footer-main {
  padding-block: 56px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 18px;
}
.footer-brand > a {
  font: 400 29px/1.2 var(--serif);
  letter-spacing: -0.8px;
  color: var(--ink);
}
.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.footer-main h2 {
  font: 600 13px var(--sans);
  letter-spacing: 0.4px;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.footer-main a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 8px;
}
.footer-main a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--line);
}
.footer-copy {
  margin: 0 auto;
  padding-block: 21px 32px;
  font-size: 12px;
  color: var(--muted);
}

@media (min-width: 800px) {
  .footer-main {
    grid-template-columns: 1.35fr 1.1fr 1fr 1fr;
    gap: 40px;
  }
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: var(--paper);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.8rem 1.2rem;
}
.cookie-banner[hidden] { display: none !important; }
[hidden] { display: none !important; }
.inline-form { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }

.authors-page .prose h2 {
  font: 400 32px/1.2 var(--serif);
  margin: 2rem 0 0.8rem;
}
.authors-page .prose p { color: var(--muted); }

[data-apaczka-map] { margin-top: 0.35rem; width: fit-content; }

@media (max-width: 759px) {
  .nav-inner { height: 62px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 62px;
    left: -24px;
    right: -24px;
    z-index: 5;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: white;
    box-shadow: 0 10px 20px #102b4015;
    padding: 12px 24px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open,
  .site-nav.is-open { display: flex; }
  .nav-links a { height: 45px; }
  .nav-links .active:after { display: none; }
  .mobile-menu,
  .nav-toggle {
    display: flex;
    flex-direction: column;
    width: 35px;
    height: 35px;
    gap: 5px;
    border: 0;
    padding: 5px;
    justify-content: center;
  }
  .mobile-menu span {
    width: 21px;
    height: 1px;
    background: var(--ink);
    display: block;
  }
  .nav-action span:not(.cart-count) { display: none; }
  .cart-link { padding-left: 23px; height: 62px; }
  h1 { font-size: 34px; letter-spacing: -1.3px; }
  .section-heading { display: block; }
  .section-intro { margin-top: 13px; }
  .catalog { padding-block: 36px 40px; }
  .book-visual { height: auto; aspect-ratio: 1.05; }
  .book-info h2 { font-size: 28px; min-height: 0; }
  .footer-brand { grid-column: 1 / -1; }
  .product-stage { min-height: 280px; }
  .spec-grid > div { grid-template-columns: 100px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* --- Standard zdjec produktowych (4:5, tlo #f4f4f1): zdjecie wypelnia kafel, bez dodatkowego ramowania --- */
.authors-grid > div:only-child { grid-column: 1 / -1; }
.book-card.available .book-visual:has(.real-cover) { background: var(--soft); }
.cover-button:has(> .real-cover) { padding: 0; }
.cover-button:has(> .real-cover) .real-cover { height: 100%; width: auto; }
.product-stage:has(> img) { background: var(--soft); }

/* jedna ksiazka w katalogu: karta na pelna szerokosc (zdjecie | opis) */
@media (min-width: 800px) {
  .book-grid > .book-card:only-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
  .book-grid > .book-card:only-child .book-info { padding: 40px 48px; align-self: center; }
}

/* --- Wyróżniona książka (wydanie PREMIUM): pełna szerokość, zdjęcie | opis --- */
.featured-book {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  margin-bottom: 36px;
}
.featured-visual {
  position: relative;
  display: block;
  background: var(--soft);
  overflow: hidden;
}
.featured-visual picture,
.featured-visual img {
  display: block;
  width: 100%;
  height: auto;
}
.featured-visual .tag { left: 22px; top: 21px; }
.tag-red { background: var(--red); color: #fff; }
.featured-info {
  padding: 28px 22px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-info .eyebrow { margin: 0 0 14px; }
.featured-info h2 {
  font: 400 34px/1.15 var(--serif);
  letter-spacing: -1px;
  margin: 6px 0 14px;
}
.featured-info h2 a { color: var(--ink); text-decoration: none; }
.featured-info h2 a:hover { color: var(--red); }
.featured-pitch { color: var(--muted); font-size: 16px; line-height: 1.75; margin: 0 0 22px; }
.featured-info .buy-row { border-top: 1px solid var(--line); padding-top: 20px; flex-wrap: wrap; gap: 16px; }
.featured-alt {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.featured-alt a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.featured-alt a:hover { color: var(--red); }
.other-version { font-size: 14px; color: var(--muted); }
.other-version a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 800px) {
  .featured-book { grid-template-columns: 1.25fr 1fr; align-items: stretch; }
  .featured-visual { display: flex; align-items: center; justify-content: center; }
  .featured-info { padding: 48px 52px; }
  .featured-info h2 { font-size: 44px; letter-spacing: -1.5px; }
}

/* --- Przedsprzedaż --- */
.tags {
  position: absolute;
  z-index: 2;
  left: 22px;
  top: 21px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tags .tag { position: static; }
.featured-visual .tags .tag { left: auto; top: auto; }
.product-stage { position: relative; }
.preorder-note {
  margin: 0 0 14px;
  padding: 8px 12px;
  border-left: 3px solid var(--red);
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}
.preorder-note strong { color: var(--red); font-weight: 600; }
.preorder-inline { color: var(--red); font-size: 13px; }
.preorder-box {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--red);
  background: var(--soft);
  color: var(--ink);
  font-size: 15px;
}
/* Nagłówek katalogu bez dużego tytułu */
.section-heading-compact { align-items: baseline; margin-bottom: 22px; }
.section-heading-compact .eyebrow { margin: 0; }
/* --- Wydanie limitowane --- */
.tag-dark { background: var(--ink); color: #fff; }
.limited-note {
  margin: 0 0 10px;
  padding: 8px 12px;
  border-left: 3px solid var(--ink);
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.sale-closed { color: var(--red); font-weight: 600; }
