:root {
  --c-bg: #fdfaf8;
  --c-text: #2c3539;
  --c-text-light: #59656b;
  --c-accent: #87a89e;
  --c-accent-hover: #6c8a81;
  --c-surface: #ffffff;
  --c-glass: rgba(255, 255, 255, 0.75);
  --c-glass-border: rgba(255, 255, 255, 0.4);
  --c-border: #e6e0dc;
  
  --f-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  
  --space-4: 4px;
  --space-8: 8px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --shadow-sm: 0 4px 16px rgba(44, 53, 57, 0.04);
  --shadow-md: 0 8px 32px rgba(44, 53, 57, 0.06);
}

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

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

body {
  font-family: var(--f-sans);
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  font-size: 16px;
  min-width: 280px;
}

h1, h2, h3, h4, .brand-name, .nav-link {
  overflow-wrap: anywhere;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; margin-bottom: var(--space-24); color: var(--c-text); }
h2 { font-size: 2rem; margin-bottom: var(--space-16); margin-top: var(--space-40); color: var(--c-text); }
h3 { font-size: 1.5rem; margin-bottom: var(--space-16); color: var(--c-text); }
p { margin-bottom: var(--space-16); }
ul, ol { margin-bottom: var(--space-16); padding-left: var(--space-24); }

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover, a:focus {
  color: var(--c-accent-hover);
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-16);
  min-width: 0;
}

/* Header */
.site-header {
  height: 64px;
  background-color: var(--c-bg);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--c-border);
}

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

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

.brand svg {
  width: 24px;
  height: 24px;
  fill: var(--c-accent);
}

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

.nav-links {
  display: flex;
  gap: var(--space-24);
  list-style: none;
}

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

.nav-link:hover {
  color: var(--c-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  background-color: var(--c-accent);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn:hover, .btn:focus {
  background-color: var(--c-accent-hover);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-8);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--c-text);
  stroke-width: 2;
}

@media (max-width: 767px) {
  .site-header { height: 52px; position: relative; }
  .menu-toggle { display: block; }
  
  .nav-wrapper {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    width: 100%;
    background-color: var(--c-surface);
    flex-direction: column;
    padding: var(--space-24);
    box-shadow: var(--shadow-md);
    z-index: 50;
    border-bottom: 1px solid var(--c-border);
  }
  
  .nav-wrapper.is-visible {
    display: flex;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: var(--space-16);
    text-align: center;
  }
}

/* Hero Section */
.hero {
  padding: var(--space-64) 0;
  text-align: center;
  background: linear-gradient(135deg, #f3ede9 0%, var(--c-bg) 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: var(--space-64);
}

.hero h1 { max-width: 800px; margin-left: auto; margin-right: auto; }
.hero p { max-width: 600px; margin-left: auto; margin-right: auto; color: var(--c-text-light); font-size: 1.125rem; }

/* Content Sections */
.section { margin-bottom: var(--space-64); }

/* 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;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  text-decoration: none;
  color: var(--c-text);
  box-shadow: var(--shadow-sm);
  background-color: var(--c-surface);
  transition: box-shadow 0.3s ease;
}

.glass-card:hover {
  box-shadow: var(--shadow-md);
}

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

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

.glass-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-24);
  background: var(--c-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-glass-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.glass-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.glass-card-desc {
  font-size: 0.875rem;
  color: var(--c-text-light);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.glass-card-meta {
  display: flex;
  gap: var(--space-16);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-accent);
  margin-top: var(--space-8);
}

/* Article Layout */
.article-header { text-align: center; padding: var(--space-64) 0 var(--space-40); }
.article-meta { color: var(--c-text-light); font-size: 0.875rem; margin-bottom: var(--space-24); }
.article-body { max-width: 800px; margin: 0 auto; padding-bottom: var(--space-64); }
.article-body h2 { border-bottom: 1px solid var(--c-border); padding-bottom: var(--space-8); }
.article-img { margin: var(--space-40) 0; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }

/* Data Block / Stats */
.stat-block {
  display: flex;
  align-items: center;
  background-color: var(--c-surface);
  padding: var(--space-24);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-24);
  box-shadow: var(--shadow-sm);
  gap: var(--space-12);
}
.stat-value { font-size: 2rem; font-weight: 700; color: var(--c-accent); }
.stat-label { font-size: 0.875rem; color: var(--c-text-light); }

/* Tables */
.table-wrapper { width: 100%; overflow-x: auto; margin-bottom: var(--space-24); }
table { width: 100%; border-collapse: collapse; min-width: 600px; background-color: var(--c-surface); border-radius: var(--radius-md); overflow: hidden; }
th, td { padding: var(--space-16); text-align: left; border-bottom: 1px solid var(--c-border); }
th { background-color: #f7f3f0; font-weight: 600; }

/* Forms */
.form-group { margin-bottom: var(--space-24); }
.form-label { display: block; font-weight: 600; margin-bottom: var(--space-8); }
.form-control {
  width: 100%;
  padding: var(--space-16);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-family: var(--f-sans);
  font-size: 1rem;
  background-color: var(--c-surface);
  color: var(--c-text);
  transition: border-color 0.2s ease;
}
.form-control:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(135, 168, 158, 0.2); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-feedback { display: none; color: #d32f2f; font-size: 0.875rem; margin-top: var(--space-4); }
.is-invalid .form-control { border-color: #d32f2f; }
.is-invalid .form-feedback { display: block; }
.form-success { display: none; padding: var(--space-16); background-color: #edf7ed; color: #1e4620; border-radius: var(--radius-sm); margin-bottom: var(--space-24); }
.form-success.is-visible { display: block; }

/* Static Map Block */
.static-map {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #e2e8e4 0%, #dbe4ef 100%);
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: var(--space-24);
}
.static-map::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 150%;
  background-image: radial-gradient(circle at center, transparent 30%, rgba(255,255,255,0.4) 31%, rgba(255,255,255,0.4) 34%, transparent 35%),
                    linear-gradient(0deg, rgba(255,255,255,0.2) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.2) 1px, transparent 1px);
  background-size: 100px 100px, 40px 40px, 40px 40px;
  transform: rotate(-15deg);
}
.map-marker {
  width: 24px;
  height: 32px;
  background-color: var(--c-accent);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  position: relative;
  z-index: 2;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}
.map-marker::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-radius: 50%;
  top: 8px;
  left: 8px;
}

/* Footer */
.site-footer {
  background-color: #f2ece8;
  padding: var(--space-64) 0;
  border-top: 1px solid var(--c-border);
  margin-top: auto;
}
.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); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: var(--space-8); }
.footer-bottom {
  padding-top: var(--space-24);
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-16);
  font-size: 0.875rem;
  color: var(--c-text-light);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--c-surface);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  padding: var(--space-24);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner.is-visible {
  transform: translateY(0);
}
.cookie-content { max-width: 800px; margin: 0 auto; text-align: center; }
.cookie-actions { display: flex; justify-content: center; gap: var(--space-16); flex-wrap: wrap; }
.btn-outline {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-outline:hover, .btn-outline:focus {
  background-color: #f0f0f0;
  color: var(--c-text);
}

@media (min-width: 768px) {
  .cookie-banner { flex-direction: row; justify-content: space-between; align-items: center; padding: var(--space-16) var(--space-40); }
  .cookie-content { text-align: left; margin: 0; }
  .cookie-actions { flex-wrap: nowrap; }
}

@media (max-width: 399px) {
  .hero h1 { font-size: 2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}