/* How block — step 1.7, mobile-first */

@import url('../_tokens.css');

@import url('../_motion.css');
.how {
  background: linear-gradient(180deg, #050812 0%, #03050a 100%);
  padding: clamp(50px, 10vh, 100px) clamp(16px, 5vw, 40px);
  position: relative;
  overflow: hidden;
}

.how::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.25), transparent);
}

.how__inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.how__kicker {
  display: inline-block;
  font-size: clamp(11px, 2.4vw, 13px);
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--accent);
  padding: 5px 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 20px;
  margin-bottom: clamp(28px, 6vh, 48px);
  text-transform: uppercase;
  background: rgba(var(--accent-rgb), 0.05);
}

/* Mobile-first: колонка из 3 плиток. Стрелки спрятаны. */
.how__grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 22px);
  grid-template-columns: 1fr;
  align-items: stretch;
}

/* Desktop: 3 плитки в ряд + стрелки между ними */
@media (min-width: 860px) {
  .how__grid {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
  }
}

.how__step {
  position: relative;
  background: linear-gradient(160deg, rgba(20,30,50,0.85) 0%, rgba(8,12,24,0.85) 100%);
  border: 1px solid rgba(var(--white-rgb), 0.08);
  border-radius: 14px;
  padding: clamp(22px, 4vw, 30px) clamp(20px, 4vw, 28px);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.how__step:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--white-rgb), 0.18);
  box-shadow: 0 10px 40px -10px rgba(var(--accent-rgb), 0.3);
}

/* Верхняя подпись "STEP N" */
.how__num {
  font-size: clamp(10px, 2.2vw, 11px);
  font-weight: 700;
  color: var(--muted-2);
  letter-spacing: 2px;
  margin-bottom: 14px;
  opacity: 0.7;
}

.how__icon {
  font-size: clamp(44px, 8vw, 60px);
  line-height: 1;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 14px rgba(var(--white-rgb), 0.1));
}

.how__title {
  font-size: clamp(17px, 3.8vw, 21px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.how__text {
  font-size: clamp(14px, 3.2vw, 16px);
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  max-width: 260px;
}

/* Стрелки между плитками — только на десктопе */
.how__arrow {
  display: none;
  color: var(--accent);
  font-size: 32px;
  font-weight: 300;
  opacity: 0.4;
  align-self: center;
  user-select: none;
}
@media (min-width: 860px) {
  .how__arrow { display: flex; align-items: center; justify-content: center; }
}

/* Цветовые акценты каждой плитки — subtle */
.how__step--1 { box-shadow: 0 0 60px -24px rgba(var(--accent-rgb), 0.35); }
.how__step--2 { box-shadow: 0 0 60px -24px rgba(var(--gold-rgb), 0.35); }
.how__step--3 { box-shadow: 0 0 60px -24px rgba(var(--green-rgb), 0.35); }
.how__step--1:hover { box-shadow: 0 0 80px -18px rgba(var(--accent-rgb), 0.5); }
.how__step--2:hover { box-shadow: 0 0 80px -18px rgba(var(--gold-rgb), 0.5); }
.how__step--3:hover { box-shadow: 0 0 80px -18px rgba(var(--green-rgb), 0.5); }
