/* ============================================
   Sound of Scripture — About / Donate / Contact
   ============================================ */

.page-inner {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.page-inner.wide {
  max-width: 1100px;
}

.page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ---- Video ---- */
.video-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto 2.75rem;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.3),
    0 20px 50px rgba(0, 0, 0, 0.45);
  background: #0a0a14;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Prose / description ---- */
.prose {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.prose p + p {
  margin-top: 1.1rem;
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.section-block {
  margin-bottom: 3rem;
}

.section-block h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
}

/* ---- Photo gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.4),
    0 12px 28px rgba(0, 0, 0, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85);
  transition: filter 0.35s ease;
}

.gallery-item:hover img {
  filter: saturate(1.05);
}

/* ---- CTA cards (About → Donate / Contact) ---- */
.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.cta-card {
  display: block;
  padding: 1.5rem 1.4rem;
  border-radius: 14px;
  background: rgba(18, 18, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.cta-card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.cta-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.cta-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.cta-card .cta-arrow {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-cyan);
}

/* ---- Donate ---- */
.donate-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.channel-callout {
  display: flex;
  align-items: center;
  gap: 2rem;
  /* Без max-width: блок тянется на всю ширину .home-main, как соседние
     секции. Раньше стояло 760px, и он был заметно уже остальной страницы. */
  margin: 3rem auto;
  padding: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(10, 10, 20, 0.34);
  border-radius: 12px;
}

.channel-callout-logo {
  display: grid;
  flex: 0 0 144px;
  place-items: center;
}

.channel-callout-logo img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.channel-callout-copy {
  flex: 1;
  /* Карточка теперь во всю ширину страницы, но строка в 95 символов читается
     плохо. Держим текст в районе 65 — как в остальных блоках главной. */
  max-width: 68ch;
}

.channel-callout-copy h2 {
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.channel-callout-copy p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.channel-callout-link {
  color: var(--accent-cyan);
  font-weight: 600;
  text-decoration: none;
}

.channel-callout-link:hover {
  text-decoration: underline;
}

.donate-card {
  text-align: center;
  padding: 1.5rem 1.1rem;
  border-radius: 14px;
  background: rgba(18, 18, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.donate-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.15);
}

.donate-amount {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.donate-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.donate-note {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

/* ---- Contact form ---- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-row input,
.form-row textarea,
.form-row select {
  appearance: none;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.55);
  background: rgba(139, 92, 246, 0.06);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.contact-aside {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.contact-aside a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.contact-aside a:hover {
  text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-row {
    grid-template-columns: 1fr;
  }

  .donate-options {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .channel-callout {
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .channel-callout-logo {
    flex-basis: 92px;
  }

  .channel-callout-logo img {
    width: 82px;
    height: 82px;
  }
}

@media (max-width: 480px) {
  .page-inner {
    padding: 1.75rem 1rem 3rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
}

/* Footer login button */
.footer-login {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.12);
  color: var(--text-primary) !important;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}

.footer-login:hover {
  background: rgba(139, 92, 246, 0.28);
  border-color: rgba(183, 148, 246, 0.6);
  color: #fff !important;
}

/* Gallery items as buttons */
button.gallery-item {
  appearance: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(139, 92, 246, 0.35);
}

.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }

@media (max-width: 600px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.1rem; }
  .lightbox-nav.prev { left: 0.4rem; }
  .lightbox-nav.next { right: 0.4rem; }
}


.video-fallback {
  text-align: center;
  margin: -1.5rem 0 2.25rem;
  font-size: 0.88rem;
}

.video-fallback a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.video-fallback a:hover {
  color: var(--accent-cyan, #22d3ee);
}


/* Video poster fallback */
.video-wrap {
  position: relative;
  background: #0a0a14;
}

.video-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) brightness(0.85);
}

.video-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(139, 92, 246, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(139, 92, 246, 0.85);
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.5);
}

.video-play-btn svg {
  margin-left: 3px;
}

.video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-wrap.is-embed .video-poster {
  display: none;
}

.video-wrap.is-poster .video-player {
  visibility: hidden;
  pointer-events: none;
}

/* ==========================================================================
   Реквизиты для перевода (страница Support)
   ========================================================================== */

.give-bank {
  max-width: 560px;
  margin: 2.5rem auto 0;
  padding: 1.75rem 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.give-bank h2 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
}

.give-bank-lead {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

.give-bank-details {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 1.35rem;
}

.give-bank-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.give-bank-row:last-child {
  border-bottom: none;
}

.give-bank-row dt {
  flex-shrink: 0;
  width: 8.5rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.give-bank-row dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
}

/* Номер счёта и назначение платежа набираются вручную — моноширинный
   шрифт и разрядка уменьшают шанс ошибиться при переписывании. */
.give-bank-number,
.give-bank-ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: #c4b5fd;
}

.give-bank-copy {
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.give-bank-copy[hidden] {
  display: none;
}

.give-bank-copy:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.give-bank-copy.is-done {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
}

.give-bank-note {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: center;
}

.give-bank-note strong {
  color: var(--text-primary);
}

.give-bank-note a {
  color: var(--accent-cyan);
}

@media (max-width: 560px) {
  .give-bank {
    padding: 1.35rem 1.15rem;
  }

  .give-bank-row {
    gap: 0.2rem;
  }

  .give-bank-row dt {
    width: 100%;
  }
}
