:root {
  --navy-900: #101d33;
  --navy-800: #16233b;
  --navy-700: #1e3766;
  --gold: #c0a264;
  --gold-bright: #d4b87a;
  --paper: #f7f4ee;
  --white: #ffffff;
  --ink: #1c2434;
  --muted: #5b6472;
  --line: rgba(28, 36, 52, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 60px rgba(16, 29, 51, 0.35);
  --radius: 14px;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.15; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; margin-bottom: 1.1rem; }
h3 { font-size: 1.3rem; font-weight: 700; }
.section p + p { margin-top: 0.9rem; }

a { color: var(--navy-700); }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: var(--navy-900);
  box-shadow: 0 10px 26px rgba(192, 162, 100, 0.35);
}
.btn-gold:hover { box-shadow: 0 14px 34px rgba(192, 162, 100, 0.5); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--line-light);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-navy { background: var(--navy-700); color: var(--white); }
.btn-navy:hover { background: var(--navy-800); }
.btn-big { font-size: 1.1rem; padding: 1.05rem 2.4rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 29, 51, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(192, 162, 100, 0.25);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-mono {
  font-family: var(--font-sans); font-weight: 700; font-size: 0.95rem;
  color: var(--navy-900); background: var(--gold);
  width: 38px; height: 38px; border-radius: 9px;
  display: grid; place-items: center; letter-spacing: 0.02em;
}
.nav-title { font-family: var(--font-sans); font-weight: 600; color: var(--white); font-size: 1.05rem; }
.btn-nav { padding: 0.6rem 1.3rem; font-size: 0.92rem; }
@media (max-width: 560px) { .nav-title { display: none; } }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(192, 162, 100, 0.14), transparent 60%),
    linear-gradient(100deg, rgba(13, 22, 40, 0.96) 0%, rgba(13, 22, 40, 0.86) 42%, rgba(16, 29, 51, 0.5) 100%),
    url('/assets/hero-bg.webp') center / cover no-repeat,
    linear-gradient(165deg, var(--navy-800) 0%, var(--navy-900) 70%);
  color: var(--white);
  padding: clamp(56px, 9vw, 110px) 0 clamp(56px, 8vw, 100px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 4.4rem); font-weight: 800; letter-spacing: -0.01em; }
.hero-sub {
  font-family: var(--font-sans); font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: #d7dbe4; margin-top: 0.9rem;
}
.hero-hook {
  margin-top: 1.6rem;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
  font-family: var(--font-sans); font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--gold-bright);
}
.hero-lead { margin-top: 1rem; color: #c3cad8; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 2.2rem; list-style: none;
  color: #9aa5b8; font-size: 0.9rem;
}
.hero-meta li { position: relative; padding-left: 16px; }
.hero-meta li::before { content: ""; position: absolute; left: 0; top: 0.52em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero-book { position: relative; perspective: 1500px; }
.book3d {
  position: relative;
  width: min(330px, 78%);
  margin: 0 auto;
  transform-style: preserve-3d;
  transform: rotateY(-26deg);
}
.book3d-front {
  display: block; width: 100%; height: auto;
  transform: translateZ(18px);
  border-radius: 3px 10px 10px 3px;
  box-shadow: 34px 44px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(192, 162, 100, 0.28);
}
.book3d-back {
  position: absolute; inset: 0;
  background: #0d1729;
  border-radius: 10px 3px 3px 10px;
  transform: translateZ(-18px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.book3d-spine {
  position: absolute; top: 0; bottom: 0; left: -18px; width: 36px;
  background: linear-gradient(180deg, #1b2d52 0%, #101d33 100%);
  transform: rotateY(90deg);
  display: flex; align-items: center; justify-content: center;
}
.book3d-spine span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-sans); font-weight: 600; font-size: 0.58rem;
  letter-spacing: 0.18em; white-space: nowrap;
  color: var(--gold-bright);
}
.hero-meta .meta-pill {
  border: 1px solid rgba(192, 162, 100, 0.55);
  border-radius: 999px;
  padding: 0.2rem 0.85rem;
  color: var(--gold-bright);
  font-weight: 600; letter-spacing: 0.04em;
}
.hero-meta .meta-pill::before { display: none; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-book { order: -1; }
  .book3d { width: min(230px, 58vw); transform: rotateY(-18deg); }
  .hero-copy { text-align: left; }
}

/* ---------- quote strip ---------- */
.quote-strip { background: var(--gold); padding: 34px 0; }
.quote-strip blockquote { max-width: 880px; margin: 0 auto; text-align: center; }
.quote-strip p { font-family: var(--font-serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; color: var(--navy-900); }
.quote-strip cite { display: block; margin-top: 10px; font-style: normal; font-weight: 700; font-size: 0.92rem; color: var(--navy-800); }
.quote-strip cite span { font-weight: 400; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-paper { background: var(--paper); }
.section-navy { background: linear-gradient(170deg, var(--navy-800), var(--navy-900)); color: var(--white); }
.section-navy h2 { color: var(--white); }
.section-navy a { color: var(--gold-bright); }
.lead-dim { color: #b9c1d0; }

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 2.4rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 8px 28px rgba(16, 29, 51, 0.06);
}
.card h3 { margin: 0.4rem 0 0.6rem; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card-num { font-family: var(--font-sans); font-weight: 700; font-size: 0.95rem; color: var(--gold); letter-spacing: 0.1em; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; list-style: none; margin-top: 1.8rem; }
.chips li {
  border: 1px solid rgba(192, 162, 100, 0.5);
  color: var(--gold-bright);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.95rem; font-weight: 500;
}

/* ---------- TOC ---------- */
.toc { margin-top: 2.2rem; display: grid; gap: 14px; }
.toc-part {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.toc-part summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px;
  font-family: var(--font-sans); font-weight: 600; font-size: 1.08rem;
}
.toc-part summary::-webkit-details-marker { display: none; }
.toc-part summary::after { content: "+"; margin-left: auto; font-family: var(--font-sans); font-size: 1.3rem; color: var(--gold); transition: transform 0.2s; }
.toc-part[open] summary::after { transform: rotate(45deg); }
.toc-roman {
  font-size: 0.9rem; color: var(--navy-900); background: var(--gold);
  width: 34px; height: 34px; border-radius: 8px; flex: 0 0 34px;
  display: grid; place-items: center;
}
.toc-pages { font-family: var(--font-sans); font-weight: 500; font-size: 0.82rem; color: var(--muted); margin-left: 6px; }
.toc-part ol { padding: 0 24px 22px 72px; color: var(--muted); }
.toc-part li { padding: 5px 0; }
@media (max-width: 560px) { .toc-part ol { padding-left: 44px; } .toc-pages { display: none; } }

/* ---------- form ---------- */
.form-section { border-top: 4px solid var(--gold); }
#zapis-form { max-width: 640px; margin: 2.4rem auto 0; }
.form-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: #c3cad8; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: #8a94a8; }
.field input {
  width: 100%;
  font: inherit;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid var(--line-light);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.field input::placeholder { color: #7f8aa0; }
.field input:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, 0.1); }
#f-www, #z-www { position: absolute; left: -5000px; width: 1px; height: 1px; opacity: 0; }
.consent {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 18px; font-size: 0.82rem; line-height: 1.55; color: #a7b0c2;
}
.consent input { margin-top: 3px; width: 17px; height: 17px; flex: 0 0 17px; accent-color: var(--gold); }
#zapis-form .btn { margin-top: 22px; width: 100%; }
.form-error { margin-top: 14px; color: #f2b8b5; font-size: 0.95rem; text-align: center; }
.field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 1rem;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c0a264' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field select option { color: #1c2434; background: #fff; }
.field textarea { resize: vertical; min-height: 84px; }
.field textarea::placeholder { color: #7f8aa0; }
.field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, 0.1); }
.field-adres { margin-top: 16px; }
#zamow-form .form-row + .form-row { margin-top: 16px; }
.form-success { max-width: 640px; margin: 2.4rem auto 0; text-align: center; background: rgba(192, 162, 100, 0.1); border: 1px solid rgba(192, 162, 100, 0.4); border-radius: var(--radius); padding: 40px 28px; }
.form-success h3 { font-size: 1.6rem; color: var(--gold-bright); }
.form-success p { margin: 0.7rem 0 1.4rem; color: #c3cad8; }

/* ---------- autor ---------- */
.autor-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.autor-photo img { border-radius: var(--radius); box-shadow: 0 18px 44px rgba(16, 29, 51, 0.18); }
@media (max-width: 780px) { .autor-grid { grid-template-columns: 1fr; } .autor-photo img { max-width: 340px; margin: 0 auto; } }

/* ---------- big quote ---------- */
.big-quote { max-width: 760px; margin: 0 auto; text-align: center; }
.big-quote p { font-family: var(--font-serif); font-size: clamp(1.1rem, 2.1vw, 1.35rem); line-height: 1.6; color: #dfe4ec; }
.big-quote p::before { content: "„"; display: block; font-size: 4rem; line-height: 0.6; color: var(--gold); margin-bottom: 1.2rem; }
.big-quote cite { display: block; margin-top: 1.6rem; font-style: normal; font-weight: 700; color: var(--gold-bright); }
.big-quote cite span { font-weight: 400; color: #9aa5b8; }

/* ---------- formats ---------- */
.formats { max-width: 1080px; margin-left: auto; margin-right: auto; }
.format-card { text-align: center; display: flex; flex-direction: column; }
.format-card .btn-order { margin-top: auto; align-self: center; }
.format-card p:last-of-type { margin-bottom: 1.1rem; }
.format-card--featured { border: 2px solid var(--gold); box-shadow: 0 10px 34px rgba(192, 162, 100, 0.22); }
.format-card .price { font-family: var(--font-sans); font-size: 1.6rem; font-weight: 700; color: var(--navy-700); margin: 0.3rem 0 0.6rem; }
.badge {
  display: inline-block; margin-top: 0.9rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(192, 162, 100, 0.55);
  border-radius: 999px; padding: 0.3rem 0.85rem;
}
#formaty .center .btn { margin-top: 2.4rem; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 20px 4px;
  font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--gold); flex: 0 0 auto; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 4px 20px; color: var(--muted); }
#faq h2 { margin-bottom: 1.6rem; }

/* ---------- footer ---------- */
.footer { background: var(--navy-900); color: #9aa5b8; padding: 52px 0; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.footer-title { font-family: var(--font-sans); font-weight: 600; font-size: 1.1rem; color: var(--white); margin-bottom: 4px; }
.footer a { color: #c3cad8; }
.footer a:hover { color: var(--gold-bright); }
.footer p { margin: 3px 0; }

/* ---------- pain / not-list / toc-lead / form-note (2026-07-06) ---------- */
.pain-list { list-style: none; margin-top: 1.6rem; display: grid; gap: 14px; }
.pain-list li { padding: 14px 18px; border-left: 3px solid var(--gold); background: var(--paper); border-radius: 0 10px 10px 0; }
.pain-gate { margin-top: 1.8rem; font-weight: 600; text-align: center; }
#znasz .center { margin-top: 1.4rem; }
.not-list { list-style: none; margin: 1.6rem 0 1.2rem; display: grid; gap: 12px; }
.not-list li { padding-left: 16px; border-left: 3px solid var(--navy-700); }
.toc-lead { padding: 0 24px 6px 72px; color: var(--muted); font-size: 0.95rem; font-style: italic; }
@media (max-width: 560px) { .toc-lead { padding-left: 44px; } }
.form-note { margin-top: 10px; text-align: center; font-size: 0.85rem; color: #8a94a8; }
.form-success .success-next { margin-top: 1rem; }
.autor-strip { font-weight: 600; color: var(--navy-700); margin-bottom: 0.9rem; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Audio sample (fragment audiobooka) */
.audio-sample { max-width: 460px; margin: 22px auto 4px; text-align: center; }
.audio-sample__label { font-size: 0.95rem; color: rgba(255,255,255,0.85); margin-bottom: 8px; }
.audio-sample audio { width: 100%; display: block; border-radius: 8px; }
