/* ========== UNIFIED CARS.HTML STYLES - INDEX.HTML DESIGN ========== */
/* Унифицированная цветовая схема: #f59e0b (оранжевый) как основной акцент */

/* ========== LANGUAGE PICKER (ИЗ INDEX.HTML) ========== */
.lang-picker-wrapper { 
  position: relative; 
  display: inline-block; 
  vertical-align: middle; 
}

.lang-picker-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  min-width: 80px;
  height: 36px;
  line-height: 1.2;
  transition: all 0.3s ease;
  color: #ffffff;
  margin-left: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lang-picker-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========== БЛОКИРОВКА СКРОЛЛА ДЛЯ БУРГЕР-МЕНЮ ========== */
body.burger-menu-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

/* Разрешаем скролл внутри меню */
#de-sidebar,
#mainmenu {
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch !important;
  overflow-y: auto !important;
}

/* Для мобильного меню */
@media (max-width: 991px) {
  body.burger-menu-open #wrapper {
    position: fixed !important;
    width: 100% !important;
  }
}
.lang-picker-btn:focus, 
.lang-picker-btn[aria-expanded="true"] {
  outline: none;
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.3);
}

.lang-picker-btn #langCode {
  color: #ffffff;
  font-weight: 600;
  margin: 0 2px 0 2px;
}

.lang-picker-btn svg path {
  stroke: rgba(255, 255, 255, 0.7);
  transition: stroke 0.3s ease;
}

.lang-picker-btn:hover svg path {
  stroke: rgba(255, 255, 255, 0.9);
}

.lang-globe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 3px;
}

.lang-globe svg circle,
.lang-globe svg ellipse,
.lang-globe svg path {
  stroke: rgba(255, 255, 255, 0.8);
  transition: stroke 0.3s ease;
}

.lang-picker-btn:hover .lang-globe svg circle,
.lang-picker-btn:hover .lang-globe svg ellipse,
.lang-picker-btn:hover .lang-globe svg path {
  stroke: rgba(245, 158, 11, 0.9);
}

.lang-picker-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  z-index: 1000;
  background: rgba(3, 27, 78, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 4px 0;
  margin: 0;
  min-width: 120px;
  list-style: none;
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-picker-dropdown.open { 
  display: block; 
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  background: none;
  border: none;
  transition: all 0.2s ease;
  height: 40px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.9);
  width: 100%;
  text-align: left;
}

.lang-option:hover,
.lang-option:focus {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  outline: none;
}

.lang-option.selected {
  background: rgba(245, 158, 11, 0.25);
  color: #f59e0b;
  font-weight: 600;
}

.lang-option .lang-code {
  font-weight: 600;
  margin: 0;
}

.lang-flag {
  font-size: 18px;
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.lang-flag img {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

@media (min-width: 992px) {
  header.transparent .lang-picker-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
  }
  
  header.transparent .lang-picker-btn:hover {
    background: rgba(255, 255, 255, 0.15);
  }
  
  header.scroll-light .lang-picker-btn {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
  }
  
  header.scroll-light .lang-picker-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
  }
}

@media (max-width: 991px) {
  .lang-picker-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    font-size: 13px;
    padding: 4px 10px;
    min-width: 70px;
    height: 34px;
  }
  
  .lang-picker-btn:hover {
    background: rgba(255, 255, 255, 0.12);
  }
  
  .lang-picker-dropdown {
    min-width: 110px;
  }
  
  .lang-option {
    font-size: 13px;
    padding: 9px 12px;
    height: 36px;
    gap: 8px;
  }
  
  .lang-flag img {
    width: 18px;
    height: 13px;
  }
}

@media (max-width: 600px) {
  .lang-picker-btn { 
    font-size: 12px; 
    padding: 3px 8px; 
    min-width: 65px; 
    height: 32px;
    gap: 5px;
  }
  
  .lang-picker-dropdown { 
    min-width: 100px; 
  }
  
  .lang-option { 
    font-size: 12px; 
    padding: 8px 10px; 
    height: 34px;
    gap: 6px;
  }
  
  .lang-flag { 
    font-size: 15px; 
    width: 16px; 
  }
  
  .lang-flag img {
    width: 16px;
    height: 12px;
  }
  
  .lang-globe {
    width: 16px;
    height: 16px;
  }
  
  .lang-globe svg {
    width: 14px;
    height: 14px;
  }
}

.lang-picker-btn:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 2px;
}

.lang-option:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: -2px;
}

.lang-picker-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.lang-picker-btn:disabled:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
}

/* ========== PREMIUM CAR HIGHLIGHTING (ИЗ INDEX.HTML) ========== */
.de-item.premium {
  position: relative;
  border: 4px solid transparent;
  background: 
    linear-gradient(white, white) padding-box,
    linear-gradient(135deg, #FFD700 0%, #FF8C00 25%, #FF6B6B 50%, #FF8C00 75%, #FFD700 100%) border-box;
  background-size: 200% 200%;
  box-shadow: 
    0 18px 50px rgba(255, 215, 0, 0.35),
    0 10px 30px rgba(255, 140, 0, 0.25),
    0 0 40px rgba(255, 215, 0, 0.2),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
  transform: scale(1.025);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  overflow: visible;
  animation: premium-float 4s ease-in-out infinite, premium-border-animate 3s linear infinite;
  z-index: 2;
}

@keyframes premium-float {
  0%, 100% {
    transform: scale(1.025) translateY(0px);
  }
  50% {
    transform: scale(1.025) translateY(-5px);
  }
}

@keyframes premium-border-animate {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.de-item.premium::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  background: linear-gradient(135deg, #FFD700, #FF8C00, #FF6B6B, #FFD700);
  background-size: 300% 300%;
  border-radius: 20px;
  z-index: -1;
  opacity: 0.4;
  filter: blur(15px);
  animation: premium-glow-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes premium-glow-pulse {
  0%, 100% {
    opacity: 0.4;
    background-position: 0% 50%;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    background-position: 100% 50%;
    transform: scale(1.05);
  }
}

.de-item.premium::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(135deg, #FFD700, #FF8C00, #FF6B6B);
  border-radius: 20px;
  z-index: -2;
  opacity: 0.15;
  filter: blur(25px);
  animation: premium-outer-glow 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes premium-outer-glow {
  0%, 100% {
    opacity: 0.15;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(1.03);
  }
}

.de-item.premium:hover {
  transform: scale(1.06) translateY(-10px);
  box-shadow: 
    0 30px 70px rgba(255, 215, 0, 0.45),
    0 15px 40px rgba(255, 140, 0, 0.35),
    0 0 60px rgba(255, 215, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.9);
  z-index: 10;
  animation: premium-float 2s ease-in-out infinite, premium-border-animate 1.5s linear infinite;
}

.de-item.premium:hover::before {
  opacity: 0.8;
  filter: blur(20px);
  animation: premium-glow-pulse-fast 1.5s ease-in-out infinite;
}

@keyframes premium-glow-pulse-fast {
  0%, 100% {
    opacity: 0.8;
    background-position: 0% 50%;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    background-position: 100% 50%;
    transform: scale(1.05);
  }
}

.de-item.premium:hover::after {
  opacity: 0.35;
  filter: blur(30px);
  animation: premium-outer-glow-fast 2s ease-in-out infinite;
}

@keyframes premium-outer-glow-fast {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.03);
  }
}

.premium-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #1a1a1a;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 22px 9px 22px;
  border-radius: 0 0 14px 0;
  z-index: 20;
  box-shadow: 
    0 5px 20px rgba(255, 140, 0, 0.5),
    inset 0 1px 3px rgba(255, 255, 255, 0.5);
  border: none;
  white-space: nowrap;
  animation: badge-mega-pulse 2s ease-in-out infinite;
  backdrop-filter: blur(10px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  pointer-events: none;
}

.premium-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: badge-shine 3s ease-in-out infinite;
}

@keyframes badge-shine {
  0% {
    left: -100%;
  }
  50%, 100% {
    left: 200%;
  }
}

@keyframes badge-mega-pulse {
  0%, 100% {
    box-shadow: 
      0 5px 20px rgba(255, 140, 0, 0.5),
      inset 0 1px 3px rgba(255, 255, 255, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 
      0 8px 30px rgba(255, 140, 0, 0.8),
      0 0 20px rgba(255, 215, 0, 0.6),
      inset 0 1px 3px rgba(255, 255, 255, 0.7);
    transform: scale(1.06);
  }
}

.de-item.premium .d-img::after {
  content: '✨';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  animation: sparkle-rotate 3s linear infinite;
  z-index: 5;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
  pointer-events: none;
}

@keyframes sparkle-rotate {
  0%, 100% {
    transform: rotate(0deg) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: rotate(90deg) scale(1.2);
    opacity: 1;
  }
  50% {
    transform: rotate(180deg) scale(1);
    opacity: 0.8;
  }
  75% {
    transform: rotate(270deg) scale(1.2);
    opacity: 1;
  }
}

.de-item.premium .d-img {
  box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.15);
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.de-item.premium:hover .d-img {
  box-shadow: inset 0 0 40px rgba(255, 215, 0, 0.25);
  border-color: rgba(255, 215, 0, 0.5);
}

/* ========== DATE RANGE FILTER (ОРАНЖЕВЫЙ) ========== */
.date-range-filter {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 15px;
}

.date-input-wrapper {
  position: relative;
  overflow: hidden;
}

.date-input-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.03) 0%, rgba(217, 119, 6, 0.03) 100%);
  border-radius: 12px;
  z-index: 0;
  transition: all 0.3s ease;
}

.date-input-wrapper:hover::before {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.08) 100%);
}

.date-input-wrapper input {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 14px 16px 14px 38px !important;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  color: #2c3e50;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.date-input-wrapper input:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
  transform: translateY(-1px);
}

.date-input-wrapper input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15), 0 8px 20px rgba(245, 158, 11, 0.12);
  transform: translateY(-2px);
}

.date-input-wrapper i {
  position: absolute;
  left: 12px !important;
  top: 50%;
  transform: translateY(-50%);
  color: #f59e0b;
  font-size: 14px !important;
  z-index: 2;
  transition: all 0.3s ease;
  pointer-events: none;
}

.date-input-wrapper:hover i {
  transform: translateY(-50%) scale(1.1);
  color: #d97706;
}

/* ========== SORT CONTROLS (ОРАНЖЕВЫЙ) ========== */
.sort-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 30px;
  gap: 14px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.1);
  width: 100%;
}

.sort-label {
  font-weight: 700;
  font-size: 15px;
  color: #2c3e50;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sort-select {
  padding: 12px 40px 12px 18px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  background: #fff url('data:image/svg+xml;charset=UTF-8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1.5L6 6.5L11 1.5" stroke="%23f59e0b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat right 14px center;
  background-size: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 220px;
  max-width: 100%;
  appearance: none;
  color: #2c3e50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sort-select:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
  transform: translateY(-2px);
}

.sort-select:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15), 0 8px 20px rgba(245, 158, 11, 0.12);
  transform: translateY(-2px);
}

/* ========== FILTER SIDEBAR (ОРАНЖЕВЫЙ) ========== */
.filter-sidebar {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.07), 
              0 2px 8px rgba(0,0,0,0.04),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 24px;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(245, 158, 11, 0.1);
  position: sticky;
  top: 100px;
  transition: all 0.3s ease;
}

.filter-sidebar:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1), 
              0 4px 12px rgba(0,0,0,0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.filter-title {
  font-size: 1.55rem;
  font-weight: 900;
  margin-bottom: 1.1rem;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.filter-clear {
  color: #f59e0b;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 7px 13px;
  border-radius: 9px;
  background: rgba(245, 158, 11, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  -webkit-text-fill-color: #f59e0b;
}

.filter-clear:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  -webkit-text-fill-color: white;
  color: white;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28);
  transform: translateY(-2px);
}

.filter-divider {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.25) 50%, transparent 100%);
  margin: 1.3rem 0;
}

.filter-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
  margin-top: 0.5rem;
  letter-spacing: 0.025em;
  color: #2c3e50;
  text-transform: uppercase;
  position: relative;
  padding-left: 13px;
}

.filter-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 18px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 2px;
}

.filter-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  margin-bottom: 5px;
  border-radius: 11px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid transparent;
}

.filter-option-row:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.07) 0%, rgba(217, 119, 6, 0.07) 100%);
  border-color: rgba(245, 158, 11, 0.18);
  transform: translateX(3px);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
}

.filter-option-row label {
  display: flex;
  align-items: center;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  flex: 1 1 auto;
  color: #2c3e50;
  transition: color 0.2s ease;
}

.filter-option-row:hover label {
  color: #f59e0b;
}

.filter-option-row input[type=checkbox],
.filter-option-row input[type=radio] {
  width: 21px;
  height: 21px;
  margin-right: 13px;
  accent-color: #f59e0b;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.filter-option-row:hover input[type=checkbox],
.filter-option-row:hover input[type=radio] {
  transform: scale(1.08);
}

.option-label {
  margin-right: 8px;
  flex: 1;
  transition: all 0.2s ease;
}

.option-count {
  color: #fff;
  font-size: 0.83rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  padding: 4px 10px;
  border-radius: 18px;
  min-width: 34px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.22);
  transition: all 0.2s ease;
}

.filter-option-row:hover .option-count {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.32);
}

.filter-option-row.disabled-option {
  opacity: 0.35;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.02);
}

.filter-option-row.disabled-option label {
  cursor: not-allowed;
}

.filter-option-row.disabled-option input[type=checkbox],
.filter-option-row.disabled-option input[type=radio] {
  cursor: not-allowed;
  opacity: 0.4;
}

.option-label.disabled-text {
  color: #aaa;
}

.option-count.disabled-count {
  color: #999;
  font-weight: 500;
  background: #e8e8e8;
  box-shadow: none;
}

/* ========== PRICE INPUT STYLES (ОРАНЖЕВЫЙ) ========== */
.price-range-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.price-range-inputs input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
  color: #2c3e50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.price-range-inputs input:hover {
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
  transform: translateY(-1px);
}

.price-range-inputs input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15), 0 8px 20px rgba(245, 158, 11, 0.12);
  transform: translateY(-2px);
}

.price-range-inputs input::placeholder {
  color: #999;
  font-weight: 500;
}

.price-range-divider {
  text-align: center;
  color: #f59e0b;
  font-weight: 800;
  font-size: 14px;
  margin: -6px 0;
}
/* ========== CAR CARD STYLES (ОРАНЖЕВЫЙ) ========== */
.cars-main-container {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.car-list-row {
  margin-left: 0;
  margin-right: 0;
  gap: 2.2rem 0;
  justify-content: flex-start;
}

.de-item.mb30 {
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 0 !important;
  border-radius: 18px;
  box-shadow: 
    0 6px 24px rgba(0,0,0,0.07),
    0 2px 8px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 470px;
  width: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.de-item.mb30::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.de-item.mb30:hover::before {
  opacity: 1;
}

.de-item.mb30:hover {
  box-shadow: 
    0 16px 48px rgba(0,0,0,0.12),
    0 6px 16px rgba(0,0,0,0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.15);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.de-item.mb30:nth-child(1) { animation-delay: 0.05s; }
.de-item.mb30:nth-child(2) { animation-delay: 0.1s; }
.de-item.mb30:nth-child(3) { animation-delay: 0.15s; }
.de-item.mb30:nth-child(4) { animation-delay: 0.2s; }
.de-item.mb30:nth-child(5) { animation-delay: 0.25s; }
.de-item.mb30:nth-child(6) { animation-delay: 0.3s; }
.de-item.mb30:nth-child(n+7) { animation-delay: 0.35s; }

.de-item.premium {
  opacity: 1 !important;
}

.d-img a {
  display: block;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.d-img a:hover {
  transform: scale(1.02);
}

.d-img a:hover img {
  opacity: 0.95;
}

.d-img {
  position: relative;
  margin-bottom: 1.4rem;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
}

.d-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
  max-height: 210px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.d-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.d-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.d-text h4 {
  font-size: 1.45rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
  color: #1a1a1a;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.d-text > p {
  color: #666;
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.d-atr-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin: 1.1rem 0;
}

.d-atr {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.93rem;
  font-weight: 600;
  color: #2c3e50;
  padding: 9px 11px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.07) 0%, rgba(217, 119, 6, 0.07) 100%);
  border-radius: 9px;
  transition: all 0.3s ease;
  border: 1px solid rgba(245, 158, 11, 0.12);
}

.d-atr:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.13) 0%, rgba(217, 119, 6, 0.13) 100%);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.18);
}

.d-atr img {
  width: 21px;
  height: 21px;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.25));
}

.d-price {
  font-size: 0.98rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 1.1rem 0;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.08) 100%);
  border-radius: 12px;
  text-align: center;
  border: 2px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 3px 12px rgba(245, 158, 11, 0.13);
  transition: all 0.3s ease;
}

.d-price:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.22);
}

.d-price span:last-child {
  color: #f59e0b;
  font-size: 1.7rem;
  font-weight: 900;
  margin-left: 9px;
  text-shadow: 0 2px 4px rgba(245, 158, 11, 0.18);
}

.btn-main {
  width: 100%;
  padding: 15px 26px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.02rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-block;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.32);
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.btn-main::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.btn-main:hover::before {
  width: 280px;
  height: 280px;
}

.btn-main:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 10px 32px rgba(245, 158, 11, 0.45);
  transform: translateY(-3px) scale(1.015);
  color: white;
}

.btn-main:active {
  transform: translateY(-1px) scale(0.99);
}

/* ========== UNAVAILABLE CAR STYLES (ИЗ INDEX.HTML) ========== */
.car-unavailable {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.8);
  position: relative;
}

.car-unavailable::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  pointer-events: none;
}

.img-unavailable img {
  filter: grayscale(0.4) brightness(0.92);
}

.unavailable-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px 9px 20px;
  border-radius: 0 16px 0 12px;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(238, 90, 82, 0.5);
  pointer-events: none;
  border: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-unavailable {
  background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%) !important;
  color: #999 !important;
  border: 2px solid #e0e0e0 !important;
  cursor: not-allowed !important;
  pointer-events: none;
  font-weight: 700;
  border-radius: 14px;
  padding: 16px 28px;
  width: 100%;
  display: inline-block;
  box-shadow: none !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========== MOBILE FILTER STYLES (ОРАНЖЕВЫЙ) ========== */
.mobile-filter-button-container {
  margin-bottom: 1.5rem;
  text-align: center;
  padding: 0 1rem;
}

.mobile-filter-btn {
  width: 100%;
  max-width: 100%;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: white;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-filter-btn i {
  font-size: 14px;
}

.mobile-filter-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.mobile-filter-btn:active::before {
  width: 300px;
  height: 300px;
}

.mobile-filter-btn:active {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  transform: scale(0.98);
}

.mobile-filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: none;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mobile-filter-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 380px;
  height: 100%;
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: 6px 0 40px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.mobile-filter-overlay.active {
  display: block;
}

.mobile-filter-overlay.active .mobile-filter-sidebar {
  transform: translateX(0);
}

.mobile-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid rgba(245, 158, 11, 0.2);
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-filter-header h5 {
  margin: 0;
  font-weight: 800;
  color: #ffffff;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mobile-filter-close {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
}

.mobile-filter-close:active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  transform: rotate(90deg) scale(0.95);
}

.mobile-filter-content {
  padding: 1.25rem;
}

.mobile-filter-content .filter-category {
  margin-bottom: 1rem;
}

.mobile-filter-content .filter-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
  color: #2c3e50;
  text-transform: uppercase;
  position: relative;
  padding-left: 10px;
}

.mobile-filter-content .filter-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 2px;
}

.mobile-filter-content .filter-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.2) 50%, transparent 100%);
  margin: 0.8rem 0;
}

.mobile-filter-content .filter-option-row {
  padding: 8px 10px;
  margin-bottom: 4px;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid transparent;
}

.mobile-filter-content .filter-option-row:active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
  border-color: rgba(245, 158, 11, 0.2);
  transform: translateX(2px);
}

.mobile-filter-content .filter-option-row label {
  font-size: 0.9rem;
  font-weight: 600;
}

.mobile-filter-content .filter-option-row input[type=checkbox],
.mobile-filter-content .filter-option-row input[type=radio] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
}

.mobile-filter-content .option-count {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  min-width: 28px;
}

.mobile-filter-content .date-range-filter {
  gap: 10px;
  margin-bottom: 10px;
}

.mobile-filter-content .date-input-wrapper input {
  padding: 10px 12px 10px 32px;
  font-size: 16px;
  border-radius: 8px;
}

.mobile-filter-content .date-input-wrapper i {
  left: 10px !important;
  font-size: 12px !important;
}

.mobile-filter-content .price-range-inputs {
  gap: 8px;
}

.mobile-filter-content .price-range-inputs input {
  padding: 10px 12px;
  font-size: 16px;
  border-radius: 8px;
}

.mobile-filter-content .price-range-divider {
  font-size: 12px;
  margin: -4px 0;
}

.mobile-filter-actions {
  position: sticky;
  bottom: 0;
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  padding: 1rem 1.25rem;
  border-top: 2px solid rgba(245, 158, 11, 0.2);
  display: flex;
  gap: 10px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-filter-actions .btn {
  flex: 1;
  padding: 12px 16px;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mobile-filter-actions .btn i {
  font-size: 12px;
}

.mobile-filter-actions .btn-outline-secondary {
  border: 2px solid #ddd;
  color: #666;
  background: white;
}

.mobile-filter-actions .btn-outline-secondary:active {
  background: #f5f5f5;
  border-color: #bbb;
  transform: scale(0.98);
}

.mobile-filter-actions .btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  color: white;
}

.mobile-filter-actions .btn-primary:active {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  transform: scale(0.98);
}

.mobile-filter-sidebar::-webkit-scrollbar {
  width: 6px;
}

.mobile-filter-sidebar::-webkit-scrollbar-track {
  background: rgba(245, 158, 11, 0.05);
  border-radius: 10px;
}

.mobile-filter-sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.mobile-filter-sidebar::-webkit-scrollbar-thumb:active {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

#mobile-filter-loading {
  padding: 2rem 1rem;
}

#mobile-filter-loading .spinner-border {
  width: 2rem;
  height: 2rem;
  border-width: 0.2em;
}

#mobile-filter-loading p {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
}

/* ========== LOADING SPINNER (ОРАНЖЕВЫЙ) ========== */
.loading-spinner {
  text-align: center;
  padding: 5rem;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(245, 158, 11, 0.1);
  border-top: 5px solid #f59e0b;
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
}

@keyframes spin {
  0% { 
    transform: rotate(0deg); 
  }
  100% { 
    transform: rotate(360deg); 
  }
}

.loading-spinner p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* ========== EMPTY STATE STYLING ========== */
.no-cars-message {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  margin: 2rem 0;
}

.no-cars-message i {
  font-size: 4rem;
  color: #f59e0b;
  margin-bottom: 1.5rem;
  display: block;
}

.no-cars-message p {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.no-cars-message small {
  font-size: 1rem;
  color: #666;
}
/* ========== HEADER STYLES - DESKTOP & MOBILE (ИЗ INDEX.HTML) ========== */
@media (max-width: 991px) {
  #topbar {
    display: none !important;
  }
}

@media (max-width: 991px) {
  header {
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.9) 100%) !important;
  }
  
  .logo-1 {
    display: block !important;
  }
  .logo-2 {
    display: none !important;
  }
  
  header #mainmenu a,
  header #mainmenu li a,
  #mainmenu a,
  #mainmenu li a {
    color: #ffffff !important;
  }
  
  #mainmenu a:hover {
    color: #f59e0b !important;
  }
  
  #de-sidebar,
  .de-menu-profile,
  body.de-menu-open #de-sidebar,
  body.de-menu-open .de-menu-profile {
    background: rgba(0, 0, 0, 0.98) !important;
  }
  
  #de-sidebar a,
  #de-sidebar li a,
  #de-sidebar #mainmenu a,
  #de-sidebar #mainmenu li a,
  #de-sidebar #mainmenu > li > a,
  #de-sidebar nav a,
  #de-sidebar nav li a,
  .de-menu-profile a,
  .de-menu-profile li a,
  .de-menu-profile #mainmenu a,
  .de-menu-profile #mainmenu li a,
  body.de-menu-open a,
  body.de-menu-open li a,
  body.de-menu-open #mainmenu a,
  body.de-menu-open #mainmenu li a,
  body.de-menu-open nav a,
  body.de-menu-open nav li a {
    color: #ffffff !important;
    text-shadow: none !important;
  }
  
  #de-sidebar a:hover,
  #de-sidebar li a:hover,
  #de-sidebar #mainmenu a:hover,
  .de-menu-profile a:hover,
  .de-menu-profile #mainmenu a:hover,
  body.de-menu-open a:hover,
  body.de-menu-open #mainmenu a:hover {
    color: #f59e0b !important;
  }
  
  #de-sidebar ul li a,
  #de-sidebar #mainmenu ul li a,
  .de-menu-profile ul li a,
  .de-menu-profile #mainmenu ul li a,
  body.de-menu-open ul li a,
  body.de-menu-open #mainmenu ul li a {
    color: #ffffff !important;
  }
  
  #de-sidebar a span,
  #de-sidebar li span,
  #de-sidebar #mainmenu span,
  .de-menu-profile a span,
  .de-menu-profile li span,
  body.de-menu-open a span,
  body.de-menu-open li span,
  body.de-menu-open #mainmenu span {
    color: #ffffff !important;
  }
  
  .de-click-menu-close,
  #de-sidebar .de-click-menu-close,
  .de-menu-profile .de-click-menu-close {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
  }
  
  #menu-btn span {
    background: #ffffff !important;
  }
  
  #de-sidebar .social-icons a,
  .de-menu-profile .social-icons a {
    color: #ffffff !important;
  }
  
  #de-sidebar li,
  #de-sidebar #mainmenu li,
  .de-menu-profile li,
  .de-menu-profile #mainmenu li,
  body.de-menu-open li,
  body.de-menu-open #mainmenu li {
    border-color: rgba(255, 255, 255, 0.1) !important;
  }
}

@media (min-width: 992px) {
  header.transparent {
    background: transparent;
  }
  
  header.transparent #mainmenu a {
    color: #ffffff !important;
  }
  
  header.transparent .logo-1 {
    display: block !important;
  }
  header.transparent .logo-2 {
    display: none !important;
  }
  
  header.scroll-light {
    background: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(8px);
    transition: background 0.3s ease;
  }
  
  header.scroll-light #mainmenu a {
    color: #ffffff !important;
    transition: color 0.3s ease;
  }
  
  header.scroll-light #mainmenu a:hover {
    color: #f59e0b !important;
  }
  
  header.scroll-light .logo-1 {
    display: block !important;
  }
  header.scroll-light .logo-2 {
    display: none !important;
  }
}

#logo img {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
  transition: filter 0.3s ease;
}

#mainmenu a {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  font-weight: 500;
  transition: all 0.3s ease;
}

@media (max-width: 991px) {
  header a:not(#logo a):not(.lang-picker-wrapper a):not(.call-now-btn a),
  header li:not(#logo li):not(.lang-picker-wrapper li),
  #mainmenu a,
  #mainmenu li,
  #de-sidebar a,
  #de-sidebar li,
  .de-menu-profile a,
  .de-menu-profile li,
  nav a,
  nav li {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
}

/* ========== FLATPICKR CALENDAR - ОПТИМИЗИРОВАННЫЙ ДЛЯ МОБИЛЬНЫХ ========== */
.flatpickr-calendar {
  opacity: 0 !important;
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  z-index: 99999 !important;
}

.flatpickr-calendar.open {
  opacity: 1 !important;
  display: inline-block !important;
  visibility: visible !important;
}

.flatpickr-wrapper {
  position: relative !important;
  display: inline-block !important;
  width: 100% !important;
}

.flatpickr-calendar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
  border: none !important;
  overflow: visible !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-size: 14px;
  max-height: 420px !important;
  width: auto !important;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  backface-visibility: hidden;
  perspective: 1000px;
}

.flatpickr-calendar,
.flatpickr-calendar * {
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  user-select: none !important;
}

.flatpickr-months {
  background: linear-gradient(135deg, #667eea 0%, #5568d3 100%);
  padding: 20px 60px !important;
  border-radius: 20px 20px 0 0;
  position: relative !important;
  min-height: 60px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5 !important;
  box-shadow: 
    0 4px 20px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.flatpickr-months::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.15) 0%, 
    transparent 100%);
  border-radius: 20px 20px 0 0;
  pointer-events: none;
}

.flatpickr-months .flatpickr-month {
  height: auto !important;
}

.flatpickr-month {
  height: auto !important;
}

.flatpickr-current-month {
  color: white;
  font-weight: 700;
  font-size: 15px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100%;
  padding: 0 !important;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
  gap: 8px !important;
  flex-wrap: nowrap;
  overflow: visible;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(10px) !important;
  color: white !important;
  font-weight: 700 !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 10px !important;
  padding: 4px 12px !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  appearance: none !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  min-width: auto !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 10px !important;
  padding-right: 28px !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
  background: rgba(255, 255, 255, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-1px) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months option {
  background-color: #667eea !important;
  color: white !important;
  padding: 10px !important;
  font-weight: 600 !important;
}

.flatpickr-current-month select.flatpickr-monthDropdown-months option:hover {
  background-color: #5568d3 !important;
}

.flatpickr-current-month select.flatpickr-monthDropdown-months option:checked {
  background-color: #667eea !important;
  font-weight: 700 !important;
}

.flatpickr-current-month select.flatpickr-monthDropdown-months:focus option {
  background-color: #667eea !important;
  color: white !important;
}

/* ========== YEAR DROPDOWN ========== */
.flatpickr-current-month .numInputWrapper {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: auto !important;
  position: relative !important;
}

.flatpickr-current-month .numInputWrapper span.arrowUp,
.flatpickr-current-month .numInputWrapper span.arrowDown {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.flatpickr-current-month input.cur-year {
  background: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(10px) !important;
  color: white !important;
  font-weight: 700 !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 10px !important;
  padding: 4px 8px !important;
  padding-right: 28px !important;
  font-size: 15px !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: none !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  text-align: center !important;
  margin: 0 !important;
  min-width: 85px !important;
  width: 85px !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  -moz-appearance: textfield !important;
  appearance: none !important;
  pointer-events: auto !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 10px !important;
}

.flatpickr-current-month input.cur-year:hover {
  background: rgba(255, 255, 255, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-1px) !important;
}

.flatpickr-current-month input.cur-year:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.flatpickr-current-month input.cur-year::-webkit-inner-spin-button,
.flatpickr-current-month input.cur-year::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
  display: none !important;
}

.flatpickr-current-month input.cur-year::selection {
  background: transparent !important;
}

.flatpickr-current-month input.cur-year::-moz-selection {
  background: transparent !important;
}

.flatpickr-current-month input.cur-year {
  caret-color: transparent !important;
}

.flatpickr-current-month select.cur-year,
.flatpickr-current-month .numInputWrapper select {
  background: rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(10px) !important;
  color: white !important;
  font-weight: 700 !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 10px !important;
  padding: 4px 8px !important;
  padding-right: 28px !important;
  font-size: 15px !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  text-align: center !important;
  margin: 0 !important;
  min-width: 85px !important;
  width: 85px !important;
  box-sizing: border-box !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 10px !important;
}

.flatpickr-current-month select.cur-year:hover,
.flatpickr-current-month .numInputWrapper select:hover {
  background: rgba(255, 255, 255, 0.35) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-1px) !important;
}

.flatpickr-current-month select.cur-year option,
.flatpickr-current-month .numInputWrapper select option {
  background-color: #667eea !important;
  color: white !important;
  padding: 10px !important;
  font-weight: 600 !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
  fill: white;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  width: 44px !important;
  height: 44px !important;
  padding: 8px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px) !important;
  border-radius: 12px !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.flatpickr-prev-month {
  left: 8px !important;
}

.flatpickr-next-month {
  right: 8px !important;
}

.flatpickr-prev-month::after,
.flatpickr-next-month::after {
  font-size: 24px !important;
  color: white !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.flatpickr-prev-month::after {
  content: '‹' !important;
}

.flatpickr-next-month::after {
  content: '›' !important;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  display: none !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-50%) scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.flatpickr-prev-month:active,
.flatpickr-next-month:active {
  transform: translateY(-50%) scale(0.95) !important;
}

.flatpickr-weekdays {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
  padding: 16px 10px 12px !important;
  border-bottom: 2px solid #f1f5f9 !important;
  display: flex !important;
  flex-direction: row !important;
  width: 100% !important;
  height: auto !important;
  align-items: center !important;
  justify-content: space-around !important;
  overflow: visible !important;
}

.flatpickr-weekdaycontainer {
  display: flex !important;
  width: 100% !important;
  justify-content: space-around !important;
}

.flatpickr-weekday {
  color: #667eea !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  flex: 1 1 14.28% !important;
  max-width: 14.28% !important;
  text-align: center !important;
  display: block !important;
  cursor: default !important;
  height: auto !important;
  line-height: 1.5 !important;
}

.flatpickr-days {
  padding: 12px;
  background: #ffffff;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ========== DESKTOP VIEW ========== */
@media (min-width: 768px) {
  .flatpickr-calendar {
    animation: calendarFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes calendarFadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .dayContainer {
    width: 308px !important;
    min-width: 308px !important;
    max-width: 308px !important;
    display: flex !important;
    flex-wrap: wrap !important;
  }

  .flatpickr-day {
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 40px !important;
    max-width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 14px;
    color: #1e293b !important;
    border: 2px solid transparent;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    margin: 2px !important;
    flex: 0 0 40px !important;
    opacity: 1 !important;
    text-align: center !important;
    padding: 0 !important;
  }
}

/* ========== MOBILE OPTIMIZATION - КРИТИЧНО ========== */
@media (pointer: coarse), (max-width: 767px) {
  /* Календарь в центре экрана */
  .flatpickr-calendar {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    max-width: calc(100vw - 24px) !important;
    width: calc(100vw - 24px) !important;
    max-height: 85vh !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
    animation: mobileCalendarFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  @keyframes mobileCalendarFadeIn {
    from {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.95);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
  }

  /* Затемнение фона */
  .flatpickr-calendar::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .flatpickr-months {
    padding: 14px 45px !important;
    min-height: 52px !important;
    border-radius: 16px 16px 0 0 !important;
    width: 100% !important;
  }

  .flatpickr-prev-month,
  .flatpickr-next-month {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    padding: 6px !important;
  }

  .flatpickr-prev-month {
    left: 6px !important;
  }

  .flatpickr-next-month {
    right: 6px !important;
  }

  .flatpickr-prev-month::after,
  .flatpickr-next-month::after {
    font-size: 22px !important;
  }

  .flatpickr-current-month {
    font-size: 14px !important;
    gap: 6px !important;
    padding: 0 2px !important;
  }

  .flatpickr-current-month .flatpickr-monthDropdown-months {
    font-size: 14px !important;
    padding: 3px 10px !important;
    padding-right: 26px !important;
    border-radius: 9px !important;
  }

  .flatpickr-current-month input.cur-year,
  .flatpickr-current-month select.cur-year {
    font-size: 14px !important;
    padding: 3px 8px !important;
    padding-right: 26px !important;
    min-width: 78px !important;
    width: 78px !important;
    border-radius: 9px !important;
  }

  .flatpickr-weekdays {
    padding: 12px 8px 10px !important;
    width: 100% !important;
  }

  .flatpickr-weekday {
    font-size: 11px !important;
  }

  /* GRID для равномерного распределения дней */
  .dayContainer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .flatpickr-day {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    line-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    border: 2px solid transparent !important;
    will-change: transform, background-color !important;
  }

  .flatpickr-days {
    padding: 10px 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Блокировка скролла body */
  body.flatpickr-open {
    overflow: hidden !important;
  }
}

/* ========== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ ========== */
@media (max-width: 480px) {
  .flatpickr-calendar {
    max-width: calc(100vw - 20px) !important;
    width: calc(100vw - 20px) !important;
    border-radius: 14px !important;
  }

  .flatpickr-months {
    padding: 12px 42px !important;
    min-height: 48px !important;
    border-radius: 14px 14px 0 0 !important;
  }

  .flatpickr-current-month {
    font-size: 13px !important;
    gap: 5px !important;
  }

  .flatpickr-current-month .flatpickr-monthDropdown-months {
    font-size: 13px !important;
    padding: 2px 8px !important;
    padding-right: 24px !important;
  }

  .flatpickr-current-month input.cur-year,
  .flatpickr-current-month select.cur-year {
    font-size: 13px !important;
    padding: 2px 6px !important;
    padding-right: 24px !important;
    min-width: 74px !important;
    width: 74px !important;
  }

  .flatpickr-prev-month,
  .flatpickr-next-month {
    width: 34px !important;
    height: 34px !important;
  }

  .flatpickr-prev-month::after,
  .flatpickr-next-month::after {
    font-size: 20px !important;
  }

  .dayContainer {
    gap: 3px !important;
  }

  .flatpickr-day {
    height: 40px !important;
    line-height: 40px !important;
    font-size: 12px !important;
    border-radius: 7px !important;
  }

  .flatpickr-weekday {
    font-size: 10px !important;
  }

  .flatpickr-days {
    padding: 8px 6px !important;
  }

  .flatpickr-weekdays {
    padding: 10px 6px 8px !important;
  }
}

/* ========== ОБЩИЕ СТИЛИ ДНЕЙ ========== */
.flatpickr-day:hover:not(.flatpickr-disabled):not(.selected) {
  background: rgba(102, 126, 234, 0.1) !important;
  border-color: #667eea !important;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
  color: #1e293b !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: linear-gradient(135deg, #667eea, #5568d3) !important;
  border: 2px solid transparent !important;
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
  font-weight: 700;
  color: white !important;
  transform: scale(1.03);
}

.flatpickr-day.inRange {
  background: rgba(102, 126, 234, 0.1) !important;
  border-color: rgba(102, 126, 234, 0.3) !important;
  box-shadow: none !important;
  color: #1e293b !important;
}

.flatpickr-day.flatpickr-disabled.prevMonthDay,
.flatpickr-day.flatpickr-disabled.nextMonthDay {
  display: none !important;
  visibility: hidden !important;
}

.flatpickr-day.flatpickr-disabled:not(.nextMonthDay):not(.prevMonthDay) {
  opacity: 0.2 !important;
  pointer-events: none !important;
}

.flatpickr-day.today {
  border: 2px solid #667eea !important;
  font-weight: 700 !important;
  background: transparent !important;
  color: #667eea !important;
  box-shadow: 0 0 0 1px #667eea inset !important;
}

.flatpickr-day.today:not(.selected):hover {
  background: rgba(102, 126, 234, 0.1) !important;
  border: 2px solid #667eea !important;
  color: #1e293b !important;
}

.flatpickr-day.today.selected {
  background: linear-gradient(135deg, #667eea, #5568d3) !important;
  color: white !important;
  border: 2px solid transparent !important;
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4) !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  display: none !important;
  visibility: hidden !important;
}

/* ========== LANDSCAPE ORIENTATION ========== */
@media (max-width: 767px) and (orientation: landscape) {
  .flatpickr-calendar {
    max-height: 90vh !important;
  }

  .flatpickr-days {
    max-height: calc(90vh - 120px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-contrast: high) {
  .flatpickr-calendar {
    border: 3px solid #1e293b;
  }

  .flatpickr-months {
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  }

  .flatpickr-day:focus {
    border-width: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flatpickr-calendar,
  .flatpickr-day,
  .flatpickr-prev-month,
  .flatpickr-next-month {
    animation: none !important;
    transition: none !important;
  }

  .flatpickr-prev-month:hover,
  .flatpickr-next-month:hover {
    transform: translateY(-50%) !important;
  }
}

/* ========== ТЕМНАЯ ТЕМА ========== */
@media (prefers-color-scheme: dark) {
  @media (max-width: 767px) {
    .flatpickr-calendar::before {
      background: rgba(0, 0, 0, 0.7);
    }
  }
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 768px) {
  .lang-picker-btn { 
    font-size: 12px; 
    padding: 3px 7px; 
    min-width: 60px; 
    height: 30px; 
  }
  
  .lang-picker-dropdown { 
    min-width: 80px; 
  }
  
  .lang-option { 
    font-size: 12px; 
    padding: 6px 8px; 
    height: 26px; 
  }
  
  .lang-flag { 
    font-size: 15px; 
    width: 15px; 
  }

  .sort-controls {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 18px;
  }

  .sort-label {
    text-align: center;
  }

  .sort-select {
    width: 100%;
    min-width: auto;
  }

  .cars-main-container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .car-list-row {
    gap: 1.5rem 0;
    justify-content: center;
  }

  .car-list-row > .col-12 {
    display: flex;
    justify-content: center;
  }

  .car-list-row > .col-12 > .de-item {
    max-width: 360px;
    width: 100%;
  }

  .de-item.mb30 {
    min-height: 440px;
  }

  .d-img {
    min-height: 180px;
  }

  .d-img img {
    max-height: 180px;
  }
}

@media (min-width: 992px) {
  .col-lg-3 {
    width: 25%;
    flex: 0 0 25%;
    max-width: 25%;
  }
  .col-lg-9 {
    width: 75%;
    flex: 0 0 75%;
    max-width: 75%;
  }
}

@media (max-width: 991px) {
  .small-sidebar { 
    display: none; 
  }
}

@media (max-width: 576px) {
  .cars-main-container {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .car-list-row {
    gap: 2rem 0;
  }

  .de-item.mb30 {
    min-height: 400px;
    padding: 1rem;
  }

  .d-text h4 {
    font-size: 1.3rem;
  }

  .d-text > p {
    font-size: 0.95rem;
  }

  .d-atr-group {
    gap: 8px;
  }

  .d-atr {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .d-atr img {
    width: 18px;
    height: 18px;
  }

  .premium-badge {
    font-size: 0.6rem;
    padding: 8px 14px 7px 14px;
  }

  .unavailable-badge {
    font-size: 0.6rem;
    padding: 8px 14px 7px 14px;
  }
}

@media (max-width: 767px) {
  input[type="text"],
  input[type="number"],
  select,
  textarea,
  .flatpickr-calendar input,
  .flatpickr-calendar select {
    font-size: 16px !important;
  }

  html, body {
    -webkit-text-size-adjust: 100% !important;
  }

  * {
    touch-action: manipulation !important;
  }

  .date-input-wrapper i {
    left: 10px !important;
    font-size: 13px !important;
  }

  .date-input-wrapper input {
    padding-left: 36px !important;
  }
}

.filter-option-row input[type=checkbox]:checked,
.filter-option-row input[type=radio]:checked {
  animation: checkBounce 0.3s ease;
}

@keyframes checkBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

*:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.5);
  outline-offset: 3px;
}

@media print {
  .filter-sidebar,
  .sort-controls,
  .mobile-filter-button-container,
  .btn-main {
    display: none !important;
  }

  .de-item.mb30 {
    page-break-inside: avoid;
  }
}

/* ========== FLEET CAR GRID (ИЗ INDEX.HTML) ========== */
.fleet-car-grid.car-list-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: 0;
  margin-right: 0;
  gap: 1.5rem 0;
  justify-content: center;
}

.fleet-car-grid .col-xl-4,
.fleet-car-grid .col-lg-4 {
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 24px;
  max-width: 320px;
  flex: 1 1 260px;
  display: flex;
}

.fleet-car-grid .de-item.mb30 {
  transition: box-shadow 0.25s, transform 0.25s;
  margin-bottom: 0 !important;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 0.7rem 0.7rem 1.1rem 0.7rem;
  background: #fff;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
}

.car-gallery .d-img {
  height: 200px;
}

.car-gallery .d-img img {
  height: 100%;
  object-fit: cover;
  max-height: 200px;
}

#section-cars .fleet-car-grid.car-list-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: 0;
  margin-right: 0;
  gap: 1.5rem 0;
  justify-content: center;
}

#section-cars .fleet-car-grid .col-xl-4,
#section-cars .fleet-car-grid .col-lg-4 {
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 24px;
  max-width: 320px;
  flex: 1 1 260px;
  display: flex;
}

#section-cars .de-item.mb30 {
  transition: box-shadow 0.25s, transform 0.25s;
  margin-bottom: 0 !important;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 0.7rem 0.7rem 1.1rem 0.7rem;
  background: #fff;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
}

#section-cars .car-unavailable {
  opacity: 0.6;
  pointer-events: none;
  filter: grayscale(0.7);
}

#section-cars .img-unavailable img {
  filter: grayscale(0.22) brightness(0.96);
}

#section-cars .unavailable-badge {
  position: absolute;
  top: 0px;
  right: 0;
  background: #ef4444;
  color: #fff;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px 4px 14px;
  border-radius: 7px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  pointer-events: none;
  border: none;
}

#section-cars .d-img {
  position: relative;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

#section-cars .d-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
  max-height: 200px;
}

#section-cars .d-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#section-cars .d-text {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 200px;
}

#section-cars .d-text .btn-main {
  margin-top: auto;
  align-self: flex-start;
}

#section-cars .d-text .btn-unavailable {
  margin-top: auto;
  align-self: flex-start;
}

#section-cars .d-item_like {
  margin-bottom: 0.5rem;
}

#section-cars .d-atr-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.7rem;
  font-size: 0.98rem;
}

#section-cars .d-atr img {
  width: 18px;
  height: 18px;
  margin-right: 4px;
  vertical-align: middle;
}

#section-cars .d-price {
  font-weight: 600;
  margin-bottom: 0.7rem;
  color: #031B4E;
}

#section-cars .btn-main {
  margin-top: 0.5rem;
  width: 100%;
  text-align: center;
}

@media (max-width: 991px) {
  #section-cars .fleet-car-grid.car-list-row {
    flex-direction: row;
  }
}

@media (max-width: 600px) {
  #section-cars .fleet-car-grid .col-xl-4,
  #section-cars .fleet-car-grid .col-lg-4 {
    min-width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  #section-cars .de-item.mb30 {
    padding: 1rem 0.5rem 1.2rem 0.5rem;
  }
}

/* ========== CONTACT POPUP (ИЗ INDEX.HTML) ========== */
.contact-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.contact-popup {
  background: linear-gradient(135deg, #1e293b, #1e293b);
  border-radius: 20px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.contact-popup-header {
  background: linear-gradient(135deg, #334155, #334155);
  padding: 20px 25px 20px 25px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.contact-popup-header h3 {
  color: #ffffff;
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 600;
}

.contact-popup-header p {
  color: #94a3b8;
  margin: 0;
  font-size: 14px;
}

.contact-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.contact-popup-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1);
}

.contact-popup-close i {
  font-size: 16px;
}

.contact-popup-body {
  padding: 20px;
}

.contact-option {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-option:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-option:last-child {
  margin-bottom: 0;
}

.contact-option-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5vw;
  font-size: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #3498db, #2980b9);
}

.contact-option:nth-child(1) .contact-option-icon {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.contact-option:nth-child(2) .contact-option-icon {
  background: linear-gradient(135deg, #7360f2, #5b4bc4);
}

.contact-option:nth-child(3) .contact-option-icon {
  background: linear-gradient(135deg, #0088cc, #006699);
}

.contact-option:nth-child(4) .contact-option-icon {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.contact-option-content {
  flex: 1;
}

.contact-option-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 2px;
}

.contact-option-subtitle {
  color: #94a3b8;
  font-size: 13px;
}

.floating-contact-btn {
  position: fixed;
  bottom: 80px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
}

.floating-contact-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
}

.floating-contact-btn i {
  color: #ffffff;
  font-size: 24px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  .contact-popup {
    width: 85%;
    max-width: 350px;
    max-height: 75vh;
    margin-right: 10px;
  }

  .contact-popup-header {
    padding: 15px 20px;
  }

  .contact-popup-header h3 {
    font-size: 16px;
    padding-right: 40px;
  }

  .contact-popup-header p {
    font-size: 13px;
    padding-right: 40px;
  }

  .contact-popup-close {
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
  }

  .contact-popup-close i {
    font-size: 14px;
  }

  .floating-contact-btn {
    bottom: 70px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 20px;
  }

  .contact-option {
    padding: 12px 15px;
  }

  .contact-option-icon {
    width: 40px;
    height: 40px;
  }

  .contact-option-icon i {
    font-size: 16px;
  }

  .contact-option-title {
    font-size: 14px;
  }

  .contact-option-subtitle {
    font-size: 12px;
  }
}

/* ========== TOAST NOTIFICATIONS (ИЗ INDEX.HTML) ========== */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  pointer-events: none;
}

.toast-notification {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 300px;
  max-width: 400px;
  pointer-events: auto;
  animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.toast-notification::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #3b82f6;
}

.toast-notification.error::before {
  background: linear-gradient(180deg, #ef4444, #dc2626);
}

.toast-notification.success::before {
  background: linear-gradient(180deg, #10b981, #059669);
}

.toast-notification.warning::before {
  background: linear-gradient(180deg, #f59e0b, #d97706);
}

.toast-notification.info::before {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
}

.toast-notification.error .toast-icon {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.toast-notification.success .toast-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.toast-notification.warning .toast-icon {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

.toast-notification.info .toast-icon {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.toast-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toast-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
}

.toast-message {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.9;
}

.toast-close {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
  transform: scale(1.1);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(120%);
  }
}

.toast-notification.removing {
  animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 1, 1);
}

@media (max-width: 768px) {
  #toast-container {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .toast-notification {
    min-width: auto;
    max-width: none;
  }
}

/* ========== MODAL FIXES ========== */
.modal-return-date-picker {
  right: 0 !important;
}

.flatpickr-calendar.animate.static.arrowBottom.arrowLeft.open:after {
  display: none !important;
}

.flatpickr-calendar.animate.static.arrowBottom.arrowLeft.open:before {
  display: none !important;
}

/* ========== VEHICLE YEAR DISPLAY ========== */
.vehicle-year {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.vehicle-year .text-muted {
  font-size: 12px;
}

.vehicle-year .fw-bold {
  font-size: 13px;
  color: #f59e0b;
}

/* ========== FINAL UTILITY CLASSES ========== */
.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  z-index: 1040;
}

.modal {
  z-index: 1050;
}

/* ========== ACCESSIBILITY ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== SMOOTH SCROLLING ========== */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ========== SELECTION STYLES ========== */
::selection {
  background: rgba(245, 158, 11, 0.3);
  color: #1a1a1a;
}

::-moz-selection {
  background: rgba(245, 158, 11, 0.3);
  color: #1a1a1a;
}

/* ========== LOADING STATES ========== */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
}

/* ========== SKELETON LOADERS ========== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ========== FADE ANIMATIONS ========== */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

.fade-out {
  animation: fadeOut 0.5s ease-out;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* ========== SLIDE ANIMATIONS ========== */
.slide-up {
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* ========== FOCUS IMPROVEMENTS ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.5);
  outline-offset: 2px;
}

/* ========== PREVENT TEXT SELECTION ON INTERACTIVE ELEMENTS ========== */
button,
.btn,
.btn-main,
.filter-clear,
.mobile-filter-btn {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* ========== IMPROVED LINK STYLES ========== */
a {
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  text-decoration: none;
}

/* ========== CLEARFIX UTILITY ========== */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ========== END OF UNIFIED CARS.CSS ========== */

