/* ============================================================
   Институт Любви, Рода и Семьи — тёмная тема
   ============================================================ */

:root {
  --bg: #13141a;
  --bg-soft: #191a22;
  --card: #1e1f28;
  --card-hover: #262834;
  --line: rgba(224, 179, 118, 0.16);
  --line-soft: rgba(255, 255, 255, 0.07);

  --gold: #e0b376;
  --gold-bright: #f0cd9a;
  --gold-deep: #b8864f;
  --text: #f2e9dc;
  --text-soft: #cbbfa9;
  --text-dim: #94876f;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --maxw: 1160px;
}

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

html { scroll-behavior: smooth; }

/* ============================================================
   Слой «Звёздное небо + родовые связи» (глобальный фон)
   ============================================================ */
.universe {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.universe__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,1), transparent 55%),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.9), transparent 55%),
    radial-gradient(2px 2px at 60% 20%, rgba(255,255,255,1), transparent 55%),
    radial-gradient(1px 1px at 80% 55%, rgba(255,255,255,0.95), transparent 55%),
    radial-gradient(1.5px 1.5px at 12% 80%, rgba(255,255,255,1), transparent 55%),
    radial-gradient(2px 2px at 90% 15%, rgba(255,255,255,0.9), transparent 55%),
    radial-gradient(1px 1px at 33% 12%, rgba(255,255,255,0.85), transparent 55%),
    radial-gradient(1.5px 1.5px at 70% 85%, rgba(255,255,255,0.95), transparent 55%),
    radial-gradient(2px 2px at 55% 45%, rgba(255,255,255,0.8), transparent 55%),
    radial-gradient(1px 1px at 85% 38%, rgba(255,255,255,0.9), transparent 55%),
    radial-gradient(1.5px 1.5px at 5% 45%, rgba(255,255,255,0.85), transparent 55%),
    radial-gradient(2px 2px at 48% 88%, rgba(255,255,255,0.9), transparent 55%);
  background-size: 120px 120px;
  opacity: 0.9;
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle {
  from { opacity: 0.6; }
  to { opacity: 1; }
}
.universe__web {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}
.universe__web path {
  fill: none;
  stroke: rgba(255, 215, 160, 0.5);
  stroke-width: 0.7;
}
.universe__web circle {
  fill: rgba(255, 230, 190, 1);
  filter: drop-shadow(0 0 5px rgba(255, 200, 130, 0.9));
  animation: spark 3.5s ease-in-out infinite;
}
.universe__web circle:nth-of-type(2n) { animation-delay: 1.1s; }
.universe__web circle:nth-of-type(3n) { animation-delay: 2.2s; }
@keyframes spark {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* яркая вуаль для читаемости текста — убрана, заменена на слабую */
.universe::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 700px at 50% 30%, transparent 0%, rgba(10, 10, 18, 0.15) 100%);
  pointer-events: none;
}

/* Подпись-подсказка «родовые связи в лучиках Любви» — появляется при наведении */
.universe__hover {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  text-shadow:
    0 0 18px rgba(240, 205, 154, 0.55),
    0 0 46px rgba(224, 179, 118, 0.35);
  background: rgba(10, 8, 16, 0.55);
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(224, 179, 118, 0.35);
  backdrop-filter: blur(4px);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.universe__hover::before {
  content: "✦";
  margin-right: 12px;
  font-style: normal;
  opacity: 0.85;
}
.universe__hover::after {
  content: "✦";
  margin-left: 12px;
  font-style: normal;
  opacity: 0.85;
}

body {
  background:
    radial-gradient(1200px 600px at 82% -8%, rgba(224, 179, 118, 0.12), transparent 62%),
    radial-gradient(900px 560px at 6% 24%, rgba(150, 170, 220, 0.08), transparent 60%),
    radial-gradient(1100px 700px at 50% 115%, rgba(224, 179, 118, 0.06), transparent 62%),
    linear-gradient(180deg, #1a1c22 0%, #17181d 45%, #141519 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main, .site-footer { position: relative; z-index: 1; }

/* ---------- Типографика ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 0.9rem; }
h3 { font-size: 1.28rem; margin-bottom: 0.6rem; }

p { color: var(--text-soft); }
a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: #fff; }

::selection { background: rgba(224, 179, 118, 0.35); }

/* ---------- Утилиты ---------- */

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 84px 0; }
.section--soft { background: rgba(24, 25, 33, 0.55); backdrop-filter: blur(2px); }

/* Фоновые сцены — полупрозрачные */
.bg-family {
  background: rgba(18, 19, 26, 0.45);
  backdrop-filter: blur(3px);
}
.bg-heart {
  background: rgba(12, 13, 20, 0.5);
  backdrop-filter: blur(3px);
}

.section-head { max-width: 760px; margin-bottom: 48px; }

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

.lead { font-size: 1.12rem; color: var(--text-soft); }

.gold-text {
  background: linear-gradient(100deg, var(--gold-deep), var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--gold {
  background: linear-gradient(120deg, var(--gold), var(--gold-bright));
  color: #241a0e;
  box-shadow: 0 10px 30px rgba(224, 179, 118, 0.25);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(224, 179, 118, 0.38); color: #241a0e; }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 18, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.logo { /* keep as fallback */ }
.logo:hover { color: var(--text); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand__logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  padding: 4px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.brand__name { line-height: 1.1; }
.brand__name b {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  color: var(--gold-bright);
}
.brand__name span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 2px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: radial-gradient(circle at 30% 30%, var(--gold-bright), var(--gold-deep));
  color: #241a0e;
  box-shadow: 0 6px 18px rgba(224, 179, 118, 0.35);
}
.logo small { display: block; font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

.main-nav ul { display: flex; gap: 6px; list-style: none; align-items: center; }

.main-nav a {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 600;
}
.main-nav a:hover { color: var(--gold-bright); background: rgba(224, 179, 118, 0.08); }
.main-nav a[aria-current="page"] { color: var(--gold-bright); background: rgba(224, 179, 118, 0.12); }

.header-cta { padding: 11px 22px; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  place-items: center;
  position: relative;
}
.nav-toggle svg { position: absolute; }
.nav-toggle .ic-cross { display: none; }

/* ---------- Герой ---------- */

.hero {
  position: relative;
  padding: 120px 0 110px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(18, 19, 26, 0.55) 0%, rgba(18, 19, 26, 0.3) 45%, rgba(18, 19, 26, 0.75) 100%),
    url("../img/hero-couple-warm.jpg") center 40% / cover no-repeat,
    #13141a;
}
.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(90%, 1000px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 900px;
  align-items: center;
}

.hero h1 { margin: 18px 0 22px; }
.hero .lead { max-width: 540px; margin-bottom: 38px; }

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

/* .hero-stats убран — блок статистики справа удалён с главной */

.stat-card {
  background: rgba(27, 23, 19, 0.35);
  border: 1px solid rgba(224, 179, 118, 0.18);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--line); background: rgba(27, 23, 19, 0.55); }

.stat-num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold-bright);
  display: block;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.92rem; color: var(--text-dim); line-height: 1.4; }

/* ---------- Сетка карточек ---------- */

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--line); background: var(--card-hover); }

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 0;
  background: rgba(224, 179, 118, 0.12);
  border: 1px solid var(--line);
  margin-bottom: 18px;
  color: var(--gold-bright);
}
.card-icon .card-svg {
  width: 26px;
  height: 26px;
}
.card-icon .num-svg {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.card h3 { margin-top: 4px; }
.card p { font-size: 0.95rem; }

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ---------- Программы ---------- */

.program {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 30px 32px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  margin-bottom: 18px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.program:hover { border-color: var(--line); transform: translateX(6px); }

.program-photo {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.program-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold-deep);
  padding-top: 4px;
  min-width: 44px;
}

.program h3 { margin-bottom: 8px; }
.program p { font-size: 0.96rem; margin-bottom: 12px; }
.program .goal { display: block; font-size: 0.86rem; color: var(--gold); font-weight: 600; }

.program-arrow { align-self: center; color: var(--gold-deep); font-size: 1.4rem; }

/* ---------- Баннер (фестиваль) ---------- */

.banner {
  position: relative;
  border-radius: 26px;
  padding: 56px 48px;
  overflow: hidden;
  background: rgba(18, 19, 26, 0.4);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
}
.banner h2 { margin-bottom: 14px; }
.banner p { max-width: 620px; margin-bottom: 28px; }
.banner-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Принципы ---------- */

.principle {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.principle .num {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold-bright);
  background: rgba(224, 179, 118, 0.1);
  border: 1px solid var(--line);
}
.principle h3 { font-size: 1.08rem; margin-bottom: 4px; }
.principle p { font-size: 0.93rem; }

/* ---------- Базовые ценности ---------- */

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.value {
  position: relative;
  padding: 38px 30px 34px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--card), var(--bg-soft));
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.value:hover { transform: translateY(-5px); border-color: var(--line); }

.value::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 72%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.value-num {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  margin-bottom: 18px;
}

.value h3 { font-size: 1.5rem; color: var(--gold-bright); margin-bottom: 12px; }
.value p { font-size: 0.97rem; }

.value-photo {
  margin-top: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}
.value-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- CTA-блок ---------- */

.cta {
  text-align: center;
  padding: 70px 32px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(18, 19, 26, 0.4);
  backdrop-filter: blur(4px);
}
.cta h2 { margin-bottom: 14px; }
.cta p { max-width: 560px; margin: 0 auto 30px; }
.cta .hero-actions { justify-content: center; }

/* ---------- Контакты ---------- */

.contact-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
}
.contact-list li {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.contact-list .k { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; font-weight: 700; }
.contact-list .v { color: var(--text); font-weight: 600; }

/* ---------- Список с точками ---------- */

.check-list { list-style: none; margin-top: 14px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 0.96rem;
}
.check-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-size: 0.9rem;
}

/* ---------- Раздел о нас / страницы ---------- */

.page-hero {
  padding: 90px 0 64px;
  background: rgba(18, 19, 26, 0.5);
}
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .lead { max-width: 720px; }

.quote {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  color: var(--gold-bright);
  border-left: 3px solid var(--gold);
  padding-left: 26px;
  margin: 8px 0 4px;
}
.quote-cite { display: block; margin-top: 14px; font-family: var(--sans); font-size: 0.95rem; color: var(--text-dim); }

/* ---------- Футер ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 52px 0 34px;
  background: rgba(16, 17, 24, 0.7);
  backdrop-filter: blur(3px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a, .footer-grid p { color: var(--text-soft); font-size: 0.94rem; }
.footer-grid a:hover { color: var(--gold-bright); }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--text-dim);
}

/* ---------- Анимация появления ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Фотографии на тёмной теме ---------- */

/* ============================================================
   Фоновые секции с фото (тёмная тема)
   ============================================================ */
.bg-directions {
  background:
    linear-gradient(180deg, rgba(20, 17, 14, 0.7), rgba(20, 17, 14, 0.82)),
    url("../img/hero-couple-warm.jpg") center / cover no-repeat,
    var(--bg);
}
.bg-festival {
  background:
    linear-gradient(180deg, rgba(27, 23, 19, 0.7), rgba(20, 17, 14, 0.8)),
    url("../img/festival-bg.jpg") center / cover no-repeat,
    var(--bg-soft);
}

/* ============================================================
   Ключевые программы — стек карточек (как в первом сайте)
   ============================================================ */
.prog-stack { position: relative; }
.prog-card {
  position: sticky;
  top: 80px;
  min-height: calc(100vh - 100px);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-bottom: 0;
  border: 1px solid rgba(224, 179, 118, 0.2);
  box-shadow: var(--shadow);
  color: var(--text);
}
.prog-card:nth-child(2) { top: 96px; }
.prog-card:nth-child(3) { top: 112px; }
.prog-card:nth-child(4) { top: 128px; }
.prog-card:nth-child(5) { top: 144px; }
.prog-card:nth-child(6) { top: 160px; }
.prog-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prog-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(20, 17, 14, 0.08), rgba(20, 17, 14, 0.65));
  z-index: 1;
}
.prog-card > div { position: relative; z-index: 2; padding: clamp(28px, 4vw, 44px); }
.prog-card .prog-kicker { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); font-weight: 700; }
.prog-card h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 16ch; margin-bottom: 10px; }
.prog-card p { color: var(--text-soft); opacity: 0.95; max-width: 52ch; margin-top: 10px; }
.prog-card .prog-mods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.prog-card .prog-mods span {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.55);
  border: 1px solid rgba(224, 179, 118, 0.3);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.prog-card .goal { display: block; margin-top: 16px; color: var(--gold-bright); font-weight: 600; }

@media (max-width: 600px) {
  .prog-card { position: relative; top: 0 !important; min-height: auto; margin-bottom: 18px; }
  .prog-card img { position: absolute; }
  .prog-card::before { background: linear-gradient(180deg, rgba(20, 17, 14, 0.2), rgba(20, 17, 14, 0.65)); }
}

/* ============================================================
   BENTO / мозаика направлений (адаптировано под тёмную тему)
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(170px, auto); gap: 18px; }
.bento__cell {
  position: relative;
  color: var(--text);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--card), var(--bg-soft));
  border: 1px solid var(--line-soft);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.bento__cell:hover { transform: translateY(-4px); border-color: var(--line); }
.bento__cell h3 { font-size: 1.3rem; margin-bottom: 8px; }
.bento__cell p { color: var(--text-soft); font-size: 0.94rem; max-width: 46ch; }
.bento__cell .cell-tag { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 12px; }
.col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }
.row-2 { grid-row: span 2; }
.bento__cell--rose  { background: linear-gradient(160deg, #2b1d1a, var(--bg-soft)); border-color: rgba(224, 179, 118, 0.18); }
.bento__cell--gold  { background: linear-gradient(160deg, #2a2117, var(--bg-soft)); border-color: rgba(224, 179, 118, 0.2); }
.bento__cell--rose  .cell-tag { color: #e8a68f; }
.bento__cell--gold  .cell-tag { color: var(--gold-bright); }
.bento__cell.is-photo {
  justify-content: flex-end;
  color: var(--text);
  border-color: rgba(224, 179, 118, 0.2);
}
.bento__cell.is-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 14, 0.12), rgba(20, 17, 14, 0.7));
  z-index: 0;
}
.bento__cell.is-photo img {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover;
}
.bento__cell.is-photo h3, .bento__cell.is-photo p, .bento__cell.is-photo .cell-tag { position: relative; z-index: 1; }
.bento__cell.is-photo .cell-tag { color: var(--gold-bright); }
.bento__cell.is-photo p { opacity: 0.9; }

@media (max-width: 900px) {
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
  .row-2 { grid-row: span 1; }
  .bento { grid-template-columns: 1fr; }
}

/* ============================================================
   Выпадающее меню направлений
   ============================================================ */
.main-nav .has-drop { position: relative; }
.main-nav .drop {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  list-style: none;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  box-shadow: var(--shadow);
  z-index: 200;
}
.main-nav .has-drop:hover .drop { display: flex; }
.main-nav .drop a {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}
.main-nav .drop a:hover { color: var(--gold-bright); background: rgba(224, 179, 118, 0.08); }

@media (max-width: 860px) {
  .main-nav .has-drop { position: static; }
  .main-nav .drop {
    position: static;
    display: none;
    min-width: 0;
    box-shadow: none;
    background: rgba(224, 179, 118, 0.04);
    margin: 4px 0 8px;
  }
  .main-nav .has-drop.open .drop { display: flex; }
  .main-nav .drop a { white-space: normal; }
}

/* ============================================================
   Карточки услуг (Event-агентство / Медиатор / Юрист)
   ============================================================ */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 280px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 14, 0.12), rgba(20, 17, 14, 0.85));
  z-index: 1;
}
.service-card > * { position: relative; z-index: 2; }
.service-card .card-tag { color: var(--gold-bright); }
.service-card h3 { margin-bottom: 6px; }
.service-card p { font-size: 0.93rem; }

@media (max-width: 860px) {
  .service-grid { grid-template-columns: 1fr; }
}
.fs-lg { font-size: 1.4rem; }

/* ---------- Фотографии на тёмной теме ---------- */

.photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  background: var(--card);
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo--std { aspect-ratio: 4 / 3; }
.photo--tall { aspect-ratio: 3 / 4; }
.photo--wide { aspect-ratio: 16 / 9; }

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

.photo-link { display: block; }

.card-photo {
  margin: -30px -26px 22px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-photo-soft {
  margin-top: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.card-photo-soft img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: center;
}

@media (max-width: 1024px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-split { grid-template-columns: 1fr; }
}

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

/* ---------- Адаптивность ---------- */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .contact-list { grid-template-columns: 1fr; }

  .nav-toggle { display: grid; place-items: center; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 17, 14, 0.98);
    border-bottom: 1px solid var(--line-soft);
    padding: 12px 24px 20px;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { display: block; padding: 12px 16px; }
  .header-cta { display: none; }
}

@media (max-width: 600px) {
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 76px 0 70px; }
  .program { grid-template-columns: 1fr; gap: 10px; }
  .program-photo { display: none; }
  .program-arrow { display: none; }
  .banner { padding: 40px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
