.body-no-scroll {
  overflow-y: scroll !important;
  position: fixed;
  width: 100%;
  top: calc(-1* var(--scroll-position));
}

.asyncGallery {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  z-index: 11111;
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.84);
  transition: opacity 200ms, visibility 200ms;
}

.asyncGallery.is-visible {
  opacity: 1;
  visibility: visible;
}

.asyncGallery__Item {
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transform: translate(-50%, -50%);
  transition: opacity 200ms, visibility 200ms;
}

.asyncGallery__Item.is-visible {
  opacity: 1;
  visibility: visible;
}

.asyncGallery__ItemImage img {
  max-height: 80vh;
  display: block;
}

.asyncGallery__ItemDescription,
.asyncGallery__Loader {
  color: #fff;
}

.asyncGallery__Loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  color: #fff;
  z-index: 100;
}

.asyncGallery__Loader.is-visible {
  display: block;
}

.asyncGallery button {
  background-color: transparent;
  border: 0;
  outline: 0;
  padding: 0;
  font-size: 0;
  cursor: pointer;
}

.asyncGallery__Close {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 30px;
  height: 30px;
  z-index: 1000;
  background-repeat: no-repeat;
  background-size: 30px 30px;
  background-image: url("data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNTEycHgiIHZlcnNpb249IjEuMSIgaGVpZ2h0PSI1MTJweCIgdmlld0JveD0iMCAwIDY0IDY0IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA2NCA2NCI+CiAgPGc+CiAgICA8cGF0aCBmaWxsPSIjRkZGRkZGIiBkPSJNMjguOTQxLDMxLjc4NkwwLjYxMyw2MC4xMTRjLTAuNzg3LDAuNzg3LTAuNzg3LDIuMDYyLDAsMi44NDljMC4zOTMsMC4zOTQsMC45MDksMC41OSwxLjQyNCwwLjU5ICAgYzAuNTE2LDAsMS4wMzEtMC4xOTYsMS40MjQtMC41OWwyOC41NDEtMjguNTQxbDI4LjU0MSwyOC41NDFjMC4zOTQsMC4zOTQsMC45MDksMC41OSwxLjQyNCwwLjU5YzAuNTE1LDAsMS4wMzEtMC4xOTYsMS40MjQtMC41OSAgIGMwLjc4Ny0wLjc4NywwLjc4Ny0yLjA2MiwwLTIuODQ5TDM1LjA2NCwzMS43ODZMNjMuNDEsMy40MzhjMC43ODctMC43ODcsMC43ODctMi4wNjIsMC0yLjg0OWMtMC43ODctMC43ODYtMi4wNjItMC43ODYtMi44NDgsMCAgIEwzMi4wMDMsMjkuMTVMMy40NDEsMC41OWMtMC43ODctMC43ODYtMi4wNjEtMC43ODYtMi44NDgsMGMtMC43ODcsMC43ODctMC43ODcsMi4wNjIsMCwyLjg0OUwyOC45NDEsMzEuNzg2eiIvPgogIDwvZz4KPC9zdmc+Cg==");
}

.asyncGallery__Counter {
  position: absolute;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  right: 40px;
  bottom: 40px;
}

.asyncGallery__Dots {
  position: absolute;
  left: 50%;
  bottom: 40px;
  display: flex;
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
  list-style-type: none;
  z-index: 1000;
}

.asyncGallery__Dots button {
  padding: 0;
  width: 10px;
  height: 10px;
  background-color: #fff;
  border: 0;
  outline: 0;
  border-radius: 50%;
}

.asyncGallery__Dots li {
  opacity: 0.2;
  transition: opacity 200ms;
}

.asyncGallery__Dots li+li {
  margin-left: 10px;
}

.asyncGallery__Dots li.is-active {
  opacity: 1;
}

.asyncGallery__Next,
.asyncGallery__Prev {
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  z-index: 1000;
  transition: transform 200ms, opacity 200ms;
  transform: translateY(-50%);
}

.asyncGallery__Next:disabled,
.asyncGallery__Prev:disabled {
  opacity: 0.2;
  cursor: default;
}

.asyncGallery__Next:before,
.asyncGallery__Prev:before {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  background-image: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 129 129' xmlns:xlink='http://www.w3.org/1999/xlink' enable-background='new 0 0 129 129'%3E%3Cg%3E%3Cpath d='m40.4,121.3c-0.8,0.8-1.8,1.2-2.9,1.2s-2.1-0.4-2.9-1.2c-1.6-1.6-1.6-4.2 0-5.8l51-51-51-51c-1.6-1.6-1.6-4.2 0-5.8 1.6-1.6 4.2-1.6 5.8,0l53.9,53.9c1.6,1.6 1.6,4.2 0,5.8l-53.9,53.9z' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E%0A");
  width: 30px;
  height: 30px;
  background-repeat: no-repeat;
  background-size: 30px 30px;
}

.asyncGallery__Next {
  right: 40px;
}

.asyncGallery__Next:hover {
  transform: translateX(2px) translateY(-50%);
}

.asyncGallery__Next:before {
  transform: translate3d(-50%, -50%, 0);
}

.asyncGallery__Prev {
  left: 40px;
}

.asyncGallery__Prev:hover {
  transform: translateX(-2px) translateY(-50%);
}

.asyncGallery__Prev:before {
  transform: translate3d(-50%, -50%, 0) scale(-1);
}

/* DEMO */

@media screen and (max-width: 768px) {
  .asyncGallery__Close {
    top: 15px;
    right: 15px;
    width: 20px;
    height: 20px;
    background-size: 20px;
  }

  .asyncGallery__Dots {
    bottom: 15px;
  }

  .asyncGallery__Counter {
    right: 15px;
    bottom: 15px;
    font-size: 12px;
  }

  .asyncGallery__Item {
    width: 100%;
  }

  .asyncGallery__ItemImage img {
    max-height: none;
    max-width: 100%;
  }

  .asyncGallery__ItemDescription {
    padding: 0 20px;
  }

  .asyncGallery__Next,
  .asyncGallery__Prev {
    display: none;
  }
}

h1 {
  font-size: 32px;
  font-weight: 900;
  color: #F9F9F9;
  margin-bottom: 24px !important;
}

@media (max-width: 1252px) {
  h1 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 24px !important;
  }
}

@media (max-width: 960px) {
  h1 {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 16px !important;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 16px !important;
  }
}

h2 {
  font-size: 24px !important;
  font-weight: 700 !important;
  margin-bottom: 24px !important;
}

@media (max-width: 877px) {
  h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
  }
}

@media (max-width: 767px) {
  h2 {
    display: none;
  }
}

.car-wp .goal-btn {
  padding: 24px 32px;
  max-width: 217px;
  margin-top: 0px !important;
}

@media (max-width: 869px) {
  .goal-btn {
    font-size: 12px !important;
  }
}

@media (max-width: 767px) {
  .car-wp .goal-btn {
    font-size: 14px !important;
  }
}

.car-wp__button-contact {
  display: flex;
  align-items: center;
  margin-top: 32px;
}

.car-wp__button-contact>*:not(:last-child) {
  margin-right: 12px;
}

.car-card {
  margin-top: 20px;
}

@media (max-width: 767px) {
  .car-wp__button-contact>*:not(:last-child) {
    font-size: 16px !important;
    padding-block: 15px !important;
}

  .car-card {
    margin-bottom: 40px;
  }
}

.car-wp {
  margin-left: 50px;
}

@media (max-width: 767px) {
  .car-wp {
    margin-left: 0px;
  }
}

.car-wp a {
  background-color: #f8f8f8;
  padding: 20px;
  border-radius: 15px;
  transition: background-color 0.3s ease-in-out;
  text-align: center;
}



.car-wp a:hover {
  background-color: #ededed;
  transition: background-color 0.3s ease-in-out;
}


.car-chara .d-flex {
  margin-bottom: 12px;
}

.car-chara .d-flex:last-child {
  margin-bottom: 0px;
}

.car-wp .car-info {
  width: 200px;
  margin-right: 32px;
}

@media (max-width: 380px) {
  .car-wp .car-info {
    margin-right: 0;
    width: 150px;
  }
}

.car-wp .car-info p {
  font-size: 16px;
  font-weight: 400;
  color: #757575;
}

@media (max-width: 877px) {
  .car-wp .car-info p {
    font-size: 16px;
    font-weight: 400;
  }
}

.car-wp .car-info p:last-child {
  margin-bottom: 0px;
}

.car-wp .car-value {
  font-size: 16px;
  font-weight: 400;
  color: #F9F9F9;
  margin-bottom: 12px;
}

@media (max-width: 877px) {
  .car-wp .car-value {
    font-size: 16px;
    font-weight: 600;
  }
}

.car-wp .car-value:last-child {
  margin-bottom: 0px;
}

.car-wp .car-price {
  font-size: 24px;
  font-weight: 700;
  color: #F9F9F9;
  margin-top: 24px;
  margin-bottom: 8px;
}

@media (max-width: 877px) {
  .car-wp .car-price {
    margin-top: 24px;
    margin-bottom: 24px;
  }
}

@media (max-width: 767px) {
  .car-wp a {
    height: 62px;
    width: 62px;
  }

  .car-wp .car-price {
    margin-bottom: 0px;
  }
}

#container {
  max-width: 100%;
}

.main-slides {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.main-slides img {
  width: 100%;
  border-radius: 16px;
  transition: all 0.3s ease-out 0s;
  height: 100%;
}

.main-slides>.gallery-slide {
  display: none;
}

.main-slides>.gallery-slide:nth-child(1) {
  display: block;
}

.previous-slide-button,
.next-slide-button,
.slides-counter {
  display: none !important;
}

.thumbnail-slides {
  margin-top: 16px;
  padding: 0;
  text-align: left;
  position: relative;
}

/* Обертка для навигации на десктопе */
.thumbnail-navigation {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Навигационные кнопки */
.thumbnail-nav {
  background: rgba(40, 40, 40, 0.8);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F9F9F9;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  flex-shrink: 0;
}

.thumbnail-nav:hover:not(:disabled) {
  background: #E42320;
  transform: scale(1.1);
}

.thumbnail-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.thumbnail-nav:disabled:hover {
  background: rgba(40, 40, 40, 0.8);
}

.thumbnail-nav i {
  font-size: 14px;
}

/* Обертка для миниатюр */
.thumbnail-slides-wrapper {
  display: flex;
  overflow: hidden;
  flex: 1;
  transition: transform 0.3s ease;
}

/* Стили для миниатюр */
.thumbnail-slides .thumb-item {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  margin-right: 8px;
  flex-shrink: 0;
}

.thumbnail-slides .thumb-item:hover {
  transform: scale(1.05);
}

.thumbnail-slides .thumb-item.active {
  border-color: #E42320;
  transform: scale(1.1);
}

/* Мобильная версия - простая прокрутка */
@media (max-width: 768px) {
  .thumbnail-slides {
    overflow-x: auto;
    padding: 8px 0;
  }
  
  .thumbnail-navigation {
    display: block;
  }
  
  .thumbnail-nav {
    display: none;
  }
  
  .thumbnail-slides-wrapper {
    overflow-x: auto;
    padding-bottom: 8px;
  }
  
  .thumbnail-slides .thumb-item {
    margin-right: 8px;
    width: 80px;
    height: 60px;
  }
}

.car-promotion {
  font-size: 16px;
  font-weight: 400;
  color: #757575;
  margin-bottom: 0px;
}

@media (max-width: 767px) {
  .car-promotion {
    margin-bottom: 24px;
  }
}

@media (max-width: 1400px) {
  #rec_cars .col {
    margin-right: 15px;
  }
}

#car-card {
  padding-top: 65px;
  font-family: 'Stolzl Light' !important;
}

#car-card #bread {
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  color: #9F9F9F;
}

#car-card h1 {
  font-family: 'Stolzl Regular' !important;
  font-size: 32px;
  font-weight: 700;
  line-height: 38px;
  color: #F9F9F9;
  margin-bottom: 24px;
}

#car-card .slick-slide img {
  transition: width 0.5s;
  height: auto;
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
}

#car-card .slick-list img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

#car-card ul {
  padding: 0;
}

#car-card .slick-dots li {
  width: 25%;
  object-fit: cover;
  display: inline-block;
  margin: 0;
  height: auto;
  padding-top: 16px;
  padding-right: 16px;

}

#car-card .slick-dots li img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  transition: 0.5s;
  padding: 0;
}

#car-card .slick-dots li:hover img {
  cursor: pointer;
}

#car-card .slick-dots {
  position: relative;
  text-align: left;
  bottom: 0;
}

#car-card #info-car {
  padding-left: 80px;
}

#car-card #info-car p {
  font-family: 'Stolzl Regular' !important;
  font-size: 32px;
  font-weight: 700;
  line-height: 38px;
  color: #F9F9F9;
}

#car-card #info-car .details {
  padding-top: 40px;
}

#car-card #info-car .details div:nth-child(odd) {
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  color: #9F9F9F;
  padding-top: 12px;
}

#car-card #info-car .details div:nth-child(even) {
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  color: #F9F9F9;
  padding-top: 12px;
}

#car-card #info-car button {
  font-family: 'Stolzl Regular' !important;
  margin-top: 40px;
}

#car-card #car-container h3 {
  font-family: Stolzl;
  font-size: 32px;
  font-weight: 700;
  line-height: 38px;
  font-family: 'Stolzl Regular' !important;
  color: #F9F9F9;
  margin-bottom: 24px;
}

@media(max-width:1200px) {
  #car-card {
    margin-top: 42.5px;
  }

  #car-card #info-car {
    padding-left: 12px;
    padding-top: 24px;
  }

  #car-card #info-car .btn {
    width: 100%;
  }
}

@media(max-width:700px) {
  #car-card .slick-dots li {
    width: 33.3%;
  }
}

.btn-car {
  height: 44px;
  margin-top: 16px;
  border-radius: 12px;
  transition: .25s;
  background-color: #464646;
}

.btn-car a, .btn-car button {
  font-size: 16px;
  font-weight: 500;
  line-height: 28px;
  color: #F9F9F9;
  border-radius: 12px;
}

.btn-car:hover {
background-color: #E42320;
  color: #F9F9F9;
transition: .25s;
}

/* Стили для мини-фото слайдера */
.thumbnail-slides-container {
    margin-top: 15px;
}


.thumbnail-image {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail-image:hover {
    border-color: rgba(228, 35, 32, 0.5);
}

.thumbnail-image.active {
    border-color: #E42320;
}
