.main-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.2);
}

.header-title {
  display: none;
}

.page-nav {
  display: none;
}

.page-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
}

.page-nav-link {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 16px;
  line-height: 187%;
  color: #fff;
  transition: border-color 0.3s ease;
}

.page-nav-link:hover {
  text-decoration: underline;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.menu-btn:hover,
.menu-btn:focus {
  .menu-svg {
    stroke: #3f38ff;
  }
}

.menu-svg {
  fill: none;
  stroke: #fff;
  transition: stroke 0.4s ease;
}

@media screen and (min-width: 1436px) {
  .main-section {
    padding: 23px 0;
    top: 20px;
  }

  .header-title {
    display: block;
  }

  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .page-nav {
    display: block;
  }

  .menu-btn {
    display: none;
  }
}

/* modal  */

.menu {
  position: fixed;
  top: 0;
  left: 50%;
  padding: 60px;
  padding-top: 120px;
  z-index: 8;
  backdrop-filter: blur(22px);
  background: rgba(37, 13, 130, 0.8);
  transform: translateX(-50%) translateY(-100%);
  transition: transform 1s ease;
  border-radius: 0 0 62px 62px;
}

.menu-nav-list {
  flex-direction: column;
  align-items: flex-start;
}

/* popup */

.page-popup {
  position: fixed;
  z-index: 10;
  bottom: 20px;
  left: 50%;
  padding: 22px;
  transform: translateX(-50%);
  border: 1px solid #fff;
  border-radius: 20px;
  transition: transform 0.4s ease;
  box-shadow: 0 14px 42px 0 rgba(8, 15, 52, 0.06);
  background: #3f38ff;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 187%;
  color: #fff;
  margin-bottom: 37px;
}

.popup-btn {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 112%;
  color: #fff;

  display: block;
  border: 1px solid #fff;
  border-radius: 56px;
  padding: 18px 26px;
  box-shadow: 0 4px 8px 0 rgba(74, 58, 255, 0.08);
  text-align: center;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  background: #fff;
  color: #030809;
}

.popup-wrap {
  display: flex;
  justify-content: center;
  gap: 18px;
}

@media screen and (min-width: 1436px) {
  .page-popup {
    padding: 52px 138px;
  }

  .popup-text {
    font-size: 18px;

    margin: 0;
  }

  .popup-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 120px;
  }

  .popup-wrap {
    flex-shrink: 0;
  }
}

/* hero  */

.dashboard {
  padding: 198px 0;
  background-image: url(../img/home-back.png);
  background-position: center;
  background-size: cover;
  border-radius: 0 0 62px 62px;
  overflow: hidden;
}

.page-hero-title {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 52px;
  line-height: 119%;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  margin-bottom: 32px;
}

.page-hero-text {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 24px;
  line-height: 125%;
  text-align: center;
  color: #fff;
  margin-bottom: 68px;
}

.page-hero-link {
  display: block;
  width: 187px;
  margin: 0 auto;
  border: 2px solid #fff;
  border-radius: 32px;
  padding: 22px;
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 22px;
  line-height: 136%;
  color: #fff;
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  transition: box-shadow 0.4s ease;
}

.page-hero-link:hover,
.page-hero-link:focus {
  box-shadow: 0 4px 22px 3px #9852fa;
}

@media screen and (min-width: 1436px) {
  .dashboard {
    padding-top: 320px;
    padding-bottom: 170px;
    border-radius: 0 0 100px 100px;
  }

  .page-hero-title {
    font-size: 88px;
    margin-bottom: 32px;
  }

  .page-hero-text {
    font-size: 24px;
    max-width: 1050px;
    margin: 0 auto;
    margin-bottom: 68px;
  }
}

/* trading  */

#trading {
  position: relative;
  overflow: hidden;
  perspective: 1200px; /* нужно для 3D-ощущения */
}

.web {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
  filter: contrast(110%) brightness(110%);
  transform-origin: center;
  will-change: transform;
  backface-visibility: hidden;

  animation: radarMotion 20s linear infinite;
}

@keyframes radarMotion {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.9);
  }
  50% {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.2);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(0.9);
  }
}

.trading-list {
  display: flex;
  flex-direction: column;
  gap: 12px;

  li {
    border: 1px solid #fff;
    border-radius: 26px;
    padding: 16px 26px;
    backdrop-filter: blur(8px);
    background: rgba(39, 41, 47, 0.8);

    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 144%;
    color: #fff;
    transition: background-color 0.3s ease;
    cursor: pointer;
  }

  li:hover {
    background: rgba(255, 255, 255, 0.2);
  }
}

@media screen and (min-width: 1436px) {
  .trading-list {
    width: 750px;
    gap: 32px 22px;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .trading-item {
    transform: translateX(500px);
  }
}

/* balance */

#balance {
  background-image: url(../img/zen.png);
  background-position: center;
  background-size: cover;
  border-radius: 62px;
  overflow: hidden;
}

.balance-content {
  border-radius: 62px;
  backdrop-filter: blur(4px);
  background: rgba(39, 41, 47, 0.6);
  padding: 44px 10px;

  ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  img {
    width: 26px;
    flex-shrink: 0;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 144%;
    color: #fff;
  }

  span {
    font-weight: 700;
  }

  .phone {
    width: auto;
    margin: 0 auto;
    margin-bottom: 22px;
  }
}

@media screen and (min-width: 1436px) {
  .balance-content {
    padding: 43px 94px;
    padding-top: 200px;
    padding-bottom: 300px;
    display: flex;
    align-items: center;
    position: relative;

    ul {
      width: 560px;
      margin-left: auto;
    }
  }

  .phone {
    position: absolute;
    top: 43px;
    left: 94px;
    margin: 0;
    flex-shrink: 0;
  }
}

/* healthy */

#healthy {
  position: relative;
  overflow: hidden;
  perspective: 1200px; /* нужно для 3D-ощущения */
}

.healthy-img-wrap {
  position: relative;
  overflow: hidden;
  height: 400px;
  border-radius: 32px;
  margin-bottom: 12px;

  img {
    max-width: max-content;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
  }
}

.healthy-list {
  align-items: flex-start;
}

@media screen and (min-width: 1436px) {
  .healthy-img-wrap {
    margin-bottom: 32px;

    img {
      max-width: 100%;
      width: 100%;
    }
  }

  .healthy-list {
    width: 871px;
    margin: 0 auto;
    justify-content: center;
  }
}

/* what */

#what {
  background-image: url(../img/testimonials.jpg);
  background-position: center;
  background-size: cover;
  padding-bottom: 205px;
  position: relative;
  overflow: hidden;
}

.what-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.what-item {
  border-radius: 22px;
  padding: 32px;
  backdrop-filter: blur(4px);
  background: rgba(39, 41, 47, 0.8);

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 144%;
    color: #fff;
  }
}

.what-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;

  h5 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 20px;
    line-height: 130%;
    color: #fff;
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 162%;
    color: #fff;
  }
}

.export {
  width: 35px;
  margin-bottom: 17px;
}

.avatar {
  width: 80px;
}

.what-avatar-wrap {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  border: 4px solid white;
  overflow: hidden;
  position: absolute; /* чтобы можно было свободно двигать */
  will-change: transform; /* плавность */
  backface-visibility: hidden;
  top: 0;
  left: 0;
}

@media (prefers-reduced-motion: reduce) {
  .what-avatar-wrap {
    transition: none !important;
    animation: none !important;
  }
}

@media screen and (min-width: 1436px) {
  .what-list {
    flex-direction: row;
    gap: 32px;
  }

  .what-item {
    width: calc((100% - 64px) / 3);
  }
}

/* market  */

.market-list {
  display: flex;
  flex-direction: column;
  gap: 22px;

  li {
    width: 669px;
    max-width: 100%;
    cursor: pointer;
  }

  li:hover {
    img {
      transform: translateX(-50%) translateY(-50%) scale(1.1);
    }

    p {
      background: rgba(255, 255, 255, 0.2);
    }
  }

  div {
    width: 100%;
    height: 320px;
    position: relative;
    overflow: hidden;
    border-radius: 32px;
  }

  img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    max-width: max-content;
    transition: transform 0.3s ease;
  }

  p {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 144%;
    color: #fff;
    text-align: center;
    margin-top: 12px;
    border: 1px solid #fff;
    border-radius: 26px;
    padding: 16px 26px;
    backdrop-filter: blur(8px);
    background: rgba(39, 41, 47, 0.8);
    transition: background-color 0.3s ease;
  }
}

/* contactc  */

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 669px;
  margin: 0 auto;
  max-width: 100%;

  a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #fff;
    border-radius: 26px;
    padding: 16px 26px;
    backdrop-filter: blur(8px);
    transition: background-color 0.3s ease;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 144%;
    text-align: center;
    color: #fff;
  }

  a:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  img {
    width: 24px;
    flex-shrink: 0;
  }
}

/* footer */

.footer {
  padding: 71px 0;
  background-image: url(../img/home-back.png);
  background-position: center;
  background-size: cover;
}

.footer-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  text-transform: lowercase;
  color: #fff;
  text-align: center;
  margin-bottom: 12px;
}

.footer-list {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-bottom: 12px;

  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  text-transform: uppercase;
  text-align: center;
  color: #fff;

  a:hover {
    text-decoration: underline;
  }
}

.footer-mail {
  display: block;
  text-align: center;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  color: #fff;
}

.footer-mail:hover {
  text-decoration: underline;
}

@media screen and (min-width: 1436px) {
  .footer {
    padding: 50px 0;
  }

  .footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .footer-text {
    font-size: 14px;
    margin: 0;
  }

  .footer-list {
    flex-direction: row;
    gap: 16px;
    font-size: 18px;
    margin: 0;
  }
}

/* loader */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(94, 95, 147, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ccc;
  border-top-color: #3f38ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* scroll */

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  border: 1px solid #3f38ff;
  color: #3f38ff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  z-index: 7;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease box-shadow 0.4s ease;
}
#scrollTopBtn:hover,
#scrollTopBtn:focus {
  box-shadow: 0 4px 22px 3px #3f38ff;
}
#scrollTopBtn.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ********************* */

.hidden {
  display: none;
}

.menu-transform {
  transform: translateX(-50%) translateY(0);
}

.click {
  transform: rotate(135deg);
}

.popup-click {
  transform: translateY(130%) translateX(-50%);
}

.overflow {
  overflow: hidden;
}
