.markets-page {
  background: #111;
}

.markets-page .hero-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  min-height: 90vh;
}

.markets-page .hero-card {
  position: relative;
  min-height: 100%;
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: var(--color-white);
  text-decoration: none;
  overflow: hidden;
}

.markets-page .hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-primary) 90%);
  opacity: 0.6;
  transition: opacity 0.3s ease-in-out, background 0.3s ease-in-out;
}

.markets-page .hero-card:hover::before {
  background: linear-gradient(180deg, #8233e0e6 0%, var(--color-primary) 100%);
  opacity: 0.7;
}

.markets-page .hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 8px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  gap: 12px;
  min-height: 100%;
  box-sizing: border-box;
  transition: padding-bottom 0.3s ease-in-out;
}

.markets-page .hero-card:hover .hero-overlay {
  padding-bottom: 80px;
}

.markets-page .hero-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  color: var(--color-white);
}

.markets-page .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--color-white);
  border-radius: 8px;
  background: transparent;
  color: var(--color-white);
  font-size: 15px;
  font-weight: 500;
  line-height: 15px;
}

.markets-page .detail {
  background: var(--color-white);
  padding: 56px 0 40px;
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.markets-page .detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 36px;
  align-items: center;
}

.markets-page .detail-img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  max-height: 420px;
}

.markets-page .detail h1 {
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.markets-page .detail p {
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 24px;
}

.markets-page .clients {
  background: var(--color-white);
  padding: 70px 0 80px;
}

.markets-page .clients-title {
  text-align: center;
  color: var(--color-primary);
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 48px;
}

.markets-page .clients-swiper {
  padding-bottom: 40px !important;
}

.markets-page .clients-swiper .swiper-pagination-bullet {
  width: 11px;
  height: 11px;
  background: var(--color-primary);
}

.markets-page .clients-swiper .swiper-wrapper {
  align-items: center;
}

.markets-page .client-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.markets-page .client-logo {
  width: 100%;
  max-width: 140px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1200px) {
  .markets-page .hero-title {
    font-size: 28px;
  }

  .markets-page .hero-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media (max-width: 1100px) {
  .markets-page .hero-grid {
    grid-template-columns: repeat(4, 1fr);
    min-height: auto;
  }

  .markets-page .hero-card {
    min-height: 405px;
  }

  .markets-page .clients-title {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .markets-page .hero-grid {
    grid-template-columns: 1fr;
  }

  .markets-page .hero-card {
    min-height: 360px;
  }

  .markets-page .hero-title {
    font-size: 32px;
  }

  .markets-page .hero-overlay {
    padding-bottom: 36px;
  }

  .markets-page .detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .markets-page .detail {
    padding: 36px 0 24px;
  }

  .markets-page .detail h1 {
    font-size: 1.5rem;
  }

  .markets-page .clients {
    padding: 48px 0;
  }
}
