/* Основні стилі */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #1c1c1c;
  color: #f4f4f4;
  line-height: 1.6;
  scroll-behavior: smooth;
  background-image: url("https://cbx-prod.b-cdn.net/COLOURBOX55620970.jpg?width=800&height=800&quality=70"); /* Set your background image here */
  background-repeat: repeat; /* Repeat the image */
  background-size: auto; /* Adjust size if necessary */
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease, background-color 0.3s ease;
}

a:hover {
  color: #ff4a56;
}

/* Верхня панель з контактною інформацією */
.top-bar {
  background-color: rgba(29, 29, 29, 0.8); /* Прозрачный цвет */
  color: #f4f4f4;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar .logo {
  text-align: center;
  flex: 1;
}

.top-bar .logo img {
  max-width: 250px;
}

.top-bar .contact-info {
  text-align: right;
  flex: 2;
}

.top-bar .contact-info h2 {
  font-size: 1.4em;
  margin: 0;
  color: #ff4a56;
}

.top-bar .contact-info p {
  font-size: 1em;
  margin: 5px 0;
}

.top-bar .contact-info .phone {
  font-size: 1.5em;
  display: block;
  margin: 3px 0;
  color: #f4f4f4;
}

.top-bar .contact-info address,
.top-bar .contact-info .email {
  font-size: 1.0em;
  display: block;
  margin: 3px 0;
  color: #f4f4f4;
}

.top-bar .contact-info address {
  font-style: normal;
}

/* Навігаційна панель */
/* Навігаційна панель */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0a0a0a; /* Темный фон */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Легкая тень */
  padding: 10px 20px; /* Уменьшенный отступ */
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-links li {
  margin: 0 15px; /* Уменьшенный отступ между элементами */
}

.nav-links li a {
  color: #f4f4f4;
  font-size: 1em;
  padding: 10px 15px; /* Более равномерное внутреннее пространство */
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: block; /* Для полной доступности области клика */
}

.nav-links li a:hover {
  background-color: #ff4a56;
  color: white;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Активна навігаційна лінка */
.nav-links li a.active {
  background-color: #ff4a56; /* Цвет активной ссылки */
  color: white; /* Цвет текста активной ссылки */
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column; /* Вертикальное выравнивание для мобильных устройств */
    position: absolute; /* Занимает фиксированное место */
    background-color: #1c1c1c; /* Темный фон для выпадающего меню */
    top: 60px; /* Расположение под navbar */
    right: 0;
    display: none; /* Скрыто по умолчанию */
    padding: 10px 0; /* Отступы внутри выпадающего меню */
    border-radius: 4px; /* Закругленные углы */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Тень для выпадающего меню */
  }

  .nav-links.active {
    display: flex; /* Показать меню, когда активно */
  }

  .nav-links li {
    margin: 10px 0; /* Отступ для вертикального меню */
  }
}

/* Dropdown Menu */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #2b2b2b;
  padding: 10px;
  border-radius: 8px;
  top: 100%;
  left: 0;
  min-width: 150px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content li {
  margin-bottom: 10px;
}

.dropdown-content li a {
  color: #f4f4f4;
  padding: 5px 10px;
  display: block;
  transition: background-color 0.3s ease;
}

.dropdown-content li a:hover {
  background-color: #ff4a56;
  color: white;
}

/* Кнопка "Book Appointment" */
.appointment-btn {
  background-color: rgba(255, 74, 86, 0.9); /* Прозрачный цвет для кнопки */
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  display: inline-block;
  text-align: center;
  margin: 40px auto;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.appointment-btn:hover {
  background-color: #e84352;
  transform: scale(1.05);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 2000;
}

.hamburger span {
  background-color: #f4f4f4;
  height: 3px;
  width: 25px;
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* Hamburger Animation */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Стиль для головної секції */
.hero-section {
  background-color: rgba(28, 28, 28, 0.8); /* Прозрачный цвет */
  padding: 20px 20px;
  text-align: center;
}

.hero-section h2 {
  font-size: 2.5em;
  color: #ff4a56;
  margin-bottom: 20px;
}

.hero-section p {
  font-size: 1.2em;
  color: #f4f4f4;
  margin-bottom: 30px;
}

/* Адаптація для мобільних пристроїв */
@media (max-width: 768px) {
  .hamburger {
      display: flex;
  }

  .nav-links {
      display: none;
  }

  .nav-links.active {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.95);
      z-index: 1000;
  }

  .nav-links li {
      margin-left: 0;
      margin-bottom: 20px;
  }

  .appointment-btn {
      padding: 12px 24px;
      font-size: 1.1em;
  }

  .top-bar {
      flex-direction: column;
      text-align: center;
  }
  
  .top-bar .contact-info {
      text-align: center;
      margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .nav-links li a {
      font-size: 1.2em;
  }

  .appointment-btn {
      padding: 15px 30px;
      font-size: 1.2em;
  }
}

/* Services Section */
.services-section {
  background-color: rgba(61, 58, 58, 0.895); /* Прозрачный цвет */
  padding: 50px 20px;
  text-align: center;
}

/* Large Service Section for Engine Performance */
.service-large {
  background-color: rgba(44, 43, 43, 0.8); /* Прозрачный цвет */
  padding: 15px; /* Reduced padding */
  border-radius: 8px;
  margin: 0 auto 20px auto; /* Centering and margin below */
  max-width: 850px; /* Set maximum width for the large section */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #ff4a56; /* Add border to the large section */
}

/* Image, Title, and Paragraph Styling for Large Section */
.service-large img {
  max-width: 70px; /* Slightly smaller image size */
  margin-bottom: 10px;
}

.service-large h5 {
  color: #ff4a56;
  margin: 10px 0;
  font-size: 1.3em; /* Slightly smaller font size */
}

.service-large p {
  color: #f4f4f4;
  font-size: 0.9em; /* Slightly smaller font size */
}

/* Service Row Styling */
.service-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* Space between service groups */
}

/* Service Group for two services */
.service-group {
  display: flex;
  flex-direction: row;
  gap: 20px; /* Space between services */
  justify-content: center; /* Center services in group */
 
  
}

.service {
  background-color: rgba(44, 43, 43, 0.8); /* Прозрачный цвет */
  padding: 15px; /* Reduced padding */
  border-radius: 8px;
  flex: 1;
  max-width: 200px; /* Slightly smaller width */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #ff4a56; 
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.service img {
  max-width: 50px; /* Slightly smaller image size */
  margin-bottom: 10px;
}

.service h4 {
  color: #ff4a56;
  margin: 10px 0;
  font-size: 1.2em; /* Slightly smaller font size */
}

.service p {
  color: #f4f4f4;
  font-size: 0.9em; /* Slightly smaller font size */
}

/* Testimonials Section */
.testimonials-section {
  background-color: rgba(28, 28, 28, 0.8); /* Прозрачный цвет */
  padding: 50px 20px;
  text-align: center;
}

.testimonial {
  margin-bottom: 20px;
}

/* Footer */
footer {
  background-color: rgba(43, 43, 43, 0.8); /* Прозрачный цвет */
  color: #f4f4f4;
  text-align: center;
  padding: 15px;
  margin-top: 20px;
}

.car-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  max-width: 300px; /* Control max width */
  margin: 0 auto; /* Center card within column */
}

.car-card-img img {
  width: 100%; /* Ensure the image takes full width */
  height: auto; /* Maintain aspect ratio */
}

.car-card-content {
  padding: 16px; /* Adjust padding for content */
}

.car-type {
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
}

.car-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.car-price {
  font-size: 20px;
  color: #ff4a56;
}

.view-details {
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
}

.review-score {
  font-weight: 500;
}

.star-icon {
  color: #ff4a56;
}





 /* Универсальные стили для слайдера */
 /* Универсальные стили для слайдера */
 .custom-slider {
  position: relative;
  max-width: 800px; /* Ширина слайдера */
  margin: auto;
  overflow: hidden;
  border-radius: 15px; /* Закругление углов слайдера */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Тень для слайдера */
}

.custom-slides {
  display: flex; /* Горизонтальное выравнивание */
  transition: transform 0.5s ease-in-out; /* Плавный переход */
}

.custom-slide {
  min-width: 100%; /* Каждое изображение занимает всю ширину слайдера */
  box-sizing: border-box; /* Учет отступов и границ в ширине */
}

.custom-slide img {
  width: 100%; /* Изображение адаптируется под ширину слайдера */
  height: auto; /* Поддержка соотношения сторон */
  border-radius: 15px; /* Закругление углов изображений */
}

.custom-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7); /* Полупрозрачный фон кнопок */
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  border-radius: 5px; /* Закругление углов кнопок */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Тень для кнопок */
}

.custom-prev {
  left: 10px;
}

.custom-next {
  right: 10px;
}

.custom-dots {
  text-align: center;
  margin-top: 10px;
}

.custom-dot {
  display: inline-block;
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #bbb; /* Цвет неактивной точки */
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.custom-dot.active {
  background-color: #717171; /* Цвет активной точки */
}
body.modal-open {
  overflow: hidden; /* Блокує прокручування основної сторінки */
}