:root {
  --primary: #8b0000;
  --primary-dark: #5c0000;
  --accent: #f1c40f;
  --text: #222;
  --muted: #666;
  --bg: #f5f6f8;
  --white: #fff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(139, 0, 0, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
}

.brand-text h1,
.brand-text p {
  margin: 0;
}

.brand-text h1 {
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.nav-links a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hero {
  color: var(--white);
  background: linear-gradient(135deg, rgba(92, 0, 0, 0.95), rgba(0, 0, 0, 0.88)), url('met-logo.png') center/220px no-repeat;
  padding: 88px 0 80px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hero h2,
.page-hero h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.15;
}

.hero p,
.page-hero p {
  margin: 0 0 18px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
}

.hero-card,
.info-card,
.table-wrap,
.card,
.timeline,
.highlight-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  color: var(--text);
  padding: 24px;
}

.hero-card h3 { margin-top: 0; color: var(--primary); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #1f1f1f;
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
}

.section {
  padding: 64px 0;
}

.section-title {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 2rem;
  text-align: center;
}

.section-subtitle {
  max-width: 850px;
  margin: 0 auto 34px;
  color: var(--muted);
  text-align: center;
}

.grid {
  display: grid;
  gap: 24px;
}

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

.card {
  padding: 24px;
  border-top: 5px solid var(--primary);
}

.card h3 {
  margin-top: 0;
  color: var(--primary);
}

.card p:last-child,
.card li:last-child { margin-bottom: 0; }

.meta-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meta-list li {
  padding: 14px 16px;
  background: #faf7f7;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
}

.meta-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline {
  overflow: hidden;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid #eee;
}

.timeline-item:last-child { border-bottom: 0; }
.timeline-date { font-weight: 700; color: var(--primary); }

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: var(--white);
}

th, td {
  padding: 14px 16px;
  border-bottom: 1px solid #ececec;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--primary);
  color: var(--white);
}

tr:hover td { background: #fcf7f7; }

.page-hero {
  padding: 72px 0;
  background: linear-gradient(135deg, rgba(139,0,0,0.95), rgba(0,0,0,0.88));
  color: var(--white);
  text-align: center;
}

.page-hero p {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.content-box {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

ol, ul { padding-left: 20px; }

.site-footer {
  background: #111;
  color: rgba(255,255,255,0.88);
  padding: 24px 0;
  text-align: center;
  margin-top: 30px;
}

.contact-card a { color: var(--primary); font-weight: 600; }

.note {
  background: #fff8db;
  border-left: 4px solid var(--accent);
  padding: 16px 18px;
  border-radius: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 60px;
  width: auto;
}

.brand-text h1 {
  margin: 0;
  font-size: 18px;
}

.brand-text p {
  margin: 0;
  font-size: 12px;
}

@media (max-width: 980px) {
  .hero .container,
  .grid-2,
  .grid-3,
  .grid-4,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .brand {
    align-items: flex-start;
  }

  .brand img {
    width: 54px;
    height: 54px;
  }

  .hero, .page-hero {
    padding: 56px 0;
  }

  .section {
    padding: 48px 0;
  }
}
