:root {
  --bg: #151618;
  --bg2: #1d1d21;
  --bg3: #26262a;
  --ink: #dadbdd;
  --ink-light: #b5b5ba;
  --muted: #8c8d95;
  --line: rgba(137, 99, 77, 0.12);
  --line-strong: rgba(181, 104, 60, 0.28);
  --gold: #b5683c;
  --gold2: #c37d54;
  --gold3: #a85b2f;
  --gold-gradient: linear-gradient(135deg, #b97148 0%, #d78454 28%, #ae5e30 55%, #da8e61 80%, #ad5a2a 100%);
  --gold-btn: linear-gradient(180deg, #c27a50 0%, #b15e2d 100%);
  --gold-btn-hover: linear-gradient(180deg, #c98157 0%, #b76333 100%);
  --white-glass: rgba(14, 14, 16, 0.76);
  --white-glass-strong: rgba(14, 14, 16, 0.88);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.256);
  --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.288);
  --shadow-hover: 0 24px 60px rgba(0, 0, 0, 0.448);
  --radius-card: 24px;
  --radius-btn: 16px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 10%, rgba(217, 138, 92, 0.45), transparent 35%),
    radial-gradient(circle at 14% 18%, rgba(42, 42, 47, 0.55), transparent 30%),
    linear-gradient(180deg, #101113 0%, #161619 35%, #1d1d21 100%);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  outline: none;
}

/* Glassmorphism helpers */
.glass {
  background: var(--white-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(14, 14, 16, 0.85);
  box-shadow: var(--shadow-card);
}

.glass-card {
  background: rgba(14, 14, 16, 0.74);
  border: 1px solid rgba(14, 14, 16, 0.95);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
  box-shadow: var(--shadow-hover);
}

.app-surface {
  background: rgba(14, 14, 16, 0.84);
  border: 1px solid rgba(212, 212, 215, 0.08);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 1), 0 10px 25px rgba(0, 0, 0, 0.16);
}

/* Base Buttons */
.gold-btn {
  background: var(--gold-btn);
  color: #ffffff;
  border: 0;
  border-radius: var(--radius-btn);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.8);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  min-width: 44px;
  padding: 12px 24px;
}

.gold-btn:hover {
  background: var(--gold-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 1);
}

.gold-btn:active {
  transform: translateY(0);
}

.gold-btn.small {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 13px;
  border-radius: 14px;
}

.white-btn {
  background: var(--white-glass-strong);
  border: 1px solid rgba(206, 206, 210, 0.12);
  border-radius: var(--radius-btn);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  min-width: 44px;
  padding: 12px 22px;
}

.white-btn:hover {
  background: #0e0e10;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.384);
  border-color: rgba(181, 104, 60, 0.35);
}

.white-btn:active {
  transform: translateY(0);
}

.section-shell {
  width: min(1560px, 94vw);
  margin: 0 auto;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px 4vw;
  border-radius: 0 0 22px 22px;
  border-bottom: 1px solid rgba(188, 139, 111, 0.4);
}

.brand {
  display: flex;
  align-items: center;
  min-width: max-content;
  text-decoration: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #dfdfe2;
  line-height: 1.15;
}

.brand-copy small {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--gold3);
  font-weight: 700;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  font-weight: 500;
  color: #bebec3;
}

.main-nav a {
  padding: 10px 4px;
  position: relative;
  transition: color 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold3);
}

.main-nav a:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.main-nav a:hover:after,
.main-nav a.active:after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(207, 207, 211, 0.12);
  background: #0e0e10;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #b5b5ba;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.192);
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: #131315;
  color: var(--gold3);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.576);
  border-color: rgba(181, 104, 60, 0.35);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-wrapper {
  position: relative;
  overflow: hidden;
  padding: 40px 0 20px;
  margin-bottom: 24px;
}

.hero-bg-canvas {
  position: absolute;
  inset: 0 -4vw;
  background: url('/assets/prawda-bez-filtra-hero-bg.webp') no-repeat center 25% / cover;
  opacity: 0.92;
  z-index: 0;
  pointer-events: none;
  border-radius: 0 0 40px 40px;
  mask-image: linear-gradient(180deg, rgba(239, 239, 240, 1.0) 0%, rgba(239, 239, 240, 0.92) 65%, rgba(239, 239, 240, 0.3) 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(239, 239, 240, 1.0) 0%, rgba(239, 239, 240, 0.92) 65%, rgba(239, 239, 240, 0.3) 88%, transparent 100%);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0 -4vw;
  background: radial-gradient(circle at 45% 42%, rgba(19, 19, 21, 0.86) 0%, rgba(20, 20, 22, 0.72) 58%, rgba(21, 21, 23, 0.25) 100%);
  z-index: 1;
  pointer-events: none;
  border-radius: 0 0 40px 40px;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(320px, 410px) 1fr 280px;
  gap: 46px;
  align-items: center;
  min-height: 640px;
}

/* Hero Book 3D */
.hero-book-wrap {
  position: relative;
  perspective: 1400px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  display: flex;
  justify-content: center;
}

.book-cover {
  width: 100%;
  max-width: 390px;
  height: auto;
  display: block;
  filter: drop-shadow(0 32px 46px rgba(214, 214, 217, 0.32));
  transform: rotateY(-8deg) rotateX(2deg);
  transition: transform 0.2s ease-out;
}

.book-glow {
  position: absolute;
  width: 82%;
  height: 82%;
  left: 14%;
  top: 10%;
  background: radial-gradient(circle, rgba(212, 122, 70, 0.5), transparent 66%);
  filter: blur(38px);
  z-index: -1;
  pointer-events: none;
}

/* Hero Center Copy */
.hero-copy {
  display: flex;
  flex-direction: column;
}

.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: #bdbdc2;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.eyebrow span {
  display: block;
  width: 44px;
  height: 2px;
  background: var(--gold2);
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hero-copy h1 {
  margin: 10px 0 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  line-height: 0.88;
}

.hero-copy h1.hero-title-graphic {
  margin: 8px 0 4px;
  display: block;
  line-height: 1;
}

.hero-copy h1.hero-title-graphic picture,
.hero-copy h1.hero-title-graphic .title-img {
  display: block;
  width: 100%;
  max-width: 550px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(225, 225, 228, 0.12));
}

.hero-copy h1 .title-black {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(52px, 5.6vw, 102px);
  letter-spacing: -0.05em;
  color: #dfdfe2;
}

.hero-copy h1 .title-gold {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(54px, 6vw, 108px);
  letter-spacing: -0.04em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: rotate(-3deg);
  display: inline-block;
  filter: drop-shadow(0 2px 5px rgba(173, 91, 43, 0.2));
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.28em;
  color: #d9d9dc;
  margin: 18px 0 14px;
}

.keywords {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #9f9fa6;
  letter-spacing: 0.2em;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 16px;
}

.keywords i {
  height: 18px;
  width: 1.5px;
  background: var(--gold2);
  display: inline-block;
}

.hero-lead {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-light);
  max-width: 720px;
  margin: 0 0 22px;
}

.hero-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 680px;
  margin-bottom: 12px;
}

.hero-ctas button {
  min-height: 58px;
  font-size: 16.5px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 680px;
  margin-bottom: 26px;
}

.hero-secondary button {
  min-height: 44px;
  font-size: 13.5px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 820px;
  padding-top: 10px;
  border-top: 1px solid rgba(181, 104, 60, 0.2);
}

.feature-strip div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
}

.feature-strip span {
  grid-row: 1/3;
  font-size: 24px;
  color: var(--gold3);
}

.feature-strip b {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #d9d9dc;
}

.feature-strip small {
  font-size: 9px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Hero Quote (Right) */
.hero-quote {
  align-self: start;
  margin-top: 24px;
  background: rgba(14, 14, 16, 0.78);
  border: 1px solid rgba(188, 139, 111, 0.45);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
}

.hero-quote:before {
  content: "“";
  position: absolute;
  top: -12px;
  left: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 54px;
  line-height: 1;
  color: var(--gold2);
  opacity: 0.6;
}

.hero-quote blockquote {
  margin: 12px 0 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: #ccccd0;
}

.hero-quote cite {
  display: block;
  margin-top: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold3);
}

/* ==========================================================================
   PRODUCT GRID (5 CARDS)
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding: 10px 0 70px;
}

.feature-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 545px;
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.step {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-btn);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.896);
}

.card-heading h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #d9d9dc;
}

.card-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 2px 0 0;
  font-weight: 500;
}

/* Card 1: Reader preview */
.reader-preview {
  display: grid;
  grid-template-columns: 42% 58%;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--line);
}

.reader-preview aside {
  padding: 12px;
  background: #17181a;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.reader-preview aside b {
  font-size: 11px;
  font-weight: 700;
  color: #d5d6d9;
  margin-bottom: 4px;
}

.reader-preview aside small {
  font-size: 9px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.reader-preview aside button {
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 9.5px;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  color: #bdbdc2;
  transition: all 0.15s ease;
  min-height: 32px;
}

.reader-preview aside button:hover {
  background: #28282d;
}

.reader-preview aside button.active {
  background: #cd8f6c;
  font-weight: 700;
  color: #dadbdd;
}

.reader-page {
  padding: 14px;
  display: flex;
  flex-direction: column;
  background: #0e0e10;
}

.reader-page small {
  font-size: 10px;
  color: var(--gold3);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.reader-page h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  margin: 2px 0 8px;
  color: #dadbdd;
}

.reader-illustration {
  height: 72px;
  border-radius: 10px;
  background: url('/assets/prawda-bez-filtra-scene-960.webp') no-repeat center 35% / cover;
  margin-bottom: 10px;
  position: relative;
}

.reader-page p {
  font-family: 'Playfair Display', serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: #c3c3c7;
  margin: 0 0 10px;
}

.reader-page mark {
  background: #d88758;
  padding: 2px 3px;
  border-radius: 4px;
}

.progress-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.card-cta {
  margin-top: auto;
  min-height: 44px;
  padding: 10px 14px;
  background: #0e0e10;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold3);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.card-cta:hover {
  background: var(--gold3);
  color: #ffffff;
  border-color: var(--gold3);
  transform: translateY(-1px);
}

/* Card 2: Audio Player */
.audio-player {
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.audio-top {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
}

.audio-top img {
  width: 52px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.64);
}

.audio-top div {
  display: flex;
  flex-direction: column;
}

.audio-top b {
  font-size: 13px;
  color: #dadbdd;
}

.audio-top small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.heart-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.heart-btn:hover,
.heart-btn.active {
  color: #6e6e7b;
  transform: scale(1.15);
}

.audio-player h3 {
  font-size: 13.5px;
  margin: 14px 0 2px;
  color: var(--gold3);
}

.audio-player .audio-ch-title {
  font-size: 12.5px;
  font-weight: 600;
  margin: 0;
  color: #dadbdd;
}

/* Waveform Visualizer */
.waveform-container {
  height: 54px;
  margin: 12px 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  padding: 0 4px;
  cursor: pointer;
}

.waveform-bar {
  flex: 1;
  height: 30%;
  background: var(--gold2);
  border-radius: 3px;
  transition: height 0.15s ease;
  min-width: 3px;
}

.waveform-container.playing .waveform-bar {
  animation: wavePulse 1.2s ease-in-out infinite alternate;
}

@keyframes wavePulse {
  0% { height: 20%; background: #c37d54; }
  50% { height: 85%; background: #b5683c; }
  100% { height: 35%; background: #a85b2f; }
}

.audio-time {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 600;
}

/* TTS Generator controls */
.tts-settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #151618;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  margin: 10px 0 4px;
}

.tts-speed-selector {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tts-label {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin-right: 2px;
}

.tts-speed-btn {
  border: 1px solid var(--line);
  background: #0e0e10;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #bebec3;
  padding: 3px 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 24px;
}

.tts-speed-btn:hover {
  border-color: var(--gold3);
  color: var(--gold3);
}

.tts-speed-btn.active {
  background: var(--gold-btn);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.tts-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  color: #a1a2a9;
  font-weight: 600;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  transition: all 0.2s ease;
}

.pulse-dot.speaking {
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
  animation: pulse-ring 1.4s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(208, 110, 53, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(208, 110, 53, 0.0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(208, 110, 53, 0.0); }
}

.audio-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 14px 0 10px;
  padding: 0 4px;
}

.audio-controls button,
.audio-controls .audio-ctrl-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  color: #bebec3;
  transition: all 0.2s ease;
  border-radius: 50%;
  flex-shrink: 0;
}

.audio-controls button:hover,
.audio-controls .audio-ctrl-btn:hover {
  color: var(--gold3);
  transform: scale(1.12);
  background: rgba(182, 128, 96, 0.1);
}

.audio-controls .play-btn {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  border-radius: 50%;
  background: var(--gold-btn);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.audio-controls .play-btn:hover {
  background: var(--gold-btn-hover);
  transform: scale(1.08);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 1);
}

.audio-controls .play-btn svg {
  display: block;
}

.audio-chapter-row {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 6px;
  align-items: center;
  background: #151618;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  margin-top: 4px;
}

.audio-chapter-row button {
  border: 0;
  background: transparent;
  font-size: 22px;
  color: var(--gold3);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: grid;
  place-items: center;
}

.audio-chapter-row div {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.audio-chapter-row small {
  font-size: 8.5px;
  color: var(--muted);
  text-transform: uppercase;
}

.audio-chapter-row b {
  font-size: 10.5px;
  color: #dadbdd;
}

.setup-note {
  font-size: 9px;
  color: var(--muted);
  margin: 8px 4px 0;
  text-align: center;
}

/* Card 3: Download list */
.download-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-btn {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: #0e0e10;
  border-radius: 14px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 52px;
}

.download-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(181, 104, 60, 0.4);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.256);
}

.file-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.file-icon.red { background: linear-gradient(135deg, #676874, #878790); }
.file-icon.green { background: linear-gradient(135deg, #84858e, #a4a5ab); }
.file-icon.blue { background: linear-gradient(135deg, #717280, #93939b); }

.download-btn span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.download-btn b {
  font-size: 12.5px;
  color: #dadbdd;
}

.download-btn small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 2px;
}

.download-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--gold3);
  background: #17171a;
}

.download-btn.bundle {
  background: linear-gradient(180deg, #151618 0%, #29292f 100%);
  border-color: rgba(181, 104, 60, 0.35);
  margin-top: 6px;
}

.bundle-icon {
  font-size: 26px;
  display: grid;
  place-items: center;
  color: var(--gold3);
}

/* Card 4: Share panel & Quote Rotator */
.share-panel {
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.share-quote-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}

.share-quote-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold3);
  background: rgba(177, 94, 45, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(195, 125, 84, 0.3);
}

.quote-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(0, 0, 0, 1);
  animation: quotePulse 2s infinite ease-in-out;
}

@keyframes quotePulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.quote-nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quote-nav-btn {
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #0e0e10;
  border-radius: 50%;
  color: #ccccd0;
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.128);
}

.quote-nav-btn:hover {
  background: var(--gold-btn);
  color: #ffffff;
  border-color: var(--gold);
  transform: scale(1.05);
}

.share-panel blockquote {
  margin: 0;
  padding: 16px;
  background: linear-gradient(90deg, #1f1f23, #db9065);
  font-family: 'Playfair Display', serif;
  font-size: 14.5px;
  line-height: 1.5;
  color: #ccccd0;
  border-radius: 12px;
  position: relative;
  border: 1px solid rgba(195, 125, 84, 0.4);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.share-panel blockquote.fade-out {
  opacity: 0;
  transform: translateY(4px);
}

.share-panel blockquote:before,
.share-panel blockquote:after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.share-panel blockquote:before { left: -4px; top: -4px; }
.share-panel blockquote:after { right: -4px; bottom: -4px; }

.share-quote-source {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
  font-style: italic;
  padding-right: 4px;
}

.selection-actions {
  display: flex;
  gap: 6px;
  margin: 10px 0;
}

.selection-actions button {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #0e0e10;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #bebec3;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.selection-actions button:hover {
  background: #17181a;
  border-color: var(--gold2);
  color: var(--gold3);
}

.share-preview {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  background: #0e0e10;
}

.share-preview img {
  width: 50px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.share-preview div {
  display: flex;
  flex-direction: column;
}

.share-preview b {
  font-size: 11px;
  color: #dadbdd;
}

.share-preview small {
  font-size: 8.5px;
  color: var(--muted);
}

.share-preview p {
  font-size: 8.5px;
  color: #b2b2b8;
  margin: 3px 0 0;
  line-height: 1.3;
}

.social-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
  width: 100%;
  box-sizing: border-box;
}

.social-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #0e0e10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.192);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  color: #c5c6ca;
  flex-shrink: 0;
}

.social-btn svg {
  display: block;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.384);
}

.social-btn.lumina-share-l {
  background: linear-gradient(135deg, #b3182d 0%, #8f0f22 100%) !important;
  color: #ffffff !important;
  font-family: 'Cinzel', 'Montserrat', sans-serif !important;
  font-weight: 900 !important;
  font-size: 16px;
  border: 1.5px solid #d4af37 !important;
  box-shadow: 0 4px 14px rgba(166, 18, 41, 0.45), 0 0 8px rgba(212, 175, 55, 0.3) !important;
}

.social-btn.lumina-share-l:hover {
  background: linear-gradient(135deg, #c71f37 0%, #a01227 100%) !important;
  border-color: #facc15 !important;
  box-shadow: 0 6px 18px rgba(166, 18, 41, 0.6), 0 0 14px rgba(250, 204, 21, 0.5) !important;
  transform: translateY(-2px) scale(1.08);
}

.social-btn.x-btn {
  background: #000000;
  color: #ffffff;
  border: 0;
}

.social-btn.x-btn:hover {
  background: #181818;
  transform: translateY(-2px) scale(1.05);
}

.social-btn.fb-btn:hover {
  border-color: #1877F2;
  color: #1877F2;
}

.social-btn.in-btn:hover {
  border-color: #0A66C2;
  color: #0A66C2;
}

.social-btn.wa-btn:hover {
  border-color: #25D366;
  color: #25D366;
}

.social-btn.link-btn:hover {
  border-color: var(--gold3);
  color: var(--gold3);
}

/* Card 5: Support card */
.support-card {
  overflow: hidden;
}

.support-visual {
  height: 120px;
  border-radius: 16px;
  background: url('/assets/prawda-bez-filtra-support.webp') no-repeat center center / cover;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.48);
  margin-bottom: 8px;
  border: 1px solid rgba(14, 14, 16, 0.8);
}

.support-copy {
  padding: 4px;
}

.support-copy b {
  font-size: 13px;
  color: #dadbdd;
  display: block;
}

.support-copy p {
  font-size: 10.5px;
  line-height: 1.45;
  color: #a5a5ac;
  margin: 4px 0 10px;
}

.amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.amounts button {
  border: 1px solid var(--line);
  background: #0e0e10;
  border-radius: 10px;
  min-height: 44px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #bebec3;
}

.amounts button:hover {
  border-color: var(--gold2);
  background: #17181a;
}

.amounts button.active {
  background: var(--gold-btn);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.support-btn {
  width: 100%;
  margin-top: 4px;
}

.support-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.support-benefits span {
  text-align: center;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.support-benefits small {
  display: block;
  font-size: 8.5px;
  line-height: 1.25;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}

/* ==========================================================================
   AUTHOR SECTION
   ========================================================================== */
.author-section {
  padding: 20px 0 70px;
}

.author-card {
  padding: 44px 30px;
  text-align: center;
}

.author-card .eyebrow.simple {
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.35em;
  color: var(--gold3);
}

.author-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 700;
  margin: 10px 0 16px;
  color: #dadbdd;
}

.author-card p {
  max-width: 840px;
  margin: 0 auto 24px;
  color: #b1b1b7;
  font-size: 17px;
  line-height: 1.75;
}

.author-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold3);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(181, 104, 60, 0.08);
  border: 1px solid rgba(181, 104, 60, 0.22);
  transition: all 0.2s ease;
  min-height: 44px;
}

.author-profile-link:hover {
  background: var(--gold);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 5vw;
  border-top: 1px solid var(--line);
  background: rgba(14, 14, 16, 0.65);
}

.site-footer div {
  display: flex;
  gap: 20px;
  align-items: center;
}

.site-footer b {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.15em;
  font-size: 13px;
}

.site-footer span,
.site-footer a {
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-footer a:hover {
  color: var(--gold3);
}

/* ==========================================================================
   MODAL: FULL READER
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(225, 225, 228, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.reader-modal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(1160px, 95vw);
  height: min(820px, 92vh);
  display: grid;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 1);
  background: #0e0e10;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  z-index: 20;
  border: 1px solid var(--line);
  background: #0e0e10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #c5c6ca;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--gold3);
  color: #ffffff;
  transform: scale(1.05);
}

.reader-modal-nav {
  padding: 32px 24px;
  background: #1a1b1e;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.reader-modal-nav b {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #dadbdd;
  margin-bottom: 4px;
}

.reader-modal-nav small {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.reader-modal-nav button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12.5px;
  color: #bebec3;
  transition: all 0.15s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.reader-modal-nav button:hover {
  background: #c9997c;
}

.reader-modal-nav button.active {
  background: #c58d6c;
  color: #dfdfe2;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.reader-modal-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #111113;
}

.reader-modal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 84px 12px 24px;
  border-bottom: 1px solid var(--line);
  background: #0e0e10;
  gap: 12px;
}

/* Modal TTS Controls */
.modal-tts-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-tts-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gold-btn);
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  min-height: 44px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  transition: all 0.2s ease;
}

.modal-tts-play-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 1);
}

.modal-tts-play-btn.playing {
  background: #1a1917;
  color: #d78454;
  border: 1px solid var(--gold3);
}

.modal-tts-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Clickable paragraphs and active reading highlight */
.tts-paragraph-target {
  cursor: pointer;
  border-left: 4px solid transparent;
  padding-left: 8px;
  border-radius: 4px;
  transition: background 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
}

.tts-paragraph-target:hover {
  background: rgba(192, 120, 79, 0.08);
}

.tts-reading-highlight {
  background: rgba(192, 120, 79, 0.22) !important;
  border-left: 4px solid var(--gold3) !important;
  padding-left: 14px !important;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.48);
}

.reader-modal-page.theme-dark .tts-reading-highlight {
  background: rgba(247, 214, 134, 0.18) !important;
  border-left: 4px solid #f7d686 !important;
  box-shadow: 0 4px 16px rgba(247, 214, 134, 0.12);
}

.reader-modal-page.theme-sepia .tts-reading-highlight {
  background: rgba(185, 133, 36, 0.22) !important;
  border-left: 4px solid #b98524 !important;
}

.reader-theme-switcher {
  display: flex;
  gap: 6px;
}

.reader-theme-switcher button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  cursor: pointer;
  min-height: 44px;
}

.reader-theme-switcher button.theme-light { background: #ffffff; }
.reader-theme-switcher button.theme-sepia { background: #f4ecd8; }
.reader-theme-switcher button.theme-dark { background: #22201d; color: #fff; }

.reader-font-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.reader-font-controls button {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0e0e10;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}

.reader-modal-page {
  padding: 40px 60px 80px;
  overflow-y: auto;
  flex: 1;
}

.reader-modal-page.theme-sepia {
  background: #fbf5e6;
  color: #2e281e;
}

.reader-modal-page.theme-dark {
  background: #1c1a17;
  color: #e5dec9;
}

.reader-modal-page.theme-dark h2,
.reader-modal-page.theme-dark h3 {
  color: #f7d686;
}

.reader-modal-page small {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold3);
  text-transform: uppercase;
  font-weight: 700;
}

.reader-modal-page h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 700;
  margin: 6px 0 20px;
  color: #dadbdd;
}

.reader-modal-page p {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  line-height: 1.8;
  color: #c3c3c8;
  margin-bottom: 20px;
}

.reader-modal-page blockquote {
  margin: 24px 0;
  padding: 18px 24px;
  background: rgba(181, 104, 60, 0.08);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  font-style: italic;
}

.reader-modal-page .reader-actions {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   SEARCH MODAL
   ========================================================================== */
.search-modal {
  position: absolute;
  left: 50%;
  top: 15%;
  transform: translateX(-50%);
  width: min(640px, 94vw);
  background: #0e0e10;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--line);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #17181a;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 4px 16px;
}

.search-input-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 16px;
  outline: none;
  font-family: inherit;
}

.search-results {
  margin-top: 16px;
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 44px;
}

.search-item:hover {
  background: #1a1b1e;
  border-color: var(--gold2);
}

.search-item b {
  font-size: 14px;
  display: block;
  color: #dadbdd;
}

.search-item small {
  font-size: 11px;
  color: var(--muted);
}

/* Floating Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #11100e;
  border: 1.5px solid var(--gold2);
  color: var(--gold2);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  z-index: 80;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Toast */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #1e1b17;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 300;
  pointer-events: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.96);
  border: 1px solid rgba(195, 125, 84, 0.3);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVENESS (320px - 1440px)
   ========================================================================== */
@media (max-width: 1360px) {
  .hero {
    grid-template-columns: 340px 1fr;
    gap: 32px;
  }
  .hero-quote {
    display: none;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-card:nth-child(4) {
    grid-column: span 1;
  }
  .feature-card:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 1024px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: grid !important;
  }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 30px;
  }
  .hero-book-wrap {
    max-width: 320px;
    margin: 0 auto;
  }
  .eyebrow, .keywords, .hero-copy h1 {
    justify-content: center;
  }
  .hero-copy h1.hero-title-graphic {
    display: flex;
    justify-content: center;
  }
  .hero-copy h1.hero-title-graphic .title-img {
    max-width: min(440px, 86vw);
    margin: 0 auto;
  }
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas, .hero-secondary, .feature-strip {
    margin-left: auto;
    margin-right: auto;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  /* Jedna kolumna: karta ma wysokość treści, bez pustych pól pod przyciskami */
  .feature-card {
    min-height: 0;
  }
  .feature-card:nth-child(5) {
    grid-column: auto;
  }
  .hero-ctas {
    grid-template-columns: 1fr;
  }
  .hero-secondary {
    grid-template-columns: 1fr;
  }
  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .reader-modal {
    grid-template-columns: 1fr;
  }
  .reader-modal-nav {
    display: none;
  }
  .reader-modal-toolbar {
    padding: 10px 76px 10px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .reader-modal-page {
    padding: 30px 20px;
  }
  .site-footer {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .reader-modal-toolbar {
    padding: 10px 76px 10px 14px;
  }
  .modal-tts-status {
    display: none;
  }
  .reader-modal-toolbar #readerProgressInfo {
    display: none;
  }
  .brand-copy small {
    display: none;
  }
  .brand-copy strong {
    font-size: 11px;
  }
  .hero-copy h1 .title-black,
  .hero-copy h1 .title-gold {
    font-size: 42px;
  }
  .hero-copy h1.hero-title-graphic .title-img {
    max-width: min(310px, 86vw);
  }
  .hero-subtitle {
    font-size: 13px;
    letter-spacing: 0.16em;
  }
  .keywords {
    font-size: 11px;
    gap: 10px;
  }
  .amounts {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   POPRAWKI 2026-10-06
   ========================================================================== */
/* Pakiet ZIP — jeszcze nieopublikowany */
.download-btn.is-soon {
  grid-template-columns: 44px 1fr auto;
  cursor: default;
  opacity: 0.72;
}
.download-btn.is-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}
.download-soon-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9e5d38;
  background: rgba(192, 118, 75, 0.16);
  white-space: nowrap;
}

/* Nagłówek na telefonie: przycisk logowania mieści się w ekranie */
.site-header .brand,
.site-header .header-actions {
  min-width: 0;
}
@media (max-width: 480px) {
  .site-header .header-actions {
    gap: 8px;
  }
  .site-header .header-actions .cc-auth-google-btn .cc-auth-lumina-tag {
    display: none;
  }
  .site-header .header-actions .cc-auth-google-btn {
    padding: 6px 12px 6px 10px;
  }
}

/* Skip link (dostępność klawiatury) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 12px;
  background: #171716;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 12px;
}

/* Widoczny fokus dla klawiatury */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Sekcje nie chowają się pod przyklejonym nagłówkiem */
main [id],
#autor {
  scroll-margin-top: 96px;
}

/* Przycisk menu — widoczny tylko na tablecie i telefonie */
.mobile-menu-btn {
  display: none;
}
.mobile-menu-btn .mm-line {
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: 12px 12px;
}
.site-header.nav-open .mobile-menu-btn .mm-1 {
  transform: translateY(5px) rotate(45deg);
}
.site-header.nav-open .mobile-menu-btn .mm-2 {
  opacity: 0;
}
.site-header.nav-open .mobile-menu-btn .mm-3 {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    padding: 10px;
    background: rgba(14, 14, 16, 0.97);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-hover);
    font-size: 16px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
  .site-header.nav-open .main-nav a {
    padding: 12px 14px;
    border-radius: 12px;
  }
  .site-header.nav-open .main-nav a:after {
    display: none;
  }
  .site-header.nav-open .main-nav a:hover,
  .site-header.nav-open .main-nav a.active {
    background: rgba(192, 118, 75, 0.12);
  }
}

/* Narzędzia mini-czytnika: cel dotyku min. 44 px */
.mini-tool-btn {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: inherit;
  border-radius: 10px;
}
.mini-tool-btn:hover {
  background: rgba(192, 118, 75, 0.12);
}

/* Czytnik: przełączanie rozdziałów */
.reader-chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
}
.reader-chapter-nav button {
  flex: 1 1 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  line-height: 1.25;
}
.reader-chapter-nav button[disabled] {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
@media (max-width: 480px) {
  .reader-chapter-nav {
    flex-direction: column-reverse;
  }
}


/* Lektor niedostępny */
.play-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Ograniczony ruch: bez animacji i efektu 3D */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Lżejsze tło hero na telefonach */
@media (max-width: 768px) {
  .hero-bg-canvas {
    background-image: url('/assets/prawda-bez-filtra-hero-bg-960.webp');
  }
}

/* Nagłówek: okrągłe przyciski + logowanie zredukowane do ikony i słowa „Zaloguj” */
.site-header .icon-btn {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
}
.site-header .header-actions .cc-auth-google-btn .cc-auth-lumina-tag,
.site-header .header-actions .cc-auth-google-btn span.cc-auth-btn-text-full {
  display: none !important;
}
.site-header .header-actions .cc-auth-google-btn span.cc-auth-btn-text-short {
  display: inline !important;
}
.site-header .header-actions .cc-auth-google-btn {
  flex: 0 0 auto;
}
@media (max-width: 380px) {
  .site-header {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .site-header .header-actions {
    gap: 6px;
  }
  .site-header .brand-copy strong {
    font-size: 10px;
    letter-spacing: 0.06em;
  }
  .site-header .header-actions .cc-auth-google-btn {
    padding: 6px 10px 6px 8px !important;
    gap: 6px !important;
  }
}
@media (max-width: 340px) {
  .site-header {
    gap: 6px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .site-header .brand-copy strong {
    letter-spacing: 0;
  }
  .site-header .icon-btn {
    flex-basis: 40px;
    width: 40px;
    min-width: 40px;
    height: 40px;
  }
  .site-header .header-actions {
    gap: 4px;
  }
}

/* ==========================================================================
   v15 — poprawki wizualne (6.10.2026)
   ========================================================================== */
/* Siatka kart: 5 kolumn było za wąskie (ucinało czytnik, lektor i spis treści).
   Na komputerze zawsze 3 kolumny: 1–3 w pierwszym rzędzie, 4 + szeroka 5 w drugim. */
@media (min-width: 1025px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  .feature-card:nth-child(4) { grid-column: span 1; }
  .feature-card:nth-child(5) { grid-column: span 2; }
}

/* Duży, wyraźny cudzysłów w cytacie hero */
.hero-quote {
  padding: 34px 28px 26px;
  margin-top: 46px;
}
.hero-quote:before {
  content: "\201C";
  top: -58px;
  left: 18px;
  font-size: 132px;
  line-height: 1;
  font-weight: 700;
  color: var(--gold2);
  opacity: 0.9;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.576);
  pointer-events: none;
}
.hero-quote blockquote {
  margin-top: 18px;
  font-size: 20px;
  line-height: 1.55;
}

/* Lektor: tempo i status nie wychodzą poza kartę */
.tts-settings-row {
  flex-wrap: wrap;
  gap: 6px 10px;
}
.tts-speed-selector { flex-wrap: nowrap; }
.tts-indicator {
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
  text-align: right;
  line-height: 1.3;
}
#ttsStatusText { overflow-wrap: anywhere; }

/* Spis treści czytnika: pełne nazwy rozdziałów, bez ucinania */
.reader-preview aside button {
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-align: left;
  line-height: 1.25;
}
.reader-page h3 {
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Cytat w karcie Udostępnij: nie wychodzi poza ramkę */
#shareQuote {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Telefon */
@media (max-width: 480px) {
  .hero-quote { margin-top: 52px; }
  .hero-quote:before { font-size: 112px; top: -50px; }
  .hero-quote blockquote { font-size: 18px; }
  .tts-indicator { flex-basis: 100%; justify-content: center; text-align: center; }
}

/* Pasek pod podglądem czytnika: zawija się zamiast ucinać przyciski */
.reader-page .progress-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
}
.reader-page .progress-row > div { gap: 2px !important; margin-left: auto; }
@media (min-width: 1025px) and (max-width: 1280px) {
  .reader-page .mini-tool-btn { min-width: 36px; min-height: 40px; }
}
.hero-quote:before { top: -48px; }

/* ==========================================================================
   KOD ŹRÓDŁOWY — motyw ciemny, czerwony neon (nadpisania po konwersji)
   ========================================================================== */
:root {
  --bg: #0b0b0d;
  --ink: #ececef;
  --ink-light: #c4c4cb;
  --muted: #9a9aa4;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(219, 145, 101, 0.38);
  --gold: #cc875f;
  --gold2: #db9165;
  --gold3: #e4ab8a;
  --neon: #db9165;
  --neon-glow: 0 0 18px rgba(219, 145, 101, 0.55), 0 0 42px rgba(219, 145, 101, 0.25);
  --white-glass: rgba(18, 18, 22, 0.78);
  --white-glass-strong: rgba(24, 24, 29, 0.92);
}
html { color-scheme: dark; }
body {
  background:
    radial-gradient(circle at 85% 8%, rgba(219, 145, 101, 0.16), transparent 38%),
    radial-gradient(circle at 10% 20%, rgba(138, 84, 53, 0.20), transparent 32%),
    linear-gradient(180deg, #0a0a0c 0%, #0d0d10 45%, #111115 100%);
  color: var(--ink);
}
.glass-card {
  background: rgba(20, 20, 25, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.glass-card:hover { border-color: rgba(219, 145, 101, 0.28); }
.site-header.glass { border-color: rgba(255, 255, 255, 0.06); }
.app-surface { border-color: rgba(255, 255, 255, 0.08); }

/* Tło hero: nocna Warszawa + kod */
.hero-bg-overlay {
  background:
    linear-gradient(90deg, rgba(10, 10, 12, 0.92) 0%, rgba(10, 10, 12, 0.55) 45%, rgba(10, 10, 12, 0.85) 100%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.2) 0%, rgba(10, 10, 12, 0.95) 100%) !important;
}

/* Okładka */
.hero-book-wrap .book-cover {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 40px rgba(219, 145, 101, 0.25));
}
.book-glow { background: radial-gradient(circle, rgba(219, 145, 101, 0.35), transparent 65%) !important; }

/* Tytuł tekstowy w stylu okładki */
.kod-title {
  margin: 6px 0 10px;
  font-family: 'Oswald', 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(54px, 7.2vw, 108px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #db9165;
  text-shadow: var(--neon-glow);
  position: relative;
}
.kod-title span { display: block; }
.kod-title .glitch { position: relative; display: inline-block; }
.kod-title .glitch::after {
  content: attr(data-text);
  position: absolute; left: 3px; top: 0;
  color: rgba(0, 255, 230, 0.35);
  clip-path: inset(42% 0 46% 0);
  text-shadow: none;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .kod-title .glitch::after { animation: kod-glitch 3.6s infinite steps(1); }
}
@keyframes kod-glitch {
  0%, 86%, 100% { clip-path: inset(42% 0 46% 0); transform: translateX(0); }
  88% { clip-path: inset(12% 0 70% 0); transform: translateX(-4px); }
  91% { clip-path: inset(62% 0 18% 0); transform: translateX(5px); }
  94% { clip-path: inset(30% 0 52% 0); transform: translateX(-2px); }
}
.hero-subtitle { color: #f2f2f5; }
.keywords span { color: #c9c9d1; }
.keywords i { background: var(--neon); }
.eyebrow .gold-line { background: var(--neon); }
.eyebrow { color: #edc7b1; }

/* Przyciski */
.gold-btn { box-shadow: 0 10px 28px rgba(219, 145, 101, 0.28); }
.white-btn { color: var(--ink); border-color: rgba(255, 255, 255, 0.10); }
.white-btn:hover { border-color: rgba(219, 145, 101, 0.45); }

/* Cytat hero */
.hero-quote {
  background: rgba(16, 16, 20, 0.82);
  border-color: rgba(219, 145, 101, 0.25);
}
.hero-quote:before { color: var(--neon); text-shadow: var(--neon-glow); }
.hero-quote blockquote { color: #f1f1f4; }
.hero-quote cite { color: #edc7b1; }

/* Czytnik: motyw jasny jako opcja */
.reader-modal-page.theme-light { background: #fbfaf7; color: #1b1b1e; }
.reader-modal-page.theme-light h2, .reader-modal-page.theme-light h3 { color: #b8693b; }
.reader-modal-page.theme-light small { color: #b8693b; }
.reader-theme-switcher button.theme-light { color: #1b1b1e; }
.reader-theme-switcher button.theme-sepia { color: #2e281e; }
.reader-modal-page.theme-sepia h2, .reader-modal-page.theme-sepia h3 { color: #995c38; }
.reader-modal-page .scene-lead { font-style: italic; opacity: 0.9; border-left: 3px solid var(--neon); padding-left: 14px; }
.reader-modal-page .soon-note { margin-top: 28px; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: 12px; font-size: 14px; color: var(--muted); }

/* Wybrane akcenty */
mark, .tts-reading-highlight { background: rgba(219, 145, 101, 0.22); color: inherit; box-shadow: 0 0 0 2px rgba(219, 145, 101, 0.15); }
.reader-preview aside button.active { background: rgba(219, 145, 101, 0.18); color: #f1d5c5; }
.step { box-shadow: 0 0 18px rgba(219, 145, 101, 0.45); }
.support-visual { filter: saturate(1.1); }
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.06); }


/* Poprawki po przeglądzie wizualnym */
.kod-title .glitch::after { clip-path: inset(100% 0 0 0); color: rgba(0, 240, 220, 0.55); }
@keyframes kod-glitch {
  0%, 88%, 100% { clip-path: inset(100% 0 0 0); transform: translateX(0); }
  89% { clip-path: inset(14% 0 70% 0); transform: translateX(-5px); }
  92% { clip-path: inset(60% 0 22% 0); transform: translateX(5px); }
  95% { clip-path: inset(34% 0 50% 0); transform: translateX(-2px); }
}
.reader-page mark, #miniReaderText mark {
  background: rgba(219, 145, 101, 0.16);
  color: #f3f3f6;
  box-shadow: none;
}
#shareQuote {
  background: linear-gradient(135deg, rgba(219, 145, 101, 0.10), rgba(20, 20, 25, 0.9)) !important;
  border: 1px solid rgba(219, 145, 101, 0.35) !important;
  color: #f3f3f6 !important;
}
.file-icon.red { background: linear-gradient(180deg, #de9971, #b9693a) !important; }
.file-icon.green { background: linear-gradient(180deg, #22c55e, #15803d) !important; }
.download-arrow { color: #edc7b1; }

/* Spis 30 rozdziałów: przewijany, karta nie rośnie */
.reader-preview { align-items: stretch; }
.reader-preview aside {
  max-height: 440px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(219, 145, 101, 0.5) transparent;
}
.reader-preview aside b, .reader-preview aside small { position: sticky; top: 0; background: inherit; z-index: 1; }
.reader-modal-nav { overflow-y: auto; }
@media (max-width: 768px) { .reader-preview aside { max-height: 280px; } }



/* === Prawda Bez Filtra — tytuł szeryfowy === */
.prawda-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 800; font-size: clamp(44px, 6.2vw, 82px); line-height: 1.02; margin: 10px 0 12px; color: #f3e6d8; letter-spacing: .01em; }
.prawda-title span { display: block; }
.prawda-title .accent { color: #c9363f; font-style: italic; }

/* === Bramka 18+ === */
.adult-gate-section { padding-top: 10px; }
.adult-gate-card { max-width: 760px; margin: 0 auto; padding: 30px 30px 26px; text-align: left; }
.adult-gate-card .badge18 { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--gold2); color: var(--gold2); font-weight: 800; font-size: 17px; margin-bottom: 12px; }
.adult-gate-card h2 { margin: 0 0 10px; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(24px, 3vw, 32px); color: #f4ede6; }
.adult-gate-card p { color: var(--ink-light); line-height: 1.65; margin: 0 0 14px; }
.adult-gate-card .gate-step { margin-top: 16px; }
.adult-gate-card .gate-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #efe7df; margin-bottom: 16px; cursor: pointer; }
.adult-gate-card .gate-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold2); flex-shrink: 0; }
.adult-gate-card .gate-status { margin: 14px 0 0; font-size: 13px; color: var(--muted); min-height: 1.2em; }
.adult-gate-card button[disabled] { opacity: .5; cursor: not-allowed; }
.adult-gate-card .gate-note { font-size: 12.5px; color: var(--muted); margin-top: 16px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; }

/* długie tytuły rozdziałów w spisie treści — bez nachodzenia */
.gated-card[hidden], .adult-gate-section[hidden] { display: none !important; }
.reader-modal-nav button, .reader-preview aside button { flex-shrink: 0; height: auto; white-space: normal; line-height: 1.35; }
