/* Стили блока «Как это работает».
   Назначение: вводная часть и карточки сценариев услуг.
   Подключается рядом с blocks/howItWorks/howItWorks.html. */

.how {
  padding: 110px 0;
  color: var(--navy);
  background: var(--surface);
}

.how__inner {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
}

.how__kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.how__index {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-mint));
  color: #fff;
  font-family: Manrope, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}

.how__kicker-text {
  flex: none;
  color: var(--accent-deep);
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.how__kicker-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent-deep) 45%, transparent), transparent);
}

.how__title {
  max-width: 820px;
  margin-bottom: 16px;
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 44px;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.how__text {
  max-width: 640px;
  margin: 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.55;
}

.how__video {
  display: block;
  width: min(1100px, 100%);
  aspect-ratio: 1100 / 630;
  height: auto;
  margin: 56px auto 0;
  border-radius: 20px;
  object-fit: cover;
  background: var(--navy);
  box-shadow: 0 0 35px #dce1eb;
}

.how__scenarios {
  margin-top: 48px;
}

.how__scenarios-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.how__scenarios-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.how__scenarios-note {
  margin: 0;
  color: color-mix(in srgb, var(--navy) 55%, #9aafc6);
  font-size: 14px;
  line-height: 1.3;
}

.how__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.how__card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 16px 18px 18px;
  border: 1px solid color-mix(in srgb, var(--navy) 8%, transparent);
  border-radius: 16px;
  background: #fff;
}

.how__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.how__tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

.how__tag--travel {
  background: rgba(228, 244, 241, 1);
  color: rgba(23, 117, 107, 1);
}

.how__tag--transport {
  background: rgba(230, 238, 247, 1);
  color: rgba(47, 93, 143, 1);
}

.how__tag--custom {
  background: color-mix(in srgb, var(--navy) 6%, #fff);
  color: color-mix(in srgb, var(--navy) 50%, #9aafc6);
}

.how__card-title {
  margin: 0 0 6px;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.how__card-text {
  margin: 0;
  color: color-mix(in srgb, var(--navy) 55%, #9aafc6);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .how__inner {
    width: min(var(--content), calc(100% - 32px));
  }

  .how__title {
    font-size: 32px;
  }
}

@media (max-width: 900px) {
  .how__cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .how__cards {
    grid-template-columns: 1fr;
  }
}
