/* Сброс и общие стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

/* Шапка */
header {
  position: fixed;
  top: 0;
  font-family: 'Montserrat', sans-serif;
  width: 100%;
  background-color: #22333b;
  color: white;
  padding: 15px 30px;
  height: 9%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Логотип */
.logo {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Меню — общий контейнер */
nav {
  display: flex;
  align-items: center;
  gap: 50px;
}

/* Обёртка ссылок */
.nav-links {
  display: flex;
  gap: 20px;
}

nav a {
  color: #e9e9e4;
  text-decoration: none;
  margin-left: 0; /* убираем сторонний отступ, т.к. gap у .nav-links */
  font-weight: bold;
  transition: color 0.3s ease;
  font-size: 125%;
}

nav a:hover {
  color: #c1121f;
}

/* Кнопка “Оставить заявку” */
.cta-button {
  background-color: #c1121f;
  color: #e9e9e4;
  border: none;
  font-size: 100%;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.header-buttons {
  display: flex;
  gap: 30px; /* расстояние между кнопками */
}

/* Контент */
.content {
  padding: 4.5% 0px 30px;

}

section {
  margin-bottom: 50px;
  scroll-margin-top: 70px;
}

section h1,
section h2 {
  margin-bottom: 10px;
}

section p {
  max-width: 800px;
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  padding-top: 80px;
}

.modal-content {
  background-color: var(--bg-color);
  margin: auto;
  padding: 20px 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.modal-content h2 {
  margin-bottom: 15px;
}

.modal-content label {
  display: block;
  margin-top: 10px;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.modal-content button[type="submit"] {
  background-color: #c1121f;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  margin-top: 15px;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

/* 📱 Адаптация под мобильные устройства */
@media (max-width: 768px) {
  /* Шапка */
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  /* Логотип */
  .logo {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  /* Меню */
  nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  nav a {
    margin: 0;
    font-size: 0.95rem;
    text-align: center;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }

  /* Кнопка */
  .cta-button {
    width: 100%;
    margin-top: 10px;
    font-size: 1rem;
  }

  /* Контент */
  .content {
    padding: 120px 15px 30px;
  }

  section h1,
  section h2 {
    font-size: 1.4rem;
  }
}
/* Контакты */
#contacts {
  margin-top: 50px;
  font-size: 1.4rem;
  padding-left: 40px;


}

.contacts-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.contact-info {
  flex: 1 1 300px;
  font-size: 1.4rem;
  line-height: 1.6;
  font-family: 'Montserrat', sans-serif;
}

.contact-info p {
  margin-bottom: 15px;
}

.contact-info a {
  color: var(--text-info);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-map {
  flex: 1 1 300px;
  transform: translateX(-40px);
}

.map-placeholder {
  background-color: #e0e0e0;
  height: 300px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-style: italic;
}

/* Адаптация под мобильные устройства */
@media (max-width: 768px) {
  .contacts-container {
    flex-direction: column;
  }

  .map-placeholder {
    height: 250px;
  }
}
/* Анимация фуры на главной */
.truck-animation {
  position: relative;
  left: 0px;
  width: 100%;
  height: 700px;
  overflow: hidden;
  /*margin-top: -2%;*/
  background-color: #22333b;
}
.truck-text {
  font-size: 4rem;
  font-weight: bold;
  color: #e9e9e4;
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(100%);
  animation: drive-in-right 3.5s ease-out forwards;
  animation-delay: 0.5s;
}

.truck-text2 {
  font-size: 3.5rem;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  color: #c1121f;
  white-space: nowrap;
  opacity: 1;
  text-align: right;
  margin-right: 8%;
  margin-top: 6%;
}
hr {
  width: 100%;
  margin-top: 8%;
  color: #c1121f;
}
.mini-text{
  font-size: 1.8rem;
  /*font-weight: bold;*/
  font-family: 'Montserrat', sans-serif;
  color: #e9e9e4;
  white-space: nowrap;
  opacity: 1;
  display: flex;
  align-items: center;
  gap: 15%;
  margin-left: 14%;
  margin-top: 3.5%;
  text-align: center; 
}

.truck-img {
  position: absolute;
  left: -400px; /* начальная позиция за экраном */
  bottom: 22%;
  height: 500px;
  animation: drive-in 4s ease-out forwards;
}

@keyframes drive-in {
  0% {
    left: -400px;
  }
  100% {
    left: 30px;
  }
}
@keyframes drive-in-right {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    transform: translateX(10%);
  }
}
/*Направления*/
#routes {
  /*padding: 40px 30px;
  background-color: #fff;*/
  margin-top: 50px;
  font-size: 1.4rem;
  padding: 0px 40px;

}


.routes-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  
}

.routes-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.routes-gallery img:hover {
  transform: scale(1.05);
}


@media (max-width: 768px) {
  .truck-img {
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
    gap: 20px;
  }
  .price-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1024px) {
  .routes-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .routes-gallery {
    grid-template-columns: 1fr;
  }
}
/*Прайс*/
.price-section {
  padding: 40px 30px;
  /*background-color: #f5f5f5;*/
}

.price-section h2 {
  text-align: left;
  margin-bottom: 30px;
  font-size: 2rem;
  font-family: 'Montserrat', sans-serif;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.price-item {
  text-align: center;
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  color: #333;
}

.price-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
  max-height: 365px;
}

.price-item p {
  font-size: 1rem;
  color: #c1121f;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
}
.price-item h {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.7rem;
}
/* Кнопка переключения темы */
.theme-toggle-button {
  position: fixed;
  top: 80px; /* чуть ниже шапки */
  right: 20px;
  z-index: 999;
  background-color: #fff;
  color: #333;
  border: none;
  border-radius: 50%;
  padding: 10px 12px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: background-color 0.3s, color 0.3s;
}

[data-theme="dark"] .theme-toggle-button {
  background-color: #333;
  color: #fff;
}
:root {
  --bg-color: #e9e9e4;
  --text-color: #333;
  --text-info: #004080;
}

[data-theme="dark"] {
  --bg-color: #464544;
  --text-color: #f0f0f0;
  --text-info: #a7c1e1;
}

/*Логотип*/
.logo img {
  height: 65px;
  width: 75px;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.rotate {
  transform: rotateY(90deg);
}
/*Личный кабинет*/
.auth-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.auth-tabs button {
  margin: 0 10px;
  padding: 10px 20px;
  cursor: pointer;
}

.auth-tabs .active {
  background-color: #3f4e4f;
  color: #e9e9e4;
  border-radius: 5px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-form.hidden {
  display: none;
}
/*Отзывы*/
#reviews-section {
  margin-top: 50px;
  font-size: 1.4rem;
  padding-left: 40px;
}
#reviews-container {
  padding: 1em;
  max-width: 800px;
  margin: 40px auto;
}
.review {
  border-bottom: 1px solid #ccc;
  margin-bottom: 1em;
  padding-bottom: 1em;
  font-size: 18px;
}

.review-date {
  font-size: 0.9em;
  color: #666;
}
