:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-alt: #eaf0f8;
  --text: #142033;
  --muted: #4f607a;
  --primary: #173a70;
  --primary-strong: #102a50;
  --border: #d8e1ef;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(19, 34, 58, 0.08);
}

* {
  box-sizing: border-box;
}

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

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

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

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  font-weight: 600;
}

.hero {
  padding: 5rem 0 3rem;
  background: linear-gradient(180deg, #ffffff 0%, #eef3fb 100%);
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  margin: 0.4rem 0 0.7rem;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  line-height: 1.15;
}


.hero-banner {
  display: block;
  margin: auto;
  width: auto;
  max-width: 100%;
  max-height: 300px;
  margin-top: 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.article-main {
  margin-top: 1.2rem;
}

.kicker {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  font-size: 0.82rem;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-weight: 600;
}

.btn:hover {
  background: var(--primary-strong);
}

.section {
  padding: 2.7rem 0;
}

.section.alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

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

.card h3 {
  margin: 0.35rem 0 0.6rem;
  font-size: 1.08rem;
}

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

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

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.2rem;
}

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

.page-header {
  padding: 3rem 0 1rem;
}

.article-list,
.article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.article + .article {
  margin-top: 1rem;
}

.article-list-item {
  border-bottom: 1px dashed var(--border);
  padding-bottom: 0.9rem;
}

.article-list-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.article-list-item h2 {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.article-title-link {
  color: var(--primary);
  text-decoration: none;
  text-underline-offset: 0.2em;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.article-title-link:hover,
.article-title-link:focus-visible {
  color: var(--primary-strong);
  text-decoration: underline;
}

.article h1 {
  margin-top: 0;
}

.article-img {
    display: block;
    margin: 1.5rem auto;
    width: auto;
    max-width: 100%;
    border-radius: var(--radius);
}
.site-footer {
  background: #0e1b31;
  color: #d5dcec;
  margin-top: 2rem;
}

.footer-content {
  padding: 1rem 0;
  display: grid;
  gap: 0.4rem;
}

.parody {
  margin: 0;
  color: #ffffff;
  font-weight: 600;
}

@media (max-width: 860px) {
  .cards,
  .split {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 0.8rem;
  }

  .site-nav.open {
    display: flex;
  }

  .header-content {
    flex-wrap: wrap;
  }
}
