/* ====== Tokens - warm Tatar palette ====== */
:root {
  /* Тёплый фон */
  --bg: #f6efe1;          /* основной молочно-охровый */
  --bg-warm: #f0e6cf;     /* тёплый песочный */
  --bg-deep: #e6d6b3;     /* охра */
  --bg-cream: #faf5e8;
  --surface: #fffaef;

  --ink: #221a10;
  --ink-2: #463826;
  --muted: #75664e;
  --line: #e0d2b3;
  --line-soft: #ebdfc4;

  /* Тёмный изумруд + татарский нефритовый */
  --green: #0d5b46;
  --green-2: #137556;
  --green-dark: #073829;
  --navy: #11253a;

  /* Тёплое золото / терракота - татарский акцент */
  --gold: #b8893d;
  --gold-2: #d8b070;
  --gold-soft: #efdbab;
  --terracotta: #b65b3a;

  --serif: "Fraunces", "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Amiri", "Fraunces", serif;

  --container: 1240px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(34, 26, 16, 0.06);
  --shadow-md: 0 14px 40px rgba(34, 26, 16, 0.1);
  --shadow-lg: 0 30px 70px rgba(34, 26, 16, 0.14);

  --header-h: 82px;

  /* ====== Tatar–Islamic ornament tiles (subtle watermarks) ====== */
  --ornament-star: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g fill='none' stroke='%23b8893d' stroke-width='0.8' stroke-linejoin='round' stroke-opacity='0.85'><path d='M60 10 L68 38 L96 30 L80 56 L106 66 L78 70 L82 100 L60 84 L38 100 L42 70 L14 66 L40 56 L24 30 L52 38 Z'/><path d='M60 28 L64 44 L80 40 L72 56 L86 62 L70 64 L72 80 L60 72 L48 80 L50 64 L34 62 L48 56 L40 40 L56 44 Z'/><circle cx='60' cy='60' r='3'/></g></svg>");
  --ornament-trellis: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'><g fill='none' stroke='%230d5b46' stroke-width='0.7' stroke-opacity='0.22'><path d='M32 0 L64 32 L32 64 L0 32 Z'/><path d='M32 12 L52 32 L32 52 L12 32 Z'/></g></svg>");
  --ornament-band: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='96' height='20' viewBox='0 0 96 20'><g fill='none' stroke='%23b8893d' stroke-width='0.9' stroke-linecap='round' stroke-linejoin='round' stroke-opacity='0.55'><path d='M0 10 H24 M72 10 H96'/><path d='M24 10 C30 2 38 2 48 10 C58 18 66 18 72 10'/><path d='M36 10 C40 6 44 6 48 10 C52 14 56 14 60 10'/><path d='M48 3 V17'/></g></svg>");
}

/* ====== Reset ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}
[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 8% 6%, rgba(184, 137, 61, 0.08), transparent 28rem),
    radial-gradient(circle at 92% 16%, rgba(13, 91, 70, 0.06), transparent 30rem),
    var(--ornament-trellis);
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: auto, auto, 176px 176px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}
html.nav-open,
body.nav-open {
  overflow: hidden;
  touch-action: none;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
}

/* ====== Container ====== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(28px, env(safe-area-inset-left, 0px));
  padding-right: max(28px, env(safe-area-inset-right, 0px));
}

/* ====== Typography ====== */
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0 0 0.6em;
  font-variation-settings: "opsz" 96, "SOFT" 50;
}
h1 {
  font-size: clamp(2.6rem, 4.6vw + 0.6rem, 5.2rem);
  font-weight: 300;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(2rem, 2.4vw + 1rem, 3.2rem);
  font-weight: 400;
}
h3 {
  font-size: 1.45rem;
  font-weight: 500;
}
h4 {
  font-size: 0.85rem;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 600;
}
p {
  margin: 0 0 1em;
  color: var(--ink-2);
}
.muted {
  color: var(--muted);
}
em {
  font-style: italic;
  color: var(--green);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terracotta);
  padding-bottom: 14px;
  position: relative;
  margin-bottom: 18px;
}
.kicker::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.kicker--gold {
  color: var(--gold-2);
}
.kicker--gold::after {
  background: var(--gold-2);
}

.eyebrow {
  font-family: var(--arabic);
  font-size: 1.6rem;
  color: var(--gold);
  margin: 0 0 22px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--green);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, gap 0.2s ease;
}
.link-arrow:hover {
  color: var(--terracotta);
  gap: 10px;
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn--lg {
  padding: 16px 32px;
  font-size: 0.96rem;
}
.btn--primary {
  background: var(--green);
  color: #fff;
}
.btn--primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--secondary {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn--secondary:hover {
  background: var(--green);
  color: #fff;
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(34, 26, 16, 0.2);
}
.btn--outline:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(13, 91, 70, 0.04);
}
.btn--ghost-light {
  background: transparent;
  color: #f6efe1;
  border-color: rgba(246, 239, 225, 0.3);
}
.btn--ghost-light:hover {
  border-color: var(--gold-2);
  color: var(--gold-2);
}
.btn--gold {
  background: var(--gold);
  color: #fff;
}
.btn--gold:hover {
  background: #9c721f;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ====== Topbar ====== */
.topbar {
  background: var(--green-dark);
  color: #efdfb8;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 5;
  overflow: hidden;
}
.topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 20px;
  background-image: var(--ornament-band);
  background-repeat: repeat-x;
  background-size: 96px 20px;
  opacity: 0.18;
  pointer-events: none;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: 16px;
}
.topbar__date .dot {
  margin: 0 10px;
  opacity: 0.4;
}
.topbar__city {
  opacity: 0.75;
}
.topbar__links {
  display: flex;
  gap: 14px;
  align-items: center;
}
.topbar__links a {
  opacity: 0.85;
}
.topbar__links a:hover {
  color: var(--gold-2);
  opacity: 1;
}
.topbar__links--page {
  font-size: 0.78rem;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.topbar__sep {
  opacity: 0.3;
}

/* ====== Header ====== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(rgba(246, 239, 225, 0.94), rgba(246, 239, 225, 0.94)),
    var(--ornament-trellis);
  background-size: auto, 148px 148px;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease,
    background 0.3s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--green);
}
.logo__mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  object-fit: contain;
  display: block;
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo__title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.logo__sub {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 500;
}
.logo--light .logo__title {
  color: #f6efe1;
}
.logo--light .logo__sub {
  color: rgba(246, 239, 225, 0.6);
}
.logo--light {
  color: var(--gold-2);
}

.nav {
  display: flex;
  gap: 30px;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-2);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease, left 0.25s ease;
}
.nav a:hover {
  color: var(--green);
}
.nav a:hover::after {
  width: 100%;
  left: 0;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.6px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.nav__donate-mobile {
  display: none;
  margin-top: 8px;
  padding: 14px 18px !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  text-align: center;
  font-weight: 600;
  color: var(--green) !important;
  background: var(--bg-cream);
}
.nav__donate-mobile::after {
  display: none !important;
}

.nav-backdrop {
  display: none;
}

/* Mobile drawer (panel head hidden on desktop) */
.nav__panel-head {
  display: none;
}
.nav__close {
  display: none;
}

/* ====== HERO - split-layout ====== */
.hero {
  position: relative;
  padding: 70px 0 90px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
  z-index: 1;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 90% 0%, rgba(184, 137, 61, 0.12), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(13, 91, 70, 0.08), transparent 50%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero__text {
  position: relative;
  z-index: 2;
}
.hero__title {
  color: var(--ink);
  margin-bottom: 28px;
}
.hero__title em {
  font-style: italic;
  color: var(--green);
}
.hero__lead {
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.18rem);
  color: var(--ink-2);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero__meta-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.hero__meta-value {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  font-weight: 500;
}

/* Hero media composition */
.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.hero__photo {
  position: absolute;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(216, 176, 112, 0.42);
  border-radius: calc(var(--radius-lg) - 8px);
  background-image: var(--ornament-band);
  background-repeat: repeat-x;
  background-size: 96px 20px;
  background-position: top left;
  opacity: 0.65;
  pointer-events: none;
}
.hero__photo--main {
  inset: 0 0 0 0;
  background-position: center top;
  background-image:
    linear-gradient(180deg, rgba(7, 56, 41, 0.0) 60%, rgba(7, 56, 41, 0.25)),
    url("/assets/home/mosque-facade-0e4c4566.webp");
}
.hero__badge {
  position: absolute;
  top: 30px;
  right: -30px;
  width: 110px;
  height: 110px;
  background: var(--surface);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  box-shadow: var(--shadow-md);
  z-index: 3;
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-align: center;
  line-height: 1.2;
  font-weight: 600;
  color: var(--green);
}
.hero__badge svg {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  color: var(--gold);
  opacity: 0.7;
}
.hero__badge span {
  position: relative;
  z-index: 1;
}
.hero__tulip {
  position: absolute;
  bottom: -60px;
  right: 30px;
  width: 80px;
  height: 110px;
  color: var(--terracotta);
  opacity: 0.5;
  z-index: 0;
}

/* ====== Ticker ====== */
.ticker {
  background: var(--green-dark);
  color: var(--gold-2);
  overflow: hidden;
  border-top: 1px solid rgba(216, 176, 112, 0.15);
  border-bottom: 1px solid rgba(216, 176, 112, 0.15);
  position: relative;
  z-index: 2;
}
.ticker__track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  animation: tickerScroll 35s linear infinite;
  width: max-content;
}
.ticker__track span {
  opacity: 0.85;
}
.ticker__track span:nth-child(odd) {
  color: var(--gold-2);
}
@keyframes tickerScroll {
  to {
    transform: translateX(-50%);
  }
}

/* ====== Section heads ====== */
.section-head {
  margin-bottom: 60px;
  max-width: 760px;
}
.section-head--center {
  margin: 0 auto 60px;
  text-align: center;
}
.section-head--center .kicker::after {
  left: 50%;
  transform: translateX(-50%);
}
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.section-head--row h2 {
  margin-bottom: 0;
}
.section-head--stack-mobile {
  align-items: flex-start;
}

/* ====== Prayer ====== */
.prayer {
  padding: 110px 0;
  position: relative;
  background:
    linear-gradient(rgba(255, 250, 239, 0.94), rgba(255, 250, 239, 0.94)),
    var(--ornament-trellis);
  background-size: auto, 160px 160px;
  z-index: 1;
}
.prayer__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
.prayer__card {
  background: var(--bg-cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.prayer__card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -32px;
  width: 92px;
  height: 92px;
  background-image: var(--ornament-star);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.08;
  pointer-events: none;
}
.prayer__card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.prayer__name {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 16px;
}
.prayer__time {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 6px;
}
.prayer__azan {
  font-size: 0.78rem;
  color: var(--green);
  letter-spacing: 0.06em;
}
.prayer__card--active {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  border-color: var(--green);
  color: #fff;
  box-shadow: var(--shadow-md);
  position: relative;
}
.prayer__card--active::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 0 4px rgba(216, 176, 112, 0.2);
  animation: pulse 2s ease-in-out infinite;
}
.prayer__card--active::after {
  opacity: 0.15;
  mix-blend-mode: screen;
}
@keyframes pulse {
  50% { box-shadow: 0 0 0 8px rgba(216, 176, 112, 0); }
}
.prayer__card--active .prayer__name,
.prayer__card--active .prayer__time { color: #fff; }
.prayer__card--active .prayer__name { color: var(--gold-2); }
.prayer__card--active .prayer__azan { color: var(--gold-2); }

.prayer__footer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.prayer__footer p { margin: 0; }

/* ====== Prayer times page ====== */
.header--solid {
  background: rgba(255, 250, 239, 0.96);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.nav a.is-active {
  color: var(--green);
  font-weight: 600;
}
.prayertime-page {
  padding: 48px 0 96px;
  position: relative;
  z-index: 1;
}
.sermons--standalone {
  padding-top: 48px;
}
.sermons__page-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin: 0 0 12px;
}
.section-head--row .sermons__page-title {
  margin-bottom: 0;
}
.prayertime-page__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin: 0 0 12px;
}
.prayertime__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 36px 0 28px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background-image:
    linear-gradient(rgba(255, 250, 239, 0.96), rgba(255, 250, 239, 0.96)),
    var(--ornament-band);
  background-repeat: no-repeat, repeat-x;
  background-size: auto, 96px 20px;
  background-position: center, top left;
}
.prayertime__field {
  flex: 1 1 280px;
}
.prayertime__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 10px;
}
.prayertime__select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-cream);
  color: var(--ink);
  font: inherit;
}
.prayertime__nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.prayertime__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-cream);
  font-size: 1.1rem;
  transition: all 0.2s ease;
}
.prayertime__nav-btn:hover {
  border-color: var(--green);
  color: var(--green);
}
.prayertime__period {
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.prayertime-table-wrap {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.prayertime-table-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 20px;
  background-image: var(--ornament-band);
  background-repeat: repeat-x;
  background-size: 96px 20px;
  opacity: 0.28;
  pointer-events: none;
}
.prayertime-table__caption {
  margin: 0;
  padding: 20px 24px;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line-soft);
}
.prayertime-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.prayertime-table thead th {
  background: var(--bg-warm);
  color: var(--ink-2);
  font-weight: 600;
  text-align: center;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.prayertime-table tbody th,
.prayertime-table tbody td {
  padding: 11px 10px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}
.prayertime-table tbody th {
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
}
.prayertime-table tbody tr:nth-child(even) td,
.prayertime-table tbody tr:nth-child(even) th[scope="row"] {
  background: rgba(250, 245, 232, 0.55);
}
.prayertime-table__row--today th,
.prayertime-table__row--today td {
  background: rgba(13, 91, 70, 0.1) !important;
}
.prayertime-table__row--today th[scope="row"] {
  color: var(--green);
}
.prayertime__empty {
  margin: 0;
  padding: 32px 24px;
  color: var(--muted);
}
.footer--compact {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  z-index: 1;
}

/* ====== Hadith of the day ====== */
.hadith {
  padding: 110px 0;
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-deep) 100%);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.hadith::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(184, 137, 61, 0.12), transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(13, 91, 70, 0.08), transparent 55%);
  pointer-events: none;
}
.hadith__inner {
  position: relative;
  max-width: 880px;
  text-align: center;
}
.hadith__header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 36px;
}
.hadith__header .kicker {
  margin-bottom: 14px;
}
.hadith__date {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.hadith__quote {
  position: relative;
  z-index: 1;
  margin: 0 0 36px;
  padding: 50px 40px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.hadith__quote::before,
.hadith__quote::after {
  position: absolute;
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 1;
  color: var(--gold-soft);
  font-weight: 400;
}
.hadith__quote::before {
  content: "“";
  top: 8px;
  left: 22px;
}
.hadith__quote::after {
  content: "”";
  bottom: -28px;
  right: 22px;
}
.hadith__arabic {
  font-family: var(--arabic);
  font-size: clamp(1.7rem, 2.2vw + 1rem, 2.6rem);
  line-height: 1.9;
  color: var(--ink);
  margin: 0 0 28px;
  font-weight: 400;
}
.hadith__translation {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 0.6vw + 1rem, 1.45rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 640px;
  margin: 0 auto 28px;
  font-weight: 400;
}
.hadith__source {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.hadith__narrator {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-2);
  font-weight: 500;
}
.hadith__abbr {
  font-family: var(--arabic);
  color: var(--gold);
  font-size: 1rem;
  margin-left: 4px;
}
.hadith__book {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.hadith__book em {
  font-style: italic;
  color: var(--terracotta);
}
.hadith__comment {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto 36px;
  font-size: 0.96rem;
  color: var(--ink-2);
  line-height: 1.7;
}
.hadith__comment strong {
  color: var(--green);
  font-weight: 600;
}
.hadith__actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

@media (max-width: 760px) {
  .hadith { padding: 70px 0; }
  .hadith__quote {
    padding: 36px 24px;
  }
  .hadith__quote::before { top: 0; left: 12px; font-size: 4rem; }
  .hadith__quote::after { bottom: -20px; right: 12px; font-size: 4rem; }
}

/* ====== About ====== */
.about {
  padding: 70px 0;
  position: relative;
  z-index: 1;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.about__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.about__photo {
  position: absolute;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.about__photo::after,
.madrasa__photo::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(216, 176, 112, 0.38);
  border-radius: calc(var(--radius-lg) - 8px);
  background-image: var(--ornament-band);
  background-repeat: repeat-x;
  background-size: 96px 20px;
  background-position: bottom left;
  opacity: 0.55;
  pointer-events: none;
}
.about__photo--1 {
  inset: 0;
  background-position: center 85%;
  background-image: linear-gradient(180deg, rgba(13, 91, 70, 0.05), rgba(13, 91, 70, 0.2)),
    url("/assets/home/mosque-aerial-e2066089.webp");
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about__more {
  margin-top: 8px;
}
.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}
.stat__label {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ====== SERMONS / VIDEOS ====== */
.sermons {
  padding: 70px 0;
  background: var(--bg-warm);
  position: relative;
  z-index: 1;
}
.sermons__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: all 0.2s ease;
  font-family: var(--sans);
}
.chip:hover {
  border-color: var(--green);
  color: var(--green);
}
.chip.is-active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.sermons__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.sermon {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sermon__thumb {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  background-color: var(--green-dark);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.sermon__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 56, 41, 0.1) 30%, rgba(7, 56, 41, 0.7) 100%);
}
.sermon__thumb:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.sermon__thumb:hover .sermon__play {
  background: var(--gold);
  transform: translate(-50%, -50%) scale(1.05);
}
.sermon__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 250, 239, 0.95);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  transition: all 0.3s ease;
  z-index: 1;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.sermon__play svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
}
.sermon__duration {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(7, 56, 41, 0.85);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 1;
  font-variant-numeric: tabular-nums;
}
.sermon__live {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--gold);
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 1;
}
.sermon__live--tat {
  background: var(--terracotta);
}
.sermon__body {
  padding: 0 4px;
}
.sermon__meta {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: block;
}
.sermon__title {
  font-size: 1.25rem;
  margin-bottom: 8px;
  line-height: 1.25;
}
.sermon__title:hover {
  color: var(--green);
}
.sermon p {
  font-size: 0.93rem;
  margin: 0;
  color: var(--ink-2);
}
.sermons__empty {
  margin: 48px 0 0;
  text-align: center;
}
.video-modal[hidden] {
  display: none;
}
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 56, 41, 0.72);
}
.video-modal__dialog {
  position: relative;
  width: min(960px, 100%);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}
.video-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-warm);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.video-modal__title {
  margin: 0 48px 16px 0;
  font-size: 1.2rem;
}
.video-modal__player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background: #000;
}
.video-modal__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
body.video-modal-open {
  overflow: hidden;
}
.sermons__footer {
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ====== Madrasa «Shamil» ====== */
.madrasa {
  padding: 130px 0;
  background: var(--bg);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.madrasa::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 137, 61, 0.14), transparent 70%);
  pointer-events: none;
}
.madrasa__grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 80px;
  align-items: center;
}

.madrasa__media {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 6;
  overflow: visible;
  border-radius: var(--radius-lg);
}
.madrasa__photo {
  position: absolute;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.madrasa__photo--main {
  inset: 0;
  background-image: linear-gradient(180deg, rgba(7, 56, 41, 0) 60%, rgba(7, 56, 41, 0.25)),
    url("/assets/home/madrasa-entrance-55220ce1.webp");
}
.madrasa__sticker {
  position: absolute;
  top: 16px;
  right: 12px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  width: 136px;
  height: 136px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  z-index: 3;
  box-shadow: var(--shadow-md);
  padding: 14px 12px;
}
.madrasa__sticker-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--gold-2);
  line-height: 1;
}
.madrasa__sticker-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  max-width: 7.5em;
}

.madrasa__lead {
  font-size: 1.06rem;
  color: var(--ink-2);
  margin-bottom: 32px;
  max-width: 560px;
}

.madrasa__features {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}
.madrasa__features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.madrasa__feature-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--bg-cream);
  color: var(--green);
  border: 1px solid var(--line-soft);
}
.madrasa__feature-icon svg {
  width: 20px;
  height: 20px;
}
.madrasa__features strong {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.madrasa__features span {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.madrasa__contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 24px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.madrasa__contact-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.madrasa__contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
}
.madrasa__contact-value {
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.4;
  word-break: break-word;
}
.madrasa__contact-value a {
  color: var(--green);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.madrasa__contact-value a:hover {
  border-bottom-color: var(--green);
}

.madrasa__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 1024px) {
  .madrasa__grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .madrasa__media {
    max-width: 520px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }
}
@media (max-width: 760px) {
  .madrasa { padding: 80px 0; }
  .madrasa__features {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .madrasa__contact {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .madrasa__sticker {
    width: 118px;
    height: 118px;
    right: 8px;
    top: 10px;
    padding: 12px 10px;
  }
  .madrasa__sticker-num { font-size: 1.8rem; }
  .madrasa__sticker-label { font-size: 0.6rem; }
}

/* ====== Services ====== */
.services {
  padding: 70px 0;
  background:
    linear-gradient(rgba(255, 250, 239, 0.96), rgba(255, 250, 239, 0.96)),
    var(--ornament-trellis);
  background-size: auto, 168px 168px;
  position: relative;
  z-index: 1;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service {
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.service::after {
  content: "";
  position: absolute;
  top: -38px;
  right: -36px;
  width: 116px;
  height: 116px;
  background-image: var(--ornament-star);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.07;
  pointer-events: none;
}
.service > * {
  position: relative;
  z-index: 1;
}
.service:hover {
  border-color: var(--gold-soft);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service__icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--bg-deep);
  color: var(--green);
  margin-bottom: 24px;
  transition: all 0.3s ease;
}
.service:hover .service__icon {
  background: var(--green);
  color: var(--gold-2);
}
.service__icon svg {
  width: 28px;
  height: 28px;
}
.service h3 {
  margin-bottom: 10px;
}
.service p {
  flex: 1;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* ====== Галерея ====== */
.gallery {
  padding: 70px 0;
}
.gallery__groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.gallery__groups .ornament {
  padding: 8px 0;
}
.gallery__group-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}
.gallery__group-head p {
  margin: 0;
  font-size: 0.92rem;
}

/* ====== Тизер галереи (главная) ====== */
.gallery-teaser {
  padding: 70px 0;
}
.gallery-teaser__link {
  white-space: nowrap;
}
.gallery-teaser__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-teaser__item {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-teaser__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.gallery-teaser__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-teaser__item:hover img {
  transform: scale(1.06);
}
.gallery-teaser__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 18px 16px;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.15rem;
  background: linear-gradient(180deg, rgba(7, 56, 41, 0) 40%, rgba(7, 56, 41, 0.75));
}

/* ====== Events ====== */
.events {
  padding: 70px 0;
  background:
    linear-gradient(rgba(240, 230, 207, 0.94), rgba(240, 230, 207, 0.94)),
    var(--ornament-trellis);
  background-size: auto, 168px 168px;
  position: relative;
  z-index: 1;
}
.events__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.event {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  gap: 24px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.event::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -34px;
  width: 108px;
  height: 108px;
  background-image: var(--ornament-star);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.06;
  pointer-events: none;
}
.event > * {
  position: relative;
  z-index: 1;
}
.event:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.event__date {
  flex: 0 0 72px;
  text-align: center;
  background: var(--green);
  color: #fff;
  border-radius: 12px;
  padding: 14px 8px;
  height: fit-content;
}
.event__day {
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1;
}
.event__month {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 4px;
  color: var(--gold-2);
}
.event__tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
  font-weight: 700;
}
.event h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.event__body {
  min-width: 0;
  flex: 1;
}
.event p {
  font-size: 0.93rem;
  margin-bottom: 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.event__meta {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Главная новость */
.event-featured {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.event-featured:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.event-featured__media {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(13, 91, 70, 0.92), rgba(7, 56, 41, 0.96)),
    var(--ornament-trellis);
  background-size: auto, 96px 96px;
}
.event-featured__media::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  background-image: var(--ornament-star);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.18;
}
.event-featured__badge {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  border: 1px solid rgba(216, 176, 112, 0.5);
  border-radius: var(--radius-lg);
  padding: 22px 30px;
  background: rgba(7, 56, 41, 0.35);
  backdrop-filter: blur(2px);
}
.event-featured__day {
  display: block;
  font-family: var(--serif);
  font-size: 3.6rem;
  line-height: 1;
}
.event-featured__month {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.event-featured__body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.event-featured__body h3 {
  font-size: 1.9rem;
  margin-bottom: 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.event-featured__body p {
  font-size: 1rem;
  max-width: 100%;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.event-featured__footer {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.event-featured__title-link {
  color: inherit;
  text-decoration: none;
}
.event-featured__title-link:hover {
  color: var(--green);
}
.event-featured__media--link {
  text-decoration: none;
  color: inherit;
}
.event--link {
  text-decoration: none;
  color: inherit;
}
.event--link:hover {
  border-color: var(--gold);
}
.event--link:hover h3 {
  color: var(--green);
}
.event__more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ====== Страница галереи ====== */
.gallery-hero,
.page-hero {
  position: relative;
  background: linear-gradient(140deg, var(--green-dark) 0%, var(--navy) 100%);
  overflow: hidden;
}
.gallery-hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--ornament-star);
  background-size: 200px 200px;
  opacity: 0.1;
  pointer-events: none;
}
.gallery-hero__body,
.page-hero__body {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-top: 88px;
  padding-bottom: 52px;
}
.gallery-hero__breadcrumb,
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 22px;
}
.gallery-hero__breadcrumb a,
.page-hero__breadcrumb a {
  color: inherit;
  transition: color 0.2s;
}
.gallery-hero__breadcrumb a:hover,
.page-hero__breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.9);
}
.gallery-hero .kicker--gold,
.page-hero .kicker--gold {
  color: var(--gold-2);
}
.gallery-hero__title,
.page-hero__title {
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  color: #fff;
  margin: 10px 0 14px;
}
.gallery-hero__lead,
.page-hero__lead {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
  margin-bottom: 32px;
}
.gallery-hero__jump,
.page-hero__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.gallery-hero__jump a,
.page-hero__jump a {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.25s ease;
}
.gallery-hero__jump a:hover,
.page-hero__jump a:hover {
  border-color: var(--gold-2);
  background: rgba(212, 175, 110, 0.12);
  color: var(--gold-2);
}

.gallery--standalone {
  padding: 64px 0 120px;
}
.gallery__group-head {
  align-items: flex-start;
  gap: 22px;
}
.gallery__group-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold-soft);
  -webkit-text-stroke: 1px var(--gold);
  flex: 0 0 auto;
}
.gallery__group-head h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.gallery__group-head p {
  white-space: normal;
}
/* Карусель фото в группе */
.carousel {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
}
.carousel__viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: var(--shadow-md);
}
.carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.carousel__slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.65) saturate(1.1);
  transform: scale(1.15);
}
.carousel__slide-fg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.carousel__slide.is-active {
  opacity: 1;
}
.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(7, 22, 17, 0.45);
  color: #fff;
  font-size: 1.3rem;
  backdrop-filter: blur(2px);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.carousel__nav:hover {
  background: rgba(7, 22, 17, 0.7);
}
.carousel__nav--prev {
  left: 10px;
}
.carousel__nav--next {
  right: 10px;
}
.carousel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.carousel__counter {
  font-size: 0.85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.carousel__dots {
  display: flex;
  gap: 8px;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  padding: 0;
  transition: all 0.2s ease;
}
.carousel__dot.is-active {
  background: var(--gold);
  width: 22px;
  border-radius: 4px;
}

/* Страницы событий */
.events--standalone {
  padding: 80px 0 120px;
}
.events-page__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}
.events__grid--list {
  margin-top: 40px;
}
/* ====== Event Show ====== */
.event-show__hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(140deg, var(--green-dark) 0%, var(--navy) 100%);
  overflow: hidden;
}
.event-show__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--ornament-star);
  background-size: 200px 200px;
  opacity: 0.1;
  pointer-events: none;
}
.event-show__hero-body {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-top: 88px;
  padding-bottom: 52px;
  max-width: 820px;
}
.event-show__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 22px;
}
.event-show__breadcrumb a {
  color: inherit;
  transition: color 0.2s;
}
.event-show__breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.9);
}
.event-show__breadcrumb-current {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.75);
}
.event__tag--light {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  padding: 3px 12px;
  margin-bottom: 14px;
}
.event-show__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 12px 0 28px;
  color: #fff;
}
.event-show__hero-time {
  display: flex;
  align-items: center;
  gap: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 22px;
}
.event-show__day-num {
  font-family: var(--serif);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--gold-2);
  font-weight: 300;
  flex-shrink: 0;
}
.event-show__hero-time-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.event-show__when {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}
.event-show__meta {
  font-size: 0.88rem;
  color: var(--gold-2);
  letter-spacing: 0.05em;
}
.event-show__wrap {
  padding-top: 56px;
  padding-bottom: 100px;
}
.event-show__layout {
  max-width: 760px;
  margin: 0 auto;
}
.event-show__layout--with-media {
  max-width: 1080px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.event-show__poster {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 96px;
}
.event-show__poster-img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 10px);
  display: block;
}
.event-show__content {
  min-width: 0;
}
.event-show__body {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow-sm);
}
.event-show__text {
  font-size: 1.07rem;
  line-height: 1.8;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.event-show__text p {
  margin: 0;
}
.event-show__text p + p {
  margin-top: 1.2em;
}
.event-show__actions {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
}
.event-show__actions-solo {
  margin-top: 0;
}
.event-show__footer {
  margin-top: 32px;
}
.event-show__back {
  font-size: 0.9rem;
}

/* ====== Donate ====== */
.donate {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--navy) 0%, #0a1828 100%);
  color: #f6efe1;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.donate::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 50%, rgba(184, 137, 61, 0.15), transparent 60%);
  pointer-events: none;
}
.donate__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 60px;
}
.donate__text h2 {
  color: #fff;
  max-width: 540px;
}
.donate__text p {
  color: rgba(246, 239, 225, 0.78);
  max-width: 500px;
  margin-bottom: 0;
}
.donate__requisites {
  display: grid;
  gap: 28px;
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}
.donate__qr {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}
.donate__qr img {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
}
.donate__qr-hint {
  margin: 0;
  max-width: 320px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(246, 239, 225, 0.78);
}
.donate__qr-hint strong {
  color: #fff;
  font-weight: 700;
}
.donate__details {
  margin: 0;
  display: grid;
  gap: 14px;
}
.donate__details > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.donate__details > div:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.donate__details dt {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.donate__details dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(246, 239, 225, 0.92);
  word-break: break-word;
}

/* ====== Visit ====== */
.visit {
  padding: 130px 0;
  background: var(--surface);
  position: relative;
  z-index: 1;
}
.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.visit__list {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
  display: grid;
  gap: 18px;
}
.visit__list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.visit__list li:last-child { border-bottom: none; }
.visit__list strong {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  padding-top: 3px;
  font-weight: 700;
}
.visit__map-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.visit__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  min-height: 280px;
  background: var(--line-soft);
}
.visit__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.visit__map-open {
  margin: 0;
  font-size: 0.88rem;
  text-align: right;
}
.visit__map-open a {
  color: var(--green);
  font-weight: 500;
}
.visit__map-open a:hover {
  color: var(--green-2);
}

/* ====== Newsletter ====== */
.newsletter {
  padding: 90px 0;
  background: var(--green);
  color: #fff;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.newsletter::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 100% 0%, rgba(216, 176, 112, 0.18), transparent 50%);
}
.newsletter__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.newsletter h2 {
  color: #fff;
  margin-bottom: 8px;
}
.newsletter p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}
.newsletter__form {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.newsletter__form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  padding: 0 18px;
}
.newsletter__form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.newsletter__form .btn--primary {
  background: var(--gold);
}
.newsletter__form .btn--primary:hover {
  background: #9c721f;
}

/* ====== Footer ====== */
.footer {
  background: var(--green-dark);
  color: #d6c9a8;
  padding: 90px 0 30px;
  position: relative;
  z-index: 1;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(246, 239, 225, 0.12);
}
.footer h4 {
  color: var(--gold-2);
  margin-bottom: 22px;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
}
.footer ul a:hover {
  color: var(--gold-2);
}
.footer__about {
  margin-top: 18px;
  color: rgba(214, 201, 168, 0.7);
  max-width: 320px;
  font-size: 0.93rem;
}
.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer__socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 239, 225, 0.22);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: all 0.2s ease;
}
.footer__socials a:hover {
  border-color: var(--gold);
  color: var(--gold-2);
  transform: translateY(-2px);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 0.82rem;
  color: rgba(214, 201, 168, 0.55);
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom p {
  margin: 0;
  color: inherit;
}
.footer__bottom a:hover {
  color: var(--gold-2);
}
.footer__bottom .dot { margin: 0 8px; }

/* ====== Responsive ====== */

/* Tablet */
@media (max-width: 1024px) {
  .nav { gap: 22px; }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero__media {
    max-width: 520px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }
  .prayer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .prayer__card { padding: 24px 14px; }
  .prayer__time { font-size: 1.9rem; }
  .services__grid,
  .events__grid,
  .sermons__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid,
  .donate__inner,
  .visit__grid,
  .newsletter__inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .about__media { max-width: 480px; margin: 0 auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 760px) {
  :root { --header-h: 64px; }

  .container {
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
  }

  .btn {
    white-space: normal;
    text-align: center;
    min-height: 44px;
  }

  /* Topbar */
  .topbar { font-size: 0.72rem; }
  .topbar__inner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 4px 8px;
    padding: 6px 0;
    min-height: 0;
  }
  .topbar__date {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0 4px;
    line-height: 1.35;
    max-width: 100%;
  }
  .topbar__date .dot { margin: 0 3px; }
  .topbar__date-gregorian,
  .topbar__date-hijri {
    white-space: nowrap;
  }
  .topbar__date-hijri {
    opacity: 0.92;
  }
  .topbar__city-dot { display: none; }
  .topbar__city {
    flex: 0 0 100%;
    opacity: 0.7;
    font-size: 0.68rem;
  }
  .topbar__links--page {
    flex: 0 0 100%;
    font-size: 0.72rem;
  }
  .topbar .topbar__links:not(.topbar__links--page) { display: none; }

  /* Header - compact bar + side drawer (как rauza-m.ru) */
  .header__inner {
    gap: 10px;
    min-height: var(--header-h);
  }
  .logo {
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
  }
  .logo__text { min-width: 0; }
  .logo__mark { width: 38px; height: 38px; flex: 0 0 38px; }
  .logo__title { font-size: 1.15rem; }
  .logo__sub { font-size: 0.62rem; letter-spacing: 0.12em; margin-top: 2px; }

  .header__actions {
    flex: 0 0 auto;
    margin-left: auto;
  }
  .header__actions .header__donate { display: none; }

  .burger {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .burger span:nth-child(1) { top: 14px; }
  .burger span:nth-child(2) { top: 21px; }
  .burger span:nth-child(3) { top: 28px; }
  .burger[aria-expanded="true"] span:nth-child(1),
  .burger[aria-expanded="true"] span:nth-child(3) { top: 21px; }

  /* Side drawer - slide via `right`, not translateX (avoids horizontal overflow) */
  .nav {
    position: fixed;
    top: 0;
    right: calc(-1 * min(320px, 88vw));
    bottom: 0;
    left: auto;
    width: min(320px, 88vw);
    height: 100dvh;
    max-height: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    background: var(--surface);
    border-left: 1px solid var(--line-soft);
    border-bottom: none;
    box-shadow: -12px 0 40px rgba(34, 26, 16, 0.14);
    visibility: hidden;
    transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.32s;
    z-index: 52;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav:not(.is-open) {
    pointer-events: none;
  }
  .nav.is-open {
    right: 0;
    visibility: visible;
    pointer-events: auto;
    overscroll-behavior: contain;
    transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
  }

  .nav__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 1;
    padding: max(14px, env(safe-area-inset-top, 0px)) 20px 14px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--bg-cream);
  }
  .nav__panel-title {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--ink);
    font-weight: 500;
  }
  .nav__close {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav__close span {
    position: absolute;
    left: 11px;
    right: 11px;
    height: 1.6px;
    background: var(--ink);
    border-radius: 1px;
  }
  .nav__close span:first-child { transform: rotate(45deg); }
  .nav__close span:last-child { transform: rotate(-45deg); }

  .nav > a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px 22px;
    font-size: 1.08rem;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink);
  }
  .nav > a::after { display: none; }
  .nav > a.is-active {
    color: var(--green);
    font-weight: 600;
    background: rgba(13, 91, 70, 0.06);
    box-shadow: inset 3px 0 0 var(--green);
  }
  .nav > a:last-of-type { border-bottom: none; }

  .nav__donate-mobile {
    display: block;
    margin: 16px 20px max(20px, env(safe-area-inset-bottom, 0px));
    padding: 14px 18px !important;
    border: none !important;
    border-radius: var(--radius) !important;
    background: var(--green) !important;
    color: #fff !important;
    text-align: center;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
  }
  .nav__donate-mobile.is-active {
    box-shadow: var(--shadow-sm), inset 3px 0 0 var(--gold-2);
  }

  body.nav-open .header {
    z-index: 53;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 51;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background: rgba(7, 56, 41, 0.42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0s linear 0.28s;
  }
  .nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1),
      visibility 0s linear 0s;
  }

  /* Hero */
  .hero {
    padding: 28px 0 56px;
    overflow: clip;
  }
  .hero::after { display: none; }
  .hero__grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .hero__media {
    order: -1;
    width: 100%;
    max-width: none;
    margin: 0;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
  }
  .hero__tulip { display: none; }
  .hero__photo--main { background-position: center 62%; }
  .hero__photo--main::after { inset: 10px; }
  .hero__title { margin-bottom: 16px; }
  .hero__lead {
    margin-bottom: 22px;
    font-size: 0.98rem;
    line-height: 1.6;
    max-width: none;
  }
  .hero__cta {
    gap: 10px;
    margin-bottom: 24px;
  }
  .hero__cta .btn--lg {
    padding: 14px 20px;
    font-size: 0.92rem;
    width: 100%;
  }
  .hero__meta {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 20px;
  }
  .hero__meta-label { font-size: 0.66rem; letter-spacing: 0.14em; }
  .hero__meta-value { font-size: 1.05rem; }
  .hero__badge {
    top: 10px;
    right: 8px;
    width: 72px;
    height: 72px;
    font-size: 0.68rem;
  }
  .eyebrow { font-size: 1.2rem; margin-bottom: 12px; }

  /* Ticker */
  .ticker__track {
    font-size: 0.95rem;
    gap: 24px;
    padding: 14px 0;
  }

  /* Section heads */
  .section-head { margin-bottom: 36px; }
  .section-head--row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
  }

  /* Prayer schedule (home) - 3×2 на мобиле */
  .prayer { padding: 64px 0; }
  .prayer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
  }
  .prayer__card {
    padding: 16px 10px;
    border-radius: 12px;
  }
  .prayer__card--active::before {
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
  }
  .prayer__name {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    margin-bottom: 8px;
    line-height: 1.2;
  }
  .prayer__time {
    font-size: clamp(1.15rem, 4.2vw, 1.45rem);
    margin-bottom: 4px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
  }
  .prayer__azan {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    line-height: 1.25;
  }
  .prayer__footer { padding-top: 20px; font-size: 0.92rem; }

  /* About */
  .about { padding: 10px 0; }
  .about__media {
    max-width: 420px;
    aspect-ratio: 1 / 1;
  }
  .about__stats {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: left;
    margin: 28px 0;
    padding: 22px 0;
  }
  .stat { display: flex; align-items: baseline; gap: 14px; }
  .stat__num { font-size: 1.8rem; margin: 0; }

  /* Sermons */
  .sermons { padding: 20px 0; }
  .sermons__filters {
    margin: 0 -18px;
    padding: 0 18px 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .chip { flex-shrink: 0; }
  .sermons__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* Главная: на мобилке только последнее видео */
  .sermons:not(.sermons--standalone) .sermons__grid .sermon:not(:first-child) {
    display: none;
  }
  .sermon { gap: 16px; }
  .sermon__title { font-size: 1.15rem; }
  .sermon__play { width: 56px; height: 56px; }
  .sermon__play svg { width: 24px; height: 24px; }
  .sermons__footer {
    margin-top: 36px;
    padding-top: 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Services */
  .services { padding: 72px 0; }
  .services__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .service { padding: 28px 24px; }
  .service__icon { width: 52px; height: 52px; margin-bottom: 18px; }

  /* Галерея */
  .gallery { padding: 56px 0; }
  .gallery__groups { gap: 14px; }
  .gallery__group-head {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
  }
  .gallery__group-num { font-size: 1.8rem; }
  .carousel { max-width: 360px; }
  .carousel__nav { width: 32px; height: 32px; font-size: 1.1rem; }
  .carousel__viewport { aspect-ratio: 1 / 1; border-radius: var(--radius); }
  .gallery-hero__body { padding-top: 64px; padding-bottom: 36px; }
  .gallery-hero__jump a { padding: 8px 16px; font-size: 0.82rem; }
  .gallery--standalone { padding: 48px 0 80px; }

  /* Тизер галереи */
  .gallery-teaser { padding: 56px 0; }
  .gallery-teaser__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .gallery-teaser__grid > :last-child {
    grid-column: span 2;
  }

  /* Events */
  .events { padding: 72px 0; }
  .events .container { overflow-x: clip; }
  .events .section-head--row { margin-bottom: 32px; gap: 12px; }
  .event-featured {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 16px;
    max-width: 100%;
  }
  .event-featured__media { min-height: 140px; }
  .event-featured__badge { padding: 14px 20px; }
  .event-featured__day { font-size: 2.6rem; }
  .event-featured__body {
    padding: 24px 20px;
    min-width: 0;
  }
  .event-featured__body h3 {
    font-size: 1.45rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .event-featured__body p {
    margin-bottom: 18px;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .event-featured__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .event-featured__footer .event__meta {
    order: -1;
  }
  .event-featured__footer .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .event-show__hero-body { padding-top: 70px; padding-bottom: 44px; }
  .event-show__title { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .event-show__day-num { font-size: 3.2rem; }
  .event-show__body { padding: 24px 22px; }
  .event-show__wrap { padding-top: 36px; padding-bottom: 64px; }
  .event-show__layout--with-media {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .event-show__poster {
    position: static;
    padding: 10px;
  }
  .events--standalone { padding: 56px 0 80px; }
  .events__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .event {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }
  .event__date {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    gap: 8px;
    align-items: baseline;
    width: fit-content;
    padding: 8px 14px;
  }
  .event__day { font-size: 1.7rem; }
  .event__month { margin-top: 0; }
  .event h3 {
    font-size: 1.2rem;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .event p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Donate */
  .donate { padding: 80px 0; }
  .donate__inner { gap: 36px; }
  .donate__requisites { padding: 22px; }
  .donate__details > div { grid-template-columns: 1fr; gap: 4px; }

  /* Visit */
  .visit { padding: 72px 0; }
  .visit__list li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-bottom: 14px;
  }
  .visit__map { aspect-ratio: 4 / 3; }

  /* Newsletter */
  .newsletter { padding: 64px 0; }
  .newsletter__inner { gap: 24px; }
  .newsletter__form {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    gap: 12px;
  }
  .newsletter__form input {
    background: rgba(255, 255, 255, 0.1);
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
  }

  /* Footer */
  .footer { padding: 60px 0 24px; }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }
  .footer__about { max-width: none; }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding-top: 24px;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }

  /* Prayer times page */
  .prayertime-page { padding: 28px 0 64px; }
  .prayertime-page__title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .sermons--standalone { padding-top: 28px; }
  .sermons__page-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .prayertime__filters {
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 16px;
    margin: 24px 0 20px;
  }
  .prayertime__field { flex: 1 1 auto; }
  .prayertime__nav {
    justify-content: space-between;
    gap: 8px;
  }
  .prayertime__nav-btn { width: 40px; height: 40px; }
  .prayertime__period { font-size: 0.88rem; white-space: normal; text-align: center; }
  .prayertime-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .prayertime-table { min-width: 720px; }
  .prayertime-table__caption { padding: 16px 18px; font-size: 0.98rem; }

  .video-modal {
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    align-items: flex-end;
  }
  .video-modal__dialog {
    width: 100%;
    max-height: 92dvh;
    overflow-y: auto;
    padding: 16px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .video-modal__title {
    font-size: 1.05rem;
    margin-right: 40px;
  }
  .video-modal__close { top: 8px; right: 8px; }

  .ornament { padding: 32px 16px; }
}

/* Very narrow phones - 2 колонки × 3 ряда */
@media (max-width: 360px) {
  .prayer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .prayer__card { padding: 14px 8px; }
  .prayer__name { font-size: 0.58rem; margin-bottom: 6px; }
  .prayer__time { font-size: 1.25rem; }
  .prayer__azan { font-size: 0.6rem; }
}

/* Small phones */
@media (max-width: 480px) {
  .container {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  .topbar { font-size: 0.68rem; }

  .logo__sub { display: none; }
  .logo__title { font-size: 1.05rem; }

  .hero { padding-top: 22px; }
  .hero__title { font-size: clamp(1.85rem, 8.5vw, 2.45rem); }
  .hero__media { aspect-ratio: 4 / 3; }
  .hero__meta { grid-template-columns: 1fr; gap: 12px; }
  .hero__badge { display: none; }

  .hadith__quote { padding: 28px 18px; }
  .hadith__arabic { line-height: 1.7; }

  .madrasa__actions { flex-direction: column; align-items: stretch; }
  .madrasa__actions .btn { width: 100%; }

  .hero__cta .btn--lg,
  .btn--lg { padding: 14px 22px; font-size: 0.9rem; }

  .footer__socials a { width: 38px; height: 38px; }
}

/* ====== Islamic–Tatar ornaments ====== */

/* Decorative divider between sections - gold filigree with a central rosette */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 520px;
  margin: 0 auto;
  padding: 56px 24px;
  color: var(--gold);
  pointer-events: none;
}
.ornament__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(184, 137, 61, 0.45) 50%,
    rgba(184, 137, 61, 0.1) 100%
  );
}
.ornament__line + .ornament__line {
  background: linear-gradient(
    90deg,
    rgba(184, 137, 61, 0.1) 0%,
    rgba(184, 137, 61, 0.45) 50%,
    transparent 100%
  );
}
.ornament__star {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: var(--gold);
  opacity: 0.75;
}
.ornament--on-dark { color: var(--gold-2); }
.ornament--on-dark .ornament__line {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(216, 176, 112, 0.45) 50%,
    rgba(216, 176, 112, 0.08) 100%
  );
}
.ornament--on-dark .ornament__line + .ornament__line {
  background: linear-gradient(
    90deg,
    rgba(216, 176, 112, 0.08) 0%,
    rgba(216, 176, 112, 0.45) 50%,
    transparent 100%
  );
}

/* Subtle 8-point star watermark on selected sections */
.hadith::after,
.services::after,
.donate::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--ornament-star);
  background-repeat: repeat;
  background-size: 180px 180px;
  opacity: 0.05;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
.donate::after {
  opacity: 0.07;
  mix-blend-mode: screen;
  background-size: 220px 220px;
}
.hadith > *,
.services > *,
.donate > * {
  position: relative;
  z-index: 1;
}

/* Corner star rosettes on hadith card (replace plain quotation marks) */
.hadith__quote::before,
.hadith__quote::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  background-image: var(--ornament-star);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.45;
  font-size: 0; /* hide previous glyph rules */
}
.hadith__quote::before {
  top: -22px;
  left: -22px;
}
.hadith__quote::after {
  bottom: -22px;
  right: -22px;
  transform: rotate(22.5deg);
}

/* Hero - soft star halo behind photo composition */
.hero::after {
  content: "";
  position: absolute;
  top: 60px;
  right: -40px;
  width: 260px;
  height: 260px;
  background-image: var(--ornament-star);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

/* Footer - thin ornamental band on top */
.footer {
  background-image:
    linear-gradient(180deg, rgba(184, 137, 61, 0.18), transparent 4px),
    var(--ornament-star);
  background-repeat: no-repeat, repeat-x;
  background-size: 100% 4px, 80px 80px;
  background-position: top left, top left;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 80px;
  background-image: var(--ornament-star);
  background-repeat: repeat-x;
  background-size: 80px 80px;
  opacity: 0.08;
  pointer-events: none;
}
.footer > * { position: relative; z-index: 1; }

@media (max-width: 760px) {
  .ornament { padding: 36px 16px; gap: 12px; }
  .ornament__star { width: 28px; height: 28px; flex-basis: 28px; }
  .hadith__quote::before,
  .hadith__quote::after { width: 40px; height: 40px; }
  .hadith__quote::before { top: -14px; left: -14px; }
  .hadith__quote::after { bottom: -14px; right: -14px; }
  .hero::after { display: none; }
}

/* ====== Mobile polish ====== */

/* Topbar: page-link separator */
.topbar__sep {
  opacity: 0.35;
  margin: 0 2px;
}

/* Header: ensure donate button doesn't overflow on narrow screens */
@media (max-width: 400px) {
  .header__donate { font-size: 0.82rem; padding: 10px 14px; }
}

/* Hero: auto-fit meta columns so single item spans full width */
@media (max-width: 760px) {
  .hero__meta {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  /* Both CTA buttons full-width on mobile */
  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Prayer footer: stack on mobile */
@media (max-width: 760px) {
  .prayer__footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* Visit: map on small screens */
@media (max-width: 480px) {
  .visit__map { min-height: 240px; }
  .visit__map-open { text-align: left; }
}

/* Events: compact layout on small phones */
@media (max-width: 480px) {
  .events { padding: 48px 0; }
  .events .section-head--row { margin-bottom: 24px; }
  .events .section-head--row h2 { font-size: clamp(1.55rem, 7vw, 1.85rem); }
  .event-featured { margin-bottom: 12px; }
  .event-featured__media {
    min-height: 0;
    padding: 18px 16px;
    justify-content: center;
  }
  .event-featured__badge {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius);
    margin: 0 auto;
  }
  .event-featured__day {
    font-size: 2rem;
    line-height: 1;
  }
  .event-featured__month {
    margin-top: 0;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }
  .event-featured__body { padding: 18px 16px; }
  .event-featured__body h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    -webkit-line-clamp: 3;
  }
  .event-featured__body p {
    font-size: 0.9rem;
    margin-bottom: 14px;
    -webkit-line-clamp: 3;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .event-featured__footer { gap: 10px; }
  .event-featured__footer .btn {
    text-align: center;
    justify-content: center;
  }
  .events__grid { gap: 12px; }
  .event {
    padding: 16px;
    gap: 12px;
  }
  .event__date { padding: 6px 12px; }
  .event__day { font-size: 1.5rem; }
  .event__tag { margin-bottom: 6px; font-size: 0.65rem; }
  .event h3 { font-size: 1.1rem; margin-bottom: 6px; }
  .event p { font-size: 0.88rem; margin-bottom: 8px; }
  .event__more { margin-top: 8px; font-size: 0.82rem; }
  .events--standalone { padding: 40px 0 64px; }
  .gallery--standalone { padding: 40px 0 64px; }
  .event-show__hero-body { padding-top: 54px; }
}

/* Sermons standalone: tighter top on mobile */
@media (max-width: 480px) {
  .sermons--standalone { padding-top: 24px; }
}

/* Section head row: ensure link-arrow doesn't wrap oddly */
@media (max-width: 480px) {
  .section-head--row .link-arrow {
    font-size: 0.88rem;
  }
}

/* Prayertime page title: slightly smaller on very small phones */
@media (max-width: 380px) {
  .prayertime-page__title,
  .sermons__page-title,
  .events-page__title,
  .gallery-hero__title {
    font-size: 1.55rem;
  }
}

/* ====== Auth (admin login) ====== */
.auth-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

.auth-card {
  width: min(100%, 420px);
  padding: 2rem 1.75rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.auth-card__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.auth-card__title {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--ink);
}

.auth-card__lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-card__footer {
  margin: 1.25rem 0 0;
  text-align: center;
}

.auth-flash {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.auth-flash--alert {
  background: rgba(182, 91, 58, 0.12);
  color: var(--terracotta);
}

.auth-flash--notice {
  background: rgba(13, 91, 70, 0.1);
  color: var(--green);
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form__field {
  display: grid;
  gap: 0.35rem;
}

.auth-form__field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
}

.auth-form__field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.auth-form__field input:focus {
  outline: 2px solid rgba(13, 91, 70, 0.35);
  outline-offset: 1px;
  border-color: var(--green-2);
}

.auth-form__submit {
  width: 100%;
  margin-top: 0.25rem;
}

/* ====== Контентные страницы ====== */
.content-page {
  padding: 56px 0 100px;
  position: relative;
  z-index: 1;
}
.content-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
}
.content-page__layout--single {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}
.content-page__body {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow-sm);
}
.prose {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
}
.prose h2 {
  font-size: 1.45rem;
  margin: 2.2em 0 0.8em;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: 1.15rem;
  margin: 1.8em 0 0.6em;
}
.prose p {
  margin: 0;
}
.prose p + p,
.prose ul,
.prose ol {
  margin-top: 1.1em;
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
}
.prose li + li {
  margin-top: 0.45em;
}
.prose a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose a:hover {
  color: var(--green-dark);
}
.prose__closing {
  margin-top: 2em;
  font-style: italic;
  color: var(--ink-2);
}
.content-page__aside {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 96px;
}
.content-page__card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.content-page__card h3 {
  font-size: 1rem;
  margin: 0 0 14px;
  color: var(--green-dark);
}
.content-page__card-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.content-page__facts,
.content-page__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.content-page__facts strong {
  color: var(--green);
  font-weight: 600;
}
.content-page__links a {
  color: var(--ink);
  text-decoration: none;
}
.content-page__links a:hover {
  color: var(--green);
}

.visit--standalone {
  padding: 56px 0 100px;
  position: relative;
  z-index: 1;
}
.visit__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.visit__socials a {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--green-dark);
  transition: all 0.2s ease;
}
.visit__socials a:hover {
  border-color: var(--gold);
  color: var(--green);
}

/* ====== Полезное ====== */
.useful-page {
  position: relative;
  z-index: 1;
}
.useful-section {
  padding: 64px 0;
}
.useful-section--alt {
  background: var(--bg-warm);
}
.useful-hadith {
  margin: 0;
  padding: 40px 36px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 820px;
}
.useful-hadith__arabic {
  font-family: var(--arabic);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.7;
  color: var(--green-dark);
  margin: 0 0 20px;
}
.useful-hadith__translation {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 20px;
}
.useful-hadith__source {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 0.85rem;
  color: var(--muted);
}
.useful-events {
  margin-top: 8px;
}
.useful-faq {
  display: grid;
  gap: 40px;
}
.useful-faq__group {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.useful-faq__head {
  margin-bottom: 18px;
}
.useful-faq__head h3 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 400;
  color: var(--green-dark);
  margin: 8px 0 0;
}
.useful-faq__intro,
.useful-faq__footer {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.65;
}
.useful-faq__footer {
  margin-top: 20px;
  margin-bottom: 0;
  font-style: italic;
}
.useful-faq__list {
  display: grid;
  gap: 10px;
}
.useful-faq__item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--bg-warm);
  overflow: hidden;
}
.useful-faq__item[open] {
  background: var(--surface);
  border-color: rgba(184, 137, 61, 0.35);
}
.useful-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.useful-faq__question::-webkit-details-marker {
  display: none;
}
.useful-faq__question::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(184, 137, 61, 0.12);
  color: var(--gold);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.useful-faq__item[open] .useful-faq__question::after {
  content: "−";
}
.useful-faq__answer {
  padding: 0 20px 18px;
}
.useful-faq__answer p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}
.useful-faq__answer p:last-child {
  margin-bottom: 0;
}
.useful-faq__cta {
  display: inline-block;
  margin-top: 20px;
}

.sermon__live--dua {
  background: rgba(26, 77, 58, 0.88);
}
.sermon__live--useful {
  background: rgba(184, 137, 61, 0.92);
}

@media (max-width: 700px) {
  .useful-faq__group {
    padding: 22px 18px;
  }
  .useful-faq__question {
    padding: 16px;
    font-size: 0.92rem;
  }
  .useful-faq__answer {
    padding: 0 16px 16px;
  }
}

@media (max-width: 900px) {
  .content-page__layout {
    grid-template-columns: 1fr;
  }
  .content-page__aside {
    position: static;
  }
  .content-page__body {
    padding: 28px 24px;
  }
}

/* ====== Информационные страницы (медресе, о мечети, никах) ====== */
.content-page--info .content-page__body {
  padding: 48px 52px;
}
.info-page__section + .info-page__section {
  margin-top: 0;
}
.info-page__head {
  margin-bottom: 28px;
}
.info-page__head .kicker {
  margin-bottom: 10px;
}
.info-page__head h2 {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  font-weight: 400;
  color: var(--green-dark);
  margin: 0;
  line-height: 1.2;
}
.info-page__lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
}
.info-page__lead p {
  margin: 0;
}
.info-page__lead strong {
  color: var(--green-dark);
  font-weight: 600;
}
.info-page__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--bg-warm);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.info-page__meta-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.info-page__meta-value {
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.4;
}
.info-page__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.info-page__stat {
  padding: 22px 16px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.info-page__stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}
.info-page__stat-label {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}
.info-page__block {
  margin-top: 36px;
}
.info-page__block--accent {
  padding: 28px 30px;
  background: linear-gradient(135deg, rgba(13, 91, 70, 0.06) 0%, rgba(184, 137, 61, 0.08) 100%);
  border: 1px solid rgba(13, 91, 70, 0.12);
  border-radius: var(--radius-lg);
}
.info-page__block--accent p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--ink);
}
.info-page__block--accent p + p {
  margin-top: 1em;
}
.info-page__subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green-dark);
  margin: 0 0 16px;
}
.info-page__tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.info-page__tags li {
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--green-dark);
  background: rgba(13, 91, 70, 0.08);
  border: 1px solid rgba(13, 91, 70, 0.14);
  border-radius: 100px;
}
.info-page__note {
  margin: 18px 0 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.info-page__highlight {
  margin-top: 1.2em;
  padding-top: 1.2em;
  border-top: 1px solid rgba(13, 91, 70, 0.12);
  color: var(--green-dark);
}
.info-page__directions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.info-page__directions li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.info-page__direction-num {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold);
  line-height: 1;
  font-weight: 500;
}
.info-page__directions span:last-child {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
}
.info-page__divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0;
  color: var(--gold-soft);
}
.info-page__divider-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.info-page__divider-star {
  font-size: 0.9rem;
  color: var(--gold);
}
.info-page__course-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px;
  margin-bottom: 32px;
  background: linear-gradient(140deg, var(--green-dark) 0%, #0a4a38 100%);
  border-radius: var(--radius-lg);
  color: #fff;
}
.info-page__course-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 8px;
  color: #fff;
}
.info-page__course-meta {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}
.info-page__course-badge {
  flex: 0 0 auto;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--gold-2);
  border-radius: 100px;
}
.info-page__subjects {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.info-page__subjects li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 20px;
  align-items: baseline;
  padding: 14px 18px;
  background: var(--bg-warm);
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
}
.info-page__subject-term {
  font-weight: 600;
  color: var(--green-dark);
  font-size: 0.95rem;
}
.info-page__subject-desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.info-page__shifts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.info-page__shift {
  padding: 20px 16px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.info-page__shift-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.info-page__shift-time {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--green);
}
.info-page__chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.info-page__chips li {
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.info-page__chips li:hover {
  border-color: var(--gold);
  color: var(--green-dark);
}
.info-page__short-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.info-page__block .info-page__short-grid {
  margin-top: 16px;
}
.info-page__short-card {
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.info-page__short-card p {
  margin: 10px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}
.info-page__short-phone {
  display: block;
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--green);
  text-decoration: none;
}
.info-page__short-phone:hover {
  color: var(--green-dark);
}
.info-page__short-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(13, 91, 70, 0.1);
  border-radius: 100px;
}
.info-page__callout {
  margin-top: 24px;
  padding: 20px 22px;
  background: rgba(184, 137, 61, 0.1);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.info-page__callout p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink-2);
}
.info-page__enroll {
  margin-top: 48px;
}
.info-page__enroll-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 36px;
  background: linear-gradient(135deg, var(--green-dark) 0%, #0a4a38 100%);
  border-radius: var(--radius-lg);
  color: #fff;
}
.info-page__enroll h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 12px;
  color: #fff;
}
.info-page__enroll p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
}
.info-page__enroll-action {
  flex: 0 0 auto;
  text-align: center;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(4px);
}
.info-page__enroll-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 6px;
}
.info-page__enroll-phone {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
  transition: color 0.2s ease;
}
.info-page__enroll-phone:hover {
  color: var(--gold-2);
}
.info-page__enroll-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
.info-page__enroll-link {
  color: var(--gold-2);
  text-decoration: none;
}
.info-page__enroll-link:hover {
  color: #fff;
}
.info-page__aside-card--cta {
  background: linear-gradient(140deg, var(--green-dark) 0%, #0a4a38 100%);
  border-color: transparent;
  color: #fff;
}
.info-page__aside-card--cta h3 {
  color: var(--gold-2);
}
.info-page__aside-cta-text {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}
.info-page__aside-phone {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: #fff;
  text-decoration: none;
  margin-bottom: 4px;
}
.info-page__aside-phone:hover {
  color: var(--gold-2);
}
.info-page__aside-hint {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}
.info-page__aside-hint a {
  color: var(--gold-2);
  text-decoration: none;
}
.info-page__aside-hint a:hover {
  color: #fff;
}
.info-page__aside-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.info-page__aside-list li {
  display: grid;
  gap: 4px;
}
.info-page__aside-key {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.info-page__aside-list a {
  color: var(--green);
  text-decoration: none;
}
.info-page__aside-list a:hover {
  color: var(--green-dark);
}
.info-page__aside-card--cta .info-page__aside-list a {
  color: var(--gold-2);
}

@media (max-width: 900px) {
  .content-page--info .content-page__body {
    padding: 28px 22px;
  }
  .info-page__meta {
    grid-template-columns: 1fr;
  }
  .info-page__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .info-page__course-banner {
    flex-direction: column;
  }
  .info-page__subjects li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .info-page__shifts {
    grid-template-columns: 1fr;
  }
  .info-page__short-grid {
    grid-template-columns: 1fr;
  }
  .info-page__enroll-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .info-page__enroll-action {
    width: 100%;
  }
}
