/* === Tokens === */
:root {
  --bg: #06080f;
  --bg-2: #0a0f1c;
  --bg-3: #0f1626;
  --bg-card: #11192a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f7fb;
  --text-mid: #c4cad6;
  --text-mute: #8b94a8;
  --accent: #e02424;
  --accent-2: #ff3a3a;
  --accent-soft: rgba(224, 36, 36, 0.16);
  --gold: #f0c674;
  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 14px;
  --shadow-card: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 8px 24px -8px rgba(0, 0, 0, 0.5);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  width: 100%;
}

/* === Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.32s ease, border-color 0.32s ease, height 0.32s ease;
}
.site-header.is-scrolled {
  background: #111823;
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-logo {
  height: 26px;
  width: auto;
  display: block;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s;
}
.nav-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.nav-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(224, 36, 36, 0.08);
  transform: scale(1.05);
}
.nav {
  display: flex;
  gap: 34px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}
.nav a {
  position: relative;
  padding: 6px 0;
  transition: color 0.18s;
  color: #ffffff;
}
.nav a:hover { color: var(--accent-2); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav a:hover::after { transform: scaleX(1); }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  position: relative;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(224, 36, 36, 0.6), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 14px 32px -8px rgba(255, 58, 58, 0.7), inset 0 1px 0 rgba(255,255,255,0.22);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.28);
}
.btn-cta { padding: 13px 26px; font-size: 17px; font-weight: 700; }
.btn-lg { padding: 18px 36px; font-size: 18px; }
.btn-xl { padding: 20px 38px; font-size: 18px; }
.btn-block { width: 100%; }

/* Pulsing CTA - composited animation using transform + opacity on a pseudo-element */
@keyframes btnPulse {
  0%   { transform: scale(1);    opacity: 0.55; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
.btn-primary.btn-cta::before,
.btn-primary.btn-xl::before,
.btn-primary.btn-lg::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  z-index: -1;
  pointer-events: none;
  animation: btnPulse 2.4s ease-out infinite;
  will-change: transform, opacity;
}
.btn-primary.btn-cta:hover::before,
.btn-primary.btn-xl:hover::before,
.btn-primary.btn-lg:hover::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .btn-primary.btn-cta::before,
  .btn-primary.btn-xl::before,
  .btn-primary.btn-lg::before { animation: none; }
}

/* === Hero === */
.hero {
  position: relative;
  padding: calc(84px + clamp(20px, 3vw, 48px)) 0 clamp(28px, 4.5vw, 60px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -10%;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 60% at 65% 0%, rgba(227, 11, 28, 0.55) 0%, rgba(180, 25, 50, 0.25) 30%, transparent 60%),
    radial-gradient(circle at 12% 80%, rgba(60, 100, 180, 0.18), transparent 55%),
    linear-gradient(180deg, #1a0612 0%, #0a1124 40%, #06080f 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 100px);
  mix-blend-mode: screen;
  opacity: 0.5;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-mid);
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.02);
}
.eyebrow .dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.eyebrow .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(227, 11, 28, 0.18);
  animation: dotPulse 2.2s infinite;
  will-change: transform, opacity;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(2); opacity: 1; }
  50%      { transform: scale(3); opacity: 0.2; }
}

.hero-title {
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.022em;
  margin: 22px 0 18px;
  text-wrap: balance;
}
.hero-authors {
  font-size: 20px;
  color: var(--accent);
  margin: 0 0 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hero-authors .dot-sep {
  display: inline-block;
  margin: 0 14px;
  color: #ffffff;
  font-size: 1.6em;
  line-height: 0;
  vertical-align: -2px;
  font-weight: 700;
}
.hero-lead {
  margin: 0 0 32px;
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.65;
  color: var(--text-mid);
  max-width: 640px;
  font-weight: 400;
  text-wrap: pretty;
}
.hero-lead em { color: var(--text); font-style: italic; font-weight: 500; }
.hero-lead strong { color: var(--text); font-weight: 600; }
/* === Pull quote === */
.section-pullquote {
  position: relative;
  padding: clamp(60px, 8vw, 110px) 0;
  background: var(--bg);
  overflow: hidden;
}
.section-pullquote .container { display: flex; justify-content: center; }
.pullquote-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid rgba(224, 36, 36, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(224, 36, 36, 0.14), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.pullquote-grid::before,
.pullquote-grid::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 4px;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 30px rgba(224, 36, 36, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.pullquote-grid::before { top: -10px; }
.pullquote-grid::after { bottom: -10px; }
.pullquote-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}
.pullquote-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.pullquote-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6, 8, 15, 0.45));
  pointer-events: none;
}
.pullquote {
  position: relative;
  margin: 0;
  padding: 0;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.4;
  font-style: italic;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.pullquote p { margin: 0; }
.pullquote-cite {
  display: block;
  margin-top: 18px;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 860px) {
  .pullquote-grid { grid-template-columns: 1fr; }
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.18s, border-color 0.18s, transform 0.18s;
}
.hero-link span {
  display: inline-block;
  transition: transform 0.25s ease;
}
.hero-link:hover {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}
.hero-link:hover span { transform: translateY(3px); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  color: var(--text-mute);
  font-size: 18px;
}
.hero-meta strong { color: var(--text); font-weight: 600; }
.hero-meta s { color: var(--text-mute); opacity: 0.6; margin-left: 4px; }
.hero-meta .sep { opacity: 0.4; }

/* Cover frame */
.hero-cover {
  position: relative;
  display: grid;
  place-items: center;
}
.cover-glow {
  position: absolute;
  inset: -10%;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(227, 11, 28, 0.28), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.cover-frame {
  position: relative;
  z-index: 1;
  width: min(462px, 100%);
  aspect-ratio: 944 / 1230;
  overflow: hidden;
  border-radius: 6px;
  box-shadow:
    var(--shadow-card),
    -2px 0 0 rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  transform: rotate(-1.5deg);
  transition: transform 0.4s ease;
}
.cover-frame:hover { transform: rotate(2.5deg) scale(1.02); }
.cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Generic section === */
.section {
  padding: clamp(60px, 8vw, 110px) 0;
  position: relative;
}
.section-head {
  margin: 0 auto clamp(32px, 5vw, 56px);
  max-width: 900px;
  text-align: left;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin: 22px auto 0;
  border-radius: 2px;
}
.kicker {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}
.accent { color: var(--accent); }

/* === O książce === */
.section-about {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  padding-top: clamp(24px, 3.5vw, 44px);
  padding-bottom: clamp(24px, 3.5vw, 44px);
}
.section-about .container { display: flex; flex-direction: column; align-items: center; }
.section-about .section-head { text-align: center; }
.prose {
  max-width: 820px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.75;
  color: var(--text-mid);
  text-align: justify;
  hyphens: auto;
}
.prose p { margin: 0 0 22px; }
.prose strong { color: var(--text); }
.prose em { color: var(--text); font-style: italic; }
.prose-coda {
  margin: 36px 0 0 !important;
  padding: 0;
  border: none;
  background: none;
  font-size: clamp(22px, 1.8vw, 26px);
  font-weight: 600;
  color: var(--text);
  font-style: italic;
  text-align: center;
  letter-spacing: -0.01em;
}
.prose-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(14px, 2vw, 22px);
}
.section-toc .prose-cta {
  margin-top: clamp(40px, 5vw, 60px);
}

/* === Spis treści === */
.section-toc {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.section-toc .section-head { text-align: center; }
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.5vw, 36px) clamp(28px, 3.5vw, 56px);
}
.toc-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 28px;
  padding: clamp(20px, 2.4vw, 32px) 0;
  border: none;
  background: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s ease;
}
.toc-item:hover { border-bottom-color: rgba(224, 36, 36, 0.5); }
.toc-item:hover .toc-num { color: var(--accent-2); transform: translateX(-2px); }
.toc-num {
  display: inline-block;
  font-family: "DM Serif Display", Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5vw, 64px);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  line-height: 0.9;
  letter-spacing: 0.02em;
  min-width: 56px;
  transition: color 0.25s ease, transform 0.25s ease;
  font-feature-settings: "tnum";
}
.toc-item > div { padding-top: 6px; }
.toc-item h3 {
  margin: 0 0 10px;
  font-size: clamp(20px, 1.7vw, 23px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--text);
}
.toc-item p {
  margin: 0;
  font-size: clamp(15.5px, 1.2vw, 17px);
  color: var(--text-mute);
  line-height: 1.55;
}
@media (max-width: 720px) {
  .toc-list { grid-template-columns: 1fr; }
}

/* === Autorzy === */
.section-authors { background: var(--bg); padding-top: clamp(40px, 5vw, 64px); }
.section-authors .section-head { text-align: center; }
.h2-nowrap { white-space: nowrap; }
@media (max-width: 720px) {
  .h2-nowrap { white-space: normal; }
}
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.author-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.author-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1c2742, #0f1626);
  border: 2px solid rgba(224, 36, 36, 0.45);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 auto 18px;
  overflow: hidden;
}
.author-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-photo img[src$="analityk2.webp"] { transform: scale(0.97) translateY(-6px); }
.author-card h3 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.author-role {
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.author-card p { color: var(--text-mid); margin: 0 0 12px; line-height: 1.6; }
.author-bio {
  text-align: left;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.author-bio p {
  font-size: 16px;
  margin: 0 0 14px;
}
.author-bio p:last-child { margin-bottom: 0; }
.authors-note {
  margin: 32px auto 0;
  font-size: 20px;
  color: var(--text-mute);
  font-style: italic;
  max-width: 760px;
  text-align: center;
}

/* === Buy block === */
.section-buy {
  background: linear-gradient(180deg, var(--bg-2) 0%, #0a1428 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-buy .section-head { text-align: center; }
.buy-card {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  padding: clamp(28px, 4vw, 56px);
  background:
    radial-gradient(circle at 90% 0%, rgba(227, 11, 28, 0.12), transparent 50%),
    var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  align-items: center;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.buy-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent 30%);
}
.buy-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 944 / 1230;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--shadow-card);
}
.buy-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.buy-info { position: relative; }
.buy-badge {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(227, 11, 28, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.buy-info h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}
.buy-lead {
  color: var(--text-mid);
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.65;
}
.buy-lead em { color: var(--text); font-style: italic; }
.buy-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}
.buy-features li {
  position: relative;
  padding-left: 26px;
  color: var(--text-mid);
  font-size: 19.5px;
}
.buy-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.buy-price {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 0;
  padding: 22px 22px 18px;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  border: 1px solid var(--line);
  text-align: center;
}
.buy-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.price-now {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.price-old {
  font-size: 20px;
  color: var(--text-mute);
  text-decoration: line-through;
}
.price-save {
  margin-left: auto;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6ed59a;
  background: rgba(110, 213, 154, 0.1);
  border: 1px solid rgba(110, 213, 154, 0.3);
  padding: 5px 10px;
  border-radius: 999px;
}
.buy-trust {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-size: 15px;
  color: var(--text-mute);
  text-align: center;
}
.buy-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.buy-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* === Opinie === */
.section-opinions { background: var(--bg); }
.opinions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.opinion {
  margin: 0;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.opinion p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
}
.opinion footer {
  font-size: 18px;
  color: var(--text-mute);
  font-style: normal;
  font-weight: 500;
}
.opinion::before {
  content: "“";
  position: absolute;
  top: 6px;
  left: 18px;
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.4;
}
.placeholder-opinion p { color: var(--text-mute); }
.opinions-note { margin-top: 18px; }

/* === Ground Zero === */
.section-ground-zero { background: var(--bg); }
.ground-zero-card {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  max-width: 1100px;
  margin: 0 auto;
}
.ground-zero-img {
  position: relative;
  z-index: 1;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-card);
}
.ground-zero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ground-zero-text { position: relative; z-index: 1; }
.ground-zero-text h2 { margin: 0 0 16px; }
.ground-zero-text p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-mid);
  margin: 0 0 24px;
  max-width: 580px;
}
.ground-zero-text em { color: var(--text); font-style: italic; }

/* === FAQ === */
.section-faq {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.section-faq .section-head { text-align: center; }
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: rgba(227, 11, 28, 0.3); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-weight: 600;
  font-size: 19px;
  text-align: left;
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: 300;
  color: var(--accent);
  width: 24px;
  text-align: center;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-body {
  padding: 0 56px 22px 24px;
  color: var(--text-mid);
  font-size: 19px;
  line-height: 1.65;
  text-align: left;
}
.faq-body p { margin: 0; }

/* === Kontakt === */
.section-kontakt {
  background: var(--bg);
  border-top: 1px solid var(--line);
  text-align: center;
}
.section-kontakt .section-head { text-align: center; margin-bottom: clamp(16px, 2vw, 24px); }
.kontakt-email {
  display: inline-block;
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.kontakt-email:hover {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}

/* === CTA final === */
.section-cta-final {
  background:
    radial-gradient(circle at 50% 30%, rgba(227, 11, 28, 0.18), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta-final h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  margin: 0 0 18px;
}
.cta-final-lead {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-mid);
}

/* === Footer === */
.site-footer {
  background: #04060c;
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
  color: var(--text-mid);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: 40px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 320px;
}
.footer-logo {
  height: 28px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.footer-domain {
  margin: 0;
  font-size: 15px;
  color: var(--text-mute);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: 0.02em;
}
.footer-tagline {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-mute);
}
.footer-brand .btn-cta { margin-top: 4px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
}
.footer-col a {
  font-size: 16px;
  color: var(--text-mid);
  transition: color 0.18s;
  width: max-content;
  max-width: 100%;
}
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-mute);
}
.footer-bottom p { margin: 0; }
.footer-imker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-mute);
  transition: color 0.18s;
}
.footer-imker:hover { color: var(--text); }
.footer-imker img { height: 38px; width: auto; display: block; }

/* === Responsive === */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-cover { order: -1; max-width: 320px; margin: 0 auto; }
  .nav { display: none; }
  .buy-card { grid-template-columns: 1fr; }
  .buy-cover { max-width: 240px; margin: 0 auto; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ground-zero-card { grid-template-columns: 1fr; gap: 24px; }
  .ground-zero-img { max-width: 320px; margin: 0 auto; }
  .authors-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 18px; align-items: flex-start; }
}
@media (max-width: 720px) {
  .toc-list { grid-template-columns: 1fr; }
  .section { padding: clamp(48px, 9vw, 72px) 0; }
  .section-head { margin-bottom: clamp(28px, 5vw, 40px); }
  .hero { padding: calc(84px + 16px) 0 24px; }
  .hero-title { font-size: clamp(32px, 8vw, 44px); margin: 16px 0 14px; }
  .hero-title br { display: none; }
  .hero-authors { font-size: 17px; margin-bottom: 18px; }
  .hero-lead { font-size: 16px; margin-bottom: 24px; }
  .eyebrow { font-size: 13px; padding: 7px 12px; }
  .pullquote-grid {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 20px;
  }
  .pullquote { font-size: 20px; }
  .buy-card { padding: 24px; gap: 24px; }
  .buy-info h2 { font-size: 26px; }
  .buy-features { font-size: 15px; }
  .price-now { font-size: 30px; }
  .price-old { font-size: 17px; }
  .toc-item { padding: 22px; gap: 16px; }
  .toc-num { font-size: 38px; min-width: 36px; }
  .author-card { padding: 24px; }
  .ground-zero-text h2 { font-size: 28px; }
  .cta-final h2 { font-size: 26px; }
  .cta-final-lead { font-size: 16px; }
  .kontakt-email { font-size: 24px; word-break: break-all; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-brand { text-align: center; }
  .footer-brand .btn { width: 100%; }
}
@media (max-width: 480px) {
  .header-inner { gap: 10px; height: 68px; }
  .brand-logo { height: 22px; }
  .nav-icon { display: none; }
  .btn-cta { padding: 9px 14px; font-size: 13px; }
  .hero { padding-top: calc(68px + 16px); }
  .hero-cta-row { gap: 14px; }
  .hero-cta-row .btn { width: 100%; }
  .hero-cover { max-width: 240px; }
  .container { padding-left: 18px; padding-right: 18px; }
  .section h2 { font-size: clamp(26px, 7vw, 34px); }
  .pullquote { font-size: 18px; line-height: 1.45; }
  .buy-badge { font-size: 12px; }
  .buy-info h2 { font-size: 22px; }
  .buy-price { padding: 16px; }
  .price-now { font-size: 26px; }
  .btn-xl, .btn-lg { padding: 16px 28px; font-size: 16px; }
  .toc-item { padding: 18px; }
  .toc-num { font-size: 32px; min-width: 30px; }
  .author-card { padding: 20px; }
  .faq-item summary { padding: 16px 48px 16px 18px; font-size: 16px; }
  .faq-item summary::after { right: 18px; }
  .faq-body { padding: 0 18px 18px; }
}

/* === Legal pages mobile === */
@media (max-width: 720px) {
  .legal-page {
    padding-top: calc(68px + 32px);
    padding-bottom: 48px;
  }
  .legal-content { font-size: 15px; line-height: 1.65; }
  .legal-content h2 { font-size: clamp(24px, 6vw, 32px); margin: 36px 0 18px; }
  .legal-content h2:first-child { font-size: clamp(28px, 7vw, 38px); }
  .legal-content h3, .legal-content h4 { font-size: 17px; margin: 28px 0 12px; }
  .legal-content ol, .legal-content ul { padding-left: 20px; }
  .legal-content a { word-break: break-word; }
  .legal-content table { font-size: 13px; }
  .legal-content th, .legal-content td { padding: 8px; }
}

/* === Legal pages (Regulamin / Polityka) === */
.legal-page {
  padding-top: calc(84px + clamp(40px, 5vw, 72px));
  padding-bottom: clamp(60px, 8vw, 110px);
  background: var(--bg);
  color: var(--text-mid);
}
.legal-content {
  max-width: 880px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
}
.legal-content h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 48px 0 24px;
}
.legal-content h1 {
  margin: 0 0 32px;
  text-align: center;
  font-size: clamp(34px, 4.4vw, 50px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.legal-content h1 + p.center { margin-top: 0; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3, .legal-content h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 16px;
}
.legal-content p {
  margin: 0 0 16px;
}
.legal-content p.center {
  text-align: center;
  margin: 32px 0 16px;
  font-size: 18px;
  color: var(--text);
}
.legal-content p.center strong { color: var(--text); }
.legal-content strong { color: var(--text); font-weight: 700; }
.legal-content ol, .legal-content ul {
  margin: 0 0 18px;
  padding-left: 24px;
}
.legal-content ol li, .legal-content ul li {
  margin: 0 0 10px;
}
.legal-content ol ol, .legal-content ul ul, .legal-content ol ul, .legal-content ul ol {
  margin-top: 8px;
  margin-bottom: 8px;
}
.legal-content a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover { color: var(--accent); }
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.legal-content th, .legal-content td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal-content th {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-weight: 700;
}
.legal-content em { font-style: italic; color: var(--text); }

/* === Custom scrollbar === */
html {
  scrollbar-color: var(--accent) var(--bg);
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-2);
}
::-webkit-scrollbar-corner { background: var(--bg); }

/* === Cookie banner === */
.cookie-banner {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-card {
  width: 100%;
  max-width: 520px;
  background: #050608;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.9), 0 8px 24px -8px rgba(0,0,0,0.7);
}
.cookie-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}
.cookie-desc {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-mid);
}
.cookie-desc a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-desc a:hover { color: var(--accent-2); }
.cookie-settings {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.cookie-settings[hidden] { display: none; }
.cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
}
.cookie-row-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.cookie-row-text span {
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.4;
}
.cookie-locked {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.cookie-toggle {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 22px;
  cursor: pointer;
  display: inline-block;
}
.cookie-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cookie-toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  transition: background 0.18s ease;
}
.cookie-toggle-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s ease;
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--accent); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(18px); }
.cookie-toggle input:focus-visible + .cookie-toggle-slider { box-shadow: 0 0 0 2px rgba(224,36,36,0.4); }
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cookie-btn {
  flex: 1 1 auto;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.cookie-btn[hidden] { display: none; }
.cookie-btn-primary {
  background: var(--accent);
  color: #fff;
}
.cookie-btn-primary:hover { background: var(--accent-2); }
.cookie-btn-secondary {
  background: transparent;
  color: var(--text-mid);
  border-color: var(--line-strong);
}
.cookie-btn-secondary:hover { color: var(--text); border-color: rgba(255,255,255,0.32); }
@media (max-width: 480px) {
  .cookie-banner-card { padding: 22px; }
  .cookie-actions .cookie-btn { flex: 1 1 100%; }
}
