:root {
    --bg-base: #07080c;
    --bg-surface: rgba(255, 255, 255, 0.03);
    --bg-surface-hover: rgba(255, 255, 255, 0.06);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glass-strong: rgba(255, 255, 255, 0.2);
    --neon-cyan: #00f3ff;
    --neon-magenta: #ff003c;
    --text-main: #ffffff;
    --text-muted: #a0aab2;
    --text-dark: #000000;
    --error: #ff3366;
    
    --space-4: 4px;
    --space-8: 8px;
    --space-16: 16px;
    --space-24: 24px;
    --space-40: 40px;
    --space-64: 64px;
    
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    min-width: 0;
}

html {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-wrap: anywhere;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: var(--space-24);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

h1 { font-size: clamp(32px, 5vw, 64px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 600; }

p {
    margin-top: 0;
    margin-bottom: var(--space-24);
    color: var(--text-muted);
}

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

a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--neon-cyan);
}

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

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

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

.main-content {
    flex: 1;
    padding-top: 80px; 
}

/* Header */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(7, 8, 12, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 100;
    display: flex;
    align-items: center;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    font-weight: 700;
    font-size: 20px;
    color: var(--text-main);
    overflow-wrap: anywhere;
}
.brand svg {
    flex-shrink: 0;
}
.brand:hover {
    color: var(--text-main);
    text-shadow: none;
}

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

.site-nav a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
}

.site-nav a:hover {
    color: var(--neon-cyan);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-16);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--neon-cyan), #0099ff);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: linear-gradient(90deg, #fff, var(--neon-cyan));
    color: var(--text-dark);
    box-shadow: 0 0 16px rgba(0, 243, 255, 0.4);
    text-shadow: none;
}

.btn-glass {
    background: var(--bg-surface);
    border-color: var(--border-glass);
    color: var(--text-main);
    backdrop-filter: blur(8px);
}

.btn-glass:hover {
    background: var(--bg-surface-hover);
    border-color: var(--neon-cyan);
    color: var(--text-main);
    text-shadow: none;
}

/* Glassmorphism Section/Cards */
.section {
    padding: var(--space-64) 0;
}

.hero {
    position: relative;
    padding: 120px 0 var(--space-64) 0;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 243, 255, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 70% 30%, rgba(255, 0, 60, 0.05) 0%, transparent 40%);
    z-index: -1;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-40);
    min-width: 0;
}

/* Glass Overlay Card */
.glass-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    text-decoration: none;
    border: 1px solid var(--border-glass);
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
    background: #000;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-cyan);
}

.glass-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(7, 8, 12, 0.95) 0%, rgba(7, 8, 12, 0.4) 50%, transparent 100%);
}

.glass-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 8, 12, 0.98) 0%, rgba(7, 8, 12, 0.6) 60%, transparent 100%);
    z-index: 2;
    transition: background 0.3s ease;
}

.glass-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-24);
    z-index: 3;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
}

.glass-card-content h3 {
    margin: 0;
    color: #fff;
    font-size: 22px;
}

.glass-card-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
}

.tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 4px;
}

/* Article / Sub-page Layout */
.article-header {
    text-align: center;
    padding: var(--space-64) 0;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: var(--space-64);
}
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-24);
}
.article-container h2 {
    color: var(--neon-cyan);
    margin-top: var(--space-40);
}
.article-container h3 {
    color: #fff;
    margin-top: var(--space-24);
}
.article-container ul, .article-container ol {
    color: var(--text-muted);
    margin-bottom: var(--space-24);
    padding-left: var(--space-24);
}
.article-container li {
    margin-bottom: var(--space-8);
}

/* Stats Block */
.stats-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-24);
    margin: var(--space-40) 0;
    padding: var(--space-24);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    backdrop-filter: blur(12px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--neon-magenta);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: var(--space-24);
    border: 1px solid var(--border-glass);
    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(--border-glass);
    color: var(--text-muted);
}

th {
    background: var(--bg-surface);
    color: var(--text-main);
    font-weight: 600;
}

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

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

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

.form-control:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 1px var(--neon-cyan);
}

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

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

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

/* Static Map Block */
.static-map {
    position: relative;
    width: 100%;
    height: 300px;
    background: #111;
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.static-map-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.map-pin {
    position: relative;
    z-index: 2;
    color: var(--neon-magenta);
    filter: drop-shadow(0 0 8px rgba(255, 0, 60, 0.8));
}

/* Footer */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-glass);
    background: rgba(7, 8, 12, 0.9);
    padding: var(--space-64) 0 var(--space-24) 0;
}

.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 {
    color: #fff;
    margin-bottom: var(--space-16);
    font-size: 18px;
}

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

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

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

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

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 12, 16, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--neon-cyan);
    padding: var(--space-24);
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-24);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cookie-content {
    flex: 1 1 400px;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
}

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

/* Responsive */
@media (max-width: 767px) {
    .site-header {
        height: 52px;
    }
    
    .main-content {
        padding-top: 52px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .site-nav {
        display: none;
        position: absolute;
        top: 52px;
        left: 0;
        width: 100%;
        background: var(--bg-base);
        flex-direction: column;
        padding: var(--space-24);
        border-bottom: 1px solid var(--border-glass);
        gap: var(--space-16);
    }
    
    .site-nav.is-visible {
        display: flex;
    }

    .header-actions .btn-primary {
        display: none;
    }
    
    .hero {
        padding: 80px 0 var(--space-40) 0;
    }
}

@media (max-width: 399px) {
    h1 { font-size: 28px; }
    .glass-card { min-height: 360px; }
    .cookie-actions { flex-direction: column; width: 100%; }
    .cookie-actions .btn { width: 100%; }
}