/*
  TAB Publishing – vesmírný, mystický design s tématem záře, astronomie a vědy
  Paleta: tmavá modrá, fialová, modrá s světelnými efekty
*/

:root {
  /* White Color Palette */
  --white-pure: #ffffff; /* pure white background */
  --white-soft: #fefefe;
  --white-warm: #faf9f7;
  --text-primary: #ffffff; /* white for text */
  --muted: #6b7280;
  --accent-gold: #D4AF37; /* champagne gold */
  --accent-warm: #191970; /* dark blue for CTAs */
  --silver: #9ca3af;
  --overlay-light: rgba(255,255,255,0.9);

  /* New light footer/subscribe palette */
  --blue-accent: #1E3A8A; /* deep blue */
  --blue-accent-hover: #3B82F6; /* lighter on hover */
  --divider: #E5E7EB; /* light gray divider */
  
  /* Legacy support */
  --bg: var(--white-pure);
  --bg-soft: var(--white-soft);
  --bg-gradient: linear-gradient(135deg, var(--white-pure) 0%, var(--white-soft) 50%, var(--white-warm) 100%);
  --text: var(--text-primary);
  --border: var(--space-700);
  --accent: var(--accent-gold);
  --accent-hover: #E5C547;
  --deep: #050508;
  --success: var(--accent-warm);
  
  /* Design System */
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(11, 13, 16, 0.3);
  --shadow-md: 0 8px 24px rgba(11, 13, 16, 0.4);
  --shadow-lg: 0 20px 40px rgba(11, 13, 16, 0.5);
  --glow-gold: 0 0 20px rgba(212, 175, 55, 0.4);
  --glow-warm: 0 0 20px rgba(255, 122, 0, 0.4);
  --blur: blur(20px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-primary);
  background: var(--white-pure);
  background-image: 
    radial-gradient(circle at 15% 85%, rgba(212, 175, 55, 0.03) 0%, transparent 60%),
    radial-gradient(circle at 85% 15%, rgba(255, 122, 0, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(107, 114, 128, 0.01) 0%, transparent 70%);
  line-height: 1.65;
  min-height: 100vh;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.center { text-align: center; }

.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 6px; }

/* Header */
.site-header {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 122, 0, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(107, 114, 128, 0.02) 0%, transparent 50%);
  animation: light-header-drift 25s infinite linear;
}
@keyframes light-header-drift {
  0% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(-5px) translateY(-2px); }
  50% { transform: translateX(3px) translateY(-5px); }
  75% { transform: translateX(-3px) translateY(2px); }
  100% { transform: translateX(0) translateY(0); }
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.header-inner {
  position: relative;
  z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo { 
  color: var(--text-primary); 
  text-decoration: none; 
  display: inline-flex; 
  flex-direction: column; 
  line-height: 1; 
  position: relative;
}
.logo-top { 
  font-family: 'Playfair Display', serif; 
  font-weight: 700; 
  font-size: 28px; 
  letter-spacing: 0.25em; 
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--text-primary), var(--accent-gold), var(--silver));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logo-shimmer 6s infinite ease-in-out;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
  position: relative;
}

.logo-top::before {
  content: '←';
  position: absolute;
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--accent-gold);
  opacity: 0.7;
}

.logo-top::after {
  content: '→';
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--accent-gold);
  opacity: 0.7;
}

.logo-bottom { 
  font-family: 'Inter', sans-serif; 
  font-weight: 300; 
  font-size: 9px; 
  color: var(--muted); 
  letter-spacing: 0.3em; 
  text-transform: uppercase;
  margin-top: 4px;
  text-align: center;
}

@keyframes logo-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.desktop-nav { display: flex; gap: 32px; flex: 1; justify-content: center; }
.desktop-nav a { color: var(--accent-gold); text-decoration: none; font-weight: 500; position: relative; }
.desktop-nav a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--accent-gold); transition: width 0.3s; }
.desktop-nav a:hover::after { width: 100%; }
.desktop-nav a:hover { color: var(--accent-gold); text-shadow: var(--glow-gold); }

.motto {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 12px 24px;
  font-style: italic;
  color: var(--accent-gold);
  font-size: 13px;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  letter-spacing: 0.05em;
  font-weight: 300;
}

.mobile-menu-toggle { display: none; width: 36px; height: 28px; background: none; border: none; cursor: pointer; }
.mobile-menu-toggle span { display: block; height: 2px; background: var(--text); margin: 6px 0; transition: 0.3s; }

.mobile-nav { display: none; flex-direction: column; padding: 0 24px; border-top: 1px solid var(--border); background: rgba(0,0,0,0.9); overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.mobile-nav a { padding: 12px 0; color: var(--accent-gold); text-decoration: none; font-weight: 500; }
.mobile-nav a:hover { color: var(--accent-gold); }

/* Hero */
.hero { 
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: 
    url('https://i.pinimg.com/736x/7e/b9/5e/7eb95ec3e441acdb6849695af83085f6.jpg') center/cover;
  background-attachment: fixed;
  animation: background-drift 20s infinite ease-in-out;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 122, 0, 0.03) 0%, transparent 60%);
  animation: light-particles 40s infinite ease-in-out;
  pointer-events: none;
}

@keyframes light-particles {
  0%, 100% { 
    opacity: 0.2;
    transform: translateY(0) rotate(0deg);
  }
  33% { 
    opacity: 0.4;
    transform: translateY(-6px) rotate(0.5deg);
  }
  66% { 
    opacity: 0.3;
    transform: translateY(-3px) rotate(-0.5deg);
  }
}

.hero-background {
  display: none; /* Remove old backgrounds */
}
.hero-bg-1, .hero-bg-2, .hero-bg-3 {
  display: none; /* Remove old backgrounds */
}

@keyframes cosmic-drift {
  0% { transform: translate(0, 0) scale(1.05); }
  25% { transform: translate(-2%, -1%) scale(1.08); }
  50% { transform: translate(-1%, -2%) scale(1.06); }
  75% { transform: translate(1%, -1%) scale(1.07); }
  100% { transform: translate(0, 0) scale(1.05); }
}

@keyframes background-drift {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 10% 40%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 90% 60%; }
}

.hero-inner { 
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.hero-content {
  text-align: center;
}

.hero-featured {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 20px rgba(212, 175, 55, 0.1);
}

@keyframes hero-fade-1 {
  0%, 30% { opacity: 1; }
  33.33%, 100% { opacity: 0; }
}

@keyframes hero-fade-2 {
  0%, 30% { opacity: 0; }
  33.33%, 63.33% { opacity: 1; }
  66.67%, 100% { opacity: 0; }
}

@keyframes hero-fade-3 {
  0%, 63.33% { opacity: 0; }
  66.67%, 100% { opacity: 1; }
}
.hero h1 { 
  font-family: 'Playfair Display', serif;
  font-size: 64px; 
  font-weight: 700;
  line-height: 1.1; 
  letter-spacing: 0.1em; 
  margin: 0 0 24px; 
  color: var(--text-primary);
  text-shadow: 0 0 40px rgba(245, 245, 245, 0.5);
  position: relative;
}

.hero h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-warm));
  border-radius: 2px;
  box-shadow: var(--glow-gold);
}

.subtitle { 
  color: #FFFFFF; 
  margin: 0 0 40px 0; 
  text-align: center; 
  font-weight: 400;
  font-size: 24px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  max-width: 500px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes cosmic-text-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-ctas { 
  display: flex; 
  gap: 20px; 
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

/* Buttons */
.btn { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  min-height: 48px; 
  padding: 12px 32px; 
  border-radius: var(--radius-lg); 
  font-weight: 600; 
  text-decoration: none; 
  cursor: pointer; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
  border: 2px solid transparent;
  letter-spacing: 0.05em;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary { 
  background: linear-gradient(135deg, var(--accent-warm), #FF8F1A); 
  color: var(--text-primary); 
  box-shadow: var(--shadow-md), var(--glow-warm);
  border-color: var(--accent-warm);
  font-weight: 700;
}

.btn-primary:hover { 
  transform: translateY(-3px) scale(1.02); 
  box-shadow: 0 15px 35px rgba(255, 122, 0, 0.4), var(--glow-warm);
  background: linear-gradient(135deg, #FF8F1A, var(--accent-warm));
}

.btn-secondary { 
  background: transparent; 
  color: var(--text-primary); 
  border-color: var(--silver);
  backdrop-filter: var(--blur);
}

.btn-secondary:hover { 
  background: rgba(207, 207, 207, 0.1); 
  border-color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(207, 207, 207, 0.2);
}
.btn-outline { 
  background: transparent; 
  color: var(--text); 
  border-color: var(--muted);
}
.btn-outline:hover { 
  border-color: var(--accent); 
  color: var(--accent); 
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

/* Featured */
.featured {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
.comets-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.featured .container {
  position: relative;
  z-index: 2;
}

.section-subtitle { color: var(--muted); margin-top: -8px; margin-bottom: 24px; text-shadow: 0 0 8px rgba(255, 255, 255, 0.3); }

/* Specific headings in gold */
#featured-heading, #catalog-heading {
  color: var(--accent-gold);
}
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

.book-card { 
  background: linear-gradient(145deg, rgba(42, 42, 42, 0.9), rgba(26, 26, 26, 0.8));
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg); 
  padding: 24px; 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4); 
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  display: flex; 
  flex-direction: column;
  border: 1px solid rgba(184, 134, 11, 0.3);
  position: relative;
  overflow: hidden;
  height: 100%;
  color: #F5F5F5;
}

.book-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(184, 134, 11, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.book-card:hover { 
  transform: translateY(-10px) rotateX(5deg); 
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(184, 134, 11, 0.3);
  border-color: rgba(184, 134, 11, 0.5);
}

.book-card:hover::before {
  opacity: 1;
}
.book-cover-container { position: relative; width: 100%; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; margin-bottom: 14px; background: rgba(0, 0, 0, 0.3); }
.book-cover { width: 100%; height: 100%; object-fit: cover; }
.book-badge { position: absolute; top: 10px; right: 10px; background: rgba(152, 251, 152, 0.9); color: #000; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.book-title { font-size: 18px; font-weight: 600; margin: 4px 0 4px; line-height: 1.3; min-height: 46px; color: #F5F5F5; }
.book-author { color: #D3D3D3; font-size: 14px; margin: 0 0 10px; }
.book-meta { display: flex; gap: 10px; color: #B0B0B0; font-size: 13px; margin-bottom: 12px; }
.book-price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.book-price { font-size: 20px; font-weight: 700; color: #B8860B; }
.btn-add { 
  height: 42px; 
  padding: 0 20px; 
  border-radius: 20px; 
  border: 2px solid #B8860B; 
  background: linear-gradient(135deg, #B8860B, #DAA520); 
  color: #000; 
  font-weight: 600; 
  cursor: pointer; 
  transition: all 0.3s ease;
  font-size: 13px;
  letter-spacing: 0.05em;
}
.btn-add:hover { 
  background: linear-gradient(135deg, #DAA520, #B8860B); 
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(184, 134, 11, 0.5);
}

/* Featured button styling */
.featured .btn-outline {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* Stats */
.stats {
  position: relative;
  background: var(--bg-soft);
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(45deg, rgba(255, 165, 0, 0.1) 0%, rgba(255, 165, 0, 0.1) 50%, rgba(255, 165, 0, 0.05) 100%),
    radial-gradient(ellipse 50% 30% at 20% 40%, rgba(255, 165, 0, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 25% at 80% 60%, rgba(255, 165, 0, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 35% 20% at 50% 80%, rgba(255, 165, 0, 0.08) 0%, transparent 70%);
  animation: wave-flow 15s infinite ease-in-out;
  pointer-events: none;
  z-index: 1;
}
.stats::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle 3px at 10% 20%, rgba(255, 165, 0, 0.8) 0%, transparent 50%),
    radial-gradient(circle 2px at 70% 40%, rgba(255, 165, 0, 0.7) 0%, transparent 50%),
    radial-gradient(circle 2.5px at 30% 80%, rgba(255, 165, 0, 0.6) 0%, transparent 50%),
    radial-gradient(circle 1.5px at 90% 60%, rgba(255, 165, 0, 0.9) 0%, transparent 50%),
    radial-gradient(circle 2px at 50% 30%, rgba(255, 165, 0, 0.5) 0%, transparent 50%);
  background-size: 400px 400px, 300px 300px, 350px 350px, 250px 250px, 500px 500px;
  animation: particles-float 12s infinite ease-in-out;
  pointer-events: none;
  z-index: 1;
}
.stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat-card {
  position: relative;
  padding: 40px 32px;
  text-align: center;
  background: linear-gradient(145deg, #f8f9fa, #e9ecef, #f8f9fa);
  border: 3px solid #D4AF37;
  border-radius: 8px;
  box-shadow:
    0 0 0 2px #e9ecef,
    0 8px 16px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -5px;
  width: 10px;
  height: 100%;
  background: linear-gradient(180deg, #e9ecef, #dee2e6, #e9ecef);
  border-radius: 4px 0 0 4px;
  box-shadow: 
    inset 2px 0 4px rgba(0, 0, 0, 0.1),
    inset -1px 0 2px rgba(255, 255, 255, 0.8);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-8px) rotateY(5deg) rotateX(5deg);
  box-shadow:
    0 0 0 2px #D4AF37,
    0 15px 35px rgba(0, 0, 0, 0.25),
    inset 0 2px 6px rgba(255, 255, 255, 0.9),
    inset 0 -2px 6px rgba(0, 0, 0, 0.15),
    0 0 30px rgba(212, 175, 55, 0.3);
}
.stat-number {
  font-size: 48px;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  background: linear-gradient(135deg, #D4AF37, #F4E4BC, #B8860B);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  text-shadow: 0 0 20px rgba(255, 165, 0, 0.5);
  animation: text-shimmer 3s infinite ease-in-out;
}
.stat-label {
  color: #F4E4BC;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-top: 12px;
  position: relative;
  z-index: 2;
}
.stat-icon {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--accent);
  filter: drop-shadow(0 0 10px var(--accent));
  animation: icon-float 2s infinite ease-in-out;
}

@keyframes wave-flow {
  0%, 100% {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 0.7;
  }
  25% {
    transform: translateX(-15px) translateY(5px) scale(1.02);
    opacity: 0.9;
  }
  50% {
    transform: translateX(10px) translateY(-8px) scale(0.98);
    opacity: 0.8;
  }
  75% {
    transform: translateX(-5px) translateY(3px) scale(1.01);
    opacity: 0.85;
  }
}

@keyframes particles-float {
  0%, 100% {
    background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    opacity: 0.6;
  }
  33% {
    background-position: 20% 10%, -10% 20%, 15% -5%, 5% 15%, -5% -10%;
    opacity: 0.8;
  }
  66% {
    background-position: -15% -10%, 25% -15%, -20% 10%, 10% -20%, 15% 5%;
    opacity: 0.7;
  }
}

@keyframes border-glow {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.3; }
}

@keyframes text-shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes icon-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
.stat-icon { font-size: 22px; margin-bottom: 10px; }

/* Catalog - Modern Library Style */
.catalog {
  position: relative;
  background: linear-gradient(180deg, #4A5D4A 0%, #2A3A2A 50%, #1A2A1A 100%);
  color: #F5F5F5;
  padding: 100px 0;
  overflow: hidden;
}
.catalog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(184, 134, 11, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(152, 251, 152, 0.08) 0%, transparent 60%);
  animation: catalog-parallax 20s infinite ease-in-out;
  pointer-events: none;
  z-index: 1;
}
@keyframes catalog-parallax {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
}
.catalog .container {
  position: relative;
  z-index: 2;
}
.catalog h2 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  text-align: center;
  color: #F5F5F5;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  animation: title-glow 3s ease-in-out infinite alternate;
}
@keyframes title-glow {
  from { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
  to { text-shadow: 0 2px 4px rgba(184, 134, 11, 0.3), 0 0 20px rgba(184, 134, 11, 0.2); }
}
.catalog .section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  text-align: center;
  color: #D3D3D3;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
@keyframes catalog-light-flow {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-10px) scale(1.05);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-5px) scale(0.98);
    opacity: 0.35;
  }
  75% {
    transform: translateY(-15px) scale(1.02);
    opacity: 0.55;
  }
}
.catalog-header { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.catalog-actions { display: flex; gap: 12px; align-items: center; }
.search-field { position: relative; display: inline-flex; align-items: center; }
.catalog .search-field input { 
  width: 320px; 
  height: 44px; 
  padding: 0 44px 0 44px; 
  border-radius: 22px; 
  border: 1px solid rgba(184, 134, 11, 0.3); 
  background: rgba(42, 42, 42, 0.8); 
  outline: none; 
  transition: 0.2s; 
  color: #F5F5F5;
  backdrop-filter: blur(5px);
}
.catalog .search-field input:focus { 
  border-color: rgba(184, 134, 11, 0.6); 
  background: rgba(42, 42, 42, 0.9); 
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1); 
}
.catalog .search-icon { position: absolute; left: 14px; width: 20px; height: 20px; color: #D3D3D3; }
.catalog .select-field select { 
  height: 44px; 
  border-radius: 22px; 
  border: 1px solid rgba(184, 134, 11, 0.3); 
  background: rgba(42, 42, 42, 0.8); 
  padding: 0 14px; 
  color: #F5F5F5;
  backdrop-filter: blur(5px);
}

.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; }
.catalog .filters { 
  position: sticky; 
  top: 96px; 
  align-self: start; 
  border: 2px solid rgba(184, 134, 11, 0.5); 
  border-radius: 12px; 
  padding: 16px; 
  background: linear-gradient(145deg, rgba(42, 42, 42, 0.9), rgba(26, 26, 26, 0.8));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(184, 134, 11, 0.2);
  backdrop-filter: blur(10px);
  color: #F5F5F5;
}
.catalog .filters h3 { margin-top: 0; color: #F5F5F5; }
.catalog .filter-group { display: grid; gap: 8px; }
.catalog .filter-title { font-weight: 600; color: #F5F5F5; margin-bottom: 6px; }
.catalog .filters input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 0;
  height: 0;
  position: absolute;
  opacity: 0;
}

.catalog .filters label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin: 4px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(74, 85, 74, 0.4), rgba(58, 68, 58, 0.2));
  border: 1px solid rgba(184, 134, 11, 0.3);
  color: #D3D3D3;
  font-weight: 500;
  user-select: none;
  backdrop-filter: blur(5px);
}

.catalog .filters label:hover {
  background: linear-gradient(135deg, rgba(74, 85, 74, 0.6), rgba(58, 68, 58, 0.4));
  border-color: rgba(184, 134, 11, 0.5);
  color: #F5F5F5;
  transform: translateX(3px) scale(1.02);
  box-shadow: 0 0 15px rgba(184, 134, 11, 0.2);
}

.catalog .filters label::before {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(42, 42, 42, 0.8), rgba(26, 26, 26, 0.6));
  border: 2px solid rgba(184, 134, 11, 0.4);
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.4),
    0 0 10px rgba(184, 134, 11, 0.2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: transparent;
}

.catalog .filters label::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: bold;
  color: transparent;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  pointer-events: none;
}

.catalog .filters label:has(> input[type="checkbox"]:checked)::after {
  content: '✓';
  color: #FFFFFF;
}

.catalog .filters label:has(> input[type="checkbox"]:checked)::before {
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.9), rgba(184, 134, 11, 0.7));
  border-color: #B8860B;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}
.catalog .filters label:has(> input[type="checkbox"]:checked) {
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.15), rgba(184, 134, 11, 0.1));
  border-color: rgba(184, 134, 11, 0.6);
  color: #F5F5F5;
}

.catalog .filters label:has(> input[type="checkbox"]:checked):hover {
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.2), rgba(184, 134, 11, 0.15));
}

@keyframes checkbox-neon-glow {
  0%, 100% {
    box-shadow: 
      inset 0 2px 4px rgba(0, 0, 0, 0.3),
      0 0 20px rgba(255, 165, 0, 0.8),
      0 0 35px rgba(255, 165, 0, 0.6);
  }
  50% {
    box-shadow: 
      inset 0 2px 4px rgba(0, 0, 0, 0.3),
      0 0 25px rgba(255, 165, 0, 1.0),
      0 0 45px rgba(255, 165, 0, 0.8);
    transform: scale(1.05);
  }
}

.catalog .btn-reset-filters {
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(74, 85, 74, 0.6), rgba(58, 68, 58, 0.4));
  border: 2px solid rgba(184, 134, 11, 0.4);
  border-radius: 10px;
  color: #D3D3D3;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  backdrop-filter: blur(5px);
  position: relative;
  overflow: hidden;
}

.catalog .btn-reset-filters::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(184, 134, 11, 0.2), transparent);
  transition: left 0.5s ease;
}

.catalog .btn-reset-filters:hover {
  background: linear-gradient(135deg, rgba(74, 85, 74, 0.8), rgba(58, 68, 58, 0.6));
  border-color: rgba(184, 134, 11, 0.6);
  color: #F5F5F5;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(184, 134, 11, 0.3);
}

.catalog .btn-reset-filters:hover::before {
  left: 100%;
}

.catalog .btn-reset-filters:active {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(184, 134, 11, 0.2);
}

.btn-reset-filters.resetting {
  animation: reset-pulse 0.6s ease-in-out;
}

.reset-icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.btn-reset-filters:hover .reset-icon {
  transform: rotate(180deg);
}

@keyframes reset-pulse {
  0%, 100% {
    background: linear-gradient(135deg, rgba(42, 42, 74, 0.6), rgba(26, 26, 46, 0.4));
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.3);
  }
  50% {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.3), rgba(255, 165, 0, 0.4));
    box-shadow: 0 0 30px rgba(255, 165, 0, 0.5);
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.3;
    transform: scale(0.95);
  }
}

@keyframes reset-glow {
  0% {
    opacity: 0.3;
    transform: scale(0.95);
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 165, 0, 0.8), 0 0 50px rgba(255, 165, 0, 0.6);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.6), 0 0 35px rgba(255, 165, 0, 0.4);
  }
}

/* Authors Section */
.authors {
  position: relative;
  background: linear-gradient(180deg, #1A2A1A 0%, #2A3A2A 50%, #4A5D4A 100%);
  color: #F5F5F5;
  padding: 100px 0;
  overflow: hidden;
}
.authors .container {
  position: relative;
  z-index: 2;
}
.authors .section-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  color: #F5F5F5;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.authors .section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  text-align: center;
  color: #D3D3D3;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}
.author-card {
  background: linear-gradient(145deg, rgba(42, 42, 42, 0.9), rgba(26, 26, 26, 0.8));
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(184, 134, 11, 0.3);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.author-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(184, 134, 11, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.author-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(184, 134, 11, 0.3);
  border-color: rgba(184, 134, 11, 0.5);
}
.author-card:hover::before {
  opacity: 1;
}
.author-avatar-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid rgba(184, 134, 11, 0.5);
  box-shadow: 0 0 20px rgba(184, 134, 11, 0.3);
}
.author-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.author-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #F5F5F5;
  margin: 0;
}
.author-bio {
  color: #D3D3D3;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.btn-author-link {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #B8860B, #DAA520);
  color: #000;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  align-self: center;
  margin-top: 8px;
}
.btn-author-link:hover {
  background: linear-gradient(135deg, #DAA520, #B8860B);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(184, 134, 11, 0.5);
}
.author-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}
.author-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid rgba(184, 134, 11, 0.35);
  color: #EDEDED;
  background: linear-gradient(145deg, rgba(42, 42, 42, 0.8), rgba(26, 26, 26, 0.6));
  transition: all 0.25s ease;
}
.author-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  border-color: rgba(184, 134, 11, 0.6);
}
.author-link.yt {
  border-color: rgba(255, 0, 0, 0.4);
}
.author-link.yt:hover {
  background: linear-gradient(145deg, rgba(255, 0, 0, 0.15), rgba(26, 26, 26, 0.6));
}
.author-link.web {
  border-color: rgba(184, 134, 11, 0.5);
}
.author-link.article {
  border-color: rgba(152, 251, 152, 0.45);
}
.authors-cta {
  text-align: center;
  margin-top: 40px;
}
.authors-cta p {
  color: #D3D3D3;
  font-size: 1.1rem;
  margin: 0;
}
.authors-cta a {
  color: #B8860B;
  text-decoration: none;
  font-weight: 600;
}
.authors-cta a:hover {
  text-decoration: underline;
}

/* About – Luxury Publishing Style */
.luxury-about {
  position: relative;
  background: 
    linear-gradient(135deg, rgba(248, 249, 250, 0.95), rgba(241, 243, 244, 0.95)), 
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><pattern id="marble" patternUnits="userSpaceOnUse" width="400" height="400"><rect width="400" height="400" fill="%23f8f9fa"/><path d="M0,0 Q100,50 200,0 T400,0 L400,30 Q300,80 200,30 T0,30 Z" fill="%23f1f3f4" opacity="0.3"/><path d="M0,100 Q150,120 300,100 T600,100 L600,130 Q450,150 300,130 T0,130 Z" fill="%23e5e7eb" opacity="0.2"/><path d="M0,200 Q200,180 400,200 L400,230 Q200,210 0,230 Z" fill="%23f3f4f6" opacity="0.4"/><path d="M0,300 Q100,320 200,300 T400,300 L400,330 Q300,350 200,330 T0,330 Z" fill="%23f1f3f4" opacity="0.3"/></pattern></defs><rect width="400" height="400" fill="url(%23marble)"/></svg>');
  background-size: 400px 400px, 400px 400px;
  background-position: 0 0, 100px 50px;
  padding: 100px 0;
  color: #1A1A1A;
  overflow: hidden;
}

.luxury-about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(198, 166, 100, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(156, 163, 175, 0.03) 0%, transparent 60%);
  animation: marble-luxury-flow 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes marble-luxury-flow {
  0%, 100% { 
    background-position: 0% 0%, 100% 100%;
    opacity: 0.4;
  }
  33% { 
    background-position: 50% 20%, 80% 60%;
    opacity: 0.6;
  }
  66% { 
    background-position: 80% 80%, 20% 40%;  
    opacity: 0.5;
  }
}

.about-content-split {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-logo-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-text-section {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-logo-frame {
  display: inline-block;
  border: 1px solid #C6A664;
  border-radius: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 20px rgba(198, 166, 100, 0.3);
  backdrop-filter: blur(10px);
}

.about-logo-img {
  max-width: 250px;
  height: auto;
  display: block;
  margin: 0 auto 15px;
}

.about-additional-img {
  max-width: 220px;
  margin-bottom: 0;
}

.about-title {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  color: #C6A664;
  margin: 0;
  letter-spacing: 1px;
}

.about-separator {
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C6A664, transparent);
  margin: 8px 0;
}

.about-intro {
  max-width: 900px;
  margin: 0 auto;
}

.about-intro p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #1A1A1A;
  margin: 20px auto;
}

.about-mission {
  max-width: 700px;
  margin: 0 auto;
}

.mission-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.mission-list li {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #1A1A1A;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  border-left: 3px solid #C6A664;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(5px);
  position: relative;
}

.mission-list li::before {
  content: '✦';
  color: #C6A664;
  font-weight: bold;
  margin-right: 8px;
}

.btn-luxury {
  background: linear-gradient(135deg, #C6A664 0%, #d4b76a 100%);
  color: #FFFFFF;
  border: 1px solid #C6A664;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(198, 166, 100, 0.3);
  transition: all 0.3s ease;
}

.btn-luxury:hover {
  background: linear-gradient(135deg, #d4b76a 0%, #e2c578 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(198, 166, 100, 0.4);
}

/* Selected vs unselected differentiation (clean) */
.filters label { opacity: 0.95; transition: opacity 0.2s ease, filter 0.2s ease; }
.filter-group:has(> label > input[type="checkbox"]:checked) > label { opacity: 0.6; filter: saturate(0.85) brightness(0.95); }
.filter-group > label:has(> input[type="checkbox"]:checked) {
  opacity: 1;
  filter: none;
  color: var(--text);
  border-color: rgba(255, 165, 0, 0.6);
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.15), rgba(255, 165, 0, 0.1));
}

.filters label.resetting-glow { animation: reset-glow 0.8s ease-out; }

@media (max-width: 768px) {
  .about-title { font-size: 32px; }
  .mission-list { grid-template-columns: 1fr; }
  .about-content-centered { gap: 24px; }
  .about-content-split {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .about-text-section {
    text-align: center;
    align-items: center;
  }
}
.list { margin: 12px 0 0; padding-left: 18px; }

/* Forms (generic) */
.form-row { margin-bottom: 12px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
input, textarea, select { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font: inherit; background: var(--bg-soft); outline: none; transition: 0.2s; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(193,122,92,0.12); }
.form-note { color: var(--muted); font-size: 13px; margin-top: 8px; }

/* Footer */
.site-footer {
  position: relative;
  background: var(--bg-gradient);
  color: var(--text-primary);
  padding: 48px 0;
  margin-top: 24px;
  overflow: hidden;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 30% 70%, rgba(255, 165, 0, 0.1) 0%, transparent 40%),
                    radial-gradient(circle at 70% 30%, rgba(26, 11, 46, 0.15) 0%, transparent 40%),
                    radial-gradient(circle at 50% 50%, rgba(255, 165, 0, 0.05) 0%, transparent 40%);
  animation: footer-stars 15s infinite linear reverse;
}
@keyframes footer-stars {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-50px) translateY(-50px); }
}
.footer-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-logo .logo-top { 
  color: var(--text-primary); 
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3)); 
}
.footer-links a { color: var(--text); text-decoration: none; opacity: 0.9; transition: 0.3s; }
.footer-links a:hover { color: var(--accent); text-shadow: var(--glow); }
.social-icons { display: flex; gap: 16px; margin-top: 8px; }
.social-icons a { color: var(--muted); transition: 0.3s; width: 24px; height: 24px; }
.social-icons a:hover { color: var(--accent); filter: drop-shadow(var(--glow)); }
.footer-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 20px var(--accent);
}

/* Catalog sidebar: force black genre titles */
.filters .filter-title,
.filters label { color: #000; }
.filters label:hover,
.filter-group > label:has(> input[type="checkbox"]:checked),
.filters label:has(> input[type="checkbox"]:checked) { color: #000; }

/* Testimonials */
#testimonials.section {
  position: relative;
  padding: 80px 0;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--white-pure) 0%, var(--white-soft) 100%);
  overflow: hidden;
}

.testimonials-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.08), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(212, 175, 55, 0.06), transparent 45%),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.04), transparent 50%);
  pointer-events: none;
  z-index: 1;
}

#testimonials .container {
  position: relative;
  z-index: 2;
}

#testimonials .section-title {
  text-align: center;
  margin-bottom: 32px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-gold);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1), 0 0 24px rgba(212, 175, 55, 0.15);
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15), 0 0 28px rgba(212, 175, 55, 0.25);
}

.testimonial-avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 2px solid rgba(255, 179, 71, 0.6);
  box-shadow: 0 0 18px rgba(255, 179, 71, 0.3);
}

.testimonial-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}

.testimonial-quote {
  margin: 10px 0 12px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  line-height: 1.7;
  color: #000000;
  text-align: center;
}

.testimonial-stars {
  text-align: center;
  color: #FFB347;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 179, 71, 0.5);
}

.testimonial-author {
  margin-top: 10px;
  text-align: center;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.testimonial-author .author-name {
  display: block;
  font-weight: 700;
  color: var(--accent-gold);
}

.testimonial-author .author-role {
  display: block;
  font-weight: 500;
  color: var(--muted);
}

.testimonials-cta {
  margin-top: 32px;
  text-align: center;
}
.testimonials-cta p { margin-bottom: 14px; }

/* Fade-up + scale-in animation */
.fade-up-scale { opacity: 0; transform: translateY(18px) scale(0.98); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up-scale.visible { opacity: 1; transform: translateY(0) scale(1); }

/* Parallax starfield for testimonials */
.testimonials::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(1px 1px at 25% 35%, rgba(212, 175, 55, 0.3) 0, transparent 60%),
                    radial-gradient(1px 1px at 75% 65%, rgba(212, 175, 55, 0.25) 0, transparent 60%),
                    radial-gradient(1px 1px at 40% 80%, rgba(107, 114, 128, 0.2) 0, transparent 60%),
                    radial-gradient(1px 1px at 60% 20%, rgba(212, 175, 55, 0.3) 0, transparent 60%);
  background-size: 600px 600px;
  opacity: 0.4;
  z-index: 1;
  transform: translateY(var(--parallax, 0px));
}

@media (max-width: 1024px) {
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}
/* Footer book image */
.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 400px;
  position: relative;
}

.footer-text-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 80px 60px 60px;
  background: linear-gradient(135deg, var(--white-pure), var(--white-soft));
  position: relative;
}

.footer-text-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.footer-links {
  display: flex;
  gap: 32px;
  margin-top: 24px;
}

.footer-book-section {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--white-soft), var(--white-warm));
  padding: 40px;
  overflow: hidden;
}

.footer-book-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 60% 40%, rgba(212, 175, 55, 0.1), transparent 70%);
  pointer-events: none;
}

.footer-book {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.2);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.footer-book:hover {
  transform: scale(1.05) rotateY(5deg);
}

/* Footer Contact block */
.footer-contact {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(420px, calc(100% - 48px));
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15), 0 0 24px rgba(212,175,55,0.15);
  backdrop-filter: blur(6px);
}
.footer-contact h3 { margin: 0 0 6px; font-size: 20px; }
.footer-contact p { margin: 0 0 12px; color: var(--muted); }
.footer-contact .contact-form .form-row { margin-bottom: 10px; }
.footer-contact .contact-form input,
.footer-contact .contact-form textarea {
  background: #fff;
  border: 1px solid var(--border);
}
.footer-contact .btn { width: 100%; margin-top: 4px; }

@media (max-width: 768px) {
  .footer-contact { position: static; width: 100%; margin-top: 16px; }
}

/* Toast */
.toast { 
  position: fixed; 
  top: 100px; 
  right: 24px; 
  background: linear-gradient(135deg, var(--success) 0%, #8FA58B 100%); 
  color: #fff; 
  padding: 16px 18px; 
  border-radius: 12px; 
  box-shadow: var(--shadow-md), 0 0 15px rgba(255, 165, 0, 0.4); 
  display: flex; 
  gap: 12px; 
  align-items: start; 
  min-width: 320px; 
  transform: translateX(420px); 
  opacity: 0; 
  pointer-events: none; 
  transition: 0.4s ease; 
  z-index: 1000;
  border: 2px solid rgba(255, 165, 0, 0.6);
}
.toast.show { transform: translateX(0); opacity: 1; pointer-events: auto; }
.toast-icon { font-weight: 700; font-size: 22px; line-height: 1; }
.toast-content { line-height: 1.3; }
.toast-content strong { display: block; margin-bottom: 2px; }
.toast-close { background: transparent; border: none; color: #fff; font-size: 20px; cursor: pointer; margin-left: auto; }

/* Reveal on scroll */
.fade-in-scroll { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in-scroll.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .book-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: relative; top: auto; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero h1 { font-size: 36px; }
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { 
    grid-template-columns: 1fr; 
    text-align: center; 
    gap: 32px;
  }
  .footer-content { 
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-text-section {
    text-align: center;
    padding: 40px 32px;
  }
  .footer-text-section::after {
    display: none;
  }
  .footer-book {
    max-width: 250px;
  }
  .desktop-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .mobile-nav { display: flex; }
  .search-field input { width: 100%; }
  
  /* Jednodušší animace vln na mobilu */
  .stats::before {
    animation-duration: 12s;
  }
  .stats::after {
    animation-duration: 10s;
  }
  
  /* Jednodušší animace komet na mobilu */
  .featured::after {
    background-size: 150px 2px, 130px 2px, 120px 2px, 160px 2px, 140px 2px, 130px 2px;
    animation-duration: 8s;
  }
}

@media (max-width: 480px) {
  .book-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  
  /* Minimální animace vln na malých zařízeních */
  .stats::before {
    animation-duration: 10s;
  }
  .stats::after {
    animation-duration: 8s;
  }
  
  /* Minimální animace na velmi malých zařízeních */
  .featured::after {
    background-size: 120px 2px, 100px 1px, 90px 2px, 130px 1px, 110px 2px, 100px 1px;
    animation-duration: 6s;
  }
}

/* Mobile nav open state (appended to ensure presence) */
@media (max-width: 768px) {
  .mobile-nav.active { max-height: 70vh; padding: 16px 24px 24px; }
}

/* Focus visibility for accessibility (appended) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(193,122,92,0.3);
}

/* Subscribe (Newsletter) – marble luxury design */
.subscribe {
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 25%, #f1f3f4 50%, #ffffff 75%, #f8f9fa 100%);
  background-size: 400% 400%;
  animation: marble-flow 8s ease-in-out infinite;
  color: #1A1A1A;
  padding: 80px 0 72px;
  overflow: hidden;
}

.subscribe::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(45deg, rgba(0,0,0,0.02) 25%, transparent 25%), 
    linear-gradient(-45deg, rgba(0,0,0,0.02) 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.02) 75%), 
    linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.02) 75%),
    radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(156, 163, 175, 0.06) 0%, transparent 60%);
  background-size: 30px 30px, 30px 30px, 30px 30px, 30px 30px, 800px 800px, 600px 600px;
  background-position: 0 0, 0 15px, 15px -15px, -15px 0px, 0 0, 0 0;
  animation: marble-texture 12s linear infinite;
  pointer-events: none;
}

.subscribe::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: 
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.03) 1px,
      transparent 1px,
      transparent 8px,
      rgba(0,0,0,0.015) 8px,
      rgba(0,0,0,0.015) 9px,
      transparent 9px,
      transparent 24px
    );
  animation: marble-veins 15s linear infinite;
  pointer-events: none;
}

@keyframes marble-flow {
  0%, 100% { background-position: 0% 50%; }
  25% { background-position: 100% 25%; }
  50% { background-position: 50% 100%; }
  75% { background-position: 25% 0%; }
}

@keyframes marble-texture {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(30px) translateY(15px); }
}

@keyframes marble-veins {
  0% { transform: translateX(-50px) translateY(-25px) rotate(0deg); }
  100% { transform: translateX(50px) translateY(25px) rotate(360deg); }
}

.subscribe-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.subscribe-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 28px;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #1A1A1A 0%, #4a5568 50%, #1A1A1A 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: title-shimmer 4s ease-in-out infinite;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes title-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.subscribe-text {
  color: #4a5568;
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.subscribe-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}

.subscribe-form input[type="email"] {
  height: 52px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  padding: 0 18px;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.subscribe-form input[type="email"]:focus {
  border-color: var(--blue-accent);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 0 0 3px rgba(30, 58, 138, 0.1);
}

.btn-subscribe {
  height: 52px;
  padding: 0 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue-accent) 0%, #2563eb 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  border: none;
  box-shadow: 
    0 4px 12px rgba(30, 58, 138, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-subscribe::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.btn-subscribe:hover {
  background: linear-gradient(135deg, var(--blue-accent-hover) 0%, #3b82f6 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 20px rgba(30, 58, 138, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-subscribe:hover::before {
  left: 100%;
}

@media (max-width: 560px) {
  .subscribe-form { 
    grid-template-columns: 1fr; 
    gap: 12px;
  }
  .subscribe-title { font-size: 24px; }
  .subscribe-inner { padding: 32px 24px; }
}

/* Footer – light, 4 columns */
.site-footer.light {
  background: #FFFFFF;
  color: #1A1A1A;
  padding: 56px 0 24px;
  border-top: 1px solid var(--divider);
}
.site-footer.light::before { display: none; }

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-heading {
  font-family: 'Poppins', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 4px;
}
.footer-brand-text { color: var(--muted); line-height: 1.6; }
.btn.btn-map {
  align-self: flex-start;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--blue-accent);
  color: #fff;
  border: 1px solid var(--blue-accent);
  font-weight: 600;
}
.btn.btn-map:hover { background: var(--blue-accent-hover); border-color: var(--blue-accent-hover); }

.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a {
  color: #1A1A1A;
  text-decoration: none;
  font-size: 15px;
}
.footer-nav a:hover { color: var(--blue-accent-hover); }

.footer-separator {
  margin: 28px 0 16px;
  border: none;
  border-top: 1px solid var(--divider);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copy { margin: 0; color: var(--muted); font-size: 14px; }

.footer-social { display: flex; gap: 12px; }
.social-circle {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--divider);
  color: #374151; /* dark gray */
  transition: 0.25s ease;
}
.social-circle:hover { color: var(--blue-accent); border-color: var(--blue-accent); }
.social-circle svg { width: 18px; height: 18px; }

@media (max-width: 1024px) {
  .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .footer-links-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .btn.btn-map { align-self: center; }
}
