/* dashboards.css — стили раздела Сводные дашборды */

.page-dashboards main {
  padding-bottom: 3rem;
  color: var(--color-text);
}

/* Hero секция с сеткой */
.section--hero .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.page-dashboards .eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-accent-bright);
  margin-bottom: 0.6rem;
}

.section--hero h1 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.section--hero .lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Иллюстрация справа */
.hero-visual {
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  user-select: none;
  pointer-events: none;
}

.hero-visual svg.dashboards-illustration {
  width: 100%;
  height: auto;
}

/* Фичи: сетка карточек */
.section--features .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 2rem 2.5rem;
  max-width: 1160px;
  margin: 0 auto 3rem;
}

/* Карточки функционала */
.feature-card {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem 2rem;
  box-shadow: 0 2px 10px rgb(124 58 237 / 0.12);
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.feature-card:hover,
.feature-card:focus-within {
  box-shadow: 0 4px 22px var(--color-accent-light);
  outline: none;
}

/* Заголовок фичи */
.feature-card h2 {
  color: var(--color-accent-light);
  font-size: 1.17rem;
  margin-bottom: 0.5rem;
}

/* Описание */
.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  user-select: text;
}

/* CTA блок */
.section--cta {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius);
  max-width: 900px;
  margin: 0 auto 4rem;
  padding: 2.8rem 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.6rem;
  user-select: none;
}

.section--cta h2 {
  font-weight: 700;
  font-size: 1.6rem;
  max-width: 620px;
  color: var(--color-accent-bright);
  margin: 0;
  line-height: 1.2;
}

.section--cta p {
  font-weight: 500;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 620px;
}

.section--cta .btn--primary {
  flex-shrink: 0;
  min-width: 180px;
  padding: 0.9rem 1.8rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  user-select: auto;
  transition: background-color 0.3s ease;
}

.section--cta .btn--primary:hover,
.section--cta .btn--primary:focus {
  background-color: var(--color-accent-bright);
  color: var(--color-bg);
  outline: none;
}

/* Адаптив */
@media (max-width: 992px) {
  .section--hero .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
  }
  .hero-visual {
    max-width: 100%;
  }
  .section--cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .section--cta h2, .section--cta p {
    max-width: 100%;
    margin-bottom: 1rem;
  }
  .section--cta .btn--primary {
    min-width: 100%;
  }
}

/* Появление карточек */
.reveal-card {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

/* Анимация Hero и CTA */
.hero-ready .hero-copy,
.hero-ready .hero-visual,
.cta-ready {
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}