/* ==========================================================================
   quran-contest / styles.css — дизайн-система одностраничника
   Палитра: изумруд + золото + кремовый. Исламская эстетика без излишеств.
   ========================================================================== */

:root {
  /* Палитра */
  --emerald-900: #0a2e1f;
  --emerald-800: #0f5132;
  --emerald-700: #14532d;
  --emerald-600: #1a6b42;
  --emerald-500: #2d8659;
  --emerald-100: #d1e7d8;

  --gold-600: #b8860b;
  --gold-500: #c9a04a;
  --gold-400: #e6c473;
  --gold-100: #f6e9c5;

  --cream: #faf7ef;
  --cream-warm: #f5efe1;
  --paper: #ffffff;

  --ink-900: #0f1f17;
  --ink-700: #1f2937;
  --ink-500: #4b5563;
  --ink-400: #6b7280;
  --ink-300: #9ca3af;

  --line: #e5e0d4;
  --line-strong: #c9c2af;

  --danger: #b91c1c;
  --success: #14532d;
  --warning: #b45309;

  /* Типографика */
  --font-display: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-arabic: 'Amiri', 'Scheherazade New', serif;

  /* Размеры */
  --container: 1180px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Тени */
  --shadow-sm: 0 1px 2px rgba(15, 81, 50, 0.06), 0 1px 3px rgba(15, 81, 50, 0.08);
  --shadow:    0 4px 12px rgba(15, 81, 50, 0.08), 0 2px 4px rgba(15, 81, 50, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 81, 50, 0.12), 0 4px 8px rgba(15, 81, 50, 0.08);
  --shadow-gold: 0 8px 24px rgba(184, 134, 11, 0.18);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

/* Гарантируем что [hidden] реально прячет, даже если есть display: grid/flex */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--emerald-700); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--emerald-600); }

::selection { background: var(--gold-400); color: var(--emerald-900); }

/* Декоративные разделители (золотая линия + ромб) */
.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 0 auto;
}
.divider::before, .divider::after {
  content: ""; height: 1px; width: 64px;
  background: linear-gradient(90deg, transparent, var(--gold-500));
}
.divider::after { background: linear-gradient(90deg, var(--gold-500), transparent); }
.divider__diamond {
  width: 8px; height: 8px; background: var(--gold-500);
  transform: rotate(45deg); flex-shrink: 0;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: 24px;
}

section { padding-block: clamp(56px, 7vw, 96px); }

.section__head {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--emerald-900);
  margin-bottom: 12px;
}

.section__title .ru {
  display: block;
  font-size: 0.55em;
  font-weight: 500;
  color: var(--ink-400);
  letter-spacing: 0;
  margin-top: 6px;
}

.section__subtitle {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--ink-500);
  max-width: 640px;
  margin-inline: auto;
  margin-top: 12px;
}

.section__subtitle .ru {
  display: block;
  font-size: 0.85em;
  color: var(--ink-400);
  margin-top: 4px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 239, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  gap: 12px;
}

/* Переключатель языков */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 81, 50, 0.06);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid var(--line);
}

/* По умолчанию оба языка видны — разделяем их пробелом */
.tat + .ru { margin-left: 0.35em; }
.lang-btn {
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  color: var(--ink-500);
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.lang-btn:hover { color: var(--emerald-700); }
.lang-btn.is-active {
  background: var(--emerald-800);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Скрытие языка по выбору пользователя */
body.lang-tat .ru,
body.lang-tat [data-lang="ru"] { display: none !important; }
body.lang-ru .tat,
body.lang-ru [data-lang="tat"] { display: none !important; }

/* В режиме «только русский» русские подписи становятся основным текстом */
body.lang-ru .ru {
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
  opacity: 1 !important;
  display: inline !important;
  margin: 0 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
body.lang-ru [data-lang="ru"] {
  display: block !important;
  font-size: inherit !important;
  color: inherit !important;
}
body.lang-ru .section__title .ru,
body.lang-ru .hero__title .ru {
  display: block !important;
  font-size: 1em !important;
  color: inherit !important;
  margin-top: 0 !important;
}
body.lang-ru .hero__lead .ru,
body.lang-ru .section__subtitle .ru,
body.lang-ru .complex-intro .ru,
body.lang-ru .donate-card__text .ru,
body.lang-ru .complex-card__text .ru {
  display: block !important;
  font-size: 1em !important;
  color: inherit !important;
  margin-top: 0 !important;
}
body.lang-ru .form-group__label .ru {
  display: block !important;
  font-size: 1em !important;
  font-weight: 400 !important;
  color: inherit !important;
  margin-top: 0 !important;
}
body.lang-ru .hero__title-ru,
body.lang-ru .section__title .ru {
  display: block !important;
  font-family: var(--font-display) !important;
  font-size: 1em !important;
  font-weight: 800 !important;
  color: inherit !important;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--emerald-900);
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--emerald-800);
  color: var(--gold-400);
  border-radius: 10px;
  font-family: var(--font-arabic);
  font-size: 20px;
  font-weight: 700;
}
.brand__text { font-size: 15px; line-height: 1.1; }
.brand__text small {
  display: block;
  font-size: 11px; font-weight: 500;
  color: var(--ink-400);
  letter-spacing: 0;
  margin-top: 2px;
}

.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--ink-700);
  position: relative;
}
.nav-links a:hover { color: var(--emerald-700); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--gold-500);
  transition: width 0.2s ease;
}
.nav-links a:hover::after { width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--emerald-800);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn--primary:hover {
  background: var(--emerald-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--emerald-900);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--emerald-800);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--emerald-800);
  color: #fff;
  border-color: var(--emerald-800);
}
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

.nav-cta { display: flex; gap: 10px; align-items: center; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  align-items: center; justify-content: center;
}
.menu-toggle:hover { background: var(--cream-warm); }
.menu-toggle svg { width: 22px; height: 22px; color: var(--emerald-800); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-cta .btn--ghost { display: none; }
}

@media (max-width: 640px) {
  .site-header__inner { gap: 6px; flex-wrap: wrap; height: auto; min-height: 56px; padding-block: 8px; }
  .brand__text { font-size: 13px; }
  .brand__text small { display: none; }
  .brand__mark { width: 28px; height: 28px; font-size: 17px; flex-shrink: 0; }
  .nav-cta { gap: 5px; flex-shrink: 0; }
  .nav-cta .btn--primary {
    padding: 6px 10px;
    font-size: 11px;
  }
  .lang-switcher { padding: 2px; flex-shrink: 0; }
  .lang-btn { padding: 4px 6px; font-size: 10px; }
  .container { padding-inline: 14px; }
  .hero { padding-block: 48px 44px; }
  .hero__inner { gap: 24px; }
  .hero__copy, .hero__countdown { max-width: 100%; min-width: 0; }
  .hero__title { font-size: 26px; }
  .hero__bismillah { font-size: 18px; margin-bottom: 14px; }
  .hero__eyebrow { font-size: 10px; padding: 4px 10px; }
  .hero__meta { gap: 12px; }
  .hero__meta-item { flex: 1 1 100%; }
  .hero__meta-icon { width: 28px; height: 28px; }
  .hero__meta-value { font-size: 13px; }
  .hero__countdown { padding: 14px; margin-top: 20px; }
  .countdown__num { font-size: 22px; }
  .countdown__cell { padding: 8px 3px; }
  .countdown__unit { font-size: 9px; }
  .hero__actions { gap: 8px; }
  .hero__actions .btn { padding: 10px 16px; font-size: 13px; }
  .form-card { padding: 18px; }
  .donate-card { padding: 20px; }
  .complex-card, .nomination-card { padding: 14px; }
  .venue-card { padding: 20px 14px; }
  .venue-card__icon { width: 64px; height: 64px; }
  .venue-card__icon svg { width: 48px; height: 48px; }
  .schedule-card { padding: 20px 14px; }
  .schedule-card__time { font-size: 28px; }
  .deadline-banner { padding: 10px 12px; font-size: 13px; gap: 10px; }
  .deadline-banner__icon { width: 22px; height: 22px; }
  .deadline-banner__icon svg { width: 18px; height: 18px; }
  .contacts-block { gap: 10px; }
  .contact-item { padding: 14px; }
  .modal__card { padding: 24px 18px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 15%, rgba(201, 160, 74, 0.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(45, 134, 89, 0.22), transparent 55%),
    linear-gradient(160deg, var(--emerald-900) 0%, var(--emerald-800) 50%, var(--emerald-700) 100%);
  color: var(--cream);
  padding-block: clamp(80px, 11vw, 140px) clamp(60px, 8vw, 100px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(230, 196, 115, 0.08) 0, transparent 2px),
    radial-gradient(circle at 70% 80%, rgba(230, 196, 115, 0.08) 0, transparent 2px),
    radial-gradient(circle at 40% 60%, rgba(230, 196, 115, 0.06) 0, transparent 2px);
  background-size: 80px 80px, 120px 120px, 200px 200px;
  opacity: 0.6;
}

.hero::after {
  /* Тонкий арабский паттерн снизу */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg,
    transparent, var(--gold-500) 20%, var(--gold-400) 50%, var(--gold-500) 80%, transparent);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
}

.hero__bismillah {
  font-family: var(--font-arabic);
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--gold-400);
  direction: rtl;
  margin-bottom: 24px;
  opacity: 0.92;
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 18px;
  padding: 6px 14px;
  background: rgba(230, 196, 115, 0.08);
  border: 1px solid rgba(230, 196, 115, 0.25);
  border-radius: 999px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 16px;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title-ru {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(16px, 1.8vw, 20px);
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0;
  margin-top: 8px;
}

.hero__lead {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-bottom: 28px;
}
.hero__lead .ru {
  display: block;
  font-size: 0.88em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 8px;
}

.hero__actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 36px;
}

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(230, 196, 115, 0.2);
}
.hero__meta-item {
  display: flex; align-items: flex-start; gap: 12px;
}
.hero__meta-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(230, 196, 115, 0.12);
  color: var(--gold-400);
}
.hero__meta-icon svg { width: 18px; height: 18px; }
.hero__meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}
.hero__meta-value {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  font-size: 15px;
}

/* Hero countdown */
.hero__countdown {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(230, 196, 115, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.hero__countdown-label {
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
}

.hero__deadline {
  margin-top: 18px;
  padding: 12px 16px;
  background: rgba(185, 28, 28, 0.18);
  border: 1px solid rgba(230, 196, 115, 0.3);
  border-radius: var(--radius);
  text-align: center;
  font-size: 13px;
  color: #ffd6d6;
}
.hero__deadline strong { display: block; color: #fff; margin-bottom: 2px; }
.hero__deadline span { font-size: 12px; opacity: 0.8; }
.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.countdown__cell {
  text-align: center;
  background: rgba(15, 81, 50, 0.4);
  border-radius: var(--radius);
  padding: 14px 8px;
  border: 1px solid rgba(230, 196, 115, 0.18);
}
.countdown__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--gold-400);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__unit {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
}

/* ==========================================================================
   Nominations grid
   ========================================================================== */

.nominations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.nomination-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.nomination-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-500));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nomination-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-400);
}
.nomination-card:hover::before { transform: scaleX(1); }

.nomination-card__num {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--emerald-100);
  color: var(--emerald-800);
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}
.nomination-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--emerald-900);
  margin-bottom: 4px;
}
.nomination-card__title-ru {
  font-size: 14px;
  color: var(--ink-400);
}

/* Inline SVG icons */
.hands-inline {
  display: inline-block;
  width: 22px; height: 22px;
  vertical-align: -4px;
  color: var(--gold-500);
  margin-left: 4px;
}

/* ==========================================================================
   Schedule + Venues
   ========================================================================== */

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 720px;
  margin-inline: auto;
}
.schedule-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.schedule-card:hover { transform: translateY(-2px); }
.schedule-card__time {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 44px);
  color: var(--emerald-800);
  line-height: 1;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.schedule-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--emerald-900);
  margin-bottom: 4px;
}
.schedule-card__title-ru {
  font-size: 13px;
  color: var(--ink-400);
}

.venues-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 880px;
  margin-inline: auto;
}
@media (max-width: 640px) {
  .venues-grid { grid-template-columns: 1fr; }
}
.venue-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.venue-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.venue-card--male::before    { background: linear-gradient(90deg, #2d8659, #14532d); }
.venue-card--female::before  { background: linear-gradient(90deg, var(--gold-400), var(--gold-600)); }

.venue-card__icon {
  width: 96px; height: 96px;
  margin: 0 auto 12px;
  line-height: 1;
  color: var(--emerald-800);
  display: grid; place-items: center;
}
.venue-card--female .venue-card__icon { color: var(--gold-600); }
.venue-card__icon svg { width: 72px; height: 72px; display: block; }
.venue-card__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 2px;
}
.venue-card__label-ru {
  font-size: 12px;
  color: var(--ink-400);
  opacity: 0.7;
  margin-bottom: 16px;
}
.venue-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--emerald-900);
  margin-bottom: 4px;
}
.venue-card__sub {
  font-size: 13px;
  color: var(--ink-400);
}

/* Deadline banner */
.deadline-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto 24px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(201, 160, 74, 0.12), rgba(184, 134, 11, 0.06));
  border: 1px solid var(--gold-400);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink-700);
}
.deadline-banner__icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: var(--gold-600);
  flex-shrink: 0;
}
.deadline-banner__icon svg { width: 28px; height: 28px; display: block; }
.deadline-banner strong { display: block; font-family: var(--font-display); color: var(--emerald-900); }
.deadline-banner .ru { font-size: 13px; color: var(--ink-500); }

/* Telegram alt block */
.telegram-alt {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 880px;
  margin: 24px auto 0;
  padding: 16px 20px;
  background: rgba(0, 122, 204, 0.06);
  border: 1px solid rgba(0, 122, 204, 0.2);
  border-radius: var(--radius);
}
.telegram-alt__icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: #007acc;
  flex-shrink: 0;
}
.telegram-alt__icon svg { width: 28px; height: 28px; display: block; }
.telegram-alt strong { display: block; font-family: var(--font-display); color: var(--emerald-900); }
.telegram-alt .ru { font-size: 13px; color: var(--ink-500); }

/* ==========================================================================
   Form
   ========================================================================== */

.form-section {
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 160, 74, 0.08), transparent 40%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-warm) 100%);
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-lg);
  max-width: 880px;
  margin-inline: auto;
}

.form-group { margin-bottom: 20px; }
.form-group__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-700);
  margin-bottom: 8px;
}
.form-group__label .req { color: var(--gold-600); margin-left: 2px; }
.form-group__label .ru {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-400);
  margin-top: 2px;
}
.form-group__hint {
  font-size: 12px;
  color: var(--ink-400);
  margin-top: 6px;
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="email"],
textarea, select {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: all 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--emerald-600);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.15);
}
input::placeholder, textarea::placeholder {
  color: var(--ink-300);
}
textarea { min-height: 84px; resize: vertical; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230f5132' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Honeypot (скрытое поле для ботов) */
.honeypot {
  position: absolute;
  top: auto;
  left: 0;
  width: 1px; height: 1px;
  padding: 0; margin: 0 -1px -1px 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

/* Participants */
.participants-list {
  display: flex; flex-direction: column;
  gap: 18px;
  margin-bottom: 8px;
}
.participant {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  animation: slideIn 0.25s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.participant__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.participant__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald-700);
  display: inline-flex; align-items: center; gap: 8px;
}
.participant__num::before {
  content: ""; width: 8px; height: 8px;
  background: var(--gold-500); border-radius: 50%;
}
.participant__remove {
  color: var(--ink-400);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.15s ease;
  display: inline-flex; align-items: center; gap: 6px;
}
.participant__remove:hover {
  color: var(--danger);
  background: rgba(185, 28, 28, 0.06);
}
.participant__remove:disabled {
  opacity: 0.4; cursor: not-allowed;
}

/* Captcha */
.captcha-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
}
.captcha__image {
  width: 140px; height: 50px;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: grid; place-items: center;
  position: relative;
}
.captcha__image svg { width: 100%; height: 100%; }
.captcha__refresh {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  display: grid; place-items: center;
  color: var(--emerald-700);
  font-size: 14px;
}
.captcha__image:hover .captcha__refresh { background: rgba(255, 255, 255, 0.95); }

@media (max-width: 480px) {
  .captcha-row { grid-template-columns: 1fr; }
  .captcha__image { width: 100%; height: 60px; }
}

/* Form messages */
.form-message {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 10px;
}
.form-message--error {
  background: rgba(185, 28, 28, 0.08);
  color: var(--danger);
  border: 1px solid rgba(185, 28, 28, 0.2);
}
.form-message--success {
  background: rgba(20, 83, 45, 0.08);
  color: var(--success);
  border: 1px solid rgba(20, 83, 45, 0.2);
}
.form-message--warning {
  background: rgba(180, 83, 9, 0.08);
  color: var(--warning);
  border: 1px solid rgba(180, 83, 9, 0.2);
}

/* ==========================================================================
   Mosque complex section
   ========================================================================== */

.complex-section {
  background: var(--emerald-900);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.complex-section::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(201, 160, 74, 0.12), transparent 35%),
    radial-gradient(circle at 5% 95%, rgba(45, 134, 89, 0.18), transparent 40%);
  pointer-events: none;
}

.complex-section .section__title { color: #fff; }
.complex-section .section__title .ru { color: rgba(255, 255, 255, 0.5); }
.complex-section .section__subtitle { color: rgba(255, 255, 255, 0.7); }
.complex-section .section__eyebrow { color: var(--gold-400); }

.complex-intro {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 48px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 1;
}
.complex-intro .ru {
  display: block;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 10px;
}

.complex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  position: relative; z-index: 1;
}

.complex-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(230, 196, 115, 0.18);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.2s ease;
}
.complex-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(230, 196, 115, 0.4);
  transform: translateY(-2px);
}
.complex-card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(230, 196, 115, 0.12);
  color: var(--gold-400);
  border-radius: 12px;
  margin-bottom: 14px;
}
.complex-card__icon svg { width: 26px; height: 26px; display: block; }
.complex-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  margin-bottom: 6px;
}
.complex-card__title-ru {
  font-size: 13px;
  color: rgba(230, 196, 115, 0.7);
  margin-bottom: 8px;
  font-weight: 500;
}
.complex-card__text {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}
.complex-card__text .ru {
  display: block;
  font-size: 0.92em;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 6px;
}

/* ==========================================================================
   Donate + contacts
   ========================================================================== */

.contacts-section {
  background: var(--cream);
}

.donate-card {
  background: linear-gradient(135deg, var(--emerald-800) 0%, var(--emerald-700) 100%);
  color: var(--cream);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.donate-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 160, 74, 0.2), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(45, 134, 89, 0.25), transparent 40%);
  pointer-events: none;
}
.donate-card__content { position: relative; z-index: 1; }
.donate-card__eyebrow {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 14px;
}
.donate-card__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  color: #fff;
  margin-bottom: 12px;
}
.donate-card__text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin-bottom: 24px;
}
.donate-card__text .ru {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92em;
  margin-top: 8px;
}

.donate-card__qr {
  position: relative; z-index: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 14px;
}
.donate-card__qr img {
  display: block;
  width: 220px;
  height: 220px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.donate-card__qr-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald-800);
  line-height: 1.4;
  max-width: 100%;
  word-break: break-word;
}
.donate-card__qr-label small {
  display: block;
  font-weight: 400;
  color: var(--ink-400);
  font-size: 12px;
  margin-top: 2px;
}

@media (max-width: 760px) {
  .donate-card { grid-template-columns: 1fr; text-align: center; }
  .donate-card__eyebrow,
  .donate-card__title,
  .donate-card__text { text-align: left; }
}

.contacts-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 48px;
}
.contact-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all 0.18s ease;
}
.contact-item:hover {
  border-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.contact-item__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--emerald-100);
  color: var(--emerald-800);
  border-radius: 14px;
  margin: 0 auto 14px;
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item__label {
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-400);
  margin-bottom: 6px;
}
.contact-item__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--emerald-900);
  word-break: break-word;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--emerald-900);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 48px 28px;
}
.site-footer__inner {
  display: flex; flex-wrap: wrap; gap: 24px;
  justify-content: space-between; align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(230, 196, 115, 0.18);
  margin-bottom: 18px;
}
.site-footer .brand__text { color: #fff; }
.site-footer .brand__text small { color: rgba(255, 255, 255, 0.5); }

.site-footer__links {
  display: flex; flex-wrap: wrap;
  gap: 12px 20px;
  list-style: none;
  justify-content: flex-end;
}
.site-footer__links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.site-footer__links a:hover { color: var(--gold-400); }

.site-footer__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* ==========================================================================
   Success modal
   ========================================================================== */

.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(10, 46, 31, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.2s ease;
}
.modal.is-open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal__card {
  background: var(--paper);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 48px);
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.25s ease;
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.modal__icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  background: var(--emerald-100);
  color: var(--emerald-700);
  border-radius: 50%;
  font-size: 32px;
}
.modal__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--emerald-900);
  margin-bottom: 10px;
}
.modal__title-ru {
  font-size: 15px;
  color: var(--ink-400);
  margin-bottom: 16px;
}
.modal__text {
  color: var(--ink-500);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.modal__uuid {
  display: inline-block;
  font-family: 'SF Mono', 'Monaco', monospace;
  font-size: 12px;
  background: var(--cream);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--ink-500);
  margin-top: 8px;
}

/* ==========================================================================
   Utilities & animations
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

/* Print-friendly (на случай печати списка заявок) */
@media print {
  .site-header, .site-footer, .nav-cta, .menu-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}
