.how-it-works {
  background: var(--color-bg-medium);
  padding: 71px 0;
}

.how-it-works-header {
  display: flex;
  gap: 80px;
  align-items: center;
  margin-bottom: 60px;
  justify-content: space-between;
}

.how-it-works-title {
  font-size: 60px;
  font-weight: 900;
  line-height: 1;
  color: var(--color-text-white);
  max-width: 800px;
  flex-shrink: 0;
}

.how-it-works-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.37;
  color: var(--color-text-white);
  max-width: 500px;
}

.how-it-works-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.how-card {
  border-radius: var(--border-radius-sm);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.how-card:nth-child(odd) {
  background: #0B0C12;
}

.how-card:nth-child(even) {
  background: #AD6EF9;
}

.how-card:nth-child(even) .how-card-title,
.how-card:nth-child(even) .how-card-description {
  color: #000000;
}

.how-card:nth-child(even) .how-card-number {
  color: #0B0C12;
}

.how-card:hover {
  transform: translateY(-8px);
}

.how-card-header {
  display: flex;
  gap: 8px;
  align-items: center;
}

.how-card-number {
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.2);
  width: 90px;
  text-align: center;
}

.how-card-title {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.12;
  color: var(--color-text-white);
  max-width: 162px;
}

.how-card-description {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.58;
  color: var(--color-text-white);
}

@media (max-width: 1200px) {
  .how-it-works-header {
    gap: 80px;
  }

  .how-it-works-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .how-it-works-header {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .how-it-works-title {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .how-it-works {
    padding: 60px 0;
  }

  .how-it-works-title {
    font-size: 36px;
  }

  .how-it-works-cards {
    grid-template-columns: 1fr;
  }
}
