/* === Базовые настройки ============================================= */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--light-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Светлая цветовая схема с темными синими акцентами ===================================== */
:root {
  /* Основные цвета - темные и солидные */
  --primary-blue: #1e3a8a; /* Темно-синий - основной цвет */
  --primary-blue-hover: #1e40af; /* Темно-синий при наведении */
  --primary-blue-light: #3b82f6; /* Светло-синий для акцентов */
  
  /* Фирменные серые цвета Google */
  --gray-50: #fafafa; /* Самый светлый серый фон */
  --gray-100: #f5f5f5; /* Светло-серый фон */
  --gray-200: #eeeeee; /* Серый фон для карточек */
  --gray-300: #e0e0e0; /* Границы и разделители */
  --gray-400: #bdbdbd; /* Приглушенный текст */
  --gray-500: #9e9e9e; /* Вторичный текст */
  --gray-600: #757575; /* Основной текст */
  --gray-700: #616161; /* Заголовки */
  --gray-800: #424242; /* Темные заголовки */
  --gray-900: #212121; /* Самый темный текст */
  
  /* Фоновые цвета с улучшенным контрастом */
  --light-bg: #ffffff; /* Белый фон */
  --light-gray-bg: var(--gray-100); /* Светло-серый фон */
  --card-bg: #ffffff; /* Белый фон карточек для лучшего контраста */
  --section-bg: var(--gray-50); /* Фон секций */
  
  /* Текстовые цвета */
  --text-dark: var(--gray-900); /* Основной текст */
  --text-muted: var(--gray-600); /* Приглушенный текст */
  --text-secondary: var(--gray-500); /* Вторичный текст */
  
  /* Границы и разделители с улучшенным контрастом */
  --border-light: var(--gray-300); /* Светлые границы */
  --border-medium: var(--gray-400); /* Средние границы */
  --border-strong: var(--gray-500); /* Сильные границы для лучшего контраста */
  
  /* Акцентные цвета Google */
  --accent-red: #ea4335; /* Google Red */
  --accent-green: #34a853; /* Google Green */
  --accent-yellow: #fbbc04; /* Google Yellow */
  
  /* Тени в стиле Material Design */
  --shadow-light: rgba(0, 0, 0, 0.08); /* Легкие тени */
  --shadow-medium: rgba(0, 0, 0, 0.12); /* Средние тени */
  --shadow-heavy: rgba(0, 0, 0, 0.16); /* Тяжелые тени */
}

/* Переопределяем Bootstrap стили */
.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-blue-hover);
  border-color: var(--primary-blue-hover);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
}

.text-primary {
  color: var(--primary-blue) !important;
}

.bg-primary {
  background-color: var(--primary-blue) !important;
}

.text-danger {
  color: var(--accent-red) !important;
}

/* === Верхняя информационная панель ============================ */
.top-info-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--gray-200);
  padding: 0.6rem 0;
  font-size: 0.85rem;
  color: var(--gray-700);
}

.top-info-item {
  color: var(--gray-700);
  font-weight: 400;
}

.top-info-phones {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  align-items: center;
}

.top-info-phone {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.top-info-phone:hover {
  color: var(--primary-blue-hover);
}

.phone-separator {
  color: var(--gray-300);
  font-weight: 300;
}

/* Responsive для верхней панели */
@media (max-width: 991px) {
  .top-info-bar {
    display: none;
  }
}

/* === Шапка сайта ================================================= */
.navbar {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px var(--shadow-light);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-dark) !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-logo {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.05);
}

.navbar-brand-text {
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

/* Responsive логотип */
@media (max-width: 768px) {
  .navbar-logo {
    height: 32px;
  }
  
  .navbar-brand-text {
    font-size: 1.1rem;
  }
}

.navbar-nav .nav-link {
  font-weight: 400;
  color: var(--text-dark) !important;
  transition: color 0.3s ease;
  margin: 0 0.75rem;
  font-size: 0.95rem;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-blue) !important;
  transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
  color: var(--primary-blue) !important;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-blue);
}

/* Старые стили contact-info удалены */

/* === Упрощенный банер ================================================= */
.hero-section {
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--section-bg) 100%);
  padding: 4rem 0;
  position: relative;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden; /* Строгое ограничение фонового изображения в рамках контейнера */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--light-bg);
  z-index: 1;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; /* Предотвращаем повторение изображения */
  opacity: 0.5; /* Увеличена прозрачность для лучшей видимости фонового фото */
  z-index: 2;
  /* Обеспечиваем строгое контейнирование изображения */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
  z-index: 3;
}

/* Темная подложка для страниц с подробной информацией об авто */
.car-detail-hero .hero-overlay,
.post-type-car .hero-overlay,
.single-car .hero-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.6) 100%);
}

/* Белый текст для страниц с подробной информацией об авто */
.car-detail-hero .hero-title,
.post-type-car .hero-title,
.single-car .hero-title {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.car-detail-hero .hero-subtitle,
.post-type-car .hero-subtitle,
.single-car .hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.car-detail-hero .price-amount,
.post-type-car .price-amount,
.single-car .price-amount {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Все тексты в герое страниц с авто - белые */
.car-detail-hero .hero-content *,
.post-type-car .hero-content *,
.single-car .hero-content * {
  color: #ffffff !important;
}

/* Дополнительные стили для всех текстовых элементов в герое */
.car-detail-hero .hero-content p,
.car-detail-hero .hero-content span,
.car-detail-hero .hero-content div,
.car-detail-hero .hero-content a,
.post-type-car .hero-content p,
.post-type-car .hero-content span,
.post-type-car .hero-content div,
.post-type-car .hero-content a,
.single-car .hero-content p,
.single-car .hero-content span,
.single-car .hero-content div,
.single-car .hero-content a {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Ссылки в герое */
.car-detail-hero .hero-content a:hover,
.post-type-car .hero-content a:hover,
.single-car .hero-content a:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Улучшенная видимость фонового изображения для страниц с автомобилями */
.car-detail-hero .hero-bg-image,
.post-type-car .hero-bg-image,
.single-car .hero-bg-image {
  opacity: 0.7; /* Увеличена прозрачность для лучшей видимости на страницах с авто */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff; /* Белый цвет для заголовков */
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #ffffff; /* Белый цвет для подзаголовков */
  margin-bottom: 2rem;
  line-height: 1.6;
  opacity: 0.9;
}

.hero-price {
  margin-bottom: 2rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Улучшенные карточки с лучшим контрастом ================================= */
.specifications-section {
  padding: 3rem 0;
  background: var(--section-bg);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.spec-item {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid var(--border-light);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.spec-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--shadow-medium);
  border-color: var(--primary-blue);
  background: var(--light-bg);
}

.spec-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-800); /* Изменено на темно-серый для лучшей читаемости */
  margin-bottom: 0.5rem;
}

.spec-label {
  font-size: 0.9rem;
  color: var(--gray-600); /* Изменено на средний серый для лучшего контраста */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === Улучшенные карточки автомобилей ================================= */
.car-card {
  background: var(--card-bg);
  border: 2px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-light);
}

.car-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(30, 58, 138, 0.15);
  border-color: var(--primary-blue);
  background: var(--light-bg);
}

.car-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.car-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.car-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--light-bg);
}

.car-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.car-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.car-title a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

.car-subtitle {
  color: var(--text-dark); /* Изменено на темный цвет для лучшего контраста */
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.car-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 1rem;
}

.car-specs {
  margin-bottom: 1rem;
}

.spec-item {
  background: var(--light-gray-bg);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid var(--primary-blue);
}

.spec-label {
  font-weight: 600;
  color: var(--text-dark);
}

.spec-value {
  color: var(--text-dark);
  font-weight: 500;
}

.car-excerpt {
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.6;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.car-excerpt p {
  margin-bottom: 0;
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.5;
  color: var(--text-dark); /* Темный цвет для текста описаний автомобилей */
}

/* Стили для контента в карточках */
.car-card .car-excerpt {
  min-height: 60px;
  overflow: hidden;
}

.car-card .car-excerpt p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Дополнительные стили для главной страницы */
.front-page .car-excerpt {
  min-height: 50px;
}

.front-page .car-excerpt p {
  -webkit-line-clamp: 2;
}

/* === Галереи со слайдерами ========================================== */
.gallery-section {
  margin-bottom: 3rem;
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-light);
}

.gallery-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.gallery-slider {
  position: relative;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px var(--shadow-light);
  border: 2px solid var(--border-light);
  background: var(--card-bg);
}

.gallery-slide {
  display: none;
  position: relative;
}

.gallery-slide.active {
  display: block;
}

.gallery-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-image:hover {
  transform: scale(1.02);
}

.gallery-thumbnails {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.gallery-thumb.active {
  border-color: var(--primary-silver);
  opacity: 1;
}

.gallery-thumb:hover {
  opacity: 1;
  transform: scale(1.05);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Модальное окно для изображений ================================ */
#imageModal .modal-content {
  background: var(--light-bg);
  border: 2px solid var(--border-light);
  position: relative;
}

#imageModal .modal-header {
  background: var(--light-bg);
  border-bottom: 2px solid var(--border-light);
  padding: 1rem;
}

#imageModal .btn-close {
  background: var(--primary-silver);
  border: 2px solid var(--border-dark);
  color: var(--dark-bg);
  font-size: 1.5rem;
  font-weight: bold;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 1050;
  transition: all 0.3s ease;
}

#imageModal .btn-close:hover {
  background: var(--primary-silver-hover);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

#imageModal .btn-close::before {
  content: '×';
  color: var(--dark-bg);
  font-size: 2rem;
  line-height: 1;
}

#imageModal .modal-body {
  padding: 2rem;
  text-align: center;
  position: relative;
}

#imageModal .modal-body img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 3px solid white;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* === Стили для модального окна с характеристиками ============= */
.modal .modal-content {
  background: var(--light-bg) !important; /* Светлый фон для модального окна */
  color: var(--text-dark) !important; /* Темный текст для лучшей читаемости */
}

.modal .modal-header {
  background: var(--light-bg) !important;
  border-bottom: 1px solid var(--border-light) !important;
  color: var(--text-dark) !important;
}

.modal .modal-header .modal-title {
  color: var(--text-dark) !important; /* Темный цвет для заголовка */
  font-weight: 600;
}

.modal .modal-body {
  background: var(--light-bg) !important;
  color: var(--text-dark) !important;
}

.modal .modal-body .list-group-item {
  background: var(--light-bg) !important;
  color: var(--text-dark) !important;
  border-color: var(--border-light) !important;
}

.modal .modal-body .list-group-item .text-muted {
  color: var(--text-muted) !important; /* Серый цвет для меток */
}

.modal .modal-body .list-group-item .fw-bold {
  color: var(--text-dark) !important; /* Темный цвет для значений */
  font-weight: 600;
}

.modal .btn-close {
  color: var(--text-dark) !important;
  opacity: 0.8;
}

.modal .btn-close:hover {
  opacity: 1;
}

/* Дополнительные стили для улучшения контраста в модальном окне */
.modal .card {
  background: var(--light-bg) !important;
  border: 1px solid var(--border-light) !important;
}

.modal .card-body {
  background: var(--light-bg) !important;
  color: var(--text-dark) !important;
}

.modal .card-title {
  color: var(--text-dark) !important;
  font-weight: 600;
}

.modal .text-dark {
  color: var(--text-dark) !important;
}

.modal .text-muted {
  color: var(--text-muted) !important;
}

.modal .fw-bold {
  color: var(--text-dark) !important;
  font-weight: 600;
}

/* Специальные стили для характеристик в модальном окне */
.modal .spec-item {
  background: var(--light-bg) !important;
  color: var(--text-dark) !important;
  border: 1px solid var(--border-light) !important;
}

.modal .spec-label {
  color: var(--text-muted) !important;
  font-weight: 500;
}

.modal .spec-value {
  color: var(--text-dark) !important;
  font-weight: 600;
}

/* Адаптивные стили для модального окна */
@media (max-width: 768px) {
  .modal .modal-content {
    margin: 1rem;
    border-radius: 12px;
  }
  
  .modal .modal-header {
    padding: 1rem;
  }
  
  .modal .modal-body {
    padding: 1rem;
  }
  
  .modal .modal-title {
    font-size: 1.1rem;
  }
  
  .modal .list-group-item {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}

/* === Дополнительные стили для светлой темы ======================== */
.card {
  background: var(--light-bg);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
}

.card-body {
  background: var(--light-bg);
}

.list-group-item {
  background: var(--light-bg);
  border-color: var(--border-light);
  color: var(--text-dark);
}

.list-group-item.text-muted {
  color: var(--text-muted) !important;
}

/* === Аккордеон для FAQ ========================================== */
.accordion-item {
  background: var(--light-bg);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
}

.accordion-button {
  background: var(--light-bg);
  color: var(--text-dark);
  border: none;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background: var(--light-bg);
  color: var(--text-dark);
  box-shadow: none;
  border-color: var(--primary-blue);
}

.accordion-button:hover {
  background: var(--light-gray-bg);
  color: var(--text-dark);
}

.accordion-button:focus {
  background: var(--light-gray-bg);
  color: var(--text-dark);
  box-shadow: none;
}

/* Темные стрелки для аккордеона */
.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23202124'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  filter: brightness(1);
  width: 1.5rem;
  height: 1.5rem;
  background-size: 1.5rem;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23202124'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  filter: brightness(1);
  width: 1.5rem;
  height: 1.5rem;
  background-size: 1.5rem;
  margin-right: 0.5rem;
  transform: rotate(180deg);
}

/* Дополнительные стили для лучшей видимости */
.accordion-button {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.accordion-button:hover::after {
  filter: brightness(1.2);
  transform: scale(1.1);
}

.accordion-button:not(.collapsed):hover::after {
  filter: brightness(1.2);
  transform: rotate(180deg) scale(1.1);
}

.accordion-body {
  background: var(--light-bg);
  color: var(--text-dark);
}

/* === Все серые тексты делаем темными ============================= */
.text-muted {
  color: var(--text-muted) !important;
}

.spec-label {
  color: var(--text-light) !important;
}

.car-subtitle {
  color: var(--text-light) !important;
}

.car-excerpt {
  color: var(--text-light) !important;
}

.footer-text {
  color: var(--text-dark) !important;
}

.footer-contacts {
  color: var(--text-dark) !important;
}

.footer-contact-item {
  color: var(--text-dark) !important;
}

.footer-menu-list a {
  color: var(--text-dark) !important;
}

.list-group-item.text-muted {
  color: var(--text-muted) !important;
}

/* === Светлый подвал ============================================= */
.footer-luxury {
  background: var(--section-bg);
  color: var(--text-dark);
  border-top: 2px solid var(--primary-blue);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 50px;
  width: auto;
}

.footer-logo-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin: 0;
  letter-spacing: 0.5px;
}

.footer-title {
  color: var(--primary-blue);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-text {
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-contacts {
  color: var(--text-dark);
}

.footer-contact-item {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.footer-contact-item strong {
  color: var(--primary-blue);
  font-weight: 600;
}

.footer-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu-list li {
  margin-bottom: 0.75rem;
}

.footer-menu-list a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-menu-list a:hover {
  color: var(--primary-blue);
}

/* === Стили для описания ========================================== */
.car-description {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.car-description h3 {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.description-content {
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 1rem;
}

.description-content p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.description-content h1,
.description-content h2,
.description-content h3,
.description-content h4,
.description-content h5,
.description-content h6 {
  color: var(--text-dark);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.description-content ul,
.description-content ol {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.description-content li {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* === Кнопка "Подробнее" ========================================== */
.read-more {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.3s ease;
  background: var(--primary-blue);
  color: #ffffff;
  border: 2px solid var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-medium);
  background: var(--primary-blue-hover);
  border-color: var(--primary-blue-hover);
  color: #ffffff;
}

/* === Адаптивность ================================================= */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .main-navigation {
    order: 2;
  }
  
  .header-contacts {
    order: 3;
    text-align: center;
  }
  
  .cars-grid {
    grid-template-columns: 1fr;
  }
  
  .car-specs {
    grid-template-columns: 1fr;
  }
  
  .car-gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .gallery-thumbnails {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .car-navigation {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  /* Hero секция на мобильных */
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .price-amount {
    font-size: 2rem;
  }
  
  /* Характеристики на мобильных */
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .spec-item {
    padding: 1.5rem 0.5rem;
  }
  
  .spec-value {
    font-size: 1.2rem;
    color: var(--gray-800); /* Сохраняем темно-серый цвет на мобильных */
  }
  
  .spec-label {
    font-size: 0.8rem;
    color: var(--gray-600); /* Сохраняем средний серый цвет на мобильных */
  }
  
  /* Галереи на мобильных */
  .gallery-image {
    height: 300px;
  }
  
  .gallery-thumb {
    width: 60px;
    height: 45px;
  }
  
  .gallery-thumbnails {
    gap: 0.25rem;
  }
} 

/* === Хлебные крошки ============================================= */
.breadcrumb-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
  margin-top: 80px; /* Отступ от фиксированной навигации */
  position: relative;
  z-index: 1000;
}

/* Убираем лишние отступы на страницах с хлебными крошками */
.breadcrumb-nav + .container,
.breadcrumb-nav + section {
  margin-top: 0;
  padding-top: 2rem;
}

/* Специальные стили для hero-секции после хлебных крошек */
.breadcrumb-nav + .hero-section {
  margin-top: 0;
}

.breadcrumb {
  background: transparent;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.breadcrumb-item {
  color: var(--text-dark); /* Черный текст для лучшего контраста на светлом фоне */
}

.breadcrumb-item a {
  color: var(--text-dark); /* Черный текст для ссылок */
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--primary-blue); /* Синий при наведении для лучшего контраста */
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--text-dark); /* Черный текст для активного элемента */
  font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--text-dark); /* Черный цвет для разделителя */
  font-weight: 600;
  margin: 0 0.5rem;
  font-size: 1.1rem;
  line-height: 1;
}

/* Адаптивность для хлебных крошек */
@media (max-width: 768px) {
  .breadcrumb-nav {
    padding: 0.75rem 0;
    margin-top: 70px;
  }
  
  .breadcrumb {
    font-size: 0.8rem;
  }
  
  .breadcrumb-item + .breadcrumb-item::before {
    margin: 0 0.25rem;
  }
} 

/* === Стили для архива автомобилей ================================= */
.archive-stats {
  margin-top: 1rem;
}

.archive-stats .badge {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  background: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.archive-stats .badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
  background: var(--primary-blue-hover);
}

/* Специальные стили для hero-секции архива */
.cars-archive .bg-primary {
  background: linear-gradient(135deg, var(--primary-silver) 0%, #E0E0E0 100%) !important;
  color: var(--dark-bg) !important;
}

.cars-archive .bg-primary .text-light {
  color: var(--dark-bg) !important;
}

.cars-archive .bg-primary .opacity-50 {
  opacity: 0.3 !important;
}

/* === Стили для пагинации ========================================== */
.pagination-wrapper {
  margin-top: 4rem;
  padding: 2rem 0;
  position: relative;
}

.pagination-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-silver), transparent);
  border-radius: 1px;
}

/* Современная пагинация */
.pagination {
  margin: 0;
  gap: 0.5rem;
}

.pagination .page-item {
  margin: 0;
}

.pagination .page-link {
  background: var(--light-bg); /* Исправлен фон для светлой темы */
  border: 2px solid var(--border-light); /* Исправлена граница для светлой темы */
  color: var(--text-dark); /* Исправлен цвет текста для лучшего контраста */
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-radius: 12px !important;
  margin: 0;
  min-width: 50px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pagination .page-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(192, 192, 192, 0.2), transparent);
  transition: left 0.5s ease;
}

.pagination .page-link:hover::before {
  left: 100%;
}

.pagination .page-link:hover {
  background: linear-gradient(135deg, var(--primary-silver) 0%, var(--primary-silver-hover) 100%);
  border-color: var(--primary-silver);
  color: var(--dark-bg);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(192, 192, 192, 0.4);
}

.pagination .page-link:focus {
  background: linear-gradient(135deg, var(--primary-silver) 0%, var(--primary-silver-hover) 100%);
  border-color: var(--primary-silver);
  color: var(--dark-bg);
  box-shadow: 0 0 0 0.3rem rgba(192, 192, 192, 0.3);
  transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--primary-silver) 0%, var(--primary-silver-hover) 100%);
  border-color: var(--primary-silver);
  color: var(--dark-bg);
  font-weight: 700;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(192, 192, 192, 0.5);
  z-index: 2;
}

/* Стили для page-numbers пагинации */
.pagination .page-numbers {
  background: var(--light-bg); /* Исправлен фон для светлой темы */
  border: 2px solid var(--border-light); /* Исправлена граница для светлой темы */
  color: var(--text-dark); /* Исправлен цвет текста для лучшего контраста */
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-radius: 12px !important;
  margin: 0;
  min-width: 50px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
}

.pagination .page-numbers:hover {
  background: linear-gradient(135deg, var(--primary-silver) 0%, var(--primary-silver-hover) 100%);
  border-color: var(--primary-silver);
  color: var(--dark-bg);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(192, 192, 192, 0.4);
  text-decoration: none;
}

.pagination .page-numbers.current {
  background: linear-gradient(135deg, var(--primary-silver) 0%, var(--primary-silver-hover) 100%);
  border-color: var(--primary-silver);
  color: var(--dark-bg);
  font-weight: 700;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(192, 192, 192, 0.5);
  z-index: 2;
}

.pagination .page-numbers.next {
  background: var(--light-bg); /* Исправлен фон для светлой темы */
  border: 2px solid var(--border-light); /* Исправлена граница для светлой темы */
  color: var(--text-dark); /* Исправлен цвет текста для лучшего контраста */
}

.pagination .page-numbers.next:hover {
  background: linear-gradient(135deg, var(--primary-silver) 0%, var(--primary-silver-hover) 100%);
  border-color: var(--primary-silver);
  color: var(--dark-bg);
}

.pagination .page-item.active .page-link:hover {
  transform: scale(1.1) translateY(-2px);
}

.pagination .page-item.disabled .page-link {
  background: var(--darker-bg);
  border-color: var(--border-dark);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination .page-item.disabled .page-link:hover {
  background: var(--darker-bg);
  border-color: var(--border-dark);
  color: var(--text-muted);
  transform: none;
  box-shadow: none;
}

.pagination .page-item.disabled .page-link::before {
  display: none;
}

/* Стили для иконок в кнопках навигации */
.pagination .page-link i {
  font-size: 0.9rem;
}

/* Дополнительные стили для стандартной Bootstrap пагинации */
.pagination-lg .page-link {
  padding: 0.75rem 1.25rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

.pagination-lg .page-item:first-child .page-link,
.pagination-lg .page-item:last-child .page-link {
  border-radius: 0.375rem;
}

/* Улучшенные hover-эффекты */
.pagination .page-link:hover {
  z-index: 2;
}

.pagination .page-item:not(:first-child) .page-link {
  margin-left: -1px;
}

/* Стили для активной страницы */
.pagination .page-item.active .page-link {
  z-index: 3;
}

/* Адаптивность для пагинации */
@media (max-width: 768px) {
  .pagination-wrapper {
    margin-top: 3rem;
    padding: 1.5rem 0;
  }
  
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
  }
  
  .pagination .page-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    min-width: 40px;
    border-radius: 8px !important;
  }
  
  .pagination .page-link i {
    font-size: 0.8rem;
  }
  
  .pagination .page-link:hover {
    transform: translateY(-2px) scale(1.02);
  }
  
  .pagination .page-item.active .page-link {
    transform: scale(1.05);
  }
  
  .pagination .page-item.active .page-link:hover {
    transform: scale(1.05) translateY(-1px);
  }
}

/* Дополнительные стили для больших экранов */
@media (min-width: 1200px) {
  .cars-archive .row {
    margin-bottom: 3rem;
  }
  
  .pagination-wrapper {
    margin-top: 4rem;
  }
  
  .pagination-lg .page-link {
    padding: 0.875rem 1.5rem;
    font-size: 1.2rem;
  }
}

/* === Стили для сообщения об отсутствии автомобилей ================ */
.no-cars {
  min-height: 400px;
  display: flex;
  align-items: center;
}

.no-cars .bi {
  opacity: 0.3;
}

.no-cars h2 {
  font-weight: 600;
}

.no-cars .lead {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* === Дополнительные стили для карточек в архиве ================= */
.car-card .car-more {
  margin-top: auto;
  padding-top: 1rem;
}

.car-card .read-more {
  width: 100%;
  justify-content: center;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.car-card .read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(192, 192, 192, 0.3);
}

/* Улучшенные стили для характеристик в карточках */
.car-card .spec-item {
  margin-bottom: 0.4rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
}

.car-card .spec-label {
  font-size: 0.75rem;
  color: var(--gray-600); /* Улучшенная читаемость меток в карточках */
  font-weight: 500;
}

.car-card .spec-value {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--gray-800); /* Темно-серый цвет для лучшей читаемости */
}

/* Стили для сетки автомобилей в архиве */
.cars-archive .row {
  margin-bottom: 2rem;
}

.cars-archive .col-lg-4 {
  margin-bottom: 2rem;
}

/* Анимации убраны для чистоты дизайна */ 

/* === Стили для секции контента на странице автомобиля ============= */
.content-section .card {
  background: var(--dark-bg);
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 2rem;
}

/* === Улучшенные стили для блоков характеристик ============= */
.card .card-title {
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.card .list-group-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.2s ease;
}

.card .list-group-item:last-child {
  border-bottom: none;
}

.card .list-group-item:hover {
  background-color: var(--gray-50);
}

.card .text-muted {
  color: var(--gray-600) !important;
  font-size: 0.9rem;
  font-weight: 500;
}

.card .text-dark {
  color: var(--gray-800) !important;
  font-weight: 600;
}

.card .card-title .text-primary {
  color: var(--primary-blue) !important;
  font-size: 1.2rem;
}

/* === Стили для формы обратной связи ============= */
.car-contact-form .form-label {
  color: var(--gray-800) !important;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.car-contact-form .form-control {
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--light-bg);
  color: var(--text-dark);
}

.car-contact-form .form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(66, 133, 244, 0.25);
  outline: none;
}

.car-contact-form .form-control::placeholder {
  color: var(--gray-500);
  opacity: 0.8;
}

.car-contact-form textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Специальные стили для описания под фото */
.content-section .card {
  border: 2px solid var(--primary-silver);
  box-shadow: 0 8px 30px rgba(192, 192, 192, 0.2);
  animation: fadeInUp 0.8s ease-out;
}

.content-section .card-title {
  font-size: 1.6rem;
  font-weight: 700;
}

.content-section .card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--primary-silver);
}

.content-section .car-description {
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 0;
}

.content-section .description-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark); /* Исправлен цвет текста для лучшего контраста на светлом фоне */
}

.content-section .description-content p {
  margin-bottom: 1.5rem;
  color: var(--text-dark); /* Исправлен цвет текста для лучшего контраста на светлом фоне */
}

.content-section .description-content h1,
.content-section .description-content h2,
.content-section .description-content h3,
.content-section .description-content h4,
.content-section .description-content h5,
.content-section .description-content h6 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--primary-silver);
}

.content-section .description-content ul,
.content-section .description-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2.5rem;
  color: var(--text-dark); /* Исправлен цвет текста для лучшего контраста на светлом фоне */
}

.content-section .description-content li {
  margin-bottom: 0.75rem;
  color: var(--text-dark); /* Исправлен цвет текста для лучшего контраста на светлом фоне */
}

.content-section .description-content blockquote {
  border-left: 4px solid var(--primary-silver);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
}

.content-section .description-content a {
  color: var(--primary-silver);
  text-decoration: none;
  border-bottom: 1px solid var(--primary-silver);
  transition: all 0.3s ease;
}

.content-section .description-content a:hover {
  color: var(--primary-blue); /* Исправлен цвет при наведении для лучшего контраста */
  border-bottom-color: var(--primary-blue); /* Исправлен цвет подчеркивания при наведении */
}

/* Адаптивность для контента */
@media (max-width: 768px) {
  .content-section .card-title {
    font-size: 1.3rem;
  }
  
  .content-section .description-content {
    font-size: 1rem;
  }
  
  .content-section .description-content h1,
  .content-section .description-content h2,
  .content-section .description-content h3,
  .content-section .description-content h4,
  .content-section .description-content h5,
  .content-section .description-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
  }
} 

/* === Стили для формы обратной связи =============================== */
.contact-form {
  margin-top: 1rem;
}

.contact-form .form-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark); /* Добавлен темный цвет для лучшего контраста */
}

.contact-form .form-control {
  background: var(--light-bg); /* Исправлен фон для светлой темы */
  border: 1px solid var(--border-light); /* Исправлена граница для светлой темы */
  color: var(--text-dark); /* Исправлен цвет текста для лучшего контраста */
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  background: var(--light-bg); /* Исправлен фон для светлой темы */
  border-color: var(--primary-blue); /* Исправлен цвет границы при фокусе */
  color: var(--text-dark); /* Исправлен цвет текста для лучшего контраста */
  box-shadow: 0 0 0 0.2rem rgba(66, 133, 244, 0.25); /* Исправлена тень для светлой темы */
}

.contact-form .form-control::placeholder {
  color: var(--text-secondary); /* Изменено на более темный цвет для лучшего контраста */
  opacity: 0.8; /* Увеличена непрозрачность */
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.contact-form .btn {
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(192, 192, 192, 0.3);
}

/* Стили для состояний формы */
.contact-form .form-control.is-valid {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.contact-form .form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Анимация для формы */
.contact-form {
  animation: fadeInUp 0.6s ease-out;
  animation-delay: 0.2s;
}

/* Адаптивность для формы */
@media (max-width: 768px) {
  .contact-form .form-control {
    font-size: 0.9rem;
    padding: 0.7rem 0.9rem;
  }
  
  .contact-form .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
} 

/* === Стили для Hero секции блога ================================== */
.blog-hero-section {
  position: relative;
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--section-bg) 100%);
  color: var(--text-dark) !important;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-light);
}

.blog-hero-section::before {
  display: none;
}

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

/* Бейдж героя */
.hero-badge {
  display: inline-flex;
  align-items: center;
  background: var(--primary-blue);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
}

.hero-badge i {
  color: #ffffff;
  font-size: 1rem;
}

/* Заголовок героя */
.hero-title {
  position: relative;
  color: var(--text-dark) !important;
  text-shadow: none;
}

.title-gradient {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: var(--text-dark) !important;
  animation: none;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}



/* Описание героя */
.hero-description {
  color: #ffffff !important; /* Белый цвет для описаний */
  opacity: 0.9;
  font-size: 1.2rem;
  line-height: 1.7;
  text-shadow: none;
}

/* Удалены стили статистики */

/* Иллюстрация героя */
.hero-illustration {
  display: none;
}

.floating-elements {
  display: none;
}

.hero-wave {
  display: none;
}

/* === Стили для блога ============================================= */
.blog-stats {
  margin-top: 1rem;
}

.blog-stats .badge {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  background: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.blog-stats .badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
  background: var(--primary-blue-hover);
}

/* Стили для Bootstrap grid в блоге */
.blog-posts .row {
  margin-bottom: 3rem;
}

.blog-posts .col-lg-6 {
  margin-bottom: 2rem;
}

/* Специальные стили для hero-секции блога */
.blog-posts .bg-primary {
  background: linear-gradient(135deg, var(--primary-silver) 0%, #E0E0E0 100%) !important;
  color: var(--dark-bg) !important;
}

.blog-posts .bg-primary .text-light {
  color: var(--dark-bg) !important;
}

.blog-posts .bg-primary .opacity-50 {
  opacity: 0.3 !important;
}

/* === Стили для карточек блога ==================================== */
.blog-card {
  background: var(--light-bg);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow-light);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-red), var(--primary-blue));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px var(--shadow-medium);
  border-color: var(--primary-blue);
}

.blog-card:hover::before {
  opacity: 1;
}

/* Обертка изображения */
.blog-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

/* Изображение блога */
.blog-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--light-bg);
  border: 1px solid var(--border-light);
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.95);
}

.blog-card:hover .blog-img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* Заглушка для изображения */
.blog-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--light-bg) 0%, var(--section-bg) 100%);
}

.placeholder-content {
  text-align: center;
  opacity: 0.6;
}

/* Overlay для категории */
.blog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.6) 100%);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-card:hover .blog-overlay {
  opacity: 1;
}

/* Бейдж категории */
.category-badge {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px var(--shadow-light);
  transform: translateY(-10px);
  transition: transform 0.3s ease;
}

.blog-card:hover .category-badge {
  transform: translateY(0);
}

/* Тело карточки */
.blog-card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--light-bg);
}

/* Заголовок блога */
.blog-header {
  margin-bottom: 1.5rem;
}

.blog-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.3;
  display: flex;
  align-items: flex-start;
}

.blog-title a {
  color: var(--text-dark); /* Темный цвет для заголовков в карточках */
  text-decoration: none;
  transition: color 0.3s ease;
  flex: 1;
}

.blog-title a:hover {
  color: var(--primary-blue); /* Синий при наведении */
}

.blog-title .bi-bookmark-fill {
  margin-top: 0.2rem;
  font-size: 1rem;
  opacity: 0.8;
}

/* Мета информация */
.blog-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.meta-item {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted); /* Темный цвет для мета-информации в карточках */
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.meta-item:hover {
  opacity: 1;
}

.meta-item i {
  color: var(--primary-blue);
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Анонс */
.blog-excerpt {
  margin-bottom: 2rem;
  color: var(--text-dark); /* Темный цвет для анонсов в карточках */
  line-height: 1.7;
  flex: 1;
  position: relative;
}

.blog-excerpt p {
  margin-bottom: 0;
  font-size: 1rem;
  opacity: 0.8;
  color: var(--text-dark); /* Темный цвет для текста анонсов в карточках */
}

/* Подвал карточки */
.blog-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* Кнопка чтения */
.blog-read-more {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.blog-read-more::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.blog-read-more:hover::before {
  left: 100%;
}

.blog-read-more:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(192, 192, 192, 0.5);
  color: var(--dark-bg);
  text-decoration: none;
}

.blog-read-more i {
  transition: transform 0.3s ease;
  font-size: 1.1rem;
}

.blog-read-more:hover i {
  transform: translateX(3px);
}

.blog-card-header {
  padding: 1.5rem 1.5rem 0.75rem;
  background: var(--dark-bg);
}

.blog-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--dark-bg);
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0;
  line-height: 1.3;
}

.blog-title a {
  color: var(--text-dark); /* Исправлен цвет текста для лучшего контраста на светлом фоне */
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-title a:hover {
  color: var(--primary-blue); /* Исправлен цвет при наведении для лучшего контраста */
}

.blog-excerpt {
  margin-bottom: 1.5rem;
  color: var(--text-dark); /* Изменено на темный цвет для лучшего контраста */
  line-height: 1.6;
  flex: 1;
}

.blog-excerpt p {
  margin-bottom: 0;
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.5;
}

.blog-more {
  margin-bottom: 1rem;
}

.blog-more .read-more {
  width: 100%;
  justify-content: center;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.blog-more .read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(192, 192, 192, 0.3);
}

.blog-meta {
  color: var(--text-dark); /* Изменено на темный цвет для лучшего контраста */
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-dark);
}

/* Анимация появления карточек блога - убрана */

/* Задержка анимации для каждой карточки */
.blog-posts .col-lg-6:nth-child(1) .blog-card { animation-delay: 0.1s; }
.blog-posts .col-lg-6:nth-child(2) .blog-card { animation-delay: 0.2s; }
.blog-posts .col-lg-6:nth-child(3) .blog-card { animation-delay: 0.3s; }
.blog-posts .col-lg-6:nth-child(4) .blog-card { animation-delay: 0.4s; }
.blog-posts .col-lg-6:nth-child(5) .blog-card { animation-delay: 0.5s; }
.blog-posts .col-lg-6:nth-child(6) .blog-card { animation-delay: 0.6s; }
.blog-posts .col-lg-6:nth-child(7) .blog-card { animation-delay: 0.7s; }
.blog-posts .col-lg-6:nth-child(8) .blog-card { animation-delay: 0.8s; }

/* Стили для сообщения об отсутствии постов */
.no-posts {
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.no-posts-content {
  text-align: center;
  padding: 2rem;
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid var(--border-dark);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.no-posts-icon {
  position: relative;
}

.no-posts-icon .bi {
  opacity: 0.4;
  color: var(--primary-silver);
  animation: noPostsFloat 3s ease-in-out infinite;
}

@keyframes noPostsFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.no-posts h2 {
  font-weight: 700;
  color: var(--text-dark); /* Исправлен цвет текста для лучшего контраста на светлом фоне */
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.no-posts .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark); /* Изменено на темный цвет для лучшего контраста */
  opacity: 0.9;
  margin-bottom: 2rem;
}

.no-posts .lead strong {
  color: var(--primary-silver);
  font-weight: 600;
}

.no-posts-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.no-posts-actions .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.no-posts-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(192, 192, 192, 0.3);
}

.no-posts-actions .btn-outline-primary {
  border: 2px solid var(--primary-silver);
  color: var(--primary-silver);
  background: transparent;
}

.no-posts-actions .btn-outline-primary:hover {
  background: var(--primary-silver);
  color: var(--dark-bg);
  border-color: var(--primary-silver);
}

/* Адаптивность для Hero секции блога */
@media (max-width: 768px) {
  .blog-hero-section {
    padding: 3rem 0 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem !important;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  /* Удалены адаптивные стили статистики */
  
  .hero-illustration {
    height: 200px;
    margin-top: 2rem;
  }
  
  .hero-main-icon {
    font-size: 4rem;
  }
  
  .floating-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  /* Адаптивность для блока "нет постов" */
  .no-posts {
    padding: 2rem 0;
    min-height: 300px;
  }
  
  .no-posts-content {
    padding: 1.5rem;
  }
  
  .no-posts h2 {
    font-size: 1.5rem;
  }
  
  .no-posts .lead {
    font-size: 1rem;
  }
  
  .no-posts-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .no-posts-actions .btn {
    width: 100%;
    max-width: 250px;
  }
}

/* Адаптивность для карточек блога */
@media (max-width: 768px) {
  .blog-card {
    margin-bottom: 1.5rem;
  }
  
  .blog-title {
    font-size: 1.2rem;
  }
  
  .blog-title .bi-bookmark-fill {
    font-size: 0.9rem;
  }
  
  .blog-excerpt p {
    font-size: 0.95rem;
  }
  
  .blog-card-body {
    padding: 1.5rem;
  }
  
  .blog-meta-info {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .meta-item {
    font-size: 0.8rem;
  }
  
  .blog-read-more {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  /* На мобильных Bootstrap автоматически делает 1 колонку */
  .blog-posts .col-lg-6 {
    margin-bottom: 1.5rem;
  }
}

/* Планшеты и больше - Bootstrap grid автоматически обрабатывает */
@media (min-width: 992px) {
  .blog-posts .row {
    margin-bottom: 4rem;
  }
  
  .blog-hero-section {
    padding: 6rem 0 4rem;
  }
}


.blog-content .content-wrapper {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #000000;
  background: #F5F5F5;
  padding: 2rem;
  border-radius: 10px;
}

.blog-content .content-wrapper h1,
.blog-content .content-wrapper h2,
.blog-content .content-wrapper h3,
.blog-content .content-wrapper h4,
.blog-content .content-wrapper h5,
.blog-content .content-wrapper h6 {
  color: #000000;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.blog-content .content-wrapper h1 { font-size: 2.5rem; }
.blog-content .content-wrapper h2 { font-size: 2rem; }
.blog-content .content-wrapper h3 { font-size: 1.75rem; }
.blog-content .content-wrapper h4 { font-size: 1.5rem; }
.blog-content .content-wrapper h5 { font-size: 1.25rem; }
.blog-content .content-wrapper h6 { font-size: 1.1rem; }

.blog-content .content-wrapper p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.blog-content .content-wrapper ul,
.blog-content .content-wrapper ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.blog-content .content-wrapper li {
  margin-bottom: 0.5rem;
}

.blog-content .content-wrapper blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  background: rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  border-radius: 0 10px 10px 0;
  color: #000000;
}

.blog-content .content-wrapper img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
}

.blog-content .content-wrapper a {
  color: var(--primary-silver);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.blog-content .content-wrapper a:hover {
  color: var(--primary-silver-hover);
  border-bottom-color: var(--primary-silver);
}

.blog-featured-image {
  width: 100%;
  margin: 0 auto 2rem auto;
  overflow: hidden;
  text-align: center;
}

.blog-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Отключаем hover эффекты для похожих статей */
.list-group-item-action:hover {
  background-color: var(--light-gray-bg) !important;
  color: var(--text-dark) !important;
}

.list-group-item-action:focus {
  background-color: var(--light-gray-bg) !important;
  color: var(--text-dark) !important;
}

/* Красная обводка для формы заявки на карточке авто */
.car-contact-form {
  border: 2px solid var(--accent-red) !important;
  box-shadow: 0 0 15px rgba(196, 30, 58, 0.3) !important;
}

/* === Стили для категории Mercedes-Benz ========================== */
.mercedes-category-hero {
  background: #FFFFFF;
  color: var(--dark-bg) !important;
  position: relative;
  overflow: hidden;
}

.mercedes-category-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  animation: none;
  opacity: 0;
}

@keyframes mercedesPattern {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(20px) translateY(20px); }
}

.mercedes-category-hero .hero-badge {
  background: #F5F5F5;
  backdrop-filter: blur(10px);
  color: var(--dark-bg);
  border: 2px solid #E0E0E0;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mercedes-category-hero .hero-badge i {
  color: var(--dark-bg);
  text-shadow: none;
}

/* Переопределяем цвета текста для hero секции Mercedes */
.mercedes-category-hero .hero-title {
  color: #ffffff !important; /* Белый цвет для заголовков Mercedes */
}

.mercedes-category-hero .title-gradient {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: #ffffff !important; /* Белый цвет для градиентных заголовков */
}

.mercedes-category-hero .hero-description {
  color: #ffffff !important; /* Белый цвет для описаний Mercedes */
  opacity: 0.9;
}

.mercedes-category-hero .stat-number {
  color: #ffffff !important; /* Белый цвет для статистики Mercedes */
}

.mercedes-category-hero .stat-label {
  color: #ffffff !important; /* Белый цвет для меток статистики Mercedes */
  opacity: 0.8;
}

/* Специальные карточки Mercedes */
.mercedes-card {
  background: linear-gradient(145deg, var(--dark-bg) 0%, #1E1E1E 100%);
  border: 2px solid #333333;
  position: relative;
}

.mercedes-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-silver) 0%, #E0E0E0 50%, var(--primary-silver) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mercedes-card:hover::before {
  opacity: 1;
}

.mercedes-card:hover {
  border-color: var(--primary-silver);
  box-shadow: 0 15px 50px rgba(192, 192, 192, 0.2);
}

/* Бейдж Mercedes */
.mercedes-badge {
  background: linear-gradient(135deg, var(--primary-silver) 0%, #E0E0E0 100%);
  color: var(--dark-bg) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

/* Заглушка Mercedes */
.mercedes-placeholder {
  background: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%);
  border: 2px dashed var(--primary-silver);
}

.mercedes-placeholder .placeholder-content {
  opacity: 0.8;
}

.mercedes-placeholder i {
  color: var(--primary-silver);
}

/* Кнопка Mercedes */
.mercedes-read-more {
  background: linear-gradient(135deg, var(--primary-silver) 0%, #E0E0E0 100%);
  color: var(--dark-bg) !important;
  border: 2px solid transparent;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mercedes-read-more:hover {
  background: linear-gradient(135deg, #E0E0E0 0%, var(--primary-silver-hover) 100%);
  color: var(--dark-bg) !important;
  box-shadow: 0 8px 25px rgba(192, 192, 192, 0.5);
}

/* Теги статей */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-link {
  background: rgba(192, 192, 192, 0.1);
  border: 1px solid rgba(192, 192, 192, 0.3);
  color: var(--primary-silver);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag-link:hover {
  background: rgba(192, 192, 192, 0.2);
  border-color: var(--primary-silver);
  color: var(--primary-silver);
  transform: translateY(-1px);
}

/* Навигация по подкатегориям */
.subcategories-nav {
  background: linear-gradient(135deg, #1A1A1A 0%, #0D1117 100%);
  border-top: 1px solid #E0E0E0;
  border-bottom: 1px solid #333333;
}

.subcategories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.subcategory-link {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(192, 192, 192, 0.1);
  border: 2px solid rgba(192, 192, 192, 0.3);
  border-radius: 25px;
  color: var(--primary-silver);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.subcategory-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(192, 192, 192, 0.2), transparent);
  transition: left 0.5s ease;
}

.subcategory-link:hover::before {
  left: 100%;
}

.subcategory-link:hover {
  background: rgba(192, 192, 192, 0.2);
  border-color: var(--primary-silver);
  color: var(--primary-silver);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(192, 192, 192, 0.3);
}

.subcategory-link .count {
  margin-left: 0.5rem;
  background: rgba(192, 192, 192, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
}

/* Специальный блок "нет постов" для Mercedes */
.mercedes-no-posts {
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.8) 0%, rgba(30, 30, 30, 0.9) 100%);
  border: 2px solid rgba(192, 192, 192, 0.3);
}

.mercedes-no-posts .no-posts-icon i {
  color: var(--primary-silver);
}

/* Анимация для постов Mercedes */
.mercedes-category-posts .mercedes-card {
  animation: mercedesCardFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
}

@keyframes mercedesCardFadeIn {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  60% {
    opacity: 0.8;
    transform: translateY(-5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Задержка анимации для карточек Mercedes */
.mercedes-category-posts .col-lg-6:nth-child(1) .mercedes-card { animation-delay: 0.1s; }
.mercedes-category-posts .col-lg-6:nth-child(2) .mercedes-card { animation-delay: 0.2s; }
.mercedes-category-posts .col-lg-6:nth-child(3) .mercedes-card { animation-delay: 0.3s; }
.mercedes-category-posts .col-lg-6:nth-child(4) .mercedes-card { animation-delay: 0.4s; }
.mercedes-category-posts .col-lg-6:nth-child(5) .mercedes-card { animation-delay: 0.5s; }
.mercedes-category-posts .col-lg-6:nth-child(6) .mercedes-card { animation-delay: 0.6s; }

/* Адаптивность для Mercedes категории */
@media (max-width: 768px) {
  .mercedes-category-hero .hero-title {
    font-size: 2.2rem !important;
  }
  
  .subcategories-list {
    flex-direction: column;
  }
  
  .subcategory-link {
    justify-content: center;
  }
  
  .blog-tags {
    justify-content: center;
  }
  
  .mercedes-card .blog-title {
  font-size: 1.15rem;
  color: var(--text-dark); /* Темный цвет для заголовков в Mercedes карточках */
}

.mercedes-card .blog-title a {
  color: var(--text-dark); /* Темный цвет для ссылок заголовков */
}

.mercedes-card .blog-excerpt {
  color: var(--text-dark); /* Темный цвет для описаний в Mercedes карточках */
}

.mercedes-card .blog-excerpt p {
  color: var(--text-dark); /* Темный цвет для текста описаний */
}

.mercedes-card .meta-item {
  color: var(--text-muted); /* Темный цвет для мета-информации */
}
  
  /* Адаптивные стили для отдельных постов */
  .blog-content .content-wrapper {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .blog-content .content-wrapper h1 { font-size: 2rem; }
  .blog-content .content-wrapper h2 { font-size: 1.75rem; }
  .blog-content .content-wrapper h3 { font-size: 1.5rem; }
  .blog-content .content-wrapper h4 { font-size: 1.25rem; }
  .blog-content .content-wrapper h5 { font-size: 1.1rem; }
  .blog-content .content-wrapper h6 { font-size: 1rem; }
  
  .blog-featured-image {
    margin-bottom: 2rem;
  }
  
  .blog-hero-section .hero-title {
    font-size: 2.5rem !important;
  }
  
  .blog-hero-section .hero-description {
    font-size: 1rem;
  }
}

/* Дополнительные стили для больших экранов */
@media (min-width: 1200px) {
  .blog-posts .row {
    margin-bottom: 3rem;
  }
  
  .pagination-wrapper {
    margin-top: 4rem;
  }
  
  .mercedes-category-hero {
    padding: 6rem 0 4rem;
  }
  
  .subcategories-nav {
    padding: 2rem 0;
  }
}

/* ===================================================================
   НОВЫЕ СТИЛИ ДЛЯ УЛУЧШЕННОЙ ГЛАВНОЙ СТРАНИЦЫ
   =================================================================== */

/* ============================================================== */
/* === HERO SLIDER =============================================== */
/* ============================================================== */

.hero-slider-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #0a0e17;
}

.hero-slider {
  position: relative;
  height: 100%;
  width: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.8s ease;
  opacity: 0;
}

.hero-slide:first-child {
  opacity: 1;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(10, 14, 23, 0.85) 0%, 
    rgba(10, 14, 23, 0.6) 50%,
    rgba(10, 14, 23, 0.85) 100%);
  z-index: 2;
}

.hero-slide .container {
  position: relative;
  z-index: 3;
  height: 100%;
}

.hero-slide-content {
  max-width: 700px;
  padding: 2rem 0;
}

.hero-slide-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-slide-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-slide-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-hero-new {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border: none;
}

.btn-hero-primary-new {
  background: var(--primary-blue);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
}

.btn-hero-primary-new:hover {
  background: var(--primary-blue-hover);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.5);
}

.btn-hero-secondary-new {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary-new:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Slider Navigation */
.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.hero-slider-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.hero-slider-prev {
  left: 2rem;
}

.hero-slider-next {
  right: 2rem;
}

/* Slider Dots */
.hero-slider-dots {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.hero-slider-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-slider-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-slider-dot.active {
  background: #ffffff;
  border-color: #ffffff;
  width: 50px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

/* Old hero styles for backwards compatibility */
.hero-fullscreen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1a1f2e;
}

.hero-fullscreen-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-bg-image-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10,15,25,0.75) 0%, rgba(20,25,40,0.85) 100%);
  z-index: 2;
}

.hero-fullscreen-content {
  position: relative;
  z-index: 3;
  padding: 2rem 0;
}

.hero-main-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-main-subtitle {
  font-size: 1.4rem;
  color: #ffffff;
  font-weight: 400;
  margin-bottom: 3rem;
  opacity: 0.9;
  letter-spacing: 2px;
}

/* CTA Buttons */
.hero-cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 1.1rem 2.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
}

.btn-hero-primary {
  background: #1e3a8a;
  color: #ffffff;
}

.btn-hero-primary:hover {
  background: #1e40af;
  color: #ffffff;
}

.btn-hero-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-hero-secondary:hover {
  background: #ffffff;
  color: #1a1f2e;
}

/* ============================================================== */
/* === SEARCH SECTION (под hero) ================================ */
/* ============================================================== */

.search-section {
  background: #f8f9fa;
  position: relative;
  margin-top: -80px;
  z-index: 5;
}

.hero-advanced-search {
  max-width: 1200px;
  margin: 0 auto;
}

.advanced-search-form {
  background: #ffffff;
  border-radius: 12px;
  padding: 2.5rem;
  border: 1px solid #e9ecef;
  box-shadow: 0 15px 50px rgba(0,0,0,0.1);
  position: relative;
}

/* Статусы (чекбоксы) */
.search-status-filters {
  text-align: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.search-status-filters .form-check-inline {
  margin: 0;
  position: relative;
}

.search-status-filters .form-check-input {
  display: none;
}

.search-status-filters .form-check-label {
  display: inline-block;
  padding: 0.65rem 2rem;
  background: #f8f9fa;
  color: #495057;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.search-status-filters .form-check-label:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.search-status-filters .form-check-input:checked + .form-check-label {
  background: #dc3545;
  color: #ffffff;
  border-color: #dc3545;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Основные фильтры */
.search-main-filters {
  position: relative;
  z-index: 1;
}

.search-input {
  background: #ffffff;
  border: 2px solid #e9ecef;
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  font-weight: 400;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: #212529;
  height: 50px;
}

.search-input:hover {
  border-color: #dee2e6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.search-input:focus {
  background: #ffffff;
  border-color: var(--primary-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.search-input::placeholder {
  color: #6c757d;
  opacity: 0.7;
}

.btn-search-hero {
  background: var(--primary-blue);
  color: #ffffff;
  border: none;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  height: 50px;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.25);
}

.btn-search-hero:hover {
  background: var(--primary-blue-hover);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.35);
}

.btn-search-hero:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.25);
}

/* Старый класс для совместимости */
.btn-search {
  background: var(--primary-blue);
  color: #ffffff;
  border: none;
  padding: 0.875rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-search:hover {
  background: var(--primary-blue-hover);
  color: #ffffff;
}

/* Hero Slider Responsive */
@media (max-width: 1199px) {
  .hero-slide-title {
    font-size: 3rem;
  }
  
  .hero-slider-nav {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .hero-slider-prev {
    left: 1rem;
  }
  
  .hero-slider-next {
    right: 1rem;
  }
}

@media (max-width: 991px) {
  .hero-slider-section {
    height: 80vh;
    min-height: 600px;
  }
  
  .hero-slide-title {
    font-size: 2.5rem;
  }
  
  .hero-slide-subtitle {
    font-size: 1.1rem;
  }
  
  .btn-hero-new {
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
  }
  
  .search-section {
    margin-top: 0;
    padding-top: 3rem !important;
  }
  
  .advanced-search-form {
    padding: 2rem;
  }
}

/* Responsive для Hero Search */
@media (max-width: 991px) {
  .advanced-search-form {
    padding: 1.5rem;
  }
  
  .search-status-filters .form-check-inline {
    margin: 0 0.75rem;
  }
  
  .btn-search-hero {
    font-size: 0.875rem;
  }
}

@media (max-width: 767px) {
  .hero-slider-section {
    height: 70vh;
    min-height: 500px;
  }
  
  .hero-slide-title {
    font-size: 2rem;
  }
  
  .hero-slide-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-slide-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-hero-new {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .hero-slider-nav {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .hero-slider-prev {
    left: 0.5rem;
  }
  
  .hero-slider-next {
    right: 0.5rem;
  }
  
  .hero-slider-dots {
    bottom: 2rem;
  }
  
  .advanced-search-form {
    padding: 1.5rem;
  }
  
  .search-status-filters {
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 1rem;
  }
  
  .search-status-filters .form-check-label {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1.5rem;
  }
  
  .search-main-filters .row {
    row-gap: 0.75rem !important;
  }
  
  .search-input {
    font-size: 0.9rem;
    height: 48px;
  }
  
  .btn-search-hero {
    font-size: 0.95rem;
    height: 48px;
  }
}

/* === Section Title Styles ======================================== */
.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--gray-900);
  text-transform: uppercase;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.section-title-line {
  width: 50px;
  height: 2px;
  background: var(--gray-300);
}

.section-title-light {
  color: #ffffff;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray-600);
  font-weight: 400;
}

.section-subtitle-light {
  color: rgba(255,255,255,0.9);
}

/* === Car Card New (Новинки) ====================================== */
.section-new-cars {
  background: #ffffff;
}

.car-card-new {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

.car-card-new:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: var(--gray-300);
}

.car-card-new-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-100);
}

.car-card-new-image .car-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.car-card-new:hover .car-img {
  transform: scale(1.1);
}

.car-badge-new {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ef4444;
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.car-card-new-body {
  padding: 1.5rem;
}

.car-card-new-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.car-card-new-title a {
  color: var(--gray-900);
  text-decoration: none;
  transition: color 0.3s ease;
}

.car-card-new-title a:hover {
  color: var(--primary-blue);
}

.car-card-new-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.car-card-new-subtitle {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.btn-details {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.5rem;
  background: var(--primary-blue);
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-details:hover {
  background: var(--primary-blue-hover);
  color: #ffffff;
}

/* === Special Offers Section ====================================== */
.section-special-offers {
  background: #ffffff;
  color: var(--gray-900);
}

.section-title-left {
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--gray-900);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0;
  text-align: left;
}

.promo-card {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.promo-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
}

/* Fallback фоны для промо-карточек если нет изображений */
.promo-image-1 {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.promo-image-2 {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.promo-image-3 {
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
}

.promo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.promo-card:hover .promo-img {
  transform: scale(1.05);
}

.promo-card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.promo-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-height: 3em;
}

.promo-card-text {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.promo-card-content {
  flex: 1;
}

.promo-card-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.btn-promo {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-blue);
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
}

.btn-promo:hover {
  background: var(--primary-blue-hover);
  color: #ffffff;
}

/* Responsive для промо-карточек */
@media (max-width: 991px) {
  .section-title-left {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .section-title-left {
    font-size: 1.25rem;
    letter-spacing: 1px;
  }
  
  .promo-card-title {
    font-size: 1rem;
  }
  
  .promo-card-body {
    padding: 1.5rem;
  }
}

/* Старые стили offer удалены - теперь используются promo-card */

/* === Catalog Section ============================================= */
.section-catalog {
  background: #ffffff;
}

/* Новый стиль фильтров */
.catalog-filters-new {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 4px;
  margin-bottom: 2rem;
}

.catalog-filters-new .form-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.filter-select,
.filter-input {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #212529;
  transition: all 0.2s ease;
  height: 48px;
  font-weight: 400;
}

.filter-select:hover,
.filter-input:hover {
  border-color: #adb5bd;
}

.filter-select:focus,
.filter-input:focus {
  border-color: var(--primary-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.1);
}

.filter-input::placeholder {
  color: #6c757d;
  font-size: 0.9rem;
}

.btn-filter-search {
  background: var(--primary-blue);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  height: 48px;
}

.btn-filter-search:hover {
  background: var(--primary-blue-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(24, 119, 242, 0.2);
}

.btn-filter-search:active {
  transform: translateY(0);
}

#resetFilters {
  text-decoration: none;
  color: #6c757d;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

#resetFilters:hover {
  color: var(--primary-blue);
  text-decoration: none;
}

#resetFilters i {
  font-size: 0.875rem;
}

.catalog-results-count {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 1rem;
}

.catalog-results-count p {
  margin: 0;
  font-size: 0.95rem;
}

.catalog-view-toggle .btn {
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  border-color: #dee2e6;
}

.catalog-view-toggle .btn:hover {
  background-color: #f8f9fa;
  border-color: #adb5bd;
}

.catalog-view-toggle .btn.active,
.catalog-view-toggle .btn:active {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
}

/* === NEW CATALOG DESIGN WITH SIDEBAR ================================= */

/* Hero Section */
.catalog-hero-new {
  border-bottom: 1px solid #e9ecef;
}

.catalog-title-new {
  font-size: 1.75rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.5rem;
}

.catalog-subtitle-new {
  font-size: 0.95rem;
}

.catalog-sort-new {
  display: flex;
  align-items: center;
}

.catalog-sort-new label {
  margin-bottom: 0;
  white-space: nowrap;
}

/* Status Filters */
.catalog-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.75rem 0;
}

.catalog-status-filters .form-check {
  margin: 0;
}

.catalog-status-filters .form-check-label {
  font-size: 0.9rem;
  color: #495057;
  cursor: pointer;
}

.catalog-status-filters .form-check-input:checked {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

/* Sidebar Filters */
.sidebar-filters {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.filter-group {
  border-bottom: 1px solid #e9ecef;
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-group-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  color: #212529;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.filter-group-toggle:hover {
  background-color: #f8f9fa;
}

.filter-group-toggle i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.filter-group-toggle[aria-expanded="false"] i {
  transform: rotate(-90deg);
}

.filter-group-content {
  padding: 0 1rem 1rem 1rem;
}

/* Ползунок цены (noUiSlider) */
#priceSlider,
.price-slider-widget {
  margin: 8px 0 0 0;
}
#priceSlider .noUi-connect,
.price-slider-widget .noUi-connect {
  background: #0d6efd;
}
#priceSlider .noUi-handle,
.price-slider-widget .noUi-handle {
  border-radius: 50%;
  width: 20px !important;
  height: 20px !important;
  right: -10px !important;
  top: -6px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: grab;
}
#priceSlider .noUi-handle:before,
#priceSlider .noUi-handle:after,
.price-slider-widget .noUi-handle:before,
.price-slider-widget .noUi-handle:after {
  display: none;
}
.price-slider-hero-wrap {
  padding: 8px 0;
}

.filter-checkbox-list {
  max-height: 250px;
  overflow-y: auto;
}

.filter-checkbox-list .form-check {
  margin-bottom: 0.5rem;
}

.filter-checkbox-list .form-check:last-child {
  margin-bottom: 0;
}

.filter-checkbox-list .form-check-label {
  font-size: 0.9rem;
  color: #495057;
  cursor: pointer;
}

.filter-checkbox-list .form-check-input {
  cursor: pointer;
}

.filter-actions {
  padding: 1rem;
}

.filter-actions .btn-primary {
  background: var(--primary-blue);
  border: none;
  padding: 0.75rem;
  font-weight: 500;
}

.filter-actions .btn-primary:hover {
  background: var(--primary-blue-hover);
}

.filter-actions .btn-link {
  font-size: 0.875rem;
  text-decoration: none;
}

.filter-actions .btn-link:hover {
  color: var(--primary-blue);
}

/* Catalog Cards Compact */
.catalog-card-compact {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.catalog-card-compact:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.catalog-card-image {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  aspect-ratio: 4/3;
}

.catalog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.catalog-card-compact:hover .catalog-card-image img {
  transform: scale(1.05);
}

.catalog-no-image-compact {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.catalog-no-image-compact i {
  font-size: 3rem;
  color: #adb5bd;
}

.catalog-card-icons {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.catalog-card-compact:hover .catalog-card-icons {
  opacity: 1;
}

.catalog-icon-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.catalog-icon-btn:hover {
  background: var(--primary-blue);
  color: #ffffff;
  transform: scale(1.1);
}

.catalog-status-badge {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.catalog-status-badge i {
  font-size: 0.875rem;
}

/* Варианты бейджа статуса наличия */
.catalog-status-badge.badge-in-stock {
  background: rgba(40, 167, 69, 0.95);
}

.catalog-status-badge.badge-on-order {
  background: rgba(255, 152, 0, 0.95);
}

.catalog-status-badge.badge-in-transit {
  background: rgba(33, 150, 243, 0.95);
}

.catalog-card-body-compact {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.catalog-card-title-compact {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.catalog-card-title-compact a {
  color: #212529;
  text-decoration: none;
  transition: color 0.2s ease;
}

.catalog-card-title-compact a:hover {
  color: var(--primary-blue);
}

.catalog-card-subtitle-compact {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
}

.catalog-card-price-compact {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
}

.catalog-card-specs-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.spec-compact {
  font-size: 0.75rem;
  color: #6c757d;
  background: #f8f9fa;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
}

/* Pagination */
.catalog-pagination .pagination {
  margin: 0;
}

.catalog-pagination .page-link {
  color: #495057;
  border: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
  margin: 0 0.125rem;
  border-radius: 4px;
}

.catalog-pagination .page-link:hover {
  background-color: #f8f9fa;
  color: var(--primary-blue);
}

.catalog-pagination .page-item.active .page-link {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
}

/* No Results */
.no-results-catalog {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 4px;
}

/* View All Cars Button */
.btn-view-all-cars {
  background: var(--primary-blue);
  color: #ffffff;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.2);
}

.btn-view-all-cars:hover {
  background: var(--primary-blue-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.3);
}

.btn-view-all-cars i {
  transition: transform 0.3s ease;
}

.btn-view-all-cars:hover i {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 991px) {
  .sidebar-filters {
    position: static;
    max-height: none;
    margin-bottom: 2rem;
  }
  
  .catalog-sort-new {
    justify-content: flex-start;
    margin-top: 1rem;
  }
  
  .catalog-status-filters {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 767px) {
  .catalog-title-new {
    font-size: 1.5rem;
  }
  
  .catalog-hero-new .col-lg-4 {
    margin-top: 1rem;
  }
  
  .filter-checkbox-list {
    max-height: 200px;
  }
}

/* Старый стиль (оставим на всякий случай) */
.catalog-controls {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid var(--gray-200);
}

.catalog-filter {
  background: #ffffff;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-weight: 400;
  transition: all 0.3s ease;
}

.catalog-filter:focus {
  border-color: var(--primary-blue);
  outline: none;
}

.catalog-card {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  height: 100%;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: var(--gray-300);
}

.catalog-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-100);
}

.catalog-card-image .catalog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.catalog-card:hover .catalog-img {
  transform: scale(1.08);
}

.catalog-card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

.catalog-card:hover .catalog-card-actions {
  opacity: 1;
  transform: translateX(0);
}

.catalog-action-btn {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.catalog-action-btn:hover {
  background: var(--primary-blue);
  color: #ffffff;
}

.catalog-card-body {
  padding: 1.25rem;
}

.catalog-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.catalog-card-title a {
  color: var(--gray-900);
  text-decoration: none;
  transition: color 0.3s ease;
}

.catalog-card-title a:hover {
  color: var(--primary-blue);
}

.catalog-card-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.catalog-card-subtitle {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.btn-catalog {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--gray-100);
  color: var(--gray-900);
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-catalog:hover {
  background: var(--primary-blue);
  color: #ffffff;
}

.btn-load-more {
  padding: 0.875rem 2.5rem;
  background: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-load-more:hover {
  background: var(--primary-blue);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(30, 58, 138, 0.3);
}

/* === About Dealer Section ======================================== */
.section-about-dealer {
  background: var(--gray-50);
}

.about-dealer-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--primary-blue);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.about-dealer-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.about-dealer-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}

.about-dealer-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 120px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.4;
}

.about-dealer-image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.about-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-dealer-image:hover .about-img {
  transform: scale(1.02);
}

/* Responsive для блока об автодилере */
@media (max-width: 991px) {
  .about-dealer-title {
    font-size: 1.75rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .about-dealer-stats {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .about-dealer-title {
    font-size: 1.5rem;
  }
  
  .about-dealer-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-item {
    text-align: center;
  }
}

/* === Why Us Section ============================================== */
.section-why-us {
  background: #ffffff;
  color: var(--gray-900);
  position: relative;
}

.section-why-us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
}

.advantage-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
  height: 100%;
}

.advantage-card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
  transform: translateY(-4px);
}

.advantage-icon {
  width: 60px;
  height: 60px;
  background: var(--gray-50);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
  color: var(--primary-blue);
  border: 2px solid var(--gray-200);
  transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
  transform: scale(1.05);
}

.advantage-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
  line-height: 1.3;
  min-height: 2.6em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.advantage-text {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.5;
  word-wrap: break-word;
}

/* === Reviews Section (старый) ==================================== */
.section-reviews {
  background: var(--gray-50);
}

/* === Новый блок отзывов ========================================== */
.section-reviews-new {
  background: #f8f9fa;
  color: var(--gray-900);
}

.reviews-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

.reviews-nav-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}

.review-nav-btn {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.3s ease;
}

.review-nav-btn:hover {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
}

/* Карточка-«пост»: галерея 1 + 3, затем текст (светлая тема сайта) */
.review-card-new.review-card-post {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.review-card-new.review-card-post:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--gray-300);
  transform: translateY(-4px);
}

.review-card-gallery {
  background: #eceff1;
}

/* Галерея отзыва: десктоп — смена кадра по X курсора (как Авито); мобилка — свайп + точки */
.review-gallery-avito {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-200);
  cursor: ew-resize;
  outline: none;
}

.review-gallery-avito:focus-visible {
  box-shadow: inset 0 0 0 2px var(--primary-blue, #0d6efd);
}

.review-gallery-slides {
  position: absolute;
  inset: 0;
}

.review-gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.12s ease;
  z-index: 0;
  pointer-events: none;
}

.review-gallery-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.review-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 3;
  pointer-events: none;
}

.review-gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.15s ease, background 0.15s ease;
}

.review-gallery-dot.is-active {
  background: #ffffff;
  transform: scale(1.2);
}

@media (max-width: 767.98px) {
  .review-gallery-avito {
    cursor: default;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-gallery-slide {
    transition: none;
  }
  .review-gallery-dot {
    transition: none;
  }
}

.review-card-post-body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.review-card-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.65rem;
}

.review-card-post .review-rating-new {
  margin-bottom: 0.85rem;
}

.review-author-new {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0;
}

.review-date {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

.review-rating-new {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.review-rating-new i {
  color: #fbbf24;
  font-size: 1rem;
}

.review-text-new {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 0;
  font-style: italic;
}

/* Responsive для кнопок навигации */
@media (max-width: 767px) {
  .reviews-nav-buttons {
    justify-content: center;
    margin-top: 1rem;
  }
}

/* Responsive для отзывов */
@media (max-width: 991px) {
  .review-card-post-body {
    padding: 1.1rem 1.2rem 1.35rem;
  }
}

.reviews-slider {
  max-width: 800px;
  margin: 0 auto;
}

.review-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  border: 2px solid var(--gray-200);
}

.review-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.review-avatar {
  font-size: 4rem;
  color: var(--gray-400);
  line-height: 1;
}

.review-meta {
  flex: 1;
}

.review-author {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.review-rating {
  margin-bottom: 0.5rem;
}

.review-rating i {
  color: #fbbf24;
  font-size: 1.1rem;
}

.review-car {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin: 0;
}

.review-body {
  padding-left: 5.5rem;
}

.review-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-700);
  font-style: italic;
  margin: 0;
}

.review-indicators {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.review-indicator {
  width: 12px;
  height: 12px;
  background: var(--gray-300);
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.review-indicator.active {
  background: var(--primary-blue);
  width: 30px;
  border-radius: 6px;
}

/* === News Section ================================================ */
.section-news {
  background: #ffffff;
}

.news-card {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-color: var(--gray-300);
}

.news-card-image {
  overflow: hidden;
  aspect-ratio: 16/9;
}

.news-card-image .news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-img {
  transform: scale(1.1);
}

.news-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
  flex: 1;
}

.news-card-title a {
  color: var(--gray-900);
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-card-title a:hover {
  color: var(--primary-blue);
}

.news-card-date {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.btn-news {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--gray-100);
  color: var(--gray-900);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.btn-news:hover {
  background: var(--primary-blue);
  color: #ffffff;
  transform: translateX(5px);
}

/* === Contact Form Section ======================================== */
.section-contact-form {
  background: linear-gradient(135deg, var(--gray-50) 0%, #ffffff 100%);
}

.contact-form-card {
  background: #ffffff;
  border-radius: 4px;
  padding: 3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid var(--gray-200);
}

.contact-form-icon {
  font-size: 4rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.contact-form-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-form-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

.contact-form-main .form-control {
  padding: 1rem 1.25rem;
  border: 2px solid var(--gray-300);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form-main .form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.15);
}

.contact-form-main .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--gray-400);
  border-radius: 4px;
}

.contact-form-main .form-check-input:checked {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.contact-form-main .form-check-label {
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-left: 0.5rem;
}

.btn-contact-form {
  padding: 1rem 3rem;
  background: var(--primary-blue);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-contact-form:hover {
  background: var(--primary-blue-hover);
  color: #ffffff;
}

/* === Responsive Styles =========================================== */
@media (max-width: 1199px) {
  .quick-search-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .hero-main-title {
    font-size: 3rem;
  }
  
  .hero-main-subtitle {
    font-size: 1.4rem;
  }
  
  .hero-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-hero {
    padding: 0.875rem 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .advantage-icon {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
  }
}

@media (max-width: 767px) {
  .hero-main-title {
    font-size: 2.2rem;
    letter-spacing: 1px;
  }
  
  .hero-main-subtitle {
    font-size: 1.2rem;
  }
  
  .quick-search-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-search-form {
    padding: 1.5rem;
  }
  
  .section-title {
    font-size: 1.75rem;
    gap: 1rem;
  }
  
  .section-title-line {
    width: 40px;
  }
  
  .contact-form-card {
    padding: 2rem 1.5rem;
  }
  
  .contact-form-title {
    font-size: 1.5rem;
  }
  
  .review-body {
    padding-left: 0;
    margin-top: 1rem;
  }
  
  .review-header {
    flex-direction: column;
    text-align: center;
  }
}

/* ===================================================================
   СТИЛИ ДЛЯ ОТДЕЛЬНОЙ СТРАНИЦЫ КАТАЛОГА (page-catalog.php)
   =================================================================== */

/* === Catalog Hero ================================================ */
.catalog-hero {
  background: linear-gradient(135deg, var(--gray-50) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--gray-200);
}

.catalog-page-hero {
  border-bottom: 1px solid #e9ecef;
}

.catalog-page-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.5rem;
}

.catalog-page-hero p {
  font-size: 1rem;
  color: #6c757d;
}

.catalog-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.catalog-title-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
}

.catalog-hero-subtitle {
  font-size: 1.2rem;
  color: var(--gray-600);
  margin: 0;
}

/* === Catalog Filters ============================================= */
.catalog-main {
  background: #ffffff;
}

.catalog-filters-wrapper {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: 16px;
  border: 2px solid var(--gray-200);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.catalog-filters-wrapper .form-label {
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.catalog-filter {
  background: #ffffff;
  border: 2px solid var(--gray-300);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-900);
  transition: all 0.3s ease;
}

.catalog-filter:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.15);
  background: #ffffff;
}

#resetFilters, #resetFiltersNoResults {
  white-space: nowrap;
}

/* === Results Info ================================================ */
.catalog-results-info {
  background: var(--gray-50);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
}

.results-count {
  font-size: 1rem;
  color: var(--gray-700);
}

.results-count strong {
  color: var(--primary-blue);
  font-size: 1.1rem;
}

.results-sort {
  display: flex;
  align-items: center;
}

.results-sort label {
  font-size: 0.9rem;
  color: var(--gray-700);
  margin-bottom: 0;
}

.results-sort .form-select {
  border: 2px solid var(--gray-300);
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
}

/* === Catalog Card Full =========================================== */
.catalog-card-full {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--gray-200);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.catalog-card-full:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 45px rgba(0,0,0,0.12);
  border-color: var(--primary-blue);
}

.catalog-card-full-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-100);
}

.catalog-card-full-image .catalog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.catalog-card-full:hover .catalog-img {
  transform: scale(1.08);
}

.catalog-no-image {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  color: var(--gray-400);
  font-size: 1rem;
  gap: 0.5rem;
}

.catalog-no-image i {
  font-size: 3rem;
}

.catalog-card-full-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

.catalog-card-full:hover .catalog-card-full-actions {
  opacity: 1;
  transform: translateX(0);
}

.catalog-action-btn {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.catalog-action-btn:hover {
  background: var(--primary-blue);
  color: #ffffff;
}

.catalog-action-btn.active {
  background: #ef4444;
  color: #ffffff;
}

.catalog-action-btn.active i {
  animation: heartBeat 0.5s;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1.1); }
}

/* Бейдж NEW */
.catalog-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.catalog-badge-new {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  animation: badgePulseLoop 2s infinite;
}

@keyframes badgePulseLoop {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6); }
}

.catalog-card-full-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.catalog-card-full-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.catalog-card-full-title a {
  color: var(--gray-900);
  text-decoration: none;
  transition: color 0.3s ease;
}

.catalog-card-full-title a:hover {
  color: var(--primary-blue);
}

.catalog-card-full-subtitle {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.catalog-card-full-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.catalog-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex: 1;
}

.spec-badge {
  display: inline-flex;
  align-items: center;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--gray-200);
}

.spec-badge i {
  color: var(--primary-blue);
  font-size: 0.85rem;
}

.btn-catalog-full {
  display: block;
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: var(--primary-blue);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.btn-catalog-full:hover {
  background: var(--primary-blue-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.btn-catalog-full i {
  transition: transform 0.3s ease;
}

.btn-catalog-full:hover i {
  transform: translateX(5px);
}

/* === List View =================================================== */
.catalog-grid.list-view {
  display: flex;
  flex-direction: column;
}

.catalog-grid.list-view .catalog-item {
  max-width: 100%;
}

.catalog-grid.list-view .catalog-card-full {
  flex-direction: row;
  height: auto;
}

.catalog-grid.list-view .catalog-card-full-image {
  width: 300px;
  min-width: 300px;
  aspect-ratio: 4/3;
}

.catalog-grid.list-view .catalog-card-full-body {
  flex: 1;
  padding: 2rem;
}

.catalog-grid.list-view .catalog-card-full-title {
  font-size: 1.5rem;
}

.catalog-grid.list-view .catalog-card-full-price {
  font-size: 1.8rem;
}

.catalog-grid.list-view .btn-catalog-full {
  width: auto;
  align-self: flex-start;
  padding: 0.875rem 2rem;
}

.catalog-grid.list-view .catalog-card-specs {
  margin-bottom: 1.5rem;
}

/* === No Results ================================================== */
.no-results {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-results-content {
  max-width: 500px;
  padding: 3rem 2rem;
  background: var(--gray-50);
  border-radius: 20px;
  border: 2px solid var(--gray-200);
}

.no-results h3 {
  color: var(--gray-900);
  font-weight: 700;
}

/* === CTA Section ================================================= */
.catalog-cta {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-hover) 100%);
}

.cta-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
}

.cta-title i {
  color: var(--primary-blue);
}

.cta-text {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.btn-cta {
  background: var(--primary-blue);
  color: #ffffff;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(30, 58, 138, 0.3);
  white-space: nowrap;
}

.btn-cta:hover {
  background: var(--primary-blue-hover);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(30, 58, 138, 0.4);
}

/* === Responsive для каталога ===================================== */
@media (max-width: 1199px) {
  .catalog-grid.list-view .catalog-card-full-image {
    width: 250px;
    min-width: 250px;
  }
}

@media (max-width: 991px) {
  .catalog-hero-title {
    font-size: 2rem;
  }
  
  .catalog-filters-wrapper {
    padding: 1.25rem;
  }
  
  .results-sort {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .catalog-grid.list-view .catalog-card-full {
    flex-direction: column;
  }
  
  .catalog-grid.list-view .catalog-card-full-image {
    width: 100%;
    min-width: 100%;
  }
  
  .catalog-grid.list-view .catalog-card-full-body {
    padding: 1.5rem;
  }
  
  .catalog-grid.list-view .btn-catalog-full {
    width: 100%;
  }
  
  .cta-card {
    padding: 2rem 1.5rem;
  }
  
  .cta-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 767px) {
  .catalog-hero-title {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .catalog-title-line {
    width: 40px;
    height: 2px;
  }
  
  .catalog-hero-subtitle {
    font-size: 1rem;
  }
  
  .catalog-filters-wrapper {
    padding: 1rem;
  }
  
  .catalog-filters-wrapper .col-lg-10,
  .catalog-filters-wrapper .col-lg-2 {
    margin-bottom: 0.5rem;
  }
  
  .catalog-results-info {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }
  
  .results-sort {
    width: 100%;
  }
  
  .results-sort .form-select {
    width: 100% !important;
  }
  
  .catalog-card-full-title {
    font-size: 1rem;
  }
  
  .catalog-card-full-price {
    font-size: 1.2rem;
  }
  
  .btn-catalog-full {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
  
  .cta-title {
    font-size: 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .cta-text {
    font-size: 0.95rem;
  }
  
  .btn-cta {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* Анимации убраны */

/* === Notifications (Уведомления) ================================= */
.catalog-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #ffffff;
  color: var(--gray-900);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 0.95rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid var(--primary-blue);
}

.catalog-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.catalog-notification-success {
  border-left-color: #10b981;
}

.catalog-notification-success i {
  color: #10b981;
}

.catalog-notification-warning {
  border-left-color: #f59e0b;
}

.catalog-notification-warning i {
  color: #f59e0b;
}

.catalog-notification-info {
  border-left-color: var(--primary-blue);
}

.catalog-notification-info i {
  color: var(--primary-blue);
}

.catalog-notification i {
  font-size: 1.2rem;
}

@media (max-width: 767px) {
  .catalog-notification {
    bottom: 20px;
    right: 20px;
    left: 20px;
    font-size: 0.9rem;
    padding: 0.875rem 1.25rem;
  }
}

/* ================================================================
   СТРАНИЦА КОНТАКТОВ
   ================================================================ */

/* Hero секция контактов */
.contacts-hero {
  background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
  padding: 4rem 0 3rem;
  color: #ffffff;
}

.contacts-hero-title {
  font-size: 2.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}

.contacts-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1px;
  margin-bottom: 0;
}

/* Карточки контактной информации */
.contacts-main {
  background: #ffffff;
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: var(--gray-300);
}

.contact-card-icon {
  width: 64px;
  height: 64px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary-blue);
}

.contact-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-card-text {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 0;
}

.contact-card-phone {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-blue);
  text-decoration: none;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.contact-card-phone:hover {
  color: var(--primary-blue-hover);
}

.contact-card-schedule {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Секция услуг */
.contacts-services {
  background: var(--gray-50);
}

.services-column {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 2rem;
}

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

.service-item {
  font-size: 1rem;
  color: var(--gray-800);
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
  padding-left: 2rem;
}

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

.service-item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-size: 1.5rem;
  font-weight: bold;
}

/* Карта и форма */
.contacts-map-form {
  background: #ffffff;
}

.contacts-map {
  height: 500px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.contacts-form-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 2.5rem;
  height: 100%;
}

.contacts-form-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contacts-form-subtitle {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.contacts-input {
  background: #ffffff;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.contacts-input:focus {
  border-color: var(--primary-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.contacts-input::placeholder {
  color: var(--gray-400);
}

.btn-contact-submit {
  width: 100%;
  padding: 1rem;
  background: var(--primary-blue);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-contact-submit:hover {
  background: var(--primary-blue-hover);
}

.contacts-form-privacy {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 1rem;
  margin-bottom: 0;
  text-align: center;
  line-height: 1.4;
}

/* Responsive для контактов */
@media (max-width: 991px) {
  .contacts-hero-title {
    font-size: 2rem;
  }
  
  .contacts-map {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .contacts-hero {
    padding: 3rem 0 2rem;
  }
  
  .contacts-hero-title {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }
  
  .contacts-hero-subtitle {
    font-size: 1rem;
  }
  
  .contact-info-card {
    padding: 1.5rem;
  }
  
  .contact-card-icon {
    width: 56px;
    height: 56px;
  }
  
  .contact-card-phone {
    font-size: 1.1rem;
  }
  
  .services-column {
    padding: 1.5rem;
  }
  
  .contacts-map {
    height: 300px;
    margin-bottom: 2rem;
  }
  
  .contacts-form-card {
    padding: 1.5rem;
  }
}

/* ============================================================== */
/* === BLOG PAGE STYLES ======================================== */
/* ============================================================== */

.blog-hero-modern {
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.blog-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #212529;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.blog-title-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
}

.blog-hero-subtitle {
  font-size: 1.1rem;
  margin: 0;
  color: #6c757d;
}

.blog-archive-modern {
  background: #ffffff;
}

.blog-card-archive {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.blog-card-archive:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.blog-card-archive-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.blog-card-archive-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card-archive:hover .blog-card-archive-image img {
  transform: scale(1.08);
}

.blog-archive-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.blog-archive-placeholder i {
  font-size: 3rem;
  color: #adb5bd;
}

.blog-archive-date-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.date-day {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1;
}

.date-month {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.blog-archive-category-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-blue);
  color: #ffffff;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.blog-card-archive-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-archive-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-card-archive-title a {
  color: #212529;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-archive-title a:hover {
  color: var(--primary-blue);
}

.blog-card-archive-excerpt {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.blog-card-archive-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.blog-card-archive-meta i {
  font-size: 0.875rem;
}

.blog-archive-read-more {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  margin-top: auto;
}

.blog-archive-read-more:hover {
  color: var(--primary-blue-hover);
  gap: 0.5rem;
}

.blog-archive-read-more i {
  transition: transform 0.2s ease;
}

.blog-archive-read-more:hover i {
  transform: translateX(4px);
}

.blog-pagination {
  margin-top: 3rem;
}

.blog-pagination .pagination {
  margin: 0;
}

.blog-pagination .page-link {
  color: #495057;
  border: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
  margin: 0 0.125rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.blog-pagination .page-link:hover {
  background-color: #f8f9fa;
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.blog-pagination .page-item.active .page-link {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
}

.blog-pagination .page-item.disabled .page-link {
  background-color: #ffffff;
  border-color: #dee2e6;
  color: #6c757d;
}

.no-posts-blog {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 4rem 2rem;
}

/* Responsive Blog Styles */
@media (max-width: 991px) {
  .blog-hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .blog-hero-title {
    font-size: 1.75rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .blog-title-line {
    width: 40px;
    height: 2px;
  }
  
  .blog-card-archive-image {
    aspect-ratio: 16/9;
  }
  
  .blog-card-archive-title {
    font-size: 1rem;
  }
  
  .blog-archive-date-badge {
    padding: 0.4rem 0.6rem;
  }
  
  .date-day {
    font-size: 1.25rem;
  }
  
  .date-month {
    font-size: 0.7rem;
  }
}

/* ============================================================== */
/* === SINGLE POST PAGE STYLES ================================= */
/* ============================================================== */

.single-post-content {
  background: #ffffff;
}

.single-post-featured-image {
  border-radius: 4px;
  overflow: hidden;
}

.single-post-featured-image img {
  border-radius: 4px;
}

.single-post-article {
  background: #ffffff;
}

.post-content-wrapper {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #212529;
}

.post-content-wrapper h2,
.post-content-wrapper h3,
.post-content-wrapper h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #212529;
}

.post-content-wrapper h2 {
  font-size: 1.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-blue);
}

.post-content-wrapper h3 {
  font-size: 1.5rem;
}

.post-content-wrapper h4 {
  font-size: 1.25rem;
}

.post-content-wrapper p {
  margin-bottom: 1.5rem;
}

.post-content-wrapper ul,
.post-content-wrapper ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.post-content-wrapper li {
  margin-bottom: 0.5rem;
}

.post-content-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-content-wrapper blockquote {
  border-left: 4px solid var(--primary-blue);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #6c757d;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 4px;
}

.post-content-wrapper a {
  color: var(--primary-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.post-content-wrapper a:hover {
  border-bottom-color: var(--primary-blue);
}

.single-post-tags {
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

.tags-title {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: #212529;
}

.tags-title i {
  color: var(--primary-blue);
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  color: #495057;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid #e9ecef;
}

.tag-badge:hover {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

.single-post-navigation {
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

.post-nav-card {
  display: block;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  height: 100%;
}

.post-nav-card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.post-nav-direction {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prev-post .post-nav-direction {
  justify-content: flex-start;
}

.next-post .post-nav-direction {
  justify-content: flex-end;
}

.post-nav-title {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  margin: 0;
  transition: color 0.2s ease;
}

.post-nav-card:hover .post-nav-title {
  color: var(--primary-blue);
}

.single-post-related {
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 2px solid #e9ecef;
}

.related-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #212529;
  display: flex;
  align-items: center;
}

.related-title i {
  color: var(--primary-blue);
}

.related-post-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.related-post-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.related-post-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.related-post-card:hover .related-post-image img {
  transform: scale(1.08);
}

.related-post-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-post-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  flex: 1;
}

.related-post-title a {
  color: #212529;
  text-decoration: none;
  transition: color 0.2s ease;
}

.related-post-title a:hover {
  color: var(--primary-blue);
}

.related-post-date {
  font-size: 0.85rem;
  color: #6c757d;
  display: flex;
  align-items: center;
}

/* Responsive Single Post */
@media (max-width: 767px) {
  .post-content-wrapper {
    font-size: 1rem;
  }
  
  .post-content-wrapper h2 {
    font-size: 1.5rem;
  }
  
  .post-content-wrapper h3 {
    font-size: 1.25rem;
  }
  
  .post-content-wrapper h4 {
    font-size: 1.125rem;
  }
  
  .post-nav-card {
    padding: 1rem;
  }
  
  .related-title {
    font-size: 1.25rem;
  }
}

/* ================================================================
   HOMEPAGE H1
   ================================================================ */
.homepage-h1 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  padding: 1rem 0 0;
  margin: 0;
  color: var(--text-primary, #1a1a2e);
}

/* ================================================================
   КАК ЗАКАЗАТЬ АВТОМОБИЛЬ (степпер)
   ================================================================ */
.section-how-to-order {
  background: #f8f9fa;
}

.hto-step-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  position: relative;
  border: 1px solid #e9ecef;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hto-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.hto-step-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary, #0d6efd);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.hto-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary, #1a1a2e);
}

.hto-step-text {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.6;
}

/* ================================================================
   FAQ АККОРДЕОН (главная)
   ================================================================ */
.section-homepage-faq {
  background: #fff;
}

.homepage-faq-accordion .accordion-item {
  border: 1px solid #e9ecef;
  border-radius: 8px !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.homepage-faq-accordion .accordion-button {
  font-weight: 600;
  font-size: 1rem;
  padding: 1.1rem 1.5rem;
  background: #fff;
  color: var(--text-primary, #1a1a2e);
}

.homepage-faq-accordion .accordion-button:not(.collapsed) {
  background: #f8f9fa;
  color: var(--primary, #0d6efd);
  box-shadow: none;
}

.homepage-faq-accordion .accordion-button:focus {
  box-shadow: none;
}

.homepage-faq-accordion .accordion-body {
  padding: 1rem 1.5rem 1.25rem;
  color: #495057;
  line-height: 1.7;
}

.homepage-faq-accordion .accordion-body ul,
.homepage-faq-accordion .accordion-body ol {
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

/* ================================================================
   БЛОК БРЕНДОВ (перелинковка)
   ================================================================ */
.section-brands {
  background: #f8f9fa;
}

.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.brand-link-card {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.25rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: var(--text-primary, #1a1a2e);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.brand-link-card.has-logo {
  padding-left: 0.85rem;
}

.brand-link-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  /* Унифицируем разноцветные SVG в тёмно-графитовый */
  filter: brightness(0) saturate(100%) opacity(0.88);
  transition: filter 0.25s, opacity 0.25s;
}

.brand-link-card:hover {
  background: var(--primary, #0d6efd);
  color: #fff;
  border-color: var(--primary, #0d6efd);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.25);
}

.brand-link-card:hover .brand-link-logo {
  filter: brightness(0) invert(1);
}

.brand-link-card .bi-arrow-right {
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.brand-link-card:hover .bi-arrow-right {
  transform: translateX(3px);
}

.brand-link-name {
  white-space: nowrap;
}

/* ================================================================
   ЛУЧШИЕ ПРЕДЛОЖЕНИЯ (каталог) — слайдер
   ================================================================ */
.best-offers-wrap {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.best-offers-section {
  padding: 0;
  border: 0;
  margin-bottom: 0;
}

.best-offers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.best-offers-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary, #1a1a2e);
  position: relative;
  padding-left: 14px;
}
.best-offers-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(180deg, #f59e0b, #d97706);
  border-radius: 2px;
}

.best-offers-all {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary, #1d4ed8);
  text-decoration: none;
  transition: color 0.18s;
  white-space: nowrap;
}
.best-offers-all:hover {
  color: #1e40af;
  text-decoration: underline;
}
.best-offers-all i {
  transition: transform 0.18s;
}
.best-offers-all:hover i {
  transform: translateX(3px);
}

.best-offers-slider {
  position: relative;
  padding-bottom: 2.5rem;
}

.best-offers-slider .swiper-slide {
  height: auto;
  display: flex;
}

.best-offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.best-offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.best-offer-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f4f6;
}
.best-offer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.best-offer-card:hover .best-offer-image img {
  transform: scale(1.04);
}
.best-offer-no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #cbd5e1;
}

.best-offer-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
  z-index: 2;
}

.best-offer-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem 1.1rem 1.1rem;
}

.best-offer-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.25rem;
}
.best-offer-title a {
  color: #111827;
  text-decoration: none;
  transition: color 0.18s;
}
.best-offer-title a:hover {
  color: var(--primary, #1d4ed8);
}

.best-offer-subtitle {
  font-size: 0.82rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
  min-height: 1em;
}

.best-offer-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: #4b5563;
  border-top: 1px dashed #e5e7eb;
  padding-top: 0.65rem;
}
.best-offer-meta li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 2px 0;
}
.best-offer-meta .meta-label {
  color: #9ca3af;
}
.best-offer-meta .meta-value {
  color: #111827;
  font-weight: 500;
  text-align: right;
}

.best-offer-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

.best-offer-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

.best-offer-footer .btn {
  white-space: nowrap;
}

/* Навигация слайдера */
.best-offers-nav {
  position: absolute;
  top: -52px;
  right: 0;
  display: flex;
  gap: 6px;
  z-index: 3;
}
.best-offers-prev,
.best-offers-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
  font-size: 0.95rem;
}
.best-offers-prev:hover,
.best-offers-next:hover {
  background: var(--primary, #1d4ed8);
  border-color: var(--primary, #1d4ed8);
  color: #fff;
}
.best-offers-prev.swiper-button-disabled,
.best-offers-next.swiper-button-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.best-offers-pagination {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}
.best-offers-pagination .swiper-pagination-bullet {
  background: #cbd5e1;
  opacity: 1;
  transition: background 0.18s, width 0.18s;
}
.best-offers-pagination .swiper-pagination-bullet-active {
  background: var(--primary, #1d4ed8);
  width: 22px;
  border-radius: 4px;
}

@media (max-width: 767px) {
  .best-offers-title {
    font-size: 1.2rem;
  }
  .best-offers-nav {
    position: static;
    justify-content: center;
    margin-top: 0.75rem;
  }
  .best-offer-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .best-offer-footer .btn {
    width: 100%;
  }
}

/* ================================================================
   SEO-ТЕКСТ КАТАЛОГА
   ================================================================ */
.catalog-seo-section {
  background: #f8f9fa;
}

.catalog-seo-content {
  max-width: 960px;
  margin: 0 auto;
  color: #495057;
  line-height: 1.8;
  font-size: 0.95rem;
}

.catalog-seo-content h2,
.catalog-seo-content h3 {
  color: var(--text-primary, #1a1a2e);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.catalog-seo-content h2 {
  font-size: 1.4rem;
}

.catalog-seo-content h3 {
  font-size: 1.15rem;
}

.catalog-seo-content p {
  margin-bottom: 1rem;
}

.catalog-seo-content ul,
.catalog-seo-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* ================================================================
   PRICE RANGE CHIPS (archive-car, quick budget filter)
   ================================================================ */
.price-range-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 0 2px;
}
.price-chip {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    background: #f8fafc;
    color: #374151;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    white-space: nowrap;
}
.price-chip:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #111827;
}
.price-chip.active {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
}

/* ================================================================
   СТАТЬИ ПО ТЕМЕ / ПОХОЖИЕ АВТО (single car)
   ================================================================ */
.related-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary, #0d6efd);
  margin-top: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

.related-article-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.3s;
}

.related-article-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.related-article-image img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.related-article-body {
  padding: 0.75rem;
}

.related-article-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.related-article-title a {
  color: var(--text-primary, #1a1a2e);
  text-decoration: none;
}

.related-article-title a:hover {
  color: var(--primary, #0d6efd);
}

.related-article-date {
  font-size: 0.75rem;
  color: #6c757d;
}

.similar-car-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow 0.3s;
}

.similar-car-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.similar-car-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.similar-car-body {
  padding: 0.75rem;
}

.similar-car-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.similar-car-title a {
  color: var(--text-primary, #1a1a2e);
  text-decoration: none;
}

.similar-car-title a:hover {
  color: var(--primary, #0d6efd);
}

.similar-car-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary, #0d6efd);
  margin-bottom: 0.5rem;
}

/* ================================================================
   RESPONSIVE для новых блоков
   ================================================================ */
@media (max-width: 768px) {
  .homepage-h1 {
    font-size: 1.2rem;
  }
  
  .hto-step-card {
    padding: 1.25rem;
  }
  
  .hto-step-number {
    font-size: 2rem;
  }
  
  .brands-grid {
    gap: 0.5rem;
  }
  
  .brand-link-card {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .best-offers-title {
    font-size: 1.1rem;
  }
} 