/* Основные стили баннера */
.custom-cover-banner {
  position: relative;
  background-image: url('https://diagnostika-avtomobilya69.ru/wp-content/uploads/2024/06/httpsdiagnostika-avtomobilya69.ru-4-1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 730px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  margin-bottom: 0;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #848f96;
  opacity: 0.9;
  z-index: 1;
}

.banner-first-row,
.banner-second-row {
  position: relative;
  z-index: 2;
}

/* Стили заголовка */
.banner-heading {
  font-size: 34px;
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  font-weight: bold;
  line-height: 1.3;
}

.banner-alert {
  background-color: #cf2e2e;
  color: #ffffff;
  padding: 12px 25px;
  display: inline-block;
  font-size: 16px;
  border-radius: 4px;
  margin: 0;
  text-shadow: none;
}

/* Стили секции с услугами */
.banner-section-info {
  background: rgba(255,255,255,0.95);
  padding: 35px;
  border-radius: 8px;
  margin-top: 40px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.services-heading {
  color: #333;
  text-align: center;
  margin-bottom: 30px;
  font-size: 32px;
  font-weight: bold;
}

.services-prices {
  text-align: center;
}

.banner-col-1,
.banner-col-2,
.banner-col-3 {
  padding: 20px 15px;
  border-right: 1px solid #eee;
}

.banner-col-3 {
  border-right: none;
}

.banner-col-1 p:first-child,
.banner-col-2 p:first-child,
.banner-col-3 p:first-child {
  font-weight: bold;
  font-size: 20px;
  color: #333;
  margin-bottom: 8px;
}

.price {
  font-size: 18px;
  color: #cf2e2e;
  font-weight: bold;
  margin: 0;
}

/* Стили второй секции */
.custom-performance-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.performance-img {
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-width: 100%;
  height: auto;
}

.final-image {
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-width: 90%;
}

.performance-main-heading {
  color: #333;
  font-size: 26px;
  margin-bottom: 25px;
  font-weight: bold;
  line-height: 1.4;
}

.performance-subheading {
  color: #333;
  font-size: 24px;
  margin: 35px 0 20px;
  font-weight: bold;
  border-left: 4px solid #cf2e2e;
  padding-left: 15px;
}

.service-category {
  color: #444;
  font-size: 20px;
  margin: 30px 0 15px;
  font-weight: bold;
  padding-bottom: 8px;
  border-bottom: 2px solid #e9ecef;
}

.diagnostics-list,
.service-list {
  padding-left: 25px;
  margin-bottom: 30px;
}

.diagnostics-list li,
.service-list li {
  margin-bottom: 12px;
  color: #555;
  line-height: 1.5;
  font-size: 15px;
}

/* Стили таблиц */
.diagnostics-table,
.service-table {
  margin: 25px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.diagnostics-table th,
.service-table th {
  background-color: #343a40;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 12px 8px;
}

.diagnostics-table td,
.service-table td {
  padding: 10px 8px;
  vertical-align: middle;
}

.diagnostics-table tbody tr:nth-child(even),
.service-table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.diagnostics-table tbody tr:hover,
.service-table tbody tr:hover {
  background-color: #e9ecef;
}

.contact-info {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  padding: 30px;
  border-radius: 8px;
  border-left: 5px solid #cf2e2e;
  margin: 30px 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-info p {
  font-size: 17px;
  margin: 0;
  line-height: 1.8;
}

.content-separator {
  margin: 40px 0;
  border-top: 2px solid #dee2e6;
  height: 0;
}

.price-note {
  font-style: italic;
  color: #6c757d;
  text-align: center;
  font-size: 14px;
  margin-top: 30px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
}

/* Анимации */
.wow {
  visibility: hidden;
}

.zoomIn {
  animation: zoomIn 1s both;
}

.slideInLeft {
  animation: slideInLeft 1s both;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

@keyframes slideInLeft {
  from {
    transform: translate3d(-100%, 0, 0);
    visibility: visible;
    opacity: 0;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

/* Адаптивность */
@media (max-width: 1200px) {
  .banner-heading {
    font-size: 30px;
  }
}

@media (max-width: 992px) {
  .custom-cover-banner {
    min-height: 650px;
  }
  
  .banner-heading {
    font-size: 26px;
  }
  
  .services-heading {
    font-size: 28px;
  }
  
  .performance-main-heading {
    font-size: 22px;
  }
  
  .performance-subheading {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .custom-cover-banner {
    min-height: 600px;
  }
  
  .banner-heading {
    font-size: 22px;
    margin-bottom: 15px;
  }
  
  .banner-alert {
    font-size: 14px;
    padding: 10px 20px;
  }
  
  .banner-section-info {
    padding: 25px 20px;
    margin-top: 30px;
  }
  
  .services-heading {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .banner-col-1,
  .banner-col-2,
  .banner-col-3 {
    margin-bottom: 20px;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding: 15px 10px;
  }
  
  .banner-col-3 {
    border-bottom: none;
  }
  
  .custom-performance-section {
    padding: 50px 0;
  }
  
  .performance-main-heading {
    font-size: 20px;
  }
  
  .performance-subheading {
    font-size: 18px;
  }
  
  .service-category {
    font-size: 17px;
  }
  
  .diagnostics-list li,
  .service-list li {
    font-size: 14px;
  }
  
  .table-responsive {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .custom-cover-banner {
    min-height: 500px;
  }
  
  .banner-heading {
    font-size: 18px;
  }
  
  .banner-alert {
    font-size: 13px;
    padding: 8px 15px;
  }
  
  .banner-section-info {
    padding: 20px 15px;
    margin-top: 20px;
  }
  
  .services-heading {
    font-size: 20px;
  }
  
  .banner-col-1 p:first-child,
  .banner-col-2 p:first-child,
  .banner-col-3 p:first-child {
    font-size: 17px;
  }
  
  .price {
    font-size: 16px;
  }
  
  .performance-main-heading {
    font-size: 18px;
  }
  
  .performance-subheading {
    font-size: 16px;
    margin: 25px 0 15px;
  }
  
  .contact-info {
    padding: 20px;
  }
  
  .contact-info p {
    font-size: 15px;
  }
}

/* Улучшения для печати */
@media print {
  .custom-cover-banner {
    background: #fff !important;
    color: #000 !important;
    min-height: auto !important;
  }
  
  .banner-overlay {
    display: none;
  }
  
  .banner-alert {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #000;
  }
  
  .img-responsive {
    max-width: 100% !important;
    height: auto !important;
  }
}