/* ============================================================
   Дизайн-система «Духовная база» — светлая архивная эстетика
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Crimson+Pro:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600;700&family=Ubuntu:wght@300;400;500;700&display=swap');

:root {
  /* ----- палитра ----- */
  --bg: #FAF7F0;
  --bg-alt: #F4EEE3;
  --surface: #FFFFFF;
  --surface-raised: #FFFDF8;
  --ink: #1C1917;
  --ink-muted: #57534E;
  --ink-soft: #78716C;
  --line: #E7E2D6;
  --line-soft: #F0EBDD;
  --accent: #7A1F2B;
  --accent-dark: #5C1620;
  --accent-soft: rgba(122, 31, 43, 0.08);
  --gold: #A17C3E;
  --gold-soft: rgba(161, 124, 62, 0.14);
  --danger: #B91C1C;

  /* ----- типографика ----- */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-reading: 'Crimson Pro', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ----- сетка ----- */
  --container: 1200px;
  --container-narrow: 860px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;

  /* ----- тени ----- */
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
  --shadow: 0 8px 24px -8px rgba(28, 25, 23, 0.12), 0 2px 6px -2px rgba(28, 25, 23, 0.06);
  --shadow-lg: 0 24px 60px -20px rgba(28, 25, 23, 0.25);

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   База
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 500; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; }
ul { padding-left: 1.2em; margin: 0 0 1em; }

::selection { background: var(--accent); color: #fff; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--ink); color: #F4EEE3; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.divider-ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 24px auto; max-width: 360px;
  color: var(--gold);
  font-size: 14px;
}
.divider-ornament::before,
.divider-ornament::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ============================================================
   Шапка + навигация
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; min-height: 76px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink); font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.15;
}
.brand:hover { color: var(--ink); }
.brand__logo {
  width: 44px; height: 44px; object-fit: contain; flex-shrink: 0;
}
.brand__name {
  font-size: 17px; font-weight: 500; letter-spacing: 0.01em;
  color: var(--ink);
}
.brand__tag {
  font-size: 12px; color: var(--ink-muted);
  font-family: 'Ubuntu', sans-serif; font-weight: 300; letter-spacing: 0.02em;
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted);
}
.nav__link:hover,
.nav__link--active { color: var(--accent); background: var(--accent-soft); }
.nav__link svg { width: 12px; height: 12px; transition: transform var(--transition); }
.nav__item:hover .nav__link svg { transform: rotate(180deg); }

.submenu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.nav__item:hover .submenu,
.nav__item:focus-within .submenu {
  opacity: 1; visibility: visible; transform: none;
}
.submenu a {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-size: 14px; color: var(--ink);
}
.submenu a:hover { background: var(--bg-alt); color: var(--accent); }

.header-cta { display: flex; align-items: center; gap: 8px; }

.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); align-items: center; justify-content: center; }
.burger svg { width: 20px; height: 20px; color: var(--ink); }

@media (max-width: 1024px) {
  .header-inner { gap: 12px; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .brand__tag { display: none; }
}
@media (max-width: 540px) {
  .header-cta .btn { padding: 8px 12px; font-size: 11px; }
  .header-cta .btn svg { width: 14px; height: 14px; }
  .brand__name { font-size: 15px; }
  .brand__logo { width: 36px; height: 36px; }
}

/* мобильное меню */
.mobile-menu {
  position: fixed; inset: 76px 0 0; background: var(--bg);
  padding: 24px; overflow-y: auto;
  transform: translateX(100%); transition: transform var(--transition);
  z-index: 90;
  border-top: 1px solid var(--line);
}
.mobile-menu.open { transform: none; }
.mobile-menu a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-ui); font-size: 15px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
}
.mobile-menu .mobile-menu__sub a {
  text-transform: none; letter-spacing: 0; font-weight: 400;
  padding-left: 16px; font-size: 14px; color: var(--ink-muted);
}

/* ============================================================
   Кнопки
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-ui);
  font-size: 14px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  transition: all var(--transition);
  cursor: pointer;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: none; }
.btn svg { width: 16px; height: 16px; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); transform: none; }

.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #8A6A34; color: #fff; }

.btn--sm { padding: 10px 20px; font-size: 12px; }
.btn--lg { padding: 18px 36px; font-size: 15px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: 14px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform var(--transition); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   Hero — главный экран
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(64px, 9vh, 120px) 0 clamp(56px, 8vh, 112px);
  display: flex; align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  min-height: clamp(520px, 72vh, 760px);
}
/* На коротких ноутах (≤820px высоты): компактный режим */
@media (max-height: 820px) and (min-width: 1024px) {
  .hero {
    min-height: 0;
    padding: 72px 0 64px;
  }
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  filter: saturate(0.85) brightness(1.02);
  transform: scale(1.06);
  animation: heroZoom 1400ms cubic-bezier(0.22, 1, 0.36, 1) 80ms forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(250, 247, 240, 0.72), rgba(250, 247, 240, 0.88) 55%, rgba(250, 247, 240, 0.95)),
    radial-gradient(ellipse at 70% 50%, rgba(122, 31, 43, 0.08), transparent 55%);
}
.hero__content { position: relative; z-index: 1; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
  background: rgba(255, 253, 248, 0.6);
}
.hero__eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-family: var(--font-display);
  font-weight: 500; line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 20ch;
  margin: 24px 0 16px;
}
.hero__title em {
  font-style: italic; color: var(--accent);
}
.hero__lead {
  font-family: var(--font-reading);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--ink-muted); max-width: 52ch;
  margin-bottom: 40px;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__stats {
  margin-top: clamp(40px, 5vh, 64px);
  padding-top: clamp(24px, 3vh, 36px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}
.hero__stat { font-family: var(--font-ui); }
.hero__stat b {
  display: block; font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 500; color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em; line-height: 1;
}
.hero__stat span {
  display: block; margin-top: 8px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted);
}

/* ============================================================
   Секции рубрик
   ============================================================ */
.section-head { text-align: center; margin-bottom: 56px; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head__eyebrow {
  display: inline-block;
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head__lead {
  font-family: var(--font-reading);
  font-size: 1.15rem; color: var(--ink-muted);
}

.rubrics-grid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.rubric-card {
  padding: 40px 32px;
  background: var(--surface);
  transition: background var(--transition);
  display: flex; flex-direction: column; gap: 16px;
}
.rubric-card:hover { background: var(--surface-raised); }
.rubric-card__icon {
  width: 56px; height: 56px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
}
.rubric-card__icon svg { width: 26px; height: 26px; stroke-width: 1.5; }
.rubric-card__title {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 500; color: var(--ink);
  line-height: 1.25;
}
.rubric-card__desc {
  font-family: var(--font-reading);
  font-size: 1.05rem; color: var(--ink-muted); line-height: 1.55;
}

/* ============================================================
   Feature / split-блок
   ============================================================ */
.feature {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.feature__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(28, 25, 23, 0.25));
}
.feature__body h2 { margin-bottom: 24px; }
.feature__body p { font-family: var(--font-reading); font-size: 1.1rem; color: var(--ink-muted); max-width: 56ch; }
.feature__list { list-style: none; padding: 0; margin: 28px 0 32px; }
.feature__list li {
  padding: 14px 0 14px 36px; position: relative;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-ui); font-size: 15px; line-height: 1.5;
  color: var(--ink);
}
.feature__list li::before {
  content: ''; position: absolute; left: 0; top: 20px;
  width: 20px; height: 2px; background: var(--gold);
}
.feature__list li:last-child { border-bottom: 0; }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature__media { order: -1; aspect-ratio: 16 / 11; }
}

/* ============================================================
   Counter / статистика
   ============================================================ */
.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.stat-strip__item {
  padding: 48px 24px; text-align: center;
  border-right: 1px solid var(--line-soft);
}
.stat-strip__item:last-child { border-right: 0; }
.stat-strip__num {
  font-family: var(--font-display); font-size: 3rem; font-weight: 500;
  color: var(--accent); font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat-strip__label {
  font-family: var(--font-ui); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted); margin-top: 10px;
}

/* ============================================================
   Карточки статей/новостей
   ============================================================ */
.cards { display: grid; gap: 28px; }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.card__media {
  aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding: 28px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.card__meta {
  font-family: var(--font-ui); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 10px;
}
.card__title {
  font-family: var(--font-display); font-size: 1.35rem;
  font-weight: 500; color: var(--ink); line-height: 1.25;
}
.card__excerpt { font-family: var(--font-reading); font-size: 1rem; color: var(--ink-muted); margin: 0; }
.card__footer { margin-top: auto; padding-top: 16px; }

/* ============================================================
   News-list компактный
   ============================================================ */
.news-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.news-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 180px 1fr auto; gap: 24px;
  align-items: baseline;
}
.news-list__date { font-family: var(--font-ui); font-size: 13px; color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; }
.news-list__title { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); margin: 0 0 4px; }
.news-list__excerpt { font-family: var(--font-reading); font-size: 0.98rem; color: var(--ink-muted); margin: 0; }
@media (max-width: 700px) {
  .news-list li { grid-template-columns: 1fr; }
}

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, #201C1B 0%, #2B2220 50%, #3A2A24 100%);
  color: #F4EEE3;
  border-radius: var(--radius-lg);
  padding: clamp(56px, 8vw, 96px) clamp(32px, 6vw, 80px);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(161, 124, 62, 0.25), transparent 70%);
}
.cta-banner::after {
  content: ''; position: absolute; bottom: -30%; left: -8%;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(161, 124, 62, 0.12), transparent 70%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin: 0 auto 16px; max-width: 22ch; }
.cta-banner p { font-family: var(--font-reading); font-size: 1.1rem; opacity: 0.85; max-width: 56ch; margin: 0 auto; }
.cta-banner__actions {
  margin-top: 36px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.cta-banner__actions .btn { min-width: 220px; }
@media (max-width: 560px) {
  .cta-banner__actions { flex-direction: column; align-items: stretch; }
  .cta-banner__actions .btn { width: 100%; min-width: 0; }
}

/* Лёгкий CTA-блок для внутренних страниц (статья, новости, библиотека, ресурсы) */
.article-cta {
  margin: 56px 0 0;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.article-cta::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(161, 124, 62, 0.10), transparent 70%);
  pointer-events: none;
}
.article-cta > div { position: relative; z-index: 1; }
@media (max-width: 720px) {
  .article-cta { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
   Page title (для внутренних страниц)
   ============================================================ */
.page-title {
  padding: clamp(80px, 10vw, 140px) 0 clamp(48px, 6vw, 72px);
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-title__eyebrow {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px; display: block;
}
.page-title h1 { margin: 0 auto 16px; max-width: 20ch; }
.page-title__lead {
  font-family: var(--font-reading); font-size: 1.2rem;
  color: var(--ink-muted); max-width: 62ch; margin: 0 auto;
}

/* ============================================================
   Крупные блоки текста (О проекте, статья)
   ============================================================ */
.prose {
  font-family: var(--font-reading);
  font-size: 1.15rem; line-height: 1.75;
  color: var(--ink);
  max-width: 68ch; margin: 0 auto;
}
.prose h2 { margin-top: 2em; font-size: 2rem; }
.prose h3 { margin-top: 1.5em; font-size: 1.5rem; }
.prose p { margin: 0 0 1.2em; }
.prose ul { padding-left: 1.5em; }
.prose ul li { margin-bottom: 0.5em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* ============================================================
   О проекте — дополнительные блоки
   ============================================================ */
.about-split {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about-split__aside {
  position: sticky; top: 100px;
  padding: 32px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.about-split__aside h3 { margin-bottom: 16px; font-size: 1.2rem; color: var(--accent); }
.about-split__aside ul { list-style: none; padding: 0; }
.about-split__aside ul li { padding: 10px 0; font-size: 15px; color: var(--ink-muted); border-bottom: 1px solid var(--line-soft); }
.about-split__aside ul li:last-child { border-bottom: 0; }
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; }
  .about-split__aside { position: static; }
}

.author-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 40px;
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start;
}
.author-card__photo {
  width: 140px; height: 140px; border-radius: 50%;
  background: var(--bg-alt); overflow: hidden;
  border: 4px solid var(--surface); box-shadow: var(--shadow);
}
.author-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.author-card__name { font-size: 1.75rem; margin-bottom: 4px; }
.author-card__role { font-family: var(--font-reading); color: var(--ink-muted); font-size: 1.05rem; margin-bottom: 16px; }
.author-card__summary { font-family: var(--font-reading); color: var(--ink); margin: 0; }
@media (max-width: 700px) {
  .author-card { grid-template-columns: 1fr; text-align: center; }
  .author-card__photo { margin: 0 auto; }
}

.cv-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-top: 48px; }
.cv-item { border-top: 2px solid var(--gold); padding-top: 20px; }
.cv-item h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-ui); font-weight: 600; color: var(--ink-muted); }
.cv-item ul { list-style: none; padding: 0; margin: 0; }
.cv-item li { font-family: var(--font-reading); font-size: 1rem; color: var(--ink); padding: 10px 0; border-bottom: 1px solid var(--line-soft); line-height: 1.4; }

/* ============================================================
   Контакты
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; }
.contact-block h3 { font-size: 1.4rem; margin-bottom: 20px; }
.contact-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.contact-row:last-child { border-bottom: 0; }
.contact-row__icon { width: 40px; height: 40px; flex-shrink: 0; background: var(--accent-soft); color: var(--accent); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.contact-row__icon svg { width: 18px; height: 18px; stroke-width: 1.5; }
.contact-row__label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px; font-family: var(--font-ui); }
.contact-row__value { font-family: var(--font-reading); font-size: 1.05rem; color: var(--ink); }
.contact-row__value a { color: var(--ink); text-decoration: none; }
.contact-row__value a:hover { color: var(--accent); }
.contact-row__value div { line-height: 1.8; }

/* ============================================================
   Ресурсы (библиотека)
   ============================================================ */
.resources-toc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin-bottom: 48px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.resources-toc a {
  padding: 6px 14px; border-radius: 999px;
  font-family: var(--font-ui); font-size: 13px; font-weight: 500;
  color: var(--ink-muted); background: var(--bg-alt);
  border: 1px solid var(--line);
}
.resources-toc a:hover { color: var(--accent); border-color: var(--accent); }

.resource-group { margin-bottom: 64px; }
.resource-group__title { font-size: 2rem; margin-bottom: 8px; }
.resource-group__underline { width: 60px; height: 3px; background: var(--gold); margin-bottom: 32px; }

.eparchy {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 16px; overflow: hidden;
}
.eparchy__head {
  padding: 20px 28px;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 500;
  color: var(--ink); border-bottom: 1px solid var(--line-soft);
  background: var(--bg-alt);
}
.eparchy__list { list-style: none; padding: 0; margin: 0; }
.eparchy__list li { border-bottom: 1px solid var(--line-soft); }
.eparchy__list li:last-child { border-bottom: 0; }
.eparchy__list a {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-family: var(--font-ui); font-size: 14px; color: var(--ink);
}
.eparchy__list a:hover { background: var(--bg-alt); color: var(--accent); }
.eparchy__list a::before {
  content: '→'; color: var(--gold); font-weight: 700;
}

/* ============================================================
   Статья
   ============================================================ */
.article-hero {
  padding: 80px 0 48px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.article-hero__meta { font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.article-hero h1 { max-width: 22ch; }
.article-hero__lead { font-family: var(--font-reading); font-size: 1.25rem; color: var(--ink-muted); max-width: 62ch; margin-top: 20px; }
.article-hero__image { margin-top: 48px; aspect-ratio: 21 / 9; border-radius: var(--radius-lg); overflow: hidden; }
.article-hero__image img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink); color: #D7D0C2;
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: flex; gap: 14px; margin-bottom: 20px; align-items: center; }
.footer-brand img { width: 48px; height: 48px; filter: brightness(0) invert(1) opacity(0.85); }
.footer-brand div { font-family: 'Ubuntu', sans-serif; font-weight: 500; font-size: 1.05rem; color: #fff; line-height: 1.2; letter-spacing: 0.01em; }
.footer-brand div span { display: block; font-family: 'Ubuntu', sans-serif; font-weight: 300; font-size: 12px; color: #C1B8A4; letter-spacing: 0.02em; text-transform: none; margin-top: 4px; }
.site-footer p { font-family: var(--font-reading); font-size: 0.98rem; line-height: 1.6; color: #A19A8C; max-width: 40ch; }

.footer-col h4 { font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: #A17C3E; margin-bottom: 20px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #D7D0C2; font-size: 14px; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #78716C;
}
.footer-bottom a { color: #A19A8C; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   404
   ============================================================ */
.not-found { padding: 120px 0; text-align: center; }
.not-found__code { font-family: var(--font-display); font-size: 6rem; color: var(--accent); margin: 0; }
.not-found h1 { margin: 16px 0; }

/* ============================================================
   Responsive tweaks
   ============================================================ */
@media (max-width: 600px) {
  .btn { padding: 12px 20px; font-size: 13px; }
  .hero { min-height: 560px; }
  .hero__title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero__lead { font-size: 1rem; }
  .hero__stats { gap: 20px; margin-top: 36px; padding-top: 24px; }
  .hero__stat b { font-size: 1.8rem; }
  .hero__ctas .btn { flex: 1; justify-content: center; }
  .cta-banner { padding: 40px 28px; }
  .rubric-card, .contact-block, .author-card { padding: 28px 24px; }
  .news-list__date { font-size: 12px; }
  .stat-strip__item { padding: 32px 16px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .stat-strip__item:last-child { border-bottom: 0; }
  .stat-strip__num { font-size: 2.2rem; }
  .cv-list { gap: 24px; margin-top: 32px; }
  .page-title { padding: 48px 0 32px; }
}

/* ============================================================
   CTA LINK — кнопка-ссылка (для тёмных блоков)
   ============================================================ */
.cta-link {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 0;
  border: 0; background: transparent; cursor: pointer;
  font: inherit; color: #F4EEE3; text-align: left;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), color 200ms ease;
}
.cta-link:hover { color: #fff; transform: translateX(6px); }
.cta-link--footer {
  color: var(--gold); font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em;
}
.cta-link--footer:hover { color: #fff; }

/* ============================================================
   ФОРМЫ
   ============================================================ */
.field {
  display: block; margin-bottom: 16px;
}
.field__label {
  display: block; margin-bottom: 8px;
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="file"],
.field textarea,
.field select {
  display: block; width: 100%;
  padding: 13px 16px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
  font-family: var(--font-ui);
}
.field textarea {
  resize: vertical; min-height: 100px; font-family: var(--font-reading);
  line-height: 1.55; font-size: 16px;
}
.field input:hover, .field textarea:hover { border-color: var(--ink-soft); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface-raised);
}
.field input::placeholder, .field textarea::placeholder { color: #B0A999; }
.field--file input[type="file"] {
  padding: 10px 12px; cursor: pointer;
  background: var(--bg-alt);
  font-size: 14px;
}
.field--file input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 8px 14px;
  background: var(--accent); color: #fff; border: 0;
  border-radius: var(--radius-sm); cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: background 200ms ease;
}
.field--file input[type="file"]::file-selector-button:hover { background: var(--accent-dark); }
.field__hint {
  display: block; margin-top: 6px;
  font-size: 12px; color: var(--ink-soft);
}

.form__row { margin-bottom: 16px; }
.form__row--2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 600px) { .form__row--2 { grid-template-columns: 1fr; } }
.form__row--2 .field { margin-bottom: 0; }

.form__policy {
  margin: 20px 0 0;
  font-size: 12px; color: var(--ink-soft); line-height: 1.5;
  font-family: var(--font-ui);
}
.form__policy a { color: var(--ink-muted); text-decoration: underline; text-decoration-color: var(--gold); }
.form__policy a:hover { color: var(--accent); }

.form__actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.form__actions--right { justify-content: flex-end; }

.form__actions .btn:last-child { margin-left: auto; }
@media (max-width: 520px) {
  .form__actions .btn { flex: 1; min-width: 0; justify-content: center; }
  .form__actions .btn:last-child { margin-left: 0; }
}

/* Радио-группа */
.field-group { border: 0; padding: 0; margin: 0 0 20px; }
.field-group legend { padding: 0; margin-bottom: 12px; }
.radio-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}
.radio {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer; transition: all 200ms ease;
  font-family: var(--font-ui); font-size: 14px;
  color: var(--ink);
}
.radio:hover { border-color: var(--gold); background: var(--surface-raised); }
.radio input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; margin: 0;
  border: 2px solid var(--line); border-radius: 50%;
  background: var(--surface); flex-shrink: 0;
  transition: all 200ms ease; cursor: pointer;
  position: relative;
}
.radio input[type="radio"]:checked {
  border-color: var(--accent);
}
.radio input[type="radio"]:checked::after {
  content: ''; position: absolute; inset: 3px;
  background: var(--accent); border-radius: 50%;
}
.radio:has(input:checked) {
  border-color: var(--accent); background: var(--accent-soft);
  color: var(--accent-dark);
}

/* ============================================================
   МОДАЛКИ (<dialog>)
   ============================================================ */
.modal {
  padding: 0; border: 0;
  background: transparent;
  max-width: 640px; width: calc(100% - 32px);
  max-height: calc(100% - 32px);
  margin: auto;
  color: var(--ink);
  overflow: visible;
}
.modal::backdrop {
  background: rgba(28, 25, 23, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: backdropIn 240ms ease;
}
.modal[open] {
  animation: modalIn 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.modal__inner {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
@media (max-width: 600px) {
  .modal__inner { padding: 28px 24px; border-radius: var(--radius); }
}
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border: 0;
  background: var(--bg-alt); color: var(--ink-muted);
  border-radius: 50%; cursor: pointer;
  font-size: 20px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 200ms ease;
}
.modal__close:hover { background: var(--accent); color: #fff; transform: rotate(90deg); }

.modal__header { margin-bottom: 24px; padding-right: 40px; }
.modal__eyebrow {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.modal__title {
  font-family: var(--font-display); font-size: 1.8rem;
  font-weight: 500; line-height: 1.15; margin: 0 0 12px;
  color: var(--ink);
}
.modal__lead {
  font-family: var(--font-reading); font-size: 1rem;
  color: var(--ink-muted); margin: 0;
}

/* Success-состояние формы */
.form__success {
  text-align: center; padding: 20px 0;
  animation: rise 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.form__success-icon {
  color: var(--gold); font-size: 32px; margin-bottom: 16px;
}
.form__success h3 {
  font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 12px;
  color: var(--accent);
}
.form__success p { font-family: var(--font-reading); color: var(--ink-muted); }

/* Состояние «отправлено»: скрываем поля, показываем success */
form[data-form][data-state="success"] > *:not(.form__success):not(.modal__close) {
  display: none;
}
form[data-form][data-state="success"] .form__success { display: block; }

/* ============================================================
   Inline service form — большая форма с радио
   ============================================================ */
.service-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.service-form__head {
  padding: 40px 40px 24px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.service-form__head .section-head__eyebrow { margin-bottom: 12px; }
.service-form__head h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2rem); }
.service-form__head .section-head__lead { margin: 0 auto; max-width: 560px; font-size: 1rem; }
.service-form__body { padding: 36px 40px 40px; }
@media (max-width: 640px) {
  .service-form__head { padding: 28px 20px 20px; }
  .service-form__body { padding: 28px 20px; }
}

/* ============================================================
   АНИМАЦИИ ПОЯВЛЕНИЯ
   ============================================================ */

/* Hero — стагеренный fade-up при загрузке */
.hero__eyebrow,
.hero__title,
.hero__lead,
.hero__ctas,
.hero__stats {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero__eyebrow { animation-delay: 100ms; }
.hero__title   { animation-delay: 220ms; }
.hero__lead    { animation-delay: 360ms; }
.hero__ctas    { animation-delay: 480ms; }
.hero__stats   { animation-delay: 600ms; }

@keyframes rise { to { opacity: 1; transform: none; } }

/* Универсальный observer-класс: элемент появляется при скролле */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
/* стагер: data-reveal-delay="1" … "6" */
[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal-delay="4"] { transition-delay: 320ms; }
[data-reveal-delay="5"] { transition-delay: 400ms; }
[data-reveal-delay="6"] { transition-delay: 480ms; }

/* Авто-стагер для сеток: дети внутри [data-stagger] задерживаются последовательно */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
[data-stagger].is-in > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 60ms; }
[data-stagger].is-in > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 140ms; }
[data-stagger].is-in > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 220ms; }
[data-stagger].is-in > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 300ms; }
[data-stagger].is-in > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 380ms; }
[data-stagger].is-in > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 460ms; }
[data-stagger].is-in > *:nth-child(n+7) { opacity: 1; transform: none; transition-delay: 540ms; }

/* ============================================================
   HOVER-эффекты (улучшенные)
   ============================================================ */

/* Карточки */
.card {
  transition:
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 300ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 300ms ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -20px rgba(28, 25, 23, 0.22), 0 6px 12px -4px rgba(28, 25, 23, 0.08);
  border-color: var(--gold);
}
.card__media img {
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .card__media img {
  transform: scale(1.05);
}
.card__title {
  transition: color 220ms ease;
}
.card:hover .card__title {
  color: var(--accent);
}

/* Рубрики — тонкая линия снизу на hover */
.rubric-card {
  position: relative;
  transition: background 260ms ease, transform 260ms cubic-bezier(0.22,1,0.36,1);
}
.rubric-card::after {
  content: '';
  position: absolute; left: 32px; right: 32px; bottom: 0;
  height: 2px; background: var(--gold); transform: scaleX(0);
  transform-origin: left center;
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}
.rubric-card:hover { background: var(--surface-raised); }
.rubric-card:hover::after { transform: scaleX(1); }
.rubric-card__icon {
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1),
              background 260ms ease, color 260ms ease;
}
.rubric-card:hover .rubric-card__icon {
  transform: translateY(-2px) rotate(-3deg);
  background: var(--accent);
  color: #fff;
}

/* Nav — подчёркивание */
.nav__link {
  position: relative;
  transition: color 220ms ease, background 220ms ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__link:hover::after,
.nav__link--active::after { transform: scaleX(1); }

/* Кнопки — подчёркнутый lift */
.btn {
  transition: background 220ms ease, color 220ms ease,
              transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 260ms ease;
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(122, 31, 43, 0.35);
}
.btn--ghost:hover { box-shadow: 0 10px 20px -10px rgba(28, 25, 23, 0.18); }
.btn--gold:hover { box-shadow: 0 14px 28px -10px rgba(161, 124, 62, 0.45); }

/* link-arrow */
.link-arrow { transition: color 200ms ease; }
.link-arrow svg { transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1); }
.link-arrow:hover { color: var(--accent-dark); }
.link-arrow:hover svg { transform: translateX(6px); }

/* Brand — тонкий tilt при hover */
.brand {
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.brand:hover { transform: translateY(-1px); }
.brand__logo { transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1); }
.brand:hover .brand__logo { transform: rotate(-6deg); }

/* Eparchy rows */
.eparchy__list a {
  transition: background 200ms ease, color 200ms ease, padding-left 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.eparchy__list a:hover {
  padding-left: 36px;
}

/* Feature media — subtle zoom-in on hover */
.feature__media { overflow: hidden; }
.feature__media img { transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1); }
.feature:hover .feature__media img { transform: scale(1.04); }

/* Hero эйбрау — лёгкая пульсация точки */
.hero__eyebrow::before {
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.7; }
}

/* Scroll-down indicator в hero */
.hero__scroll {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--ink-muted); font-family: var(--font-ui);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0; animation: rise 900ms cubic-bezier(0.22, 1, 0.36, 1) 900ms forwards;
  pointer-events: none;
}
.hero__scroll span { opacity: 0.5; }
.hero__scroll::after {
  content: ''; width: 1px; height: 32px;
  background: linear-gradient(to bottom, var(--ink-muted), transparent);
  animation: scrollHint 1.8s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes scrollHint {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50%      { transform: scaleY(1);   opacity: 0.85; }
}
@media (max-height: 700px) { .hero__scroll { display: none; } }

/* Article hero image — subtle fade-in */
.article-hero__image img {
  animation: imgFade 900ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes imgFade {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}

/* Smooth focus rings (keyboard nav) */
a:focus-visible, button:focus-visible, .btn:focus-visible, .nav__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Reduced motion — отрубаем лишнее, но оставляем моментальное появление
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; }
}
