* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2937;
  background: #f7f8fb;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1220px, 94vw); margin: 0 auto; }

.site-header {
  background: #fff;
  border-bottom: 1px solid #e8ebf0;
}
.topbar {
  min-height: 72px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  align-items: center;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #205aa7;
  white-space: nowrap;
}
.logo-mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  background: #205aa7;
}
.nav {
  display: flex;
  gap: 16px;
  color: #4b5563;
  font-weight: 700;
}
.nav a.active,
.nav a:hover { color: #205aa7; }

.hero-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  align-items: start;
}
.hero-main, .hero-side article, .card {
  background: #fff;
  border: 1px solid #e8ebf0;
}
.hero-main img, .hero-side img, .thumb {
  width: 100%;
  display: block;
  object-fit: cover;
}
.hero-main img, .hero-side img { height: 220px; }
.thumb { height: 186px; }

.hero-main .body, .hero-side .body, .card .body { padding: 10px; }
.hero-main { align-self: start; }
.hero-main h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.2;
}
.hero-main-fill {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 10px 10px;
}
.hero-fill-item {
  border: 1px solid #e8ebf0;
  background: #fff;
}
.hero-fill-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}
.hero-fill-item h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.3;
}
.hero-side h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.3; }

.meta {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.45;
}
.summary {
  margin: 7px 0 0;
  color: #374151;
  font-size: 14px;
  line-height: 1.55;
}

.top-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.block { margin-top: 20px; }
.block h2 {
  margin: 0 0 10px;
  padding-left: 8px;
  border-left: 4px solid #205aa7;
  font-size: 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.all-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.article-layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}
.article-main, .article-side {
  background: #fff;
  border: 1px solid #e8ebf0;
}
.article-main { padding: 16px; }
.article-title {
  margin: 0 0 8px;
  font-size: 42px;
  line-height: 1.15;
}
.article-cover {
  margin: 12px 0;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}
.article-content p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.85;
}
.article-side { padding: 12px; }
.article-side h3 { margin: 0 0 10px; font-size: 24px; }
.mini-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.mini-item img {
  width: 92px;
  height: 68px;
  object-fit: cover;
}
.mini-item p {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr; padding: 12px 0; }
  .hero-grid, .hero-main-fill, .top-grid, .card-grid, .all-grid, .article-layout { grid-template-columns: 1fr; }
}

.site-footer {
  margin-top: 26px;
  background: #fff;
  border-top: 1px solid #e8ebf0;
}
.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: 860px;
}
.footer-links {
  display: flex;
  gap: 14px;
  font-weight: 800;
  color: #374151;
  white-space: nowrap;
}
.footer-links a:hover { color: #205aa7; }

.simple-page {
  margin: 18px auto 50px;
  background: #fff;
  border: 1px solid #e8ebf0;
  padding: 16px;
}
.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: #1f2937; line-height: 1.85; 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: #205aa7;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}
.simple-page button:hover { filter: brightness(0.95); }
