/* ============================================================
   Kosmos jest dziwny - Kacper Pitala
   Landing (przedsprzedaz). Motyw: kosmiczny synthwave.
   ============================================================ */

/* === Tokeny === */
:root {
  /* tlo */
  --bg: #0c0620;
  --bg-2: #140a2e;
  --bg-3: #1c1042;
  --bg-card: #180f38;
  --bg-card-2: #1f1447;

  /* linie / obrysy */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* tekst */
  --heading: #ffffff;
  --text: #e9e4ff;
  --text-mid: #c7bdea;
  --text-mute: #a99fc9;

  /* akcenty */
  --accent: #ff4d8d;      /* hot pink z logo */
  --accent-2: #ec2f7b;
  --accent-3: #ff6b3d;    /* pomarancz */
  --gold: #ffd166;
  --accent-soft: rgba(255, 77, 141, 0.14);
  --accent-glow: rgba(255, 77, 141, 0.45);

  /* gradienty planety */
  --grad-planet: linear-gradient(103deg, #ffd166 0%, #ff6b3d 46%, #ec2f7b 92%);
  --grad-text: linear-gradient(100deg, #ffd98a 0%, #ff7a4d 42%, #ff4d8d 88%);
  --grad-panel: linear-gradient(160deg, #1b1145 0%, #140a2e 60%, #0c0620 100%);

  --max: 1250px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-card: 0 30px 80px -28px rgba(0, 0, 0, 0.75), 0 8px 24px -10px rgba(0, 0, 0, 0.6);
  --shadow-cover: 0 50px 120px -30px rgba(236, 47, 123, 0.4), 0 30px 70px -30px rgba(0, 0, 0, 0.8);

  --font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Syne", var(--font);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* === Reset === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--heading); line-height: 1.16; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #1a0730; padding: 10px 18px; border-radius: 8px; font-family: var(--font-display); font-weight: 600; transition: top 0.2s var(--ease); }
.skip-link:focus { top: 12px; }

/* globalna poswiata tla strony */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(236, 47, 123, 0.22), transparent 60%),
    radial-gradient(55% 45% at 12% 22%, rgba(120, 60, 220, 0.20), transparent 62%),
    radial-gradient(70% 60% at 50% 108%, rgba(255, 107, 61, 0.12), transparent 60%),
    var(--bg);
}

/* === Layout === */
.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); width: 100%; }
.section { padding: clamp(40px, 5.5vw, 78px) 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto clamp(26px, 3.4vw, 42px); text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--accent-soft); border: 1px solid rgba(255, 77, 141, 0.28);
}
.eyebrow .spark { font-size: 12px; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 5px rgba(255, 77, 141, 0.75)); }
.section-title { font-size: clamp(30px, 4.4vw, 52px); margin: 18px 0 0; line-height: 1.2; padding-bottom: 0.06em; }
.section-title .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; padding-bottom: 0.04em; }
.section-lead { color: var(--text-mid); font-size: clamp(16px, 1.7vw, 19px); margin: 18px 0 0; }

/* === Przyciski === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  padding: 15px 26px; border-radius: var(--radius-pill);
  border: 0; transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap; line-height: 1;
}
.btn-primary {
  color: #1a0730; background: var(--grad-planet);
  box-shadow: 0 12px 34px -10px var(--accent-glow);
  position: relative;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -10px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { color: var(--heading); background: rgba(255, 255, 255, 0.05); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.btn-lg { padding: 18px 34px; font-size: 17px; }

/* pulsujaca poswiata pod glownym CTA */
.btn-pulse { position: relative; isolation: isolate; }
.btn-pulse::after {
  content: ""; position: absolute; inset: -3px; border-radius: inherit; z-index: -1;
  background: var(--grad-planet); filter: blur(14px); opacity: 0.55;
  animation: pulse 2.8s var(--ease) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.4; transform: scale(0.98); } 50% { opacity: 0.75; transform: scale(1.04); } }

/* === Header === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background 0.32s var(--ease), border-color 0.32s, backdrop-filter 0.32s;
}
.site-header.is-scrolled {
  background: rgba(12, 6, 32, 0.82); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: baseline; gap: 7px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.01em; }
.brand b { color: #fff; font-weight: 700; }
.brand .mid { color: var(--text-mute); font-weight: 500; font-size: 0.8em; }
.brand .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 30px; font-size: 15.5px; font-weight: 500; color: var(--text-mid); }
.nav a { position: relative; padding: 6px 0; transition: color 0.18s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.24s var(--ease); border-radius: 2px; }
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 50%; border: 1.5px solid var(--line-strong); color: #fff;
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s;
}
.icon-btn svg { width: 21px; height: 21px; fill: currentColor; }
.icon-btn:hover { color: #fff; border-color: #ff2b2b; background: #ff2b2b; transform: scale(1.06); }
.nav-cta { display: none; }
.nav-toggle { display: none; width: 42px; height: 42px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1.5px solid var(--line-strong); border-radius: 50%; background: transparent; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Hero === */
.hero { position: relative; padding: clamp(92px, 12vh, 132px) 0 clamp(50px, 7vw, 90px); overflow: hidden; }
.starfield { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.starfield .stars {
  position: absolute; inset: -20%;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 78% 12%, #ffd9ec, transparent),
    radial-gradient(1.2px 1.2px at 33% 62%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 66% 78%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 88% 44%, #ffe6b0, transparent),
    radial-gradient(1.1px 1.1px at 46% 30%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 20% 84%, #ffd9ec, transparent),
    radial-gradient(1.2px 1.2px at 92% 74%, #fff, transparent);
  background-repeat: no-repeat;
  opacity: 0.9;
}
.starfield .stars.s2 { animation: drift 42s linear infinite; opacity: 0.55; filter: blur(0.4px); }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-40px); } }
.hero-inner { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 13.5px; font-weight: 600; letter-spacing: 0.03em;
  color: #fff; padding: 9px 16px 9px 12px; border-radius: var(--radius-pill);
  background: rgba(255, 77, 141, 0.12); border: 1px solid rgba(255, 77, 141, 0.3);
}
.hero-badge .pill { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--grad-planet); color: #1a0730; padding: 3px 9px; border-radius: var(--radius-pill); font-weight: 700; }
.hero-title { font-size: clamp(28px, 4.1vw, 52px); margin: 20px 0 0; letter-spacing: -0.02em; line-height: 1.05; text-transform: uppercase; white-space: nowrap; }
.hero-title .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title .light { font-weight: 500; font-size: 0.5em; letter-spacing: 0; display: inline-block; color: var(--text-mid); vertical-align: middle; }
.hero-author { margin: 20px 0 0; font-family: var(--font-display); font-size: clamp(16px, 2vw, 20px); font-weight: 600; color: #fff; letter-spacing: 0.02em; }
.hero-author-tag { font-family: var(--font); font-size: 15px; font-weight: 400; letter-spacing: normal; color: var(--text-mute); }
.hero-lead { margin: 22px 0 0; font-size: clamp(16.5px, 1.9vw, 20px); color: var(--text-mid); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin: 18px 0 0; font-size: 14px; color: var(--text-mute); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 15px; height: 15px; stroke: var(--accent); fill: none; flex: none; }

/* okladka */
.hero-cover { position: relative; display: flex; justify-content: center; align-items: center; }
.cover-frame { position: relative; z-index: 2; transform: rotate(2.5deg); transition: transform 0.5s var(--ease); }
.hero-cover:hover .cover-frame { transform: rotate(0deg) translateY(-4px); }
.cover-frame img { width: min(340px, 68vw); border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-cover); }
.cover-glow {
  position: absolute; z-index: 1; width: 74%; aspect-ratio: 1; border-radius: 50%;
  background: var(--grad-planet); filter: blur(70px); opacity: 0.5;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: breathe 6s var(--ease) infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.95); } 50% { opacity: 0.62; transform: translate(-50%, -50%) scale(1.06); } }
.cover-tag {
  position: absolute; z-index: 3; top: 46%; right: -8%;
  background: rgba(12, 6, 32, 0.92); border: 1px solid var(--line-strong); backdrop-filter: blur(8px);
  border-radius: 999px; padding: 9px 18px; box-shadow: var(--shadow-card); white-space: nowrap;
  font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
}
.cover-tag .meta-ico { color: var(--accent); margin-right: 4px; }

/* === Scroll reveal === */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* === Belka faktow === */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.facts-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; padding-top: 22px; padding-bottom: 22px; }
.fact { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--text-mid); }
.fact-ico { color: var(--accent); font-size: 15px; }

/* === O ksiazce === */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-text { text-align: center; }
.about-text .btn { margin-top: 30px; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card); aspect-ratio: 4 / 5; object-fit: cover; }
.pullquote {
  margin: 28px auto 0; padding: 24px 28px; max-width: 680px;
  border-top: 3px solid transparent; border-image: var(--grad-planet) 1; background: rgba(255, 255, 255, 0.03);
  border-radius: 14px; font-family: var(--font-display); font-size: clamp(17px, 2vw, 21px);
  font-weight: 500; color: #fff; font-style: normal; line-height: 1.5; text-align: center;
}

/* === Czego sie dowiesz === */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.topic {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card);
  border: 1px solid var(--line); transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.topic:hover { transform: translateY(-6px); border-color: rgba(255, 77, 141, 0.4); box-shadow: var(--shadow-card); }
.topic-img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.topic-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--bg-card) 100%); }
.topic-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.topic:hover .topic-img img { transform: scale(1.06); }
.topic-body { padding: 22px 24px 26px; text-align: center; }
.topic-body h3 { font-size: 20px; margin-bottom: 8px; }
.topic-body p { color: var(--text-mute); font-size: 15px; margin: 0; }

/* === Fragment === */
.fragment { overflow: hidden; }
.fragment-bg { position: absolute; inset: 0; z-index: -1; background: url("/public/grafika-p26.webp") center/cover no-repeat; opacity: 0.32; }
.fragment::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(12, 6, 32, 0.72) 40%, var(--bg) 100%); }
.fragment-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.fragment-text { margin: 26px 0 30px; text-align: left; font-size: clamp(14.5px, 1.5vw, 16px); line-height: 1.68; color: var(--text-mid); }
.frag-sep { text-align: center; color: var(--accent); letter-spacing: 0.5em; font-size: 13px; margin: 22px 0; opacity: 0.7; }
.fragment-text .drop::first-letter { float: left; font-family: var(--font-display); font-size: 3.4em; line-height: 0.8; padding: 6px 12px 0 0; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

/* === Galeria === */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1400px; margin: 0 auto; padding: 0 var(--pad); }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 4; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery figure:hover img { transform: scale(1.07); }

/* === O autorze === */
.author-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  grid-template-areas: "photo head" "photo body"; grid-template-rows: auto auto;
  gap: 6px clamp(30px, 5vw, 68px); align-content: center; align-items: start;
}
.author-photo { grid-area: photo; align-self: center; }
.author-head { grid-area: head; align-self: end; }
.author-body { grid-area: body; }
.author-photo img { border-radius: var(--radius-lg); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.author-head .section-title { margin-top: 8px; }
.author-body p { color: var(--text-mid); }
.author-body .btn { margin-top: 14px; }

/* === FAQ === */
.faq-wrap { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card); overflow: hidden; transition: border-color 0.25s; }
.faq-item[open] { border-color: rgba(255, 77, 141, 0.35); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: #fff; 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: 24px; color: var(--accent); transition: transform 0.25s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 24px 22px; color: var(--text-mid); }
.faq-a a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.faq-a a:hover { color: var(--accent-3); }

/* === Zamowienie === */
.buy { overflow: hidden; }
.buy-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 50% 40%, rgba(236, 47, 123, 0.2), transparent 70%); }
.buy-card {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 60px); align-items: center;
  max-width: 900px; margin: 0 auto; padding: clamp(28px, 4vw, 48px);
  background: var(--grad-panel); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.buy-cover img { width: min(260px, 40vw); border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-cover); }
.buy-title { font-size: clamp(28px, 4vw, 40px); margin-top: 10px; }
.buy-author { color: var(--text-mid); margin: 6px 0 0; font-family: var(--font-display); }
.buy-info { text-align: center; }
.buy-feats { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-direction: column; gap: 9px; align-items: center; }
.buy-feats li { color: var(--text); }
.buy-feats li::before { content: "✦"; color: var(--accent); margin-right: 8px; }
.buy-price { margin: 4px 0 18px; }
.buy-price { display: flex; align-items: baseline; justify-content: center; gap: 12px; flex-wrap: wrap; }
.buy-price .amount { font-family: var(--font-display); font-size: clamp(34px, 5vw, 46px); font-weight: 700; color: #fff; }
.buy-price .buy-old { font-size: 15px; font-weight: 500; color: var(--text-mute); }
.buy-price .buy-old s { color: var(--text-mute); }
.buy-note { font-size: 14px; color: var(--text-mute); margin: 14px 0 0; }
.buy-card .btn { width: auto; }
.buy-heading { white-space: nowrap; font-size: clamp(26px, 4vw, 46px); }
@media (max-width: 560px) { .buy-heading { white-space: normal; font-size: clamp(24px, 7vw, 34px); } }

/* === Kontakt === */
.contact { text-align: center; }
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact-mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; font-family: var(--font-display); font-size: clamp(20px, 3vw, 28px); font-weight: 600; color: #fff; }
.contact-mail:hover { color: var(--accent); }

/* === Footer === */
.site-footer { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 72px) 0 32px; background: rgba(255, 255, 255, 0.02); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.footer-brand { max-width: 380px; }
.footer-brand .brand { font-size: 20px; }
.footer-brand p { margin-top: 12px; color: var(--text-mute); font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; font-size: 15px; color: var(--text-mid); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-mute); font-size: 14px; }
.footer-imker { display: inline-flex; align-items: center; gap: 10px; color: var(--text-mute); font-size: 13px; transition: opacity 0.2s; }
.footer-imker:hover { opacity: 0.72; }
.footer-imker-logo { height: 34px; width: auto; opacity: 0.92; }

/* === Podstrony prawne === */
.legal-header { position: sticky; top: 0; z-index: 60; background: rgba(12, 6, 32, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.legal-header .header-inner { height: 68px; }
.legal-actions { display: inline-flex; align-items: center; gap: 30px; }
@media (max-width: 560px) { .legal-actions .legal-back { display: none; } .legal-actions .btn { padding: 11px 18px; font-size: 14px; } }
.legal-main { max-width: 1000px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--pad) clamp(56px, 8vw, 96px); }
.legal-main h1 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 10px; }
.legal-meta { color: var(--text-mute); font-size: 14px; margin-bottom: 36px; }
.legal-main h2 { font-size: clamp(19px, 2.4vw, 25px); margin: 38px 0 12px; }
.legal-main p, .legal-main li { color: var(--text-mid); }
.legal-main ul { padding-left: 22px; }
.legal-main .lg-num { margin: 15px 0 0; }
.legal-main .lg-sub { margin: 6px 0 0 26px; color: var(--text-mute); }
.legal-main h2 + .lg-num, .legal-main h2 + .lg-sub, .legal-main h2 + p { margin-top: 14px; }
.legal-ph { display: inline-block; margin: 2px 0; padding: 3px 10px; border-radius: 6px; background: var(--accent-soft); border: 1px dashed rgba(255, 77, 141, 0.45); color: var(--accent); font-size: 12.5px; font-family: var(--font-display); }
.legal-back { color: var(--text-mid); font-size: 15px; }
.legal-back:hover { color: var(--accent); }

/* === Sticky buy bar === */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(12, 6, 32, 0.93); backdrop-filter: blur(14px) saturate(1.2);
  border-top: 1px solid var(--line-strong);
  transform: translateY(120%); transition: transform 0.4s var(--ease);
  box-shadow: 0 -10px 40px -20px rgba(0, 0, 0, 0.8);
}
.buybar.show { transform: translateY(0); }
body.has-buybar { padding-bottom: 82px; }
@media (max-width: 640px) { body.has-buybar { padding-bottom: 92px; } }
.buybar-inner { display: flex; align-items: center; gap: 16px; padding-top: 11px; padding-bottom: 11px; }
.buybar-cover { width: 40px; height: 57px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.85); object-fit: cover; flex: none; }
.buybar-info { display: flex; flex-direction: column; line-height: 1.25; }
.buybar-info strong { font-family: var(--font-display); font-size: 16px; color: #fff; }
.buybar-info span { font-size: 13px; color: var(--text-mute); }
.buybar-price { margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; white-space: nowrap; }
.buybar .btn { flex: none; }
@media (max-width: 640px) {
  .buybar-info span { display: none; }
  .buybar-price { font-size: 17px; margin-left: auto; }
  .buybar .btn { padding: 12px 16px; font-size: 14px; }
  .buybar-inner { gap: 11px; padding-bottom: 21px; }
}

/* === Responsywnosc (fundament) === */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 2px; align-items: stretch;
    background: rgba(12, 6, 32, 0.98); backdrop-filter: blur(16px);
    padding: 14px var(--pad) 22px; border-bottom: 1px solid var(--line);
    transform: translateY(-135%); transition: transform 0.35s var(--ease);
    z-index: 55; max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav a:not(.nav-cta) { padding: 14px 2px; font-size: 17px; border-bottom: 1px solid var(--line); color: #fff; }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { display: inline-flex; margin-top: 16px; justify-content: center; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-title { white-space: normal; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-note { display: none; }
  .hero { padding-top: 86px; }
  .hero-cover { order: -1; margin-bottom: 8px; }
  .cover-tag { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; margin: 8px auto 0; }
  .author-grid { grid-template-columns: 1fr; grid-template-areas: "head" "photo" "body"; text-align: center; }
  .author-photo img { max-width: 420px; margin: 0 auto; }
  .author-head, .author-body { text-align: center; }
}
@media (max-width: 700px) {
  .buy-card { grid-template-columns: 1fr; text-align: center; }
  .buy-cover { margin: 0 auto; }
}
@media (max-width: 560px) {
  .btn { width: 100%; }
  .buybar .btn { width: auto; }
  .hero-cta { flex-direction: column; }
  .cover-frame img { width: min(320px, 82vw); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .facts-inner { gap: 12px 22px; }
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
