:root {
  --erp-bg: #050816;
  --erp-bg-soft: #101826;
  --erp-accent: #4f46e5;
  --erp-accent-soft: rgba(79, 70, 229, 0.12);
  --erp-border-soft: rgba(255, 255, 255, 0.08);

  --text-main: #111827;
  --text-muted: #4b5563;
  --surface-main: #ffffff;
  --surface-soft: #f3f4f6;
}

/* ===== БАЗА ===== */

.landing-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 0%, #1f2937 0, transparent 50%),
    radial-gradient(circle at 100% 0%, #111827 0, transparent 55%),
    radial-gradient(circle at 50% 100%, #020617 0, #020617 65%);
  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.landing-main-wrapper {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

/* все слои параллакса */
[data-parallax] {
  will-change: transform;
}

/* Ссылки по умолчанию */
a {
  color: var(--erp-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== NAVBAR ===== */

.landing-navbar {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.98),
    rgba(15, 23, 42, 0.98)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
  backdrop-filter: blur(10px);
}

.landing-navbar .navbar-brand {
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.landing-navbar .navbar-brand i {
  color: #22c55e;
}

.landing-navbar .nav-link {
  font-size: 0.95rem;
  padding-inline: 0.9rem;
  color: #cbd5f5;
}

.landing-navbar .nav-link:hover,
.landing-navbar .nav-link:focus,
.landing-navbar .nav-link.active {
  color: #ffffff;
}

/* ===== HERO ===== */

.landing-hero {
  position: relative;
  color: #e5e7eb;
  padding-top: 4rem;
  padding-bottom: 4.5rem;
  overflow: hidden;
}

/* мягкое сияние за hero-контентом */
.hero-glow {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 10% 10%, rgba(59, 130, 246, 0.25), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.18), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(79, 70, 229, 0.28), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

/* «орбиты» вокруг hero для параллакса */
.hero-orbits {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.2);
}

.hero-orbit.orbit-1 {
  width: 260px;
  height: 260px;
  top: 5%;
  right: 10%;
}

.hero-orbit.orbit-2 {
  width: 380px;
  height: 380px;
  bottom: -5%;
  right: -5%;
}

.hero-orbit.orbit-3 {
  width: 160px;
  height: 160px;
  top: 35%;
  left: -4%;
}

/* маленькие точки на орбитах */
.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle, #e5e7eb 0, #60a5fa 55%, transparent 70%);
  box-shadow: 0 0 16px rgba(129, 140, 248, 0.9);
}

/* Сам hero-контент */
.landing-hero h1 {
  color: #f9fafb;
}

.landing-hero .lead {
  color: #cbd5f5;
}

/* Карточка справа */
.hero-card {
  position: relative;
  background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.37), transparent 55%),
              linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.97));
  border-radius: 1.5rem;
  border: 1px solid rgba(191, 219, 254, 0.85);
  color: #e5e7eb;
  overflow: hidden;
}

/* лёгкий блик */
.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 10% 0, rgba(248, 250, 252, 0.24), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hero-card:hover::before {
  opacity: 0.9;
}

.hero-list li {
  margin-bottom: 0.3rem;
}

/* CTA кнопки */
.landing-hero .btn-primary {
  background: linear-gradient(135deg, #4f46e5, #22c55e);
  border: none;
  box-shadow: 0 15px 35px rgba(55, 65, 194, 0.55);
}

.landing-hero .btn-primary:hover {
  filter: brightness(1.05);
}

.landing-hero .btn-outline-light {
  border-color: rgba(229, 231, 235, 0.8);
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.4);
}

/* ===== БЛОКИ РАЗДЕЛОВ НА ГЛАВНОЙ ===== */

.landing-body .bg-body-tertiary {
  background-color: rgba(15, 23, 42, 0.85) !important;
}

.section-title {
  color: #e5e7eb;
}

.section-description {
  margin: 0;
  color: #e5e7eb;          /* почти белый */
  opacity: 0.9;            /* чуть мягче, но всё равно читаемо */
  font-size: 0.95rem;
}


/* Карточки разделов */
.landing-item-card {
  position: relative;
  background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.18), transparent 55%),
              rgba(15, 23, 42, 0.98);
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: #e5e7eb;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.landing-item-card:hover {
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  border-color: rgba(129, 140, 248, 0.98);
  background: radial-gradient(circle at 100% 0, rgba(45, 212, 191, 0.18), transparent 55%),
              rgba(15, 23, 42, 0.98);
}

.landing-item-card .icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
  margin-right: 0.5rem;
}

/* Ссылки внутри тёмных карточек */
.links-light {
  color: #bfdbfe;
}

.links-light:hover {
  color: #e0f2fe;
  text-decoration: none;
}

/* ===== ВНУТРЕННИЕ СТРАНИЦЫ (page.html) ===== */

.breadcrumb {
  background-color: transparent;
  padding-left: 0;
  margin-bottom: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #9ca3af;
}

/* Шапка страницы */
.page-header-card {
  background:
    radial-gradient(circle at 0 0, rgba(59,130,246,0.45), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(16,185,129,0.32), transparent 60%),
    rgba(15,23,42,0.98);
  border-radius: 1.25rem;
  border: 1px solid rgba(191,219,254,0.8);
  color: #f9fafb;
}

.page-header-card h1,
.page-header-card .page-header-lead,
.page-header-card .page-header-meta {
  color: #f9fafb;
}

.page-header-icon {
  width: 46px;
  height: 46px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(191,219,254,0.9);
  box-shadow: 0 0 18px rgba(129,140,248,0.7);
}

.page-header-icon i {
  font-size: 1.25rem;
}

/* карточки секций – светлые и читаемые */
.page-section.card {
  background-color: var(--surface-main);
  border-radius: 1.25rem;
  border: 1px solid #e5e7eb;
  color: var(--text-main);
}

.page-section.card .card-body {
  padding: 1.5rem 1.75rem;
}

.page-section.card h2,
.page-section.card h3,
.page-section.card h4 {
  color: #111827;
}

.page-section.card p {
  color: var(--text-muted);
}

.page-section.card ul {
  padding-left: 1.25rem;
}

.page-section.card li {
  margin-bottom: 0.2rem;
}

.page-section-icon {
  width: 32px;
  height: 32px;
  background: var(--surface-soft);
}

/* ===== FOOTER ===== */

.landing-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.98);
  color: #9ca3af;
}

.landing-footer a {
  color: #e5e7eb;
}

/* ===== МЕЛОЧИ И АДАПТИВ ===== */

.py-lg-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

@media (max-width: 767.98px) {
  .landing-hero {
    padding-top: 3rem;
  }

  .hero-card {
    margin-top: 0.5rem;
  }

  .page-section.card .card-body {
    padding: 1.25rem 1.25rem;
  }
}

/* ===== NEWS ROTATOR ===== */

.news-rotator-section {
  margin-top: -0.5rem;
}

.news-rotator-card {
  position: relative;
  background:
    radial-gradient(circle at 0 0, rgba(59,130,246,0.25), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(16,185,129,0.15), transparent 60%),
    rgba(15,23,42,0.98);
  border-radius: 1.25rem;
  border: 1px solid rgba(148,163,184,0.55);
  color: #e5e7eb;
  min-height: 120px;
  overflow: hidden;
  box-shadow: 0 24px 65px rgba(15, 23, 42, 0.95);
}

/* лёгкое внутреннее свечение */
.news-rotator-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 20% 0, rgba(248, 250, 252, 0.18), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

/* контейнер для слайдов */
.news-rotator-inner {
  position: relative;
  min-height: 80px;
}

/* Слайд по умолчанию: скрыт, чуть смещён и размыт */
.news-rotator-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px) scale(0.99);
  filter: blur(3px);
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    filter 0.45s ease;
}

/* Активный слайд: чёткий, ровный, на переднем плане */
.news-rotator-item.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
  position: relative;
}

/* Текст внутри слайда */
.news-rotator-item h3 {
  color: #f9fafb;
}

.news-rotator-item p {
  color: #e5e7eb;
  opacity: 0.9;
}

/* бейдж над заголовком */
.text-rotator-badge {
  color: #bfdbfe;
  letter-spacing: 0.12em;
}

/* точки-переключатели */
.news-rotator-dots {
  position: absolute;
  right: 1.2rem;
  bottom: 0.9rem;
  display: flex;
  gap: 0.35rem;
}

.news-rotator-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.7);
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.6;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.news-rotator-dot.active {
  background: #f9fafb;
  box-shadow: 0 0 10px rgba(191, 219, 254, 0.9);
  transform: scale(1.3);
  opacity: 1;
}
