/* Custom styles for esoteric.html */
.esoteric-roadmap {
  position: relative;
  padding: 10px 0;
}

.engine-section {
  position: relative;
  z-index: 2;
  margin-bottom: 40px;
}

.engine-title {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 0 15px rgba(226, 184, 83, 0.25);
}

.engine-title span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

.esoteric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.esoteric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.esoteric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.esoteric-card.active-engine::before {
  background: linear-gradient(90deg, #10b981, #34d399);
}
.esoteric-card.active-dev::before {
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
}
.esoteric-card.active-research::before {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}
.esoteric-card.active-vision::before {
  background: linear-gradient(90deg, #f43f5e, #fb7185);
}

.esoteric-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
  transition: transform 0.3s ease;
}

.esoteric-card:hover .card-icon {
  transform: scale(1.15) rotate(5deg);
}

.esoteric-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: #fff;
}

.esoteric-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 20px 0;
  flex: 1;
}

.esoteric-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.badge-status {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
}

.badge-active {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.badge-dev {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}

.badge-research {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.badge-vision {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
}

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

@media (max-width: 430px) {
  .esoteric-grid {
    gap: 14px;
  }
  .esoteric-card {
    padding: 18px;
  }
}

/* ── Новые классы (замена inline-стилей) ─────────── */
.esoteric-hero {
  min-height: auto;
  padding: 40px 24px;
  margin-bottom: 24px;
}
.esoteric-hero-desc {
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.6;
}
.esoteric-main-panel {
  padding: 32px;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.esoteric-panel-head {
  border-bottom: none;
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.esoteric-panel-head .panel-title {
  font-size: 1.5rem;
  margin: 0;
}
@media (max-width: 768px) {
  .esoteric-main-panel {
    padding: 20px;
  }
  .esoteric-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

