/**
 * Meta — advertiser challenges cards.
 */

.home-v2 .v2-section--meta-challenges,
.v2-section--meta-challenges {
  padding-block: calc(100vw * 48 / 390);
}

.v2-section--meta-challenges .v2-meta-challenges__heading-line.v2-meta-challenges__heading-line--mobile {
  display: none;
}

@media (max-width: 1023px) {
  .v2-section--meta-challenges .v2-meta-challenges__heading-line.v2-meta-challenges__heading-line--desktop {
    display: none;
  }

  .v2-section--meta-challenges .v2-meta-challenges__heading-line.v2-meta-challenges__heading-line--mobile {
    display: block;
  }
}

.v2-meta-challenges__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(100vw * 24 / 390);
  margin-bottom: calc(100vw * 32 / 390);
}

.v2-meta-challenges__head-main {
  display: flex;
  flex-direction: column;
  gap: calc(100vw * 16 / 390);
  min-width: 0;
}

.v2-section--meta-challenges .v2-descriptor {
  margin: 0;
  gap: calc(100vw * 10 / 390);
  font-size: calc(100vw * 14 / 390);
  line-height: 1;
  color: rgba(32, 32, 32, 0.4);
}

.v2-section--meta-challenges .v2-descriptor__dot {
  width: calc(100vw * 10 / 390);
  height: calc(100vw * 10 / 390);
  background: #44b949;
}

.v2-meta-challenges__heading {
  margin: 0;
  max-width: 100%;
  font-size: calc(100vw * 32 / 390);
  font-weight: 500;
  line-height: 1;
  color: #202020;
}

.page-platform--snapchat .v2-meta-challenges__heading {
  font-size: calc(100vw * 28.5 / 390);
}

.page-platform--snapchat .v2-meta-challenges__head {
  gap: clamp(20px, calc(100vw * 30 / 1920), 30px);
}

.page-platform--snapchat .v2-meta-challenges__lead {
  max-width: 100%;
  font-size: clamp(14px, calc(100vw * 20 / 1920), 20px);
}

@media (min-width: 481px) and (max-width: 1023px) {
  .page-platform--snapchat .v2-meta-challenges__heading {
    font-size: calc(26px + 1.89vw);
  }
}

.v2-meta-challenges__heading-line {
  display: block;
  white-space: nowrap;
}

.v2-meta-challenges__heading-segment {
  display: inline;
}

.v2-section--meta-challenges .v2-meta-challenges__heading[data-animation='letters'] .split-line {
  width: 100%;
  max-width: 100%;
}

.v2-meta-challenges__heading-accent {
  color: #64db69;
}

.v2-meta-challenges__lead {
  margin: 0;
  max-width: 100%;
  font-size: calc(100vw * 14 / 390);
  font-weight: 400;
  line-height: 1.3;
  color: rgba(32, 32, 32, 0.4);
}

.v2-meta-challenges__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(100vw * 12 / 390);
}

.v2-meta-challenges__card {
  display: flex;
  flex-direction: column;
  min-height: calc(100vw * 320 / 390);
  padding: calc(100vw * 20 / 390);
  border-radius: 20px;
  background: #ebebeb;
}

.v2-meta-challenges__card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: calc(100vw * 12 / 390);
  margin-bottom: calc(100vw * 20 / 390);
}

.v2-meta-challenges__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(100vw * 56 / 390);
  height: calc(100vw * 56 / 390);
  border-radius: 10px;
  background: #64db69;
}

.v2-meta-challenges__icon img {
  display: block;
  width: calc(100vw * 28 / 390);
  height: calc(100vw * 28 / 390);
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.v2-meta-challenges__index {
  margin: 0;
  font-size: calc(100vw * 12 / 390);
  font-weight: 400;
  line-height: 1;
}

.v2-meta-challenges__index-current {
  color: #20202099;
}

.v2-meta-challenges__index-total {
  color: #2020201a;
}

.v2-meta-challenges__card-title {
  margin: 0 0 calc(100vw * 16 / 390);
  font-size: calc(100vw * 22 / 390);
  font-weight: 500;
  line-height: 1.25;
  color: #202020;
}

.v2-meta-challenges__card-line {
  border-top: 1px dotted rgba(32, 32, 32, 0.2);
  margin-bottom: calc(100vw * 16 / 390);
}

.v2-meta-challenges__card-text {
  margin: 0;
  margin-top: auto;
  font-size: calc(100vw * 14 / 390);
  font-weight: 400;
  line-height: 1.22;
  color: rgba(32, 32, 32, 0.6);
}

@media (min-width: 1024px) {
  .home-v2 .v2-section--meta-challenges,
  .v2-section--meta-challenges {
    padding-block: clamp(64px, calc(100vw * 100 / 1920), 100px);
  }

  .v2-meta-challenges__head {
    grid-template-columns: minmax(0, calc(100vw * 1057 / 1920)) minmax(0, calc(100vw * 384 / 1920));
    align-items: end;
    justify-content: space-between;
    gap: clamp(24px, calc(100vw * 40 / 1920), 40px);
    margin-bottom: clamp(40px, calc(100vw * 100 / 1920), 100px);
  }

  .v2-meta-challenges__head-main {
    gap: clamp(16px, calc(100vw * 20 / 1920), 20px);
  }

  .v2-section--meta-challenges .v2-descriptor {
    gap: 10px;
    font-size: clamp(16px, 1.042vw, 20px);
  }

  .v2-section--meta-challenges .v2-descriptor__dot {
    width: 10px;
    height: 10px;
  }

  .v2-meta-challenges__heading {
    max-width: min(calc(100vw * 1057 / 1920), 1057px);
    font-size: clamp(48px, calc(100vw * 90 / 1920), 90px);
  }

  .v2-meta-challenges__lead {
    justify-self: end;
    max-width: min(calc(100vw * 384 / 1920), 384px);
    font-size: clamp(16px, 1.042vw, 20px);
    line-height: 1.3;
  }

  .v2-meta-challenges__head--no-lead {
    grid-template-columns: 1fr;
  }

  .v2-meta-challenges__head--no-lead .v2-meta-challenges__heading {
    max-width: min(calc(100vw * 1200 / 1920), 1200px);
  }

  .v2-meta-challenges__grid {
    grid-template-columns: repeat(4, minmax(0, calc(100vw * 435 / 1920)));
    justify-content: space-between;
    gap: clamp(12px, calc(100vw * 20 / 1920), 20px);
  }

  .v2-meta-challenges__card {
    min-height: clamp(360px, calc(100vw * 442 / 1920), 442px);
    padding: clamp(24px, calc(100vw * 30 / 1920), 30px);
  }

  .v2-meta-challenges__card-top {
    margin-bottom: clamp(20px, calc(100vw * 30 / 1920), 30px);
  }

  .v2-meta-challenges__icon {
    width: clamp(64px, calc(100vw * 80 / 1920), 80px);
    height: clamp(64px, calc(100vw * 80 / 1920), 80px);
  }

  .v2-meta-challenges__icon img {
    width: clamp(28px, calc(100vw * 37 / 1920), 37px);
    height: clamp(28px, calc(100vw * 35 / 1920), 35px);
  }

  .v2-meta-challenges__index {
    font-size: clamp(14px, calc(100vw * 16 / 1920), 16px);
  }

  .v2-meta-challenges__card-title {
    margin-bottom: clamp(16px, calc(100vw * 20 / 1920), 20px);
    font-size: clamp(24px, calc(100vw * 32 / 1920), 32px);
    line-height: 1.25;
  }

  .v2-meta-challenges__card-line {
    margin-bottom: clamp(16px, calc(100vw * 20 / 1920), 20px);
  }

  .v2-meta-challenges__card-text {
    font-size: clamp(16px, calc(100vw * 18 / 1920), 18px);
  }
}
