*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: #F9F7F4;
  color: #222;
  line-height: 1.75;
  font-size: 16px;
}

/* ── HEADER ── */
.site-header {
  background: #F9F7F4;
  border-bottom: 2px solid #222;
  padding: 0 24px;
}
.header-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.site-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #222;
  text-decoration: none;
}
.site-title:hover { color: #C0392B; }

/* ── NAV ── */
nav { display: flex; gap: 24px; flex-wrap: wrap; }
nav a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  text-decoration: none;
  transition: color 0.15s;
}
nav a:hover { color: #222; }
nav a.active { color: #C0392B; border-bottom: 1px solid #C0392B; padding-bottom: 1px; }

/* ── CONTAINER ── */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid #DDD;
  margin-bottom: 0;
}
.page-header h1 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C0392B;
  font-weight: 700;
  margin: 36px 0 16px;
}

/* ── ARTICLES LIST ── */
.articles-list { list-style: none; }
.articles-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid #E8E5E0;
  gap: 16px;
}
.articles-list .info { flex: 1; min-width: 0; }
.articles-list a {
  color: #111;
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  display: block;
  margin-bottom: 3px;
}
.articles-list a:hover { color: #C0392B; }
.articles-list .source {
  font-size: 0.78rem;
  color: #999;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.articles-list .year {
  font-size: 0.75rem;
  color: #BBB;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── ARTICLE BODY ── */
.article-header {
  padding: 36px 0 32px;
  border-bottom: 2px solid #222;
  margin-bottom: 36px;
}
.article-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C0392B;
  font-weight: 700;
  margin-bottom: 14px;
}
.article-header h1 {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.article-meta {
  font-size: 0.8rem;
  color: #999;
  font-style: italic;
}
.article-body p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.4em;
  max-width: 65ch;
}
.article-body p:first-of-type::first-letter {
  font-size: 3.2em;
  float: left;
  line-height: 0.75;
  margin-right: 8px;
  margin-top: 8px;
  color: #C0392B;
  font-weight: 700;
}
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; }
.article-body td, .article-body th {
  padding: 8px 12px;
  border: 1px solid #DDD;
  font-size: 0.9rem;
  color: #333;
  vertical-align: top;
}
.article-body img { max-width: 100%; height: auto; margin: 12px 0; }

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: 0.78rem;
  color: #BBB;
  padding: 28px 0 0;
}
.breadcrumb a { color: #BBB; text-decoration: none; }
.breadcrumb a:hover { color: #888; }

/* ── ARTICLE FOOTER ── */
.article-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #DDD;
}
.back-link {
  font-size: 0.82rem;
  color: #888;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.back-link:hover { color: #222; }

/* ── HERO (главная) ── */
.hero {
  border-bottom: 1px solid #DDD;
  padding: 52px 0 44px;
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.hero-text { flex: 1; }
.hero-text h1 {
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-text p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
}
.hero-img { flex: 0 0 150px; }
.hero-img img {
  width: 150px;
  height: 170px;
  object-fit: cover;
  filter: grayscale(25%);
  display: block;
}

/* ── ALBUM GRID ── */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 36px 0 48px;
}
.album-item a { display: block; text-decoration: none; }
.album-item img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #F2EFE9;
  display: block;
  filter: grayscale(15%);
  transition: filter 0.2s, transform 0.2s;
}
.album-item a:hover img {
  filter: grayscale(0%);
  transform: scale(1.02);
}
.album-item .caption {
  font-size: 0.75rem;
  color: #888;
  margin-top: 6px;
  line-height: 1.4;
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}
.lightbox .lb-caption {
  color: #ddd;
  font-size: 0.85rem;
  text-align: center;
}
.lightbox .lb-close {
  position: fixed;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.7;
}
.lightbox .lb-close:hover { opacity: 1; }

/* ── SECTION BLOCK ── */
.section { padding: 44px 0; border-bottom: 1px solid #DDD; }
.section:last-child { border-bottom: none; }

/* ── PROSE (fio, gender) ── */
.prose h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 2em 0 0.6em;
  color: #111;
}
.prose p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.2em;
  max-width: 68ch;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 0.9rem;
}
.prose td, .prose th {
  padding: 8px 12px;
  border: 1px solid #DDD;
  color: #333;
  vertical-align: top;
}
.prose th { background: #F0EDE8; font-weight: 600; }
.prose img { max-width: 100%; height: auto; margin: 12px 0; }
.prose ul, .prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}
.prose li { margin-bottom: 0.4em; font-size: 1rem; color: #333; }

/* ── FOOTER ── */
.site-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  font-size: 0.75rem;
  color: #AAA;
  letter-spacing: 0.04em;
  border-top: 1px solid #E8E5E0;
  margin-top: 40px;
}
.site-footer a { color: #AAA; text-decoration: none; }
.site-footer a:hover { color: #888; }

@media (max-width: 600px) {
  .hero { flex-direction: column-reverse; gap: 24px; }
  .hero-img { flex: none; }
  .hero-img img { width: 100%; height: 200px; }
  .articles-list li { flex-direction: column; gap: 4px; }
  .articles-list .year { display: none; }
}