/* Quadro Extreme — Видео-блок + видео-модалка */

/* ── VIDEO SHOWCASE ── */
.video-showcase {
  background: var(--card);
  padding: 0 48px 72px;
}
.video-showcase__head {
  text-align: center;
  max-width: 960px;
  margin: 0 auto 22px;
}
.video-showcase__headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.video-showcase__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.video-showcase__icon svg { margin-left: 3px; }
.video-showcase__head .section-title {
  font-size: clamp(26px, 2.6vw, 36px);
}
.video-showcase__subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  color: #b0b0b0;
  line-height: 1.6;
  margin-top: 10px;
}

.video-card {
  position: relative;
  width: 100%;
  /* Ширину ограничиваем и по вьюпорту, чтобы 16:9-высота не вылезала за экран */
  max-width: min(1100px, 116vh);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(107,255,42,0.18);
  background: #0a0a0a;
  transition: border-color 0.25s, transform 0.25s;
}
.video-card:hover {
  border-color: rgba(107,255,42,0.45);
  transform: translateY(-3px);
}
.video-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.video-card:hover .video-card__img {
  transform: scale(1.03);
}
.video-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,8,0.15) 0%, rgba(8,8,8,0.55) 100%);
}
.video-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--green);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 0 rgba(107,255,42,0.5);
  transition: background 0.2s, box-shadow 0.3s, transform 0.2s;
}
.video-card:hover .video-card__play {
  background: #85ff3a;
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 14px rgba(107,255,42,0.12);
}
.video-card__play svg { margin-left: 4px; }

@media (max-width: 800px) {
  .video-showcase { padding: 0 20px 56px; }
  .video-card__play { width: 52px; height: 52px; }
  .video-card__play svg { width: 20px; height: 20px; }
}

/* ── VIDEO MODAL ── */
.video-modal {
  position: fixed; inset: 0; z-index: 1100;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.video-modal.is-open { display: flex; }
.video-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(5,5,5,0.9);
  backdrop-filter: blur(6px);
}
.video-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.video-modal__close {
  position: absolute; top: -44px; right: 0;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  z-index: 2;
}
.video-modal__close:hover {
  background: rgba(107,255,42,0.15);
  border-color: rgba(107,255,42,0.4);
  color: var(--green);
}
.video-modal__frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 80vh;
  margin: 0 auto;
}
.video-modal__frame-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
}
@media (max-width: 600px) {
  .video-modal__close { top: -40px; }
}

