/* «Как участвовать» */
.how {
  display: flex;
  width: 375px;
  height: 622px;
  padding: 60px 0 60.889px 20px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
  background: #fff;
  flex-shrink: 0;
}

.how__header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 335px;
  height: 70px;
  flex-shrink: 0;
}

.how__header-icon-wrap {
  position: relative;
  width: 18px;
  height: 32px;
  flex-shrink: 0;
}

.how__header-icon {
  position: absolute;
  left: 5px;
  top: 12px;
  width: 8px;
  height: 16px;
  display: block;
}

.how__title {
  flex: 1 1 0;
  min-width: 0;
  color: #333;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.64px;
}

.how__title p {
  margin: 0;
  line-height: 1.1;
}

.how__cards {
  width: 355px;
  margin-right: -20px;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  scroll-behavior: auto;
  scrollbar-width: none;
  touch-action: auto;
  cursor: grab;
  user-select: none;
}

.how__cards--dragging {
  cursor: grabbing;
}

.how__cards--dragging .how__card-bottom-action {
  pointer-events: none;
}

.how__cards::-webkit-scrollbar {
  display: none;
}

.how__cards-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding-right: 20px;
}

.how__card {
  position: relative;
  border-radius: 24px;
  background: #e5f3fd;
  flex-shrink: 0;
}

.how__card--step1 {
  width: 240px;
  height: 391.111px;
}

.how__card--step2,
.how__card--step3,
.how__card--step4 {
  width: 238px;
  height: 391px;
}

.how__card-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.how__card-inner-top {
  position: absolute;
  top: 16px;
  left: 22px;
  width: 194px;
  height: 160px;
}

.how__card-inner-top--step3,
.how__card-inner-top--step4 {
  height: 172px;
}

.how__card-inner-bottom {
  position: absolute;
  top: 188px;
  left: 22px;
  width: 194px;
  height: 187px;
}

.how__card--step2 .how__card-inner-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how__card--step3 .how__card-inner-bottom,
.how__card--step4 .how__card-inner-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: visible;
}

.how__card-inner-illo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.how__card-bottom-text--step2,
.how__card-bottom-title-block--step2,
.how__card-bottom-desc-block--step2,
.how__card-bottom-action--step2 {
  width: 194px;
}

.how__card-bottom-desc--right,
.how__card-bottom-desc--right .how__card-bottom-desc-line {
  text-align: right;
}

.how__card-bottom-desc--step2,
.how__card-bottom-desc--step2 .how__card-bottom-desc-line,
.how__card-bottom-desc--step3,
.how__card-bottom-desc--step3 .how__card-bottom-desc-line,
.how__card-bottom-desc--step4,
.how__card-bottom-desc--step4 .how__card-bottom-desc-line {
  text-align: left;
}

.how__card-bottom-text--step3,
.how__card-bottom-title-block--step3,
.how__card-bottom-text--step4,
.how__card-bottom-title-block--step4 {
  width: 194px;
}

.how__card-bottom-text--step3,
.how__card-bottom-text--step4 {
  height: 131px;
}

.how__card-bottom-title-block--step3,
.how__card-bottom-title-block--step4 {
  height: 72px;
}

.how__card-bottom-desc-block--step3,
.how__card-bottom-desc-block--step4 {
  width: 211px;
  height: 51px;
}

.how__card-bottom-action--step3,
.how__card-bottom-action--step4 {
  width: 193px;
}

.how__card-top {
  position: absolute;
  top: 16px;
  left: 22px;
  width: 196px;
  height: 160.111px;
  overflow: visible;
}

.how__card-top-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.how__card-bottom {
  position: absolute;
  top: 188.11px;
  left: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 196px;
  height: 187px;
}

.how__card-bottom-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 196px;
  height: 131px;
  flex-shrink: 0;
}

.how__card-bottom-title-block {
  width: 196px;
  height: 72px;
  flex-shrink: 0;
}

.how__card-bottom-desc-block {
  width: 196px;
  height: 51px;
  flex-shrink: 0;
}

.how__card-bottom-title {
  margin: 0;
  padding: 0;
  color: #0086f0;
  font-family: "Inter", sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: left;
}

.how__card-bottom-title-line {
  display: block;
  white-space: nowrap;
  line-height: 1.1;
}

.how__card-bottom-desc {
  margin: 0;
  padding: 0;
  color: rgba(0, 134, 240, 0.7);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.02em;
  text-align: left;
}

.how__card-bottom-desc-line {
  display: block;
  white-space: nowrap;
  line-height: 1.2;
}

.how__card-bottom-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 196px;
  height: 40px;
  padding: 0 20px;
  border: 2px solid transparent;
  border-radius: 100px;
  background:
    linear-gradient(#2fb000, #2fb000) padding-box,
    linear-gradient(180deg, #3dd804 0%, #1f8a00 100%) border-box;
  flex-shrink: 0;
  cursor: pointer;
}

.how__card-bottom-action-text {
  display: block;
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
}
