:root {
  --bg: #eceff3;
  --ink: #1c1f24;
  --muted: #5e6670;
  --paper: #fff;
  --line: #e3e6eb;
  --accent: #d23b2f;
  --link: #1d4f91;
  --header: #16191d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}
a { color: var(--link); }
img { max-width: 100%; height: auto; display: block; }
.mast {
  background: var(--paper);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 2;
}
.mast-inner, .frame, .foot-inner {
  width: min(1180px, calc(100% - 28px));
  margin-inline: auto;
}
.mast-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}
.brand { display: block; line-height: 0; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--accent); }
.frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 22px;
  align-items: start;
  padding: 22px 0 36px;
}
main {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 26px 34px;
  min-width: 0;
}
.side { display: grid; gap: 14px; }
.widget {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 16px 16px;
}
.widget h2 {
  margin: 0 0 10px;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--accent);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li + li { border-top: 1px solid var(--line); }
.widget li a {
  display: block;
  padding: 7px 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.widget li a:hover { color: var(--accent); }
.cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cloud li { border: 0; }
.cloud li a {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--line);
  background: #f7f8fa;
  font-size: 0.88rem;
}
h1, h2, h3 { line-height: 1.25; font-weight: 750; }
h1 { font-size: clamp(1.8rem, 3vw, 2.45rem); margin: 0.15em 0 0.45em; }
main > h2, .home-catalog > h2, .prose h2, .seo-content h2 {
  font-size: 1.28rem;
  margin: 1.45em 0 0.45em;
  padding: 8px 12px;
  border-left: 4px solid var(--accent);
  background: #f7f8fa;
}
.seo-content h3, .prose h3 { font-size: 1.05rem; margin: 1.1em 0 0.3em; }
.lede, .hero p, .seo-content p, .prose p { font-size: 1.02rem; }
.seo-content { max-width: none; }
.seo-content h1 { margin-top: 0.1em; }
.seo-content h2 { scroll-margin-top: 84px; }
.seo-content a, .prose a { font-weight: 650; }
.seo-content table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: 0.95rem; }
.seo-content th, .seo-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.seo-content th { background: #f7f8fa; }
.cover {
  width: 100%;
  border: 1px solid var(--line);
  margin: 8px 0 16px;
  background: #f3f4f6;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin: 16px 0 8px;
  padding: 0;
}
.facts div { border: 1px solid var(--line); background: #f7f8fa; padding: 10px 12px; }
.facts dt { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.facts dd { margin: 3px 0 0; font-weight: 750; }
.tags, .letters, .chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.tags a, .letters a, .chips a, .pager a {
  display: inline-block;
  background: #f7f8fa;
  border: 1px solid var(--line);
  padding: 5px 11px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
}
.letters a { min-width: 40px; text-align: center; }
.tags a:hover, .letters a:hover, .chips a:hover, .pager a:hover { border-color: var(--accent); color: var(--accent); }
.cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  align-items: start;
}
.cards > li { min-width: 0; }
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 8px;
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
}
.card:hover { border-color: #c5cad1; }
.card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 28%;
  min-height: 0;
}
.card span { display: grid; gap: 3px; padding: 0 10px 12px; }
.card small { color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; color: var(--muted); font-size: 0.86rem; }
.crumbs a { color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "»"; margin-left: 6px; }
.pager { display: flex; gap: 12px; align-items: center; margin: 20px 0; }
.home-catalog { margin: 8px 0 18px; }
.hero { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 16px; align-items: start; }
.stat {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 18px;
}
.stat strong { display: block; font-size: 2rem; }
.stat p { color: var(--muted); }
.foot {
  background: var(--paper);
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 34px;
}
.foot strong { color: var(--ink); }
.foot a { color: var(--ink); text-decoration: none; margin-right: 14px; font-weight: 650; }
.foot a:hover { color: var(--accent); }
.foot p { margin: 8px 0 0; max-width: 52ch; }
@media (max-width: 900px) {
  .frame { grid-template-columns: 1fr; }
  .mast-inner, .foot-inner { flex-direction: column; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
  .hero { grid-template-columns: 1fr; }
  main { padding: 16px; }
}
