/* KL – How It Works (front styles) */
.kl-hiw {
  padding: 0;
}
.kl-hiw__title {
  text-align: center;
  font-size: clamp(1.6rem, 2.7vw, 2.2rem);
  margin: 0;
  color: var(--text);
}
.kl-hiw__subtitle {
  text-align: center;
  color: var(--muted);
  margin: 6px 0 14px;
}

.kl-hiw__grid {
  display: grid;
  gap: 22px;
  margin-top: 10px;
}
.kl-hiw__grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.kl-hiw__grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.kl-hiw__grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .kl-hiw__grid.cols-4,
  .kl-hiw__grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .kl-hiw__grid {
    grid-template-columns: 1fr;
  }
}

.kl-hiw__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}
.kl-hiw__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.kl-hiw__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #f5f6f3;
  border: 1px solid #eef2f7;
  color: var(--brand);
}
.kl-hiw__icon svg {
  width: 34px;
  height: 34px;
}

.kl-hiw__item-title {
  margin: 6px 0 6px;
  font-size: 1.05rem;
  color: #1f2937;
}
.kl-hiw__item-text {
  color: var(--muted);
  margin: 0 0 10px;
}

.btn-cta {
  display: inline-block;
  background: #f3c04d;
  color: #2b2b2b;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-decoration: none;
}
.btn-cta:hover {
  filter: brightness(0.97);
}

/* ===== Base layout (есть в твоем стиле, на всякий случай компактно) */
.kl-hiw {
  margin: 28px 0;
}
.kl-hiw__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: hiw-step; /* для нумерации */
}
.kl-hiw__grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.kl-hiw__grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .kl-hiw__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .kl-hiw__grid {
    grid-template-columns: 1fr;
  }
}

.kl-hiw__item {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.06);
  padding: 18px;
  text-align: center;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.kl-hiw__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.kl-hiw__icon {
  width: 56px;
  height: 56px;
  margin: 6px auto 12px;
  border-radius: 14px;
  background: #f1f5f9;
  color: #2c5f2d;
  display: grid;
  place-items: center;
}
.kl-hiw__icon svg {
  width: 28px;
  height: 28px;
}

.kl-hiw__item-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: #111827;
}
.kl-hiw__item-text {
  color: #6b7280;
  margin: 0;
}

/* ===== numbers ===== */
.kl-hiw--numbers .kl-hiw__grid {
  counter-reset: hiw-step;
}
.kl-hiw--numbers .kl-hiw__item::before {
  counter-increment: hiw-step;
  content: counter(hiw-step);
  position: absolute;
  top: -10px;
  left: -10px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--brand, #2c5f2d);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(44, 95, 45, 0.25);
}
