:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #181818;
  --muted: #686868;
  --line: #e7e7e2;
  --accent: #0d5f62;
  --accent-dark: #0b3f41;
  --accent-soft: #e1f0ee;
  --green: #0d5f62;
  --sand: #ece7dc;
  --shadow: 0 18px 42px rgba(20, 20, 20, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(247, 247, 245, 0.92);
  border-bottom: 1px solid rgba(231, 231, 226, 0.88);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 56px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent-dark);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 24, 25, 0.86), rgba(8, 24, 25, 0.58) 44%, rgba(8, 24, 25, 0.2)),
    linear-gradient(180deg, rgba(8, 24, 25, 0.1), rgba(8, 24, 25, 0.26));
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 88px);
  padding: 72px 0;
  color: #fffdf8;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #d8f1ed;
}

.hero-church-name {
  margin: 0 0 14px;
  color: rgba(255, 253, 248, 0.82);
  font-size: clamp(14px, 1.6vw, 21px);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: clamp(24px, 3.65vw, 49px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: clamp(31px, 4vw, 52px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 23px;
  line-height: 1.12;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: #ffffff;
  color: var(--accent-dark);
}

.button.secondary {
  border-color: rgba(255, 253, 248, 0.62);
  color: #fffdf8;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 82px 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.45;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 900;
}

.card p,
.donate p,
.contacts p {
  color: var(--muted);
}

.schedule {
  width: 100%;
  max-width: none;
  padding-right: clamp(18px, 5vw, 64px);
  padding-left: clamp(18px, 5vw, 64px);
  background: var(--sand);
}

.section-heading {
  width: min(1120px, 100%);
  margin: 0 auto 30px;
}

.schedule-list {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto;
  gap: 14px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 220px 260px 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid rgba(13, 95, 98, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.schedule-item time {
  color: var(--accent-dark);
  font-weight: 800;
}

.schedule-item span {
  color: var(--muted);
}

.feature-section {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.feature-section.reverse {
  grid-template-columns: minmax(280px, 0.8fr) minmax(280px, 1fr);
}

.feature-section.reverse .feature-text {
  order: 2;
}

.feature-section.reverse .feature-panel {
  order: 1;
}

.feature-text {
  padding: clamp(28px, 5vw, 52px);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-text p {
  color: var(--muted);
  font-size: 18px;
}

.feature-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: clamp(28px, 5vw, 42px);
  border-radius: 8px;
  background: var(--accent-dark);
  color: #ffffff;
}

.feature-panel > * {
  position: relative;
  z-index: 1;
}

.feature-panel.image-panel {
  background-position: center;
  background-size: cover;
}

.feature-panel.image-panel::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(8, 24, 25, 0.12), rgba(8, 24, 25, 0.78));
  content: "";
}

.groups-panel {
  background-image: url("assets/groups-bible.jpg");
}

.feature-panel.light {
  background: #dcece9;
  color: var(--accent-dark);
}

.feature-panel.faith-panel {
  background-image: url("assets/faith-basics.webp");
  background-position: center;
  background-size: cover;
  color: var(--accent-dark);
}

.feature-panel.faith-panel::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.82));
}

.feature-panel span {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feature-panel.light span {
  background: rgba(13, 95, 98, 0.12);
}

.feature-panel strong {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.feature-panel p {
  max-width: 520px;
  margin: 0;
  color: inherit;
  opacity: 0.8;
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: none;
}

.text-link::after {
  content: " ->";
}

.donate {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(320px, 1.25fr);
  gap: 42px;
  align-items: start;
  width: 100%;
  max-width: none;
  padding-right: clamp(18px, 5vw, 64px);
  padding-left: clamp(18px, 5vw, 64px);
  background: #eef3f1;
}

.donate-intro,
.requisites-card {
  width: 100%;
  max-width: 760px;
}

.donate-intro {
  justify-self: end;
}

.donation-qr {
  display: grid;
  width: fit-content;
  max-width: 100%;
  gap: 12px;
  margin: 28px 0 0;
  padding: 18px;
  border: 1px solid rgba(13, 95, 98, 0.14);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.donation-qr img {
  display: block;
  width: min(230px, 100%);
  height: auto;
}

.donation-qr figcaption {
  max-width: 230px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.requisites-card {
  padding: 26px;
  border: 1px solid rgba(13, 95, 98, 0.14);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.requisites-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.requisites-list div {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.requisites-list div:last-child {
  border-bottom: 0;
}

.requisites-list dt {
  color: var(--muted);
  font-weight: 750;
}

.requisites-list dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.contacts {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 380px);
  gap: 42px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.contact-box {
  display: grid;
  gap: 12px;
  padding: 26px;
  border-radius: 8px;
  background: var(--accent-dark);
  color: #fffdf8;
  font-style: normal;
}

.contact-box a {
  color: #fffdf8;
}

.map-section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 82px;
}

.map-frame {
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 620px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(8, 24, 25, 0.82), rgba(8, 24, 25, 0.42));
  }

  .hero-content {
    margin: 0 auto;
  }

  .intro,
  .feature-section,
  .feature-section.reverse,
  .donate,
  .contacts {
    grid-template-columns: 1fr;
  }

  .feature-section.reverse .feature-text,
  .feature-section.reverse .feature-panel {
    order: initial;
  }

  .donate-intro {
    justify-self: stretch;
    max-width: none;
  }

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

  .schedule-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .requisites-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 540px) {
  .hero {
    min-height: 580px;
  }

  h1 {
    font-size: 24px;
    letter-spacing: 0;
  }

  .section {
    padding: 58px 0;
  }

  .schedule,
  .donate,
  .map-section {
    padding-top: 58px;
    padding-right: 28px;
    padding-bottom: 58px;
    padding-left: 28px;
  }

  .schedule-item {
    padding: 20px;
  }

  .map-frame {
    height: 430px;
  }

  .requisites-card {
    padding: 18px;
  }

  .donation-qr {
    padding: 16px;
  }

  .button {
    width: 100%;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}
