:root {
  --vestnik-ivory: #f9f5f0;
  --vestnik-ivory-deep: #f1ede8;
  --vestnik-paper: #fffdfa;
  --vestnik-navy: #1a2b3c;
  --vestnik-navy-soft: #43586e;
  --vestnik-gold: #c5a059;
  --vestnik-gold-deep: #8b6b23;
  --vestnik-ink: #333333;
  --vestnik-muted: #6c6a66;
  --vestnik-line: rgba(26, 43, 60, 0.12);
  --vestnik-shadow: 0 18px 48px rgba(26, 43, 60, 0.08);
  --pico-background-color: var(--vestnik-ivory);
  --pico-color: var(--vestnik-ink);
  --pico-primary: var(--vestnik-navy);
  --pico-primary-hover: var(--vestnik-gold-deep);
  --pico-primary-focus: rgba(197, 160, 89, 0.22);
  --pico-card-background-color: var(--vestnik-paper);
}

/* ДУХОВНЫЙ ВЕСТНИК */
/* МОСКОВСКИЙ ПАТРИАРХАТ • БЕЛОРУССКИЙ ЭКЗАРХАТ • БРЕСТСКАЯ ЕПАРХИЯ */

html {
  background:
    radial-gradient(circle at top center, rgba(197, 160, 89, 0.16), transparent 28rem),
    linear-gradient(180deg, #fffefa 0%, var(--vestnik-ivory) 100%);
}

body.vestnik-shell {
  background: transparent;
  color: var(--vestnik-ink);
  font-family: "Newsreader", serif;
  min-height: 100vh;
}

a {
  color: var(--vestnik-navy);
}

a:hover {
  color: var(--vestnik-gold-deep);
  text-decoration: none;
}

.vestnik-header {
  backdrop-filter: blur(18px);
  background: rgba(249, 245, 240, 0.9);
  border-bottom: 1px solid var(--vestnik-line);
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.vestnik-header__halo {
  background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.35), transparent);
  height: 2px;
}

.vestnik-header__inner,
.vestnik-main,
.vestnik-footer__inner {
  margin: 0 auto;
  max-width: 1180px;
  width: min(100% - 2rem, 1180px);
}

.vestnik-header__inner {
  padding: 1.2rem 0 1rem;
  text-align: center;
}

.vestnik-header__meta,
.vestnik-kicker,
.vestnik-panel__eyebrow,
.vestnik-footer__copy,
.vestnik-nav a,
.vestnik-ghostlink,
.vestnik-breadcrumbs,
.vestnik-note,
.vestnik-facts h2,
.vestnik-toc strong {
  font-family: "Work Sans", sans-serif;
}

.vestnik-header__meta {
  color: var(--vestnik-navy-soft);
  font-size: 0.66rem;
  letter-spacing: 0.25em;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
}

.vestnik-brand,
.vestnik-footer__brand {
  color: var(--vestnik-gold-deep);
  display: inline-block;
  font-family: "Noto Serif", serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.vestnik-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  justify-content: center;
}

.vestnik-nav a {
  border-bottom: 1px solid transparent;
  color: var(--vestnik-navy);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding-bottom: 0.35rem;
  text-transform: uppercase;
}

.vestnik-nav a.is-active,
.vestnik-nav a:hover {
  border-color: rgba(197, 160, 89, 0.8);
  color: var(--vestnik-gold-deep);
}

.vestnik-main {
  padding: 9rem 0 3rem;
}

.vestnik-home__hero,
.vestnik-hero {
  background: var(--vestnik-paper);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 1rem;
  box-shadow: var(--vestnik-shadow);
  overflow: hidden;
}

.vestnik-home__hero {
  margin-bottom: 2rem;
  min-height: 26rem;
  position: relative;
}

.vestnik-home__hero img,
.vestnik-hero img,
.vestnik-teaser__media img,
.vestnik-card img,
.vestnik-gallery-mosaic img,
.vestnik-gallery-preview img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.vestnik-home__overlay {
  align-items: center;
  background: linear-gradient(180deg, rgba(26, 43, 60, 0.18), rgba(26, 43, 60, 0.72));
  bottom: 0;
  color: #fff;
  display: flex;
  flex-direction: column;
  inset-inline: 0;
  justify-content: end;
  padding: 2rem;
  position: absolute;
  text-align: center;
  top: 0;
}

.vestnik-home__overlay h1,
.vestnik-article__header h1,
.vestnik-sectionhead h1 {
  color: inherit;
  font-family: "Noto Serif", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  margin-bottom: 0.8rem;
}

.vestnik-home__overlay p,
.vestnik-dek,
.vestnik-sectionhead p,
.vestnik-panel p,
.vestnik-card p,
.vestnik-teaser__body p {
  color: inherit;
  font-size: 1.06rem;
  line-height: 1.7;
}

.vestnik-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.95fr);
}

.vestnik-layout--article {
  align-items: start;
  grid-template-columns: minmax(0, 2.35fr) minmax(220px, 0.65fr);
}

.vestnik-stream,
.vestnik-archive,
.vestnik-article,
.vestnik-gallery-page {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(197, 160, 89, 0.16);
  border-radius: 1.25rem;
  box-shadow: var(--vestnik-shadow);
  padding: clamp(1.25rem, 2vw, 2rem);
}

.vestnik-teaser,
.vestnik-card,
.vestnik-panel,
.vestnik-note,
.vestnik-facts,
.vestnik-toc {
  background: var(--vestnik-paper);
  border: 1px solid rgba(26, 43, 60, 0.08);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(26, 43, 60, 0.06);
}

.vestnik-teaser {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(190px, 0.95fr) minmax(0, 1.15fr);
  margin-bottom: 1.2rem;
  overflow: hidden;
}

.vestnik-teaser--feature {
  grid-template-columns: 1fr;
}

.vestnik-teaser__media {
  min-height: 12rem;
}

.vestnik-teaser__body,
.vestnik-card__body,
.vestnik-note,
.vestnik-facts,
.vestnik-panel {
  padding: 1.2rem;
}

.vestnik-teaser__body h2,
.vestnik-card__body h2,
.vestnik-panel h3,
.vestnik-facts h2 {
  font-family: "Noto Serif", serif;
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.vestnik-cardgrid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.vestnik-cardgrid--content.is-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vestnik-cardgrid--content.is-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vestnik-card img {
  aspect-ratio: 4 / 3;
}

.vestnik-editorial,
.vestnik-linklist-wrap {
  margin-top: 1.6rem;
}

.vestnik-sectionhead,
.vestnik-article__header {
  color: var(--vestnik-navy);
  margin-bottom: 1.3rem;
  min-width: 0;
}

.vestnik-article__header--centered {
  text-align: center;
}

.vestnik-article__header h1 {
  font-size: clamp(1.9rem, 3.35vw, 3.1rem);
  overflow-wrap: anywhere;
}

.vestnik-kicker,
.vestnik-panel__eyebrow {
  color: var(--vestnik-gold-deep);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.vestnik-diptych {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.8fr);
  margin-bottom: 1.35rem;
}

.vestnik-note,
.vestnik-facts,
.vestnik-toc {
  color: var(--vestnik-navy);
}

.vestnik-note {
  align-self: start;
  border-left: 4px solid rgba(197, 160, 89, 0.5);
  font-size: 1rem;
  line-height: 1.75;
}

.vestnik-facts {
  margin-bottom: 1.25rem;
}

.vestnik-facts ul,
.vestnik-linklist,
.vestnik-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vestnik-facts li,
.vestnik-linklist li,
.vestnik-toc li {
  border-top: 1px solid var(--vestnik-line);
  padding: 0.65rem 0;
}

.vestnik-facts li:first-child,
.vestnik-linklist li:first-child,
.vestnik-toc li:first-child {
  border-top: 0;
  padding-top: 0;
}

.vestnik-toc {
  min-width: 0;
  overflow: hidden;
}

.vestnik-toc a {
  display: block;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.vestnik-prose {
  font-size: 1.1rem;
  line-height: 1.85;
  min-width: 0;
}

.vestnik-prose--condensed {
  font-size: 1rem;
}

.vestnik-block {
  margin-bottom: 1.15rem;
}

.vestnik-block--heading {
  color: var(--vestnik-gold-deep);
  font-family: "Noto Serif", serif;
  font-size: 1.5rem;
  margin-top: 2rem;
}

.vestnik-block--quote {
  border-left: 3px solid rgba(197, 160, 89, 0.7);
  color: var(--vestnik-navy);
  font-style: italic;
  margin: 1.5rem 0;
  padding-left: 1rem;
}

.vestnik-block--image img {
  border-radius: 0.85rem;
  max-height: 28rem;
}

.vestnik-block--table {
  overflow-x: auto;
}

.vestnik-block--table table {
  width: 100%;
}

.vestnik-block--gallery,
.vestnik-gallery-mosaic,
.vestnik-gallery-preview {
  display: grid;
  gap: 0.75rem;
}

.vestnik-block--gallery,
.vestnik-gallery-mosaic--dense {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.vestnik-gallery-mosaic {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.4rem;
}

.vestnik-gallery-preview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vestnik-gallery__item img,
.vestnik-gallery-mosaic img,
.vestnik-gallery-preview img {
  border-radius: 0.7rem;
  min-height: 8.5rem;
}

.vestnik-gallery__placeholder {
  align-items: center;
  background: linear-gradient(135deg, rgba(26, 43, 60, 0.08), rgba(197, 160, 89, 0.18));
  border-radius: 0.7rem;
  color: var(--vestnik-navy);
  display: flex;
  font-family: "Work Sans", sans-serif;
  font-size: 0.82rem;
  justify-content: center;
  min-height: 8.5rem;
  padding: 0.75rem;
  text-align: center;
}

.vestnik-separator {
  background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.85), transparent);
  border: 0;
  height: 1px;
  margin: 2rem 0;
}

.vestnik-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.vestnik-pager a,
.vestnik-ghostlink,
.vestnik-panel button {
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 999px;
  color: var(--vestnik-gold-deep);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.65rem 1rem;
  text-transform: uppercase;
}

.vestnik-panel input {
  background: #fff;
  border: 1px solid rgba(26, 43, 60, 0.12);
  margin-bottom: 0.9rem;
}

.vestnik-panel button {
  background: var(--vestnik-navy);
  color: #fff;
}

.vestnik-breadcrumbs {
  color: var(--vestnik-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.72rem;
  gap: 0.45rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.vestnik-footer {
  background: var(--vestnik-navy);
  border-top: 1px solid rgba(197, 160, 89, 0.25);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 3rem;
}

.vestnik-footer__inner {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 2rem 0;
}

.vestnik-footer__brand {
  color: #fff;
  margin-bottom: 0.35rem;
}

.vestnik-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
}

.vestnik-footer__nav a {
  color: rgba(255, 255, 255, 0.84);
  font-family: "Work Sans", sans-serif;
  font-size: 0.8rem;
}

.vestnik-footer__nav a:hover {
  color: #fff;
}

@media (max-width: 960px) {
  .vestnik-layout,
  .vestnik-layout--article,
  .vestnik-diptych,
  .vestnik-footer__inner {
    grid-template-columns: 1fr;
  }

  .vestnik-cardgrid,
  .vestnik-cardgrid--content.is-four {
    grid-template-columns: 1fr;
  }

  .vestnik-main {
    padding-top: 10.5rem;
  }
}

@media (max-width: 720px) {
  .vestnik-header__meta {
    font-size: 0.58rem;
    letter-spacing: 0.16em;
  }

  .vestnik-nav {
    gap: 0.55rem 0.8rem;
  }

  .vestnik-nav a {
    font-size: 0.63rem;
  }

  .vestnik-home__hero {
    min-height: 20rem;
  }

  .vestnik-teaser,
  .vestnik-cardgrid,
  .vestnik-gallery-mosaic {
    grid-template-columns: 1fr;
  }

  .vestnik-article__header h1 {
    font-size: clamp(1.7rem, 8.6vw, 2.25rem);
  }
}
