.zs-videos-page .zs-videos-banner {
  min-height: clamp(320px, 42vw, 560px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(8, 16, 34, 0.34) 0%, rgba(8, 16, 34, 0.14) 100%),
    url("../img/scenario-export.webp") center/cover no-repeat;
}

.zs-videos-page .zs-videos-banner .zs-shell {
  width: 100%;
}

.zs-videos-page .zs-videos-banner__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: inherit;
  padding: 140px 0 88px;
  text-align: center;
}

.zs-videos-page .zs-videos-banner__title {
  max-width: 980px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.4rem, 2rem + 1.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.zs-videos-page .zs-videos-library .zs-videos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.zs-videos-page .zs-videos-library .zs-video-card {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #f7f8fa;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.zs-videos-page .zs-videos-library .zs-video-card:hover {
  transform: translateY(-5px);
  border-color: rgba(27, 92, 134, 0.16);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.08);
}

.zs-videos-page .zs-videos-library .zs-video-card__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #d9dde3;
}

.zs-videos-page .zs-videos-library .zs-video-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.zs-videos-page .zs-videos-library .zs-video-card__media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.zs-videos-page .zs-videos-library .zs-video-card:hover .zs-video-card__media img {
  transform: scale(1.06);
}

.zs-videos-page .zs-videos-library .zs-video-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 16, 34, 0.08) 0%, rgba(8, 16, 34, 0.32) 100%);
}

.zs-videos-page .zs-videos-library .zs-video-card__media--embed::after {
  display: none;
}

.zs-videos-page .zs-videos-library .zs-video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(27, 92, 134, 0.92);
  box-shadow: 0 16px 32px rgba(21, 72, 102, 0.2);
  transform: translate(-50%, -50%);
}

.zs-videos-page .zs-videos-library .zs-video-card__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-38%, -50%);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #ffffff;
}

.zs-videos-page .zs-videos-library .zs-video-card__content {
  padding: 20px 20px 22px;
}

.zs-videos-page .zs-videos-library .zs-video-card__content h3 {
  margin: 0;
  color: var(--zs-color-text);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.55;
}

@media (max-width: 1024px) {
  .zs-videos-page .zs-videos-banner {
    min-height: clamp(280px, 46vw, 460px);
  }

  .zs-videos-page .zs-videos-banner__content {
    padding: 126px 0 76px;
  }

  .zs-videos-page .zs-videos-library .zs-videos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .zs-videos-page .zs-videos-banner {
    min-height: 240px;
  }

  .zs-videos-page .zs-videos-banner__content {
    padding: 114px 0 62px;
  }

  .zs-videos-page .zs-videos-banner__title {
    font-size: clamp(1.85rem, 1.65rem + 1vw, 2.7rem);
  }

  .zs-videos-page .zs-videos-library .zs-videos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .zs-videos-page .zs-videos-library .zs-video-card {
    border-radius: 14px;
  }

  .zs-videos-page .zs-videos-library .zs-video-card__play {
    width: 56px;
    height: 56px;
  }

  .zs-videos-page .zs-videos-library .zs-video-card__content {
    padding: 18px 18px 20px;
  }

  .zs-videos-page .zs-videos-library .zs-video-card__content h3 {
    font-size: 1rem;
  }
}

