/*
Theme Name:  Никах — Сервис поиска супруга
Theme URI:   https://example.com/nikah-theme
Description: Тема для исламского сервиса поиска спутника жизни (никах). Разработана под плагин Nikah Service.
Version:     1.0.0
Author:      Nikah Service Team
Text Domain: nikah-theme
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ============================================================
   1. ПЕРЕМЕННЫЕ
   ============================================================ */
:root {
  --color-primary:    #2e7d32;   /* тёмно-зелёный — цвет ислама      */
  --color-primary-d:  #1b5e20;   /* hover                             */
  --color-primary-l:  #e8f5e9;   /* фоны-подсказки                    */
  --color-accent:     #f9a825;   /* золотой акцент                    */
  --color-text:       #1a1a1a;
  --color-muted:      #666;
  --color-border:     #e0e0e0;
  --color-bg:         #fafafa;
  --color-white:      #fff;

  --font-body:   'Segoe UI', system-ui, sans-serif;
  --font-arabic: 'Amiri', Georgia, serif; /* для арабских фрагментов */

  --radius:  8px;
  --radius-l: 14px;
  --shadow:  0 2px 12px rgba(0,0,0,.08);
  --shadow-l: 0 4px 24px rgba(0,0,0,.12);

  --container: 1100px;
  --gap: 24px;
}

/* ============================================================
   2. RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-d); }

ul, ol { padding-left: 1.4em; }
p { margin-bottom: 1em; }
h1,h2,h3,h4 { line-height: 1.25; font-weight: 700; margin-bottom: .5em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

/* ============================================================
   3. ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ
   ============================================================ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  clip: rect(0,0,0,0);
  overflow: hidden;
  white-space: nowrap;
}

/* ============================================================
   4. ШАПКА САЙТА
   ============================================================ */
.site-header {
  background: var(--color-white);
  border-bottom: 2px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

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

/* логотип + имя сайта */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
}

.site-logo__icon {
  width: 38px;
  height: 38px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-white);
  flex-shrink: 0;
  /* Полумесяц/звезда через CSS; можно заменить img */
}

.site-logo__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: .01em;
}

.site-logo__sub {
  font-size: .7rem;
  color: var(--color-muted);
  font-weight: 400;
  display: block;
  line-height: 1.2;
}

/* навигация */
.site-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 6px 14px;
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: .9rem;
  font-weight: 500;
  transition: background .15s;
}

.site-nav a:hover,
.site-nav .current-menu-item a {
  background: var(--color-primary-l);
  color: var(--color-primary);
}

/* кнопки в шапке */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--color-muted);
}

.header-user__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--color-muted);
}

/* бургер (скрыт на десктопе) */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ============================================================
   5. КНОПКИ (расширяем стили плагина)
   ============================================================ */
.nikah-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: .93rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .1s;
  line-height: 1.2;
}
.nikah-btn:hover, .btn:hover {
  background: var(--color-primary-d);
  color: var(--color-white);
  transform: translateY(-1px);
}
.nikah-btn:active, .btn:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary-l);
  color: var(--color-primary);
}

.btn-sm { padding: 6px 14px; font-size: .83rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* ============================================================
   6. HERO — ГЛАВНАЯ СТРАНИЦА
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1b5e20 100%);
  color: var(--color-white);
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 40%, rgba(255,255,255,.05) 0%, transparent 50%),
    radial-gradient(circle at 85% 60%, rgba(255,255,255,.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero__ayat {
  font-family: var(--font-arabic);
  font-size: 1.15rem;
  opacity: .85;
  margin-bottom: 8px;
  direction: rtl;
}

.hero__ayat-ref {
  font-size: .78rem;
  opacity: .6;
  margin-bottom: 32px;
  display: block;
}

.hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero__title em {
  font-style: normal;
  color: var(--color-accent);
}

.hero__desc {
  max-width: 540px;
  margin-inline: auto;
  opacity: .9;
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__actions .btn {
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 700;
}
.hero__actions .btn:hover {
  background: var(--color-accent);
  color: var(--color-primary-d);
}
.hero__actions .btn-outline {
  border-color: rgba(255,255,255,.5);
  color: var(--color-white);
  background: transparent;
}
.hero__actions .btn-outline:hover {
  background: rgba(255,255,255,.1);
  color: var(--color-white);
}

/* счётчики на герое */
.hero__stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero__stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-accent);
  display: block;
}
.hero__stat-label {
  font-size: .78rem;
  opacity: .75;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ============================================================
   7. КАК ЭТО РАБОТАЕТ — ШАГИ
   ============================================================ */
.how-it-works {
  padding: 72px 0;
  background: var(--color-white);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 { margin-bottom: 8px; }
.section-title p  { color: var(--color-muted); max-width: 520px; margin-inline: auto; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--gap);
}

.step {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-l);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  position: relative;
  transition: box-shadow .2s;
}
.step:hover { box-shadow: var(--shadow-l); }

.step__icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary-l);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
  color: var(--color-primary);
}

.step__num {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--color-muted);
  opacity: .5;
}

.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p  { font-size: .88rem; color: var(--color-muted); margin: 0; }

/* ============================================================
   8. ПОЧЕМУ МЫ — ПРЕИМУЩЕСТВА
   ============================================================ */
.features {
  padding: 72px 0;
  background: var(--color-primary-l);
}

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

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-l);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-card__icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.feature-card__body h3 { font-size: 1rem; margin-bottom: 6px; }
.feature-card__body p  { font-size: .88rem; color: var(--color-muted); margin: 0; }

/* ============================================================
   9. ТАРИФЫ (расширяем .nikah-pricing из плагина)
   ============================================================ */
.nikah-pricing { padding: 72px 0; }

.nikah-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
  max-width: 680px;
  margin-inline: auto;
}

.nikah-pricing-card {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: 32px 28px;
  text-align: center;
  transition: box-shadow .2s;
}
.nikah-pricing-card:hover { box-shadow: var(--shadow-l); }

.nikah-pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.nikah-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.nikah-pricing-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 28px;
  text-align: left;
}
.nikah-pricing-card li {
  padding: 6px 0;
  font-size: .92rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
}
.nikah-pricing-card li:last-child { border-bottom: none; }

.nikah-pricing-card-premium {
  border-color: var(--color-primary);
  position: relative;
}
.nikah-pricing-card-premium::before {
  content: 'Популярный';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============================================================
   10. ФОРМЫ ПЛАГИНА — СЕТКА И ОБЁРТКИ
   ============================================================ */
.page-nikah {
  padding: 40px 0 72px;
}

.page-nikah__layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

/* боковая панель с подсказками (добавляется через wp_editor или виджет) */
.page-nikah__sidebar {
  position: sticky;
  top: 84px;
}

.sidebar-widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: 24px;
  margin-bottom: var(--gap);
}
.sidebar-widget h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

/* карточки анкет (расширяем .nikah-profile-card) */
.nikah-profile-card {
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-white);
  transition: box-shadow .2s, transform .15s;
}
.nikah-profile-card:hover {
  box-shadow: var(--shadow-l);
  transform: translateY(-2px);
}

/* бейдж "Проверено" */
.nikah-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-primary-l);
  color: var(--color-primary);
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  white-space: nowrap;
}

/* бейдж "Премиум" */
.nikah-badge-premium {
  background: #fff8e1;
  color: #f57f17;
}

/* буст-рамка вокруг анкеты */
.nikah-profile-card.is-boosted {
  border: 2px solid var(--color-accent);
}

/* форма анкеты */
.nikah-profile-form,
.nikah-verification-upload,
.nikah-search-filters {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: 32px;
  box-shadow: var(--shadow);
}

.nikah-profile-form label,
.nikah-verification-upload label {
  font-size: .88rem;
}

/* поле формы */
.nikah-field {
  margin-bottom: 20px;
}

/* уведомления */
.nikah-notice {
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .92rem;
  margin-bottom: 20px;
}
.nikah-notice-success {
  background: var(--color-primary-l);
  border: 1px solid #a5d6a7;
  color: #1b5e20;
}
.nikah-notice-error {
  background: #ffebee;
  border: 1px solid #ef9a9a;
  color: #b71c1c;
}

/* чат */
.nikah-chat {
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

/* ============================================================
   11. ВЕРИФИКАЦИЯ — ИКОНКА В КАРТОЧКЕ
   ============================================================ */
.nikah-profile-info .nikah-profile-name {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* ============================================================
   12. BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  font-size: .82rem;
  color: var(--color-muted);
  padding: 14px 0;
  margin-bottom: 8px;
}
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs span + span::before {
  content: ' / ';
  opacity: .5;
}

/* ============================================================
   13. КОНТЕНТНАЯ СТРАНИЦА (page.php)
   ============================================================ */
.site-content {
  padding: 48px 0 80px;
}

.page-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
  margin-bottom: 36px;
}

.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { margin-bottom: 1em; }
.entry-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 12px 20px;
  background: var(--color-primary-l);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1em;
  font-style: italic;
  color: var(--color-primary-d);
}

/* ============================================================
   14. ПОДВАЛ
   ============================================================ */
.site-footer {
  background: #1a2620;
  color: rgba(255,255,255,.75);
  padding: 48px 0 24px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand__logo {
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.footer-brand p {
  font-size: .88rem;
  line-height: 1.6;
  max-width: 280px;
  margin: 0;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: .88rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}
.footer-col li + li { margin-top: 8px; }
.footer-col a {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
  transition: color .15s;
}
.footer-col a:hover { color: var(--color-white); }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-ayat {
  font-family: var(--font-arabic);
  text-align: center;
  font-size: .95rem;
  opacity: .55;
  margin-bottom: 24px;
  direction: rtl;
}

/* ============================================================
   15. АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 900px) {
  .page-nikah__layout {
    grid-template-columns: 1fr;
  }
  .page-nikah__sidebar {
    position: static;
  }
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-nav.is-open {
    display: block;
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--color-white);
    z-index: 999;
    overflow-y: auto;
    padding: 20px;
    box-shadow: var(--shadow-l);
  }
  .site-nav.is-open ul {
    flex-direction: column;
    gap: 4px;
  }
  .site-nav.is-open a {
    font-size: 1rem;
    padding: 12px 16px;
  }
  .burger { display: flex; }

  .hero { padding: 52px 0 44px; }
  .hero__stats { gap: 24px; }

  .site-footer__grid { grid-template-columns: 1fr; }

  .nikah-profile-form,
  .nikah-verification-upload,
  .nikah-search-filters { padding: 20px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  .hero__title { font-size: 1.6rem; }
  .nikah-pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}


/* декоративный орнамент */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 40%, rgba(255,255,255,.05) 0%, transparent 50%),
    radial-gradient(circle at 85% 60%, rgba(255,255,255,.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero__ayat {
  font-family: var(--font-arabic);
  font-size: 1.15rem;
  opacity: .85;
  margin-bottom: 8px;
  direction: rtl;
}

.hero__ayat-ref {
  font-size: .78rem;
  opacity: .6;
  margin-bottom: 32px;
  display: block;
}

.hero__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero__title em {
  font-style: normal;
  color: var(--color-accent);
}

.hero__desc {
  max-width: 540px;
  margin-inline: auto;
  opacity: .9;
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__actions .btn {
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 700;
}
.hero__actions .btn:hover {
  background: var(--color-accent);
  color: var(--color-primary-d);
}

.hero__actions .btn-outline {
  border-color: rgba(255,255,255,.5);
  color: var(--color-white);
  background: transparent;
}
.hero__actions .btn-outline:hover {
  background: rgba(255,255,255,.1);
  color: var(--color-white);
}

/* счётчики на герое */
.hero__stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero__stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  display: block;
}

.hero__stat-label {
  font-size: .82rem;
  opacity: .7;
}

/* ============================================================
   7. СЕКЦИЯ "КАК ЭТО РАБОТАЕТ"
   ============================================================ */
.how-it-works {
  padding: 72px 0;
  background: var(--color-white);
}

.section-label {
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .12em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 40px;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap);
  counter-reset: steps;
}

.step {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius-l);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  position: relative;
}

.step::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
}

.step__icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  display: block;
}

.step__title {
  font-size: 1rem;
  margin-bottom: 6px;
}

.step__desc {
  font-size: .88rem;
  color: var(--color-muted);
  margin: 0;
}

/* ============================================================
   8. СЕКЦИЯ "ХАЛЯЛЬ-ПРИНЦИПЫ" (доверие)
   ============================================================ */
.principles {
  padding: 64px 0;
  background: var(--color-primary-l);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
  margin-top: 32px;
}

.principle-card {
  background: var(--color-white);
  border-radius: var(--radius-l);
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}

.principle-card__icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.principle-card__title {
  font-size: 1rem;
  margin-bottom: 4px;
}

.principle-card__desc {
  font-size: .87rem;
  color: var(--color-muted);
  margin: 0;
}

/* ============================================================
   9. КАРТОЧКА АНКЕТЫ (расширяем стили плагина)
   ============================================================ */
.nikah-profile-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--color-white);
  transition: box-shadow .15s, transform .15s;
}

.nikah-profile-card:hover {
  box-shadow: var(--shadow-l);
  transform: translateY(-2px);
}

.nikah-profile-photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.nikah-profile-info {
  padding: 14px 16px 18px;
}

.nikah-profile-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.nikah-profile-city,
.nikah-profile-mazhab {
  font-size: .83rem;
  color: var(--color-muted);
  margin: 3px 0;
}

.nikah-profile-about {
  font-size: .88rem;
  color: #444;
  margin: 8px 0 12px;
}

/* бейдж "Проверено" */
.nikah-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-primary-l);
  color: var(--color-primary);
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* бейдж "Премиум" (буст) */
.nikah-badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff8e1;
  color: #e65100;
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* ============================================================
  10. GRID ПОИСКА (переопределяем плагин под тему)
   ============================================================ */
.nikah-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--gap);
}

.nikah-search-filters {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  box-shadow: var(--shadow);
}

.nikah-search-filters label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-muted);
  display: block;
  margin-bottom: 4px;
}

.nikah-search-filters input,
.nikah-search-filters select {
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: .9rem;
  background: var(--color-bg);
  transition: border-color .15s;
}
.nikah-search-filters input:focus,
.nikah-search-filters select:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* ============================================================
  11. ФОРМА АНКЕТЫ (переопределяем плагин под тему)
   ============================================================ */
.nikah-profile-form {
  max-width: 600px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: 32px 36px;
  box-shadow: var(--shadow);
}

.nikah-profile-form .nikah-field {
  margin-bottom: 20px;
}

.nikah-profile-form label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.nikah-profile-form input[type="text"],
.nikah-profile-form input[type="date"],
.nikah-profile-form select,
.nikah-profile-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: .93rem;
  background: var(--color-bg);
  transition: border-color .15s, box-shadow .15s;
  font-family: var(--font-body);
}

.nikah-profile-form input:focus,
.nikah-profile-form select:focus,
.nikah-profile-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(46,125,50,.12);
}

.nikah-wali-fields {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: 20px;
  background: #f1f8e9;
  margin: 16px 0;
  display: none;
}
.nikah-wali-fields.is-visible { display: block; }

.nikah-wali-fields legend {
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 0 6px;
}

/* ============================================================
  12. ЦЕНОВЫЕ ТАРИФЫ
   ============================================================ */
.nikah-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
  margin-top: 12px;
}

.nikah-pricing-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: 32px 28px;
  background: var(--color-white);
  text-align: center;
  position: relative;
}

.nikah-pricing-card-premium {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary);
}

.nikah-pricing-card-premium::before {
  content: '✦ Популярный';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.nikah-price {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 10px 0 16px;
}

.nikah-pricing-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 24px;
}

.nikah-pricing-card li {
  padding: 5px 0;
  font-size: .9rem;
  color: #444;
  border-bottom: 1px dashed var(--color-border);
}

/* ============================================================
  13. ЧАТ (переопределяем плагин)
   ============================================================ */
.nikah-chat {
  max-width: 680px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-l);
}

.nikah-chat-header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nikah-chat-header strong { color: var(--color-white); }
.nikah-chat-city { color: rgba(255,255,255,.7); font-size: .82rem; }
.nikah-chat-back { margin-left: auto; color: rgba(255,255,255,.8); font-size: .83rem; }
.nikah-chat-back:hover { color: var(--color-white); }

.nikah-chat-notice {
  background: #fff8e1;
  color: #7c5000;
  padding: 10px 16px;
  font-size: .82rem;
  border-bottom: 1px solid #ffe082;
}

.nikah-chat-messages {
  height: 400px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fdf8;
}

.nikah-message-mine .nikah-message-bubble {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 16px 16px 4px 16px;
}

.nikah-message-theirs .nikah-message-bubble {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px 16px 16px 4px;
}

.nikah-chat-form {
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--color-border);
}

.nikah-chat-form textarea {
  flex: 1;
  resize: none;
  height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: var(--font-body);
  transition: border-color .15s;
}
.nikah-chat-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* ============================================================
  14. УВЕДОМЛЕНИЯ (расширяем плагин)
   ============================================================ */
.nikah-notice {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: .93rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.nikah-notice::before {
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1.4;
}

.nikah-notice-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #1b5e20;
}
.nikah-notice-success::before { content: '✓'; }

.nikah-notice-error {
  background: #ffebee;
  border: 1px solid #ef9a9a;
  color: #b71c1c;
}
.nikah-notice-error::before { content: '✕'; }

.nikah-notice:not(.nikah-notice-success):not(.nikah-notice-error) {
  background: #e3f2fd;
  border: 1px solid #90caf9;
  color: #0d47a1;
}
.nikah-notice:not(.nikah-notice-success):not(.nikah-notice-error)::before { content: 'ℹ'; }

/* ============================================================
  15. МЭТЧИ
   ============================================================ */
.nikah-matches-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--gap);
}

.nikah-match-card {
  display: block;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--color-white);
  transition: box-shadow .15s, transform .15s;
}

.nikah-match-card:hover {
  box-shadow: var(--shadow-l);
  transform: translateY(-2px);
}

.nikah-match-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.nikah-match-info {
  padding: 12px;
}

/* ============================================================
  16. ВЕРИФИКАЦИЯ
   ============================================================ */
.nikah-verification-form {
  max-width: 560px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: 32px;
  box-shadow: var(--shadow);
}

.nikah-verification-privacy {
  font-size: .82rem;
  color: var(--color-muted);
  background: var(--color-bg);
  padding: 12px;
  border-radius: var(--radius);
  margin: 16px 0;
}

.nikah-verification-upload .nikah-field input[type="file"] {
  font-size: .9rem;
  padding: 8px 0;
}

/* ============================================================
  17. ОСНОВНОЙ КОНТЕНТ
   ============================================================ */
.site-main {
  min-height: 60vh;
  padding: 48px 0;
}

/* обёртка страницы без сайдбара */
.page-wrap {
  max-width: 820px;
  margin-inline: auto;
}

/* заголовок страницы */
.page-header {
  margin-bottom: 32px;
}

.page-header__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 6px;
}

.page-header__desc {
  color: var(--color-muted);
  font-size: .95rem;
  margin: 0;
}

/* ============================================================
  18. ПОДВАЛ
   ============================================================ */
.site-footer {
  background: #1a2a1e;
  color: rgba(255,255,255,.65);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: 40px;
}

.footer-brand__logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 10px;
}

.footer-brand__tagline {
  font-size: .85rem;
  opacity: .7;
  margin-bottom: 14px;
}

.footer-brand__ayat {
  font-family: var(--font-arabic);
  font-size: .95rem;
  direction: rtl;
  opacity: .55;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-col a {
  color: rgba(255,255,255,.55);
  font-size: .88rem;
  transition: color .15s;
}

.footer-col a:hover { color: var(--color-white); }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  opacity: .5;
}

/* ============================================================
  19. ВСПОМОГАТЕЛЬНЫЕ СЕКЦИИ
   ============================================================ */
.content-section {
  padding: 64px 0;
}

.content-section:nth-child(even) {
  background: var(--color-white);
}

/* ============================================================
  20. АДАПТИВ
   ============================================================ */
@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-nav { display: none; position: fixed; inset: 64px 0 auto; background: var(--color-white); padding: 16px; box-shadow: var(--shadow-l); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .burger { display: flex; }
  .hero { padding: 52px 0 48px; }
  .nikah-profile-form { padding: 24px 20px; }
}

@media (max-width: 540px) {
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; text-align: center; }
  h1 { font-size: 1.6rem; }
  .steps { grid-template-columns: 1fr; }
}

/* ============================================================
   SEO-БЛОКИ: FAQ, ГОРОДА, GEO-ЛЕНДИНГИ
   ============================================================ */

/* FAQ */
.faq-section { padding: 72px 0; background: var(--color-white); }
.faq-list { max-width: 780px; margin-inline: auto; }

.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-text);
  font-family: var(--font-body);
}
.faq-item__question:hover { color: var(--color-primary); }
.faq-item__icon {
  font-size: 1.4rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform .2s;
  color: var(--color-primary);
}
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item.is-open .faq-item__answer { max-height: 500px; }
.faq-item__answer p {
  padding: 0 0 18px;
  color: var(--color-muted);
  font-size: .95rem;
  margin: 0;
}

/* ГОРОДА */
.cities-section { padding: 64px 0; }
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.city-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 12px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  text-decoration: none;
  color: var(--color-text);
  text-align: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.city-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--color-primary);
}
.city-card__icon { font-size: 1.6rem; }
.city-card__name { font-weight: 600; font-size: .95rem; }
.city-card__label { font-size: .75rem; color: var(--color-muted); }

/* GEO-ЛЕНДИНГ */
.city-header { margin-bottom: 28px; }
.city-header__region { color: var(--color-muted); font-size: .95rem; margin-top: 4px; }

.city-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}
.city-layout__sidebar { position: sticky; top: 80px; }

.city-info-list, .city-links-list {
  list-style: none;
  padding: 0;
}
.city-info-list li { padding: 5px 0; font-size: .9rem; border-bottom: 1px dashed var(--color-border); }
.city-links-list li + li { margin-top: 7px; }
.city-links-list a { font-size: .9rem; color: var(--color-muted); }
.city-links-list a:hover { color: var(--color-primary); }

.city-cta-box {
  background: linear-gradient(135deg, var(--color-primary), #1b5e20);
  color: var(--color-white);
  border-radius: var(--radius-l);
  padding: 32px;
  margin-bottom: 32px;
  text-align: center;
}
.city-cta-box h2 { color: var(--color-white); margin-bottom: 8px; }
.city-cta-box p { opacity: .9; margin-bottom: 20px; }
.city-cta-box__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.city-cta-box .nikah-btn {
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 700;
}
.city-cta-box .btn-outline {
  border-color: rgba(255,255,255,.5);
  color: var(--color-white);
  background: transparent;
}

/* CTA снизу (front-page) */
.cta-section {
  padding: 72px 0;
  background: var(--color-primary);
  text-align: center;
}
.cta-inner h2 { color: var(--color-white); margin-bottom: 8px; }
.cta-inner p  { color: rgba(255,255,255,.8); margin-bottom: 24px; }
.cta-inner .btn {
  background: var(--color-white);
  color: var(--color-primary);
  font-weight: 700;
}

/* Адаптив гео-лендинга */
@media (max-width: 900px) {
  .city-layout { grid-template-columns: 1fr; }
  .city-layout__sidebar { position: static; }
}
