/*
  Главная страница — стили по VisualReferences/1. Главная.html.
  Живёт в хосте (а не в дизайн-системе): это уникальный экран-витрина,
  его блоки нигде больше не переиспользуются.
*/

.landing {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f6f9f7 50%, #eef3f1 100%);
  overflow-x: hidden;
}

.landing::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 95, 74, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 95, 74, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
  pointer-events: none;
}

.landing__shapes {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.landing__shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(31, 95, 74, 0.05);
  animation: landing-float 25s infinite ease-in-out;
}

.landing__shape:nth-child(1) { width: 380px; height: 380px; top: 5%; right: 10%; }
.landing__shape:nth-child(2) { width: 240px; height: 240px; top: 55%; right: 22%; animation-delay: 6s; }
.landing__shape:nth-child(3) { width: 180px; height: 180px; top: 25%; right: 38%; animation-delay: 12s; }

@keyframes landing-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* --- Навигация --- */

.landing__nav {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--u-border);
}

.landing__nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.landing__nav-links a {
  text-decoration: none;
  color: var(--u-text-secondary);
  font-size: 14.5px;
  font-weight: 500;
  transition: color var(--u-transition);
}

.landing__nav-links a:hover { color: var(--u-accent); }

/* --- Контейнер --- */

.landing__container {
  position: relative;
  z-index: 10;
  max-width: var(--u-content-max);
  margin: 0 auto;
  padding: 40px 48px 56px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

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

.landing__hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.landing__title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--u-text);
}

.landing__lead {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--u-text-secondary);
  margin-bottom: 32px;
  max-width: 560px;
}

.landing__hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- Макет интерфейса --- */

.landing__mockup {
  background: #fff;
  border: 1px solid var(--u-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(20, 61, 48, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  animation: landing-slide-in 0.8s ease-out;
}

@keyframes landing-slide-in {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.landing__mockup-card {
  background: var(--u-accent-bg);
  border-radius: 12px;
  padding: 16px;
  transition: all var(--u-transition);
}

.landing__mockup-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 95, 74, 0.06);
}

.landing__mockup-card--accent {
  background: linear-gradient(135deg, var(--u-accent-soft) 0%, #dce8e3 100%);
  border: 1px solid rgba(31, 95, 74, 0.08);
}

.landing__mockup-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--u-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.landing__subject {
  background: #fff;
  padding: 10px 12px;
  border-radius: var(--u-radius);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.landing__subject:last-child { margin-bottom: 0; }

.landing__subject-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.landing__subject-name {
  font-size: var(--u-fs-small);
  font-weight: 600;
  color: var(--u-text);
}

.landing__subject-meta {
  font-size: var(--u-fs-tiny);
  color: var(--u-text-muted);
}

.landing__progress-item { margin-bottom: 14px; }
.landing__progress-item:last-child { margin-bottom: 0; }

.landing__step {
  background: #fff;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--u-text-secondary);
  margin-bottom: 7px;
}

.landing__step:last-child { margin-bottom: 0; }

.landing__step--result {
  border-left: 2px solid var(--u-accent);
  color: var(--u-accent-dark);
  font-weight: 500;
}

.landing__trace {
  background: #fff;
  padding: 12px;
  border-radius: var(--u-radius);
  font-size: 12.5px;
  color: var(--u-text-secondary);
  line-height: 1.55;
  border-left: 2px solid var(--u-accent);
}

/* --- Карточки аудиторий --- */

.landing__cat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--u-radius-md);
  background: var(--u-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--u-accent);
}

.landing__cat-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--u-text-muted);
  margin-top: 8px;
}

/* --- Полоса статистики --- */

.landing__stats {
  background: #fff;
  border: 1px solid var(--u-border);
  border-radius: var(--u-radius-lg);
  padding: 22px 32px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 20px;
  box-shadow: var(--u-shadow);
  flex-wrap: wrap;
}

.landing__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.landing__stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--u-accent-dark);
  letter-spacing: -0.5px;
}

.landing__stat-label {
  font-size: 12.5px;
  color: var(--u-text-muted);
}

.landing__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--u-fs-small);
  color: var(--u-accent);
  font-weight: 500;
}

.landing__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--u-accent);
  animation: landing-pulse 2s infinite;
}

@keyframes landing-pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 95, 74, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(31, 95, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 95, 74, 0); }
}

/* --- Адаптив --- */

@media (max-width: 1024px) {
  .landing__hero { grid-template-columns: 1fr; gap: 40px; }
  .landing__mockup { grid-template-columns: 1fr; }
  .landing__nav { padding: 16px 24px; }
  .landing__container { padding: 24px 24px 48px; }
  .landing__title { font-size: 30px; }
}
