.hero-market {
  position: relative;
  height: 530px;
  overflow: hidden;
  padding: 27px 28px 25px;
  border: 1px solid #173159;
  border-radius: 12px;
  color: #fff;
  background: #081a37;
  box-shadow: 0 24px 60px rgba(8, 26, 55, .14);
  isolation: isolate;
}

.hero-market::before {
  content: "";
  position: absolute;
  z-index: -2;
  top:0;right:0;bottom:0;left:0;
  background: linear-gradient(116deg, transparent 0 51%, rgba(36, 87, 237, .09) 51% 67%, transparent 67%);
}

.hero-market::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 1px;
  height: 100%;
  right: 50%;
  top: 0;
  background: rgba(255, 255, 255, .08);
  opacity: 1;
}

.hero-market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  color: #aebcda;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .13em;
}

.hero-market-state {
  display: inline-flex;
  align-items: center;
  color: #fff;
  letter-spacing: .05em;
}

.hero-market-state i {
  display: none;
}

.hero-exchange {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  min-height: 342px;
  padding: 26px 0 18px;
}

.exchange-side {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 298px;
  padding: 27px 25px 23px;
  border-radius: 0;
  transition: background-color .22s ease, color .22s ease;
}

.exchange-side:hover {
  transform: none;
}

.exchange-service {
  margin: 0;
  color: #081a37;
  background: #f7f9fd;
  box-shadow: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.exchange-request {
  margin: 0;
  color: #fff;
  background: #2b58eb;
  box-shadow: none;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px);
}

.exchange-index {
  color: #7b88a1;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .13em;
}

.exchange-request .exchange-index {
  color: #c8d5ff;
}

.exchange-side svg {
  display: none;
}

.exchange-side > strong {
  margin-top: 55px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -.055em;
}

.exchange-side p {
  min-height: 50px;
  margin: 13px 0 19px;
  color: #66748d;
  font-size: 13px;
  line-height: 1.65;
}

.exchange-request p {
  color: #dbe4ff;
}

.exchange-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #dce3ee;
  font-size: 12px;
  font-weight: 780;
}

.exchange-request .exchange-action {
  border-color: rgba(255, 255, 255, .25);
}

.exchange-action b {
  font-size: 18px;
}

.exchange-direct {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.exchange-direct::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -1px;
  right: -1px;
  top: 19px;
  border-top: 1px solid rgba(255, 255, 255, .44);
  transform: none;
}

.exchange-direct::after {
  content: "";
  position: absolute;
  z-index: -2;
  top: -26px;
  bottom: -18px;
  left: 50%;
  border-left: 1px solid rgba(255, 255, 255, .13);
}

.exchange-direct span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 2px;
  color: #fff;
  background: #081a37;
  font-size: 0;
  transform: rotate(45deg);
}

.exchange-direct span::before {
  content: "↔";
  display: block;
  font-size: 18px;
  transform: rotate(-45deg);
}

.exchange-direct small {
  color: #91a2c4;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
}

.hero-market-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.hero-market-foot > div {
  display: flex;
  flex-direction: column;
}

.hero-market-foot > div span {
  margin-bottom: 3px;
  color: #8191b0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}

.hero-market-foot > div strong {
  font-size: 14px;
}

.hero-market-foot ul {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  color: #b8c5dc;
  font-size: 10px;
  list-style: none;
}

.hero-market-foot li::before {
  content: "/";
  display: inline-block;
  margin-right: 7px;
  color: #3d67ee;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .hero-grid {
    gap: 42px;
  }

  .hero-market {
    padding-left:22px;padding-right:22px;
  }

  .exchange-side {
    padding-left:17px;padding-right:17px;
  }

  .hero-market-foot ul {
    gap: 9px;
  }
}

@media (max-width: 820px) {
  .hero-market {
    width: 100%;
    max-width: 680px;
    margin: 6px auto 0;
  }
}

@media (max-width: 540px) {
  .hero-market {
    height: auto;
    min-height: 640px;
    padding: 22px 18px;
    border-radius: 18px;
  }

  .hero-market-head {
    font-size: 9px;
  }

  .hero-exchange {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top:24px;padding-bottom:24px;
  }

  .exchange-side {
    min-height: 228px;
    margin: 0;
    padding: 23px 22px 20px;
  }

  .exchange-side > strong {
    margin-top: 30px;
    font-size: 30px;
  }

  .exchange-side p {
    min-height: 0;
  }

  .exchange-direct {
    height: 56px;
  }

  .exchange-direct::before {
    top: 27px;
    left: calc(50% - 58px);
    right: calc(50% - 58px);
    transform: rotate(90deg);
  }

  .exchange-direct small {
    display: none;
  }

  .hero-market-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-market-foot ul {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exchange-side {
    transition: none;
  }
}
