.page-title--key span::before {
  background-image: url(../images/cars/tabler_car-filled.svg);
}

.page-title--compact span::before {
  background-image: url(../images/cars/game-icons_city-car.svg);
}

.page-title--suv span::before {
  background-image: url(../images/cars/tabler_car-suv-filled.svg);
}

.page-title--box span::before {
  background-image: url(../images/cars/tabler_bus-filled.svg);
}

@media (min-width: 500px) {
  .page-title--box br {
    display: none;
  }
}

.cars-menu {
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: fit-content;
}

.cars-menu__item {
  border-radius: 5px;
  border: 2px solid #1c085d;
  background-color: #fff;
  padding: 22px 25px;
  display: flex;
  gap: 8px;
  align-items: center;
  height: 94px;
  width: min(89.34vw, 360px);
}

@media (min-width: 600px) {
  .cars-menu {
    width: 100%;
    max-width: 680px;
    grid-template-columns: 1fr 1fr;
  }

  .cars-menu__item {
    width: auto;
  }
}

@media (min-width: 1000px) {
  .cars-menu {
    max-width: 936px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    margin-top: 114px;
    gap: 32px;
  }

  .cars-menu__item {
    height: 80px;
    padding: 20px 14px;
  }
}

.cars-menu__item.active {
  background-color: #1c085d;
}

.cars-menu__item-image {
  width: 76px;
  min-width: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cars-menu__item-image::before {
  content: "";
  position: absolute;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background-color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.cars-menu__item-image img {
  width: 76px;
  height: auto;
  position: relative;
}

.cars-menu__item-title {
  color: #1c085d;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.cars-menu__item.active .cars-menu__item-title {
  color: #fff;
}

@media (min-width: 450px) {
  .page-title .sp {
    display: none;
  }
}

.cars {
  margin: 64px auto 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.car {
  box-shadow: 0px 0px 19px rgba(0, 0, 0, 0.07);
  padding: 32px 20px;
  border-radius: 15px;
}

.car__swiper {
  position: relative;
  padding: 0 5px;
}

.mySwiper2 {
  margin: 0 auto;
  max-width: 480px;
}

.mySwiper2 .swiper-slide {
  width: 100%;
  aspect-ratio: 285 / 240;
  border-radius: 9px 9px 0 0;
  overflow: hidden;
  background-color: #d9d9d9;
}

.mySwiper2 .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-banner {
  background-color: #bc0000;
  color: #fff;
  font-size: 25px;
  line-height: 1;
  font-weight: 600;
  text-align: center;
  width: 100%;
  height: 45px;
  line-height: 45px;
  border-radius: 0 0 9px 9px;
}

.mySwiper {
  margin-top: 24px;
  width: calc(100% - 17px);
  max-width: 480px;
}

.mySwiper .swiper-slide {
  width: calc((100% - 16px) / 3) !important;
  aspect-ratio: 84 / 63;
  border-radius: 5px;
  overflow: hidden;
}

.mySwiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mySwiper .swiper-slide {
  width: 25%;
  height: 100%;
  opacity: 0.4;
}

.mySwiper .swiper-slide-thumb-active {
  opacity: 1;
}

.car__swiper-wrapper {
  position: relative;
}

.swiper-buttons {
  width: calc(100% + 7px);
  max-width: 520px;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 50%;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  display: none;
}

.swiper-button-next,
.swiper-button-prev {
  width: 8px;
  height: 14px;
  background-image: url(../images/common/swiper-arrow.svg);
  background-size: contain;
  background-repeat: no-repeat;
  position: static;
  top: 0;
  transform: unset;
  left: -16px;
  margin-top: 0;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-button-next {
  transform: scaleX(-1);
}

.car__title {
  width: 100%;
  height: 45px;
  border-radius: 0 20px 0 0;
  background-color: #1c085d;
  color: #fff;
  line-height: 45px;
  text-align: center;
  margin: 24px 0 16px;
  font-size: 18px;
  font-weight: 500;
}

.car__price {
  margin: 16px 0;
}

.car__price b {
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
  font-family: "Oswald", sans-serif;
}

.car__price small {
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

.car__info {
  display: flex;
  gap: 24px;
}

.car__info-item {
  display: flex;
  gap: 5px;
  align-items: center;
}

.car__info-text {
  font-size: 14px;
  line-height: 26px;
  font-weight: 500;
}

.car__info img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.car__equipment {
  display: flex;
  gap: 16px;
  margin-top: 19px;
}

.car__equipment-title {
  background-color: #1c085d;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  padding: 8px 12px;
  min-width: 80px;
  height: 30px;
  display: block;
}

.car__equpment-text {
  font-size: 14px;
  line-height: 26px;
  font-weight: 600;
}

.car .link {
  margin-top: 40px;
}

.modal {
  visibility: hidden;
  opacity: 0;
  transition: all 0.2s ease;
  /* display: none; */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1003;
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background: white;
  padding: 83px 20px 40px;
  max-width: 600px;
  width: calc(100% - 40px);
  height: calc(100% - 67px);
  overflow: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-modal {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  top: 53.5px;
  right: 40px;
  cursor: pointer;
  color: #333;
  line-height: 1;
  transition: color 0.2s;
  z-index: 2;
}

@media (min-width: 640px) {
  .close-modal {
    right: calc(40px + 50vw - 320px);
    top: 60px;
  }
}

.close-modal img {
  width: 30px;
  height: 30px;
  display: block;
}

.close-modal span {
  font-size: 9px;
  text-align: center;
  color: #303030;
  font-weight: 600;
}
.modal-title {
  background: #1c085d;
  color: white;
  padding: 8.5px 16px;
  border-radius: 20px 0;
  margin: 0 0 16px 0;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}

.modal-image {
  width: 100%;
}

.modal-image img {
  width: 100%;
  height: auto;
  border-radius: 9px 9px 0 0;
}

.modal-banner {
  background: #bc0000;
  color: white;
  padding: 10px;
  font-size: 25px;
  line-height: 1;
  text-align: center;
  font-weight: 500;
  margin-bottom: 16px;
  border-radius: 0 0 9px 9px;
}

.modal-section-title {
  font-size: 20px;
  line-height: 1.5;
  margin: 40px 0 8px;
  padding-bottom: 8px;
  font-weight: bold;
  border-bottom: 3px solid #1c085d;
  color: #1c085d;
}

.modal-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-feature-item {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: default;
}

.modal-feature-status {
  display: block;
  width: 24px;
  height: 24px;
  background-image: url(../images/common/checkbox-grey.svg);
  background-size: contain;
  background-repeat: no-repeat;
}

.modal-feature-item.active .modal-feature-status {
  background-image: url(../images/common/checkbox.svg);
  color: #303030;
}

.modal-feature-item span {
  font-size: 16px;
  line-height: 1.75;
  color: #999999;
}
.modal-feature-item.active span {
  color: #303030;
}

.modal-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 40px;
  background: white;
  border: 1px solid #d5d5d5;
}

.modal-specs-table tr {
  border-bottom: 1px solid #d5d5d5;
}

.modal-specs-table tr:last-child {
  border-bottom: none;
}

.modal-specs-table td {
  padding: 12px 15px;
  font-size: 14px;
}

.modal-specs-table td:first-child {
  border-right: 1px solid #d5d5d5;
}

.specs-label {
  background: #f7f7f7;
  font-weight: 600;
  width: 46.25%;
  font-size: 14px;
  padding: 10px 20px;
}

.specs-value {
  font-size: 14px;
  padding: 10px 20px;
}

.modal-plans {
  padding: 32px 20px;
  border-radius: 6px;
  box-shadow: 0 0 11px rgba(0, 0, 0, 0.07);
  margin: 24px auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-plan-item {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid #d9d9d9;
  padding-bottom: 8px;
}

.modal-plan-icon img {
  width: 30px;
  min-width: 30px;
  height: 30px;
  object-fit: contain;
}

.modal-plan-content h4 {
  font-size: 16px;
  line-height: 28px;
}

.modal-plan-content p {
  font-size: 14px;
  line-height: 26px;
}

.modal-notes {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal .link {
  margin-top: 40px;
}

.modal .link span::before {
  content: "";
  display: block;
  width: 23px;
  height: 23px;
  background-image: url(../images/common/icon-white-car.svg);
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 2px;
  position: relative;

  /* top: 1px; */
}

.modal .link span {
  transform: translate(0, 0);
}

@media (min-width: 768px) {
  .modal .link:hover span::before {
    width: 23px;
    height: 23px;
    background-image: url(../images/common/icon-orange-car.svg);
    margin-right: 2px;
  }

  .modal .link:hover span {
    transform: translate(2.5px, 2.5px);
    bottom: 0;
    right: 0;
  }
}

.modal .link * {
  position: relative;
  z-index: 1;
}
.modal .link::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background-color: #525252;
  position: absolute;
  z-index: 0;
  right: -2.5px;
  bottom: -2.5px;
}

@media (min-width: 768px) {
  .cars {
    margin: 80px auto 0;
    gap: 70px;
  }

  .car {
    padding: 45px 35px 134px;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    position: relative;
  }

  .car .link {
    position: absolute;
    left: 50%;
    bottom: 50px;
    transform: translateX(-50%);
  }

  .car__swiper {
    padding: 0;
    width: clamp(300px, 45vw, 400px);
    min-width: clamp(300px, 45vw, 400px);
  }

  .mySwiper2 .swiper-slide {
    width: 100%;
    aspect-ratio: 400 / 255;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 10px;
    height: 16px;
  }

  .car__title {
    border-radius: 0 25px 0 0;
    text-align: center;
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 500;
  }

  .car__equipment {
    margin-top: 27px;
  }

  .car .link {
    margin-top: 34px;
  }

  .mySwiper {
    width: calc(100% - 36px);
  }

  .swiper-buttons {
    width: 100%;
  }
}

@media (min-width: 1200px) {
  .modal-content {
    max-width: 950px;
    padding: 40px 138px;
    height: calc(100% - 50px);
  }

  .close-modal {
    right: calc(165px + 50vw - 600px);
  }

  .close-modal span {
    display: none;
  }

  .modal-title {
    background: #1c085d;
    color: white;
    padding: 24px 49px;
    border-radius: 40px 0;
    margin: 0 0 16px 0;
    font-size: 22px;
    line-height: 1;
    font-weight: 600;
  }

  .modal-banner {
    margin-bottom: 24px;
  }

  .modal-section-title {
    font-size: 18px;
    line-height: 1;
    margin: 40px 0 24px;
    padding-bottom: 8px;
  }

  .modal-section-title:first-of-type {
    margin-top: 49px;
  }

  .specs-label {
    width: 200px;
  }

  .modal-specs-table {
    margin: 24px 0 40px;
  }

  .modal-plans {
    padding: 30px 40px;
    border-radius: 6px;
    box-shadow: 0 0 11px rgba(0, 0, 0, 0.07);
    margin: 24px auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .modal-notes {
    gap: 0px;
  }

  .modal .link {
    margin-top: 50px;
  }
}
