/* =============================================
   Strategia Ransomware — style.css
   Design: Dark Tech / Minimal Cyber
   ============================================= */

/* ---- CSS VARIABLES ---- */
:root {
  --bg-main:        #0F172A;
  --bg-section:     #111827;
  --bg-card:        #1A2235;
  --bg-card-hover:  #1F2D42;
  --accent:         #00E0A4;
  --accent-hover:   #00C896;
  --accent-dim:     rgba(0, 224, 164, 0.12);
  --cta-buy:        #F59E0B;
  --cta-buy-hover:  #D97706;
  --text-main:      #E5E7EB;
  --text-muted:     #9CA3AF;
  --text-dim:       #6B7280;
  --border:         rgba(255,255,255,0.07);
  --shadow:         0 4px 24px rgba(0,0,0,0.45);
  --shadow-card:    0 2px 12px rgba(0,0,0,0.35);
  --radius-sm:      8px;
  --radius:         14px;
  --radius-lg:      20px;
  --font-display:   'Syne', 'Trebuchet MS', 'Gill Sans', sans-serif;
  --font-body:      'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Mono', 'Courier New', monospace;
  --max-w:          1200px;
  --transition:     0.2s ease;
}

/* ---- GOOGLE FONTS (loaded via CSS @import — no CDN JS lib) ---- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- CONTAINER ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.1rem; font-weight: 600; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}
.text-muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.3;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--accent);
  color: #0F172A;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #0F172A;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,224,164,0.3);
}
.btn-buy {
  background: var(--cta-buy);
  color: #0F172A;
  border-color: var(--cta-buy);
  font-weight: 700;
}
.btn-buy:hover {
  background: var(--cta-buy-hover);
  border-color: var(--cta-buy-hover);
  color: #0F172A;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}
.btn-outline:hover {
  background: var(--accent);
  color: #0F172A;
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}
.btn-ghost:hover {
  color: var(--text-main);
  border-color: var(--text-dim);
}
.btn-copy {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(0,224,164,0.25);
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-copy:hover {
  background: var(--accent);
  color: #0F172A;
}
.btn-copy.copied {
  background: rgba(0,224,164,0.2);
  color: var(--accent);
}
.btn-linkedin {
  background: transparent;
  color: #0A66C2;
  border-color: #0A66C2;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}
.btn-linkedin:hover {
  background: #0A66C2;
  color: #fff;
}

/* ---- SITE HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,23,42,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4em;
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--accent); }
.logo-accent { color: var(--accent); }
.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}
.nav-link:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 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); }
.mobile-nav {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 1rem 24px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mobile-nav .nav-link { font-size: 1rem; padding: 0.4rem 0; }

/* ALWAYS respect the HTML `hidden` attribute */
[hidden] {
  display: none !important;
}

/* default: never show mobile nav on desktop */
.mobile-nav {
  display: none;
}

/* show mobile nav only on small screens (adjust breakpoint if needed) */
@media (max-width: 860px) {
  .mobile-nav {
    display: block;
  }
}

/* ---- HERO ---- */
.hero {
  padding: 80px 0 64px;
  background: var(--bg-main);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 80% -10%, rgba(0,224,164,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 500px 300px at 0% 80%, rgba(0,224,164,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero h1 {
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #E5E7EB 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.hero-lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 580px;
}
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.hero-micro {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}
.micro-block {
  min-width: 180px;
}
.micro-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.micro-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.2rem 0;
  padding-left: 1.2em;
  position: relative;
}
.micro-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

/* Flow infographic */
.flow-infographic {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-top: 0.5rem;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: default;
  transition: transform var(--transition);
}
.flow-step:hover { transform: translateY(-2px); }
.flow-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.flow-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.flow-arrow {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 0.5rem;
}

/* ===== MASTER PROMPT (HERO) ===== */
.master-prompt{
  margin: 0 0 1.25rem;
  max-width: 760px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

/* akcent: delikatny "pasek" po lewej */
.master-prompt::before{
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 4px;
  background: var(--accent);
  opacity: 0.9;
}

.master-prompt-lead{
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-left: 0.25rem;
  margin-bottom: 0.9rem;
}

.master-prompt-title{
  margin: 0 0 0.6rem 0.25rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-main);
}

.master-prompt-body{
  margin: 0 0 0.25rem;
  background: #0A0F1E;
  border: 1px solid rgba(0,224,164,0.14);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: #C8F0E4;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

/* RWD: ciasnej na mobile */
@media (max-width: 768px){
  .master-prompt{
    padding: 1rem 1rem 0.85rem;
  }
}

.master-prompt-copy{
  margin-top: 0.85rem;
  background: var(--accent);
  color: #00140F;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.master-prompt-copy:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,224,164,0.25);
}

.master-prompt-copy.copied{
  background: #1F2937;
  color: #C8F0E4;
}

/* Book cover */
.hero-book {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.book-wrap {
  position: relative;
  width: 220px;
  flex-shrink: 0;
}
.book-cover {
  width: 220px;
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
  display: block;
}
.book-overlay {
  position: absolute;
  top: 12px;
  left: -12px;
  background: var(--cta-buy);
  color: #0F172A;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
  transform: rotate(-2deg);
  white-space: nowrap;
}

/* ---- CHAPTERS SECTION ---- */
.section-chapters {
  padding: 80px 0 64px;
  background: var(--bg-section);
}
.chapters-status {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
  font-size: 0.95rem;
  min-height: 24px;
}
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

/* Chapter tile */
.chapter-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  user-select: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.chapter-tile:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,224,164,0.15);
}
.chapter-tile[aria-expanded="true"] {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 2px var(--accent);
}
.chapter-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.chapter-emoji {
  font-size: 1.6rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
}
.chapter-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}
.chapter-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.chapter-prompt-count {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: auto;
  padding-top: 0.5rem;
}
.chapter-chevron {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  transition: transform var(--transition), color var(--transition);
}
.chapter-tile[aria-expanded="true"] .chapter-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

/* ---- ACTIVE CHAPTER ---- */
.active-chapter {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin-top: 0.5rem;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.active-chapter-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.active-chapter-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.active-chapter-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}
.chapter-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.4rem 0;
  margin-bottom: 1rem;
  background: none;
  border: none;
  font-family: inherit;
  transition: color var(--transition);
}
.chapter-close-btn:hover { color: var(--accent); }
.prompts-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ---- PROMPT CARD ---- */
.prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition);
}
.prompt-card:hover { border-color: rgba(0,224,164,0.2); }
.prompt-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}
.prompt-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.prompt-body {
  background: #0A0F1E;
  border: 1px solid rgba(0,224,164,0.12);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: #C8F0E4;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  margin-bottom: 0.75rem;
  /* tabindex for focus/keyboard selection */
  tab-size: 2;
}
.prompt-book-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  font-style: italic;
}
.prompt-vars-note {
  font-size: 0.8rem;
  color: var(--cta-buy);
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  align-items: center;
}
.copy-feedback {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  min-height: 1.2em;
  display: block;
  padding: 0.15rem 0;
}
.prompt-micro-cta {
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.prompt-micro-cta p {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 200px;
}
.chapter-cta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  align-items: center;
}
.chapter-cta-bar p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-right: auto;
}

/* ---- NEWSLETTER ---- */
.section-newsletter {
  padding: 72px 0;
  background: var(--bg-main);
  border-top: 1px solid var(--border);
}
.newsletter-inner {
  max-width: 600px;
}
.newsletter-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.newsletter-content .section-title { margin-bottom: 0; }

/* ---- BOOK SECTION ---- */
.section-book {
  padding: 80px 0;
  background: var(--bg-section);
  border-top: 1px solid var(--border);
}
.book-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: flex-start;
}
.book-cover-small {
  width: 200px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.book-text-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.book-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.book-benefits li {
  font-size: 0.95rem;
  color: var(--text-main);
  padding-left: 0;
}
.book-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---- TRAINING ---- */
.section-training {
  padding: 80px 0;
  background: var(--bg-main);
  border-top: 1px solid var(--border);
}
.training-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.training-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.training-card:hover {
  border-color: rgba(0,224,164,0.2);
  transform: translateY(-2px);
}
.training-icon {
  font-size: 1.75rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
}
.training-card h3 {
  color: var(--text-main);
  font-size: 1rem;
}
.training-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.training-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.training-cta p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.footer-canonical a {
  color: var(--text-dim);
  font-size: 0.8rem;
}
.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.footer-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
  display: block;
  padding: 0.2rem 0;
}
.footer-link:hover { color: var(--accent); }
.footer-legal {
  padding: 1.25rem 0 2rem;
  max-width: 800px;
}

/* ---- REPORT BUG BUTTON ---- */
.btn-report {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}
.btn-report:hover {
  background: rgba(245,158,11,0.15);
  border-color: var(--cta-buy);
  color: var(--cta-buy);
}

/* ---- TOAST / NOTIFICATION ---- */
.toast {
  position: fixed;
  bottom: 80px;
  right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-main);
  z-index: 200;
  box-shadow: var(--shadow);
  max-width: 320px;
  animation: toastIn 0.2s ease;
}
.toast.toast-warning {
  border-color: var(--cta-buy);
  color: var(--cta-buy);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .chapters-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-book { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .book-inner { grid-template-columns: 1fr; }
  .book-image-col { display: none; }
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .nav-toggle { display: flex; }
  .chapters-grid { grid-template-columns: 1fr; }
  .training-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .section-chapters,
  .section-newsletter,
  .section-book,
  .section-training { padding: 56px 0 48px; }
  .active-chapter { padding: 1.5rem 1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-cta-group { flex-direction: column; align-items: flex-start; }
  .hero-cta-group .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .prompt-actions { flex-direction: column; align-items: stretch; }
  .prompt-actions .btn { text-align: center; justify-content: center; }
}

/* ---- SKIP LINK ---- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--accent);
  color: #0F172A;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ===== O AUTORZE ===== */
.section-author {
  padding: 80px 0;
  background: var(--bg-section);
  border-top: 1px solid var(--border);
}

.author-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}

.author-media {
  position: sticky;
  top: 96px; /* działa dobrze przy sticky header */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.author-photo {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.author-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.author-lead {
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.6;
}

.author-text {
  color: var(--text-muted);
  line-height: 1.7;
}

.author-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.author-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.author-card-title {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  color: var(--text-main);
}

.author-list {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.author-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.author-cta-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* RWD */
@media (max-width: 960px) {
  .author-inner {
    grid-template-columns: 1fr;
  }
  .author-media {
    position: static;
  }
  .author-grid {
    grid-template-columns: 1fr;
  }
}
.sticky-cta{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(17,24,39,.92);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.sticky-cta-note{
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.2;
}

body{
  padding-bottom: 96px; /* żeby sticky nie zasłaniał treści */
}

@media (min-width: 900px){
  .sticky-cta{
    left: auto;
    right: 24px;
    bottom: 24px;
    width: min(520px, calc(100vw - 48px));
  }
  body{ padding-bottom: 0; }
}

.prompt-micro-cta.is-hidden{ display:none; }

.mobile-nav[hidden] { display: none !important; }

/* Mobile-only: menu mobilne nigdy nie ma się pokazać na desktopie */
@media (min-width: 901px) {
  .mobile-nav { display: none !important; }
}