:root {
  --c-bg: #F9F9FB;
  --c-surface: #FFFFFF;
  --c-text: #2D3142;
  --c-text-muted: #5C677D;
  --c-primary: #375A7F;
  --c-primary-hover: #223D59;
  --c-border: #E2E8F0;
  --c-shadow-sm: 0 2px 8px rgba(45, 49, 66, 0.04);
  --c-shadow-md: 0 8px 24px rgba(45, 49, 66, 0.06);
  
  --rad-sm: 8px;
  --rad-md: 16px;
  --rad-lg: 24px;
  
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-40: 40px;
  --sp-64: 64px;
  
  --header-height: 48px;
  --content-max-width: 1024px;
}

@media (min-width: 768px) {
  :root {
    --header-height: 64px;
  }
}

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

html {
  lang: "en";
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6, .brand-name, nav, .wrap-anywhere {
  overflow-wrap: anywhere;
  margin-top: 0;
  color: var(--c-text);
  line-height: 1.2;
}

h1 { font-size: 2.25rem; margin-bottom: var(--sp-24); }
h2 { font-size: 1.75rem; margin-bottom: var(--sp-16); margin-top: var(--sp-40); }
h3 { font-size: 1.25rem; margin-bottom: var(--sp-16); margin-top: var(--sp-24); }

@media (max-width: 400px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
}

p {
  margin-top: 0;
  margin-bottom: var(--sp-16);
}

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

a:hover {
  color: var(--c-primary-hover);
  text-decoration: underline;
}

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

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

.container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--sp-16);
}

.site-header {
  height: var(--header-height);
  background-color: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}

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

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

.brand:hover {
  text-decoration: none;
  color: var(--c-primary);
}

.brand svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.nav-desktop {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8) var(--sp-16);
  background-color: var(--c-primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--rad-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:hover {
  background-color: var(--c-primary-hover);
  color: #FFFFFF;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-outline:hover {
  background-color: var(--c-primary);
  color: #FFFFFF;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.nav-mobile-overlay {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: var(--sp-16);
  box-shadow: var(--c-shadow-md);
  z-index: 99;
}

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

.nav-mobile-overlay ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

@media (min-width: 768px) {
  .hamburger { display: none; }
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--sp-24);
  }
  .nav-desktop ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--sp-16);
  }
  .nav-desktop a {
    color: var(--c-text-muted);
    font-weight: 500;
  }
  .nav-desktop a:hover {
    color: var(--c-primary);
  }
}

.hero {
  padding: var(--sp-64) 0;
  background: linear-gradient(135deg, #FFFFFF 0%, #F4F7F9 100%);
  text-align: center;
  border-bottom: 1px solid var(--c-border);
}

.hero h1 {
  font-size: 2.5rem;
  max-width: 800px;
  margin: 0 auto var(--sp-16) auto;
}

.hero p {
  font-size: 1.125rem;
  color: var(--c-text-muted);
  max-width: 600px;
  margin: 0 auto var(--sp-24) auto;
}

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

.card-split {
  display: flex;
  flex-direction: column;
  background-color: var(--c-surface);
  border-radius: var(--rad-md);
  box-shadow: var(--c-shadow-sm);
  margin-bottom: var(--sp-40);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  border: 1px solid var(--c-border);
}

.card-split:hover {
  box-shadow: var(--c-shadow-md);
  transform: translateY(-2px);
}

.card-media {
  width: 100%;
  height: 240px;
  background-color: var(--c-border);
  border-radius: var(--rad-md) var(--rad-md) 0 0;
  overflow: hidden;
}

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

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

.card-tags {
  display: flex;
  gap: var(--sp-8);
  margin-bottom: var(--sp-12);
  flex-wrap: wrap;
}

.tag {
  background-color: #E6F0FA;
  color: var(--c-primary);
  font-size: 0.75rem;
  padding: var(--sp-4) var(--sp-8);
  border-radius: var(--rad-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-content h2 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: var(--sp-8);
}

.card-content p {
  color: var(--c-text-muted);
  flex: 1;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-24);
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-16);
}

.card-author {
  font-size: 0.875rem;
  color: var(--c-text-muted);
}

@media (min-width: 768px) {
  .card-split {
    flex-direction: row;
    align-items: stretch;
  }
  .card-media {
    flex: 0 0 40%;
    height: auto;
    border-radius: var(--rad-md) 0 0 var(--rad-md);
  }
  .card-content {
    flex: 1;
    padding: var(--sp-40);
  }
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--sp-40) 0;
}

.article-hero {
  border-radius: var(--rad-md);
  overflow: hidden;
  margin-bottom: var(--sp-40);
  height: 300px;
  background-color: var(--c-border);
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat-block {
  background-color: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--rad-md);
  padding: var(--sp-24);
  margin: var(--sp-24) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-primary);
}

.stat-label {
  color: var(--c-text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: var(--sp-24);
  border: 1px solid var(--c-border);
  border-radius: var(--rad-sm);
}

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

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

th {
  background-color: #F4F7F9;
  font-weight: 600;
}

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

.site-footer {
  background-color: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: var(--sp-64) 0 var(--sp-24) 0;
  margin-top: var(--sp-64);
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

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

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

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

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

.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-24);
  color: var(--c-text-muted);
  font-size: 0.875rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.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 var(--c-border);
  border-radius: var(--rad-sm);
  font-family: inherit;
  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-primary);
  box-shadow: 0 0 0 3px rgba(55, 90, 127, 0.1);
}

.form-control.is-invalid {
  border-color: #D63031;
}

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

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

.success-message {
  display: none;
  background-color: #E3FCEF;
  color: #006644;
  padding: var(--sp-16);
  border-radius: var(--rad-sm);
  margin-bottom: var(--sp-24);
  border: 1px solid #006644;
}

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

.static-map {
  width: 100%;
  height: 300px;
  background-color: #E2E8F0;
  border-radius: var(--rad-md);
  margin-bottom: var(--sp-24);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
}

.static-map svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-8);
  fill: var(--c-primary);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--c-surface);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.05);
  padding: var(--sp-16);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

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

.cookie-content {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

.cookie-text {
  font-size: 0.875rem;
}

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

@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cookie-text {
    flex: 1;
    margin-right: var(--sp-24);
  }
}

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