:root {
  --brown: #5a3416;
  --brown-strong: #3d220d;
  --brown-soft: #9a5b24;
  --gold: #f4a21d;
  --cream: #ece7e0;
  --card: #ffffff;
  --soft: #f7f1ea;
  --line: #e8ded0;
  --text: #2b2118;
  --muted: #6c5c4d;
  --shadow: rgba(36, 23, 13, 0.18);
  --heading: #5a3416;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --cream: #17120d;
    --card: #241c14;
    --soft: #2c2319;
    --line: #3d3126;
    --text: #f4ebdf;
    --muted: #d5c3ad;
    --heading: #f7b94f;
    --brown: #9a5b24;
    --brown-strong: #5a3416;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Segoe UI", "Segoe UI Variable", "Arial", sans-serif;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.site-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brown-soft) 0%, var(--brown) 72%);
  color: #fff;
  border-radius: 30px 30px 24px 24px;
  padding: 18px 26px 0;
  box-shadow: 0 18px 45px var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.hero::before {
  width: 300px;
  height: 300px;
  left: -110px;
  top: -120px;
}

.hero::after {
  width: 240px;
  height: 240px;
  right: -80px;
  bottom: 10px;
}

.topbar,
.hero-body,
.page,
.site-footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0 18px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255,255,255,0.15);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  transition: color 0.2s ease;
}

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

.hero-body {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px) 1fr;
  gap: 8px;
  align-items: end;
  min-height: 440px;
}

.hero-figure {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-bottom: 28px;
}

.hero-figure svg {
  display: block;
  width: min(220px, 100%);
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(0,0,0,0.18));
}

.hero-visual {
  display: block;
  width: min(220px, 100%);
  height: 250px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 32px rgba(14, 8, 4, 0.22);
  background: rgba(255,255,255,0.08);
}

.mini-card {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: min(200px, 78%);
  background: rgba(255,255,255,0.9);
  color: var(--text);
  border-radius: 16px;
  padding: 10px 12px;
  box-shadow: 0 12px 26px rgba(25,13,4,0.15);
}

.mini-card strong {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.mini-card span {
  font-size: 0.7rem;
  color: var(--muted);
}

.mini-card--light {
  background: rgba(255,255,255,0.94);
}

.hero-copy {
  text-align: center;
  padding: 42px 8px 28px;
}

.eyebrow,
.kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255,255,255,0.82);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.1vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #fff;
}

.lead {
  margin: 18px auto 0;
  max-width: 540px;
  font-size: 0.98rem;
  color: rgba(255,255,255,0.88);
}

.search-form {
  display: flex;
  align-items: center;
  max-width: 520px;
  margin: 26px auto 0;
  background: rgba(255,255,255,0.98);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 14px 28px rgba(10, 6, 4, 0.18);
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 8px 12px 0;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.search-form input:focus {
  outline: none;
}

.search-form button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #d68f0d);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
}

.helper {
  margin-top: 12px;
  color: rgba(255,255,255,0.8);
  font-size: 0.75rem;
}

.page {
  background: var(--card);
  border-radius: 0 0 24px 24px;
  padding: 0 30px 30px;
  margin-top: 0;
  box-shadow: 0 18px 40px rgba(31, 19, 10, 0.08);
}

.info-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: 36px 6px 8px;
}

.about-block,
.agenda-box,
.table-wrap,
.news-card,
.gallery-item,
.node {
  background: var(--card);
}

.about-block {
  padding: 4px 8px 0 0;
}

.about-block h2,
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
  color: var(--heading);
}

.about-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 72ch;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 26px;
}

.stats div {
  min-width: 150px;
  padding: 18px 16px;
  border-radius: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.stats strong {
  display: block;
  font-size: 1.9rem;
  color: var(--brown-soft);
  line-height: 1;
  margin-bottom: 6px;
}

.stats span {
  color: var(--muted);
  font-size: 0.8rem;
}

.agenda-box {
  padding: 22px 20px;
  border-radius: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.agenda-box h3 {
  margin: 0 0 16px;
  color: var(--heading);
  font-size: 1.1rem;
}

.agenda-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.agenda-box li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.date-box {
  min-width: 52px;
  padding: 8px 6px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
}

.date-box strong {
  display: block;
  color: var(--brown-soft);
  font-size: 1.1rem;
  line-height: 1.1;
}

.date-box span {
  font-size: 0.66rem;
  color: var(--muted);
}

.agenda-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.agenda-copy b {
  font-size: 0.9rem;
  color: var(--text);
}

.agenda-copy small {
  color: var(--muted);
  font-size: 0.76rem;
}

.section {
  padding-top: 40px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head .kicker {
  color: var(--brown-soft);
}

.section-head h2 {
  color: var(--heading);
  margin: 0;
}

.org-tree {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

.org-level {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 0;
}

.node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: min(100%, 220px);
  min-width: 180px;
  max-width: 220px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 22px rgba(47, 31, 17, 0.06);
}

.node img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 4px;
  border: 2px solid rgba(154, 91, 36, 0.22);
}

.node strong {
  font-size: 0.82rem;
  color: var(--brown-soft);
  text-align: center;
}

.node span {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.node--primary {
  background: linear-gradient(180deg, var(--brown) 0%, #4e2f14 100%);
  border-color: var(--brown-strong);
  color: #fff;
}

.node--primary strong,
.node--primary span {
  color: #fff;
}

.node--dash {
  border-style: dashed;
}

.table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}

.table-wrap th {
  background: var(--soft);
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.empty-state,
.empty-line {
  padding: 20px 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.news-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: var(--card);
  box-shadow: 0 10px 24px rgba(29, 19, 11, 0.04);
}

.news-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.news-card time {
  display: block;
  font-size: 0.72rem;
  color: var(--brown-soft);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.news-card h3 {
  margin: 8px 0 8px;
  font-size: 1.04rem;
  line-height: 1.4;
}

.news-card h3 a {
  text-decoration: none;
  color: var(--heading);
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  min-height: 190px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 12px 20px rgba(19, 10, 4, 0.12);
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.45) 100%);
}

.gallery-item span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

.site-footer {
  text-align: center;
  padding: 32px 4px 6px;
  color: var(--muted);
}

.footer-brand {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 8px;
}

.footer-meta {
  display: flex;
  justify-content: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.site-footer p {
  margin: 12px 0 0;
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .hero-body {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 18px;
  }

  .hero-figure {
    display: none;
  }

  .info-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 16px 12px 28px;
  }

  .hero {
    padding-left: 14px;
    padding-right: 14px;
    border-radius: 22px 22px 16px 16px;
  }

  .topbar {
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
    gap: 10px 14px;
  }

  .page {
    padding: 0 18px 18px;
  }

  .hero-copy {
    padding-top: 20px;
  }

  .search-form {
    margin-top: 18px;
  }

  .table-wrap {
    overflow-x: auto;
  }

  .stats {
    flex-direction: column;
  }
}

