:root {
  /* Dark Glassmorphism Palette */
  --bg-base: #06080d;
  --bg-gradient-1: #0d1326;
  --bg-gradient-2: #050608;
  
  --glass-bg: rgba(25, 30, 45, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.15);
  
  --neon-primary: #00f2fe;
  --neon-primary-hover: #4facfe;
  --neon-secondary: #f093fb;
  
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-heading: #ffffff;
  
  --error: #ef4444;
  --success: #10b981;

  /* Spacing Scale */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;
  
  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  background-image: radial-gradient(circle at 15% 50%, var(--bg-gradient-1), transparent 50%),
                    radial-gradient(circle at 85% 30%, var(--bg-gradient-2), transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, .brand-name, .nav-link {
  color: var(--text-heading);
  overflow-wrap: anywhere;
}

a {
  color: var(--neon-primary);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: var(--neon-primary-hover);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

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

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--neon-primary);
  outline-offset: 4px;
  border-radius: 2px;
}

@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;
  }
}

/* Layout Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-24);
}

.section {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
}

.grid {
  display: grid;
  gap: var(--space-40);
  min-width: 0;
}

/* Typography styles */
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.title-hero { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.2; margin-bottom: var(--space-24); }
.title-section { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: var(--space-40); }
.title-card { font-size: 1.25rem; margin-bottom: var(--space-8); }
.subtitle { color: var(--text-muted); font-size: 1.25rem; margin-bottom: var(--space-40); }

/* Header */
.site-header {
  height: 64px;
  background: rgba(6, 8, 13, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-heading);
}

.brand svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--neon-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-desktop {
  display: flex;
  gap: var(--space-24);
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text-main);
}

.nav-link:hover {
  color: var(--neon-primary);
  text-shadow: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  background: var(--glass-bg);
  color: var(--text-heading);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  text-decoration: none;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--neon-primary);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
  color: var(--text-heading);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 172, 254, 0.2));
  border-color: var(--neon-primary);
  color: var(--neon-primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.4), rgba(79, 172, 254, 0.4));
  color: var(--text-heading);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: var(--space-4);
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
}

.nav-mobile-overlay {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  width: 100%;
  background: rgba(6, 8, 13, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: var(--space-24);
  flex-direction: column;
  gap: var(--space-24);
  z-index: 50;
}

.nav-mobile-overlay.is-visible {
  display: flex;
}

/* Hero Section */
.hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-top: var(--space-40);
  padding: var(--space-64) var(--space-24);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--glass-border);
  background: linear-gradient(145deg, rgba(25, 30, 45, 0.6), rgba(10, 12, 20, 0.8));
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 800px;
  z-index: 2;
}

/* Glass Overlay Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-24);
  min-width: 0;
}

.glass-card {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/5;
  text-decoration: none;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  min-width: 0;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 242, 254, 0.4);
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.glass-card:hover .card-img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-24);
  background: linear-gradient(to top, rgba(6, 8, 13, 0.95) 0%, rgba(10, 15, 25, 0.7) 70%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.card-overlay h3 {
  color: var(--text-heading);
}

.card-overlay p {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neon-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-8);
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
}

/* Feature Section */
.feature-box {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: var(--space-40);
  text-align: center;
}

/* Article Styling */
.article-header {
  margin-bottom: var(--space-40);
  padding-bottom: var(--space-24);
  border-bottom: 1px solid var(--glass-border);
}

.article-meta {
  display: flex;
  gap: var(--space-16);
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: var(--space-16);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 1.75rem;
  margin: var(--space-40) 0 var(--space-24);
  color: var(--neon-primary);
}

.article-content h3 {
  font-size: 1.25rem;
  margin: var(--space-24) 0 var(--space-16);
}

.article-content p {
  margin-bottom: var(--space-16);
}

.article-content ul, .article-content ol {
  margin-bottom: var(--space-24);
  padding-left: var(--space-24);
}

.article-content li {
  margin-bottom: var(--space-8);
}

.article-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin: var(--space-40) 0;
  border: 1px solid var(--glass-border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-24);
  margin: var(--space-40) 0;
}

.stat-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: var(--space-24);
  border-radius: 8px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--neon-secondary);
  margin-bottom: var(--space-12);
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: var(--space-40) 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

th, td {
  padding: var(--space-16);
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  color: var(--text-heading);
}

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

/* Forms */
.form-group {
  margin-bottom: var(--space-24);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: 500;
  color: var(--text-heading);
}

.form-control {
  width: 100%;
  padding: var(--space-12) var(--space-16);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-main);
  font-family: var(--font-sans);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--neon-primary);
  box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.2);
}

.form-control.is-invalid {
  border-color: var(--error);
}

.error-message {
  display: none;
  color: var(--error);
  font-size: 0.85rem;
  margin-top: var(--space-4);
}

.is-invalid + .error-message {
  display: block;
}

.form-success {
  display: none;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
  padding: var(--space-16);
  border-radius: 6px;
  margin-bottom: var(--space-24);
}

.form-success.is-visible {
  display: block;
}

/* Map Block */
.map-block {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(45deg, #0d1326 25%, #06080d 25%, #06080d 50%, #0d1326 50%, #0d1326 75%, #06080d 75%, #06080d 100%);
  background-size: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-block::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle, transparent 20%, #06080d 100%);
}

.map-pin {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  fill: var(--neon-secondary);
  filter: drop-shadow(0 4px 12px rgba(240, 147, 251, 0.4));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
  background: rgba(6, 8, 13, 0.8);
  padding: var(--space-64) 0 var(--space-40);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-40);
  margin-bottom: var(--space-40);
}

.footer-col h4 {
  margin-bottom: var(--space-16);
  font-size: 1.1rem;
}

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

.footer-col li {
  margin-bottom: var(--space-8);
}

.footer-col a {
  color: var(--text-muted);
}

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

.footer-bottom {
  text-align: center;
  padding-top: var(--space-24);
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: var(--space-24);
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: calc(100% - var(--space-48));
  max-width: 800px;
  background: rgba(15, 20, 30, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: var(--space-24);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.is-visible {
  transform: translateX(-50%) translateY(0);
}

.cookie-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-actions {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
}

/* Breakpoints */
@media (max-width: 767px) {
  .site-header {
    height: 52px;
  }
  .nav-desktop {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: var(--space-40) var(--space-16);
  }
}

@media (max-width: 399px) {
  :root {
    --space-64: 48px;
    --space-40: 32px;
    --space-24: 16px;
  }
  .cookie-actions {
    flex-direction: column;
  }
  .cookie-actions .btn {
    width: 100%;
  }
}