

/* Start:/bitrix/templates/serptop/assets/styles/css/test-drive-new.css?17956829897352*/
/* Якорная навигация */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.hero-block__image--test-drive {
  object-position: 58% center;
}

/* Итоги тест-драйва */
.td-results {
  background: #f3f3f3;
}

.td-results__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.td-results__panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  background: #db5b36;
}

.td-results__title::after {
  background: #fff !important;
}

.td-results__description {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-family: "GilroyMedium";
  font-size: 18px;
  line-height: 1.3;
}

.td-results__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  margin-top: auto;
}

.td-results__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.td-results__fact {
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
}

.td-results__icon {
  display: block;
  width: 50px;
  height: 50px;
  margin-bottom: 24px;
  object-fit: contain;
  object-position: center;
}

.td-results__icon--cropped {
  padding: 4px;
}

.td-results__value {
  display: block;
  color: #000;
  font-family: "GilroyMedium";
  font-size: 48px;
  line-height: 0.9;
}

.td-results__caption {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.1;
}

/* Бренды и машины на трассе */
.td-vehicles {
  background: #f3f3f3;
}

.td-vehicles__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.td-vehicles__card {
  min-height: 260px;
  padding: 24px;
  background: #fff;
}

.td-vehicles__image-wrapper {
  width: 120px;
  max-width: 100%;
  height: 56px;
  margin-bottom: 40px;
}

.td-vehicles__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.td-vehicles__title {
  margin: 0;
  color: #000;
  font-family: "GilroyMedium";
  font-size: 20px;
  line-height: 1;
}

.td-vehicles__description {
  margin: 12px 0 0;
  color: #333;
  font-family: "GilroyMedium";
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Видео о тест-драйве */
.td-video {
  padding: 60px 0;
  background: #fff;
}

.td-video__player {
  position: relative;
}

.td-video__player::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.td-video__media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.td-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #db5b36;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease;
}

.td-video__play:hover {
  background: #c64e2c;
}

.td-video__play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.td-video__player--started::after,
.td-video__player--started .td-video__play {
  display: none;
}

/* Фотогалерея */
.td-gallery {
  --td-gallery-slide-width: min(1170px, calc(100vw - 60px));
  background: #f3f3f3;
}

.td-gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.td-gallery__title {
  margin-bottom: 0;
}

.td-gallery__slider {
  position: relative;
  margin-top: 28px;
}

.td-gallery__slide {
  position: relative;
  display: block;
  width: var(--td-gallery-slide-width);
  aspect-ratio: 3 / 2;
  opacity: 0.5;
  cursor: zoom-in;
  transition: opacity 0.3s ease;
}

.td-gallery__slide:focus-visible {
  outline: 2px solid #db5b36;
  outline-offset: -2px;
}

.td-gallery__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.td-gallery__counter {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: none;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-family: "GilroyMedium";
  font-size: 16px;
  line-height: 1.3;
  pointer-events: none;
}

.td-gallery .owl-item.center .td-gallery__slide {
  opacity: 1;
}

.td-gallery .owl-item.center .td-gallery__counter {
  display: block;
}

.td-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.td-gallery__arrow--prev {
  left: calc((100% - var(--td-gallery-slide-width)) / 2);
  transform: translate(-50%, -50%);
}

.td-gallery__arrow--next {
  right: calc((100% - var(--td-gallery-slide-width)) / 2);
  transform: translate(50%, -50%);
}

.td-gallery__arrow:hover {
  background: #f3f3f3;
}

.td-gallery__arrow:focus:not(:focus-visible) {
  outline: none;
}

.td-gallery__arrow:focus-visible {
  outline: 2px solid #db5b36;
  outline-offset: 3px;
}

.td-gallery__arrow img {
  display: block;
}

@media (min-width: 769px) {
  #join-form {
    scroll-margin-top: 160px;
  }

  #test-drive-video {
    /* Ещё 60px до заголовка даёт верхний padding секции. */
    scroll-margin-top: 100px;
  }

  .hero-block__image--test-drive {
    object-position: center;
  }
}

@media screen and (min-width: 993px) {
  .hero-block--test-drive {
    min-height: 602px;
  }
}

@media screen and (max-width: 992px) {
  .td-gallery {
    --td-gallery-slide-width: 84vw;
  }

  .td-gallery__arrow {
    display: none;
  }

  .td-gallery__counter {
    right: 12px;
    bottom: 12px;
  }

  .td-results__inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .td-vehicles__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .td-vehicles__card {
    min-height: 240px;
    padding: 20px;
  }

  .td-vehicles__image-wrapper {
    height: 64px;
    margin-bottom: 24px;
  }

  .td-vehicles__description {
    margin-top: 8px;
  }
}

@media screen and (max-width: 576px) {
  .td-gallery__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .td-gallery__counter {
    right: 8px;
    bottom: 8px;
    font-size: 15px;
  }

  .hero-block--test-drive .hero-block-content__buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .td-results__description,
  .td-results__caption {
    font-size: 15px;
  }

  .td-results__fact {
    padding: 16px;
  }

  .td-results__icon {
    width: 35px;
    height: 35px;
  }

  .td-results__icon--cropped {
    padding: 3px;
  }

  .td-results__value {
    font-size: 32px;
  }

  .td-vehicles__list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .td-vehicles__card {
    min-height: 0;
    padding: 16px;
  }

  .td-vehicles__image-wrapper {
    height: 56px;
    margin-bottom: 20px;
  }

  .td-vehicles__description {
    font-size: 15px;
  }

  .td-video {
    padding: 40px 0;
  }

  .td-video__play {
    width: 64px;
    height: 64px;
  }
}

/* End */
/* /bitrix/templates/serptop/assets/styles/css/test-drive-new.css?17956829897352 */
