:root {
  --bg: #0f1417;
  --bg-soft: #171d22;
  --panel: #1b2328;
  --panel-alt: #222b31;
  --primary: #c99852;
  --primary-deep: #9d6f2f;
  --accent: #e0b16d;
  --accent-soft: rgba(201, 152, 82, 0.14);
  --text: #eef3f5;
  --muted: #c2c9cd;
  --line: rgba(255, 255, 255, 0.08);
  --success: #d4a868;
  --warning-bg: rgba(201, 152, 82, 0.12);
  --warning-text: #f4d7a1;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top, rgba(201, 152, 82, 0.12), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(760px, calc(100% - 2rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 20, 23, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap,
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  color: #f5efe7;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary-deep));
  color: #17120d;
  font-size: 1.05rem;
  box-shadow: 0 8px 18px rgba(201, 152, 82, 0.3);
}

.main-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.main-nav a,
.footer-nav a {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
}

.main-nav a:hover,
.footer-nav a:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  background: linear-gradient(180deg, rgba(201, 152, 82, 0.12) 0%, rgba(15, 20, 23, 0) 100%);
}

.hero-intro {
  position: relative;
}

.hero-logo-decor {
  position: absolute;
  left: -200px;
  top: 0;
  bottom: 0;
  width: 180px;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 2rem;
  padding-left: 200px;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow.dark {
  color: var(--primary);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #f4efe9;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #f4efe9;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.3;
  color: #f4efe9;
  margin-bottom: 0.7rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.82rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--primary-deep));
  color: #17120d;
  box-shadow: 0 12px 24px rgba(201, 152, 82, 0.25);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line);
  color: #f4efe9;
}

.button.tertiary {
  background: rgba(201, 152, 82, 0.12);
  color: #f4efe9;
  border: 1px solid rgba(201, 152, 82, 0.3);
}

.large {
  min-height: 3.4rem;
  padding-inline: 1.7rem;
}

.full-width {
  width: 100%;
}

.hero-panel {
  display: flex;
  justify-content: center;
}

.panel-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(27, 35, 40, 0.96), rgba(18, 24, 28, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.panel-card-inner {
  max-width: 640px;
}

.mission-inner {
  max-width: 1100px;
}

.mission-header {
  margin-bottom: 1.5rem;
}

.mission-body {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

.mission-list {
  flex: 1 1 380px;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.mission-list li {
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

.mission-list li:last-child {
  margin-bottom: 0;
}

.mission-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.mission-image {
  width: 320px;
  max-width: 40%;
  height: auto;
  flex-shrink: 0;
  border-radius: var(--radius);
}

.pill,
.detail-tag,
.label,
.mini-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill {
  padding: 0.42rem 0.7rem;
  background: rgba(201, 152, 82, 0.12);
  color: var(--accent);
}

.panel-card h2 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.panel-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.section {
  padding: 4.5rem 0;
}

.muted-section {
  background: rgba(223, 238, 230, 0.34);
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.2rem;
}

.left-align {
  text-align: left;
  margin-inline: 0 0 2rem;
}

.topic-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.5rem;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.topic-card {
  width: 100%;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(27, 35, 40, 0.7);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.topic-card:hover,
.topic-card:focus-visible,
.topic-card.is-active {
  border-color: rgba(201, 152, 82, 0.4);
  background: rgba(201, 152, 82, 0.08);
  transform: translateY(-2px);
}

.topic-number {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.topic-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.18rem;
}

.topic-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.topic-detail {
  background: linear-gradient(180deg, rgba(27, 35, 40, 0.96), rgba(18, 24, 28, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.detail-tag {
  padding: 0.45rem 0.8rem;
  background: rgba(201, 152, 82, 0.12);
  color: var(--accent);
}

.topic-detail p {
  color: var(--muted);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.article-card {
  background: linear-gradient(180deg, rgba(27, 35, 40, 0.96), rgba(18, 24, 28, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.label {
  padding: 0.45rem 0.7rem;
}

.label-personal {
  background: rgba(92, 138, 125, 0.12);
  color: var(--primary);
}

.label-professional {
  background: rgba(29, 77, 74, 0.09);
  color: var(--primary-deep);
}

.label-source {
  background: rgba(102, 116, 91, 0.1);
  color: #485c42;
}

.article-card time,
.meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.article-card p {
  color: var(--muted);
}

.event-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}

.event-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: 0.8rem;
  color: var(--muted);
}

.event-card {
  background: linear-gradient(180deg, rgba(27, 35, 40, 0.96), rgba(18, 24, 28, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.mini-label {
  padding: 0.45rem 0.7rem;
  background: rgba(201, 152, 82, 0.12);
  color: var(--accent);
}

.form-section {
  background: rgba(23, 29, 34, 0.7);
}

.form-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: flex-start;
}

.form-intro p {
  color: var(--muted);
}

.privacy-note {
  background: rgba(201, 152, 82, 0.08);
  border: 1px solid rgba(201, 152, 82, 0.18);
  color: #f3d9a9;
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-top: 1.2rem;
}

.registration-form {
  background: linear-gradient(180deg, rgba(27, 35, 40, 0.96), rgba(18, 24, 28, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

label {
  font-weight: 600;
  color: var(--primary-deep);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 0.8rem 0.9rem;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(201, 152, 82, 0.25);
  border-color: rgba(201, 152, 82, 0.5);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
  font-weight: 400;
  color: var(--muted);
}

.checkbox-row input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.radio-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
}

.radio-row input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.form-message {
  min-height: 1.4rem;
  margin: 1rem 0 0;
  color: var(--success);
  font-weight: 600;
}

.help-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 1.5rem;
  background: linear-gradient(180deg, rgba(27, 35, 40, 0.96), rgba(18, 24, 28, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}

.help-actions p {
  color: var(--muted);
}

.help-alert {
  background: rgba(201, 152, 82, 0.08);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(201, 152, 82, 0.18);
  color: #f3d9a9;
}

.brand-mark-church {
  background: none;
  box-shadow: none;
}

.brand-mark-church svg,
.brand-mark-church img {
  width: 1.9rem;
  height: 1.9rem;
  object-fit: contain;
}

.brand-mark-footer {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  padding: 0.3rem;
}


.address-block {
  margin: 1.25rem 0 0;
  font-style: normal;
  color: var(--muted);
}

.address-line {
  margin: 0;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.fact-card {
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(27, 35, 40, 0.7);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.fact-number {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.fact-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.fact-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.quote-box {
  background: rgba(201, 152, 82, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: #f3d9a9;
  font-style: italic;
  margin: 0 auto 2rem;
  max-width: 760px;
}

.featured-ministry {
  border-color: rgba(201, 152, 82, 0.4);
}

.label-featured {
  background: rgba(201, 152, 82, 0.16);
  color: var(--accent);
}

.article-card .button {
  margin-top: 0.75rem;
}

.section-note {
  margin: 2rem auto 0;
  max-width: 760px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-links a svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.social-links a:hover {
  border-color: rgba(201, 152, 82, 0.4);
  color: var(--accent);
  transform: translateY(-2px);
}

.site-footer {
  background: #0b1013;
  color: rgba(255, 255, 255, 0.8);
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.footer-brand {
  color: #fff;
}

.page-hero {
  padding: 4rem 0 2rem;
  background: linear-gradient(180deg, rgba(223, 238, 230, 0.72), rgba(245, 242, 235, 0));
}

.small-hero h1 {
  margin-bottom: 0;
}

.content-block p {
  color: var(--muted);
  font-size: 1.07rem;
}

.principles-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.principle-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.principle-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.principle-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.center-box {
  text-align: center;
}

.center-box p {
  max-width: 66ch;
  margin-inline: auto;
  color: var(--muted);
}

/* Tema claro "tons de fogo" — usado apenas na página inicial da Igreja (body.church-theme) */
body.church-theme {
  --bg: #fdfaf6;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-alt: #fbeee7;
  --primary: #c0392b;
  --primary-deep: #8a1b1b;
  --accent: #d9480f;
  --accent-soft: rgba(217, 72, 15, 0.12);
  --text: #241a16;
  --muted: #6b5b52;
  --line: rgba(36, 26, 22, 0.12);
  --success: #b23a1f;
  --warning-bg: rgba(217, 72, 15, 0.1);
  --warning-text: #8a1b1b;
  --shadow: 0 18px 40px rgba(120, 40, 20, 0.12);
  --container: 1480px;
  background:
    radial-gradient(circle at top, rgba(217, 72, 15, 0.1), transparent 35%),
    var(--bg);
}

body.church-theme .section .container {
  padding-left: 200px;
}

body.church-theme .site-header {
  background: rgba(255, 250, 246, 0.88);
}

body.church-theme .brand {
  color: var(--text);
}

body.church-theme h1,
body.church-theme h2,
body.church-theme h3 {
  color: #201512;
}

body.church-theme .button.primary {
  background: linear-gradient(135deg, #e0562f, var(--primary-deep));
  color: #fff8f4;
  box-shadow: 0 12px 24px rgba(217, 72, 15, 0.25);
}

body.church-theme .button.secondary {
  background: rgba(36, 26, 22, 0.03);
  color: var(--text);
}

body.church-theme .button.tertiary {
  background: rgba(217, 72, 15, 0.1);
  color: var(--primary-deep);
  border-color: rgba(217, 72, 15, 0.25);
}

body.church-theme .panel-card {
  background: transparent;
  border: none;
  box-shadow: none;
}

body.church-theme .panel-card h2 {
  color: #201512;
}

body.church-theme .pill,
body.church-theme .mini-label {
  background: rgba(217, 72, 15, 0.12);
  color: var(--primary-deep);
}

body.church-theme .muted-section {
  background: rgba(255, 232, 219, 0.55);
}

body.church-theme .fact-card,
body.church-theme .article-card,
body.church-theme .event-card,
body.church-theme .principle-item {
  background: transparent;
  border: none;
  box-shadow: none;
}

body.church-theme .fact-number {
  color: var(--primary-deep);
}

body.church-theme .quote-box {
  background: rgba(217, 72, 15, 0.08);
  border-left-color: var(--primary-deep);
  color: #7a2a12;
}

body.church-theme .label-featured,
body.church-theme .label-personal {
  background: rgba(217, 72, 15, 0.12);
  color: var(--primary-deep);
}

body.church-theme .label-source {
  background: rgba(107, 91, 82, 0.12);
  color: var(--muted);
}

body.church-theme .social-links a {
  background: rgba(36, 26, 22, 0.02);
}

body.church-theme .social-links a:hover {
  border-color: rgba(217, 72, 15, 0.4);
  color: var(--primary-deep);
}

body.church-theme .site-footer {
  background: #201512;
  color: rgba(255, 248, 244, 0.85);
}

body.church-theme .footer-brand {
  color: #fff8f4;
}

@media (max-width: 900px) {
  .hero-logo-decor {
    display: none;
  }

  .hero-grid {
    padding-left: 0;
  }

  body.church-theme .section .container {
    padding-left: 0;
  }

  .mission-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .mission-image {
    width: 100%;
    max-width: 320px;
  }

  .hero-grid,
  .topic-layout,
  .event-wrap,
  .form-grid,
  .help-box {
    grid-template-columns: 1fr;
  }

  .articles-grid,
  .topic-grid,
  .principles-list,
  .fact-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-wrap,
  .footer-wrap {
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
  }

  .main-nav,
  .footer-nav {
    justify-content: center;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}

/* Tema claro "azul e amarelo" — usado apenas na página Casados para Sempre (body.cps-theme) */
body.cps-theme {
  --bg: #f5fafe;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-alt: #eaf4ff;
  --primary: #2f6690;
  --primary-deep: #1f4c6e;
  --accent: #5aa9e6;
  --accent-soft: rgba(90, 169, 230, 0.14);
  --text: #1c2b35;
  --muted: #5b6b76;
  --line: rgba(28, 43, 53, 0.12);
  --success: #2f6690;
  --warning-bg: rgba(244, 196, 48, 0.18);
  --warning-text: #8a6d1f;
  --shadow: 0 18px 40px rgba(30, 70, 100, 0.12);
  background-color: var(--bg);
}

.cps-bg-farol {
  position: fixed;
  left: 0;
  top: 76px;
  width: 100vw;
  height: calc(100vh - 76px);
  object-fit: cover;
  object-position: center top;
  opacity: 0.9;
  z-index: -1;
  pointer-events: none;
}

.cps-bg-wash {
  position: fixed;
  inset: 0;
  background: rgba(245, 250, 254, 0.82);
  z-index: -1;
  pointer-events: none;
}

body.cps-theme .site-header {
  background: rgba(245, 250, 254, 0.88);
}

body.cps-theme .brand {
  color: var(--text);
}

body.cps-theme h1,
body.cps-theme h2,
body.cps-theme h3 {
  color: #17242d;
}

body.cps-theme .button.primary {
  background: linear-gradient(135deg, #6fb1e0, var(--primary-deep));
  color: #f5fafe;
  box-shadow: 0 12px 24px rgba(47, 102, 144, 0.25);
}

body.cps-theme .button.secondary {
  background: rgba(28, 43, 53, 0.03);
  color: var(--text);
}

body.cps-theme .muted-section {
  background: rgba(90, 169, 230, 0.08);
}

body.cps-theme .principle-item {
  background: transparent;
  border: none;
  box-shadow: none;
}

body.cps-theme .quote-box {
  background: rgba(244, 196, 48, 0.18);
  border-left-color: #c9a02a;
  color: #6b551a;
}

body.cps-theme .registration-form {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
}

body.cps-theme input,
body.cps-theme textarea {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(28, 43, 53, 0.18);
}

body.cps-theme label {
  color: var(--primary-deep);
}

body.cps-theme .privacy-note {
  background: rgba(244, 196, 48, 0.18);
  border-color: rgba(201, 160, 42, 0.3);
  color: #6b551a;
}

body.cps-theme .site-footer {
  background: #16222b;
  color: rgba(245, 250, 254, 0.85);
}

body.cps-theme .footer-brand {
  color: #f5fafe;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cps-wide {
  width: min(960px, calc(100% - 2rem));
}

.cps-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.cps-split-media {
  text-align: center;
}

.cps-split-media img {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.cps-leaders-card img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto;
  display: block;
}

.cps-leaders-card p {
  margin-top: 1rem;
  text-align: center;
  color: var(--muted);
}

.cps-two-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

body.cps-theme .principles-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .cps-split,
  .cps-two-text {
    grid-template-columns: 1fr;
  }

  .cps-split-media {
    order: -1;
  }

  body.cps-theme .principles-list {
    grid-template-columns: 1fr;
  }
}

.cps-logo {
  width: 320px;
  height: auto;
  margin-bottom: 1.5rem;
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.admin-block {
  max-width: 560px;
  margin-bottom: 2rem;
}

.admin-block h2 {
  margin-top: 0;
}

.admin-list-item {
  background: linear-gradient(180deg, rgba(27, 35, 40, 0.96), rgba(18, 24, 28, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 0.75rem;
}

.admin-list-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

body.church-theme #loginPanel.registration-form,
body.church-theme .admin-panel .registration-form {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

body.church-theme #loginPanel input,
body.church-theme .admin-panel input,
body.church-theme .admin-panel textarea {
  background: #ffffff;
  border: 1px solid rgba(36, 26, 22, 0.2);
  color: var(--text);
}

body.church-theme .admin-list-item {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.admin-block-wide {
  max-width: 100%;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  white-space: nowrap;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  white-space: normal;
}

.admin-table th {
  background: var(--panel-alt);
  color: var(--primary-deep);
  font-weight: 600;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

body.church-theme .admin-table-wrap {
  background: #ffffff;
}

