* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f5f7;
  color: #111;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  gap: 22px;
  font-weight: 700;
  color: #555;
}

.nav a.active,
.nav a:hover {
  color: #0f62fe;
}

.hero-grid {
  margin-top: 20px;
  display: grid;
  gap: 16px;
  grid-template-columns: 2fr 1fr;
}

.hero-main,
.hero-side article,
.story-card {
  background: #fff;
  border: 1px solid #e7e8eb;
}

.hero-main {
  min-height: 430px;
  display: flex;
  flex-direction: column;
}

.hero-side {
  display: grid;
  gap: 16px;
}

.hero-cover {
  width: 100%;
  height: 330px;
  object-fit: cover;
  display: block;
}

.hero-content {
  padding: 14px 16px 16px;
}

.hero-content h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.15;
}

.hero-content p {
  margin: 0;
  color: #50545b;
  line-height: 1.55;
}

.side-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 150px;
}

.side-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.side-info {
  padding: 10px 12px;
}

.side-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.meta {
  color: #6b7280;
  font-size: 13px;
}

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

.section-head h2 {
  margin: 0;
  font-size: 24px;
}

.section-head p {
  margin: 0;
  color: #5f6368;
}

.news-grid {
  margin: 14px 0 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.story-card {
  display: flex;
  flex-direction: column;
}

.thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.story-body {
  padding: 12px;
}

.story-body h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
}

.summary {
  margin: 8px 0 0;
  color: #464b52;
  line-height: 1.5;
  font-size: 14px;
}

.article-shell {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
}

.article-main,
.article-side {
  background: #fff;
  border: 1px solid #e7e8eb;
}

.article-main {
  padding: 18px;
}

.article-title {
  margin: 0 0 8px;
  font-size: 40px;
  line-height: 1.1;
}

.article-cover {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #111;
  margin: 16px 0;
}

.article-text {
  font-size: 18px;
  line-height: 1.8;
  color: #2b2f34;
}

.article-side {
  padding: 14px;
}

.article-side h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.related-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.related-item img {
  width: 86px;
  height: 112px;
  object-fit: cover;
}

@media (max-width: 980px) {
  .hero-grid,
  .article-shell {
    grid-template-columns: 1fr;
  }
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 24px;
  }
  .article-title {
    font-size: 30px;
  }
}

.site-footer {
  margin-top: 28px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}
.footer-row {
  padding: 16px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.footer-note {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
  max-width: 820px;
}
.footer-links {
  display: flex;
  gap: 14px;
  font-weight: 800;
  color: #374151;
  white-space: nowrap;
}
.footer-links a:hover { color: #0f62fe; }

.simple-page {
  margin: 22px auto 50px;
  background: #fff;
  border: 1px solid #e7e8eb;
  padding: 18px;
}
.simple-page h1 { margin: 0 0 10px; font-size: 34px; line-height: 1.15; }
.simple-page h2 { margin: 18px 0 8px; font-size: 18px; }
.simple-page p, .simple-page li { color: #2b2f34; line-height: 1.8; font-size: 15px; }
.simple-page .muted { color: #6b7280; font-size: 13px; }
.simple-page label { font-weight: 800; display: block; margin: 10px 0 6px; }
.simple-page input, .simple-page textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
.simple-page textarea { min-height: 120px; resize: vertical; }
.simple-page button {
  margin-top: 12px;
  background: #0f62fe;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}
.simple-page button:hover { filter: brightness(0.95); }

@media (max-width: 980px) {
  .footer-row { flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
}
