:root {
  --bg: #f5f1ea;
  --bg-accent: #efe3d1;
  --ink: #1d1b16;
  --muted: #5b554a;
  --primary: #b25d2e;
  --primary-dark: #8b4522;
  --secondary: #1f4b4b;
  --cream: #fff7ec;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff5e2 0%, var(--bg) 55%, #efeae1 100%);
  min-height: 100vh;
  line-height: 1.6;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

main {
  display: flex;
  flex-direction: column;
  gap: 96px;
  padding: 60px 6vw 80px;
  max-width: 1320px;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 6vw;
  background: rgba(255, 247, 236, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(178, 93, 46, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff7ec;
  padding: 4px;
  box-shadow: var(--shadow);
}

.brand-mark {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  letter-spacing: 2px;
  background: var(--primary);
  color: #fff;
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.brand-title {
  font-family: "Playfair Display", serif;
  font-size: 18px;
}

.brand-tag {
  color: var(--muted);
  font-size: 14px;
}

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

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav a {
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: rgba(178, 93, 46, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(178, 93, 46, 0.2);
}

.nav .lang-switch {
  margin-left: 8px;
}

.lang-option {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-option.active {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  animation: riseIn 0.8s ease both;
}

.hero-text h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 4vw, 56px);
  margin-bottom: 12px;
}


.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 16px;
}

.hero-sub {
  color: var(--ink);
  font-size: 17px;
  max-width: 620px;
  margin-top: 18px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(178, 93, 46, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.hero-vision {
  margin-top: 10px;
  color: var(--secondary);
  font-size: 14px;
  max-width: 760px;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn.secondary {
  background: var(--secondary);
  color: #fff;
}

.btn.ghost {
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: var(--ink);
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-card {
  background: var(--cream);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.card-title {
  font-weight: 700;
  font-size: 16px;
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-note {
  color: var(--muted);
  font-size: 13px;
}

.card-note a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.card-label {
  color: var(--muted);
  font-size: 13px;
}

.card-value {
  font-weight: 600;
  font-size: 18px;
}

.pill {
  font-size: 11px;
  font-weight: 700;
  background: rgba(178, 93, 46, 0.15);
  color: var(--primary);
  padding: 6px 10px;
  border-radius: 999px;
}

.pill.soft {
  background: rgba(31, 75, 75, 0.15);
  color: var(--secondary);
}

.section {
  display: grid;
  gap: 32px;
  animation: riseIn 0.9s ease both;
}

.section-head {
  max-width: 640px;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-head h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(26px, 3vw, 40px);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}

.about-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.about-list li {
  background: #fff;
  padding: 16px 18px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.about-contact {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

#contacts {
  scroll-margin-top: 140px;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.about-text {
  max-width: 72ch;
}

.about-contact h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.about-identity-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.about-identity-list li {
  list-style: none;
}

.identity-item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(31, 75, 75, 0.08);
  border: 1px solid rgba(31, 75, 75, 0.2);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.identity-item.active {
  background: rgba(178, 93, 46, 0.16);
  border-color: rgba(178, 93, 46, 0.5);
}

.identity-description {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.sermon-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sermon-filter {
  border: 1px solid rgba(31, 75, 75, 0.28);
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.sermon-filter.active {
  background: rgba(178, 93, 46, 0.14);
  border-color: rgba(178, 93, 46, 0.55);
  color: var(--primary-dark);
}

.sermons-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 10px;
  max-width: 100%;
  overflow: hidden;
}

.sermons-viewport {
  overflow: hidden;
  max-width: 100%;
  border-radius: 20px;
  width: 100%;
}

.sermons-track {
  --sermon-gap: 20px;
  --sermon-cols: 3;
  display: flex;
  gap: var(--sermon-gap);
  transition: transform 0.35s ease;
  will-change: transform;
  align-items: stretch;
  width: 100%;
}

.media-card {
  background: #fff;
  padding: 22px;
  border-radius: 18px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.media-card h3 {
  font-size: 20px;
  margin: 10px 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.sermon-item {
  min-height: auto;
  flex: 0 0 calc((100% - (var(--sermon-gap) * (var(--sermon-cols) - 1))) / var(--sermon-cols));
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.sermons-carousel .carousel-btn {
  position: static;
  top: auto;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  z-index: 2;
  background: var(--primary);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: none;
}

.sermons-carousel .carousel-btn.prev {
  left: auto;
}

.sermons-carousel .carousel-btn.next {
  right: auto;
}

.sermon-quote {
  margin-top: auto;
  margin-left: 0;
  margin-right: 0;
  color: var(--secondary);
  font-weight: 500;
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
  padding: 12px 14px;
  background: rgba(31, 75, 75, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: 10px;
}

.sermon-audio {
  width: 100%;
  max-width: 100%;
  margin-top: 10px;
  border-radius: 12px;
}

.sermon-item .sermon-audio {
  margin-top: auto;
}

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.lessons-carousel {
  position: relative;
  padding: 0 clamp(34px, 4vw, 52px);
  max-width: 100%;
  overflow: hidden;
}

.lessons-viewport {
  overflow: hidden;
  width: 100%;
}

.lessons-track {
  --lesson-gap: 18px;
  --lesson-cols: 3;
  display: flex;
  gap: var(--lesson-gap);
  transition: transform 0.35s ease;
  will-change: transform;
  width: 100%;
}

.lesson-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: none;
  padding: 20px;
  display: grid;
  gap: 10px;
  flex: 0 0 calc((100% - (var(--lesson-gap) * (var(--lesson-cols) - 1))) / var(--lesson-cols));
  min-width: 0;
  overflow: hidden;
}

.lesson-card h3 {
  font-size: 20px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lesson-card p {
  color: var(--muted);
}

.lesson-card .btn {
  width: fit-content;
}

.lessons-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: var(--primary);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: none;
  z-index: 2;
}

.lessons-nav.prev {
  left: 0;
}

.lessons-nav.next {
  right: 0;
}

.lessons-nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.events-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 22px;
  align-items: start;
}

.events-layout.with-admin {
  grid-template-columns: minmax(260px, 320px) minmax(280px, 420px) 1fr;
}

.calendar-card {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calendar-month {
  font-weight: 700;
  text-transform: capitalize;
}

.calendar-nav {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-day {
  min-height: 64px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  cursor: pointer;
  position: relative;
  text-align: left;
  padding: 6px;
  display: grid;
  align-content: start;
  gap: 2px;
}

.calendar-day.muted {
  border: none;
  background: transparent;
  pointer-events: none;
}

.calendar-day.selected {
  background: rgba(178, 93, 46, 0.15);
  border-color: rgba(178, 93, 46, 0.5);
  color: var(--primary-dark);
  font-weight: 700;
}

.calendar-day.has-event {
  background: rgba(31, 75, 75, 0.12);
  border-color: rgba(31, 75, 75, 0.45);
}

.calendar-day.has-event .calendar-day-num {
  color: var(--secondary);
}

.calendar-day.has-event::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.calendar-day.has-event.selected {
  background: rgba(178, 93, 46, 0.22);
  border-color: rgba(178, 93, 46, 0.6);
}

.calendar-day-num {
  font-size: 12px;
  font-weight: 700;
}

.calendar-event-preview {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  color: var(--secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-event-more {
  display: inline-block;
  width: fit-content;
  font-size: 10px;
  color: var(--primary-dark);
}

.events-panel {
  display: grid;
  gap: 12px;
}

.events-panel h3 {
  font-size: 18px;
}

.event-list {
  display: grid;
  gap: 16px;
}

.event-item {
  background: #fff;
  padding: 20px;
  border-radius: 18px;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow);
}

.event-date {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

.events-admin {
  margin-top: 0;
  align-self: start;
}

.events-admin textarea,
.events-admin input {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 10px 12px;
  font-family: inherit;
}

.events-admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: none;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  border: none;
  min-width: 100%;
  height: 360px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
}

.slide-1 {
  background-image: linear-gradient(120deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.55)),
    url("https://images.unsplash.com/photo-1504052434569-70ad5836ab65?auto=format&fit=crop&w=1400&q=80");
}

.slide-2 {
  background-image: linear-gradient(120deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.55)),
    url("https://images.unsplash.com/photo-1511632765486-a01980e01a18?auto=format&fit=crop&w=1400&q=80");
}

.slide-3 {
  background-image: linear-gradient(120deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.55)),
    url("https://images.unsplash.com/photo-1504052434569-70ad5836ab65?auto=format&fit=crop&w=1400&q=80");
}

.slide-4 {
  background-image: linear-gradient(120deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.55)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1400&q=80");
}

.slide-overlay {
  background: rgba(255, 247, 236, 0.95);
  color: var(--ink);
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  background: rgba(255, 247, 236, 0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: none;
}

.carousel-btn.prev {
  left: 16px;
}

.carousel-btn.next {
  right: 16px;
}

.carousel-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.gallery-modal-content {
  width: min(1100px, calc(100% - 20px));
}

.gallery-modal-image {
  width: 100%;
  max-height: calc(100vh - 220px);
  object-fit: contain;
  border-radius: 12px;
  background: #f3eee6;
}

.gallery-modal-caption {
  margin-top: 10px;
  color: var(--muted);
}

.gallery-modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}

.contact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-top: 18px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea,
.prayer-form input,
.prayer-form textarea {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 12px 14px;
  font-family: inherit;
  background: #fff;
}

.donate-box {
  background: var(--bg-accent);
  padding: 26px;
  border-radius: 20px;
  display: grid;
  gap: 16px;
}

.donate-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.donate-note {
  color: var(--muted);
  font-size: 13px;
}

.prayer-form {
  display: grid;
  gap: 16px;
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.response-message {
  padding: 12px;
  background: rgba(31, 75, 75, 0.12);
  border-radius: 12px;
  color: var(--secondary);
}

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

.comments-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.comments-list {
  display: grid;
  gap: 12px;
}

.comment-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  display: grid;
  gap: 8px;
}

.comment-meta {
  font-weight: 600;
  color: var(--secondary);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.comment-text {
  color: var(--muted);
}

.comment-date {
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
}

.comment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.pray-button {
  border: 1px solid rgba(31, 75, 75, 0.2);
  background: transparent;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.pray-button img {
  width: 22px;
  height: 22px;
  filter: grayscale(1) brightness(0.7);
  transition: filter 0.2s ease;
}

.pray-button.active {
  background: rgba(178, 93, 46, 0.15);
  border-color: rgba(178, 93, 46, 0.5);
}

.pray-button.active img {
  filter: none;
}

.pray-count {
  font-weight: 600;
  color: var(--secondary);
  min-width: 24px;
  text-align: center;
}

.comment-delete {
  background: transparent;
  border: 1px solid rgba(178, 93, 46, 0.35);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.comments-empty {
  color: var(--muted);
  font-size: 14px;
}

.comments-more {
  width: fit-content;
}

.admin-panel {
  margin-top: 12px;
  display: none;
  gap: 10px;
  background: var(--bg-accent);
  padding: 16px;
  border-radius: 16px;
}

.admin-panel input {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 10px 12px;
  font-family: inherit;
}

#adminPasswordModal .modal-content {
  display: grid;
  gap: 12px;
}

#adminPasswordModal input {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 10px 12px;
  font-family: inherit;
}

.site-footer {
  text-align: center;
  padding: 24px 6vw 40px;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 30;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 24px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.modal-kicker {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.beliefs-text {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.beliefs-text p {
  background: #fffaf3;
  border: 1px solid rgba(178, 93, 46, 0.2);
  border-radius: 12px;
  padding: 12px;
}

.footer-tag {
  font-size: 14px;
}

.footer-rights {
  margin-top: 8px;
  font-size: 12px;
}

@media (max-width: 1200px) {
  .site-header {
    padding: 18px 4vw;
  }

  main {
    padding: 52px 4vw 72px;
    gap: 84px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 1fr);
    gap: 32px;
  }

  .hero-card {
    padding: 24px;
  }
}

@media (max-width: 1024px) {
  .logo {
    width: 86px;
    height: 86px;
  }

  .brand-title {
    font-size: 16px;
  }

  .brand-tag {
    font-size: 13px;
  }

  .nav {
    gap: 12px;
    font-size: 13px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-text h1 {
    font-size: clamp(32px, 6vw, 48px);
  }

  .hero-vision {
    font-size: 13px;
  }

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

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

  .events-layout,
  .events-layout.with-admin {
    grid-template-columns: 1fr;
  }

  .calendar-day {
    min-height: 58px;
  }

  .sermons-track {
    --sermon-cols: 2;
  }

  .lessons-track {
    --lesson-cols: 2;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
  }

  .nav {
    justify-content: center;
  }

  .events-layout {
    grid-template-columns: 1fr;
  }

  .events-layout.with-admin {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 768px) {
  .site-header {
    grid-template-columns: 1fr auto;
    justify-items: start;
    padding: 14px 5vw;
  }

  .burger {
    display: inline-flex;
  }

  .logo {
    width: 74px;
    height: 74px;
  }

  .brand-tag {
    display: none;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    width: min(560px, 100%);
    justify-self: center;
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 247, 236, 0.98);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(178, 93, 46, 0.15);
  }

  .nav.open {
    display: flex;
  }

  .lang-switch {
    width: auto;
    justify-content: center;
    margin-top: 8px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 220px;
  }

  .about-contact {
    padding: 18px;
  }

  .prayer-form {
    padding: 18px;
  }

  .comments-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-content {
    width: calc(100% - 16px);
    margin: 12px auto;
    padding: 18px;
  }
}

@media (max-width: 600px) {
  main {
    padding: 32px 4vw 48px;
    gap: 56px;
  }

  .hero {
    gap: 22px;
  }

  .hero-text h1 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .hero-sub {
    font-size: 15px;
    padding: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    flex: 1 1 auto;
  }

  .hero-card {
    padding: 18px;
    gap: 14px;
  }

  .card-row {
    align-items: flex-start;
    gap: 8px;
  }

  .card-value {
    font-size: 16px;
  }

  .calendar-day {
    min-height: 48px;
    padding: 5px;
  }

  .calendar-event-preview,
  .calendar-event-more {
    display: none;
  }

  .event-item {
    padding: 16px;
  }

  .events-admin-actions .btn {
    width: 100%;
  }

  .sermons-track {
    --sermon-cols: 1;
  }

  .lessons-track {
    --lesson-cols: 1;
  }

  .carousel .carousel-btn {
    display: none;
  }

  .sermons-carousel .carousel-btn {
    display: inline-flex;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .lessons-carousel,
  .sermons-carousel {
    gap: 8px;
  }

  .sermons-carousel {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }
}

@media (max-width: 420px) {
  .sermons-carousel .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .sermons-carousel {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding: 12px 4vw;
    gap: 10px;
  }

  .logo {
    width: 64px;
    height: 64px;
  }

  .brand-title {
    font-size: 15px;
  }

  .lang-option {
    padding: 5px 10px;
  }

  .hero-kicker,
  .section-kicker {
    font-size: 11px;
    letter-spacing: 1.3px;
  }

  .modal-content {
    padding: 14px;
  }

  .comment-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .comment-actions {
    justify-content: flex-start;
  }
}
