

/* Start:/local/templates/main/css/video-reviews.css?179045822613802*/
/*
 * Видеообзоры (главная + /videoobzory/).
 * Подключается из video_new / video_list.
 * Карточка = background-image + .play до клика; <video>/<img> — absolute fill.
 * Высота карточек: aspect-ratio ниже (.videos-slider .item / .video-item).
 */

/* -------------------------------------------------------------------------- */
/* Базовый layout: слайдер, карточки, play; mobile — горизонтальный scroll       */
/* -------------------------------------------------------------------------- */

.videos-slider {
  margin: 0 -8px;
  position: relative;
  overflow: visible;
}
.videos-slider .item {
  border-radius: 9px;
  text-align: center;
  margin: 0 8px;
  height: auto;
  width: auto;
  aspect-ratio: 1080 / 1920;
  background-size: cover !important;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
/* ≥769: жёстко вернуть гориз. gap (slick margin 8+8 = 16px между карт.);
   mobile ≤768 ниже ставит margin:0 + flex gap. */
@media screen and (min-width: 769px) {
  .videos-slider {
    margin: 0 -8px;
  }
  .videos-slider .item {
    margin-left: 8px !important;
    margin-right: 8px !important;
  }
}

.video-section-mobile {
  display: none;
}
/* ≤768: ~47%/50% (−10% от 52/56); ~2 полные карточки + gap/peek. PC progress не трогаем. */
@media screen and (max-width: 768px) {
  .video-section {
    display: block;
  }
  .video-section-mobile {
    display: none;
  }
  .videos-slider .slider-nav,
  .videos-slider .dots-wrapper {
    display: none;
  }
  .videos-slider {
    margin: 0;
  }
  .videos-slider .slick-init {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .videos-slider .slick-init::-webkit-scrollbar {
    display: none;
  }
  .videos-slider .slick-init .item,
  .videos-slider .item {
    /* 2 карточки + gap 10px + лёгкий peek ≈47% */
    flex: 0 0 calc((100% - 10px) / 2 - 6px);
    width: calc((100% - 10px) / 2 - 6px);
    min-width: calc((100% - 10px) / 2 - 6px);
    max-width: calc((100% - 10px) / 2 - 6px);
    margin: 0;
    height: auto;
    aspect-ratio: 333 / 660;
  }
}
@media screen and (max-width: 650px) {
  .videos-slider .slick-init {
    gap: 8px;
  }
  .videos-slider .slick-init .item,
  .videos-slider .item {
    /* ~50%: две почти в полный рост рядом */
    flex: 0 0 calc((100% - 8px) / 2);
    width: calc((100% - 8px) / 2);
    min-width: calc((100% - 8px) / 2);
    max-width: calc((100% - 8px) / 2);
  }
}

.video-item,
.videos-grid .video-item {
  height: auto;
  aspect-ratio: 333 / 660;
  background-size: cover !important;
  border-radius: 5px;
  background-position: center !important;
  position: relative;
}
.video-item .play,
.videos-grid .video-item .play {
  display: flex;
  position: absolute;
  width: 50px;
  height: 50px;
  left: calc(50% - 25px);
  top: calc(50% - 25px);
  background: #00000090;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
.video-item .play:after,
.videos-grid .video-item .play:after {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzgiIGhlaWdodD0iMzgiIHZpZXdCb3g9IjAgMCAzOCAzOCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTM2LjUgMTguMTM0QzM3LjE2NjcgMTguNTE4OSAzNy4xNjY3IDE5LjQ4MTEgMzYuNSAxOS44NjZMMTEgMzQuNTg4NUMxMC4zMzMzIDM0Ljk3MzQgOS41IDM0LjQ5MjIgOS41IDMzLjcyMjRMOS41IDQuMjc3NTdDOS41IDMuNTA3NzcgMTAuMzMzMyAzLjAyNjY0IDExIDMuNDExNTRMMzYuNSAxOC4xMzRaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K");
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* -------------------------------------------------------------------------- */
/* UX-слой: tm-video-card, inline video, стрелки, progress, CTA, page grid     */
/* -------------------------------------------------------------------------- */

.tm-video-card {
  overflow: hidden;
  cursor: pointer;
  background-color: #000;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat;
  position: relative;
}
.tm-video-card .play {
  z-index: 2;
  pointer-events: none;
}
.videos-slider .item > video,
.videos-slider .item > img,
.videos-grid .video-item > video,
.videos-grid .video-item > img,
.video-reviews-grid .video-item > video,
.video-reviews-grid .video-item > img,
.tm-video-card > video,
.tm-video-card > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  pointer-events: none !important;
  z-index: 0;
  display: block;
  background: #000;
  border-radius: inherit;
}
/* Kept <video> while paused: frozen frame under .play (resume on card click) */
.tm-video-card > video.tm-inline-video {
  z-index: 1;
}
/* Playing: video on top with native controls (seek/volume) — pointer-events ON */
.tm-video-card.is-playing > video.tm-inline-video {
  pointer-events: auto !important;
  z-index: 3;
}
.tm-video-card.is-playing .play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* Paused / not playing: show .play affordance again over frozen frame */
.tm-video-card:not(.is-playing) .play {
  opacity: 1;
  visibility: visible;
}

/*
 * Стрелки videos-slider снаружи трека (как «Хиты»: .slider-nav_prev at -50px).
 * Цвет стрелки коричневый — на белом gutter белая из style.css не видна.
 * Hide prev/next на краях (slick-disabled), как hits.
 * Базовый .slider-nav (общий: салоны/контакты) остаётся в style.css.
 */
.videos-slider .slider-nav {
  width: 28px;
  height: 48px;
  background-size: 14px 26px;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='26' viewBox='0 0 14 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L13 13L1 25' stroke='%23847671' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  top: calc(50% - 24px);
  z-index: 2;
}
.videos-slider .slider-nav:hover {
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='26' viewBox='0 0 14 26' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L13 13L1 25' stroke='%235c514c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.videos-slider .slider-nav.nav_prev {
  left: -50px;
  transform: scaleX(-1);
}
.videos-slider .slider-nav.nav_next {
  right: -50px;
}
.videos-slider .slider-nav.slick-disabled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: default;
  background-image: none;
}
@media screen and (max-width: 1536px) {
  .videos-slider .slider-nav.nav_prev {
    left: -40px;
  }
  .videos-slider .slider-nav.nav_next {
    right: -40px;
  }
}
@media screen and (max-width: 991px) {
  .videos-slider .slider-nav {
    width: 24px;
    height: 40px;
    background-size: 12px 22px;
    top: calc(50% - 20px);
  }
  .videos-slider .slider-nav.nav_prev {
    left: -28px;
  }
  .videos-slider .slider-nav.nav_next {
    right: -28px;
  }
}
/* ≤768: стрелки display:none выше (mobile horizontal scroll) */

/* Шапка секции: только H2 (CTA «Все видео» — под каруселью, не справа). */
.video-section__head {
  display: block;
  margin-bottom: 16px;
}
.video-section__head h2 {
  margin: 0;
}

/* «Все видео» (≥9):
   desk — .showmore.wide ПОД слайдером (как «Все акции» / wide peach);
   mob  — unified pill ×1.15 снизу (≤768). */
.video-section__all-wrap--desk {
  display: block;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 0;
}
.video-section__all-wrap--mob {
  display: none;
}
.video-section__all--mob {
  display: none;
}
/* base .video-section__all — для mob pill (desk использует нативный .showmore.wide) */
.video-section__all {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 16px;
  line-height: 110%;
  font-family: inherit;
  color: var(--color-black, #423b38);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 3px;
  border: none;
  background: var(--color-orange, #fcd9c2);
  box-shadow: none;
  outline: none;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 0;
}
.video-section__all::after {
  content: none;
  display: none;
}
.video-section__all:hover,
.video-section__all:focus-visible {
  color: #fff;
  text-decoration: none;
  background: var(--color-red, #8c0014);
  transform: none;
  box-shadow: none;
  border-color: transparent;
}
.video-section__all:active {
  transform: none;
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  .video-section__all {
    transition: background 0.2s ease, color 0.2s ease;
  }
}

@media screen and (max-width: 768px) {
  .video-section__head {
    margin-bottom: 12px;
  }
  /* desk wide showmore — только ≥769 */
  .video-section__all-wrap--desk,
  .video-section__all--desk {
    display: none !important;
  }
  .video-section__all-wrap--mob {
    display: flex;
    justify-content: center;
    margin-top: 12px;
  }
  /* mob: fancy peach pill (как «Все бренды» база), padding/font ×1.15; без shine */
  .video-section__all--mob {
    display: inline-flex;
    overflow: hidden;
    isolation: isolate;
    /* база = компактный pill как «Все бренды» (8×14 / 13px / r4), затем ×1.15 */
    padding: calc(8px * 1.15) calc(14px * 1.15);
    font-size: calc(13px * 1.15);
    line-height: 1.2;
    letter-spacing: 0.01em;
    border-radius: 4px;
    border: 1.5px solid rgba(140, 0, 20, 0.38);
    background: linear-gradient(
      165deg,
      #ffe9da 0%,
      var(--color-orange, #fcd9c2) 42%,
      #f3c4a0 100%
    );
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.65) inset,
      0 2px 8px rgba(66, 59, 56, 0.1);
    transition:
      box-shadow 0.28s ease,
      background 0.3s ease,
      border-color 0.3s ease,
      color 0.22s ease;
  }
  .video-section__all--mob:hover,
  .video-section__all--mob:focus-visible {
    color: #fff;
    text-decoration: none;
    border-color: var(--color-red, #8c0014);
    background: linear-gradient(
      165deg,
      #a31024 0%,
      var(--color-red, #8c0014) 48%,
      #6a0010 100%
    );
    transform: none;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.14) inset,
      0 0 0 2px rgba(140, 0, 20, 0.1),
      0 4px 12px rgba(140, 0, 20, 0.22);
  }
  .video-section__all--mob::after {
    display: none; /* без shine на компактной */
  }
}

/*
 * PC status-strip (progress bar) для videos-slider — вместо нижних dots.
 * Indicator only: warm-grey track + brand-brown fill, growing from the left.
 * ≥769: bar ON, dots OFF. ≤768: bar OFF (сетка без slick; dots как раньше).
 */
.videos-progress {
  display: none;
  position: relative;
  /* Match the visible cards: .videos-slider has -8px side margins and each slide has 8px. */
  width: calc(100% - 16px);
  height: 5px;
  /* Tight under cards (~4–8px); desk CTA (.showmore.wide) ниже progress. */
  margin: 6px 8px 16px;
  background: #e8e4e1;
  border-radius: 3px;
  overflow: hidden;
  pointer-events: none;
}
.videos-progress__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: #847671;
  border-radius: 3px;
  transition: width var(--videos-progress-duration, 500ms) var(--videos-progress-ease, ease);
}
@media screen and (min-width: 769px) {
  .videos-slider.has-videos-progress .videos-progress {
    display: block;
  }
  .videos-slider.has-videos-progress .dots-wrapper,
  .videos-slider.has-videos-progress .slick-dots {
    display: none !important;
  }
}
@media screen and (max-width: 768px) {
  .videos-progress {
    display: none !important;
  }
}

/* Страница /videoobzory/ */
.video-reviews-page {
  padding-bottom: 40px;
}
.video-reviews-page h1 {
  margin-bottom: 24px;
}
.video-reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 16px;
}
.video-reviews-card .video-item {
  cursor: pointer;
  width: 100%;
}
.video-reviews-title {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--color-lowgrey, #3a3a3a);
}

@media screen and (max-width: 1280px) {
  .video-reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .video-reviews-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 5px;
  }
  .video-reviews-title {
    font-size: 12px;
  }
}
@media screen and (max-width: 480px) {
  .video-reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* End */
/* /local/templates/main/css/video-reviews.css?179045822613802 */
