/* ============================================
   TAXI755 - CLASS-DETAILS.CSS ОБНОВЛЕННЫЙ
   Стили для детальных страниц классов автомобилей
   Поддержка всех новых классов включая групповые перевозки
   ============================================ */

/* =============================================
   1. ДЕТАЛЬНАЯ СТРАНИЦА КЛАССА
   ============================================= */

.economy-class-page,
.comfort-class-page,
.business-class-page,
.universal-class-page,
.minivan-6-class-page,
.minivan-7-class-page,
.minivan-8-class-page,
.microbus-14-class-page,
.microbus-17-class-page,
.microbus-19-class-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   2. HERO СЕКЦИЯ КЛАССА
   ============================================= */

.class-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 50px 0;
  text-align: center;
  border-radius: 20px;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}

.class-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--class-color, #28a745);
}

/* ОБНОВЛЕННЫЕ ЦВЕТА ДЛЯ HERO СЕКЦИЙ */
.class-hero.economy::before {
  background: #28a745;
}
.class-hero.comfort::before {
  background: #ffd700;
}
.class-hero.business::before {
  background: #6f42c1;
}
.class-hero.universal::before {
  background: #17a2b8;
}
.class-hero.minivan-6::before {
  background: #20c997;
}
.class-hero.minivan-7::before {
  background: #fd7e14;
}
.class-hero.minivan-8::before {
  background: #e83e8c;
}
.class-hero.microbus-14::before {
  background: #6610f2;
}
.class-hero.microbus-17::before {
  background: #dc3545;
}
.class-hero.microbus-19::before {
  background: #1a1e21;
}

.class-hero-title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 15px;
  font-weight: 700;
}

.class-hero-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
}

.price-label {
  font-size: 1.1rem;
  color: #666;
}

.price-value {
  font-size: 2.5rem;
  color: var(--class-color, #28a745);
}

/* =============================================
   3. ДЕТАЛИ КЛАССА
   ============================================= */

.class-details {
  margin-bottom: 50px;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.car-showcase {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.car-image {
  margin-bottom: 25px;
}

.car-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.car-info h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.car-models {
  list-style: none;
  padding: 0;
}

.car-models li {
  padding: 8px 0;
  color: #555;
  border-bottom: 1px solid #eee;
  font-weight: 500;
}

.car-models li:last-child {
  border-bottom: none;
}

.class-features {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.class-features h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  padding: 10px 0;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.features-list li::before {
  content: "✓";
  color: #28a745;
  font-weight: bold;
  font-size: 1.1rem;
}

/* =============================================
   4. СЕКЦИИ ТАРИФОВ
   ============================================= */

.pricing-section {
  margin-bottom: 50px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: #333;
  margin-bottom: 30px;
  font-weight: 700;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--class-color, #28a745);
  border-radius: 2px;
}

/* =============================================
   5. ТАРИФЫ ПО ГОРОДУ
   ============================================= */

.city-pricing {
  display: flex;
  justify-content: center;
}

.pricing-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  border-top: 4px solid var(--class-color, #28a745);
}

.pricing-card h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.4rem;
  text-align: center;
}

.pricing-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.price-item:last-child {
  border-bottom: none;
}

.price-item .price-label {
  color: #666;
  font-weight: 500;
}

.price-item .price-value {
  color: var(--class-color, #28a745);
  font-weight: 700;
  font-size: 1.1rem;
}

/* =============================================
   6. ТАБЛИЦЫ ЦЕН
   ============================================= */

.pricing-table-container {
  overflow-x: auto;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.pricing-table th {
  background: var(--class-color, #28a745);
  color: white;
  padding: 15px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.pricing-table th:first-child {
  border-radius: 15px 0 0 0;
}

.pricing-table th:last-child {
  border-radius: 0 15px 0 0;
}

.pricing-table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 500;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody tr:hover {
  background: #f8f9fa;
}

.pricing-table .district {
  background: #f8f9fa;
  font-weight: 700;
  color: #333;
  text-align: center;
}

.pricing-table .price {
  color: var(--class-color, #28a745);
  font-weight: 700;
  font-size: 1.05rem;
}

/* =============================================
   7. ДОПОЛНИТЕЛЬНЫЕ УСЛУГИ
   ============================================= */

.additional-services {
  background: #f8f9fa;
  padding: 50px 30px;
  border-radius: 20px;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.service-group {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.service-group h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.2rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--class-color, #28a745);
}

.services-list {
  list-style: none;
  padding: 0;
}

.services-list li {
  padding: 8px 0;
  color: #555;
  line-height: 1.5;
  font-size: 0.95rem;
}

.services-list li::before {
  content: "•";
  color: var(--class-color, #28a745);
  font-weight: bold;
  display: inline-block;
  width: 15px;
}

/* =============================================
   8. ОСОБЫЕ БЛОКИ ДЛЯ УНИВЕРСАЛА И ГРУППОВЫХ
   ============================================= */

/* Блок преимуществ универсала */
.universal-features,
.group-transport-features {
  background: #f8f9fa;
  padding: 60px 0;
  border-radius: 20px;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  padding: 0 30px;
}

.feature-card {
  background: white;
  padding: 30px 25px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--class-color);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--class-color);
}

.feature-card h4 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 600;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* =============================================
   9. СЕКЦИЯ ЗАКАЗА
   ============================================= */

.order-section {
  background: linear-gradient(
    135deg,
    var(--class-color, #28a745) 0%,
    var(--class-color-light, #34ce57) 100%
  );
  padding: 50px 30px;
  border-radius: 20px;
  margin-bottom: 50px;
  color: white;
  text-align: center;
}

.order-section .section-title {
  color: white;
  margin-bottom: 30px;
}

.order-section .section-title::after {
  background: rgba(255, 255, 255, 0.3);
}

.order-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.order-info h3,
.cont-info h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.order-info p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.2rem;
  background: white;
  color: var(--class-color, #28a745);
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.phone-number {
  color: white;
  font-weight: 700;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
}

.phone-number:hover {
  color: rgba(255, 255, 255, 0.8);
}

.phone-note {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* =============================================
   10. FAQ СЕКЦИЯ
   ============================================= */

.faq-section {
  margin-bottom: 50px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.faq-item {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--class-color, #28a745);
}

.faq-item h4 {
  color: #333;
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-item p {
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* =============================================
   11. ЦВЕТОВЫЕ СХЕМЫ ДЛЯ ВСЕХ КЛАССОВ
   ============================================= */

/* ОСНОВНЫЕ КЛАССЫ */
.economy-class-page {
  --class-color: #28a745;
  --class-color-light: #34ce57;
}

.comfort-class-page {
  --class-color: #ffd700;
  --class-color-light: #ffed4e;
}

.business-class-page {
  --class-color: #6f42c1;
  --class-color-light: #8e7cc3;
}

.universal-class-page {
  --class-color: #17a2b8;
  --class-color-light: #5bc0de;
}

/* ГРУППОВЫЕ ПЕРЕВОЗКИ */
.minivan-6-class-page {
  --class-color: #20c997;
  --class-color-light: #7bdcb5;
}

.minivan-7-class-page {
  --class-color: #fd7e14;
  --class-color-light: #ffb366;
}

.minivan-8-class-page {
  --class-color: #e83e8c;
  --class-color-light: #f082ac;
}

.microbus-14-class-page {
  --class-color: #6610f2;
  --class-color-light: #9354f5;
}

.microbus-17-class-page {
  --class-color: #dc3545;
  --class-color-light: #e57373;
}

.microbus-19-class-page {
  --class-color: #1a1e21;
  --class-color-light: #495057;
}

/* =============================================
   12. АДАПТИВНОСТЬ
   ============================================= */

@media (max-width: 768px) {
  .economy-class-page,
  .comfort-class-page,
  .business-class-page,
  .universal-class-page,
  .minivan-6-class-page,
  .minivan-7-class-page,
  .minivan-8-class-page,
  .microbus-14-class-page,
  .microbus-17-class-page,
  .microbus-19-class-page {
    padding: 0 15px;
  }

  .class-hero {
    padding: 40px 20px;
    margin-bottom: 40px;
  }

  .class-hero-title {
    font-size: 2rem;
  }

  .class-hero-subtitle {
    font-size: 1rem;
  }

  .hero-price .price-value {
    font-size: 2rem;
  }

  .details-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .pricing-table-container {
    margin: 0 -15px;
    border-radius: 0;
  }

  .pricing-table {
    font-size: 0.9rem;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 10px 8px;
  }

  .services-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .order-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .additional-services,
  .universal-features,
  .group-transport-features {
    padding: 40px 20px;
    margin-bottom: 40px;
  }

  .order-section {
    padding: 40px 20px;
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .class-hero {
    padding: 30px 15px;
  }

  .class-hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .pricing-card {
    padding: 20px;
  }

  .service-group,
  .feature-card {
    padding: 20px;
  }

  .faq-item {
    padding: 20px;
  }

  .btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    width: 100%;
  }

  .phone-number {
    font-size: 1.5rem;
  }
}

/* =============================================
   13. ИНТЕГРАЦИЯ С JOOMLA
   ============================================= */

/* Скрытие стандартных элементов Joomla для всех детальных страниц */
.com-content-article .economy-class-page .page-header,
.com-content-article .comfort-class-page .page-header,
.com-content-article .business-class-page .page-header,
.com-content-article .universal-class-page .page-header,
.com-content-article .minivan-6-class-page .page-header,
.com-content-article .minivan-7-class-page .page-header,
.com-content-article .minivan-8-class-page .page-header,
.com-content-article .microbus-14-class-page .page-header,
.com-content-article .microbus-17-class-page .page-header,
.com-content-article .microbus-19-class-page .page-header {
  display: none;
}

/* Стили для хлебных крошек */
.breadcrumb {
  background: transparent;
  padding: 15px 0;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--class-color, #28a745);
}

/* =============================================
   14. ПЕЧАТЬ
   ============================================= */

@media print {
  .class-hero,
  .order-section,
  .faq-section {
    display: none;
  }

  .pricing-table-container {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .pricing-table th {
    background: #f0f0f0 !important;
    color: #333 !important;
  }

  .service-group,
  .feature-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
