@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  src: local("Roboto"), local("Arial");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  src: local("Roboto Medium"), local("Arial");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  src: local("Roboto Bold"), local("Arial Bold");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

p {
  margin: 0;
}

body {
  background-color: #f2f4f7;
  font-family: "Roboto", Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.download-page {
  min-height: 100vh;
}

.top-section {
  position: relative;
  width: 100%;
  height: 495px;
  overflow: visible;
  background-image: url("./assets/top-bg-1280.svg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}

.top-section__text {
  display: block;
  width: min(1100px, calc(100% - 48px));
  max-width: 1100px;
  height: auto;
  margin: 0 auto;
  padding-top: 56px;
}

.system-download-cards {
  position: absolute;
  left: 50%;
  bottom: -125px;
  display: flex;
  width: min(984px, calc(100% - 40px));
  max-width: 984px;
  transform: translateX(-50%);
}

.system-download-cards--single {
  width: min(480px, calc(100% - 40px));
}

.system-download-card + .system-download-card {
  margin-left: 24px;
}

.system-download-card {
  flex: 1 1 0;
  min-width: 0;
  padding: 32px 44px;
  border-radius: 28px;
  background: #ffffff;
  color: #384856;
  text-align: center;
  box-shadow: 0 0 20px 0 #0014271a;
}

.system-download-card__icon {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
}

.system-download-card__title {
  margin: 0;
  color: #151b22;
  font-size: 26px;
  font-weight: 700;
  line-height: 34px;
}

.system-download-card__version {
  margin-top: 4px;
  color: #384856;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.system-download-card__env {
  display: none;
  margin-top: 8px;
  color: #8a5a00;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.system-download-card__env.is-visible {
  display: block;
}

a.system-download-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 30px;
  background: linear-gradient(270deg, #cd128a -15.37%, #00359b 53.85%, #0452bf 100%);
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  margin: 24px 0;
  text-decoration: none;
}

a.system-download-card__button:hover {
  filter: brightness(1.05);
}

.system-download-card__tips {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  color: #384856;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  list-style: none;
  text-align: left;
}

.system-download-card__tips li + li {
  margin-top: 8px;
}

.system-download-card__tips li {
  position: relative;
  padding-left: 12px;
}

.system-download-card__tips li::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #384856;
  content: "";
}

.setup-section {
  margin-top: 165px;
  padding: 36px 20px;
}

.setup-section__inner {
  width: min(1100px, 100%);
  max-width: 1100px;
  margin: 0 auto;
}

.setup-section__title {
  margin: 0;
  color: #001b35;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.setup-section__content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 382px;
  margin-top: 42px;
}

.setup-section__image {
  display: block;
  flex: 0 0 460px;
  width: 460px;
  max-width: 100%;
  height: auto;
  margin-top: 18px;
}

.setup-section__guide {
  flex: 1 1 0;
  min-width: 0;
  margin-left: 24px;
}

.setup-platform-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #dae1e5;
}

.setup-platform-tabs__button {
  width: 89px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #001427;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  padding: 0;
}

.setup-platform-tabs__button:first-child {
  margin-right: 4px;
}

.setup-platform-tabs__button.is-active {
  width: 98px;
  background: #003ca6;
  color: #ffffff;
}

.setup-guide-panels {
  margin-top: 24px;
}

.setup-guide-panel {
  display: none;
}

.setup-guide-panel.is-active {
  display: block;
}

.setup-guide-panel__body {
  display: flex;
  align-items: stretch;
}

.setup-guide-panel__steps {
  display: flex;
  flex: 0 0 42px;
  flex-direction: column;
  align-items: flex-start;
  height: 208px;
  padding: 0;
}

.setup-guide-panel__step-line {
  flex: 0 0 44px;
  width: 1px;
  height: 44px;
  margin-left: 20px;
  background: linear-gradient(180deg, #0452bf 0.88%, #00359b 40.18%, #cd128a 99.12%);
}

.setup-guide-panel__step-icon {
  display: block;
  width: 41px;
  height: 41px;
}

.setup-guide-panel__texts {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  margin-left: 18px;
}

.setup-guide-panel__step-text + .setup-guide-panel__step-text {
  margin-top: 28px;
}

.setup-guide-panel__step-title {
  margin: 0 0 8px;
  color: #001b35;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.setup-guide-panel__step-desc {
  margin: 0;
  color: #384856;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.setup-guide-panel__notice {
  margin: 28px 0 0;
  color: #384856;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

.setup-guide-panel__notice a {
  color: #003ca6;
}

.env-channel {
  max-width: 520px;
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid #dae1e5;
  text-align: center;
}

.env-channel__label {
  margin: 0 0 10px;
  color: #5c6b7a;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.env-channel__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.env-channel__btn {
  border: 1px solid #dae1e5;
  border-radius: 999px;
  background: #fff;
  color: #384856;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 14px;
}

.env-channel__btn[data-env-option="prod"] {
  font-size: 14px;
}

.env-channel__btn[data-env-option]:not([data-env-option="prod"]) {
  font-size: 12px;
  opacity: 0.72;
}

.env-channel__btn.is-active {
  border-color: #003ca6;
  background: #003ca6;
  color: #fff;
  opacity: 1;
}

.env-channel__hint {
  margin: 12px 0 0;
  color: #8a96a3;
  font-size: 12px;
  line-height: 1.45;
}

.back-home {
  display: inline-block;
  margin-bottom: 16px;
  color: #003ca6;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.back-home:hover {
  text-decoration: underline;
}

@media (min-width: 1281px) {
  .top-section {
    background-image: url("./assets/top-bg-1440.svg");
  }
}

@media (min-width: 1441px) {
  .top-section {
    background-image: url("./assets/top-bg-1920.svg");
  }
}

@media (min-width: 1921px) {
  .top-section {
    background-image: url("./assets/top-bg-2560.svg");
  }
}

@media (max-width: 900px) {
  .top-section {
    height: 820px;
  }

  .system-download-cards {
    bottom: -125px;
    flex-direction: column;
    width: min(480px, calc(100% - 40px));
    max-width: 480px;
  }

  .system-download-card + .system-download-card {
    margin-top: 24px;
    margin-left: 0;
  }

  .setup-section__content {
    flex-direction: column;
    min-height: 0;
  }

  .setup-section__image {
    flex-basis: auto;
    width: min(460px, 100%);
    margin: 0 auto;
  }

  .setup-section__guide {
    width: min(560px, 100%);
    max-width: 560px;
    margin: 40px auto 0;
  }
}

@media (max-width: 560px) {
  .top-section {
    height: 760px;
  }

  .top-section__text {
    width: calc(100% - 32px);
    padding-top: 40px;
  }

  .system-download-card {
    padding: 28px 24px 30px;
    border-radius: 24px;
  }

  .setup-section {
    padding: 360px 20px 56px;
  }

  .setup-section__title {
    font-size: 32px;
  }

  .setup-section__content {
    margin-top: 32px;
  }

  .setup-platform-tabs {
    display: flex;
    width: 100%;
  }

  .setup-platform-tabs__button {
    flex: 1 1 0;
    width: auto;
  }
}
