:root {
  --bg: #f5f8f7;
  --bg-soft: #edf4f2;
  --surface: #ffffff;
  --text: #162624;
  --muted: #516866;
  --line: #d7e4e1;
  --primary: #1d7f72;
  --primary-dark: #166559;
  --primary-light: #e8f4f2;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(11, 34, 31, 0.08);
  --header-height: 72px;
  --container: 1120px;
  --site-gutter: 1.5rem;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--primary-dark);
  text-decoration: none;
}

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

h1, h2, h3 {
  margin: 0 0 0.8rem;
  line-height: 1.2;
  color: #102220;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 700;
}

h3 {
  font-size: 1.08rem;
  font-weight: 700;
}

p {
  margin: 0 0 0.9rem;
}

.container {
  width: min(var(--container), calc(100% - 2 * var(--site-gutter)));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 0.6rem 0.9rem;
  z-index: 9999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-inline: max(var(--site-gutter), env(safe-area-inset-left, 0px)) max(var(--site-gutter), env(safe-area-inset-right, 0px));
}

.header-inner {
  max-width: var(--container);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand span {
  white-space: nowrap;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.nav-desktop a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 9px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.nav-desktop a:hover {
  background: var(--bg-soft);
  color: var(--primary-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 0.2rem;
}

.lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: all var(--transition);
}

.lang-switcher a:hover {
  color: var(--text);
}

.lang-switcher a.active {
  background: var(--primary);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 10px;
  padding: 0.65rem 1.1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

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

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

.header-cta {
  display: inline-flex;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  touch-action: manipulation;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--surface);
  padding: 1.25rem max(var(--site-gutter), env(safe-area-inset-right, 0px)) max(1.5rem, env(safe-area-inset-bottom, 0px)) max(var(--site-gutter), env(safe-area-inset-left, 0px));
  overflow-y: auto;
  z-index: 1100;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s ease, visibility 0.28s ease;
  border-top: 1px solid var(--line);
}

.nav-mobile.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.nav-mobile a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.nav-mobile a:hover {
  color: var(--primary-dark);
}

.mobile-nav-footer {
  margin-top: auto;
  padding-top: 1.25rem;
}

.mobile-nav-footer .btn-primary {
  width: 100%;
  padding: 0.9rem;
}

/* ─── Hero ─── */
.hero {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-content p {
  color: var(--muted);
  max-width: 58ch;
  font-size: 1.05rem;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.35rem;
}

/* ─── Sections ─── */
.section {
  padding: 3.5rem 0;
}

.section-light {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.section-intro {
  color: var(--muted);
  max-width: 72ch;
  margin-bottom: 1.35rem;
  font-size: 1.02rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.25rem;
  align-items: stretch;
}

.split-reverse {
  grid-template-columns: 1.15fr 1fr;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

.panel h3 {
  margin-bottom: 0.55rem;
}

.panel p:last-child {
  margin-bottom: 0;
}

.media-panel {
  padding: 0;
  overflow: hidden;
}

.media-panel img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.text-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project a,
.text-link {
  display: inline-block;
  margin-top: 0.65rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.wide-media {
  margin-top: 1.15rem;
}

.wide-media img {
  min-height: 220px;
  max-height: 420px;
  object-fit: cover;
}

/* ─── Contact ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.contact-panel p {
  margin: 0;
}

.contact-panel strong {
  display: inline-block;
  min-width: 5.5rem;
}

.contact-panel a {
  word-break: break-word;
}

/* ─── Footer ─── */
.site-footer {
  background: #112422;
  color: #c8dbd8;
  padding: 2rem 0 1.25rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: #c8dbd8;
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: #fff;
}

/* ─── Responsive ─── */
@media (min-width: 1280px) {
  :root {
    --site-gutter: 2rem;
  }
}

@media (max-width: 900px) {
  .hero-inner,
  .split,
  .split-reverse,
  .contact-layout,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-panel img {
    max-height: 400px;
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  :root {
    --site-gutter: 1.25rem;
    --header-height: 68px;
  }

  .nav-desktop,
  .header-cta {
    display: none !important;
  }

  .menu-toggle {
    display: flex;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand span {
    font-size: 0.92rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .section {
    padding: 2.75rem 0;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --site-gutter: 1.125rem;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
    text-align: center;
  }
}
