/* ============================================
   🔍 EPSHTEIN.RU — STYLES.CSS
   Dark Investigative Theme
   ============================================ */

/* ─────────────── FONTS ─────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ─────────────── CSS VARIABLES ─────────────── */
:root {
  /* 🎨 Brand Colors */
  --primary: #c0392b;
  --primary-light: #e74c3c;
  --primary-dark: #962d22;
  --primary-glow: rgba(192, 57, 43, 0.4);

  --accent: #e67e22;
  --accent-light: #f39c12;

  --secondary: #2980b9;
  --secondary-light: #3498db;

  /* 🌑 Dark Palette */
  --bg-body: #0a0a0f;
  --bg-section: #0e0e15;
  --bg-section-alt: #0b0b12;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.04);
  --bg-elevated: #141420;
  --bg-input: rgba(255, 255, 255, 0.04);

  /* 🔲 Borders */
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(192, 57, 43, 0.3);

  /* 📝 Text */
  --text-primary: #e8e6e3;
  --text-secondary: #a0998f;
  --text-muted: #6b6560;
  --text-heading: #f5f3f0;
  --text-link: #e74c3c;
  --text-link-hover: #f39c12;

  /* 🔤 Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.75rem;

  --lh-tight: 1.2;
  --lh-base: 1.7;
  --lh-relaxed: 1.85;

  /* 📐 Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* 🔲 Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* 🌫 Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow-red: 0 0 30px rgba(192, 57, 43, 0.2);
  --shadow-glow-red-lg: 0 0 60px rgba(192, 57, 43, 0.15);
  --shadow-inner: inset 0 1px 4px rgba(0, 0, 0, 0.3);

  /* ⏱ Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.15s var(--ease-out);
  --transition-base: 0.3s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* 📏 Layout */
  --container-max: 1200px;
  --container-narrow: 860px;
  --header-height: 72px;
  --sidebar-width: 340px;

  /* Z-Index Scale */
  --z-base: 1;
  --z-header: 100;
  --z-overlay: 200;
  --z-lightbox: 300;
  --z-floating: 400;
}

/* ─────────────── RESET ─────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-dark) var(--bg-body);
}

::selection {
  background: var(--primary);
  color: var(--text-heading);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text-secondary);
  background-color: var(--bg-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--text-link-hover);
}

ul, ol {
  padding-left: var(--space-6);
}

li {
  margin-bottom: var(--space-2);
}

strong, b {
  color: var(--text-primary);
  font-weight: 600;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ─────────────── SKIP LINK ─────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-6);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* ─────────────── CONTAINER ─────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

/* ─────────────── TYPOGRAPHY ─────────────── */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); margin-bottom: var(--space-6); }
h3 { font-size: var(--fs-xl); margin-bottom: var(--space-4); margin-top: var(--space-10); }
h4 { font-size: var(--fs-lg); margin-bottom: var(--space-3); }

p {
  margin-bottom: var(--space-5);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

/* ============================================
   🧭 HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: var(--z-header);
  transition: background var(--transition-base),
              box-shadow var(--transition-base),
              backdrop-filter var(--transition-base);
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(10, 10, 15, 0.92);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-6);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.logo:hover {
  transform: scale(1.02);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  font-size: var(--fs-lg);
  border-radius: var(--radius-sm);
  letter-spacing: -0.05em;
  box-shadow: var(--shadow-glow-red);
  transition: var(--transition-base);
}

.logo:hover .logo-icon {
  background: var(--primary-light);
  box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
}

.logo-text {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.03em;
}

.logo-dot {
  color: var(--primary);
}

/* Header Search */
.header-search {
  position: relative;
  flex: 0 1 280px;
  display: flex;
  align-items: center;
}

.header-search input {
  width: 100%;
  padding: var(--space-2) var(--space-4);
  padding-right: 40px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  outline: none;
  transition: var(--transition-base);
}

.header-search input::placeholder {
  color: var(--text-muted);
}

.header-search input:focus {
  border-color: var(--primary);
  background: rgba(192, 57, 43, 0.05);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.header-search button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: 50%;
  transition: var(--transition-base);
}

.header-search button:hover {
  color: var(--primary-light);
  background: rgba(192, 57, 43, 0.1);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  z-index: calc(var(--z-header) + 10);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0;
  margin: 0;
}

.main-nav ul li {
  margin: 0;
}

.main-nav a {
  display: block;
  padding: var(--space-2) var(--space-4);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  white-space: nowrap;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
  transform: translateX(-50%);
}

.main-nav a:hover {
  color: var(--text-heading);
  background: rgba(255, 255, 255, 0.04);
}

.main-nav a:hover::after {
  width: calc(100% - var(--space-8));
}

/* Telegram nav link */
.nav-tg {
  background: rgba(192, 57, 43, 0.1) !important;
  border: 1px solid rgba(192, 57, 43, 0.2) !important;
  color: var(--primary-light) !important;
  border-radius: var(--radius-full) !important;
  padding: var(--space-2) var(--space-5) !important;
}

.nav-tg:hover {
  background: rgba(192, 57, 43, 0.2) !important;
  border-color: rgba(192, 57, 43, 0.4) !important;
  color: #fff !important;
}

.nav-tg::after {
  display: none !important;
}

/* ============================================
   🍞 BREADCRUMBS
   ============================================ */
.breadcrumbs {
  padding: var(--space-3) 0;
  margin-top: var(--header-height);
  background: var(--bg-section-alt);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.breadcrumbs li {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
}

.breadcrumbs li:not(:last-child)::after {
  content: '›';
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.breadcrumbs a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--primary-light);
}

.breadcrumbs li[aria-current="page"] {
  color: var(--text-secondary);
}

/* ============================================
   🦸 HERO SECTION
   ============================================ */
.hero {
  position: relative;
  padding: var(--space-24) 0 var(--space-20);
  overflow: hidden;
  background: var(--bg-body);
}

/* Background effects */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(192, 57, 43, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(41, 128, 185, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(192, 57, 43, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* Subtle grid pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

.hero .container {
  position: relative;
  z-index: var(--z-base);
}

.hero h1 {
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.03em;
  max-width: 900px;
  color: var(--text-heading);
}

.hero-subtitle {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: var(--space-10);
  line-height: var(--lh-relaxed);
}

.hero-subtitle time {
  color: var(--primary-light);
  font-weight: 600;
}

/* Hero CTA Buttons */
.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}

/* ─────────────── BUTTONS ─────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  line-height: 1.4;
}

.btn svg {
  flex-shrink: 0;
}

/* Primary button */
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(192, 57, 43, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(192, 57, 43, 0.4);
  color: #fff;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary button */
.btn-secondary {
  background: rgba(41, 128, 185, 0.12);
  color: var(--secondary-light);
  border: 1px solid rgba(41, 128, 185, 0.25);
}

.btn-secondary:hover {
  background: rgba(41, 128, 185, 0.2);
  border-color: rgba(41, 128, 185, 0.4);
  transform: translateY(-2px);
  color: #fff;
}

/* Outline button */
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--text-muted);
  transform: translateY(-2px);
  color: var(--text-heading);
}

/* Small button */
.btn-sm {
  padding: 10px 20px;
  font-size: var(--fs-xs);
}

/* ─────────────── HERO STATS ─────────────── */
.hero-stats {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  position: relative;
}

.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: calc(var(--space-12) / -2);
  top: 10%;
  height: 80%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border-color), transparent);
}

.stat-number {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

/* ============================================
   📄 CONTENT SECTIONS
   ============================================ */
.content-section {
  padding: var(--space-20) 0;
  position: relative;
}

/* Alternating dark backgrounds */
.section-dark {
  background: var(--bg-section-alt);
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.section-dark::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* Section headings */
.content-section > .container > h2 {
  font-size: clamp(var(--fs-2xl), 3.5vw, var(--fs-3xl));
  margin-bottom: var(--space-4);
  position: relative;
  padding-bottom: var(--space-4);
}

.content-section > .container > h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

/* ─────────────── CONTENT GRID (main + sidebar) ─────────────── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-12);
  align-items: start;
}

.content-main {
  min-width: 0;
}

.content-main h3 {
  color: var(--text-heading);
  font-size: var(--fs-xl);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
}

.content-main h3:first-child,
.content-main p:first-child + h3 {
  border-top: none;
  padding-top: 0;
}

.content-main ul,
.content-main ol {
  margin-bottom: var(--space-5);
  color: var(--text-secondary);
}

.content-main li {
  padding-left: var(--space-2);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-3);
}

.content-main li::marker {
  color: var(--primary);
}

/* ─────────────── SIDEBAR ─────────────── */
.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  position: sticky;
  top: calc(var(--header-height) + var(--space-8));
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-base);
}

.sidebar-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.sidebar-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.sidebar-card:hover img {
  transform: scale(1.03);
}

.img-caption {
  padding: var(--space-4);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-color);
  margin: 0;
}

.sidebar-cta {
  background: rgba(192, 57, 43, 0.06);
  border: 1px solid rgba(192, 57, 43, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
}

.sidebar-cta p {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

/* ─────────────── INFO CARD (facts table) ─────────────── */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin: var(--space-8) 0;
}

.info-card h4 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-color);
}

.facts-table {
  width: 100%;
}

.facts-table tr {
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-fast);
}

.facts-table tr:last-child {
  border-bottom: none;
}

.facts-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.facts-table td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-sm);
  vertical-align: top;
}

.facts-table td:first-child {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  width: 180px;
  padding-right: var(--space-6);
}

.facts-table td:last-child {
  color: var(--text-primary);
}

/* ─────────────── FEATURES GRID (files section) ─────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card h4 {
  font-size: var(--fs-md);
  margin-bottom: var(--space-3);
  color: var(--text-heading);
}

.feature-card p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0;
  line-height: var(--lh-relaxed);
}

/* ─────────────── DATA TABLE ─────────────── */
.data-table {
  width: 100%;
  margin: var(--space-8) 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.data-table thead {
  background: rgba(255, 255, 255, 0.03);
}

.data-table th {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: var(--space-4) var(--space-5);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: rgba(192, 57, 43, 0.03);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table td:first-child {
  color: var(--primary-light);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  white-space: nowrap;
}

/* ─────────────── RESOURCES GRID ─────────────── */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

.resource-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.resource-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-base);
  background: radial-gradient(circle at 50% 0%, rgba(192, 57, 43, 0.08), transparent 70%);
}

.resource-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-red);
}

.resource-card:hover::after {
  opacity: 1;
}

.resource-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
  display: block;
  position: relative;
  z-index: 1;
}

.resource-card h4 {
  color: var(--text-heading);
  font-size: var(--fs-md);
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.resource-card p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  flex: 1;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.resource-link {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary-light);
  transition: color var(--transition-fast);
  position: relative;
  z-index: 1;
}

.resource-card:hover .resource-link {
  color: var(--accent-light);
}

/* ─────────────── LIST CATEGORIES (list section) ─────────────── */
.list-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  margin: var(--space-8) 0;
}

.list-cat {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: var(--transition-base);
}

.list-cat:hover {
  border-color: var(--border-hover);
}

.list-cat h3 {
  font-size: var(--fs-md);
  margin-top: 0;
  margin-bottom: var(--space-5);
  padding-top: 0;
  padding-bottom: var(--space-3);
  border-top: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--primary-light);
}

.list-cat ul {
  list-style: none;
  padding: 0;
}

.list-cat li {
  padding: var(--space-3) 0;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  line-height: var(--lh-base);
}

.list-cat li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.list-cat li strong {
  color: var(--text-heading);
}

/* ─────────────── CTA BANNER ─────────────── */
.cta-banner {
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.08), rgba(192, 57, 43, 0.02));
  border: 1px solid rgba(192, 57, 43, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin: var(--space-10) 0;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.cta-banner p {
  flex: 1;
  min-width: 250px;
  margin: 0;
  font-size: var(--fs-sm);
}

/* ============================================
   ⏱ TIMELINE
   ============================================ */
.timeline {
  position: relative;
  padding-left: var(--space-12);
  margin-top: var(--space-10);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--primary),
    var(--primary-dark) 30%,
    var(--border-color) 70%,
    var(--primary)
  );
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-10);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  align-items: start;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Timeline dot */
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-12) + 12px);
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 4px var(--bg-body), 0 0 12px rgba(192, 57, 43, 0.3);
  z-index: 1;
  transition: var(--transition-base);
}

.timeline-item:hover::before {
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--bg-body), 0 0 20px rgba(192, 57, 43, 0.5);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-top: 2px;
  white-space: nowrap;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  transition: var(--transition-base);
}

.timeline-item:hover .timeline-content {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.timeline-content h3 {
  font-size: var(--fs-base);
  margin: 0 0 var(--space-2) 0;
  padding: 0;
  border: none;
  color: var(--text-heading);
}

.timeline-content p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0;
  line-height: var(--lh-base);
}

/* ============================================
   🎬 FILMS GRID
   ============================================ */
.films-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

.film-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: var(--transition-base);
}

.film-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.film-card h3 {
  font-size: var(--fs-base);
  margin: 0 0 var(--space-3) 0;
  padding: 0;
  border: none;
  color: var(--text-heading);
}

.film-card p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0;
  line-height: var(--lh-relaxed);
}

/* ============================================
   📸 GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
  margin: var(--space-8) 0;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: var(--transition-base);
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow-red);
  transform: scale(1.02);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6) var(--space-4) var(--space-3);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.85);
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Gallery CTA */
.gallery-cta {
  margin-top: var(--space-10);
}

.gallery-cta-inner {
  background: linear-gradient(135deg, rgba(192, 57, 43, 0.1), rgba(192, 57, 43, 0.03));
  border: 1px solid rgba(192, 57, 43, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.gallery-cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(192, 57, 43, 0.1), transparent 60%);
  pointer-events: none;
}

.gallery-cta-inner h3 {
  font-size: var(--fs-2xl);
  margin: 0 0 var(--space-4) 0;
  padding: 0;
  border: none;
  position: relative;
}

.gallery-cta-inner p {
  max-width: 560px;
  margin: 0 auto var(--space-8);
  color: var(--text-secondary);
  position: relative;
}

.gallery-cta-inner .btn {
  position: relative;
}

/* ============================================
   📰 NEWS GRID
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin: var(--space-8) 0;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: var(--transition-base);
  border-left: 3px solid var(--primary);
}

.news-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-card time {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-3);
}

.news-card h3 {
  font-size: var(--fs-md);
  margin: 0 0 var(--space-3) 0;
  padding: 0;
  border: none;
  color: var(--text-heading);
  line-height: var(--lh-tight);
}

.news-card p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin: 0;
  line-height: var(--lh-relaxed);
}

/* ============================================
   ❓ FAQ
   ============================================ */
.faq-list {
  max-width: var(--container-narrow);
  margin: var(--space-8) 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  overflow: hidden;
  transition: var(--transition-base);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item[open] {
  border-color: rgba(192, 57, 43, 0.2);
  box-shadow: 0 0 0 1px rgba(192, 57, 43, 0.05);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  list-style: none;
  transition: background var(--transition-fast);
  user-select: none;
  gap: var(--space-4);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
  content: '';
}

.faq-item summary::after {
  content: '+';
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  transition: var(--transition-base);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--primary-light);
  background: rgba(192, 57, 43, 0.1);
  transform: rotate(0deg);
}

.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-item summary h3 {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  border: none;
  line-height: var(--lh-base);
}

.faq-item[open] summary h3 {
  color: var(--text-heading);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-6);
  border-top: 1px solid var(--border-color);
  margin-top: -1px;
  padding-top: var(--space-5);
  animation: faqFadeIn 0.3s ease-out;
}

@keyframes faqFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-answer p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
  line-height: var(--lh-relaxed);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a {
  color: var(--primary-light);
  text-decoration: underline;
  text-decoration-color: rgba(231, 76, 60, 0.3);
  text-underline-offset: 3px;
}

.faq-answer a:hover {
  text-decoration-color: var(--primary-light);
}

/* ============================================
   🎯 SECTION CTA (final resources)
   ============================================ */
.section-cta {
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(192, 57, 43, 0.06), transparent),
    var(--bg-section-alt);
  text-align: center;
}

.section-cta h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-cta p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.final-resources {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.final-resources .resource-card {
  text-align: center;
  align-items: center;
}

.final-resources .resource-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-3);
}

/* Colored accents for final resources */
.resource-wiki {
  border-top: 2px solid var(--secondary);
}

.resource-wiki:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(41, 128, 185, 0.15);
}

.resource-tg {
  border-top: 2px solid var(--primary);
}

.resource-bot {
  border-top: 2px solid var(--accent);
}

.resource-bot:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(230, 126, 34, 0.15);
}

/* ============================================
   🦶 FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-section-alt);
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-16);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-dark), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-about h3,
.footer-nav h3,
.footer-links h3 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-heading);
  margin-bottom: var(--space-5);
  border: none;
  padding: 0;
}

.footer-about p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-relaxed);
}

.footer-about small {
  color: var(--text-muted);
}

.footer-nav ul,
.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-nav li,
.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-nav a,
.footer-links a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-nav a:hover,
.footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(3px);
}

.footer-links p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.footer-links h3:not(:first-child) {
  margin-top: var(--space-8);
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin: 0;
}

.footer-bottom a {
  color: var(--text-muted);
  font-size: var(--fs-xs);
}

.footer-bottom a:hover {
  color: var(--primary-light);
}

/* ============================================
   💡 LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.lightbox:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.lightbox[hidden] {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-base);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-3xl);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  cursor: pointer;
  z-index: 1;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  font-size: var(--fs-2xl);
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-sm);
  padding: var(--space-3) var(--space-6);
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-full);
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================
   ⬆ SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-floating);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-base);
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-red);
}

/* ============================================
   📱 FLOATING TELEGRAM BUTTON
   ============================================ */
.floating-tg {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-floating);
  box-shadow:
    0 4px 16px rgba(192, 57, 43, 0.4),
    0 0 0 0 rgba(192, 57, 43, 0.3);
  transition: var(--transition-base);
  animation: floatingPulse 3s ease-in-out infinite;
}

.floating-tg:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 8px 28px rgba(192, 57, 43, 0.5);
  color: #fff;
  animation: none;
}

.floating-tg:active {
  transform: scale(1.05) translateY(-2px);
}

@keyframes floatingPulse {
  0%, 100% {
    box-shadow:
      0 4px 16px rgba(192, 57, 43, 0.4),
      0 0 0 0 rgba(192, 57, 43, 0.3);
  }
  50% {
    box-shadow:
      0 4px 16px rgba(192, 57, 43, 0.4),
      0 0 0 12px rgba(192, 57, 43, 0);
  }
}

/* ============================================
   🎬 ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll-triggered animations */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay */
.animate-in:nth-child(1) { transition-delay: 0s; }
.animate-in:nth-child(2) { transition-delay: 0.08s; }
.animate-in:nth-child(3) { transition-delay: 0.16s; }
.animate-in:nth-child(4) { transition-delay: 0.24s; }
.animate-in:nth-child(5) { transition-delay: 0.32s; }
.animate-in:nth-child(6) { transition-delay: 0.4s; }

/* ============================================
   📱 RESPONSIVE — TABLET (≤1024px)
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 280px;
  }

  .container {
    padding: 0 var(--space-6);
  }

  .content-grid {
    gap: var(--space-8);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  .hero h1 {
    font-size: clamp(var(--fs-2xl), 4.5vw, var(--fs-4xl));
  }
}

/* ============================================
   📱 RESPONSIVE — MOBILE (≤768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --space-section: var(--space-16);
  }

  .container {
    padding: 0 var(--space-5);
  }

  /* Header mobile */
  .menu-toggle {
    display: flex;
  }

  .header-search {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: calc(var(--z-header) + 5);
    transition: right var(--transition-slow);
    border-left: 1px solid var(--border-color);
    padding: calc(var(--header-height) + var(--space-8)) var(--space-8) var(--space-8);
    overflow-y: auto;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: var(--space-2);
  }

  .main-nav a {
    font-size: var(--fs-md);
    padding: var(--space-4);
    border-radius: var(--radius-md);
  }

  .main-nav a::after {
    display: none;
  }

  .nav-tg {
    text-align: center;
    justify-content: center;
    margin-top: var(--space-4);
  }

  /* Hero mobile */
  .hero {
    padding: var(--space-16) 0 var(--space-12);
  }

  .hero h1 {
    font-size: var(--fs-2xl);
  }

  .hero-subtitle {
    font-size: var(--fs-base);
  }

  .hero-cta {
    flex-direction: column;
    margin-bottom: var(--space-10);
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: var(--space-8);
    flex-direction: column;
  }

  .stat::after {
    display: none;
  }

  .stat {
    flex-direction: row;
    align-items: baseline;
    gap: var(--space-4);
  }

  .stat-number {
    font-size: var(--fs-2xl);
  }

  /* Content grid — stack */
  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .content-sidebar {
    position: static;
    order: -1;
  }

  /* Sections */
  .content-section {
    padding: var(--space-16) 0;
  }

  .content-section > .container > h2 {
    font-size: var(--fs-2xl);
  }

  /* Lists & tables */
  .list-categories {
    grid-template-columns: 1fr;
  }

  .data-table {
    display: block;
    overflow-x: auto;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .gallery-cta-inner {
    padding: var(--space-8);
  }

  .gallery-cta-inner h3 {
    font-size: var(--fs-xl);
  }

  /* CTA banner */
  .cta-banner {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
  }

  .cta-banner .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Lightbox */
  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  .lightbox-prev,
  .lightbox-next,
  .lightbox-close {
    width: 42px;
    height: 42px;
    font-size: var(--fs-xl);
  }

  /* Floating buttons */
  .floating-tg {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
  }

  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }

  /* Timeline */
  .timeline {
    padding-left: var(--space-8);
  }

  .timeline::before {
    left: 14px;
  }

  .timeline-item::before {
    left: calc(-1 * var(--space-8) + 8px);
    width: 12px;
    height: 12px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-date {
    margin-bottom: var(--space-1);
  }

  /* Resources */
  .resources-grid {
    grid-template-columns: 1fr;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Films */
  .films-grid {
    grid-template-columns: 1fr;
  }

  /* News */
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   📱 RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================ */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  .hero h1 {
    font-size: var(--fs-xl);
  }

  .content-section > .container > h2 {
    font-size: var(--fs-xl);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    padding: var(--space-5);
  }

  .facts-table td:first-child {
    white-space: normal;
    width: auto;
    display: block;
    padding-bottom: 0;
    font-size: var(--fs-xs);
  }

  .facts-table td:last-child {
    display: block;
    padding-top: var(--space-1);
    padding-bottom: var(--space-3);
  }

  .facts-table tr {
    display: block;
    padding: var(--space-2) 0;
  }

  .feature-card {
    padding: var(--space-6);
  }

  .faq-item summary {
    padding: var(--space-4) var(--space-5);
  }

  .faq-answer {
    padding: 0 var(--space-5) var(--space-5);
  }

  .btn {
    padding: 12px 20px;
    font-size: var(--fs-xs);
  }

  .section-cta {
    text-align: left;
  }

  .section-cta h2::after {
    left: 0;
    transform: none;
  }
}

/* ============================================
   ♿ ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .floating-tg {
    animation: none;
  }
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
details summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ============================================
   🖨 PRINT STYLES
   ============================================ */
@media print {
  .site-header,
  .breadcrumbs,
  .hero-cta,
  .hero-stats,
  .sidebar-cta,
  .gallery-cta,
  .cta-banner,
  .floating-tg,
  .scroll-top,
  .lightbox,
  .menu-toggle,
  .header-search,
  .section-cta,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #222;
    font-size: 11pt;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #000;
    page-break-after: avoid;
  }

  .content-section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  a {
    color: #222;
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  img {
    max-width: 100% !important;
  }
}