/* =========================================================
   Energy Casino Polska — Affiliate Review Site
   Theme: Dark gaming, Energy Casino brand palette
   ========================================================= */

:root {
  /* Brand palette extracted from EnergyCasino.com */
  --bg-base: #0a0a0f;
  --bg-elevated: #14141c;
  --bg-card: #1c1c28;
  --bg-card-hover: #25252f;
  --border-subtle: #2a2a38;
  --border-strong: #3a3a4a;

  --text-primary: #ffffff;
  --text-secondary: #c8c8d4;
  --text-muted: #8a8a9a;
  --text-dim: #5a5a6a;

  --accent: #ffd60a;            /* Energy yellow */
  --accent-hover: #ffe04d;
  --accent-deep: #e0bc00;
  --accent-text: #0a0a0f;

  --purple: #6c2bd9;            /* secondary purple */
  --purple-deep: #4c1d95;
  --purple-light: #8b5cf6;

  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;

  --gradient-yellow: linear-gradient(135deg, #ffd60a 0%, #ffaa00 100%);
  --gradient-purple: linear-gradient(135deg, #6c2bd9 0%, #4c1d95 100%);
  --gradient-hero: linear-gradient(135deg, #14141c 0%, #2a1854 50%, #4c1d95 100%);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-yellow: 0 4px 20px rgba(255, 214, 10, 0.25);

  --font-display: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle background atmosphere */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at top left, rgba(108, 43, 217, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(255, 214, 10, 0.05) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-hover); }

/* ============ TYPOGRAPHY ============ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1.25rem;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  margin: 2.5rem 0 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-yellow);
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin: 1.75rem 0 0.875rem;
  color: var(--text-primary);
}

h4 {
  font-size: 1.15rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--accent);
}

p {
  margin-bottom: 1.1rem;
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

ul, ol {
  margin: 1rem 0 1.25rem 1.5rem;
  color: var(--text-secondary);
}

ul li, ol li {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}

ul li::marker { color: var(--accent); }

strong { color: var(--text-primary); font-weight: 700; }

/* ============ HEADER ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo img {
  height: 36px;
  width: auto;
}

.logo:hover { color: var(--text-primary); }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-desktop a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-desktop a:hover {
  color: var(--accent);
  background: rgba(255, 214, 10, 0.08);
}

.nav-desktop a.active {
  color: var(--accent);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--gradient-yellow);
  color: var(--accent-text);
  box-shadow: var(--shadow-yellow);
}

.btn-primary:hover {
  color: var(--accent-text);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 214, 10, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 214, 10, 0.05);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

.mobile-toggle svg { width: 26px; height: 26px; }

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-elevated);
  z-index: 99;
  padding: 24px;
  overflow-y: auto;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer a {
  display: block;
  padding: 14px 16px;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer a:hover {
  background: var(--bg-card);
  color: var(--accent);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-cta {
  margin-top: 20px;
}

/* ============ MAIN CONTAINER ============ */

main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

article {
  max-width: 920px;
  margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover { color: var(--accent); }

.breadcrumbs .sep { color: var(--text-dim); }

.breadcrumbs .current { color: var(--text-secondary); }

/* ============ HERO ============ */

.hero {
  background:
    linear-gradient(135deg, rgba(108, 43, 217, 0.4) 0%, rgba(76, 29, 149, 0.2) 100%),
    var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 214, 10, 0.15) 0%, transparent 70%);
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 214, 10, 0.12);
  color: var(--accent);
  border: 1px solid rgba(255, 214, 10, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #ffd60a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 700px;
}

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============ QUICK VERDICT BOX ============ */

.verdict-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0 40px;
  position: relative;
  overflow: hidden;
}

.verdict-box::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--gradient-yellow);
}

.verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 16px;
}

.verdict-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rating-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.rating-stars {
  color: var(--accent);
  font-size: 1.15rem;
  letter-spacing: 2px;
}

.rating-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pros-cons-list { list-style: none; margin: 0; padding: 0; }

.pros-cons-list li {
  padding: 7px 0;
  padding-left: 26px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--border-subtle);
}

.pros-cons-list li:last-child { border-bottom: none; }

.pros-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}

.cons-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: 800;
}

.verdict-cta {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* ============ INFO CARDS ============ */

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 24px 0;
}

.info-card.highlight {
  border-color: rgba(255, 214, 10, 0.3);
  background: linear-gradient(135deg, rgba(255, 214, 10, 0.04) 0%, rgba(108, 43, 217, 0.04) 100%);
}

.info-card h3:first-child { margin-top: 0; }

.callout {
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.callout-warning {
  border-left-color: var(--warning);
  background: rgba(245, 158, 11, 0.06);
}

.callout-info {
  border-left-color: var(--purple-light);
  background: rgba(139, 92, 246, 0.06);
}

/* ============ BONUS CODE BOX ============ */

.code-box {
  background: linear-gradient(135deg, rgba(255, 214, 10, 0.08) 0%, rgba(108, 43, 217, 0.08) 100%);
  border: 2px dashed rgba(255, 214, 10, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.code-display {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 214, 10, 0.2);
}

.copy-btn {
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.copy-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.copy-btn.copied { background: var(--success); color: white; }

.code-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.code-info { flex: 1; min-width: 200px; }

/* ============ TABLES ============ */

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  font-size: 0.95rem;
}

thead {
  background: linear-gradient(135deg, rgba(108, 43, 217, 0.2) 0%, rgba(76, 29, 149, 0.1) 100%);
}

th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border-strong);
}

td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

tr:last-child td { border-bottom: none; }

tr:hover td { background: rgba(255, 255, 255, 0.02); }

td strong { color: var(--accent); }

/* ============ STEPS ============ */

.steps-list {
  list-style: none;
  counter-reset: step;
  margin: 24px 0;
  padding: 0;
}

.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 20px 24px 20px 72px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--gradient-yellow);
  color: var(--accent-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.steps-list li:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.steps-list li strong { display: block; margin-bottom: 4px; color: var(--text-primary); }

/* ============ FIGURES ============ */

figure {
  margin: 28px 0;
  text-align: center;
}

figure img {
  width: 90%;
  max-width: 720px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

figcaption {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============ FAQ ============ */

.faq-section { margin: 40px 0; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item:hover { border-color: var(--border-strong); }

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .faq-body {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.faq-item .faq-body p { margin-bottom: 0.75rem; font-size: 1rem; }

.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ============ INTERNAL LINKING / RELATED ============ */

.related-pages {
  margin: 40px 0;
  padding: 28px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.related-pages h3 { margin-top: 0; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.related-grid a {
  display: block;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.related-grid a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ============ FINAL CTA ============ */

.final-cta {
  margin: 48px 0 24px;
  padding: 40px;
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  text-align: center;
  border: 1px solid var(--border-strong);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 214, 10, 0.15) 0%, transparent 70%);
}

.final-cta > * { position: relative; z-index: 1; }

.final-cta h2 {
  margin-top: 0;
  border: none;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.final-cta h2::after { display: none; }

.final-cta p {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--text-secondary);
}

.disclaimer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ============ FOOTER ============ */

.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 24px;
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer-col ul li::marker { content: ''; }

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--accent); }

.footer-about p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.responsible-notice {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.05);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius-sm);
}

/* ============ TOC / NAV PILLS ============ */

.toc {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 32px;
}

.toc h4 {
  margin-top: 0;
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 24px;
}

.toc li {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.toc a { color: var(--text-secondary); }

.toc a:hover { color: var(--accent); }

/* ============ BADGES ============ */

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-yellow { background: rgba(255, 214, 10, 0.15); color: var(--accent); border: 1px solid rgba(255, 214, 10, 0.3); }
.badge-purple { background: rgba(108, 43, 217, 0.18); color: #c4b5fd; border: 1px solid rgba(108, 43, 217, 0.4); }
.badge-success { background: rgba(22, 163, 74, 0.15); color: #86efac; border: 1px solid rgba(22, 163, 74, 0.3); }

/* ============ 404 ============ */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: 48px 24px;
}

.error-page h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  background: var(--gradient-yellow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.error-page p { font-size: 1.15rem; max-width: 480px; margin-bottom: 32px; }

.error-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

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

@media (max-width: 980px) {
  .nav-desktop { display: none; }
  .mobile-toggle { display: block; }

  .verdict-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toc ol { columns: 1; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 16px; }
  .header-cta .btn-outline { display: none; }
  .header-cta .btn-large { padding: 10px 18px; font-size: 0.9rem; }

  main { padding: 20px 16px 48px; }
  article { max-width: 100%; }

  .hero { padding: 32px 24px; border-radius: var(--radius-lg); }
  .verdict-box, .info-card, .related-pages, .final-cta { padding: 24px 20px; }

  figure img { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .code-box { flex-direction: column; align-items: stretch; }
  .code-display { font-size: 1.25rem; text-align: center; }

  table { font-size: 0.85rem; }
  th, td { padding: 10px 12px; }
}

/* ============ ANIMATIONS ============ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

article > * { animation: fadeInUp 0.5s ease-out backwards; }
article > *:nth-child(2) { animation-delay: 0.05s; }
article > *:nth-child(3) { animation-delay: 0.1s; }
article > *:nth-child(4) { animation-delay: 0.15s; }

/* Print */
@media print {
  .site-header, .site-footer, .final-cta { display: none; }
}
