/* ═══════════════════════════════════════════════════════════════
   VGT Hero Slider — Cinematic Edition
   ═══════════════════════════════════════════════════════════════ */

/* ── Container ── */
.vgt-slider {
  position: relative;
  width: 100%;
  height: clamp(520px, 72vh, 760px);
  overflow: hidden;
  background: #060c1a;
  user-select: none;
}

/* ── Slides ── */
.vgt-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.vgt-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* ── Background ── */
.vgt-slide__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.vgt-slide__bg video,
.vgt-slide__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vgt-slide__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(108deg, rgba(4,8,20,0.90) 0%, rgba(4,8,20,0.58) 42%, rgba(4,8,20,0.12) 100%),
    linear-gradient(to top, rgba(4,8,20,0.70) 0%, transparent 48%);
}

/* ── Content — выравнивание по контейнеру сайта (max-width 1280px) ── */
.vgt-slide__content {
  position: absolute;
  inset: 0 0 118px 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding-left:  max(calc((100% - 1280px) / 2 + 24px), 32px);
  padding-right: max(calc((100% - 1280px) / 2 + 24px), 32px);
}

.vgt-slide__inner {
  width: 100%;
  max-width: 680px;
}

/* Content entrance — staggered per slide activation */
.vgt-slide__badge,
.vgt-slide__title,
.vgt-slide__subtitle,
.vgt-slide__actions {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.vgt-slide.is-active .vgt-slide__badge    { opacity: 1; transform: none; transition-delay: 0.08s; }
.vgt-slide.is-active .vgt-slide__title    { opacity: 1; transform: none; transition-delay: 0.22s; }
.vgt-slide.is-active .vgt-slide__subtitle { opacity: 1; transform: none; transition-delay: 0.36s; }
.vgt-slide.is-active .vgt-slide__actions  { opacity: 1; transform: none; transition-delay: 0.50s; }

.vgt-slide__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
}


.vgt-slide__title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 18px;
}

.vgt-slide__title em {
  font-style: normal;
  color: #60a5fa;
}

.vgt-slide__subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.68);
  margin: 0 0 32px;
  max-width: 480px;
}

.vgt-slide__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── CTA Buttons ── */
.vgt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  line-height: 1;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.vgt-btn--primary {
  background: #ffffff;
  color: #0a0f1e;
}

.vgt-btn--primary:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.38);
}

.vgt-btn--ghost {
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.vgt-btn--ghost:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════════
   Bottom Navigation Bar — Timeline Style
   ══════════════════════════════════════════════════════════════ */
/* ── Навигация слайдера: типографические табы + hairline-прогресс ──
   Без панели и «хрома»: подписи на сетке контента, белая волосяная
   линия под активной, минимальные стрелки-круги. ── */
.vgt-slider__nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-left:  max(calc((100% - 1280px) / 2 + 24px), 32px);
  padding-right: max(calc((100% - 1280px) / 2 + 24px), 32px);
  padding-bottom: 30px;
  pointer-events: none;
}

.vgt-nav__counter { display: none; }

.vgt-nav__thumbs {
  display: flex;
  align-items: flex-end;
  gap: 36px;
  pointer-events: auto;
}

.vgt-nav__thumb {
  cursor: pointer;
  position: relative;
  padding: 8px 0 12px;
  min-width: 0;
}

.vgt-nav__thumb-num { display: none; }

.vgt-nav__thumb-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  transition: color 0.25s;
}

.vgt-nav__thumb:hover .vgt-nav__thumb-label { color: rgba(255, 255, 255, 0.75); }
.vgt-nav__thumb.is-active .vgt-nav__thumb-label { color: #ffffff; }

/* Hairline-прогресс под подписью */
.vgt-nav__thumb-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.vgt-nav__thumb-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: #ffffff;
}

.vgt-nav__thumb:not(.is-active) .vgt-nav__thumb-fill { opacity: 0; }

/* Стрелки — минимальные круги на той же базовой линии */
.vgt-nav__arrows {
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.vgt-nav__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  flex-shrink: 0;
}

.vgt-nav__arrow:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #0a0f1c;
}

/* ── Loading skeleton ── */
.vgt-slider--loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #060c1a 0%, #0d1a2e 100%);
  z-index: 5;
  animation: shimmerLoad 1.5s ease-in-out infinite alternate;
}

@keyframes shimmerLoad {
  from { opacity: 1; }
  to   { opacity: 0.6; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .vgt-slide__content { padding-left: 32px; padding-right: 32px; }
  .vgt-nav__thumbs { gap: 28px; }
}

@media (max-width: 768px) {
  /* Slider — заполняет экран минус мобильный хедер */
  .vgt-slider {
    height: clamp(440px, calc(100svh - 140px), 620px);
  }

  /* Контент прижат к низу — кинематографичный стиль */
  .vgt-slide__content {
    inset: 0 0 80px 0;
    padding-left: 20px;
    padding-right: 20px;
    align-items: flex-end;
    padding-bottom: 28px;
  }

  .vgt-slide__inner { max-width: 100%; }

  /* Overlay темнее снизу — текст читается лучше */
  .vgt-slide__overlay {
    background:
      linear-gradient(108deg, rgba(4,8,20,0.70) 0%, rgba(4,8,20,0.30) 60%, rgba(4,8,20,0.05) 100%),
      linear-gradient(to top, rgba(4,8,20,0.88) 0%, rgba(4,8,20,0.40) 40%, transparent 65%);
  }

  .vgt-slide__badge {
    font-size: 10px;
    padding: 4px 12px;
    margin-bottom: 10px;
  }

  .vgt-slide__title {
    font-size: clamp(1.85rem, 8.5vw, 2.6rem);
    margin-bottom: 10px;
    line-height: 1.08;
  }

  .vgt-slide__subtitle {
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 20px;
    max-width: 100%;
    /* обрезаем до 2 строк на мобиле */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .vgt-slide__actions { gap: 8px; }

  .vgt-btn {
    padding: 11px 20px;
    font-size: 13.5px;
  }

  /* Nav — компактный типографический кластер */
  .vgt-slider__nav { padding-left: 20px; padding-right: 20px; padding-bottom: 18px; }
  .vgt-nav__thumbs { gap: 22px; }
  .vgt-nav__thumb { padding: 4px 0 9px; }
  .vgt-nav__thumb-label { font-size: 10.5px; letter-spacing: 0.08em; }
  .vgt-nav__arrow { width: 38px; height: 38px; }
}

@media (max-width: 480px) {
  .vgt-slider { height: clamp(420px, calc(100svh - 150px), 580px); }

  .vgt-slide__content { padding-left: 16px; padding-right: 16px; padding-bottom: 22px; }

  .vgt-slide__title { font-size: clamp(1.75rem, 9vw, 2.3rem); }

  .vgt-btn { padding: 10px 18px; font-size: 13px; }

  .vgt-nav__arrows { display: none; }
  .vgt-nav__thumbs { gap: 18px; }
  .vgt-nav__thumb-label { font-size: 10px; }
}
