/* =========================================================
   KOLORY I CZCIONKI – zmień tutaj, by zmienić styl całej strony
   Paleta wzięta z okładki: głęboki granat + złoto
   ========================================================= */
:root {
  --bg: #0a1220;          /* tło – granat z okładki */
  --bg-alt: #0f1a2c;      /* tło sekcji naprzemiennych */
  --card: #132136;        /* karty */
  --ink: #f3ecdf;         /* główny tekst – kremowy */
  --muted: #a7adb8;       /* tekst drugoplanowy */
  --gold: #d4a94f;        /* złoto */
  --gold-light: #f0cf86;
  --gold-dark: #a87f2e;
  --line: rgba(212, 169, 79, .22);
  --paper: #f6f0e4;       /* jasne tło fragmentu do czytania */
  --paper-ink: #1c1a17;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 740px; }
.center { text-align: center; }
.gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; }
h1 { font-size: clamp(3.2rem, 7.5vw, 5.6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.6rem; }
p + p { margin-top: 1rem; }
strong { color: var(--gold-light); font-weight: 600; }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: .75rem;
}
.lead { font-size: 1.2rem; }
.section-intro { color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #1a1408;
  text-decoration: none;
  font-weight: 600;
  padding: .9rem 1.8rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  transition: filter .2s, transform .2s, background .2s, color .2s;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1rem;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--gold-light); }
.btn--ghost:hover { background: rgba(212, 169, 79, .12); }
.btn--dark { background: var(--bg); color: var(--gold-light); border-color: var(--bg); }
.btn--small { padding: .5rem 1.1rem; font-size: .9rem; }
.btn.is-disabled { opacity: .5; pointer-events: none; }

/* ---------- Nawigacja ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 18, 32, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__logo { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a:not(.btn) { text-decoration: none; font-size: .95rem; color: var(--muted); }
.nav__links a:not(.btn):hover { color: var(--gold-light); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 100px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 75% 45%, rgba(212, 169, 79, .16), transparent 70%),
    radial-gradient(2px 2px at 20% 30%, rgba(240, 207, 134, .5), transparent),
    radial-gradient(2px 2px at 85% 15%, rgba(240, 207, 134, .4), transparent),
    radial-gradient(1.5px 1.5px at 60% 80%, rgba(240, 207, 134, .4), transparent),
    radial-gradient(1.5px 1.5px at 10% 85%, rgba(240, 207, 134, .3), transparent);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero__subtitle {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: .75rem 0 1.5rem;
}
.hero__lead { color: var(--muted); max-width: 46ch; }
.hero__author {
  font-family: var(--serif); font-variant: small-caps; letter-spacing: .08em;
  font-size: 1.35rem; color: var(--gold-light);
  margin: 1.5rem 0 2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cover { display: flex; justify-content: center; perspective: 1400px; }

.cover-img {
  width: min(380px, 78vw);
  height: auto;
  border-radius: 3px 8px 8px 3px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), 0 0 80px -10px rgba(212,169,79,.25);
  transform: rotateY(-12deg);
  transition: transform .6s;
}
.cover-img:hover { transform: rotateY(0); }

/* ---------- Pasek z cytatem ---------- */
.quote-band { background: var(--bg-alt); padding: 64px 0; text-align: center; }
.quote-band blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  max-width: 820px; margin: 1.5rem auto; line-height: 1.35;
}
.quote-band em { color: var(--gold-light); }
.divider {
  display: block; width: 220px; height: 1px; margin: 0 auto; position: relative;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.divider::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
  transform: translate(-50%, -50%); border-radius: 50%; background: var(--gold);
}

/* ---------- Sekcje ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section--paper { background: var(--paper); color: var(--paper-ink); }
.section--paper .eyebrow { color: var(--gold-dark); }

.questions {
  margin-top: 2.5rem; padding: 28px 32px;
  border-left: 2px solid var(--gold);
  background: rgba(212, 169, 79, .06);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.questions ul { list-style: none; margin-top: .75rem; }
.questions li { font-family: var(--serif); font-size: 1.45rem; color: var(--gold-light); line-height: 1.5; }

.facts {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.facts li { display: flex; flex-direction: column; }
.facts strong { font-family: var(--serif); font-size: 1.6rem; color: var(--gold-light); }
.facts span { font-size: .85rem; color: var(--muted); }

/* ---------- Części książki ---------- */
.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2.5rem; }
.part {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: border-color .3s, transform .3s;
}
.part:hover { border-color: var(--gold); transform: translateY(-3px); }
.part__num { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1; }
.part h3 { margin: .5rem 0 .6rem; }
.part p { color: var(--muted); font-size: .95rem; }
.part--tools { background: linear-gradient(160deg, rgba(212,169,79,.14), var(--card) 60%); }

/* ---------- Protokół W–H–O ---------- */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 3rem; }
.who__item { text-align: center; padding: 10px 16px; }
.who__letter {
  display: inline-flex; align-items: center; justify-content: center;
  width: 88px; height: 88px; border-radius: 50%;
  border: 1px solid var(--gold);
  font-family: var(--serif); font-size: 2.8rem; font-weight: 700; color: var(--gold-light);
  box-shadow: 0 0 40px -8px rgba(212,169,79,.4);
  margin-bottom: 1.25rem;
}
.who__item h3 { margin-bottom: .6rem; }
.who__item p { color: var(--muted); }

/* ---------- Fragment ---------- */
.excerpt {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.7;
  background: #fffdf8;
  padding: 48px 56px;
  border-radius: var(--radius);
  border: 1px solid #e6dcc8;
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.25);
  margin-bottom: 2rem;
}
.excerpt p + p { margin-top: .6rem; }
.excerpt p:first-child::first-letter {
  float: left; font-size: 4.2rem; line-height: .9; padding: 6px 10px 0 0; color: var(--gold-dark);
}
.excerpt__more { text-align: center; color: #9a8f7c; }

/* ---------- Opinie ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 2.5rem; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.review blockquote { font-family: var(--serif); font-size: 1.25rem; font-style: italic; line-height: 1.5; }
.review figcaption { margin-top: 1rem; font-size: .9rem; color: var(--gold); }

/* ---------- Sklep ---------- */
.products {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 2.5rem; align-items: stretch;
}
.product {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex; flex-direction: column;
}
.product--featured {
  border-color: var(--gold);
  box-shadow: 0 0 60px -20px rgba(212,169,79,.45);
  transform: translateY(-10px);
}
.product__price { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: var(--gold-light); margin: .5rem 0 1rem; }
.product ul { list-style: none; margin-bottom: 2rem; flex: 1; }
.product li { padding: .4rem 0 .4rem 1.6rem; position: relative; color: var(--muted); font-size: .95rem; }
.product li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); }
.product .btn { text-align: center; }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #1a1408;
  font-size: .75rem; font-weight: 600; letter-spacing: .05em;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.shop-note { text-align: center; margin-top: 2.5rem; color: var(--muted); font-size: .9rem; }

/* ---------- Autorzy ---------- */
.author { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: center; }
.author__photo img, .photo-placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.photo-placeholder {
  background: var(--card); border: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--muted); font-family: var(--serif); font-size: 1.4rem;
}
.monogram {
  width: 100%; aspect-ratio: 1;
  max-width: 300px; margin: 0 auto;
  border-radius: 50%;
  border: 1px solid var(--gold);
  box-shadow: 0 0 80px -20px rgba(212,169,79,.45), inset 0 0 60px -20px rgba(212,169,79,.3);
  display: flex; align-items: center; justify-content: center; gap: .15em;
  font-family: var(--serif); font-size: clamp(4rem, 9vw, 6rem); font-weight: 700;
  color: var(--gold-light);
  background: radial-gradient(circle at 50% 40%, rgba(212,169,79,.12), transparent 70%);
}
.monogram__amp { font-style: italic; font-weight: 500; font-size: .6em; color: var(--gold); }
.author__text p:not(.eyebrow) { color: #cfd2d8; }
.socials { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.5rem; }
.socials a { color: var(--gold-light); font-weight: 500; text-underline-offset: 4px; }

/* ---------- Newsletter ---------- */
.newsletter { display: flex; gap: 10px; max-width: 480px; margin: 2rem auto 0; }
.newsletter input {
  flex: 1; min-width: 0;
  padding: .9rem 1.2rem;
  border: 1px solid var(--line); border-radius: 999px;
  font: inherit; background: var(--card); color: var(--ink);
}
.newsletter input::placeholder { color: var(--muted); }
.newsletter input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.hp { position: absolute; left: -9999px; }
.consent {
  display: flex; gap: 10px; align-items: flex-start;
  max-width: 480px; margin: 1rem auto 0;
  text-align: left; font-size: .8rem; line-height: 1.5; color: var(--muted);
  cursor: pointer;
}
.consent input { margin-top: .2rem; accent-color: var(--gold); flex-shrink: 0; width: 16px; height: 16px; }
.form-status { margin-top: 1rem; min-height: 1.5em; color: var(--gold-light); font-weight: 500; }
.form-status.is-error { color: #f0a0a0; }

/* ---------- FAQ ---------- */
details { border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
summary {
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.6rem; color: var(--gold); transition: transform .3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: .75rem; color: var(--muted); }

/* ---------- Współpraca z AI ---------- */
.ai-note { padding: 64px 0 56px; border-top: 1px solid var(--line); }
.ai-note__text {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.6;
  color: var(--muted);
  margin: 1.75rem auto 0; max-width: 620px;
}
.ai-note__sign {
  margin-top: 1rem;
  font-family: var(--serif); font-variant: small-caps; letter-spacing: .1em;
  color: var(--gold);
}

/* ---------- Strony dokumentów (regulamin, polityka) ---------- */
.back-link { color: var(--muted); text-decoration: none; font-size: .95rem; }
.back-link:hover { color: var(--gold-light); }
.legal { padding-top: 64px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: .5rem; }
.legal__date { color: var(--muted); font-size: .9rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.7rem; margin: 2.75rem 0 1rem; color: var(--gold-light); }
.legal h3 { font-size: 1.3rem; margin: 1.75rem 0 .6rem; }
.legal p, .legal li { color: #cfd2d8; }
.legal ul, .legal ol { padding-left: 1.4rem; margin-top: .5rem; }
.legal li { margin-bottom: .45rem; }
.legal li ol { margin-top: .45rem; }
.legal a { color: var(--gold-light); text-underline-offset: 3px; }
.consent a { color: var(--gold-light); }

/* ---------- Stopka ---------- */
.footer { background: #070d18; color: var(--muted); padding: 32px 0; font-size: .9rem; border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer nav { display: flex; gap: 1.5rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold-light); }

/* ---------- Animacja pojawiania się ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Telefon i tablet ---------- */
@media (max-width: 900px) {
  .hero { padding: 40px 0 72px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__cover { order: -1; }
  .cover-img { width: min(300px, 72vw); transform: none; }
  .parts { grid-template-columns: 1fr 1fr; }
  .who, .reviews, .products { grid-template-columns: 1fr; }
  .product--featured { transform: none; }
  .author { grid-template-columns: 1fr; gap: 32px; }
  .author__photo { max-width: 320px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }

  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s;
  }
  .nav__links a { padding: 14px 20px; width: 100%; text-align: center; }
  .nav__links .btn { width: auto; margin: 8px 0 16px; }
  .nav.is-open .nav__links { max-height: 520px; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .parts { grid-template-columns: 1fr; }
  .excerpt { padding: 28px 22px; font-size: 1.15rem; }
  .questions { padding: 22px 20px; }
  .newsletter { flex-direction: column; }
  .footer__inner { flex-direction: column; text-align: center; align-items: center; }
}
