/* ===================================================
   VIDEO.CSS — Стили страницы «Видео»
   Префикс: vid-
   URL: /poleznoe/video.html
   =================================================== */


/* --- БЛОК 1: HERO --- */
.hero--video { min-height: auto; }
.hero--video .main-nav__link { color: #fff; }
.hero--video .main-nav__link:hover { color: #E8A849; }
.hero__bg--video { background-image: url('/images/sibstar/foto_video.webp') !important; background-position: center center; }

/* Оверлей — подогнан под фото Видео (затемнённый) */
.hero--video .hero__overlay {
  background: linear-gradient(
    to right,
    rgba(8, 8, 8, 0.95) 0%,
    rgba(12, 12, 12, 0.85) 30%,
    rgba(20, 20, 20, 0.50) 100%
  ) !important;
}

.vid-hero__content { position: relative; z-index: 5; padding: 40px 0; }
.vid-hero__title { font-size: 68px !important; font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 16px; letter-spacing: -0.02em; }
.vid-hero__accent { color: #E8A849; }
.vid-hero__subtitle { font-size: 22px !important; font-weight: 300 !important; color: rgba(255,255,255,0.85) !important; line-height: 1.5; max-width: 640px; margin: 0 0 32px; }

.vid-hero__chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.vid-hero__chip { display: flex; flex-direction: column; gap: 16px; background: rgba(255,255,255,0.08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.15); border-radius: 16px; padding: 24px; color: #fff; transition: border-color 0.3s, background 0.3s, transform 0.3s; }
.vid-hero__chip:hover { border-color: rgba(151,207,210,0.5); background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.vid-hero__chip-icon { width: 48px; height: 48px; border-radius: 12px; background: rgba(232,168,73,0.2); display: flex; align-items: center; justify-content: center; }
.vid-hero__chip-icon svg { color: #E8A849; width: 22px; height: 22px; }
.vid-hero__chip-text { display: flex; flex-direction: column; gap: 2px; }
.vid-hero__chip-main { font-weight: 700; font-size: 17px; line-height: 1.3; color: #fff; }
.vid-hero__chip-sub { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.3; }

@media (max-width:1024px) { .vid-hero__title { font-size: 48px !important; } .vid-hero__subtitle { font-size: 18px !important; } .vid-hero__chips { grid-template-columns: repeat(2,1fr); } .vid-hero__chip { padding: 18px; } }
@media (max-width:768px) { .vid-hero__content { padding: 32px 0; } .vid-hero__title { font-size: 36px !important; margin-bottom: 12px; line-height: 1.15; } .vid-hero__subtitle { font-size: 15px !important; margin-bottom: 24px; } .vid-hero__chips { grid-template-columns: repeat(2,1fr); gap: 12px; } .vid-hero__chip { flex-direction: row; padding: 16px; gap: 12px; border-radius: 14px; } .vid-hero__chip-icon { width: 40px; height: 40px; } .vid-hero__chip-main { font-size: 15px; } .vid-hero__chip-sub { font-size: 12px; } }
@media (max-width:480px) { .vid-hero__title { font-size: 30px !important; } .vid-hero__subtitle { font-size: 14px !important; } .vid-hero__chips { grid-template-columns: 1fr; gap: 10px; } .vid-hero__chip { padding: 14px 16px; } }


/* --- БЛОК 2: ВИДЕОГАЛЕРЕЯ --- */
.vid-gallery { padding: 80px 0; background: linear-gradient(180deg, #F9F7F4 0%, #fff 100%); }
.vid-gallery__title { font-size: 56px !important; font-weight: 800 !important; color: #1A676B !important; text-align: center; line-height: 1.15; margin-bottom: 8px; }
.vid-gallery__title-accent { color: #E8A849 !important; }
.vid-gallery__subtitle { font-size: 22px !important; font-weight: 400; color: #3D4F5F; text-align: center; max-width: 700px; margin: 0 auto 40px; line-height: 1.5; }
.vid-gallery__count { font-size: 15px !important; color: rgba(61,79,95,0.6); margin: 0 0 24px; }

/* Фильтр */
.vid-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.vid-filter__btn {
  display: inline-flex !important;
  align-items: center !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  border: 2px solid #1A676B !important;
  color: #1A676B !important;
  background: #fff !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  outline: none !important;
  box-shadow: none !important;
  line-height: 1.4 !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}
.vid-filter__btn:hover {
  background: rgba(26,103,107,0.08) !important;
  color: #1A676B !important;
  border-color: #1A676B !important;
}
.vid-filter__btn:focus,
.vid-filter__btn:active {
  background: #fff !important;
  color: #1A676B !important;
  border-color: #1A676B !important;
  outline: none !important;
  box-shadow: none !important;
}
.vid-filter__btn--active,
.vid-filter__btn--active:hover,
.vid-filter__btn--active:focus,
.vid-filter__btn--active:active {
  background: #1A676B !important;
  color: #fff !important;
  border-color: #1A676B !important;
  box-shadow: 0 4px 16px rgba(26,103,107,0.3) !important;
}

/* Сетка */
.vid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Карточка */
.vid-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 6px 28px rgba(26,103,107,0.15), 0 2px 6px rgba(0,0,0,0.08); border: 1px solid rgba(26,103,107,0.22); transition: box-shadow 0.4s, transform 0.4s; }
.vid-card:hover { box-shadow: 0 14px 44px rgba(26,103,107,0.22), 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-4px); }
.vid-card[hidden] { display: none !important; }

/* Плеер (общий контейнер) */
.vid-card__player { position: relative; aspect-ratio: 16/9; background: #0a0a0a; overflow: hidden; }
.vid-card__player video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-card__player iframe { width: 100%; height: 100%; border: none; display: block; position: absolute; inset: 0; }

/* Rutube заглушка с poster-изображением */
.vid-card__poster { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%); cursor: pointer; transition: background 0.3s; }
.vid-card__poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s; }
.vid-card__poster::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.2); transition: background 0.3s; z-index: 1; }
.vid-card__poster:hover::after { background: rgba(0,0,0,0.35); }
.vid-card__poster:hover .vid-card__play { transform: scale(1.1); }

.vid-card__play {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.9) !important;
  border: none !important;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 0 !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  position: relative; z-index: 2;
}
.vid-card__play svg { width: 24px; height: 24px; color: #1A676B !important; margin-left: 3px; fill: #1A676B !important; stroke: none !important; }
.vid-card__play:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.vid-card__play:focus,
.vid-card__play:active {
  background: rgba(255,255,255,0.9) !important;
  outline: none !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
}

/* mp4 overlay (единый стиль с Rutube) */
.vid-card__mp4-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; background: rgba(0,0,0,0.15); transition: background 0.3s; }
.vid-card__mp4-overlay:hover { background: rgba(0,0,0,0.25); }
.vid-card__mp4-overlay:hover .vid-card__play { transform: scale(1.1); }

/* Тело карточки */
.vid-card__body { padding: 20px; }
.vid-card__badge { display: inline-block; font-size: 12px !important; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.vid-card__badge--presentation { background: rgba(26,103,107,0.1) !important; color: #155457 !important; }
.vid-card__badge--instruction { background: rgba(232,168,73,0.15) !important; color: #b07a24 !important; }
.vid-card__title { font-size: 17px !important; font-weight: 700 !important; color: #1A676B !important; line-height: 1.4; margin: 0 !important; }


/* ===== ADAPTIVE: Видеогалерея ===== */
@media (max-width: 1024px) {
  .vid-gallery { padding: 60px 0; }
  .vid-gallery__title { font-size: 42px !important; }
  .vid-gallery__subtitle { font-size: 20px !important; margin-bottom: 32px; }
  .vid-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
  .vid-gallery { padding: 48px 0; }
  .vid-gallery__title { font-size: 32px !important; }
  .vid-gallery__subtitle { font-size: 17px !important; margin-bottom: 24px; }
  .vid-filter { gap: 8px; }
  .vid-filter__btn { padding: 8px 16px !important; font-size: 13px !important; }
  .vid-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .vid-card { border-radius: 16px; }
  .vid-card__body { padding: 16px; }
  .vid-card__title { font-size: 16px !important; }
  .vid-card__play { width: 52px; height: 52px; }
  .vid-card__play svg { width: 20px; height: 20px; }
}

@media (max-width: 480px) {
  .vid-gallery__title { font-size: 26px !important; }
  .vid-gallery__subtitle { font-size: 16px !important; }
  .vid-filter__btn { padding: 7px 14px !important; font-size: 12px !important; }
  .vid-grid { grid-template-columns: 1fr; gap: 16px; }
  .vid-card__body { padding: 14px 16px; }
  .vid-card__title { font-size: 15px !important; }
}


/* --- Кнопка «Наверх» — сдвиг от Живосайта --- */
.scroll-top { right: 100px !important; }
@media (max-width: 768px) { .scroll-top { right: 80px !important; } }
