.download {
  margin-top: 130px;
  background-color: var(--secondary-background-color);
}

.download__container {
  display: flex;
  padding-top: 62px;
}

.download__qr-code-base {
  margin-left: -86px;
  user-select: none;
  background-image: url("/images/qr-code-base.svg");
  background-position: center;
  position: relative;
  flex: 0 0 380px;
}

.download__qr-code-image {
  width: 189px;
  height: 189px;
  position: absolute;
  top: 126px;
  left: 98px;
}

.download__qr-code-logo {
  width: 59px;
  height: 59px;
  border-radius: 14px;
  background-color: var(--main-background-color);
  position: absolute;
  top: calc(126px + (189px / 2));
  left: calc(98px + (189px / 2));
  transform: translate(-50%, -50%);
  background-image: url("/images/tn-logo.svg");
  background-position: center;
}

.download__text {
  padding: 42px 0 105px;
}

.download__title {
  margin-bottom: 24px;
}

.download__list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 38px;
  gap: 16px;
}

.download__item {
  user-select: none;
  flex: 0 0 calc(25% - 12px);
}

.download__link {
  background-color: var(--main-text-color);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  white-space: nowrap;
  transition: background-color .1s linear;
  justify-content: center;
}

.download__link:hover {
  background-color: var(--hover-text-color);
}

.download__link:active {
  background-color: #000000;
}

.download__link-text {
  font-weight: 600;
  line-height: 24px;
  display: block;
  color: #ffffff;
  padding-left: 32px;
  background-position: left center;
}

.download__link_macos .download__link-text {
  background-image: url("/images/icons/apple-logo-white.svg");
}

.download__link_windows .download__link-text {
  background-image: url("/images/icons/windows-logo-color.svg");
}

.download__link_ios .download__link-text {
  background-image: url("/images/icons/app-store-logo-color.svg");
}

.download__link_android .download__link-text {
  background-image: url("/images/icons/google-play-logo-color.svg");
}

.download__link_app-gallery .download__link-text {
  background-image: url("/images/icons/app-gallery-logo-color.svg");
}

.download__link_get-apps .download__link-text {
  background-image: url("/images/icons/get-apps-logo-color.svg");
}

.download__link_ru-store .download__link-text {
  background-image: url("/images/icons/ru-store-logo-color.svg");
}

.download__link_apk .download__link-text {
  background-image: url("/images/icons/download-white.svg");
}

.download__share-container {
  background-color: var(--main-background-color);
  border-radius: 16px;
  padding: 32px 40px;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.download__share-text {
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  max-width: 523px;
}

.download__share-button {
  padding: 0 0 0 64px;
  background-image: url("/images/icons/link.svg");
  background-position: left center;
  position: relative;
}

.download__copied-badge {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%) scale(.95);
  white-space: nowrap;
  color: #ffffff;
  background-color: var(--main-text-color);
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  padding: 5px 12px;
  border-radius: 8px;
  box-shadow: 0 10px 28px #1f21242d;
  pointer-events: none;
  transition-property: opacity, transform;
  transition-duration: .2s;
  transition-timing-function: ease;
  opacity: 0;
}

.download__share-button_copied .download__copied-badge {
  transform: translate(-50%, 100%) scale(1);
  opacity: 1;
}

.download__copied-badge::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  width: 12px;
  height: 6px;
  background-image: url("/images/icons/badge-arrow.svg");
}

.download__download-button {
  width: 100%;
  padding: 12px 32px;
  justify-content: center;
  align-items: center;
  display: none;
  margin-bottom: 24px;
}

.download__download-button-text {
  display: block;
  background-position: left center;
  padding-left: 36px;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  background-size: 24px;
}

@media screen and (max-width: 1024px) and (min-width: 681px) {
  .download__share-text {
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    margin-bottom: 16px;
  }

  .download__qr-code-base {
    display: none;
  }
}

@media screen and (max-width: 680px) {
  .download {
    margin-top: 90px;
  }

  .download__container {
    padding: 90px 16px;
  }

  .download__qr-code-base {
    display: none;
  }

  .download__text {
    padding: 0;
    width: 100%;
  }

  .download__share-container {
    flex-flow: column;
    padding: 32px 16px 24px;
    align-items: center;
  }

  .download__share-text {
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    margin-bottom: 16px;
  }

  .download__share-button {
    height: 52px;
    width: unset;
  }

  .download__list {
    display: none;
  }

  .download__download-button {
    display: flex;
  }
}
