:root {
  --bg: #efede7;
  --bg-deep: #e1ddd3;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --text: #2f342a;
  --text-muted: rgba(47, 52, 42, 0.78);
  --brand: #6f775f;
  --brand-strong: #5b634d;
  --line: rgba(95, 103, 83, 0.24);
  --shadow: 0 20px 52px rgba(66, 74, 54, 0.14);
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --max: 980px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100svh;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 10%, #ffffff 0, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at 92% 0%, rgba(142, 154, 121, 0.2) 0, rgba(142, 154, 121, 0) 35%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-deep) 100%);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100%;
  z-index: 20;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: var(--surface-solid);
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
}

.skip-link:focus {
  top: 0.75rem;
}

.site-shell {
  width: min(calc(100% - 2rem), var(--max));
  margin: 1rem auto 2rem;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0.6rem;
  z-index: 14;
  border: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(250, 248, 242, 0.82)),
    linear-gradient(115deg, rgba(111, 119, 95, 0.08), rgba(111, 119, 95, 0));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  padding: clamp(0.55rem, 1.5vw, 0.8rem) clamp(0.75rem, 2.1vw, 1rem);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-row {
  display: flex;
  gap: clamp(0.4rem, 1.2vw, 0.85rem);
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.1rem;
  flex: 0 0 auto;
}

.logo-mark {
  width: clamp(48px, 7vw, 64px);
  height: auto;
  display: block;
}

.brand-title {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: clamp(0.98rem, 1.85vw, 1.2rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--brand-strong);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.32rem;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
}

.site-nav a {
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--text);
  padding: 0.34rem 0.62rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  background: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  transition:
    background-color 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: rgba(95, 103, 83, 0.35);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.site-nav a[aria-current="page"] {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(91, 99, 77, 0.32);
}

.lang-switch {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text);
  padding: 0.35rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 2rem;
  min-width: 2.2rem;
  flex: 0 0 auto;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.lang-switch:hover,
.lang-switch:focus-visible {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(95, 103, 83, 0.35);
  transform: translateY(-1px);
}

.lang-switch .flag {
  font-size: 1rem;
  line-height: 1;
}

.site-nav a:focus-visible,
.lang-switch:focus-visible {
  outline: 2px solid rgba(91, 99, 77, 0.7);
  outline-offset: 2px;
}

.main-content {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--surface), rgba(248, 246, 240, 0.72));
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.6vw, 1.5rem);
}

.hero {
  display: grid;
  gap: 0.9rem;
}

.badge {
  margin: 0;
  width: fit-content;
  padding: 0.4rem 0.72rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(111, 119, 95, 0.32);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: rgba(47, 52, 42, 0.82);
  background: rgba(255, 255, 255, 0.8);
}

h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  margin: 0;
  line-height: 1.2;
  color: var(--brand-strong);
}

h1 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
}

h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
}

h3 {
  font-size: 1.08rem;
}

p {
  margin: 0;
}

.lead {
  color: var(--text-muted);
  max-width: 64ch;
}

.contact-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.cards-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.78);
  display: grid;
  gap: 0.5rem;
}

.compare-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.bullet-list {
  margin: 0;
  padding-left: 1.1rem;
}

.bullet-list li {
  margin: 0.25rem 0;
}

.section-stack {
  display: grid;
  gap: 0.8rem;
}

.section-stack h2,
.section-stack h3 {
  margin-top: 0.25rem;
}

.timeline-list {
  display: grid;
  gap: 0.55rem;
}

.timeline-item {
  border-left: 3px solid rgba(95, 103, 83, 0.35);
  padding-left: 0.75rem;
}

.language-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.75);
}

.kicker {
  margin: 0 0 0.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: rgba(47, 52, 42, 0.66);
}

a {
  color: var(--brand-strong);
}

.action-row {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
  padding: 0.5rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.button-link.primary {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.map-embed {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.6rem;
}

.map-consent-box {
  border: 1px solid rgba(111, 119, 95, 0.3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  padding: 0.85rem 0.95rem;
  display: grid;
  gap: 0.5rem;
}

.map-consent-box h3 {
  margin: 0;
}

.map-frame-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
  aspect-ratio: 16 / 9;
}

.map-frame {
  width: 100%;
  height: 100%;
  border: 0;
}

.note {
  color: rgba(47, 52, 42, 0.8);
  font-size: 0.92rem;
}

.legal-meta {
  display: grid;
  gap: 0.18rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-sections {
  display: grid;
  gap: 0.8rem;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  padding: 0.95rem 1rem;
  display: grid;
  gap: 0.4rem;
}

.legal-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.legal-card li {
  margin: 0.2rem 0;
}

.site-footer {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.9rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

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

.footer-links a {
  text-decoration: none;
  border-bottom: 1px solid rgba(95, 103, 83, 0.32);
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 1rem), var(--max));
    margin-top: 0.5rem;
  }

  .brand-link {
    justify-content: flex-start;
    text-align: left;
  }

  .site-footer {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 980px) {
  .header-row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .site-nav {
    order: 3;
    flex: 1 1 100%;
    border-radius: var(--radius-md);
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.38rem;
  }

  .lang-switch {
    margin-left: auto;
  }

  .site-header.is-mobile-scrolled .site-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-header.is-mobile-scrolled .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-header.is-mobile-scrolled .site-nav a[data-nav-key="salam"] {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-nav {
    justify-content: center;
  }

  .site-header.is-mobile-scrolled .site-nav a {
    font-size: 0.79rem;
    padding: 0.38rem 0.64rem;
  }

  .site-nav a {
    border-radius: var(--radius-pill);
    text-align: center;
    padding: 0.44rem 0.74rem;
  }

  .lang-switch {
    align-self: center;
  }
}
