/* Стили для блока технических характеристик MAZDA EZ6 2024 - Yarkar.by Style */

/* Анимация вращения для загрузчика */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

:root {
  --primary-color: #e1251b;
  --primary-color-transparent: rgba(225, 37, 27, 0.4);
  --primary-color-rgb: 225, 37, 27;
  --secondary-color: #3d3d3d;
  --card-bg: #1f1f1f;
  --border-radius: 12px;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  --card-border: 1px solid rgba(255, 255, 255, 0.05);
  --text-color: #f3f4f6;
  --text-color-secondary: #9ca3af;
  --heading-color: #ffffff;
  --transition-slow: 0.5s ease;
  --light-color: #f9fafb;
  --dark-color: #1a1a1a;
  --transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  --font-family: 'Jura', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* Основной контейнер блока MAZDA - полная ширина с изолированным фоном */
.mazda-specs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.mazda-specs-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 10px;
}

.mazda-specs-subtitle {
  font-size: 1.2rem;
  color: #666;
  text-align: center;
  margin-bottom: 40px;
}

/* Переключатель моделей - в стиле блока */
.models-toggle {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  background: #f8f9fa;
  border-radius: 15px;
  padding: 20px;
  border: 2px solid #e9ecef;
}

.model-btn {
  padding: 15px 30px;
  border: 2px solid #c1272d;
  background: #fff;
  color: #c1272d;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.model-btn:hover {
  background: #c1272d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(193, 39, 45, 0.3);
}

.model-btn.active {
  background: linear-gradient(135deg, #c1272d 0%, #a01e24 100%);
  color: #fff;
  box-shadow: 0 8px 25px rgba(193, 39, 45, 0.4);
  border-color: #c1272d;
}

/* Контейнер комплектаций */
.trims-container {
  margin-bottom: 40px;
}

.mazda-trim-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.mazda-trim-card {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.mazda-trim-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-color: #c1272d;
}

.mazda-trim-card.active {
  background: linear-gradient(135deg, #c1272d 0%, #a01e24 100%);
  border-color: #c1272d;
  color: #fff;
  box-shadow: 0 10px 30px rgba(193, 39, 45, 0.3);
}

.mazda-trim-card.active * {
  color: #fff !important;
}

.mazda-trim-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.mazda-trim-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #c1272d;
  margin-bottom: 15px;
}

.mazda-trim-card.active .mazda-trim-price {
  color: #fff;
}

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

.mazda-trim-features li {
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.95rem;
  color: #555;
}

.mazda-trim-card.active .mazda-trim-features li {
  border-bottom-color: rgba(255,255,255,0.2);
  color: #fff;
}

.mazda-trim-features li:last-child {
  border-bottom: none;
}

/* Табы технических характеристик - отдельный блок между комплектациями и контентом */
.specs-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px 0 0 0;
  flex-wrap: nowrap;
  background: #f8f9fa;
  border-radius: 15px 15px 0 0;
  padding: 20px;
  border: 2px solid #e9ecef;
  border-bottom: none;
  overflow-x: auto;
}

.mazda-tab-btn {
  padding: 12px 20px;
  border: 2px solid #e9ecef;
  background: #fff;
  color: #666;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 110px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mazda-tab-btn:hover {
  background: #f8f9fa;
  color: #333;
  transform: translateY(-2px);
  border-color: #c1272d;
  box-shadow: 0 4px 12px rgba(193, 39, 45, 0.15);
}

.mazda-tab-btn.active {
  background: linear-gradient(135deg, #c1272d 0%, #a01e24 100%);
  color: #fff;
  border-color: #c1272d;
  box-shadow: 0 4px 15px rgba(193, 39, 45, 0.4);
  transform: translateY(-1px);
}

/* Контент табов - соединяется с навигацией табов */
.specs-tab-content {
  background: #fff;
  border-radius: 0 0 15px 15px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  min-height: 400px;
  border: 2px solid #e9ecef;
  border-top: none;
  width: 100%;
  margin-bottom: 30px;
}

.mazda-tab-panel {
  display: none;
}

.mazda-tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Таблицы характеристик */
.mazda-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  border: 1px solid #e9ecef;
}

.mazda-specs-table th {
  background: linear-gradient(135deg, #c1272d 0%, #a01e24 100%);
  color: #fff;
  padding: 15px 20px;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.mazda-specs-table td {
  padding: 15px 20px;
  border-bottom: 1px solid #e9ecef;
  font-size: 1rem;
  line-height: 1.5;
}

.mazda-specs-table td:first-child {
  font-weight: 600;
  color: #1a1a1a;
  background: #f8f9fa;
  width: 40%;
  border-right: 2px solid #e9ecef;
}

.mazda-specs-table td:last-child {
  color: #333;
  font-weight: 500;
}

.mazda-specs-table tr:last-child td {
  border-bottom: none;
}

.mazda-specs-table tr:hover {
  background: #f8f9fa;
}

/* Сетка функций */
.mazda-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.mazda-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid #c1272d;
  transition: all 0.3s ease;
}

.mazda-feature-item:hover {
  background: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.mazda-feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.mazda-feature-text h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 5px;
}

.mazda-feature-text p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.4;
  margin: 0;
}

/* Стили для раздела сравнения */
.mazda-comparison-section {
  padding: 20px 0;
}

.mazda-comparison-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #c1272d;
  text-align: center;
  margin-bottom: 20px;
    padding: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border-left: 5px solid #c1272d;
}

.mazda-comparison-intro {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  border-left: 4px solid #c1272d;
}

.mazda-comparison-intro p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

/* Таблица сравнения */
.mazda-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  border: 2px solid #e9ecef;
}

.mazda-comparison-table thead th {
  background: linear-gradient(135deg, #c1272d 0%, #a01e24 100%);
  color: #fff;
  padding: 20px 15px;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  position: relative;
}

.mazda-comparison-table thead th.current-trim {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  position: relative;
}

.mazda-comparison-table thead th.current-trim::after {
  content: "👑";
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 1.2rem;
}

.mazda-comparison-table tbody td {
  padding: 15px;
  border-bottom: 1px solid #e9ecef;
  font-size: 1rem;
  line-height: 1.5;
  vertical-align: top;
}

.mazda-comparison-table tbody td:first-child {
  font-weight: 600;
  color: #1a1a1a;
  background: #f8f9fa;
  width: 30%;
  border-right: 2px solid #e9ecef;
}

.mazda-comparison-table tbody td.current-trim {
  background: #e8f5e8;
  font-weight: 600;
  color: #155724;
  border-left: 3px solid #28a745;
}

.mazda-comparison-table .price-diff {
  color: #dc3545;
  font-weight: 600;
  font-size: 0.9rem;
}

.mazda-comparison-table .upgrade {
  color: #28a745;
  font-weight: 600;
  font-size: 0.9rem;
  background: #d4edda;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Блок сравнения EREV vs EV */
.mazda-comparison-vs {
  margin-top: 40px;
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  border: 2px solid #e9ecef;
}

.mazda-comparison-vs h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #c1272d;
  text-align: center;
  margin-bottom: 25px;
}

.mazda-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.mazda-comparison-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.mazda-comparison-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.mazda-comparison-card.erev-card {
  border-left: 5px solid #17a2b8;
}

.mazda-comparison-card.erev-card.current {
  border-left: 5px solid #28a745;
  background: #e8f5e8;
}

.mazda-comparison-card.ev-card {
  border-left: 5px solid #6f42c1;
}

.mazda-comparison-card.current {
  border-left: 5px solid #28a745;
  background: #e8f5e8;
}

.mazda-comparison-card h5 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  color: #1a1a1a;
}

.mazda-comparison-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mazda-comparison-card li {
  padding: 8px 0;
  font-size: 1rem;
  line-height: 1.4;
  border-bottom: 1px solid #e9ecef;
}

.mazda-comparison-card li:last-child {
  border-bottom: none;
}

.mazda-comparison-card li:contains("✅") {
  color: #28a745;
}

.mazda-comparison-card li:contains("⚠️") {
  color: #ffc107;
}

/* Блок преимуществ */
.mazda-comparison-advantages {
  margin: 30px 0;
  padding: 25px;
  background: #e8f5e8;
  border-radius: 12px;
  border-left: 5px solid #28a745;
}

.mazda-comparison-advantages h4 {
  color: #155724;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.mazda-comparison-advantages ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mazda-comparison-advantages li {
  padding: 8px 0;
  font-size: 1rem;
  color: #155724;
  border-bottom: 1px solid rgba(21, 87, 36, 0.2);
}

.mazda-comparison-advantages li:last-child {
  border-bottom: none;
}

/* Адаптивность */
@media (max-width: 768px) {
  .mazda-specs-container {
    padding: 20px 15px;
  }
  
  .mazda-specs-title {
    font-size: 2rem;
  }
  
  .models-toggle {
  flex-direction: column;
  align-items: center;
    padding: 15px;
  }
  
  .model-btn {
    min-width: 250px;
  }
  
  .specs-tabs-nav {
    gap: 8px;
    padding: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .mazda-tab-btn {
    min-width: 100px;
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .mazda-trim-cards {
    grid-template-columns: 1fr;
  }
  
  .mazda-features-grid {
    grid-template-columns: 1fr;
  }
  
  .specs-tab-content {
    padding: 25px;
  }
  
  .mazda-specs-table td {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
  
  .mazda-specs-table th {
    padding: 12px 15px;
    font-size: 1rem;
  }
  
  /* Мобильные стили для сравнения */
  .mazda-comparison-title {
    font-size: 1.5rem;
  padding: 12px;
  }
  
  .mazda-comparison-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .mazda-comparison-table thead th {
    padding: 15px 10px;
    font-size: 1rem;
  }
  
  .mazda-comparison-table tbody td {
    padding: 12px 10px;
    font-size: 0.9rem;
  }
  
  .mazda-comparison-vs {
    padding: 20px;
  }
  
  .mazda-comparison-card {
  padding: 20px;
  }
}

@media (max-width: 480px) {
  .mazda-specs-title {
    font-size: 1.8rem;
  }
  
  .mazda-specs-subtitle {
    font-size: 1rem;
  }
  
  .model-btn {
    font-size: 1rem;
    padding: 12px 25px;
  }
  
  .mazda-tab-btn {
    font-size: 0.85rem;
    padding: 8px 15px;
    min-width: 90px;
  }
} 
