:root {
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-40: 40px;
  --space-64: 64px;

  --color-bg: #F5F7F9;
  --color-surface: #FFFFFF;
  --color-text: #2D3748;
  --color-text-light: #4A5568;
  --color-accent: #A3C4D1;
  --color-accent-hover: #8AB2C2;
  --color-secondary: #E8D5C4;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-micro: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.08);

  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
}

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

h1, h2, h3 {
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: var(--space-24);
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

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

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

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

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

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

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

/* Header */
.site-header {
  background-color: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-micro);
  height: 64px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}

.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(--color-text);
}

.brand svg {
  width: 32px;
  height: 32px;
}

.nav-main {
  display: flex;
  gap: var(--space-24);
}

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

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

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

.btn:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-surface);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-text);
}

.btn-secondary:hover {
  background-color: #d1bcae;
  color: var(--color-text);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}

.btn-outline:hover {
  background-color: var(--color-text);
  color: var(--color-surface);
}

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

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

.hero {
  text-align: center;
  padding: 100px 0 var(--space-64);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: var(--space-24);
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto var(--space-40);
}

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

.grid-child {
  min-width: 0;
}

.card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-micro);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

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

.card-overlay {
  position: relative;
  z-index: 2;
  width: calc(100% - 32px);
  margin: var(--space-16);
  padding: var(--space-24);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  color: var(--color-text);
}

.card-overlay h3 {
  margin: 0;
  color: var(--color-text);
  font-size: 1.25rem;
}

.card-overlay p {
  margin: 0;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

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

.stat-card {
  background-color: var(--color-surface);
  padding: var(--space-40) var(--space-24);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-micro);
}

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

.stat-label {
  color: var(--color-text-light);
  font-weight: 500;
}

/* Content Pages */
.page-header {
  padding: var(--space-64) 0 var(--space-40);
  background-color: var(--color-surface);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  text-align: center;
}

.content-body {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-64) var(--space-24);
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-micro);
  margin-bottom: var(--space-64);
  margin-top: var(--space-40);
}

.content-body h2 {
  margin-top: var(--space-40);
}

.content-body ul, .content-body ol {
  margin-bottom: var(--space-24);
  padding-left: var(--space-24);
  color: var(--color-text-light);
}

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

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--space-24);
}

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

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

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

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

label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: var(--space-16);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.map-block {
  background-color: var(--color-secondary);
  height: 300px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  margin-top: var(--space-40);
  font-weight: 600;
}

.form-message {
  display: none;
  padding: var(--space-16);
  background-color: #C6F6D5;
  color: #22543D;
  border-radius: var(--radius-md);
  margin-top: var(--space-24);
}

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

/* Footer */
.site-footer {
  background-color: var(--color-surface);
  padding: var(--space-64) 0 var(--space-24);
  border-top: 1px solid rgba(0,0,0,0.05);
  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);
  font-size: 1.1rem;
}

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

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

.footer-bottom {
  text-align: center;
  padding-top: var(--space-24);
  border-top: 1px solid rgba(0,0,0,0.05);
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-surface);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  padding: var(--space-24);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

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

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
}

.cookie-text {
  flex: 1 1 300px;
  margin: 0;
}

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

/* Responsive */
@media (max-width: 767px) {
  .site-header {
    height: 52px;
  }
  .nav-main {
    position: absolute;
    top: 52px;
    left: 0;
    width: 100%;
    background-color: var(--color-surface);
    flex-direction: column;
    padding: var(--space-24);
    box-shadow: var(--shadow-micro);
    gap: var(--space-16);
    display: none;
  }
  .nav-main.is-open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .header-cta {
    display: none;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .section {
    padding: var(--space-40) 0;
  }
  .card-overlay {
    margin: 0;
    width: 100%;
    border-radius: 0;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
  }
}

@media (max-width: 399px) {
  .card-grid, .stats-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  .cookie-actions button {
    width: 100%;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}