:root {
  --color-berry: #5b2a5e;
  --color-berry-dark: #3a1a3d;
  --color-leaf: #3f7d4a;
  --color-bg: #faf7f8;
  --color-bg-alt: #f1e9ee;
  --color-text: #2b2129;
  --color-muted: #6b5c65;
  --color-border: #e2d5da;
  --max-width: 1120px;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(59, 26, 61, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a {
  color: var(--color-berry);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 248, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-berry-dark);
  text-decoration: none;
  margin-right: auto;
}

.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--color-berry);
}

.lang-switch {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-muted);
}

.lang-btn.active {
  background: var(--color-berry);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58, 26, 61, 0.75), rgba(58, 26, 61, 0.55) 60%, rgba(58, 26, 61, 0.85));
}

.hero-content {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0 0 12px;
}

.hero-title {
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  margin: 0 0 16px;
  font-weight: 700;
}

.hero-acronym {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  color: #f6d9df;
}

.hero-url {
  margin: 4px 0 20px;
  opacity: 0.85;
}

.hero-logo {
  margin: 0 auto;
  max-height: 70px;
  width: auto;
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section.alt {
  background: var(--color-bg-alt);
}

.section h2 {
  color: var(--color-berry-dark);
  font-size: 1.8rem;
  margin: 0 0 24px;
}

#about .container {
  text-align: center;
}

.about-text {
  max-width: 850px;
  margin: 0 auto;
  color: var(--color-text);
}

.about-facts {
  list-style: none;
  padding: 0;
  margin: 24px auto 0;
  max-width: 850px;
  display: grid;
  justify-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-berry-dark);
}

/* Team */
.team-leader {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 40px;
  max-width: 700px;
}

.team-leader-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin: 0 0 8px;
  font-weight: 700;
}

.team-member-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.team-member-name a {
  text-decoration: none;
}

.team-institution-lines {
  color: var(--color-muted);
  margin: 0;
  white-space: pre-line;
}

.team-institutions {
  display: grid;
  gap: 32px;
}

.team-institution {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.team-institution-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.team-institution-header img {
  max-height: 48px;
  width: auto;
}

.team-institution-name {
  font-weight: 700;
  color: var(--color-berry-dark);
}

.team-member-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.team-member-list li a {
  text-decoration: none;
}

.team-member-list li a:hover {
  text-decoration: underline;
}

/* News */
.news-list {
  display: grid;
  gap: 28px;
}

.news-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.news-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item-body {
  padding: 20px 20px 20px 0;
}

.news-item-body p {
  margin: 0 0 10px;
}

.news-item-body p:last-child {
  margin-bottom: 0;
}

/* Dissemination */
.dissemination-group {
  margin-bottom: 36px;
}

.dissemination-group h3 {
  color: var(--color-berry);
  font-size: 1.15rem;
  margin: 0 0 14px;
}

.citation-list {
  padding-left: 22px;
  display: grid;
  gap: 10px;
  color: var(--color-text);
}

.citation-list li {
  padding-left: 4px;
}

.citation-list a {
  font-size: 0.85rem;
  margin-left: 6px;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  background: var(--color-berry-dark);
  color: #f0e3e8;
  padding: 28px 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 2px 0;
}

/* Responsive */
@media (max-width: 860px) {
  .news-item {
    grid-template-columns: 1fr;
  }
  .news-item img {
    height: 200px;
  }
  .news-item-body {
    padding: 0 20px 20px;
  }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px 20px;
    display: none;
    gap: 12px;
  }
  .main-nav.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
}
