.header-search-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-right: 24px;
  margin-left: 23px;
}
.header-search-form div {
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-search-form-input {
  padding: 12px 64px 10px 18px;
  font-size: 23px;
  color: var(--c-font-2);
  background: var(--c-font-3);
  border-radius: 5px;
  width: 400px;
  line-height: 100%;
}
.header-search-form-button {
  background: var(--c-blue);
  padding: 11px 43px 11px 35px;
  border-radius: 5px;
  color: #fff;
  font-size: 24px;
  line-height: 100%;
}
.header-search-form-button div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 21px;
}
.header-search-form-button svg {
  width: 33px;
  height: 33px;
}
.header-search-link {
  display: flex;
  align-items: center;
  gap: 17px;
}
.header-search-form-link {
  display: none;
}
.header-search-form-link div {
  align-items: center;
  justify-content: center;
  gap: 21px;
}
.menu-header-search {
  display: none;
}
.scroll-button {
  position: fixed;
  background: none;
  bottom: 150px;
  right: 10px;
  z-index: 30;
  border: none;
  visibility: hidden;
  transition: visibility 0.3s ease;
  z-index: 999;
}
.scroll-button svg {
  width: 80px;
  height: 80px;
}
.scroll-button.visible {
  visibility: visible;
}
.item-section {
  padding-top: 70px;
  background: var(--c-gray);
  margin-top: 69px;
  padding-bottom: 90px;
}
.item-section-inner {
  max-width: 1380px;
  margin: 0 auto;
}
.item-section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.item-section-title {
  max-width: 654px;
}
.item-section-top-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
}
.item-section-button-outline {
  border: 1px solid var(--c-blue);
  padding: 12px 39px 14px 39px;
  font-size: 24px;
  line-height: 100%;
  text-align: center;
  color: var(--c-blue);
  background: transparent;
  border-radius: 5px;
}
.item-section-button-filled {
  padding: 14px 27px 14px 27px;
  color: #fff;
  font-size: 24px;
  line-height: 100%;
  text-align: center;
  background: var(--c-blue);
  border-radius: 5px;
  border: none;
}
.item-section-main {
  display: flex;
  align-items: start;
  max-width: 1380px;
  overflow: hidden;
  gap: 26px;
  margin-top: 20px;
}
.main-swiper {
  width: 801px;
  height: 582px;
  margin-bottom: 10px;
}
.main-swiper img,
.thumbs-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumbs-container {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 801px;
}
.thumbs-arrow.thumbs-next,
.thumbs-arrow.thumbs-prev {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 130px;
  background: #fff;
  cursor: pointer;

  transition: opacity 0.3s ease, visibility 0.3s ease;
  /* запретить выделение */
  user-select: none; /* ← основное свойство */
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE/Edge */
}
.thumbs-swiper {
  height: 130px;
  width: 801px;
}
.thumbs-swiper .swiper-slide {
  width: auto;
  cursor: pointer;
  opacity: 0.4;
  transition: 0.3s;
}
.thumbs-swiper .swiper-slide-thumb-active {
  opacity: 1;
}

.thumbs-container .thumbs-next.swiper-button-disabled,
.thumbs-container .thumbs-prev.swiper-button-disabled {
    opacity: 0.3;
}

.swiper.main-swiper .swiper-button-prev,
.swiper.main-swiper .swiper-button-next {
  background-size: contain;
  background-repeat: no-repeat;
  width: 96px;
  height: 96px;
  color: transparent;
}
.swiper.main-swiper .swiper-button-prev {
  background-image: url("../img/item/swipper-arrow-prev.svg");
  left: 20px;
}
.swiper.main-swiper .swiper-button-next {
  background-image: url("../img/item/swipper-arrow-next.svg");
  right: 20px;
}
.item-section-lot-info {
  width: 552px;
  border-radius: 5px;
}
.item-section-info-title {
  padding: 14px 0;
  padding-left: 38px;
  color: var(--c-blue);
  background: var(--c-font-4);
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  text-transform: none;
  font-family: "Manrope";
  font-weight: 600;
  font-size: 22px;
  line-height: 100%;
}
.item-section-info-body {
  background: var(--c-bg);
  padding-left: 40px;
  padding-top: 17px;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.item-section-info-price {
  padding: 10px;
  color: var(--c-font-3);
  border-radius: 5px;
  background: var(--c-blue);
  max-width: 192px;
  text-align: center;
  font-family: Manrope;
  font-size: 20px;
  line-height: 100%;
}
.item-section-info-item {
  font-size: 20px;
  line-height: 100%;
}
.item-section-main-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}
.item-section-vehicle-info {
  max-width: 803px;
  margin-top: 15px;
}
.item-section-vehicle-info-body {
  display: flex;
  gap: 120px;
  padding-top: 17px;
  padding-left: 38px;
  background: #fff;
  padding-bottom: 24px;
}
.item-section-vehicle-info-body div {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #151d34;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Модальное окно */
#imageModal {
    touch-action: pan-y pinch-zoom; /* Разрешаем зум жестами */
    -webkit-overflow-scrolling: touch;
}

/* Отключаем preventDefault для касаний в модалке */
#imageModal * {
    touch-action: manipulation;
}

/* Слайд в модалке */
.modal-swiper .swiper-slide {
    overflow: auto; /* Разрешаем скролл внутри слайда */
    -webkit-overflow-scrolling: touch;
}


.modal.show {
  display: flex;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 1010;
}
.modal-close svg {
  width: 102px;
  height: 102px;
  transition: transform 0.3s ease;
}
.modal-close:hover svg {
  transform: rotate(90deg);
}
.modal-content {
  display: flex;
  align-items: center;
  gap: 20px;
}
.modal-button-next,
.modal-button-prev {
  cursor: pointer;
}
.modal-inner {
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  width: 100%;
  height: 100%;
  position: relative;
  background: transparent;
}
.modal-swiper {
  width: 100%;
  height: 100%;
}
.modal-swiper .swiper-wrapper {
  align-items: center;
}
.modal-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 100%;
}

.modal-swiper .swiper-slide, .modal-swiper .swiper-slide *{
    /* запретить выделение */
    user-select: none; /* ← основное свойство */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
}

.modal-swiper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.swiper-button-next,
.swiper-button-prev {
  color: white;
  width: 40px;
  height: 40px;
  background-color: rgba(0,0,0,0.4);
  border-radius: 50%;
  backdrop-filter: blur(5px);
  transition: background-color 0.2s ease;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: rgba(0,0,0,0.7);
}
.swiper-button-next.swiper-button-disabled, .swiper-button-prev.swiper-button-disabled {
    pointer-events: auto !important;
}

.swiper-button-next.swiper-button-disabled:hover,
.swiper-button-prev.swiper-button-disabled:hover {
    background-color: rgba(0,0,0,0.4);
}

.modal-button-next.swiper-button-disabled, .modal-button-prev.swiper-button-disabled {
    opacity: 0;
    visibility: hidden;
}
.modal-button-next, .modal-button-prev {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.slider-container,
.slider-item,
.slide,
img {
  box-shadow: none !important;
  border: none !important;
}
.card-block {
  display: flex;
  justify-content: space-between;
  margin-bottom: 90px;
}
.card-block .card {
  width: 440px;
  border: solid var(--c-blue) 1px;
  border-radius: 7px;
  box-shadow: 4px 4px 4px 0px rgba(0,0,0,0.25);
}
.card-block .card .text {
  padding: 17px 17px 26px 17px;
}
.card-block .card .text .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.card-block .card .text .row-right-content {
  display: flex;
  justify-content: right;
  align-items: center;
}
.card-block .card .text .button-link-a {
  display: inline-block;
  text-decoration: none;
}
.card-block .card .text .button-link-a .button-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 11px 35px;
  border-radius: 7px;
  background: var(--c-blue);
}
.card-block .card .text .button-link-a .button-link span {
  margin-right: 22px;
  font-weight: 400;
  font-size: 24px;
  color: var(--c-font-3);
}
.card-block .card .text .button-link-a .button-link svg {
  width: 25px;
  height: 24px;
}
.card-block .card .text h6 {
  font-weight: 600;
  font-size: 22px;
  color: var(--c-font-1);
  margin-bottom: 17px;
}
.card-block .card .text span {
  font-weight: 400;
  font-size: 18px;
  color: var(--c-font-1);
}
.card-block .card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 7px;
  border-bottom: solid #000 1px;
  background-color: #eeeeee;
}
.similar-cars-section {
  max-width: 1380px;
  margin: 90px auto;
}
.similar-cars-section h2 {
  margin-bottom: 60px;
}
.promo-section {
  background: var(--c-gray);
  padding-top: 90px;
  padding-bottom: 104px;
  margin-top: 90px;
}
.promo-section-inner {
  max-width: 1380px;
  margin: 0 auto;
}
.promo-section-description {
  margin-top: 67px;
  font-size: 20px;
  line-height: 1;
}
.promo-section-description .promo-section-link {
  color: #000;
}
.show-more-button {
  display: block;
  max-width: 522px;
  margin: 0 auto;
  padding: 38px 112px 38px 112px;
  font-size: 36px;
  line-height: 100%;
  text-align: center;
  border: none;
  border-radius: 5px;
  color: #fff;
  background: var(--c-blue);
}
.search-link div {
  display: flex;
  align-items: center;
  gap: 17px;
}
.footer .nav .right ul li a {
  padding: 10px;
}
main section {
  padding-left: 10px;
  padding-right: 10px;
}
@media (max-width: 1300px) {
  .header-search-form-input {
    width: 330px;
  }
  .header-search-form-input {
    width: 150%;
    margin-left: 10px;
  }
  .header-search-form {
    width: 98%;
    margin-left: 5px;
    margin-right: 139px;
    padding-right: 20px;
  }
  .card-block {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    margin-bottom: 90px;
  }
  .card-block .card {
    width: 100%;
    margin-bottom: 15px;
  }
  .card-block .card .text {
    padding: 17px 17px 26px 17px;
  }
  .card-block .card img {
    height: 494px;
  }
  .promo-section {
    padding: 50px 70px;
  }
  .similar-cars-section {
    padding: 0 70px;
  }
  .item-section {
    padding: 80px 70px;
  }
}
@media (max-width: 1420px) {
  .main-swiper {
    width: 600px;
    height: 500px;
    margin-right: 5px;
  }
  .main-swiper img {
    height: 500px;
    width: auto;
  }
  .thumbs-container {
    width: 600px;
    height: 150px;
    margin-right: 5px;
  }
  .thumbs-container .swiper-slide {
    height: 150px;
    width: auto;
  }
  .item-section-swipper-wrapper {
    width: 600px;
  }
  .item-section-main-right {
    width: 100%;
  }
  .item-section-lot-info {
    width: 100%;
  }
  .item-section-vehicle-info {
    max-width: 600px;
  }
  .item-section-vehicle-info-body {
    gap: 40px;
    padding-right: 20px;
  }
}
@media (max-width: 1290px) {
  .item-section-info-title {
    padding-left: 10px;
  }
  .item-section-info-body {
    padding-left: 10px;
  }
  .item-section-vehicle-info-body {
    padding-left: 10px;
  }
}
@media (max-width: 1170px) {
  .main-swiper {
    width: 600px;
    height: 500px;
    margin-right: 5px;
  }
  .main-swiper img {
    height: 500px;
    width: auto;
  }
  .thumbs-container {
    width: 600px;
    height: 150px;
    margin-right: 5px;
  }
  .thumbs-container .swiper-slide {
    height: 150px;
    width: auto;
  }
  .item-section-swipper-wrapper {
    width: 550px;
  }
  .item-section-main-right {
    width: 100%;
  }
  .item-section-lot-info {
    width: 100%;
  }
  .item-section-vehicle-info {
    max-width: 550px;
  }
  .main-swiper {
    width: 100%;
  }
  .thumbs-container {
    width: 550px;
  }
  .item-section-vehicle-info-body {
    gap: 10px;
  }
  .item-section-top {
    flex-direction: column;
    align-items: start;
    gap: 60px;
  }
  .item-section-top-buttons {
    margin: 0 auto;
  }
}
@media (max-width: 1080px) {
  header nav {
    gap: 20px;
  }
  .menu-header-search {
    display: flex;
  }
  header nav {
    max-width: 900px;
    padding: 0 20px;
  }
  header nav .right .header-ul {
    display: flex;
  }
  header nav .right .menu-button {
    display: none;
  }
  .header-search-form-link div {
    display: none;
  }
  .header-search-form-link div {
    display: flex;
  }
  .header-ul li form {
    display: none;
  }
  .header-search-form-link {
    display: block;
  }
  .header-search-link {
    display: flex;
  }
  .item-section-main {
    flex-direction: column;
  }
  .item-section-vehicle-info {
    max-width: 100%;
  }
  .item-section-vehicle-info-body {
    gap: 150px;
    padding-left: 30px;
  }
  .main-swiper {
    width: 100%;
  }
  .main-swiper img {
    height: 100%;
    width: auto;
  }
  .thumbs-container {
    width: 100%;
  }
  .item-section-swipper-wrapper {
    width: 100%;
  }
  .main-swiper img {
    display: block;
    margin: 0 auto;
  }
  .item-section-info-body {
    padding-left: 30px;
  }
  .item-section-info-item {
    font-size: 15px;
  }
  .item-section-info-title {
    font-size: 19px;
  }
  .item-section-info-title {
    padding-left: 34px;
  }
}
@media (max-width: 890px) {
  footer nav .right ul li span {
    display: block;
  }
  .item-section-vehicle-info-body {
    gap: 15px;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .item-section-vehicle-info-body {
    padding-right: 20px;
  }
}
@media (max-width: 760px) {
  h1 {
    font-size: 27px;
  }
  header nav {
    max-width: 900px;
    padding: 0 20px;
  }
  header nav .right .header-ul {
    display: none;
  }
  header nav .right .menu-button {
    display: block;
  }
  .scroll-button {
    display: none;
  }
  .card-block {
    margin-bottom: 20px;
  }
  .show-more-button {
    padding: 20px;
    font-size: 25px;
  }
  .promo-section {
    margin-top: 30px;
  }
  .promo-section {
    padding: 30px 20px;
  }
  .similar-cars-section {
    padding: 0 20px;
    margin-bottom: 40px;
  }
  .item-section {
    padding: 20px;
  }
  .swiper.main-swiper .swiper-button-prev,
  .swiper.main-swiper .swiper-button-next {
    width: 56px;
    height: 56px;
  }
  .main-swiper {
    height: 400px;
  }
  .main-swiper .swiper-wrapper .swiper-slide img {
    height: 400px;
    width: auto;
  }
  .thumbs-container {
    height: 100px;
    margin-top: 30px;
    margin-right: 5px;
  }
  .thumbs-container .swiper-slide {
    height: 100px;
    width: auto;
  }
  .thumbs-arrow.thumbs-next,
  .thumbs-arrow.thumbs-prev {
    height: 100px;
  }
  .thumbs-swiper {
    margin-top: 30px;
  }
  .swiper-button-next,
  .swiper-button-prev {
    width: 20px;
    height: 20px;
  }
  .modal-button-prev,
  .modal-button-next {
    width: 40px;
    height: 40px;
  }
  .modal-button-prev svg,
  .modal-button-next svg {
    width: 40px;
    height: 40px;
  }
  .modal {
    background: #2e3d66;
  }
  .modal-close svg {
    width: 53px;
    height: 102px;
    transition: transform 0.3s ease;
  }
}
@media (max-width: 460px) {
  footer nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  footer nav ul li {
    width: max-content;
    height: auto;
  }
  footer nav ul li a {
    font-size: 20px;
  }
  footer nav ul .svg-button,
  footer nav ul li:last-child .svg-button:last-of-type {
    padding: 5px;
  }
  .item-section-top-buttons {
    flex-direction: column;
    gap: 25px;
  }
  .modal-button-prev,
  .modal-button-next {
    width: 30px;
    height: 30px;
    padding: 1px;
  }
  .modal-button-prev svg,
  .modal-button-next svg {
    width: 30px;
    height: 30px;
  }
  .modal-content {
    gap: 5px;
  }
}
