:root {
  --bg: #0e0d0b;
  --surface: #171512;
  --surface-2: #211d17;
  --text: #f2eee7;
  --muted: #b7afa3;
  --gold: #e8c97a;
  --line: rgba(232, 201, 122, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 85% 0, rgba(232, 201, 122, .12), transparent 25rem), var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(5vw, 22px);
  background: rgba(14, 13, 11, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 700;
}

.brand span {
  margin-left: 2px;
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.site-header nav a:hover { color: var(--text); }
.header-cta,
.button.primary {
  background: var(--gold) !important;
  color: #1b160d !important;
  border-color: var(--gold) !important;
}

.header-cta {
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.catalog,
.article-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 88px;
}

.breadcrumbs {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 26px;
}

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

.catalog-hero {
  max-width: 820px;
  padding: 40px 0 54px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.catalog h1,
.article-page h1 {
  font-family: Georgia, serif;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -.04em;
  margin: 0 0 20px;
  overflow-wrap: anywhere;
}

.catalog-hero > p:not(.kicker) {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.catalog-group { margin-top: 48px; }
.catalog-group h2 {
  font-family: Georgia, serif;
  font-size: 30px;
}

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

.article-card {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
}

.article-card h2 {
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1.15;
  margin: 0 0 12px;
}

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

.article-card p:not(.kicker) {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 17px;
}

.text-link {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.article-page {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 290px);
  grid-template-areas:
    "crumbs crumbs"
    "article related";
  gap: 28px 54px;
}

.article-page > .breadcrumbs {
  grid-area: crumbs;
  margin-bottom: 0;
}

.article-page > article {
  grid-area: article;
  min-width: 0;
}

.article-lead {
  font-family: Georgia, serif;
  color: #ddd3c4;
  font-size: 25px;
  line-height: 1.4;
  margin: 0 0 46px;
}

.article-page section { margin: 0 0 40px; }
.article-page h2 {
  font-family: Georgia, serif;
  font-size: 31px;
  line-height: 1.16;
  margin: 0 0 14px;
}

.article-page p { color: #d8d0c4; }
.notice {
  padding: 20px 22px;
  border-left: 3px solid var(--gold);
  background: rgba(232, 201, 122, .07);
  color: var(--muted);
}

.contact-box {
  margin-top: 48px !important;
  padding: 30px;
  border: 1px solid rgba(232, 201, 122, .48);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(232, 201, 122, .16), rgba(255, 255, 255, .03));
}

.contact-box h2 { margin-bottom: 8px; }
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.related {
  grid-area: related;
  align-self: start;
  position: sticky;
  top: 90px;
}

.related .article-card {
  margin-bottom: 12px;
  padding: 17px;
}

.related .article-card h2 { font-size: 18px; }
.related .article-card p:not(.kicker) { display: none; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 44px max(5vw, 22px);
  border-top: 1px solid var(--line);
  background: #0a0908;
  color: var(--muted);
}

footer p {
  max-width: 370px;
  margin: 8px 0 0;
}

footer div:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

footer a {
  color: var(--gold);
  text-decoration: none;
}

@media (max-width: 900px) {
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-page {
    grid-template-columns: 1fr;
    grid-template-areas:
      "crumbs"
      "article"
      "related";
  }
  .related { position: static; }
  .related .article-card { display: none; }
  .related .article-card:first-of-type { display: block; }
}

@media (max-width: 680px) {
  .site-header { align-items: flex-start; }
  .site-header nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
  }
  .site-header nav a:not(.header-cta) { display: none; }
  .catalog,
  .article-page { padding: 32px 18px 64px; }
  .article-grid { grid-template-columns: 1fr; }
  .catalog-hero { padding: 24px 0 32px; }
  .article-lead { font-size: 22px; }
  .article-page h2 { font-size: 27px; }
  footer { flex-direction: column; }
}
