* {
  box-sizing: border-box;
}

:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #101828;
  --muted: #4a5565;
  --line: #e4e7f1;
  --accent: #3b82f6;
}

html,
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, #e9eefc, transparent 40%),
    radial-gradient(circle at 80% 60%, #eef7ff, transparent 35%),
    var(--bg);
}

body {
  min-height: 100vh;
  padding: 24px;
}

.page {
  width: min(880px, 100%);
  margin: 0 auto;
}

header {
  margin-bottom: 18px;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 8px;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 6px;
}

.subtext {
  margin: 0;
  color: var(--muted);
}

.hero-actions {
  margin-top: 14px;
}

.hero-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.22);
}

.hero-contact:hover {
  filter: brightness(0.95);
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

h2 {
  margin: 0;
}

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

.topic-section {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.topic-title {
  margin: 0 0 10px;
}

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

.news-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.news-item a {
  color: #111827;
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.news-item a:hover {
  color: var(--accent);
}

.news-item a.disabled {
  color: var(--muted);
  pointer-events: none;
  text-decoration: none;
  cursor: default;
}

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

.error {
  color: #9f1239;
  text-align: center;
  margin: 12px 0 0;
}

.contact-panel {
  display: grid;
  gap: 12px;
}

.contact-panel p {
  margin: 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: var(--card);
}

.button-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.button-link.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button-link.primary:hover {
  filter: brightness(0.95);
  color: #fff;
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  body {
    padding: 14px;
  }

  .header-row {
    flex-direction: column;
  }

  .section-head {
    flex-direction: column;
  }
}
