: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-serif); font-weight: 800; 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-serif); font-weight: 700; 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.16), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(30, 55, 102, 0.55), transparent 55%),
    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-serif); font-style: italic;
  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-serif);
  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; }
.hero-book img {
  width: min(380px, 100%); margin: 0 auto;
  border-radius: 6px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(192, 162, 100, 0.25);
  transform: rotate(1.5deg);
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-book { order: -1; }
  .hero-book img { width: min(250px, 62vw); transform: none; }
  .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-serif); font-weight: 800; 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-serif); font-weight: 700; font-size: 1.12rem;
}
.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 { 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; }
.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: 900px; margin-left: auto; margin-right: auto; }
.format-card { text-align: center; }
.format-card .price { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 800; 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-serif); font-weight: 700; font-size: 1.15rem; color: var(--white); margin-bottom: 4px; }
.footer a { color: #c3cad8; }
.footer a:hover { color: var(--gold-bright); }
.footer p { margin: 3px 0; }

/* ---------- 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;
}
