

/* Start:/local/components/tranzit/catalog.detail/templates/.default/style.css?17665847788056*/
.car-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.car-page h1 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.car-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.car-image-section {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.car-image-main {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.car-image-main img {
    width: 100%;
    height: auto;
    display: block;
}

.car-thumbnails {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.car-thumbnails img {
    width: 30%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.car-thumbnails img:hover {
    transform: scale(1.05);
}

.car-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.car-details,
.benefits {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.car-details h2,
.benefits h2 {
    font-size: 25px;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.car-specs {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 20px;
}

.car-specs p {
    display: contents;
}

.car-specs span:first-child {
    font-weight: 600;
    color: #333;
    padding-right: 10px;
}

.car-specs span:last-child {
    color: #777;
    opacity: 0.85;
    text-align: center;
}

.car-price {
    font-size: 20px;
    color: #555;
    margin: 25px 0 20px;
}

.car-price strong {
    font-size: 30px;
    font-weight: 700;
    color: #333;
}

.btn-get-car {
    display: block;
    background: #FFC107;
    color: #000;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
    font-size: 16px;
}

.btn-get-car:hover {
    background: #e6b000;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-svg {
    width: 50px;
    height: 50px;
    background: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
}

.benefit-text {
    font-size: 18px;
    line-height: 1.5;
}

.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

#modalImage {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.4);
}

.prev { left: 20px; }
.next { right: 20px; }

/* === Блок описания — ВНЕ контейнера, на всю ширину === */
.car-description {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-top: 30px;
}

.car-description p {
    margin: 0 0 15px;
}

.car-description p:last-child {
    margin-bottom: 0;
}

/* === АДАПТИВ ДЛЯ МОБИЛЬНЫХ (до 968px) === */
@media (max-width: 968px) {
    .car-page {
        padding: 15px;
        margin: 15px auto;
    }

    .car-page h1 {
        font-size: 24px;
        text-align: center;
    }

    .car-container {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .car-image-section,
    .car-info-section {
        flex: none;
        width: 100%;
    }

    .car-thumbnails {
        justify-content: center;
    }

    .car-thumbnails img {
        min-width: 80px;
    }

    .car-details h2,
    .benefits h2 {
        text-align: center;
    }

    .car-price {
        text-align: center;
        font-size: 18px;
        margin: 20px 0;
    }

    .car-price strong {
        font-size: 24px;
    }

    .btn-get-car {
        padding: 14px;
        font-size: 16px;
    }

    .benefit-svg {
        width: 40px;
        height: 40px;
        padding: 6px;
    }

    .benefit-text {
        font-size: 16px;
    }

    .car-description {
        padding: 20px;
        font-size: 16px;
        line-height: 1.5;
    }
}

/* === Адаптация для средних экранов (969px – 1350px) === 
@media (min-width: 969px) and (max-width: 1350px) {
    .car-container {
        display: grid;
        grid-template-columns: 60% 1fr;
        grid-template-rows: auto 1fr; /* вторая строка — растягивается */
        grid-template-areas:
      "image-main details"
      "thumbnails benefits";
        gap: 20px 30px;
        margin-bottom: 30px;
        align-items: start;
    }

    .car-image-section,
    .car-info-section {
        display: contents;
    }

    .car-image-main-wrapper {
        grid-area: image-main;
    }

    .car-thumbnails-wrapper {
        grid-area: thumbnails;
        display: flex;
        flex-direction: column;
    }

    .car-thumbnails {
        flex: 1;
        display: flex;
        gap: 10px;
        justify-content: space-between;
    }

    .car-thumbnails img {
        width: 30%;
        object-fit: cover;
        border-radius: 8px;
        cursor: pointer;
        transition: transform 0.2s;
        flex-shrink: 0;
    }

    .car-details-wrapper {
        grid-area: details;
    }

    .benefits-wrapper {
        grid-area: benefits;
        display: flex;
        flex-direction: column;
        height: 100%; /* растягиваем по высоте строки */
    }

    .car-details,
    .benefits {
        background: white;
        padding: 25px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .benefits {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 10px;
        padding: 10px;
        flex: 1;
    }

    .benefit-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        flex: 1;
        min-width: 0; /* важно для корректного сжатия */
        margin-bottom: 0;
    }

    .benefit-svg {
        width: 30px;
        height: 30px;
        padding: 6px;
        background: #000;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .benefit-text {
        font-size: 16px;
        line-height: 1.4;
        color: #333;
        margin: 0;
        overflow: hidden;
        /* УБРАНО: -webkit-line-clamp — чтобы текст не обрезался */
        /* Вместо этого — разрешаем перенос и растягиваем по высоте */
    }

    .car-page h1 { font-size: 26px; }
    .car-specs { font-size: 20px; gap: 20px; }
    .car-price { font-size: 25px; margin: 15px 0; }
    .car-price strong { font-size: 40px; }
    .btn-get-car {
        font-size: 20px;
        padding: 12px 16px;
    }
}*/
/* End */


/* Start:/local/components/tranzit/our.cars/templates/.default/style.css?17395225652021*/
.section.our-cars {
  background: #f0f0f0;
}

@media (max-width: 440px) {
  .section.our-cars {
    gap: 16px;
  }
}
.responsive-block {
  width: 1200px; /* Ширина по умолчанию для ПК */
  height: 50px; /* Высота по умолчанию для ПК */
  overflow: hidden; /* Обрезаем лишнее содержимое */
  position: relative; /* Для позиционирования видео */
}

.responsive-block video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Масштабирование видео */
}

/* Скрываем все видео по умолчанию */
.responsive-block video {
  /*display: none;*/
}

/* Видео для ПК */
.video-pc {
  display: block; /* Показываем видео для ПК */
}
.video-tablet {
  display: none; /* Скрываем видео для планшета */
}
.video-mobile {
  display: none; /* Скрываем видео для телефона */
}
/* Видео для планшета */
@media (max-width: 1024px) {
  .responsive-block {
    width: 100%; /* Ширина для планшета */
    height: 40px; /* Высота для планшета */
  }

  .video-pc {
    display: none; /* Скрываем видео для ПК */
  }
  .video-pc {
    display: none; /* Скрываем видео для ПК */
  }

  .video-mobile {
    display: block; /* Показываем видео для планшета */
  }
}

/* Видео для телефона */
@media (max-width: 440px) {
  .responsive-block {
    width: 100%; /* Ширина для телефона */
    height: 20px; /* Высота для телефона */

  }

  .video-tablet {
    display: none; /* Скрываем видео для планшета */
  }
  .video-pc {
    display: none; /* Скрываем видео для ПК */
  }

  .video-mobile {
    display: block; /* Показываем видео для телефона */
  }
}
/* End */


/* Start:/local/templates/taxi/components/bitrix/catalog.section/main/style.css?17616563184392*/
.main__banners-items {
  position: relative;
}

/* Карточка автомобиля */
.car-card {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

.car-card__image {
  width: 100%;
  height: 286px;
  overflow: hidden;
}

.car-card__image-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Информация о карточке */
.car-card__info {
  padding: 10px 5px;
  flex: 1;
}

.car-card__title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 8px;
}

.car-card__price {
  font-size: 26px;
  color: #00980c;
  font-weight: 400;
}

/* Кнопки */
.car-card__buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 30px;
}

.car-card__button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: 700;
}

.car-card__button--details {
  background-color: #7987e6; /* Фиолетовый цвет */
  color: #fff;
}

.car-card__button--details:hover {
  background-color: #f7d904;
}

.car-card__button--rent {
  background-color: #fff;
  color: #000000;
  border: 1px solid #7987e6;
}

.car-card__button--rent:hover {
  background-color: #f7d904;
}

.car-popup {
  /*width: 1200px;
  height: 624px;*/
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.car-popup__slider {
  width: 560px;
  position: relative;
}


.car-slide {
  width: 560px;
  height: 560px;
}

.car-popup__description {
  flex: 1;
  min-width: 200px;
}

@media (max-width: 1024px) {
  .car-popup__slider {
    width: 87vw;
  }

  .car-popup__description {
    width: 80vw;
    flex: unset;
  }

  .fancybox__content {
    padding: 16px;
  }
  .car-slide {
    width: 360px;
    height: 360px;
  }
  .swiper--second {
    right: 0px;
  }
}


.car-popup-name {
  font-weight: 700;
  font-family: 'TildaSans';
  font-size: 24px;
  line-height: 1.35;
  color: #000000;
  margin-bottom: 18px;
}

.car-popup-price {
  color: #00980c;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.35;
}

.car-popup-buttons {
  margin-bottom: 30px;
  margin-top: 20px;
  display: flex;
}

.car-popup-button {
  color: #ffffff;
  background-color: #7987e6;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  height: 45px;
  font-size: 14px;
  padding-left: 30px;
  padding-right: 30px;
  display: flex;
  font-family: 'TildaSans', Arial, sans-serif;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  font-weight: 700;
}

.description-title {
  color: rgb(242, 15, 15);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.55;
}

.car-popup-description {
  font-size: 14px;
  line-height: 1.55;
  font-weight: 300;
}

.car-thumbs {
  padding-top: 5px;
}

.car-thumbs .swiper-slide {
  width: 60px !important;
  height: 60px;
  background-repeat: no-repeat;
  background-size: cover;
}

.car-thumbs .swiper-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swiper--button {
  position: absolute;
  width: 30px;
  height: 30px;
  top: 44%;
  z-index: 11;
  border-radius: 100px;
  background-color: rgb(255, 255, 255);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper--first {
  left: 30px;
  transform: rotate(180deg);
}

.swiper--second {
  right: 30px;
}

.swiper--button svg {
  width: 7px;
}

.swiper-slide-thumb-active {
  border: 2px solid rgba(0,0,0,.15);
}

.swiper--button_first-out {
  left: -60px;
}

.swiper--button_second-out {
  right: -60px;
}

/*адаптив для карточек*/
@media (max-width: 1200px) {
  .swiper--button_first-out {
    left: 0;
  }

  .swiper--button_second-out {
    right: 0;
  }

  .main__banners-items {
    padding: 0 75px;
  }
}

@media (max-width: 440px) {
  .swiper--button_first-out {
    left: 16px;
  }

  .swiper--button_second-out {
    right: 16px;
  }

  .main__banners-items {
    padding: 0;
  }
  .swiper--button {
    top: 33%;
  }
  .swiper--second {
    right: 0px;
  }
  .swiper--first {
    left: 0px;
  }
}

/*
@media (max-width: 480px) {
    .car-card {
        width: 360px;
    }
.swiper--button_second-out {
    right: 15px;
}
.swiper--button_first-out {
    left: 1px;
}
.swiper-android .swiper-slide, .swiper-ios .swiper-slide, .swiper-wrapper {
    transform: translate3d(5px, 0, 0);
}
}*/

/* End */
/* /local/components/tranzit/catalog.detail/templates/.default/style.css?17665847788056 */
/* /local/components/tranzit/our.cars/templates/.default/style.css?17395225652021 */
/* /local/templates/taxi/components/bitrix/catalog.section/main/style.css?17616563184392 */
