.passport-rating {
  padding: 140px 0;
  background-color: var(--Gray);
}

.passport-rating .container {
  display: flex;
  gap: 30px;
}

.passport-rating__text-wrapper {
  position: relative;
  min-width: 407px;
  width: 407px;
}

.passport-rating__title {
  color: var(--Dark-blue);
  font-size: 30px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.passport-rating__text {
  color: var(--Black);
  font-size: 14px;
  line-height: 140%;
}

.passport-rating__link {
  position: absolute;
  display: block;
  width: 100%;
  max-width: 390px;
  bottom: 0;
  left: 0;

  color: var(--Dark-blue);
  font-size: 18px;
  font-weight: 500;
  line-height: 160%;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

.passport-rating__link.passport-rating__link--mobile {
  display: none;
}

.passport-rating__list {
  display: flex;
  flex-wrap: wrap;
  gap: 60px 28px;
}

.passport-rating__item {
  width: calc((100% - 60px) / 3);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--Silver);

  display: flex;
  flex-direction: column;
}

.passport-rating__item-link {
  color: var(--Dark-blue);
  font-size: 14px;
  font-weight: 600;
  line-height: 160%;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
  display: block;
  margin-bottom: 12px;
  padding-right: 16px;
  width: max-content;
  position: relative;
}

.passport-rating__item-link-arrow {
  display: block;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);

  width: 14px;
  height: 14px;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

.passport-rating__image {
  width: 70px;
  height: 100px;
  margin-bottom: 30px;
}

.passport-rating__item-title {
  color: var(--Dark-blue);
  font-size: 20px;
  font-weight: 600;
  line-height: 140%;
  margin-bottom: 12px;
  text-decoration: none;
}

.passport-rating__item-text {
  color: var(--Black);
  font-size: 14px;
  line-height: 140%;
  margin-bottom: 12px;
  flex-grow: 1;
}

.passport-rating__item-info {
  color: var(--Dark-Grey);
  font-size: 12px;
  font-weight: 400;
  line-height: 150%;
}

.passport-rating__item-info:not(:last-of-type) {
  margin-bottom: 8px;
}

.passport-rating__item-info strong {
  color: var(--Dark-blue);
  font-size: 12px;
  font-weight: 600;
  line-height: 150%;
}

.passport-rating__link-arrow {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  margin-bottom: -4px;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

@media screen and (max-width: 1200px) {
  .passport-rating {
    padding: 60px 0 80px;
  }

  .passport-rating .container {
    display: block;
  }

  .passport-rating__title {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .passport-rating__text {
    font-size: 16px;
  }

  .passport-rating__text-wrapper {
    min-width: auto;
    width: 100%;
    margin-bottom: 40px;
  }

  .passport-rating__item {
    width: calc((100% - 30px) / 2);
  }

  .passport-rating__list {
    margin-bottom: 40px;
  }

  .passport-rating__link {
    display: none;
  }

  .passport-rating__link.passport-rating__link--mobile {
    display: block;
    position: static;
  }
}

@media screen and (max-width: 680px) {
  .passport-rating__title {
    font-size: 22px;
  }

  .passport-rating__item {
    width: 100%;
  }

  .passport-rating__item:nth-last-child(-n + 3) {
    display: none;
  }
}