/* ═══════════════════════════════════════════════════════
   ЧЁРНЫЙ МАГ АТАМ — ДИЗАЙН-СИСТЕМА
   Концепция: «Цифровой Гримуар»
   Палитра: Тьма + Золото + Бордо
═══════════════════════════════════════════════════════ */

/* ─── Переменные ─── */
:root {
  --c-void:       #0A0608;
  --c-dark:       #110810;
  --c-deep:       #1A0A14;
  --c-bordeaux:   #6B1A2A;
  --c-bordeaux-h: #8B2235;
  --c-gold:       #C8A96E;
  --c-gold-pale:  #D4BF92;
  --c-copper:     #8B4513;
  --c-amber:      #7A4419;
  --c-text:       #C9C0C0;
  --c-text-dim:   #7A6B6B;
  --c-text-faint: #3D2F2F;
  --c-glass:      rgba(255,255,255,0.04);
  --c-glass-b:    rgba(200,169,110,0.08);
  --c-border:     rgba(200,169,110,0.15);
  --c-border-dim: rgba(200,169,110,0.07);

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --nav-h: 70px;
  --radius: 2px;
  --radius-lg: 6px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-gold: 0 0 30px rgba(200,169,110,0.15);
  --shadow-dark: 0 20px 60px rgba(0,0,0,0.6);
}

/* ─── Сброс ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  background-color: var(--c-void);
  color: var(--c-text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── Утилиты ─── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-gold);
  opacity: 0.7;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 600;
  color: #EDE0CB;
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-title em {
  font-style: italic;
  color: var(--c-gold);
}

.section-sub {
  font-size: 17px;
  color: var(--c-text-dim);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 60px;
}

.section-bg  { background: var(--c-deep); }
.section-dark { background: var(--c-dark); }

/* ─── Reveal анимации ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-fade {
  opacity: 0;
  transition: opacity 0.9s ease;
}
.reveal-fade.visible { opacity: 1; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.35s; }
.delay-4 { transition-delay: 0.5s; }


/* ═══════════════════════════════════════════════════════
   КНОПКИ
═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::before { opacity: 1; }

.btn--primary {
  background: var(--c-bordeaux);
  color: #F0E0C0;
  border: 1px solid var(--c-bordeaux);
}
.btn--primary::before { background: var(--c-bordeaux-h); }
.btn--primary:hover {
  box-shadow: 0 0 20px rgba(107,26,42,0.5), 0 0 50px rgba(107,26,42,0.2);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--c-gold);
  border: 1px solid var(--c-gold);
}
.btn--outline::before { background: rgba(200,169,110,0.07); }
.btn--outline:hover {
  box-shadow: 0 0 20px rgba(200,169,110,0.2);
  transform: translateY(-1px);
}

.btn--tg {
  background: #1d6fa8;
  color: #fff;
  border: 1px solid #1d6fa8;
  justify-content: center;
}
.btn--tg::before { background: #1a5f90; }
.btn--tg:hover { box-shadow: 0 0 20px rgba(29,111,168,0.4); transform: translateY(-1px); }

.btn--sm { padding: 10px 22px; font-size: 13px; }
.btn--full { width: 100%; justify-content: center; }

.btn__icon { width: 16px; height: 16px; flex-shrink: 0; }


/* ═══════════════════════════════════════════════════════
   НАВИГАЦИЯ
═══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10,6,8,0.92);
  border-bottom-color: var(--c-border-dim);
  backdrop-filter: blur(20px);
}

.nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__left, .nav__right {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}
.nav__right { justify-content: flex-end; }

.nav__link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.8px;
  color: var(--c-text-dim);
  transition: color var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--c-gold);
  transition: width var(--transition);
}
.nav__link:hover { color: var(--c-gold); }
.nav__link:hover::after { width: 100%; }

.nav__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.nav__sigil {
  width: 32px; height: 32px;
  transition: transform 0.8s ease;
}
.nav__brand:hover .nav__sigil { transform: rotate(36deg); }
.nav__brand-text {
  font-size: 9px;
  letter-spacing: 4px;
  color: var(--c-gold);
  font-weight: 500;
}

.nav__cta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--c-gold);
  border: 1px solid var(--c-border);
  padding: 8px 18px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav__cta:hover {
  background: rgba(200,169,110,0.08);
  border-color: var(--c-gold);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--c-gold);
  transition: all var(--transition);
}
.nav__burger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  background: rgba(10,6,8,0.98);
  border-top: 1px solid var(--c-border-dim);
  padding: 16px 32px 24px;
  gap: 0;
}
.nav__mobile.open { display: flex; }

.nav__mobile-link {
  padding: 14px 0;
  font-size: 15px;
  color: var(--c-text-dim);
  border-bottom: 1px solid var(--c-border-dim);
  transition: color var(--transition);
}
.nav__mobile-link:hover { color: var(--c-gold); }
.nav__mobile-cta {
  margin-top: 20px;
  display: block;
  text-align: center;
  padding: 14px;
  background: var(--c-bordeaux);
  color: #F0E0C0;
  font-size: 14px;
  border-radius: var(--radius);
}


/* ═══════════════════════════════════════════════════════
   I. HERO — ОБЛОЖКА ГРИМУАРА
═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 92px 32px 46px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 78% 48%, rgba(107,26,42,0.28) 0%, transparent 58%),
    radial-gradient(ellipse 70% 70% at 18% 42%, rgba(200,169,110,0.12) 0%, transparent 62%),
    linear-gradient(115deg, #0a0608 0%, #150913 50%, #080506 100%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Угловые декоративные линии */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border: 1px solid var(--c-border-dim);
  pointer-events: none;
}
.hero::before { top: 80px; left: 60px; border-right: none; border-bottom: none; }
.hero::after  { bottom: 60px; right: 60px; border-left: none; border-top: none; }

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.hero__copy {
  max-width: 620px;
  padding-top: 22px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.8);
}

.hero__eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--c-gold);
  opacity: 0.82;
  margin-bottom: 24px;
  font-weight: 500;
}

/* Анимированный сигил */
.hero__sigil-wrap {
  position: absolute;
  top: 42px;
  left: -290px;
  width: 210px; height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.82;
  pointer-events: none;
  z-index: 6;
}

.hero__sigil {
  width: 190px; height: 190px;
  animation: sigil-rotate 40s linear infinite;
  filter: drop-shadow(0 0 18px rgba(200,169,110,0.34));
}

.sigil-outer {
  animation: sigil-rotate-reverse 30s linear infinite;
  transform-origin: center;
}
.sigil-star {
  animation: sigil-pulse 4s ease-in-out infinite;
}
.sigil-core {
  animation: core-glow 3s ease-in-out infinite;
}

.hero__sigil-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,26,42,0.3) 0%, transparent 70%);
  animation: sigil-pulse 4s ease-in-out infinite;
}

@keyframes sigil-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes sigil-rotate-reverse {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
@keyframes sigil-pulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}
@keyframes core-glow {
  0%, 100% { fill: var(--c-gold); filter: drop-shadow(0 0 4px var(--c-gold)); }
  50%       { fill: var(--c-bordeaux); filter: drop-shadow(0 0 8px var(--c-bordeaux)); }
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(56px, 6.8vw, 90px);
  font-weight: 700;
  color: #EDE0CB;
  line-height: 0.95;
  letter-spacing: 0;
  margin-bottom: 22px;
}
.hero__title em {
  font-style: italic;
  color: var(--c-gold);
  display: block;
}

.hero__sub {
  font-size: clamp(16px, 2vw, 20px);
  color: #B9ADAD;
  max-width: 560px;
  line-height: 1.55;
  margin-bottom: 32px;
}
.hero__sub em { color: var(--c-text); font-style: normal; }

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 30px;
}

.hero__stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--c-border-dim);
  border-radius: var(--radius);
  background: var(--c-glass);
  backdrop-filter: blur(10px);
}

.hero__stat {
  padding: 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.hero__stat-num {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--c-gold);
  line-height: 1;
}
.hero__stat-label {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--c-text-dim);
}
.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--c-border-dim);
  flex-shrink: 0;
}

.hero__portrait {
  position: relative;
  min-height: min(68vh, 640px);
  align-self: stretch;
  display: flex;
  align-items: center;
}

.hero__portrait-frame {
  position: relative;
  width: 100%;
  height: min(68vh, 640px);
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(200,169,110,0.18);
  border-radius: var(--radius-lg);
  background: #0a0608;
  box-shadow: var(--shadow-dark), 0 0 60px rgba(107,26,42,0.18);
}

.hero__portrait-frame::before,
.hero__portrait-frame::after {
  content: '';
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.hero__portrait-frame::before {
  inset: 14px;
  border: 1px solid rgba(200,169,110,0.12);
}

.hero__portrait-frame::after {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,6,8,0.24) 0%, transparent 30%, rgba(10,6,8,0.08) 68%, rgba(10,6,8,0.52) 100%),
    linear-gradient(180deg, rgba(10,6,8,0.04) 0%, transparent 58%, rgba(10,6,8,0.48) 100%);
}

.hero__portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% top;
  filter: saturate(0.96) contrast(1.06) brightness(1.02);
}

.hero__portrait-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 55% 45% at 42% 34%, transparent 0%, transparent 56%, rgba(10,6,8,0.22) 100%),
    linear-gradient(0deg, rgba(10,6,8,0.14), transparent 46%);
  pointer-events: none;
}

.hero__portrait-caption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 5;
  max-width: 260px;
  padding: 12px 16px;
  border: 1px solid rgba(200,169,110,0.2);
  background: rgba(10,6,8,0.68);
  backdrop-filter: blur(12px);
  color: var(--c-gold-pale);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--c-text-faint);
  animation: bounce 2.5s ease-in-out infinite;
  transition: color var(--transition);
}
.hero__scroll-hint:hover { color: var(--c-gold); }
.hero__scroll-hint svg { width: 24px; height: 24px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}


/* ═══════════════════════════════════════════════════════
   III. ХРОНИКА МАГА
═══════════════════════════════════════════════════════ */
.chronicle {
  padding: 100px 0;
  position: relative;
}
.chronicle::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,169,110,0.3), transparent);
}

.chronicle__chapters {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 48px;
}

.chronicle__chapter {
  border: 1px solid var(--c-border-dim);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
  background: rgba(255,255,255,0.02);
}
.chronicle__chapter:hover,
.chronicle__chapter.open { border-color: var(--c-border); }

.chronicle__chapter-head {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
}
.chronicle__chapter-head:hover { background: var(--c-glass); }

.chronicle__chapter-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity var(--transition);
}
.chronicle__chapter.open .chronicle__chapter-icon { opacity: 1; }
.chronicle__chapter-icon svg { width: 100%; height: 100%; }

.chronicle__chapter-meta { flex: 1; }
.chronicle__chapter-num {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-bordeaux);
  font-weight: 500;
}
.chronicle__chapter-title {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  color: #EDE0CB;
  margin-top: 4px;
  transition: color var(--transition);
}
.chronicle__chapter.open .chronicle__chapter-title { color: var(--c-gold); }

.chronicle__chapter-arrow {
  width: 24px; height: 24px;
  color: var(--c-text-dim);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
}
.chronicle__chapter.open .chronicle__chapter-arrow {
  transform: rotate(-180deg);
  color: var(--c-gold);
}
.chronicle__chapter-arrow svg { width: 100%; height: 100%; }

.chronicle__chapter-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.chronicle__chapter.open .chronicle__chapter-body { max-height: 1400px; }

.chronicle__chapter-content {
  padding: 0 32px 32px 104px;
  border-top: 1px solid var(--c-border-dim);
}
.chronicle__chapter-content p {
  font-size: 16px;
  color: var(--c-text);
  line-height: 1.8;
  margin-top: 24px;
}
.chronicle__chapter-content p + p { margin-top: 16px; }

.chronicle__quote {
  margin-top: 28px;
  padding: 18px 24px;
  border-left: 2px solid var(--c-gold);
  background: rgba(200,169,110,0.05);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 18px;
  color: var(--c-gold-pale);
  line-height: 1.5;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.chronicle__principle {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  border: 1px solid var(--c-border);
  background: var(--c-glass-b);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.chronicle__principle-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
}
.chronicle__principle-icon svg { width: 100%; height: 100%; }
.chronicle__principle p {
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.6;
}
.chronicle__principle em { color: var(--c-gold); font-style: normal; }


/* ═══════════════════════════════════════════════════════
   IV. КНИГА СФЕР — УСЛУГИ
═══════════════════════════════════════════════════════ */
.spheres {
  padding: 100px 0;
  position: relative;
}
.spheres::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-bordeaux), transparent);
}

.spheres__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 40px;
}

.scroll-item {
  border: 1px solid var(--c-border-dim);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
  background: rgba(255,255,255,0.01);
}
.scroll-item:hover,
.scroll-item.open { border-color: var(--c-bordeaux); }

.scroll-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  cursor: pointer;
  transition: background var(--transition);
}
.scroll-item__head:hover { background: rgba(107,26,42,0.08); }
.scroll-item.open .scroll-item__head { background: rgba(107,26,42,0.12); }

.scroll-item__left {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
}

.scroll-item__marker {
  color: var(--c-bordeaux);
  font-size: 18px;
  margin-top: 4px;
  flex-shrink: 0;
  transition: color var(--transition);
}
.scroll-item__marker--gold { color: var(--c-gold); }
.scroll-item.open .scroll-item__marker { color: var(--c-gold); }

.scroll-item__num {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--c-text-dim);
  display: block;
  margin-bottom: 6px;
}
.scroll-item__title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: #EDE0CB;
  margin-bottom: 8px;
  transition: color var(--transition);
}
.scroll-item.open .scroll-item__title { color: var(--c-gold); }
.scroll-item__brief {
  font-size: 14px;
  color: var(--c-text-dim);
  line-height: 1.5;
}

.scroll-item__arrow {
  width: 24px; height: 24px;
  color: var(--c-text-dim);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
}
.scroll-item.open .scroll-item__arrow {
  transform: rotate(-180deg);
  color: var(--c-gold);
}
.scroll-item__arrow svg { width: 100%; height: 100%; }

.scroll-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.scroll-item.open .scroll-item__body { max-height: 500px; }

.scroll-item__content {
  padding: 24px 32px 32px;
  border-top: 1px solid var(--c-border-dim);
}

.scroll-item__cols {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}
.scroll-item__desc p {
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.7;
}
.scroll-item__desc p + p { margin-top: 12px; }
.scroll-item__desc strong { color: var(--c-gold-pale); font-weight: 500; }

.scroll-item__specs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 200px;
}
.scroll-spec { display: flex; flex-direction: column; gap: 3px; }
.scroll-spec__label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-text-dim);
}
.scroll-spec__val {
  font-size: 14px;
  color: var(--c-text);
  font-weight: 500;
}

.spheres__selection {
  border: 1px solid var(--c-border);
  background: var(--c-glass-b);
  border-radius: var(--radius);
  padding: 36px;
  backdrop-filter: blur(10px);
}
.spheres__selection-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.spheres__selection-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
}
.spheres__selection-icon svg { width: 100%; height: 100%; }
.spheres__selection p {
  flex: 1;
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.6;
  min-width: 240px;
}


/* ═══════════════════════════════════════════════════════
   V. СЛЕДЫ ВМЕШАТЕЛЬСТВА — ОТЗЫВЫ
═══════════════════════════════════════════════════════ */
.witnesses {
  padding: 100px 0;
  position: relative;
}
.witnesses::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,169,110,0.3), transparent);
}

.witnesses__stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 48px;
}
.witnesses__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.witnesses__stat-num {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 600;
  color: var(--c-gold);
  line-height: 1;
}
.witnesses__stat-label {
  font-size: 13px;
  color: var(--c-text-dim);
}
.witnesses__stat-div {
  width: 1px; height: 40px;
  background: var(--c-border-dim);
  margin: 0 40px;
}

.witnesses__track-wrap {
  position: relative;
}
.witnesses__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--c-bordeaux) transparent;
}
.witnesses__track::-webkit-scrollbar { height: 3px; }
.witnesses__track::-webkit-scrollbar-track { background: transparent; }
.witnesses__track::-webkit-scrollbar-thumb { background: var(--c-bordeaux); border-radius: 3px; }

.case-card {
  flex-shrink: 0;
  width: 320px;
  padding: 32px;
  border: 1px solid var(--c-border-dim);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(26,10,20,0.8) 0%, rgba(10,6,8,0.9) 100%);
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.case-card:hover {
  border-color: var(--c-bordeaux);
  transform: translateY(-4px);
}
/* Угловые декоры */
.case-card::before, .case-card::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--c-gold);
  border-style: solid;
  opacity: 0.4;
}
.case-card::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.case-card::after  { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }

.case-card__type {
  font-size: 13px;
  color: var(--c-bordeaux);
  font-weight: 500;
  margin-bottom: 16px;
}
.case-card__divider {
  height: 1px;
  background: var(--c-border-dim);
  margin-bottom: 20px;
}
.case-card__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-text);
  font-style: italic;
  margin-bottom: 24px;
}
.case-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.case-card__name {
  font-size: 12px;
  color: var(--c-text-dim);
}
.case-card__city {
  font-size: 12px;
  color: var(--c-text-dim);
  letter-spacing: 0.5px;
}

.witnesses__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: rgba(10,6,8,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-dim);
  transition: all var(--transition);
  z-index: 10;
}
.witnesses__arrow:hover {
  border-color: var(--c-gold);
  color: var(--c-gold);
  background: rgba(200,169,110,0.08);
}
.witnesses__arrow svg { width: 18px; height: 18px; }
.witnesses__arrow--left { left: -20px; }
.witnesses__arrow--right { right: -20px; }


/* ═══════════════════════════════════════════════════════
   VI. РИТУАЛЬНЫЙ ДОГОВОР — КОНТАКТ
═══════════════════════════════════════════════════════ */
.petition {
  padding: 100px 0;
  position: relative;
}
.petition::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-bordeaux), transparent);
}

.petition__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Левый блок */
.petition__direct {
  height: 100%;
}
.petition__direct-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 36px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(107,26,42,0.12) 0%, rgba(10,6,8,0.5) 100%);
  height: 100%;
  gap: 0;
}

.petition__direct-sigil {
  width: 90px; height: 90px;
  margin-bottom: 24px;
  animation: sigil-pulse 4s ease-in-out infinite;
}
.petition__direct-sigil svg { width: 100%; height: 100%; }

.petition__direct-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 600;
  color: #EDE0CB;
  margin-bottom: 16px;
  line-height: 1.2;
}
.petition__direct-text {
  font-size: 15px;
  color: var(--c-text-dim);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 300px;
}
.petition__direct-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--c-text-dim);
  letter-spacing: 0.5px;
}
.petition__email {
  margin-top: 16px;
  font-size: 14px;
  color: var(--c-gold);
  border-bottom: 1px solid rgba(200,169,110,0.35);
  transition: color var(--transition), border-color var(--transition);
}
.petition__email:hover {
  color: var(--c-gold-pale);
  border-color: var(--c-gold);
}

/* Правый блок — форма */
.petition__form-wrap {
  height: 100%;
}
.petition__form-inner {
  padding: 40px;
  border: 1px solid var(--c-border-dim);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  height: 100%;
  position: relative;
  overflow: hidden;
}
/* Угловые декоры */
.petition__form-inner::before, .petition__form-inner::after {
  content: '';
  position: absolute;
  width: 24px; height: 24px;
  border-color: rgba(200,169,110,0.3);
  border-style: solid;
}
.petition__form-inner::before { top: 0; left: 0; border-width: 1px 0 0 1px; }
.petition__form-inner::after  { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.petition__form-title {
  font-family: var(--font-head);
  font-size: 24px;
  color: #EDE0CB;
  margin-bottom: 8px;
}
.petition__form-sub {
  font-size: 13px;
  color: var(--c-text-dim);
  margin-bottom: 32px;
  letter-spacing: 0.5px;
}

.petition__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__hidden { display: none; }
.form__group { display: flex; flex-direction: column; gap: 8px; }
.form__label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-text-dim);
  font-weight: 500;
}
.form__input {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--c-border-dim);
  border-radius: var(--radius);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 18px;
  transition: border-color var(--transition), background var(--transition);
  resize: vertical;
  outline: none;
  width: 100%;
}
.form__input::placeholder { color: var(--c-text-faint); }
.form__input:focus {
  border-color: var(--c-gold);
  background: rgba(200,169,110,0.03);
}
.form__textarea { min-height: 120px; }

/* Успех */
.petition__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  gap: 16px;
  animation: petition-in 0.5s ease;
}
.petition__success-icon { width: 70px; height: 70px; }
.petition__success-icon svg { width: 100%; height: 100%; }
.petition__success h4 {
  font-family: var(--font-head);
  font-size: 24px;
  color: var(--c-gold);
}
.petition__success p {
  font-size: 15px;
  color: var(--c-text-dim);
  line-height: 1.6;
  max-width: 320px;
}

@keyframes petition-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}


/* ═══════════════════════════════════════════════════════
   ПРАВОВАЯ ИНФОРМАЦИЯ
═══════════════════════════════════════════════════════ */
.legal {
  padding: 90px 0;
  position: relative;
}
.legal::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,169,110,0.22), transparent);
}

.legal__content {
  max-width: 860px;
  border-top: 1px solid var(--c-border-dim);
  padding-top: 30px;
}
.legal__content p {
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.8;
  margin: 0;
}
.legal__content p + p { margin-top: 16px; }
.legal__content h2 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  color: var(--c-gold-pale);
  margin: 34px 0 10px;
}
.legal__content h2:first-of-type { margin-top: 30px; }

.legal-page {
  min-height: 100vh;
  padding: 80px 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 20%, rgba(107,26,42,0.16) 0%, transparent 60%),
    linear-gradient(135deg, var(--c-dark) 0%, var(--c-void) 70%);
}
.legal-page__back {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--c-gold);
  font-size: 13px;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(200,169,110,0.35);
  transition: color var(--transition), border-color var(--transition);
}
.legal-page__back:hover {
  color: var(--c-gold-pale);
  border-color: var(--c-gold);
}


/* ═══════════════════════════════════════════════════════
   ПОДВАЛ
═══════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--c-border-dim);
  padding: 60px 0 40px;
  background: var(--c-void);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--c-gold-pale);
  letter-spacing: 1px;
}
.footer__sigil { width: 36px; height: 36px; opacity: 0.7; }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: center;
}
.footer__link {
  font-size: 13px;
  color: var(--c-text-dim);
  transition: color var(--transition);
}
.footer__link:hover { color: var(--c-gold); }

.footer__email {
  font-size: 13px;
  color: var(--c-gold);
  border-bottom: 1px solid rgba(200,169,110,0.25);
  transition: color var(--transition), border-color var(--transition);
}
.footer__email:hover {
  color: var(--c-gold-pale);
  border-color: var(--c-gold);
}

.footer__copy {
  font-size: 12px;
  color: var(--c-text-faint);
  letter-spacing: 0.3px;
}
.footer__disclaimer {
  font-size: 11px;
  color: var(--c-text-faint);
  max-width: 500px;
  line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════
   АДАПТИВ
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero__copy {
    order: 2;
    max-width: 760px;
  }
  .hero__portrait {
    order: 1;
    min-height: 420px;
  }
  .hero__portrait-frame {
    height: 420px;
    min-height: 420px;
  }
  .hero__portrait-img { object-position: 50% 28%; }
  .hero__sigil-wrap {
    top: auto;
    left: auto;
    right: 22px;
    bottom: -24px;
    width: 170px;
    height: 170px;
  }
  .hero__sigil {
    width: 156px;
    height: 156px;
  }

  .petition__grid { grid-template-columns: 1fr; }
  .petition__direct-inner { padding: 40px 28px; }
  .scroll-item__cols { grid-template-columns: 1fr; gap: 24px; }
  .witnesses__arrow--left { left: 0; }
  .witnesses__arrow--right { right: 0; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .nav__left, .nav__right, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero { padding: 94px 20px 62px; }
  .hero::before, .hero::after { display: none; }
  .hero__copy { padding-top: 0; }
  .hero__portrait { min-height: 360px; }
  .hero__portrait-frame {
    height: 360px;
    min-height: 360px;
  }
  .hero__portrait-caption {
    right: 14px;
    bottom: 14px;
    max-width: 220px;
    font-size: 10px;
  }
  .hero__sigil-wrap {
    width: 132px;
    height: 132px;
    right: 12px;
    bottom: -18px;
  }
  .hero__sigil {
    width: 122px;
    height: 122px;
  }
  .hero__stats {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    border: 1px solid var(--c-border-dim);
    background: var(--c-glass);
    gap: 0;
  }
  .hero__stat-divider { display: none; }
  .hero__stat { align-items: center; }

  .chronicle, .spheres, .witnesses, .petition, .legal { padding: 70px 0; }

  .chronicle__chapter-head { padding: 20px; gap: 16px; }
  .chronicle__chapter-icon { width: 36px; height: 36px; }
  .chronicle__chapter-content { padding: 0 20px 24px; }
  .chronicle__chapter-title { font-size: 20px; }

  .scroll-item__head { padding: 20px; gap: 12px; }
  .scroll-item__left { gap: 12px; }
  .scroll-item__title { font-size: 18px; }
  .scroll-item__content { padding: 20px; }

  .case-card { width: 280px; }
  .witnesses__arrow { display: none; }

  .petition__form-inner { padding: 28px 20px; }

  .chronicle__principle {
    flex-direction: column;
    text-align: center;
  }
  .spheres__selection-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero__portrait {
    min-height: 320px;
  }
  .hero__portrait-frame {
    height: 320px;
    min-height: 320px;
  }
  .hero__portrait-img { object-position: 48% 26%; }
  .hero__portrait-caption { display: none; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stat-num { font-size: 16px; }
  .section-title { font-size: 30px; }
  .hero__title { font-size: 52px; }
}
