:root {
  --ink: #111827;
  --ink-2: #1d2533;
  --paper: #f6f1e8;
  --paper-2: #ede4d5;
  --white: #ffffff;
  --gold: #d4a84f;
  --gold-2: #f0cf83;
  --gold-dark: #6f5217;
  --blue: #7bb7d8;
  --green: #6f8d7a;
  --red: #c76250;
  --muted: #5f6672;
  --line: rgba(17, 24, 39, 0.12);
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

body.menu-open {
  overflow: hidden;
}

.error-page {
  min-height: 100svh;
  display: grid;
  align-items: center;
  background:
    linear-gradient(105deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.58)),
    url("../img/church-service-05.webp") center / cover;
  color: var(--white);
}

.error-page__content {
  padding: 70px 0;
}

.error-page h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(52px, 9vw, 120px);
  line-height: 0.92;
  text-transform: uppercase;
}

.error-page p:not(.eyebrow) {
  max-width: 600px;
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topline {
  position: relative;
  z-index: 40;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
}

.topline__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topline a {
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 35;
  background: rgba(246, 241, 232, 0.92);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(246, 241, 232, 0.98);
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.09);
}

.site-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__mark {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(17, 24, 39, 0.28);
  background: var(--white);
  font-size: 24px;
  font-weight: 900;
}

.brand__text {
  display: grid;
  text-transform: uppercase;
}

.brand__text strong {
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0;
}

.brand__text small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex: 1;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding: 28px 0;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 21px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.header-action,
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.header-action {
  padding: 12px 16px;
  background: var(--gold);
  color: var(--ink);
}

.header-action.is-active {
  background: var(--ink);
  color: var(--white);
}

.btn {
  padding: 14px 20px;
}

.btn:hover,
.btn:focus-visible,
.header-action:hover,
.header-action:focus-visible {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--gold);
  color: var(--ink);
}

.btn--light {
  border-color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero,
.page-hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}

.hero {
  min-height: clamp(600px, 78svh, 760px);
  display: grid;
  align-items: center;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__image {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.28)),
    url("../img/church-service-01.webp") center / cover;
  transform: scale(1.02);
}

.hero__shade {
  background:
    radial-gradient(circle at 78% 20%, rgba(123, 183, 216, 0.26), transparent 30%),
    linear-gradient(180deg, transparent 64%, rgba(17, 24, 39, 0.76));
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 76px 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.section--dark .section-kicker {
  color: var(--gold-2);
}

.hero h1,
.page-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero__lead,
.page-hero p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(17px, 2vw, 22px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.page-hero {
  min-height: 390px;
  display: grid;
  align-items: end;
  padding: 86px 0 70px;
  background:
    linear-gradient(105deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.64)),
    url("../img/church-service-05.webp") center / cover;
}

.page-hero--image {
  background:
    linear-gradient(105deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.52)),
    url("../img/church-service-04.webp") center / cover;
}

.page-hero--donate {
  background:
    linear-gradient(105deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.52)),
    url("../img/church-service-06.webp") center / cover;
}

.section {
  padding: clamp(70px, 9vw, 116px) 0;
}

.section--dark {
  background: var(--ink);
  color: var(--white);
}

.section--soft {
  background: var(--paper-2);
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
  text-transform: uppercase;
}

h1,
h2,
h3,
code,
.copy-field__value {
  overflow-wrap: anywhere;
}

p {
  color: var(--muted);
}

.section--dark p,
.section--dark .lead-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.intro-grid,
.content-grid,
.visit-grid,
.gallery-preview__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.72fr);
  gap: 56px;
  align-items: end;
}

.lead-copy p,
.rich-text p,
.feature-grid p,
.gallery-preview p,
.payment-note p {
  font-size: 17px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-dark);
  font-weight: 950;
  text-transform: uppercase;
}

.section--dark .text-link,
.event-card--dark .text-link {
  color: var(--gold-2);
}

.text-link::after {
  width: 44px;
  height: 2px;
  background: currentColor;
  content: "";
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.58fr);
  gap: 44px;
  align-items: end;
}

.section-heading--split p {
  margin: 0;
  font-size: 17px;
}

.service-strip,
.schedule-grid,
.cards-grid,
.events-grid,
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-strip article,
.schedule-card,
.info-card,
.event-card,
.values-grid article {
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-strip article {
  min-height: 230px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(160deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.62)),
    url("../img/church-service-03.webp") center / cover;
  color: var(--white);
}

.service-strip article:nth-child(2) {
  background:
    linear-gradient(160deg, rgba(17, 24, 39, 0.9), rgba(111, 141, 122, 0.58)),
    url("../img/church-service-04.webp") center / cover;
}

.service-strip article:nth-child(3) {
  background:
    linear-gradient(160deg, rgba(17, 24, 39, 0.9), rgba(199, 98, 80, 0.58)),
    url("../img/church-service-06.webp") center / cover;
}

.service-strip span,
.schedule-card span,
.event-card span,
.info-card span,
.values-grid span,
.ministry-list span {
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.service-strip span,
.values-grid span,
.event-card--dark span {
  color: var(--gold-2);
}

.service-strip strong {
  margin-top: 42px;
  font-size: 48px;
  line-height: 1;
}

.service-strip p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  text-transform: uppercase;
}

.feature-section {
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr);
  gap: 54px;
  align-items: center;
}

.feature-grid--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
}

.feature-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.church-logo {
  width: min(100%, 560px);
  height: auto;
  margin-top: 28px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.pastor-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 6vw, 78px);
  padding: clamp(38px, 6vw, 76px);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0 0, rgba(212, 168, 79, 0.2), transparent 38%),
    linear-gradient(135deg, var(--ink), var(--ink-2));
  color: var(--white);
  box-shadow: var(--shadow);
}

.pastor-card::after {
  position: absolute;
  right: -88px;
  bottom: -138px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(240, 207, 131, 0.22);
  border-radius: 50%;
  content: "";
}

.pastor-card__heading,
.pastor-card__body {
  position: relative;
  z-index: 1;
}

.pastor-card .section-kicker {
  color: var(--gold-2);
}

.pastor-card__welcome {
  max-width: 390px;
  margin: 28px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 800;
}

.pastor-card__body {
  align-self: end;
  padding-left: clamp(26px, 4vw, 54px);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.pastor-card__body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.75;
}

.pastor-card__body .btn {
  margin-top: 28px;
}

.feature-list,
.secure-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.feature-list span,
.secure-list span {
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: rgba(212, 168, 79, 0.12);
  color: var(--ink);
  font-weight: 800;
}

.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  min-height: 270px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--ink);
}

.info-card h3 {
  margin: 12px 0 8px;
}

.photo-stack {
  position: relative;
  min-height: 520px;
}

.photo-stack img {
  position: absolute;
  width: 72%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-stack img:first-child {
  top: 0;
  left: 0;
}

.photo-stack img:last-child {
  right: 0;
  bottom: 0;
}

.schedule-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.schedule-card {
  min-height: 270px;
  padding: 28px;
}

.schedule-card h2 {
  margin: 46px 0 16px;
  color: var(--ink);
  font-size: clamp(54px, 8vw, 82px);
}

.steps {
  display: grid;
  gap: 16px;
}

.steps article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.steps strong {
  color: var(--gold-dark);
  font-size: 24px;
}

.steps p {
  margin: 8px 0 0;
}

.values-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.values-grid article {
  min-height: 260px;
  padding: 26px;
  background: #182033;
}

.values-grid h3 {
  margin: 46px 0 12px;
}

.ministry-list {
  display: grid;
  gap: 24px;
}

.ministry-list article {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 22px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.ministry-list img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
}

.ministry-list h2 {
  margin-top: 8px;
}

.events-grid {
  align-items: stretch;
}

.event-card {
  min-height: 320px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.event-card h2 {
  margin: 22px 0 14px;
  font-size: clamp(28px, 3vw, 42px);
}

.event-card .text-link {
  margin-top: auto;
}

.event-card--dark {
  background: var(--ink);
  color: var(--white);
}

.event-card--dark p {
  color: rgba(255, 255, 255, 0.72);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.photo-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.photo-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 250ms ease;
}

.photo-grid figure:hover img {
  transform: scale(1.04);
}

.photo-grid figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-weight: 800;
}

.payment-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 34px;
  align-items: start;
}

.payment-form,
.payment-note,
.contact-form,
.contact-panel {
  padding: 28px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.payment-form,
.contact-form {
  display: grid;
  gap: 18px;
}

.payment-form label,
.contact-form label,
.form-block {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form label {
  display: block;
}

.form-explanation {
  margin: 0;
}

.payment-form input,
.payment-form select,
.payment-form textarea,
.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfaf7;
  color: var(--ink);
  outline: none;
  padding: 0 14px;
}

.payment-form textarea,
.contact-form textarea {
  min-height: 130px;
  padding: 14px;
  resize: vertical;
}

.payment-form input:focus,
.payment-form select:focus,
.payment-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 79, 0.22);
}

.amount-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.amount-row button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.amount-row button.is-selected {
  border-color: var(--gold);
  background: var(--gold);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 850;
}

.payment-note h2,
.contact-panel h2,
.contact-form h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3vw, 42px);
}

.contact-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-list strong {
  color: var(--gold-dark);
  text-transform: uppercase;
}

.contact-list a {
  color: var(--ink);
  font-weight: 850;
}

.footer {
  padding: 58px 0 26px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(200px, 0.55fr) minmax(260px, 0.7fr);
  gap: 42px;
}

.brand--footer .brand__mark {
  border-color: rgba(255, 255, 255, 0.24);
  background: var(--white);
}

.donation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: 54px;
  align-items: center;
}

.donation-cta h2 {
  margin-bottom: 22px;
}

.donation-cta > p {
  max-width: 720px;
  font-size: 17px;
}

.btn--large {
  min-height: 58px;
  margin: 18px 0 8px;
  padding: 16px 24px;
}

.donation-thanks {
  color: var(--ink);
  font-size: 20px !important;
  font-weight: 900;
}

.donation-qr {
  margin: 0;
  padding: 18px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.donation-qr img {
  width: 100%;
  height: auto;
}

.donation-qr figcaption {
  padding: 14px 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.requisites-card {
  padding: 30px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.requisites-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 26px;
}

.requisites-summary div,
.bank-card dl div {
  display: grid;
  gap: 4px;
}

.requisites-summary dt,
.bank-card dt,
.copy-field__label {
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.bank-card dt {
  color: var(--gold-2);
}

.requisites-summary dd,
.bank-card dd {
  margin: 0;
  font-weight: 800;
}

.copy-fields {
  display: grid;
  gap: 12px;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfaf7;
}

.copy-field__label {
  grid-column: 1 / -1;
}

.copy-field__value,
.bank-card code,
.international-details code {
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  font-weight: 800;
  word-break: break-word;
}

.copy-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--ink);
  color: var(--white);
  font-weight: 850;
  cursor: pointer;
}

.copy-feedback {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.copy-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bank-note {
  max-width: 860px;
  margin: 0 0 44px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
}

.currency-group + .currency-group {
  margin-top: 54px;
}

.currency-group > h3 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(26px, 3vw, 40px);
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.bank-card {
  padding: 26px;
  border-radius: 8px;
  background: #182033;
}

.bank-card__eyebrow {
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.bank-card h3 {
  margin: 14px 0 22px;
  font-size: clamp(22px, 2.5vw, 32px);
}

.bank-card dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.bank-card dd,
.international-details .section-heading p {
  color: rgba(255, 255, 255, 0.84);
}

.narrow-content {
  max-width: 900px;
}

.payment-safety p {
  font-size: 18px;
}

.brand--footer .brand__text strong {
  color: var(--white);
}

.brand--footer .brand__text small {
  color: rgba(255, 255, 255, 0.6);
}

.footer p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer__nav,
.footer__contacts {
  display: grid;
  gap: 12px;
}

.footer__nav a,
.footer__contacts a {
  color: var(--white);
  font-weight: 850;
}

.footer__bottom {
  margin-top: 42px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .site-header__inner {
    justify-content: space-between;
  }

  .menu-toggle {
    display: grid;
  }

  .header-action {
    display: none;
  }

  .nav {
    position: fixed;
    inset: 116px 16px auto;
    max-height: calc(100svh - 132px);
    display: none;
    padding: 18px;
    overflow: auto;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: grid;
    justify-content: stretch;
    gap: 4px;
  }

  .nav a {
    padding: 14px 4px;
  }

  .nav a::after {
    bottom: 8px;
  }

  .service-strip,
  .schedule-grid,
  .cards-grid,
  .events-grid,
  .values-grid,
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .values-grid article {
    min-height: 220px;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, 680px);
  }

  .topline__inner {
    min-height: 0;
    padding: 9px 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    min-height: 650px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(40px, 12vw, 68px);
  }

  .intro-grid,
  .content-grid,
  .visit-grid,
  .gallery-preview__grid,
  .feature-grid,
  .feature-grid--reverse,
  .ministry-list article,
  .payment-grid,
  .contact-grid,
  .section-heading--split,
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .donation-grid,
  .bank-grid,
  .requisites-summary {
    grid-template-columns: 1fr;
  }

  .feature-grid img {
    aspect-ratio: 16 / 11;
  }

  .pastor-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pastor-card__body {
    padding-top: 30px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 0;
  }

  .photo-stack {
    min-height: 420px;
  }

  .service-strip,
  .schedule-grid,
  .cards-grid,
  .events-grid,
  .values-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid img {
    aspect-ratio: 16 / 11;
  }

  .footer__bottom {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .topline__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .site-header__inner {
    min-height: 68px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    font-size: 21px;
  }

  .brand__text strong {
    font-size: 16px;
  }

  .brand__text small {
    font-size: 9px;
  }

  .nav {
    inset: 138px 12px auto;
  }

  .hero__actions,
  .btn {
    width: 100%;
  }

  .service-strip article,
  .schedule-card,
  .info-card,
  .event-card,
  .payment-form,
  .payment-note,
  .contact-panel,
  .contact-form {
    padding: 20px;
  }

  .requisites-card,
  .bank-card,
  .donation-qr {
    padding: 16px;
  }

  .pastor-card {
    padding: 26px 22px;
  }

  .pastor-card__body p {
    font-size: 16px;
  }

  .copy-field {
    grid-template-columns: 1fr;
  }

  .copy-field__label {
    grid-column: auto;
  }

  .amount-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
