/* landing.css — стили секций, тоновый ритм, адаптив */

/* ===== БАЗОВАЯ СЕКЦИЯ ===== */
.sec {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0;
  overflow: hidden;
  /* Reveal-анимация */
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s, transform .6s;
}
.sec.inview {
  opacity: 1;
  transform: none;
}

/* ===== ТОНА ===== */
.tone-light {
  background: var(--page-bg);
  color: var(--ink);
}
.tone-dark {
  background: var(--dark-bg);
  color: #fff;
}
.tone-accent {
  background: var(--purpur);
  color: #fff;
}

/* Kicker на тёмных */
.tone-dark .kicker,
.tone-accent .kicker {
  color: var(--coral3);
}

/* Lead на тёмных */
.tone-dark .lead {
  color: var(--coral1);
}

/* ===== HERO ===== */
.sec--hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  position: relative;
}

.hero-video,
.hero-img {
  width: 100%;
  display: block;
}

/* Блоб в hero */
.sec--hero .blob {
  width: 520px;
  height: 520px;
  top: -100px;
  right: -120px;
  opacity: .55;
}

/* ===== НАВИГАЦИЯ ===== */
#nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 246, 242, .86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(55, 11, 39, .06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.nav-inner .brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: .9rem;
  transition: color .15s;
}
.nav-links a:hover {
  color: var(--coral);
}

.nav-cta {
  font-size: .875rem;
  padding: 10px 20px;
}

/* ===== ICON-GRID ===== */
.ig-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 32px;
}

.ig-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

/* ===== CARDS / TOOLS ===== */
.cards-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 32px;
}

/* Пастельная ротация */
.tone-card-0 { background: var(--softpink); }
.tone-card-1 { background: var(--beige); }
.tone-card-2 { background: var(--softpurple); }
.tone-card-3 { background: var(--springblue); }

/* Карточки tools как ссылки */
a.tool {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .2s, transform .2s;
}
a.tool:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

/* ===== ШАГИ ===== */
.steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 32px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-n {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.muted {
  margin-top: 20px;
  color: var(--mute);
  font-size: .9rem;
}

.tone-dark .muted,
.tone-accent .muted {
  color: var(--coral1);
}

/* ===== МЕТРИКИ ===== */
.metrics {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-v {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--coral3);
  line-height: 1;
}

.metric-l {
  font-size: .95rem;
  font-weight: 500;
  opacity: .85;
}

/* ===== CTA-СЕКЦИЯ ===== */
.sec--cta {
  text-align: center;
}

.sec--cta h2 {
  margin-bottom: 16px;
}

.sec--cta .btn {
  margin-top: 24px;
}

/* ===== AUDIENCE (мини-блок внутри buyers) ===== */
.audience {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 32px;
}

/* ===== ФУТЕР ===== */
#footer {
  background: var(--footer-bg);
  color: #cbb6c2;
  padding: 40px 0;
}

#footer .brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 16px;
}

#footer .footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

#footer .footer-links a {
  color: #cbb6c2;
  text-decoration: none;
  font-size: .9rem;
  transition: color .15s;
}

#footer .footer-links a:hover {
  color: var(--coral3);
}

#footer .muted span {
  margin-right: 8px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
  /* Hero — одна колонка */
  .hero-grid {
    grid-template-columns: 1fr;
  }

  /* Скрыть ссылки навигации на мобильных */
  .nav-links {
    display: none;
  }

  /* Метрики — одна колонка */
  .metrics {
    gap: 24px;
  }

  /* Кнопка CTA в nav — меньше */
  .nav-cta {
    padding: 8px 16px;
    font-size: .8rem;
  }
}
