/* Основная палитра под красно-чёрный стиль */
:root {
  --primary-color: #cc2c2c; /* Красный */
  --dark-color: #111;       /* Чёрный */
  --light-color: #f9f9f9;   /* Светлый фон */
  --gray-color: #eeeeee;
  --text-color: #333;
  --transition: 0.3s ease;
}

/* Сброс */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

/* HEADER */
.header {
  background-color: var(--dark-color);
  color: white;
  padding: 1rem 2rem;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  max-width: 120px;
  height: auto;
}

.contact-info {
  text-align: right;
  font-size: 0.9rem;
}

.contact-info .highlight {
  color: var(--primary-color);
  font-weight: bold;
}

.contact-info .email {
  color: var(--primary-color);
  text-decoration: none;
}

/* Навигация */
.navbar {
  background-color: #222;
  padding: 0.5rem;
  margin-top: 1rem;
}

.navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
}

.navbar li {
  margin: 0 1.5rem;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
}

.navbar a:hover {
  color: var(--primary-color);
}

/* HERO */
.hero {
  background: url('img/truck-bg.jpg') no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 5rem 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 5px;
  transition: var(--transition);
  display: inline-block;
}

.btn:hover {
  background-color: #a72323;
}

/* WHY US */
.why-us {
  background-color: #f2f2f2;
  padding: 3rem 2rem;
  text-align: center;
}

.why-us h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature {
  background-color: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
}

.feature img {
  width: 40px;
  margin-bottom: 1rem;
}

.feature h3 {
  color: var(--dark-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* SERVICES */
.services {
  padding: 3rem 2rem;
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.services-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.services-list li {
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.services-list li:hover {
  text-decoration: underline;
}

/* Активная услуга */
.services-list li.active-service {
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
}

.services-list li.active-service::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 1px;
}

/* Описание услуги */
.service-description {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.service-description p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Кнопка внутри описания */
.btn.static-width {
  width: 320px;
  max-width: 90%;
  min-height: 60px;
  text-align: center;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  line-height: 1.4;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}


/* FOOTER */
.footer {
  background-color: var(--dark-color);
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
}

.footer-logo {
  max-width: 90px;
  margin-bottom: 0.5rem;
}

.footer .highlight {
  color: var(--primary-color);
}

.footer .email {
  color: var(--primary-color);
  text-decoration: none;
}

/* Адаптивность */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .navbar ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .services-list {
    flex-direction: column;
    align-items: center;
  }
}
/* ====== SERVICES PAGE ====== */
.services-page {
  padding: 3rem 2rem;
  background-color: var(--light-color);
}

.services-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.services-intro h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.services-intro p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: var(--text-color);
}

/* Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Service Cards */
.service-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.service-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--dark-color);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.service-card p {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

/* Кнопка */
.service-card .btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.service-card .btn:hover {
  background-color: #a72323;
}

/* Highlight активной страницы в меню */
.navbar a.active {
  color: var(--primary-color);
  text-decoration: underline;
}
/* === Diagnostic Page === */
/* Diagnostic Page Hero */
.diagnostic-hero {
  background: url('img/diagnostica.jpg') no-repeat center center/cover;
  padding: 6rem 2rem;
  color: white;
  position: relative;
  text-align: center;
}

.diagnostic-hero .overlay {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 4rem 2rem;
  border-radius: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.diagnostic-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.diagnostic-hero p {
  font-size: 1.2rem;
}

/* Diagnostic Page Main */
.diagnostic-page {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--light-color);
}

.diagnostic-page h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.diagnostic-list {
  list-style: disc inside;
  padding-left: 1rem;
  margin-bottom: 3rem;
}

.diagnostic-list li {
  margin-bottom: 0.6rem;
}

/* FAQ */
.faq {
  margin-bottom: 3rem;
}

.faq-item {
  background-color: #fff;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: var(--transition);
  cursor: pointer;
}

.faq-question {
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  display: none;
  margin-top: 0.7rem;
  color: var(--text-color);
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .arrow {
  transform: rotate(45deg);
}

/* Заявка */
.request-form {
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.request-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.request-form input,
.request-form textarea {
  padding: 0.8rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.request-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Кнопка назад */
.back-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.7rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: var(--transition);
}

.back-button:hover {
  background-color: #a72323;
}
.diagnostic-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.feature-item {
  background-color: #fff;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.06);
}

.feature-item img {
  width: 36px;
  height: 36px;
}

.feature-item p {
  font-size: 1rem;
  color: var(--text-color);
  margin: 0;
}

.price-title {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  text-align: center;
}

.diagnostic-price {
  background-color: #fff;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 3rem;
}

.diagnostic-price p {
  font-size: 1.1rem;
  margin: 0.4rem 0;
}

.diagnostic-price strong {
  color: var(--primary-color);
  font-weight: 700;
}
.capital-hero {
  background: url('img/repair.jpg') no-repeat center center/cover;
  padding: 6rem 2rem;
  color: white;
  position: relative;
  text-align: center;
}

.capital-hero .overlay {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 4rem 2rem;
  border-radius: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.capital-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.capital-hero p {
  font-size: 1.2rem;
}
.suspension-hero {
  background: url('img/suspension.jpg') no-repeat center center/cover;
  padding: 6rem 2rem;
  color: white;
  position: relative;
  text-align: center;
}
.welding-hero {
  background: url('img/welding.jpg') no-repeat center center/cover;
  padding: 6rem 2rem;
  color: white;
  position: relative;
  text-align: center;
}

.welding-hero .overlay {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 4rem 2rem;
  border-radius: 10px;
  max-width: 900px;
  margin: 0 auto;
}
.brakes-hero {
  background: url('img/brakes.jpg') no-repeat center center/cover;
  position: relative;
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  z-index: 1;
  overflow: hidden;
}

.brakes-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Полупрозрачный чёрный */
  z-index: -1;
}

.pneumo-hero {
  background: url('img/pneumo.jpg') no-repeat center center/cover;
  padding: 6rem 2rem;
  color: white;
  position: relative;
  text-align: center;
}
.pneumo-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.4); /* можно 0.5 если нужно сильнее */
  z-index: 1;
}

/* чтобы текст был поверх затемнения */
.pneumo-hero h1,
.pneumo-hero p {
  position: relative;
  z-index: 2;
}

.electrics-hero {
  background: url('img/electrics.jpg') no-repeat center center/cover;
  padding: 6rem 2rem;
  color: white;
  position: relative;
  text-align: center;
}
.oils-hero {
  background: url('img/oils.jpg') no-repeat center center/cover;
  padding: 6rem 2rem;
  color: white;
  position: relative;
  text-align: center;
}
.oils-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.3); /* Уровень затемнения */
  z-index: 1;
}

/* Обязательно поднимаем текст над затемнением */
.oils-hero h1,
.oils-hero p {
  position: relative;
  z-index: 2;
}

/* Выравнивание карточек услуг */
.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-card p {
  flex-grow: 1;
}

/* Выровненные карточки с иконками и кнопками */
.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
}

.service-content img {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.service-content h3 {
  color: var(--dark-color);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  text-align: center;
}

.service-content p {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ==== PARTS PAGE ==== */
.parts-hero {
  background: url('img/parts.jpg') no-repeat center center/cover;
  padding: 6rem 2rem;
  color: white;
  text-align: center;
  position: relative;
}
.parts-hero .overlay {
  background-color: rgba(0,0,0,0.5);
  padding: 4rem 2rem;
  border-radius: 10px;
  max-width: 900px;
  margin: 0 auto;
}
.parts-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.parts-hero p {
  font-size: 1.2rem;
}

.parts-info {
  background-color: var(--light-color);
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.parts-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.parts-info ul {
  list-style: disc inside;
  font-size: 1.1rem;
  color: var(--text-color);
}
.parts-info li {
  margin-bottom: 0.6rem;
}

.parts-request {
  background-color: white;
  padding: 3rem 2rem;
  max-width: 700px;
  margin: 3rem auto;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}
.parts-request h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.parts-request form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.parts-request input,
.parts-request textarea {
  padding: 0.8rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
.parts-request textarea {
  resize: vertical;
  min-height: 100px;
}
.parts-request .btn {
  align-self: center;
}
.parts-hero {
  background: url('img/parts-hero.jpg') no-repeat center center/cover;
  padding: 6rem 2rem;
  color: white;
  text-align: center;
  position: relative;
}

.parts-hero .overlay {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 4rem 2rem;
  border-radius: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.parts-page {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.parts-page h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.parts-list {
  list-style: disc inside;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.brands-block {
  text-align: center;
  margin-bottom: 3rem;
}

.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.benefit-card {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  max-width: 280px;
}

.benefit-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.benefit-card h3 {
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.parts-gallery h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  background-color: #fff;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.contact-hero {
  background: url('img/contact-hero.jpg') no-repeat center center/cover;
  padding: 6rem 2rem;
  color: white;
  text-align: center;
  position: relative;
}

.contact-hero .overlay {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 4rem 2rem;
  border-radius: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-page {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.contact-info-block, .contact-form {
  flex: 1 1 48%;
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input, .contact-form textarea {
  padding: 0.8rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-map {
  margin-top: 3rem;
  border-radius: 10px;
  overflow: hidden;
}
/* ==== МОДАЛЬНОЕ ОКНО ==== */
.modal {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-content h2 {
  margin-bottom: 1rem;
  text-align: center;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-content input,
.modal-content textarea {
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.modal-content textarea {
  min-height: 100px;
  resize: vertical;
}

.close-modal {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}
.parts-list {
  list-style-type: disc;
  padding-left: 20px;
}

.parts-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
}

.parts-list li::marker {
  color: #d62828; /* Красный цвет из логотипа */
  font-size: 1.2em;
}
.brands-section {
  text-align: center;
  margin: 60px 0 40px;
}

.brands-section h2 {
  font-size: 2em;
  margin-bottom: 10px;
}

.brands-section p {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #444;
}

.brands-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 0 20px;
}

.brands-logos img {
  height: 40px;
  max-width: 120px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brands-logos img:hover {
  transform: scale(1.1);
}



.brands-note {
  font-size: 0.95em;
  color: #666;
  margin-top: 20px;
  text-align: center;
  font-style: italic;
}

.map-wrapper {
  margin-top: 30px;
  overflow: hidden;
  border-radius: 20px;
}
.store-section {
  padding: 50px 20px;
  background-color: #f9f9f9;
}

.store-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 15px;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
}

.price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #c00000;
  margin-bottom: 15px;
  display: block;
}
/* Центрирование заголовков категорий магазина */
.store-category h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

/* Ограничение ширины карточки товара */
.store-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  padding: 20px;
  max-width: 300px;
  width: 100%;
  text-align: center;
  transition: transform 0.2s;
}

.product-card img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
}
.gallery-item {
  text-decoration: none;
  color: inherit;
}
.gallery-item p {
  margin-top: 10px;
}

.product-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
}

.product-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.product-card p {
  color: #555;
  margin-bottom: 10px;
}

.product-card .price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #c00000;
}

.store-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

.product-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: left;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.product-card p {
  margin-bottom: 5px;
  color: #555;
}




/* Карточки в 4 колонки */
.store-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

/* Бейдж с пометкой */
.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #d32f2f;
  color: white;
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 5px;
  z-index: 2;
}

.product-card {
  position: relative;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 20px;
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.product-card p {
  margin: 5px 0;
  color: #555;
}



.store-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}


.product-card {
  position: relative;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 20px;
  transition: transform 0.3s;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.product-card p {
  margin: 5px 0;
  color: #555;
}


/* Бейдж для пометки */
.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #d32f2f;
  color: white;
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 5px;
  z-index: 2;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #d9534f;
  color: white;
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 4px;
}

.btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.btn.small-btn {
  padding: 5px 15px;
  font-size: 14px;
}

.store-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}


.product-card {
  position: relative;
  background-color: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.product-card:hover {
  transform: scale(1.03);
}

.product-card h3 {
  margin-bottom: 10px;
}



.label {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #d9534f;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 5px;
}

.product-card {
  position: relative;
  border-radius: 8px;
  padding: 15px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #d9534f;
  color: white;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 4px;
}

.product-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 10px;
}



/* Стили карточек товаров */
.product-card {
    position: relative;
    width: 250px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.product-card .buy-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
    width: 150px;
    height: 40px;
    font-size: 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease;
}

.product-card .buy-button:hover {
    background-color: darkred;
}

/* Метка "Требует уточнения" */
.requires-clarification::before {
    content: "Требует уточнения";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

/* Центрирование списка товаров */
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.product-card {
    position: relative;
    width: 250px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 15px;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.product-card p {
    margin: 2px 0;
}

.product-card button:not(.qty-btn) {
    margin-top: 10px;
    width: 100%;
    height: 40px;
    background-color: #d9534f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.product-card .badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: red;
    color: white;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 3px;
    z-index: 10;
}

.product-card {
    position: relative;
    width: 250px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 15px;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.product-card p {
    margin: 2px 0;
}

.product-card button:not(.qty-btn) {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 40px;
    background-color: #d9534f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.product-card .badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: red;
    color: white;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 3px;
    z-index: 10;
}

.btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.btn.small-btn {
  padding: 5px 15px;
  font-size: 14px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #d9534f;
  color: white;
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 4px;
}

.btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.btn.small-btn {
  padding: 5px 15px;
  font-size: 14px;
}

/* Исправляем конфликт и восстанавливаем вид кнопок */
.product-card .btn {
    display: block;
    width: 150px; /* Ширина как на скрине */
    height: 35px; /* Высота тонкая, как на скрине */
    background-color: #d9534f;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: normal;
    margin: 10px auto;
    cursor: pointer;
    transition: 0.3s ease;
}

.product-card .btn:hover {
    background-color: #c9302c;
}


.btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* === Исправление стиля кнопок в карточках === */
.btn.small-btn {
    display: inline-block !important;
    padding: 5px 15px !important;
    font-size: 14px !important;
    background-color: #d9534f !important; /* Яркий красный цвет */
    color: white !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    transition: 0.3s ease !important;
    width: 150px !important;
    height: 35px !important;
    margin: 0 auto !important;
}

/* Hover-эффект */
.btn.small-btn:hover {
    background-color: #c9302c !important;
}


/* Секция с фоновым изображением для страницы магазина */
.store-hero {
    background-image: url('img/store-hero.jpg'); /* Путь к твоему изображению */
    background-size: cover;
    background-position: center;
    height: 400px;
    position: relative;
    margin-bottom: 20px;
}

/* Прозрачная плашка поверх */
.store-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Прозрачный блок с текстом */
.transparent-box {
    background-color: rgba(0, 0, 0, 0.5); /* Прозрачность 50% */
    padding: 20px 40px;
    border-radius: 10px;
    max-width: 800px;
    text-align: center;
    color: white;
}

/* Стили заголовка и текста */
.transparent-box h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.transparent-box p {
    font-size: 18px;
    line-height: 1.4;
}

#cart-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff;
  color: #000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  border-radius: 10px;
  width: 260px;
  z-index: 9999;
  font-size: 14px;
  overflow: hidden;
}

.cart-popup-content {
  padding: 15px;
}

.cart-popup-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cart-popup-item button {
  background: none;
  border: none;
  color: red;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
}

.cart-popup-footer {
  margin-top: 10px;
  text-align: center;
}

#cart-icon {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #d32f2f;
  color: white;
  font-size: 24px;
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 10000;
  transition: background-color 0.3s;
}

#cart-icon:hover {
  background-color: #b71c1c;
}


#cart-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #d32f2f;
  color: white;
  font-size: 24px;
  border: none;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 10000;
  transition: background-color 0.3s;
}

#cart-icon:hover {
  background-color: #b71c1c;
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: white;
  color: red;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 14px;
  display: none;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.quantity-btn {
  background-color: #d9534f;
  border: none;
  color: white;
  font-weight: bold;
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.quantity-btn:hover {
  background-color: #c9302c;
}

.quantity-value {
  font-size: 16px;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

/* Контейнер выравнивает кнопки и число */
.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

/* Кнопки + и - */
.qty-btn {
  background-color: #d9534f;
  color: white;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s;
}

.qty-btn:hover {
  background-color: #c9302c;
}

.qty-value {
  font-size: 16px;
  min-width: 20px;
  text-align: center;
}

/* Модальное окно */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.modal-content {
  background: white;
  padding: 30px 20px;
  border-radius: 10px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

/* Скрытие */
.hidden {
  display: none !important;
}


.cart-item {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc;
}

.cart-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
}

.cart-line .qty-btn {
  padding: 3px 10px;
  font-size: 14px;
  background: #d9534f;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.cart-line .qty-value {
  min-width: 20px;
  text-align: center;
}

.btn.small-btn {
  padding: 5px 10px;
  font-size: 14px;
  margin-top: 8px;
}


/* Список вместо сетки в корзине */
.vertical-list {
  display: block !important;
}

.vertical-list .product-card {
  width: 100% !important;
  max-width: none !important;
  margin: 10px 0 !important;
}


.controls input,
.controls select {
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: border-color 0.2s ease-in-out;
}

.controls input:focus,
.controls select:focus {
  border-color: #c00;
  outline: none;
}


/* ——— Пагинация ——— */
.pagination-controls {
  gap: 12px;
  flex-wrap: wrap;
}

.pagination-btn {
  min-width: 52px;
  padding: 8px 18px;
  font-size: 16px;
  border: 2px solid #d33;
  border-radius: 6px;
  background: #fff;
  color: #d33;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.pagination-btn:hover {
  background: #d33;
  color: #fff;
}

.pagination-btn.active {
  background: #d33;
  color: #fff;
  cursor: default;
}

.pagination-controls .dots {
  align-self: center;
  font-size: 20px;
  color: #999;
}


/* —— Табличная корзина —— */
.cart-table          { width:100%; border-collapse:collapse; margin-bottom:20px; }
.cart-table th,
.cart-table td       { padding:10px; border-bottom:1px solid #eee; text-align:left; }
.cart-table th       { background:#f7f7f7; font-weight:600; }
.quantity-group      { display:flex; align-items:center; gap:6px; }
.quantity-btn        { width:28px; height:28px; line-height:26px;
                       border:none; border-radius:4px; background:#d33;
                       color:#fff; cursor:pointer; }
.remove-btn          { color:#d33; cursor:pointer; background:none;
                       border:none; text-decoration:underline; }
.total-line          { font-size:20px; font-weight:600; margin:15px 0; }


/* — поле с ошибкой — */
.input-error{ border:2px solid #d33 !important; }

/* — toast сообщение — */
.toast{
  position:fixed;left:50%;bottom:30px;transform:translateX(-50%) translateY(100%);
  background:#d33;color:#fff;padding:12px 22px;border-radius:8px;
  box-shadow:0 4px 12px rgba(0,0,0,.25);opacity:0;transition:all .3s;
  z-index:10000;font-size:16px;
}
.toast.show{transform:translateX(-50%) translateY(0);opacity:1;}

/* поля с ошибкой */
.input-error { border:2px solid #d33 !important; }

/* текст-ошибка под полем */
.error-msg   { color:#d33; font-size:14px; display:none; margin-top:4px; }
.error-msg.show{ display:block; }

/* toast-уведомления */
.toast{
  position:fixed; left:50%; bottom:30px; transform:translate(-50%,100%);
  padding:12px 24px; border-radius:8px; color:#fff; font-size:16px;
  box-shadow:0 4px 12px rgba(0,0,0,.25); opacity:0; transition:all .3s;
  z-index:10000;
}
.toast.show{ transform:translate(-50%,0); opacity:1; }

.toast-success{ background:#4caf50; }
.toast-warn   { background:#666; }

@media (max-width: 768px) {
  .navbar {
    background-color: transparent;
    margin-top: 1rem;
    padding: 0;
  }

  .navbar ul {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
  }

  .navbar li {
    margin: 0;
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
  }

  .navbar li:first-child {
    border-top: none;
  }

  .navbar a {
    display: block;
    padding: 0.5rem;
    font-size: 1.1rem;
  }

  .header-top {
    text-align: center;
  }

  .contact-info {
    text-align: center;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .parts-info {
    padding: 2rem 1rem;         /* Уменьшаем боковые отступы */
    max-width: 100%;            /* Разрешаем занимать всю ширину */
  }

  .parts-info h2 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
  }

  .parts-info ul {
    padding-left: 1.2rem;
    font-size: 1rem;
    line-height: 1.5;
  }

  .parts-list li {
    padding-left: 0.2rem;
  }
}

@media (max-width: 768px) {
  .cart-table {
    display: block;
    overflow-x: auto;
    width: 100%;
  }

  .cart-table table,
  .cart-table thead,
  .cart-table tbody,
  .cart-table th,
  .cart-table td,
  .cart-table tr {
    display: block;
  }

  .cart-table tr {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
  }

  .cart-table td,
  .cart-table th {
    padding: 8px;
    text-align: left;
  }

  .cart-table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: inline-block;
    width: 120px;
  }

  .cart-table th {
    display: none; /* Скрываем заголовки */
  }
}

@media (max-width: 768px) {
  .navbar {
    background-color: #1a1a1a;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin: 1rem auto;
    width: 90%;
    padding: 0.5rem 0;
  }

  .navbar ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .navbar li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar li:first-child {
    border-top: none;
  }

  .navbar a {
    padding: 0.8rem;
    display: block;
    text-align: center;
    font-size: 1.1rem;
  }
}
