/**
 * Кастомные стили только для dev.интерсервис24.рф
 * Подключается автоматически через atv_utv_print_custom_styles()
 */

/* Общий тёмный фон всей страницы */
body.atv-utv--dev {
  background-color: #2b2b2b;
  color: #fff;
}

/* Отступ под фиксированную шапку ATV */
.atv-utv--dev .atv-header + .banner-p,
.atv-utv--dev .banner-p:first-of-type {
  margin-top: 0;
}

.atv-utv--dev .banner-p--video {
  position: relative;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
}

@media screen and (min-width: 1025px) {
  .atv-utv--dev .banner-p--video {
    background-image: url("../img/content/dev/banner-desktop.jpg") !important;
  }
}

@media screen and (max-width: 480px) {
  .atv-utv--dev .banner-p--video {
    background-image: url("/local/templates/atv_utv-starta/assets/img/content/dev/banner_m.jpg") !important;
  }
}

.atv-utv--dev .banner-p--video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(29, 32, 34, 0.4), rgba(29, 32, 34, 0.4));
}

.atv-utv--dev .banner-p__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.atv-utv--dev .banner-p__video.is-ready {
  opacity: 1;
}

.atv-utv--dev .banner-p__sound-btn {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 62px;
  z-index: 2;
  transform: translateX(-50%);
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(29, 32, 34, 0.65);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.atv-utv--dev .banner-p__sound-btn:hover {
  background: rgba(29, 32, 34, 0.85);
}

.atv-utv--dev .banner-p__sound-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.atv-utv--dev .banner-p__sound-icon--on {
  display: none;
}

.atv-utv--dev .banner-p__sound-btn:not(.is-muted) .banner-p__sound-icon--off {
  display: none;
}

.atv-utv--dev .banner-p__sound-btn:not(.is-muted) .banner-p__sound-icon--on {
  display: block;
}

@media screen and (min-width: 1025px) {
  .atv-utv--dev .banner-p__sound-btn {
    display: flex;
  }
}

@media screen and (max-width: 1366px) {
  .atv-utv--dev .banner-p:not(.banner-p--video) {
    height: 76.5vh;
  }

  .atv-utv--dev .banner-p--video {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
  }
}

@media screen and (max-width: 1024px) {
  .atv-utv--dev .banner-p:not(.banner-p--video) {
    height: 54.5vh;
  }

  .atv-utv--dev .banner-p--video {
    height: min(54.5vh, 100dvh);
    max-height: 100dvh;
  }
  .atv-utv--dev .banner-p__video--desktop {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .atv-utv--dev .banner-p:not(.banner-p--video) {
    height: 50.2vh;
  }

  .atv-utv--dev .banner-p--video {
    height: min(50.2vh, 100dvh);
    max-height: 100dvh;
  }

  .atv-utv--dev .catalog-p__img {
    height: auto;
  }
}

@media screen and (max-width: 414px) {
  .atv-utv--dev .banner-p:not(.banner-p--video) {
    height: 60vh;
  }

  .atv-utv--dev .banner-p--video {
    height: min(60vh, 100dvh);
    max-height: 100dvh;
  }
}

.atv-utv--dev section[id] {
  scroll-margin-top: 100px;
}

/* Секции и подвал — без белых «вставок» из базового шаблона */
.atv-utv--dev .banner-p,
.atv-utv--dev .company-p,
.atv-utv--dev .catalog-p,
.atv-utv--dev .advantages-p,
.atv-utv--dev .news-p,
.atv-utv--dev .video-p,
.atv-utv--dev .certificates-p,
.atv-utv--dev .contacts-p,
.atv-utv--dev .footer {
  background-color: #2b2b2b;
  color: #fff;
}

/* Текст и ссылки на странице (кнопки .btn-p не трогаем) */
.atv-utv--dev h1,
.atv-utv--dev h2,
.atv-utv--dev h3,
.atv-utv--dev h4,
.atv-utv--dev p,
.atv-utv--dev li:not(.nav__menu-item),
.atv-utv--dev .wrap-title,
.atv-utv--dev .wrap-title .title-color {
  color: #fff;
}

/* Блок контактов — тёмный текст на белых карточках (ссылки наследуют color через currentColor) */
.atv-utv--dev .contacts-p__feedback,
.atv-utv--dev .contacts-p__info-wrap {
  color: #1c1c1c;
}

.atv-utv--dev .contacts-p__feedback h2,
.atv-utv--dev .contacts-p__info-wrap h2 {
  color: #000000;
}

.atv-utv--dev .contacts-p__feedback p,
.atv-utv--dev .contacts-p__info-wrap p,
.atv-utv--dev .contacts-p__feedback .h4,
.atv-utv--dev .contacts-p__info-wrap .h4 {
  color: inherit;
}

.atv-utv--dev .contacts-p .contacts-p__item--subtitle {
  color: #81898f;
}

/* Каталог: акцент BRCP в заголовке */
.atv-utv--dev .catalog-p .wrap-title .title-color {
  color: #d40000;
}

/* Каталог: скрыть «Показать ещё» */
.atv-utv--dev .catalog-p__more {
  display: none;
}

/* Каталог: карточки — отступы заголовка и кнопка сразу под ним */
.atv-utv--dev .catalog-p__info {
  gap: 0;
}

.atv-utv--dev .catalog-p__info > p.h3 {
  margin-top: 12px;
  margin-bottom: 12px;
}

.atv-utv--dev .catalog-p__info > p:not(.h3) {
  display: none;
}

.atv-utv--dev .catalog-p__info > .btn-p {
  margin-top: 0;
}

/* Полоса «официальный дилер» под баннером */
.atv-utv--dev .dealer-p {
  background-color: #c32f23;
  padding: 40px;
}

.atv-utv--dev .dealer-p .content_area {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.atv-utv--dev .dealer-p__text {
  margin: 0;
  width: 100%;
  font-family: "Bebas Neue Cyrillic", "Bebas Neue", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 56px;
  line-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
}

/* если визуальный редактор обернёт текст в <p> без класса */
.atv-utv--dev .dealer-p__text p {
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  text-transform: inherit;
}

@media screen and (max-width: 1366px) {
  .atv-utv--dev .dealer-p {
    padding: 20px 40px;
  }

  .atv-utv--dev .dealer-p__text {
    font-size: 46px;
  }
}

@media screen and (max-width: 1024px) {
  .atv-utv--dev .dealer-p {
    padding: 20px 60px;
  }

  .atv-utv--dev .dealer-p__text {
    font-size: 36px;
  }
}

@media screen and (max-width: 768px) {
  .atv-utv--dev .dealer-p {
    padding: 20px 40px;
  }

  .atv-utv--dev .dealer-p__text {
    font-size: 25px;
  }
}

@media screen and (max-width: 414px) {
  .atv-utv--dev .dealer-p {
    padding: 20px 16px;
  }

  .atv-utv--dev .dealer-p__text {
    font-size: 24px;
  }
}

/* Кнопка «Наверх» (как на основном шаблоне starta) */
.atv-utv--dev .up-btn {
  position: fixed;
  right: 20px;
  bottom: 120px;
  z-index: 100;
  min-width: 93px;
  width: auto;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background-color: hsla(0, 0%, 100%, 0.03);
  align-items: center;
  border: 1px solid #81898f;
  color: #484b4e;
  display: flex;
  justify-content: center;
  padding: 12px 18px;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.15s cubic-bezier(0.55, 0.085, 0.68, 0.53),
    visibility 0.15s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.atv-utv--dev .up-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.atv-utv--dev .up-btn.is-visible:hover {
  opacity: 0.85;
}

/* Футер: подпись «Разработка сайта:» */
.atv-utv--dev .footer__partner p {
  color: #81898f;
}

/* Блок «Новости» — по макету Figma */
.atv-utv--dev .news-p {
  padding-top: 80px;
}

@media screen and (min-width: 1367px) {
  .atv-utv--dev .news-p {
    padding-bottom: 80px;
  }
}

.atv-utv--dev .news-p__inner {
  display: flex;
  flex-direction: column;
  gap: 62px;
}

.atv-utv--dev .news-p__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.atv-utv--dev .news-p__head h2 {
  margin: 0;
  font-family: "Bebas Neue Cyrillic", "Bebas Neue", sans-serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 57.6px;
  text-transform: uppercase;
  color: #fff;
}

.atv-utv--dev .news-p__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.atv-utv--dev .news-p__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  padding: 10px;
  border: 0;
  background: #ee1b2d;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.atv-utv--dev .news-p__nav-btn:hover {
  opacity: 0.85;
}

.atv-utv--dev .news-p__nav-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

.atv-utv--dev .news-p__nav-icon {
  display: block;
  width: 25px;
  height: 25px;
}

.atv-utv--dev .news-p__slider {
  width: 100%;
  overflow: hidden;
}

/* Фолбэк до инициализации Swiper — сразу 4 карточки на десктопе */
.atv-utv--dev .news-p__slider:not(.swiper-initialized) .news-p__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}

.atv-utv--dev .news-p__slider:not(.swiper-initialized) .swiper-slide {
  width: auto !important;
  margin: 0 !important;
}

.atv-utv--dev .news-p__slider .swiper-slide {
  height: auto;
}

.atv-utv--dev .news-p__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  text-decoration: none;
  color: #fff;
}

.atv-utv--dev .news-p__item {
  height: auto;
}

.atv-utv--dev .news-p__image-wrapper {
  width: 100%;
  height: 186px;
  flex-shrink: 0;
  overflow: hidden;
  background: #1c1c1c;
}

.atv-utv--dev .news-p__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.atv-utv--dev .news-p__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.atv-utv--dev .news-p__date {
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
}

.atv-utv--dev .news-p__title {
  font-family: "Bebas Neue Cyrillic", "Bebas Neue", sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

.atv-utv--dev .news-p__text {
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

@media screen and (max-width: 1366px) {
  .atv-utv--dev .news-p__head h2 {
    font-size: 33.4px;
    line-height: 1;
  }

  .atv-utv--dev .news-p__nav {
    gap: 9px;
  }

  .atv-utv--dev .news-p__nav-btn {
    width: 34px;
    height: 34px;
    padding: 7.5px;
  }

  .atv-utv--dev .news-p__nav-icon {
    width: 19px;
    height: 19px;
  }

  .atv-utv--dev .news-p__image-wrapper {
    height: 160px;
  }
}

@media screen and (max-width: 1024px) {
  .atv-utv--dev .news-p__slider:not(.swiper-initialized) .news-p__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .atv-utv--dev .news-p__head h2 {
    font-size: 27.8px;
    line-height: 48px;
  }

  .atv-utv--dev .news-p__image-wrapper {
    height: 126px;
  }

  .atv-utv--dev .news-p__date,
  .atv-utv--dev .news-p__text {
    font-size: 16px;
  }

  .atv-utv--dev .news-p__title {
    font-size: 24px;
  }
}

@media screen and (max-width: 768px) {
  .atv-utv--dev .news-p__inner {
    gap: 30px;
  }

  .atv-utv--dev .news-p__slider:not(.swiper-initialized) .news-p__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .atv-utv--dev .news-p__image-wrapper {
    height: 226px;
    min-height: 226px;
  }
}

@media screen and (max-width: 414px) {
  .atv-utv--dev .news-p__slider:not(.swiper-initialized) .news-p__list {
    grid-template-columns: 1fr;
  }

  .atv-utv--dev .news-p__card {
    gap: 12px;
  }
}

/* Блок «Видео» */
.atv-utv--dev .video-p {
  padding-top: 80px;
}

@media screen and (min-width: 1367px) {
  .atv-utv--dev .video-p {
    padding-bottom: 80px;
  }
}

.atv-utv--dev .video-p__inner {
  display: flex;
  flex-direction: column;
  gap: 62px;
}

.atv-utv--dev .video-p__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.atv-utv--dev .video-p__head h2 {
  margin: 0;
  font-family: "Bebas Neue Cyrillic", "Bebas Neue", sans-serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 57.6px;
  text-transform: uppercase;
  color: #fff;
}

.atv-utv--dev .video-p__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.atv-utv--dev .video-p__nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  padding: 10px;
  border: 0;
  background: #ee1b2d;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.atv-utv--dev .video-p__nav-btn:hover {
  opacity: 0.85;
}

.atv-utv--dev .video-p__nav-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: default;
}

.atv-utv--dev .video-p__nav-icon {
  display: block;
  width: 25px;
  height: 25px;
}

.atv-utv--dev .video-p__slider {
  width: 100%;
  overflow: hidden;
}

.atv-utv--dev .video-p__slider:not(.swiper-initialized) .video-p__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}

.atv-utv--dev .video-p__slider:not(.swiper-initialized) .swiper-slide {
  width: auto !important;
  margin: 0 !important;
}

.atv-utv--dev .video-p__slider .swiper-slide {
  height: auto;
}

.atv-utv--dev .video-p__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}

.atv-utv--dev .video-p__card--no-video {
  cursor: default;
}

.atv-utv--dev .video-p__item {
  height: auto;
}

.atv-utv--dev .video-p__image-wrapper {
  position: relative;
  width: 100%;
  height: 324px;
  flex-shrink: 0;
  overflow: hidden;
  background: #1c1c1c;
}

.atv-utv--dev .video-p__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.atv-utv--dev .video-p__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  line-height: 0;
}

.atv-utv--dev .video-p__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.atv-utv--dev .video-p__date {
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
}

.atv-utv--dev .video-p__title {
  font-family: "Bebas Neue Cyrillic", "Bebas Neue", sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

.atv-utv--dev .catalog-p__character-item p {
  color: #000;
}

@media screen and (max-width: 1366px) {
  .atv-utv--dev .video-p__head h2 {
    font-size: 33.4px;
    line-height: 1;
  }

  .atv-utv--dev .video-p__nav {
    gap: 9px;
  }

  .atv-utv--dev .video-p__nav-btn {
    width: 34px;
    height: 34px;
    padding: 7.5px;
  }

  .atv-utv--dev .video-p__nav-icon {
    width: 19px;
    height: 19px;
  }

  .atv-utv--dev .video-p__image-wrapper {
    height: 260px;
  }
}

@media screen and (max-width: 1024px) {
  .atv-utv--dev .video-p__slider:not(.swiper-initialized) .video-p__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .atv-utv--dev .video-p__head h2 {
    font-size: 27.8px;
    line-height: 48px;
  }

  .atv-utv--dev .video-p__image-wrapper {
    height: 196px;
  }

  .atv-utv--dev .video-p__date {
    font-size: 16px;
  }

  .atv-utv--dev .video-p__title {
    font-size: 24px;
  }
}

@media screen and (max-width: 768px) {
  .atv-utv--dev .video-p__inner {
    gap: 30px;
  }

  .atv-utv--dev .video-p__slider:not(.swiper-initialized) .video-p__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .atv-utv--dev .video-p__image-wrapper {
    height: 189px;
    min-height: 189px;
  }
}

@media screen and (max-width: 414px) {
  .atv-utv--dev .video-p__slider:not(.swiper-initialized) .video-p__list {
    grid-template-columns: 1fr;
  }

  .atv-utv--dev .video-p__card {
    gap: 12px;
  }

  .atv-utv--dev .video-p__image-wrapper {
    height: 382px;
    min-height: 382px;
  }
}

/* Блок «Сертификаты» */
@media screen and (max-width: 1366px) {
  .atv-utv--dev .certificates-p {
    padding-top: 35px;
    padding-bottom: 78px;
  }
}

/* Блок «Преимущества» */
@media screen and (max-width: 1024px) {
  .atv-utv--dev .advantages-p {
    padding-top: 80px;
  }
}

/* Блок «О компании» */
@media screen and (max-width: 900px) {
  .atv-utv--dev .company-p__bottom {
    display: none;
  }
}
