:root {
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --bg-color: #f8fafc;
  --surface-color: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --pastel-bg: #ede9fe;
  --error: #ef4444;
  --success: #22c55e;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --shadow-sm: 0 2px 8px rgba(100, 116, 139, 0.04);
  --shadow-md: 0 8px 24px rgba(100, 116, 139, 0.08);
  --shadow-hover: 0 16px 40px rgba(100, 116, 139, 0.12);
  
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-40: 40px;
  --sp-64: 64px;
}

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

body, h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

ul, ol {
  list-style-position: inside;
}

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

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

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

*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-12) var(--sp-24);
  background-color: var(--accent);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

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

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

.btn-outline:hover {
  background-color: var(--pastel-bg);
  color: var(--accent-hover);
}

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

header {
  background-color: var(--surface-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
}

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

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

.logo svg {
  width: 24px;
  height: 24px;
}

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

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

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

.mobile-menu-toggle {
  display: none;
  padding: var(--sp-8);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: var(--text-main);
}

main {
  flex: 1;
}

.section {
  padding: var(--sp-64) 0;
}

.hero {
  background: linear-gradient(135deg, var(--pastel-bg) 0%, var(--surface-color) 100%);
  padding: 80px 0 var(--sp-64);
  text-align: center;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text-main);
  margin-bottom: var(--sp-24);
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto var(--sp-40);
}

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

.card {
  background-color: var(--surface-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 0;
}

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

.card-img-wrapper {
  width: 100%;
  height: 200px;
  background-color: var(--pastel-bg);
  position: relative;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-content {
  padding: var(--sp-24);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--sp-12);
  color: var(--text-main);
}

.card-desc {
  color: var(--text-muted);
  margin-bottom: var(--sp-24);
  flex: 1;
}

.stat-block {
  display: flex;
  align-items: baseline;
  gap: var(--sp-12);
  margin-top: var(--sp-16);
  padding-top: var(--sp-16);
  border-top: 1px solid var(--bg-color);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Sub-page Specifics */
.page-header {
  padding: var(--sp-64) 0 var(--sp-40);
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--pastel-bg);
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--sp-64) var(--sp-24);
}

.content-wrapper h2 {
  font-size: 1.75rem;
  margin: var(--sp-40) 0 var(--sp-24);
  color: var(--text-main);
}

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

.content-wrapper p {
  margin-bottom: var(--sp-16);
  color: var(--text-muted);
}

.content-wrapper ul, .content-wrapper ol {
  margin-bottom: var(--sp-24);
  padding-left: var(--sp-24);
  color: var(--text-muted);
}

.content-wrapper li {
  margin-bottom: var(--sp-8);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-40) 0;
  background-color: var(--surface-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: var(--sp-24) 0;
}

.data-table th, .data-table td {
  padding: var(--sp-16);
  text-align: left;
  border-bottom: 1px solid var(--bg-color);
}

.data-table th {
  background-color: var(--pastel-bg);
  font-weight: 600;
  color: var(--text-main);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-40);
}

.form-group {
  margin-bottom: var(--sp-24);
}

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

.form-control {
  width: 100%;
  padding: var(--sp-12);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: inherit;
  background-color: var(--surface-color);
  color: var(--text-main);
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--pastel-bg);
}

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

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

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

.form-success {
  padding: var(--sp-16);
  background-color: #dcfce7;
  color: #166534;
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-24);
  display: none;
}

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

.map-block {
  width: 100%;
  height: 300px;
  background: var(--pastel-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  flex-direction: column;
  gap: var(--sp-16);
}

.map-block svg {
  width: 48px;
  height: 48px;
  fill: var(--accent);
}

footer {
  background-color: var(--surface-color);
  padding: var(--sp-64) 0 var(--sp-24);
  margin-top: auto;
  border-top: 1px solid var(--pastel-bg);
}

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

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

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--sp-12);
}

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

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

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

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--surface-color);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  padding: var(--sp-24);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
}

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

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

.cookie-text {
  flex: 1;
  min-width: 280px;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
  header {
    height: 52px;
  }
  
  .nav-links {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background-color: var(--surface-color);
    flex-direction: column;
    padding: var(--sp-24);
    box-shadow: var(--shadow-md);
    gap: var(--sp-16);
    display: none;
  }

  .nav-links.is-visible {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .header-cta {
    display: none;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding: var(--sp-64) 0 var(--sp-40);
  }
}

@media (max-width: 400px) {
  header {
    height: 48px;
  }
  .nav-links {
    top: 48px;
  }
  .section {
    padding: var(--sp-40) 0;
  }
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  .cookie-actions .btn {
    width: 100%;
  }
}

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