/* ============================================
   TAXI755 - TARIFFS-MAIN.CSS ОБНОВЛЕННЫЙ
   Стили для основной страницы раздела "Тарифы"
   Интегрируется с базовым template.css
   ============================================ */

/* =============================================
   1. ОСНОВНАЯ СТРАНИЦА ТАРИФОВ
   ============================================= */

.tariffs-main-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============================================
   2. HERO СЕКЦИЯ ТАРИФОВ
   ============================================= */

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

.tariffs-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffd700, #ffa500, #ff6b35);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 2.8rem;
  color: #333;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

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

.hero-features {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 12px 20px;
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  color: #ffd700;
  font-size: 1.1rem;
}

/* =============================================
   3. ПРЕИМУЩЕСТВА ТАРИФОВ
   ============================================= */

.pricing-advantages {
  background: #fff;
  padding: 60px 0;
  margin-bottom: 60px;
}

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

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.advantage-card {
  text-align: center;
  padding: 30px 25px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid #ffd700;
}

.advantage-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.advantage-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ffd700;
}

.advantage-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333;
}

.advantage-text {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* =============================================
   4. ОСНОВНЫЕ КЛАССЫ АВТОМОБИЛЕЙ
   ============================================= */

.classes-overview {
  padding: 60px 0;
  background: #f8f9fa;
  border-radius: 20px;
  margin-bottom: 60px;
}

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

/* Сетка для основных классов (2 колонки) */
.classes-grid.basic-classes {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.class-overview-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.class-overview-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

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

/* ОБНОВЛЕННЫЕ ЦВЕТА ДЛЯ ОСНОВНЫХ КЛАССОВ */
.class-overview-card.economy::before {
  background: #28a745;
}
.class-overview-card.comfort::before {
  background: #ffd700;
}
.class-overview-card.business::before {
  background: #6f42c1;
}
.class-overview-card.universal::before {
  background: #17a2b8;
}

/* УБИРАЕМ УСТАРЕВШИЕ КЛАССЫ */
/* .class-overview-card.comfort-plus::before - УДАЛЕНО */
/* .class-overview-card.minivan::before - УДАЛЕНО */

.class-image {
  height: 200px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.class-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.class-overview-card:hover .class-image img {
  transform: scale(1.05);
}

.class-content {
  padding: 25px;
}

.class-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.class-description {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 0.95rem;
}

.class-price {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.price-from {
  font-size: 0.9rem;
  color: #666;
  font-weight: 400;
}

.price-value {
  color: var(--class-price-color, #ffd700);
}

/* ОБНОВЛЕННЫЕ ЦВЕТА ЦЕН ДЛЯ ОСНОВНЫХ КЛАССОВ */
.class-overview-card.economy .price-value {
  color: #28a745;
}
.class-overview-card.comfort .price-value {
  color: #ffd700;
}
.class-overview-card.business .price-value {
  color: #6f42c1;
}
.class-overview-card.universal .price-value {
  color: #17a2b8;
}

/* УБИРАЕМ УСТАРЕВШИЕ ЦВЕТА */
/* .class-overview-card.comfort-plus .price-value - УДАЛЕНО */
/* .class-overview-card.minivan .price-value - УДАЛЕНО */

.class-features {
  margin-bottom: 25px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #555;
  font-size: 0.9rem;
}

.feature-check {
  color: #28a745;
  font-size: 0.9rem;
  font-weight: bold;
  width: 16px;
  flex-shrink: 0;
}

.class-actions {
  display: flex;
  gap: 10px;
}

.class-actions .btn {
  flex: 1;
  text-align: center;
  font-size: 0.9rem;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-outline {
  background: transparent !important;
  color: #333 !important;
  border: 2px solid #ddd;
  text-decoration: none !important;
  display: inline-block;
}

.btn-outline:hover {
  background: transparent !important;
  border-color: #ffd700 !important;
  color: #ffd700 !important;
  transform: translateY(-2px);
  text-decoration: none !important;
}

.btn-outline:visited {
  color: #333 !important;
  background: transparent !important;
}

.btn-outline:hover:visited {
  color: #ffd700 !important;
  background: transparent !important;
}

.btn-outline:focus,
.btn-outline:active {
  background: transparent !important;
  color: #ffd700 !important;
  border-color: #ffd700 !important;
  text-decoration: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  color: #333;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* =============================================
   5. ГРУППОВЫЕ ПЕРЕВОЗКИ (НОВАЯ СЕКЦИЯ)
   ============================================= */

.group-transport {
  padding: 60px 0;
  background: linear-gradient(135deg, #f1f3f4 0%, #e8eaf6 100%);
  border-radius: 20px;
  margin-bottom: 60px;
}

.group-transport .section-title {
  color: #333;
}

.group-transport .section-title::after {
  background: linear-gradient(135deg, #6c757d, #495057);
}

.group-transport .section-subtitle {
  color: #666;
  max-width: 700px;
}

/* Сетка для групповых перевозок (3 колонки) */
.classes-grid.group-classes {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
  padding: 0 20px;
}

/* ЦВЕТА ДЛЯ ГРУППОВЫХ ПЕРЕВОЗОК */
.class-overview-card.minivan-6::before {
  background: #20c997;
}
.class-overview-card.minivan-7::before {
  background: #fd7e14;
}
.class-overview-card.minivan-8::before {
  background: #e83e8c;
}
.class-overview-card.microbus-14::before {
  background: #6610f2;
}
.class-overview-card.microbus-17::before {
  background: #dc3545;
}
.class-overview-card.microbus-19::before {
  background: #1a1e21;
}

/* ЦВЕТА ЦЕН ДЛЯ ГРУППОВЫХ ПЕРЕВОЗОК */
.class-overview-card.minivan-6 .price-value {
  color: #20c997;
}
.class-overview-card.minivan-7 .price-value {
  color: #fd7e14;
}
.class-overview-card.minivan-8 .price-value {
  color: #e83e8c;
}
.class-overview-card.microbus-14 .price-value {
  color: #6610f2;
}
.class-overview-card.microbus-17 .price-value {
  color: #dc3545;
}
.class-overview-card.microbus-19 .price-value {
  color: #1a1e21;
}

/* =============================================
   6. ИНФОРМАЦИЯ О ЗАКАЗЕ
   ============================================= */

.ordering-info {
  background: linear-gradient(135deg, #ffd700 0%, #ffc107 100%);
  padding: 50px 0;
  text-align: center;
  color: #333;
  border-radius: 20px;
  margin-bottom: 40px;
}

.ordering-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.ordering-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.order-methods {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.order-method {
  background: rgba(255, 255, 255, 0.25);
  padding: 20px 25px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-width: 140px;
  transition: transform 0.3s ease;
}

.order-method:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.35);
}

.order-method-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.order-method-title {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 1rem;
}

.order-method-text {
  font-size: 0.9rem;
  opacity: 0.9;
}

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

@media (max-width: 1024px) {
  .classes-grid.group-classes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tariffs-main-page {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-features {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .classes-grid,
  .classes-grid.basic-classes,
  .classes-grid.group-classes {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
  }

  .class-actions {
    flex-direction: column;
    gap: 8px;
  }

  .order-methods {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

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

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

  .group-transport {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .tariffs-hero {
    padding: 40px 20px;
    margin-bottom: 40px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

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

  .classes-overview,
  .pricing-advantages,
  .group-transport {
    padding: 40px 20px;
    margin-bottom: 40px;
  }

  .class-overview-card,
  .advantage-card {
    margin: 0;
  }

  .class-price {
    font-size: 1.5rem;
  }
}

/* =============================================
   8. АНИМАЦИИ И ЭФФЕКТЫ
   ============================================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.class-overview-card {
  animation: fadeInUp 0.6s ease forwards;
}

.class-overview-card:nth-child(1) {
  animation-delay: 0.1s;
}
.class-overview-card:nth-child(2) {
  animation-delay: 0.2s;
}
.class-overview-card:nth-child(3) {
  animation-delay: 0.3s;
}
.class-overview-card:nth-child(4) {
  animation-delay: 0.4s;
}
.class-overview-card:nth-child(5) {
  animation-delay: 0.5s;
}
.class-overview-card:nth-child(6) {
  animation-delay: 0.6s;
}
.class-overview-card:nth-child(7) {
  animation-delay: 0.7s;
}
.class-overview-card:nth-child(8) {
  animation-delay: 0.8s;
}
.class-overview-card:nth-child(9) {
  animation-delay: 0.9s;
}
.class-overview-card:nth-child(10) {
  animation-delay: 1s;
}

.order-btn:hover {
  animation: pulse 0.6s ease;
}

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

/* Стили для Joomla категории */
.com-content-category .tariffs-main-page {
  margin-top: 0;
}

.com-content-category .page-header {
  display: none;
}

.com-content-category .category-desc {
  display: none;
}

/* Скрытие стандартных элементов Joomla */
.com-content-category__items {
  display: none;
}

.com-content-category__pagination {
  display: none;
}

/* =============================================
   10. УТИЛИТЫ
   ============================================= */

.text-center {
  text-align: center;
}

.mb-large {
  margin-bottom: 40px;
}

.mt-large {
  margin-top: 40px;
}

/* Для отладки - убрать в продакшене */
.debug-border {
  border: 1px solid red;
}

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

@media print {
  .tariffs-hero,
  .ordering-info,
  .class-actions {
    display: none;
  }

  .classes-grid {
    grid-template-columns: 1fr;
  }

  .class-overview-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
