/* ============================================================================
   messiah.by — раздел «Церковь и таинства» (/tainstva/): семь Таинств Церкви
   и практическое руководство «Первый раз в храме». Палитра и токены общие
   с сайтом (style.css).
   ========================================================================= */

.tns { padding-block: clamp(1.5rem, 4vw, 2.5rem) 4rem; }

.tns-head { max-width: 44rem; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.tns-head h1 { margin: .2rem 0 .8rem; }
.tns-head p { color: var(--ink-soft); font-size: 1.02rem; }

.tns-loading, .tns-muted { color: var(--ink-mute); }
.tns-error { color: var(--red-deep); }

.tns-back { display: inline-block; margin-bottom: 1.25rem; color: var(--ink-soft); text-decoration: none; }
.tns-back:hover { color: var(--red); }

/* ---- Главная раздела: вступление и семь карточек ---------------------------- */

.tns-intro { max-width: 46rem; margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.tns-intro h2 { margin-bottom: .5rem; }
.tns-intro p { color: var(--ink-soft); }

.tns-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.tns-card {
  display: block;
  padding: 1.25rem 1.4rem;
  text-decoration: none;
  color: var(--ink);
}
.tns-card h3 { color: var(--red); margin-bottom: .4rem; font-size: 1.05rem; }
.tns-card__other { color: var(--ink-mute); font-weight: 400; font-size: .85rem; }
.tns-card p { color: var(--ink-soft); font-size: .93rem; }

.tns-guide-banner {
  display: flex; align-items: center; gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  text-decoration: none;
  color: var(--ink);
}
.tns-guide-banner:hover { box-shadow: var(--shadow-md); color: var(--ink); }
.tns-guide-banner__eyebrow { color: var(--gold); font-weight: 500; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.tns-guide-banner h3 { margin: .3rem 0 .4rem; }
.tns-guide-banner p { color: var(--ink-soft); font-size: .95rem; }
.tns-guide-banner__arrow { font-size: 1.6rem; color: var(--red); flex-shrink: 0; }

/* ---- Детальная страница Таинства --------------------------------------------- */

.tns-detail { max-width: 46rem; }
.tns-detail h1 { margin-bottom: .5rem; }
.tns-detail__other { color: var(--ink-mute); font-weight: 400; font-size: 1.1rem; }
.tns-detail__definition p { font-size: 1.05rem; color: var(--ink-soft); }
.tns-detail__ref { color: var(--gold); font-size: .88rem; margin-bottom: 1.5rem; }

.tns-section { margin-top: clamp(1.75rem, 3vw, 2.25rem); }
.tns-section h2 { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); margin-bottom: .7rem; }
.tns-section p { margin-bottom: .8rem; }
.tns-section ul { margin: 0 0 .8rem 1.2rem; }
.tns-section li { margin-bottom: .35rem; color: var(--ink-soft); }

.tns-note {
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.tns-note h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); margin-bottom: .5rem; }
.tns-note p { color: var(--ink-soft); }

.tns-source { margin-top: 1.5rem; font-size: .88rem; }

/* ---- Частые вопросы ------------------------------------------------------------ */

.tns-faq { display: flex; flex-direction: column; gap: 1rem; }
.tns-faq-item {
  padding: 1.1rem 1.25rem;
}
.tns-faq-item h3 { color: var(--red); font-size: .98rem; margin-bottom: .5rem; }
.tns-faq-item p { color: var(--ink-soft); }

/* ---- «Первый раз в храме» ------------------------------------------------------ */

.tns-page-head { max-width: 46rem; margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.tns-page-head h1 { margin-bottom: .5rem; }
.tns-page-head p { color: var(--ink-soft); font-size: 1.02rem; }

.tns-guide-section { max-width: 46rem; margin-bottom: clamp(1.75rem, 3vw, 2.25rem); }
.tns-guide-section h2 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); margin-bottom: .7rem; }
.tns-guide-section p { margin-bottom: .8rem; color: var(--ink-soft); }
.tns-guide-section ul { margin: 0 0 .8rem 1.2rem; }
.tns-guide-section li { margin-bottom: .4rem; color: var(--ink-soft); }


/* Баннер в «Церковное право»: правила о таинствах — там, где их принимали.
   Вид общий с другими баннерами «смежный раздел» (рецепт в style.css). */
.tns-pravo-banner {
  display: grid; gap: .25rem; padding: 1.1rem 1.3rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem); max-width: 46rem;
  text-decoration: none; color: inherit;
}
.tns-pravo-banner__title { font-family: var(--font-display); font-size: var(--t-h3); font-weight: 600; }
.tns-pravo-banner__note { color: var(--ink-600); font-size: var(--t-small); }
