@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Italiana&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: #000000;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000000;
  font-family: "Inter", serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
  position: fixed;
  z-index: 9999;
}
.navbar {
  font-family: "Inter", serif;
  justify-content: space-between;
  align-items: center;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #000000f5;
  width: 100%;
}

.logo img {
  width: 80px;
}
.nav-links {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.nav-links li {
  display: inline;
  padding: 20px 50px;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}
.nav-links li:hover {
  border-bottom: 3px solid #fff;
}
header nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
}
.classes {
  display: none;
  position: absolute;
  background-color: white;
  list-style: none;
  padding: 0;
  margin: 0;
  top: 100%; /* Подменю будет располагаться ниже родительского пункта */
  left: 0;
  width: 100%; /* Ширина подменю */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  font-weight: 500;
}

/* Показываем подменю при наведении на пункт "Машины" */
.nav-links li:hover .classes {
  display: block;
  max-width: 100%;
}

/* Стили для пунктов подменю */
.classes li {
  padding: 0;
}
.classes li a {
  display: block;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border: #000000 solid 2px;
}
/* Убираем границу у последнего пункта подменю */
.classes li:last-child {
  border-bottom: none;
}

/* Стили для навигационных пунктов */
.nav-links li {
  position: relative;
}

.welcome {
  font-family: "Inter", serif;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("./styles.css/img/m5f90.JPG");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 88vh;
  margin-top: 80px;
}
.wel_h1 {
  padding-top: 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.welcome h1 {
  width: 1150px;
  font-size: 65px;
  color: #fff;
  font-weight: 900;
  text-align: center;
}
.welcome h2 {
  width: 850px;
  padding: 40px 0;
  color: #ffffff;
  font-weight: 500;
}
.vill {
  color: #ffcc00;
}
.wel_btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wel_bron {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 50px;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 5px 5px 5px 0px rgba(255, 255, 255, 0.5);
  animation: move 0.5s infinite alternate;
}
.wel_bron {
  animation: pulse 1.5s infinite alternate ease-in-out;
}
.wel_bron a {
  color: #000;
  text-decoration: none;
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

#popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  width: 320px;
  padding: 20px 20px 30px;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

#otmena {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 34px;
  background: none;
  border: none;
  cursor: pointer;
}

.popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 30px; /* чтобы не мешало кнопке × */
}

.popup-content h2 {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
}

#bron_vspl {
  padding: 18px 40px;
  background-color: #ffcc00;
  color: black;
  border: none;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s;
}
#bron_vspl a {
  text-decoration: none;
  color: black;
}
#bron_vspl:hover {
  background-color: #b49102;
}

.quick-access {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: space-evenly;
  padding: 10px 0;
  z-index: 1000;
}

.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 12px;
}

.quick-btn img {
  width: 28px;
  height: 28px;
  margin-bottom: 5px;
}

@keyframes pulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}
.autopark {
  background-color: #181818;
  padding: 50px;
}
.lux,
.sport,
.premium {
  padding-bottom: 20px;
}
.lux_cars,
.sport_cars,
.premium_cars {
  display: flex;
  justify-content: space-around; /* Равномерное распределение */
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}
.lux_h2 {
  padding-bottom: 30px;
}
.cars_h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: #fff;
  text-align: center;
  font-family: "Inter", serif;
  font-weight: 700;
}
.lux_h2 {
  font-family: "Italiana", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 46px;
  color: #fff;
}
.lux_card {
  width: 300px;
  height: 400px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  font-family: Arial, sans-serif;
}
.img_cars {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card_text {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 18px;
}

.usl {
  font-family: "Inter", serif;
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("./img/footerfon.JPG");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 88vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.card_usl {
  background-color: #fff;
  width: 800px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgb(255, 255, 255);
}
.h2_usl {
  text-align: center;
  font-size: 36px;
  padding-top: 40px;
  padding-bottom: 20px;
}
.card_usl ul li {
  font-size: 18px;
  padding: 20px 30px;
}

.reviews {
  font-family: "Inter", serif;
  padding: 50px;
  color: #000000;
  flex-direction: column;
  background-color: #181818;
}
.rev_h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: #fff;
  text-align: center;
  font-family: "Inter", serif;
  font-weight: 700;
}
.rev_card {
  width: 300px;
  height: 220px;
  background-color: #fff;
  border-radius: 8px;
  padding: 5px 20px;
}
.rev_cards {
  display: flex;
  justify-content: space-around;
  padding-top: 40px;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.zogo_card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.zogo_card h1 {
  padding-left: 10px;
  font-size: 20px;
}
.rev_card p {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}
.star {
  padding: 10px;
  font-size: 20px;
  color: #ffcc00;
}

.onas {
  padding: 40px 20px;
  font-family: "Arial", sans-serif;
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("./img/g632015\ \(13\).JPG");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
}
.onas img {
  width: 600px;
}
.cont_onas {
  max-width: 900px;
  margin: 0 auto;
  color: #ffcc00;
}

.cont_onas h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.cont_onas p {
  font-size: 18px;
  line-height: 1.6;
  color: #ffffff;
  margin-bottom: 16px;
}

.cont_onas ul {
  margin: 20px 0 20px 20px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.6;
}

.cont_onas ul li {
  margin-bottom: 8px;
}

.cont_onas .highlight {
  font-weight: bold;
  color: #ffffff;
}

.ftr {
  background-color: #181818;
  color: #ffffff;
  font-family: "Inter", serif;
  display: flex;
  margin-bottom: 50px;
  justify-content: center;
  display: flex;
  justify-content: space-around; /* Равномерное распределение */
  align-items: start;
  flex-wrap: wrap;
}
.cont {
  padding: 50px;
}
.cont_h1 {
  font-size: 36px;
  text-align: center;
  padding-bottom: 20px;
  border-bottom: #ffcc00 solid 5px;
}

.cont ul li a {
  color: #ffffff;
}
.cont ul {
  padding-top: 10px;
}
.cont ul li {
  font-size: 16px;
  list-style-type: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.container {
  margin-top: 100px;
  background: #000000;
  padding: 20px;
  text-align: center;
  width: 100%;
  font-family: "Inter", serif;
}

.info .image-gallery {
  position: relative;
  overflow: hidden;
  width: 950px;
  height: 580px;
  margin: auto;
}
.image-gallery img {
  width: 950px;
  height: 580px;
  border-radius: 10px;
  display: none;
  object-fit: cover;
}
.image-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-gallery img.active {
  display: block;
}
.prev,
.next {
  position: absolute;
  margin-top: 100px;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  padding: 10px;
  cursor: pointer;
}
.prev {
  left: 10%;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 40px;
}
.next {
  right: 10%;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 40px;
}
.details {
  display: flex;
  justify-content: space-around; /* Равномерное распределение */
  align-items: start;
  flex-wrap: wrap;
  margin: 10px 0;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  padding-top: 20px;
  gap: 20px 20%;
  width: 50%;
  padding-top: 5%;
  padding: 40px;
}

.details span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  border-radius: 5px;
  overflow: hidden;
  width: fit-content;
}
.detbtn {
  display: flex;
  align-items: center;
  justify-content: center;
}
.details_1,
.details_2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.buttons button {
  padding: 20px 40px;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 20px;
  border: none;
  cursor: pointer;
}
.book {
  color: #ffffff;
  background-color: #000;
}
.book a {
  text-decoration: none;
  color: #ffffff;
}
.whatsapp {
  background: #ffffff;
}
.whatsapp a {
  color: #000;
  text-decoration: none;
}
.info {
  margin-top: 40px;
}
.info h2 {
  color: #fff;
  font-size: 48px;
}
.flags {
  width: 70px;
}

.burger {
  display: none;
  position: relative;
  z-index: 50;
  align-items: center;
  justify-content: flex-end;
  width: 30px;
  height: 18px;
  margin-right: 30px;
}
.burger span {
  background: #ffffff;
  height: 2px;
  width: 80%;
  transform: scale(1);
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 100%;
  background-color: #ffffff;
  transition: all 0.3s ease 0s;
}
.burger::before {
  top: 0;
}
.burger::after {
  bottom: 0;
}
.burger.active span {
  transform: scale(0);
}

.burger.active::before {
  top: 50%;
  transform: rotate(-45deg) translate(0, -50%);
}
.burger.active::after {
  top: 50%;
  transform: rotate(45deg) translate(0, 50%);
}

.show-more-btn {
  display: none;
}
@media (max-width: 1200px) {
	
  .welcome {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .details {
    display: block;
  }
  .details span {
    padding: 10px;
  }
  .welcome h1 {
    width: 80%;
    font-size: 60px;
  }
  .welcome h2 {
    width: 80%;
  }
}
@media (max-width: 1000px) {
  .onas img {
    width: 400px;
    height: 400px;
  }
  .welcome {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}
@media (max-width: 768px) {
  .welcome {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
      url("./img/isa.PNG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  .onas img {
    width: 100px;
    height: 100px;
  }
  .welcome h1 {
    width: 80%;
    font-size: 38px;
  }
  .welcome h2 {
    width: 80%;
    font-size: 18px;
  }
  body.no-scroll {
    overflow: hidden;
    height: 100vh;
  }
  .ww {
    display: none;
  }
  .nav-links li:hover .classes {
    display: none !important;
  }

  .classes {
    display: none !important;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    height: 600px;
    width: 100%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 50;
    overflow-y: auto;
    padding: 50px 40px;
    background: #000000;
    animation: burgerAnimation 0.4s;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links ul {
    flex-direction: column;
    row-gap: 30px;
  }
  .burger {
    display: flex;
  }

  .wel_h1 {
    font-size: 36px;
    padding-top: 50px;
  }

  .detbtn {
    display: block;
  }
  .details {
    width: 100%;
  }
  .buttons {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .wel_btn {
    padding-top: 15%;
  }
  .wel_bron {
    padding: 20px 40px;
  }

  .cars_h1,
  .rev_h1 {
    font-size: 40px;
  }
  .lux_h2 {
    padding-top: 40px;
    font-size: 26px;
  }
  .lux_card {
    width: 220px;
    height: 320px;
  }
  .card_text {
    font-size: 14px;
  }

  .card_usl {
    width: 90%;
  }
  .h2_usl {
    font-size: 20px;
    padding-top: 20px;
    padding-bottom: 10px;
  }
  .card_usl ul li {
    font-size: 16px;
    padding: 20px 30px;
  }
  .lux_cars,
  .sport_cars,
  .premium_cars {
    gap: 20px;
    margin: 0;
    padding: 0;
    max-width: 100%;
  }

  .lux_card,
  .sport .lux_card,
  .premium .lux_card {
    display: none;
  }

  .lux_card:nth-child(1),
  .lux_card:nth-child(2) {
    display: block;
  }

  .lux_cars.show-all .lux_card,
  .sport_cars.show-all .lux_card,
  .premium_cars.show-all .lux_card {
    display: block;
  }

  .show-more-btn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 8px;
  }

  .autopark {
    padding: 10px;
  }
  .autopark {
    padding: 10px;
  }
  .cont {
    padding: 10px;
  }
  .cont_h1 {
    font-size: 24px;
    padding: 10px;
  }
  .cont ul li a {
    font-size: 12px;
  }
  .prev {
    left: 10%;
    border-radius: 50px;
    padding: 5px 10px;
    font-size: 30px;
  }
  .next {
    right: 10%;
    border-radius: 50px;
    padding: 5px 10px;
    font-size: 30px;
  }
  .buttons {
    max-width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .buttons button {
    padding: 15px 30px;
    font-size: 20px;
  }
  .info h2 {
    font-size: 36px;
  }
  .details {
    font-size: 26px;
  }
  .flags {
    width: 50px;
  }
  .onas img {
    display: none;
  }
  .rev_card {
    width: 250px;
    height: 180px;
    background-color: #fff;
    border-radius: 8px;
    padding: 2px 10px;
  }
  .rev_cards {
    display: flex;
    justify-content: space-around;
    padding-top: 40px;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
  }
  .zogo_card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-height: 100%;
  }
  .zogo_card h1 {
    padding-left: 10px;
    font-size: 14px;
  }
  .zogo_card svg {
    width: 30px;
    height: 30px;
  }
  .rev_card p {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3px;
    font-size: 14px;
  }
  .star {
    padding: 0%;
  }
}

@media (max-width: 480px) {
  .reviews {
    padding: 20px 0%;
  }
  .onas img {
    display: none;
  }
  .rev_card {
    width: 180px;
    height: 220px;
    background-color: #fff;
    border-radius: 8px;
    padding: 2px 10px;
  }
  .wel_btn {
    padding-top: 10px;
  }
  .rev_cards {
    display: flex;
    justify-content: space-around;
    padding-top: 40px;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .zogo_card {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-height: 100%;
  }
  .zogo_card h1 {
    font-size: 14px;
  }
  .zogo_card svg {
    width: 30px;
    height: 30px;
  }
  .rev_card p {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3px;
    font-size: 14px;
  }
  .star {
    padding: 0%;
  }

  .welcome h1 {
    font-size: 38px;
  }

  .welcome h2 {
    font-size: 16px;
  }
  .cars_h1 {
    font-size: 34px;
  }
  .lux_h2 {
    padding-top: 30px;
    font-size: 32px;
  }
  .lux_card {
    width: 180px;
    height: 260px;
  }
  .card_text {
    font-size: 14px;
  }
  .lux_cars,
  .sport_cars,
  .premium_cars {
    gap: 20px;
    margin: 0;
    padding: 0;
    max-width: 100%;
  }
  .autopark {
    padding: 5px;
  }
  .cont {
    padding: 10px;
  }
  .cont_h1 {
    font-size: 24px;
    padding: 10px;
  }
  .cont ul li a {
    font-size: 12px;
  }
  .ftr {
    align-items: start;
  }

  .image-gallery img {
    width: 350;
    height: 200px;
    border-radius: 10px;
    display: none;
    object-fit: cover;
  }

  header {
    max-width: 100%;
  }
  .buttons {
    max-width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .buttons button {
    padding: 10px 20px;

    font-size: 14px;
  }
  .info h2 {
    font-size: 26px;
  }
  .details {
    font-size: 20px;
  }
}
