:root {
  /* Colors */
  --color-bg: #232323;
  --color-bg-footer: #232323;
  --color-white: #ffffff;
  --color-gray: #888888;
  --color-gray-light: #aaaaaa;
  --color-white: #ffffff;
  --color-white-hover: #ffffff;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --container-width: 1440px;
  --container-padding: 51px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  height: 100%;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin-top: 50px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main,
.main {
  overflow-x: hidden;
  flex: 1;
}

/* Все секции со слайдерами */
.brands,
.testimonials,
.car-sliders,
.car-slider,
.categories,
.car-conditions_main {
  overflow: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;

}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* ==========================================================================
   Header - Two Row Fixed Layout
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  z-index: 100;
  flex-shrink: 0;
}

/* Add padding to body for fixed header */
body {
  padding-top: 50px;
}

/* ==========================================================================
   Top Row - Categories
   ========================================================================== */

.header__top {
  background-color: #3F3F3F;
}

.header__top-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 51px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
}

.header__categories {
  display: flex;
  align-items: center;
  height: 100%;
}

.header__category {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 24px;
  font-size: 13px;
  color: var(--color-gray);
  text-decoration: none;
  background-color: transparent;
  transition: all 0.2s ease;
}

.header__category:hover {
  color: var(--color-white);
}

.header__category.is-active {
  color: var(--color-white);
  font-weight: 500;
  background-color: var(--color-bg);
}

.header__top-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__phone {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-white);
  text-decoration: none;
}

.header__phone:hover {
  color: var(--color-white);
}

.header__socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header__social:hover {
  color: var(--color-white);
}

.header__lang {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  transition: color 0.2s ease;
}

.header__lang:hover {
  color: var(--color-white);
}

/* ==========================================================================
   Bottom Row - Main Navigation
   ========================================================================== */

.header__bottom {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header__bottom-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.header__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo img {
  height: 24px;
  width: auto;
}

.header__city {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__city-divider {
  color: var(--color-gray);
}

.header__city-select {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-white);
  background: none;
  border: none;
  cursor: pointer;
}

.header__city-select:hover {
  color: var(--color-white);
}

/* Navigation */
.header__nav {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.header__nav-link {
  font-size: 14px;
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header__nav-link:hover {
  color: var(--color-white);
}

/* Right Actions */
.header__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header__action:hover {
  color: var(--color-white);
}

.header__action svg {
  flex-shrink: 0;
}

/* Account Button */
.header__account {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.header__account:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.header__account-initials {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-white);
}

.header__account svg {
  color: var(--color-white);
  transition: transform 0.2s ease;
}

.header__account.is-open svg {
  transform: rotate(180deg);
}

/* ==========================================================================
   Account Dropdown
   ========================================================================== */

.header__account-dropdown {
  position: absolute;
  top: 100%;
  right: var(--container-padding);
  width: 260px;
  background-color: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 110;
}

.header__account-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__account-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--color-white);
  text-decoration: none;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.header__account-link:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.header__account-link svg {
  flex-shrink: 0;
  color: var(--color-gray);
}

.header__account-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin: 8px 16px;
}

.header__account-link--logout {
  color: #ff6b6b;
}

.header__account-link--logout svg {
  color: #ff6b6b;
}

/* ==========================================================================
   Mobile Elements
   ========================================================================== */

.header__mobile-right {
  display: none;
}

.header__mobile-menu {
  display: none;
}

/* ==========================================================================
   Header Account Button - Guest State
   ========================================================================== */

.header__account--guest .header__account-initials {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid white;
  border-radius: 50%;
}

.header__account--guest .header__account-initials::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10' cy='6' r='3' stroke='white' stroke-width='1.5'/%3E%3Cpath d='M4 17C4 14.24 6.69 12 10 12C13.31 12 16 14.24 16 17' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 992px) {
  .header__top {
    display: none;
  }
  
  .header__bottom-container {
    height: 60px;
  }
  
  .header__city,
  .header__nav,
  .header__right {
    display: none;
  }
  
  .header__mobile-right {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .header__bottom-container{
    padding: 0 20px;
  }
  
  /* Burger */
  .header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  
  .header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 1px;
    transition: all 0.3s ease;
  }
  
  .header__burger.is-active span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
  }
  
  .header__burger.is-active span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
  }
  
  /* Mobile Menu */
  .header__mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-bg);
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
    overflow-y: auto;
  }
  
  .header__mobile-menu.is-open {
    display: block;
    transform: translateX(0);
  }
  
  .header__mobile-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .header__mobile-category {
    font-size: 14px;
    color: var(--color-gray);
    text-decoration: none;
  }
  
  .header__mobile-category.is-active {
    color: var(--color-white);
    font-weight: 500;
  }
  
  .header__mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
  }
  
  .header__mobile-link {
    font-size: 16px;
    color: var(--color-white);
    text-decoration: none;
  }
  
  .header__mobile-link--logout {
    color: #ff6b6b;
  }
  
  .header__mobile-account {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 20px;
    margin-top: 20px;
    margin-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  
  .header__mobile-phone {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-white);
    text-decoration: none;
  }
  
  .header__account-dropdown {
    display: none;
  }
}

  .mobile-filter-overlay,
  .mobile-filter-dropdown{
    display: block;
  }

  .mobile-sort-dropdown {
    display: none;
  }

  .catalog__mobile-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
  }

  .mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #2a2a2a;
    position: relative;
    border-radius: 6px;
    font-size: 14px;
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-filter-btn:hover,
  .mobile-filter-btn.is-active {
    border: 1px solid var(--color-white);
  }

  .mobile-filter-btn svg {
    width: 12px;
    height: 12px;
    color: var(--color-gray);
    transition: transform 0.2s ease;
  }

  .mobile-filter-btn.is-open svg {
    transform: rotate(180deg);
  }

  .filter-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    color: var(--color-bg);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    padding: 0 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  /* Mobile sort button */
  .catalog__mobile-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    background: none;
    border: none;
    font-size: 14px;
    color: var(--color-gray);
    cursor: pointer;
  }

  .catalog__mobile-sort svg {
    width: 16px;
    height: 16px;
  }

  /* Mobile filter overlay & dropdown */
  .mobile-filter-overlay,
  .mobile-filter-dropdown,
  .mobile-sort-dropdown {
    display: block;
  }

  .mobile-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 199;
  }

  .mobile-filter-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  .mobile-filter-dropdown {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    border-radius: 20px 20px 0 0;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 200;
    max-height: 70vh;
    overflow-y: auto;
  }

  .mobile-filter-dropdown.is-open {
    transform: translateY(0);
  }

  .mobile-filter-dropdown__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-filter-dropdown__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
  }

  .mobile-filter-dropdown__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
  }

  .mobile-filter-dropdown__content {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mobile-filter-dropdown__content .filter-checkbox {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .mobile-filter-dropdown__content .filter-checkbox:last-child {
    border-bottom: none;
  }

  /* Sort dropdown */
  .mobile-sort-dropdown {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    border-radius: 20px 20px 0 0;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 200;
  }

  .mobile-sort-dropdown.is-open {
    transform: translateY(0);
  }

  .mobile-sort-dropdown__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-sort-dropdown__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
  }

  .mobile-sort-dropdown__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
  }

  .mobile-sort-option {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 16px;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .mobile-sort-option:last-child {
    border-bottom: none;
  }

  .mobile-sort-option:hover,
  .mobile-sort-option.is-active {
    color: var(--color-white);
  }

  .mobile-sort-option.is-active::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--color-white);
    border-radius: 50%;
    margin-right: 12px;
  }

  /* Apply button */
  .mobile-filter-apply {
    max-width: 420px;
    min-width: 300px;
    padding: 16px;
    background-color: var(--color-white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-bg);
    cursor: pointer;
    margin-top: 20px;
  }

  .mobile-filter-dropdown__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
  }

  .btns_cont {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
  }

/* ==========================================================================
   Catalog - Mobile Filters
   ========================================================================== */

@media (max-width: 992px) {
  /* Hide desktop elements */
  .catalog__sidebar {
    display: none !important;
  }

  .catalog__sort {
    display: none !important;
  }

  .catalog__content {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .catalog__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Show mobile filters */
  .catalog__mobile-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    width: 100%;
  }

  .mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #2a2a2a;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-filter-btn:hover,
  .mobile-filter-btn.is-active {
    border: 1px solid var(--color-white);
  }

  .mobile-filter-btn svg {
    width: 12px;
    height: 12px;
    color: var(--color-gray);
    transition: transform 0.2s ease;
  }

  .mobile-filter-btn.is-open svg {
    transform: rotate(180deg);
  }

  /* Mobile sort button */
  .catalog__mobile-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    background: none;
    border: none;
    font-size: 14px;
    color: var(--color-gray);
    cursor: pointer;
  }

  .catalog__mobile-sort svg {
    width: 16px;
    height: 16px;
  }

  /* Mobile filter overlay & dropdown */
  .mobile-filter-overlay,
  .mobile-filter-dropdown,
  .mobile-sort-dropdown {
    display: block;
  }

  .mobile-filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 199;
  }

  .mobile-filter-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  .mobile-filter-dropdown {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    border-radius: 20px 20px 0 0;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 200;
    max-height: 70vh;
    overflow-y: auto;
  }

  .mobile-filter-dropdown.is-open {
    transform: translateY(0);
  }

  .mobile-filter-dropdown__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-filter-dropdown__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
  }

  .mobile-filter-dropdown__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
  }

  .mobile-filter-dropdown__content {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mobile-filter-dropdown__content .filter-checkbox {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .mobile-filter-dropdown__content .filter-checkbox:last-child {
    border-bottom: none;
  }

  /* Sort dropdown */
  .mobile-sort-dropdown {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a1a1a;
    border-radius: 20px 20px 0 0;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 200;
  }

  .mobile-sort-dropdown.is-open {
    transform: translateY(0);
  }

  .mobile-sort-dropdown__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-sort-dropdown__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
  }

  .mobile-sort-dropdown__close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--color-white);
    cursor: pointer;
  }

  .mobile-sort-option {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 16px;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .mobile-sort-option:last-child {
    border-bottom: none;
  }

  .mobile-sort-option:hover,
  .mobile-sort-option.is-active {
    color: var(--color-white);
  }

  .mobile-sort-option.is-active::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--color-white);
    border-radius: 50%;
    margin-right: 12px;
  }

  /* Apply button */
  .mobile-filter-apply {
    width: 100%;
    padding: 16px;
    background-color: var(--color-white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-bg);
    cursor: pointer;
    margin-top: 20px;
  }

  /* Grid adjustments */
  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .catalog__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Mobile Filter Dropdown
   ========================================================================== */

.mobile-filter-dropdown {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1a1a1a;
  border-radius: 20px 20px 0 0;
  padding: 24px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 200;
  max-height: 70vh;
  overflow-y: auto;
}

.mobile-filter-dropdown.is-open {
  transform: translateY(0);
}

.mobile-filter-dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mobile-filter-dropdown__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
}

.mobile-filter-dropdown__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-gray);
  cursor: pointer;
}

.mobile-filter-dropdown__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 199;
}

.mobile-filter-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Alphabetical Brand Structure for Mobile Filter (used on desktop too) */
.filter-brands-alphabetical {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.filter-brand-letter-group {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-brand-letter-group.hidden {
  display: none;
}

.filter-brand-letter-header {
  grid-column: 1;
  padding: 16px 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.filter-brand-letter-items {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.filter-brand-letter-items .filter-brand-item {
  padding: 14px 12px;
  border-bottom: none;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0;
}

.filter-brand-letter-items .filter-brand-item:nth-child(4n) {
  border-right: none;
}

.filter-brand-letter-items .filter-brand-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  margin: 0;
  padding: 14px 12px;
}

/* Mobile specific (< 768px) - stack vertically */
@media (max-width: 767px) {
  .filter-brand-letter-group {
    grid-template-columns: 1fr;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  }
  
  .filter-brand-letter-header {
    grid-column: 1;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.05);
    justify-content: flex-start;
  }
  
  .filter-brand-letter-items {
    grid-column: 1;
    grid-template-columns: 1fr;
  }
  
  .filter-brand-letter-items .filter-brand-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  
  .filter-brand-letter-items .filter-brand-item:last-child {
    border-bottom: none;
  }
}

/* Tablet (768px - 992px) - 2 columns */
@media (min-width: 768px) and (max-width: 992px) {
  .filter-brand-letter-items {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filter-brand-letter-items .filter-brand-item:nth-child(4n) {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
  
  .filter-brand-letter-items .filter-brand-item:nth-child(2n) {
    border-right: none;
  }
}

/* Desktop (> 992px) - 4 columns */
@media (min-width: 993px) {
  .filter-brand-letter-items {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Desktop Brand with Alphabetical Headers (OLD - not used) */
.filter-block__content--scroll {
  max-height: 400px;
  overflow-y: auto;
}

.filter-brand-letter {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0;
  margin-bottom: 0;
}

.filter-brand-letter__header {
  grid-column: 1;
  padding: 12px 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background-color: rgba(255, 255, 255, 0.02);
  position: sticky;
  top: 0;
  z-index: 1;
}

.filter-brand-letter__items {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.filter-brand-letter__items .filter-checkbox {
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-brand-letter__items .filter-checkbox:nth-child(4n) {
  border-right: none;
}

.filter-brand-letter__items .filter-checkbox .filter-checkbox__label {
  font-size: 13px;
}

/* Results Info */
.catalog__results-info {
  padding: 16px 0;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Filter Search */
.mobile-filter-search {
  position: relative;
  margin-bottom: 20px;
}

.mobile-filter-search__input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 15px;
  color: var(--color-white);
  transition: all 0.2s ease;
}

.mobile-filter-search__input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.08);
}

.mobile-filter-search__input::placeholder {
  color: var(--color-gray);
}

.mobile-filter-search__icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray);
  pointer-events: none;
}

.mobile-filter-search--models {
  margin-bottom: 16px;
}

/* Select All Checkbox */
.filter-checkbox--select-all {
  margin-bottom: 12px;
  padding: 14px 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

.filter-checkbox--select-all .filter-checkbox__label {
  font-weight: 600;
  color: var(--color-white);
}

/* Brand Items for Mobile */
.filter-brand-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-brand-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  padding-left: 8px;
  padding-right: 8px;
  margin-left: -8px;
  margin-right: -8px;
}

.filter-brand-item__label {
  flex: 1;
  font-size: 16px;
  color: var(--color-white);
}

.filter-brand-item__count {
  margin-right: 12px;
  font-size: 14px;
  color: var(--color-gray);
}

.filter-brand-item__arrow {
  width: 16px;
  height: 16px;
  color: var(--color-gray);
  flex-shrink: 0;
}

/* Back Button */
.mobile-filter-back {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  margin-right: 12px;
}

.mobile-filter-dropdown__header {
  display: flex;
  align-items: center;
}

/* Hide filtered items */
.filter-brand-item.hidden,
.model-checkbox.hidden {
  display: none;
}

/* Mobile Filter Footer */
.mobile-filter-dropdown__footer {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-filter-reset {
  flex: 1;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-filter-reset:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-filter-apply {
  flex: 2;
  padding: 14px;
  background-color: var(--color-white);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-bg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-filter-apply:hover {
  opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .filter-brand-letter__items {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .filter-brand-letter__items .filter-checkbox:nth-child(4n) {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
  
  .filter-brand-letter__items .filter-checkbox:nth-child(3n) {
    border-right: none;
  }
}

@media (max-width: 992px) {
  .catalog__results-info {
    font-size: 14px;
    padding: 12px 0;
    margin-bottom: 16px;
  }
}

@media (max-width: 768px) {
  .filter-brand-letter__items {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .filter-brand-letter__items .filter-checkbox:nth-child(3n) {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
  
  .filter-brand-letter__items .filter-checkbox:nth-child(2n) {
    border-right: none;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background-color: var(--color-bg-footer);
  width: 100%;
  max-width: var(--container-width);
  padding: 60px 51px;
  margin: 0 auto;
  flex-shrink: 0;
}

.footer__container {
  max-width: var(--container-width);
}

/* Top: Logo + Menus */
.footer__top {
  display: flex;
  flex-direction: column;
  gap: 37px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo img {
  height: 20px;
  width: auto;
}

.footer__menus {
  display: flex;
  gap: 189px;
  flex: 1;
}

.footer__menu-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 16px;
  text-transform: lowercase;
}

.footer__menu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__menu-list a {
  font-size: 14px;
  color: var(--color-gray-light);
}

.footer__menu-list a:hover {
  color: var(--color-white);
}

/* Contacts */
.footer__contacts {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--color-white);
}

.footer__social:hover {
  border-color: var(--color-white);
  color: var(--color-white);
}

.footer__phone,
.footer__email {
  font-size: 14px;
  color: var(--color-white);
}

.footer__phone:hover,
.footer__email:hover {
  color: var(--color-white);
}

/* Bottom */
.footer__bottom {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 30px;
}

.footer__copyright {
  font-size: 13px;
  color: var(--color-gray);
}

.footer__link {
  font-size: 13px;
  color: var(--color-gray);
}

.footer__link:hover {
  color: var(--color-white);
}

/* ==========================================================================
   Mobile Bottom Navigation
   ========================================================================== */

.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1a1a1a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 0;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 100;
  flex-shrink: 0;
}

.mobile-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  color: var(--color-gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-nav__item:hover,
.mobile-nav__item.is-active {
  color: var(--color-white);
}

.mobile-nav__item.is-active span {
  font-weight: 700;
}

.mobile-nav__item svg {
  width: 24px;
  height: 24px;
}

.mobile-nav__item span {
  font-size: 11px;
  font-weight: 500;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 992px) {
  .mobile-nav {
    display: flex;
    justify-content: space-around;
  }

  .footer__container{
    display: none;
  }
  
  /* Footer отступ от мобильного навбара */
  .footer {
    padding-bottom: 100px;
  }
}

/* ==========================================================================
   Footer - Mobile Responsive
   ========================================================================== */

@media (max-width: 992px) {
  .footer__menus {
    flex-wrap: wrap;
    gap: 40px 60px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 0 100px;
  }
  
  .footer__top {
    gap: 24px;
    padding-bottom: 24px;
  }
  
  .footer__menus {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .footer__contacts {
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px 0;
  }
  
  .footer__bottom {
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
  }
}

@media (max-width: 480px) {
  .footer__menus {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  
  .footer__menu-title {
    font-size: 13px;
    margin-bottom: 12px;
  }
  
  .footer__menu-list {
    gap: 8px;
  }
  
  .footer__menu-list a {
    font-size: 13px;
  }

  body {
    margin-top: 0px;
  }
}

/* ==========================================================================
   Main content area
   ========================================================================== */

.main--home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ==========================================================================
   Hero Section - Full Video Background
   ========================================================================== */

/* ==========================================================================
   Header Base
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

/* Top Row - всегда с фоном */
.header__top {
  background-color: #3F3F3F;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  min-height: calc(100vh - 44px);
  height: 100%;
  width: 100vw;
  overflow: hidden;
  padding-top: 56px; /* Высота header__bottom который поверх */
}

/* Video Background */
.hero__video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

/* Container */
.hero__container {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 60px var(--container-padding) 40px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

/* Content - Left */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 500px;
  flex-shrink: 0;
  gap: 150px;
}

.hero__title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 24px;
  text-transform: lowercase;
}

/* Features List */
.hero__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  list-style: none;
  padding: 0;
  margin-top: 0;
}

.hero__feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__feature-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--color-white);
}

.hero__feature-text {
  font-size: 18px;
  color: var(--color-white);
}

/* Button */
.hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 48px;
  background-color: var(--color-white);
  color: var(--color-bg);
  font-size: 18px;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s ease;
  margin-bottom: 32px;
}

.hero__button:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* Clients */
.hero__clients {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__clients-avatars {
  display: flex;
}

.hero__clients-avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-left: -10px;
  object-fit: cover;
}

.hero__clients-avatars img:first-child {
  margin-left: 0;
}

.hero__clients-arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: var(--color-white);
}

.hero__clients-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 120px;
  line-height: 1.4;
}

/* ==========================================================================
   Hero Categories Slider
   ========================================================================== */

.hero__bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.hero__categories-slider {
  overflow: hidden;
}

.hero__categories-track {
  display: flex;
  gap: 12px;
  transition: transform 0.4s ease;
}

.hero__category-card {
  flex-shrink: 0;
  width: 140px;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hero__category-card:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-4px);
}

.hero__category-image {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.hero__category-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

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

.hero__category-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 2px;
}

.hero__category-count {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Categories Nav Arrows */
.hero__categories-nav {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  flex-shrink: 0;
}

.hero__categories-arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero__categories-arrow:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

.hero__categories-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ==========================================================================
   Hero Categories - Responsive
   ========================================================================== */

@media (max-width: 1200px) {
  .hero__category-card {
    width: 120px;
  }
}

@media (max-width: 992px) {
  .hero__bottom {
    width: 100%;
    justify-content: flex-start;
  }
  
  .hero__categories-slider {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  
  .hero__categories-slider::-webkit-scrollbar {
    display: none;
  }
  
  .hero__category-card {
    width: 110px;
    padding: 10px;
  }
  
  .hero__category-image {
    height: 50px;
  }
}

@media (max-width: 480px) {
  .hero__category-card {
    width: 100px;
  }
  
  .hero__categories-nav {
    display: none;
  }
}

/* ==========================================================================
   Hero - Responsive
   ========================================================================== */

@media (max-width: 1200px) {
  .hero__title {
    font-size: 36px;
  }
  
  .hero__categories-slider {
    max-width: 500px;
  }
}

@media (max-width: 992px) {
  .hero {
    padding-top: 60px;
    max-height: 100vh!important;
  }
  
  .hero__video-overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.3) 40%,
      rgba(0, 0, 0, 0.6) 100%
    );
  }
  
  .hero__container {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 20px 32px;
    gap: 32px;
  }
  
  .hero__content {
    max-width: 100%;
  }
  
  .hero__title {
    font-size: 28px;
  }
  
  .hero__features {
    gap: 10px;
    margin-bottom: 0px;
  }
  
  .hero__feature-icon {
    width: 28px;
    height: 28px;
  }
  
  .hero__feature-text {
    font-size: 18px;
  }
  
}

@media (max-width: 768px) {
  .hero__title {
    font-size: 24px;
  }
  
  .hero__clients {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .hero__clients-avatars img {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 25px;
    margin-bottom: 0;
  }
  .hero__container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0px 20px 50px;
  }
  .hero__content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
  }
  .hero {
    padding: 0;
    min-height: auto;
  }
  .hero__bottom {
    justify-content: center;
    align-items: center;
  }
  .heroCont {
    gap: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 70px;
    background-color: var(--color-white);
    color: var(--color-bg);
    font-size: 18px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
    margin-bottom: 32px;
  }
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */

.how-it-works {
  background-color: var(--color-bg);
}

.how-it-works__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.how-it-works__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 40px;
}

.how-it-works__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px 60px;
}

.how-it-works__item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how-it-works__number {
  width: 38px;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-white);
  border-radius: 19px;
  font-size: 18px;
  color: var(--color-white);
}

.how-it-works__text {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.4;
}

/* ==========================================================================
   How It Works - Responsive
   ========================================================================== */

@media (max-width: 992px) {
  .how-it-works {
    padding: 60px 0;
  }
  
  .how-it-works__title {
    font-size: 28px;
    margin-bottom: 32px;
  }
  
  .how-it-works__grid {
    gap: 24px 40px;
    grid-template-columns: repeat(3, 1fr);
  }

  .how-it-works__text {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-white);
    line-height: 1.4;
  }
}

@media (max-width: 768px) {
  .how-it-works {
    padding: 40px 0;
  }
  
  .how-it-works__title {
    font-size: 24px;
    margin-bottom: 24px;
  }
  
  .how-it-works__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 24px;
  }
  
  .how-it-works__text {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .how-it-works__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .how-it-works__text {
    font-size: 18px;
  }
}

/* ==========================================================================
   Categories Section
   ========================================================================== */

.categories {
  padding: 100px 0;
  background-color: var(--color-bg);
}

.categories__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.categories__list {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
}

.categories__list::-webkit-scrollbar {
  display: none;
}

.categories__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 24px;
  background-color: #323232;
  border-radius: 20px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  min-width: 170px;
  text-decoration: none;
}

.categories__item:hover {
  background-color: #3a3a3a;
}

.categories__image {
  width: 100px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.categories__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.categories__name {
  font-size: 16px;
  color: var(--color-white);
  text-align: center;
  font-weight: 700;
}

categories__count {
  font-size: 16px;
  color: var(--color-white);
  text-align: center;
}

/* Categories - Mobile */
@media (max-width: 992px) {
  .categories {
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  .categories {
    padding: 32px 0;
  }
  
  .categories__container {
    padding: 0 16px;
  }
  
  .categories__list {
    gap: 12px;
  }
  
  .categories__item {
    min-width: 140px;
    padding: 12px 16px;
    border-radius: 16px;
  }
  
  .categories__image {
    width: 80px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .categories__item {
    min-width: 120px;
    padding: 10px 12px;
    border-radius: 12px;
  }
  
  .categories__image {
    width: 70px;
    height: 35px;
  }
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.testimonials {
  background-color: var(--color-bg);
}

.testimonials__container {
  max-width: var(--container-width);
  margin: 100px auto;
  padding: 0 0 0 51px;
}

.testimonials__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.testimonials__subtitle {
  font-size: 40px;
  color: var(--color-gray);
  margin-bottom: 8px;
  font-weight: 400;
}

.testimonials__title {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}

.testimonials__nav {
  display: flex;
  gap: 12px;
}

.testimonials__arrow {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.2s ease;
}

.testimonials__arrow:hover {
  border-color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.1);
}

.testimonials__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Slider */
.testimonials__slider-wrapper {
  position: relative;
}

.testimonials__slider-wrapper::before,
.testimonials__slider-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.testimonials__slider {
  overflow: hidden;
}

.testimonials__track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
}

.testimonials__slide {
  flex-shrink: 0;
  width: 380px;
}

/* Card - New Design */
.testimonials__card {
  position: relative;
  height: 300px;
  border-radius: 24px;
  overflow: hidden;
  background-color: #1a1a1a;
}

.testimonials__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

}

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

.testimonials__image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgb(0 0 0 / 40%) 0%, rgb(0 0 0 / 59%) 40%, rgb(0 0 0 / 40%) 60%, rgb(0 0 0 / 50%) 100%);

}

/* User Info - Top */
.testimonials__user {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.testimonials__verified {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.testimonials__verified img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.testimonials__user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonials__name {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-white);
}

.testimonials__position {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

/* Play Button */
.testimonials__play {
  position: absolute;
  left: 24px;
  bottom: 100px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 3;
}

.testimonials__play:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

/* Car Info - Bottom */
.testimonials__car {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 3;
}

.testimonials__car-name {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-white);
}

.testimonials__car-price {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Testimonials Responsive
   ========================================================================== */

@media (max-width: 1200px) {
  .testimonials__slide {
    width: 340px;
  }
  
  .testimonials__card {
    height: 480px;
  }
}

@media (max-width: 992px) {
  .testimonials {
    padding: 20px 0;
  }

  .testimonials__slide {
    width: 300px;
  }

  .testimonials__card {
    height: 440px;
  }

  /* Обновляем padding для центрирования */
  .testimonials__slider {
    padding: 0 calc((100vw - 300px) / 2) !important;
  }
  
  .testimonials__name {
    font-size: 20px;
  }
  
  .testimonials__car-name {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .testimonials {
    padding: 40px 0;
  }
  
  .testimonials__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
  }
  
  .testimonials__title {
    font-size: 28px;
  }
  
  .testimonials__slide {
    width: 280px;
  }
  
  .testimonials__card {
    height: 400px;
    border-radius: 20px;
  }
  
  .testimonials__user {
    top: 16px;
    left: 16px;
    gap: 10px;
  }
  
  .testimonials__verified {
    width: 32px;
    height: 32px;
  }
  
  .testimonials__name {
    font-size: 18px;
  }
  
  .testimonials__position {
    font-size: 12px;
  }
  
  .testimonials__play {
    left: 16px;
    bottom: 80px;
    width: 48px;
    height: 48px;
  }
  
  .testimonials__car {
    bottom: 16px;
    left: 16px;
    right: 16px;
  }
  
  .testimonials__car-name {
    font-size: 18px;
  }
  
  .testimonials__car-price {
    font-size: 16px;
  }
  
  .testimonials__slider-wrapper::before,
  .testimonials__slider-wrapper::after {
    width: 60px;
  }
}

@media (max-width: 480px) {
  .testimonials__slide {
    width: 260px;
  }

  .testimonials__card {
    height: 210px;
  }

  .testimonials__slider-wrapper::before,
  .testimonials__slider-wrapper::after {
    width: 30px;
  }

  .testimonials__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0;
  }

  .testimonials__header {
    margin-left: 20px;
  }

  /* Обновляем padding для центрирования на маленьких экранах */
  .testimonials__slider {
    padding: 0 calc((100vw - 260px) / 2) !important;
  }
}

/* ==========================================================================
   Testimonials - Mobile Swipe
   ========================================================================== */

@media (max-width: 992px) {
  .testimonials__nav {
    display: none;
  }

  .testimonials__slider {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Добавляем snap-scroll для плавности как у brands */
    scroll-snap-type: x mandatory;

    /* Оптимизация для устранения дрожания */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: scroll-position;
  }

  .testimonials__slider::-webkit-scrollbar {
    display: none;
  }

  .testimonials__track {
    transition: none;
    /* Убираем transform для мобильных, чтобы браузер использовал нативный скролл */
    transform: none !important;
    will-change: auto;
  }

  /* Применяем snap-scroll к слайдам - по центру */
  .testimonials__slide {
    scroll-snap-align: center;
    /* Оптимизация отрисовки */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
}

/* ==========================================================================
   Car Sliders Section
   ========================================================================== */

.car-sliders {
  padding: 40px 0;
  background-color: var(--color-bg);
}

.car-slider {
  padding: 40px 0;
}

.car-slider__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 0 0 51px;
}

.car-slider__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.car-slider__title-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.car-slider__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
}

.car-slider__link {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  color: var(--color-white);
  transition: color 0.2s ease;
}

.car-slider__link:hover {
  color: var(--color-white);
}

.car-slider__link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background-color: var(--color-white);
  color: var(--color-bg);
}

.car-slider__link-text {
  font-size: 14px;
}

.car-slider__nav {
  display: flex;
  gap: 12px;
}

.sliderIcon {
  width: 20px !important;
  height: 20px !important;
}

.sliderIcon2 {
  width: 25px !important;
  height: 25px !important;
}

.sliderIcon3 {
  width: 13px !important;
  height: 13px !important;
}

.sliderIcon4 {
  width: 15px !important;
  height: 15px !important;
}

.car-slider__arrow {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-white);
  transition: all 0.2s ease;
}

.car-slider__arrow:hover {
  border-color: var(--color-white);
  color: var(--color-white);
}

.car-slider__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.car-slider__wrapper {
  position: relative;
  overflow: hidden;
}

.car-slider__wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 100%;
  background: linear-gradient(to left, var(--color-bg) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.car-slider__track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.car-slider__slide {
  flex-shrink: 0;
  width: 423px;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* ==========================================================================
   Car Slider - Mobile (Snap Scroll)
   ========================================================================== */

@media (max-width: 992px) {
  .car-slider {
    padding: 24px 0;
  }
  
  .car-slider__container {
    padding: 0; /* Убираем padding из контейнера */
  }

  .car-slider__header {
    margin-bottom: 20px;
  }

  .car-slider__title {
    font-size: 24px;
  }

  .car-slider__nav {
    display: none;
  }

  /* Snap scroll контейнер */
  .car-slider__wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;

    /* Snap scroll */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    /* Оптимизация для устранения дрожания */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: scroll-position;
  }

  .car-slider__wrapper::-webkit-scrollbar {
    display: none;
  }

  .car-slider__wrapper::after {
    display: none;
  }

  .car-slider__track {
    gap: 16px;
    transition: none;
    /* Убираем transform для мобильных, чтобы браузер использовал нативный скролл */
    transform: none !important;
    will-change: auto;
    /* Padding справа чтобы последний слайд мог доскроллиться */
    padding-right: 20px;
  }

  .car-slider__slide {
    width: 320px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    /* Оптимизация отрисовки */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
}

@media (max-width: 768px) {
  .car-slider__title-group {
    gap: 12px;
  }

  .car-slider__title {
    font-size: 20px;
  }

  .car-slider__link-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .car-slider__link-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* ==========================================================================
   Car Card - Dark variant (для слайдеров)
   ========================================================================== */

.car-card {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.car-card:hover {
  transform: translateY(-4px);
}

.car-card--dark {
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  position: relative;
}

.car-card__image {
  position: relative;
  height: 308px;
  overflow: hidden;
}

.car-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Градиент поверх фото */
.car-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 50%) 0%, rgb(0 0 0 / 59%) 40%, rgb(0 0 0 / 0%) 60%, rgb(0 0 0 / 0%) 100%);
  z-index: 1;
}

/* Контент поверх изображения */
.car-card__content {
  padding: 30px;
}

.car-card__content--dark {
  position: absolute;
  top: 1px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

.car-card__location {
  font-size: 14px;
  color: var(--color-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-card__title {
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.car-card__price {
  font-size: 16px;
  color: var(--color-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Кнопка избранного */
.car-card__favorite {
  position: absolute;
  top: 15px;
  right: 30px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  z-index: 3;
}

.car-card__favorite svg {
  width: 20px;
  height: 20px;
}

.car-card__favorite.is-active svg {
  fill: #ffffff;
  stroke: #ffffff;
}

/* Спеки внизу */
.car-card__specs {
  position: absolute;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.car-card__specs--dark {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.car-card__spec {
  padding: 5px 8px;
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 14px;
  color: var(--color-white);
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}


/* Mobile */
@media (max-width: 768px) {
  .car-card--dark .car-card__image {
    height: 230px;
  }

  .car-card__content {
    top: 8px;
    left: 8px;
    right: 8px;
  }

  .car-card__title {
    font-size: 16px;
  }

  .car-card__price {
    font-size: 12px;
  }

  .car-card__favorite {
    width: 32px;
    height: 32px;
    top: 8px;
    right: 8px;
  }

  .car-card__specs {
    bottom: 8px;
    left: 8px;
    right: 8px;
    gap: 4px;
  }

  .car-card__specs--dark {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    gap: 6px;
    z-index: 2;
  }

  .car-card__content--dark {
    padding: 15px;
  }

  .car-card__spec {
    padding: 4px 6px;
    font-size: 11px;
  }
}
/* ==========================================================================
   Brands Section
   ========================================================================== */

.brands {
  padding: 40px 0;
  background-color: var(--color-bg);
  overflow: hidden; /* Предотвращает выход за пределы viewport */
  width: 100%;
}

.brands__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  box-sizing: border-box;
}

.brands__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 16px;
}

.brands__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-white);
  word-break: break-word;
}

.brands__nav {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.brands__arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-white);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.brands__arrow:hover {
  border-color: var(--color-white);
  color: var(--color-white);
}

.brands__slider {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.brands__slider::-webkit-scrollbar {
  display: none;
}

.brands__track {
  display: inline-flex; /* inline-flex вместо flex */
  gap: 16px;
  transition: transform 0.4s ease;
}

.brands__item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 140px;
  padding: 20px;
  background-color: #1e1e1e;
  border-radius: 16px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.brands__item:hover {
  background-color: #2a2a2a;
}

.brands__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brands__icon img {
  max-width: 100%;
  max-height: 100%;
  filter: brightness(0) invert(1);
}

.brands__name {
  font-size: 13px;
  color: var(--color-white);
  text-align: center;
}

.brands__item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 140px;
  padding: 20px;
  background-color: #1e1e1e;
  border-radius: 16px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.brands__item:hover {
  background-color: #2a2a2a;
}

.brands__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brands__icon img {
  max-width: 100%;
  max-height: 100%;
  filter: brightness(0) invert(1);
}

.brands__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-white);
  text-align: center;
}

.brands__count {
  font-size: 14px;
  color: var(--color-gray);
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .brands__item {
    width: 110px;
    padding: 16px;
    gap: 6px;
  }
  
  .brands__icon {
    width: 32px;
    height: 32px;
  }
  
  .brands__name {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .brands__item {
    padding: 12px;
  }
  
  .brands__icon {
    width: 28px;
    height: 28px;
  }
  
  .brands__name {
    font-size: 11px;
  }

  .sliderIcon {
    width: 13px !important;
    height: 13px !important;
  }

  .sliderIcon2 {
    width: 15px !important;
    height: 15px !important;
  }
}

@media (max-width: 768px) {
  .brands {
    padding: 32px 0;
  }
  
  .brands__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }
  
  .brands__title {
    font-size: 24px;
  }
  
  .brands__nav {
    display: none;
  }
  
  .brands__track {
    gap: 12px;
  }
  
  .brands__item {
    width: 110px;
    padding: 16px;
    gap: 10px;
  }
  
  .brands__icon {
    width: 32px;
    height: 32px;
  }
  
  .brands__name {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .brands__title {
    font-size: 20px;
  }
  
  .brands__item {
    padding: 12px;
  }
  
  .brands__icon {
    width: 28px;
    height: 28px;
  }
  
  .brands__name {
    font-size: 11px;
  }

  .car-slider__container {
    padding: 0 0 0 20px;
  }

  .brands__container {
    padding: 0 20px;
  }
}

.hero__title,
.car-slider__title,
.how-it-works__title,
.testimonials__title,
.brands__title,
.categories__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--color-white);
}

.testimonials__subtitle {
  color: var(--color-gray);
  font-size: 40px;
}

.car-card__title,
.brands__name,
.testimonials__name,
.testimonials__car-name,
.categories__name {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-white);
}


.hero__clients-text,
.testimonials__position,
.testimonials__car-price,
.categories__count,
.how-it-works__subtitle,
.car-card__price,
.car-card__location,
.car-slider__link-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-white);
}

@media (max-width: 480px) {
  .hero__title,
  .car-slider__title,
  .how-it-works__title,
  .testimonials__title,
  .brands__title,
  .categories__title {
    font-size: 25px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--color-white);
  }

  .testimonials__subtitle {
    font-size: 25px;
  }
}

/* ==========================================================================
   Car Page - Fixed Sidebar Layout
   ========================================================================== */

.car-page {
  padding: 32px 0 80px;
}

.car-page__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ==========================================================================
   Header - Full Width
   ========================================================================== */

.car-page__header {
  margin-bottom: 24px;
}

.car-page__title-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.car-page__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-white);
}

.car-page__location {
  font-size: 18px;
  color: var(--color-gray);
}

.car-page__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.car-page__price-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  background-color: #323232;
  padding: 6px 12px;
  border-radius: 4px;
}

.car-page__price-label {
  font-size: 14px;
  color: var(--color-gray);
}

/* ==========================================================================
   Content Layout - Two Columns
   ========================================================================== */

.car-page__content {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

/* ==========================================================================
   Main Column - Left
   ========================================================================== */

.car-page__main {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ==========================================================================
   Sidebar - Sticky
   ========================================================================== */

.car-page__sidebar {
  position: relative;
  align-self: start;
}

.car-page__sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  will-change: transform;
  transition: transform 0.01s ease-out;
}

@media (max-width: 992px) {
  .car-page__sidebar-inner {
    transform: none !important;
  }
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.car-gallery {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  height: 445px;
}

.car-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  order: 1;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}

.car-gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.car-gallery__main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  order: 2;
  height: 100%;
}

.car-gallery__thumb {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease;
  background: none;
  padding: 0;
  flex-shrink: 0;
}

.car-gallery__thumb.is-active {
  border-color: var(--color-white);
}

.car-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-gallery__image {
  width: 100%;
  height: 100%;
}

.car-gallery__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.2s ease;
}

.car-gallery__arrow:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.car-gallery__arrow--prev { left: 16px; }
.car-gallery__arrow--next { right: 16px; }

.car-gallery__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.car-gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.car-gallery__dot.is-active {
  background-color: var(--color-white);
}

.car-gallery__actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.car-gallery__action {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.2s ease;
}

.car-gallery__action:hover {
  background-color: rgba(0, 0, 0, 0.6);
  transform: scale(1.05);
}

.car-gallery__action svg {
  width: 24px;
  height: 24px;
}

.car-gallery__action--favorite.is-active svg path {
  fill: var(--color-white);
  stroke: var(--color-white);
}

/* Share notification */
.share-notification {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
}

.share-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Specifications
   ========================================================================== */

.car-specs__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 20px;
}

.car-specs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 24px;
}

.car-specs__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.car-specs__icon {
  width: 28px;
  height: 28px;
  color: var(--color-gray);
  flex-shrink: 0;
}

.car-specs__icon svg {
  width: 100%;
  height: 100%;
}

.car-specs__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.car-specs__label {
  font-size: 12px;
  color: var(--color-gray);
  text-transform: capitalize;
}

.car-specs__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Tariffs
   ========================================================================== */

.car-tariffs__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 16px;
}

.car-tariffs__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.car-tariffs__tab {
  padding: 10px 20px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 13px;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.2s ease;
}

.car-tariffs__tab.is-active {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-bg);
}

.car-tariffs__content.is-hidden { display: none; }

.car-tariffs__table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.car-tariffs__table--3 {
  grid-template-columns: repeat(3, 1fr);
}

.car-tariffs__cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin: -1px 0 0 -1px;
}

.car-tariffs__cell-days {
  font-size: 13px;
  color: var(--color-gray);
}

.car-tariffs__cell-price {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white);
}

/* ==========================================================================
   Conditions
   ========================================================================== */

.car-conditions__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 16px;
}
.car-conditions__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.car-conditions__item {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.car-conditions__item-icon {
  width: 24px;
  height: 24px;
  color: var(--color-gray);
  margin-bottom: 12px;
  align-self: flex-end;
}

.car-conditions__label {
  font-size: 12px;
  color: var(--color-gray);
  margin-bottom: 4px;
}

.car-conditions__value {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.3;
}


/* ==========================================================================
   Conditions - Main (Homepage)
   ========================================================================== */

.car-conditions_main {
  padding: 80px 0;
  width: 100%;
  background-color: var(--color-bg);
}

.car-conditions__container_main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

.car-conditions__title_main {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 24px;
}

.car-conditions__grid_main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

.car-conditions__item_main {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  min-height: 140px;
  width: 100%;
  box-sizing: border-box;
}

.car-conditions__item_main .car-conditions__item-icon {
  align-self: flex-end;
  margin-bottom: auto;
  width: 28px;
  height: 28px;
  color: var(--color-gray);
}

.car-conditions__item_main .car-conditions__label {
  font-size: 14px;
  color: var(--color-gray);
  margin-bottom: 8px;
}

.car-conditions__item_main .car-conditions__value {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
}

/* ==========================================================================
   Conditions Main - Responsive
   ========================================================================== */

@media (max-width: 992px) {
  .car-conditions_main {
    padding: 60px 0;
  }
  
  .car-conditions__title_main {
    font-size: 25px;
  }
  
  .car-conditions__grid_main {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .car-conditions_main {
    padding: 40px 0;
  }
  
  .car-conditions__title_main {
    font-size: 25px;
  }
  
  .car-conditions__item_main {
    padding: 20px;
    min-height: 120px;
  }
  
  .car-conditions__item_main .car-conditions__value {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .car-conditions__item_main {
    padding: 16px;
    min-height: 110px;
  }
  
  .car-conditions__item_main .car-conditions__value {
    font-size: 14px;
  }

  .car-conditions__container_main {
    padding: 0 20px;
  }

  .how-it-works__container {
    padding: 0 20px;
  }

  .car-gallery__action {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.2s ease;
}

.car-gallery__action:hover {
  background-color: rgba(0, 0, 0, 0.6);
  transform: scale(1.05);
}

.car-gallery__action svg {
  width: 15px;
  height: 15px;
}
}
/* ==========================================================================
   Booking Form - Step 2 Styles
   ========================================================================== */

.car-booking__back {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--color-gray);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
  transition: color 0.2s ease;
}

.car-booking__back:hover {
  color: var(--color-white);
}

.car-booking__field-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
}

.car-booking__select {
  width: 100%;
  padding: 12px 14px;
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-size: 14px;
  color: var(--color-white);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.car-booking__select:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

.car-booking__whatsapp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.car-booking__whatsapp-text {
  font-size: 13px;
  color: var(--color-gray);
  line-height: 1.4;
  flex: 1;
}

.car-booking__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.car-booking__toggle input {
  display: none;
}

.car-booking__toggle-slider {
  width: 44px;
  height: 24px;
  background-color: #2a2a2a;
  border-radius: 12px;
  position: relative;
  transition: background-color 0.2s ease;
}

.car-booking__toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background-color: var(--color-gray);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.car-booking__toggle input:checked + .car-booking__toggle-slider {
  background-color: var(--color-white);
}

.car-booking__toggle input:checked + .car-booking__toggle-slider::after {
  left: 23px;
  background-color: var(--color-white);
}

.car-booking__toggle-label {
  font-size: 12px;
  color: var(--color-gray);
  min-width: 20px;
}

.car-booking__submit--final {
  background-color: var(--color-white);
  margin-top: 16px;
}

/* ==========================================================================
   Success Modal
   ========================================================================== */

.car-booking-success {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}

.car-booking-success__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
}

.car-booking-success__content {
  position: relative;
  background-color: #1e1e1e;
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  max-width: 400px;
  margin: 0 24px;
}

.car-booking-success__icon {
  margin-bottom: 24px;
}

.car-booking-success__title {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 12px;
}

.car-booking-success__text {
  font-size: 14px;
  color: var(--color-gray);
  margin-bottom: 32px;
  line-height: 1.5;
}

.car-booking-success__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 48px;
  background-color: var(--color-white);
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-bg);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.car-booking-success__btn:hover {
  background-color: var(--color-white);
}

/* ==========================================================================
   Google Places Autocomplete
   ========================================================================== */

.pac-container {
  background-color: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-top: 8px;
  font-family: inherit;
  z-index: 400;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pac-item {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--color-white);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.pac-item:first-child {
  border-top: none;
}

.pac-item:hover,
.pac-item-selected {
  background-color: rgba(255, 255, 255, 0.06);
}

.pac-item-query {
  font-size: 14px;
  color: var(--color-white);
}

.pac-matched {
  font-weight: 600;
}

.pac-icon {
  display: none;
}

.pac-container::after {
  display: none !important;
}

/* ==========================================================================
   Accordion Sections
   ========================================================================== */

.car-included,
.car-delivery,
.car-about {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.car-included__toggle,
.car-delivery__toggle,
.car-about__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  cursor: pointer;
}

.car-included__toggle svg,
.car-delivery__toggle svg,
.car-about__toggle svg {
  color: var(--color-gray);
  transition: transform 0.3s ease;
}

.car-included.is-open .car-included__toggle svg,
.car-delivery.is-open .car-delivery__toggle svg,
.car-about.is-open .car-about__toggle svg {
  transform: rotate(180deg);
}

.car-included__content,
.car-delivery__content,
.car-about__content {
  display: none;
  padding-bottom: 20px;
}

.car-included.is-open .car-included__content,
.car-delivery.is-open .car-delivery__content,
.car-about.is-open .car-about__content {
  display: block;
}

.car-included__list {
  display: flex;
  flex-direction: row;
  gap: 40px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
}

.car-included__column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.car-included__column--no {
  margin-top: 0;
  padding-top: 0;
  padding-left: 40px;
  border-top: none;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.car-included__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-white);
}

.car-included__column--yes .car-included__item svg {
  color: var(--color-white);
}

.car-included__column--no .car-included__item {
  color: var(--color-gray);
}


.car-delivery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.car-delivery__column-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 12px;
  text-align: center;
}

.car-delivery__item {
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  font-size: 14px;
  color: var(--color-white);
  text-align: center;
  margin-bottom: 8px;
}

.car-about__text {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
}

.car-about__text p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-gray);
  margin: 0;
}

@media (max-width: 1100px) {
  .car-specs__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .car-page__back {
    display: flex;
  }
  
  .car-page__sidebar {
    display: none;
  }
  
  .car-mobile-book {
    display: flex;
  }
  
  .car-page {
    padding-bottom: 100px;
  }
  
  .car-page__content {
    grid-template-columns: 1fr;
  }
  
  .car-specs__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .car-conditions__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* What's Included - back to column on mobile */
  .car-included__list {
    flex-direction: column;
    gap: 0;
  }
  
  .car-included__column--no {
    margin-top: 16px;
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-left: none;
  }
}

@media (max-width: 768px) {
  .car-page {
    padding: 20px 0 100px;
  }
  
  .car-page__title {
    font-size: 20px;
  }
  
  .car-page__location {
    font-size: 14px;
  }
  
  .car-gallery__arrow {
    width: 40px;
    height: 40px;
  }
  
  .car-gallery__arrow--prev { left: 8px; }
  .car-gallery__arrow--next { right: 8px; }
  
  .car-delivery__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .car-specs__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
  }
  
  .car-tariffs__table {
    grid-template-columns: 1fr;
  }
  
  .car-conditions__grid {
    grid-template-columns: 1fr 1fr;
  }
}
/* ==========================================================================
   Booking Form
   ========================================================================== */

.car-booking {
  background-color: #1e1e1e;
  border-radius: 20px;
  padding: 24px;
}

.car-booking__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 20px;
}

.car-booking__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.car-booking__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.car-booking__label {
  font-size: 11px;
  color: var(--color-gray);
}

.car-booking__input {
  width: 100%;
  padding: 12px 14px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-size: 14px;
  color: var(--color-white);
  outline: none;
}

.car-booking__input:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

/* Calendar icon for datetime-local inputs */
.car-booking__input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.2);
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  width: 18px;
  height: 18px;
}

.car-booking__input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.car-booking__checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
}

.car-booking__checkbox input { display: none; }

.car-booking__checkbox-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
}

.car-booking__checkbox input:checked + .car-booking__checkbox-box {
  background-color: var(--color-white);
  border-color: var(--color-white);
}

.car-booking__checkbox input:checked + .car-booking__checkbox-box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 8px;
  border: solid var(--color-bg);
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

.car-booking__checkbox-text {
  font-size: 12px;
  color: var(--color-white);
}

.car-booking__duration {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.car-booking__duration-label {
  font-size: 11px;
  color: var(--color-gray);
  display: block;
  margin-bottom: 4px;
}

.car-booking__duration-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.car-booking__duration-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-gray);
  cursor: pointer;
  transition: color 0.2s ease;
}

.car-booking__duration-btn:hover {
  color: var(--color-white);
}

.car-booking__duration-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white);
  min-width: 50px;
  text-align: center;
}

.car-booking__duration-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
}

.car-booking__separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 16px 0;
}

.car-booking__duration--total {
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.car-booking__duration--total .car-booking__duration-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
}

.car-booking__duration--total .car-booking__duration-price {
  font-size: 22px;
  color: var(--color-accent, #FF6B35);
}

.car-booking__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  margin-top: 8px;
  background-color: var(--color-white);
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-bg);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.car-booking__submit:hover {
  background-color: var(--color-white);
}

/* Booking Step 3 - Payment */
.car-booking--step3 .car-booking__title {
  margin-bottom: 24px;
}

.car-booking__summary {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.car-booking__summary-label {
  font-size: 12px;
  color: var(--color-gray);
  text-transform: lowercase;
  display: block;
  margin-bottom: 12px;
}

.car-booking__summary-car {
  display: flex;
  gap: 16px;
}

.car-booking__summary-img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.car-booking__summary-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.car-booking__summary-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  margin: 0;
}

.car-booking__summary-days {
  font-size: 13px;
  color: var(--color-gray);
  margin: 0;
}

.car-booking__payment-methods {
  margin-bottom: 24px;
}

.car-booking__payment-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-gray);
  margin-bottom: 16px;
}

.car-booking__payment-title svg {
  width: 16px;
  height: 16px;
}

.car-booking__payment-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.car-booking__payment-method {
  display: block;
  cursor: pointer;
}

.car-booking__payment-method input {
  display: none;
}

.car-booking__payment-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  color: var(--color-white);
  transition: border-color 0.2s;
}

.car-booking__payment-method input:checked + .car-booking__payment-content {
  border-color: var(--color-white);
}

.car-booking__payment-content:hover {
  background: rgba(255, 255, 255, 0.08);
}

.car-booking__payment-icon {
  font-size: 20px;
}

.car-booking__payment-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.car-booking__payment-icons img {
  height: 20px;
  object-fit: contain;
}

.car-booking__payment-badge {
  padding: 4px 8px;
  background: var(--color-white);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
  text-transform: uppercase;
}

/* Mobile responsive for payment step */
@media (max-width: 992px) {
  .car-booking--step3 {
    padding: 0;
    background: transparent;
  }

  .car-booking__summary {
    padding: 16px 0 16px;
    margin-bottom: 16px;
  }

  .car-booking__summary-img {
    width: 100px;
    height: 70px;
  }

  .car-booking__summary-title {
    font-size: 15px;
  }

  .car-booking__summary-days {
    font-size: 12px;
  }

  .car-booking__payment-methods {
    margin-bottom: 20px;
  }

  .car-booking__payment-title {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .car-booking__payment-content {
    padding: 14px;
    font-size: 14px;
  }

  .car-booking__payment-icon {
    font-size: 18px;
  }

  .car-booking__payment-badge {
    font-size: 10px;
    padding: 3px 6px;
  }
}

/* ==========================================================================
   Booking Terms
   ========================================================================== */

.car-booking-terms {
  background-color: #1e1e1e;
  border-radius: 20px;
  padding: 20px;
}

.car-booking-terms__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 16px;
}

.car-booking-terms__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  margin-bottom: 8px;
}

.car-booking-terms__item:last-child { margin-bottom: 0; }

.car-booking-terms__icon {
  width: 24px;
  height: 24px;
  color: var(--color-gray);
  flex-shrink: 0;
}

.car-booking-terms__text {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.4;
}

.car-booking-terms__text span:first-child { color: var(--color-white); }
.car-booking-terms__text span:last-child { color: var(--color-gray); }

/* ==========================================================================
   Lightbox
   ========================================================================== */

.car-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.car-lightbox.is-open { display: flex; }

.car-lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
}

.car-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
}

.car-lightbox__arrow--prev { left: 24px; }
.car-lightbox__arrow--next { right: 24px; }

.car-lightbox__image img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
}

.car-lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: var(--color-white);
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .car-specs__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .car-conditions__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .car-page__content {
    grid-template-columns: 1fr;
  }
  
  .car-page__sidebar {
    position: static;
  }
  
  .car-gallery {
    height: auto;
    grid-template-columns: 1fr;
  }
  
  .car-gallery__thumbs {
    flex-direction: row;
    order: 2;
    overflow-x: auto;
    overflow-y: hidden;
    height: auto;
  }
  
  .car-gallery__thumb {
    width: 80px;
    flex-shrink: 0;
  }
  
  .car-gallery__main {
    order: 1;
    aspect-ratio: 16/10;
    height: auto;
  }
  
  .car-tariffs__table {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .car-page {
    padding: 20px 0 60px;
  }
  
  .car-page__title {
    font-size: 20px;
  }
  
  .car-page__location {
    font-size: 14px;
  }
  
  .car-gallery__arrow {
    width: 40px;
    height: 40px;
  }
  
  .car-gallery__arrow--prev { left: 8px; }
  .car-gallery__arrow--next { right: 8px; }
  
  .car-delivery__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .car-specs__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
  }
  
  .car-tariffs__table {
    grid-template-columns: 1fr;
  }
  
  .car-conditions__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==========================================================================
   Back Button
   ========================================================================== */

.car-page__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.car-page__back {
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.car-page__back:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Mobile Fixed Book Button
   ========================================================================== */

.car-mobile-book {
  display: none;
  position: fixed;
  bottom: 70px;
  left: 0;
  right: 0;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background-color: #1a1a1a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 101;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.car-mobile-book__price {
  display: flex;
  flex-direction: column;
}

.car-mobile-book__price-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
}

.car-mobile-book__price-label {
  font-size: 12px;
  color: var(--color-gray);
}

.car-mobile-book__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background-color: var(--color-white);
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-bg);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.car-mobile-book__btn:hover {
  background-color: var(--color-white);
}

/* ==========================================================================
   Booking Modal
   ========================================================================== */

.car-booking-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: none;
}

.car-booking-modal.is-open {
  display: block;
}

.car-booking-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
}

.car-booking-modal__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1a1a1a;
  border-radius: 24px 24px 0 0;
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.car-booking-modal.is-open .car-booking-modal__content {
  transform: translateY(0);
}

.car-booking-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.car-booking-modal__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-white);
}

.car-booking-modal__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
}

.car-booking-terms--modal {
  background: none;
  padding: 0;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 992px) {
  .car-page__back {
    display: flex;
  }
  
  .car-page__sidebar {
    display: none;
  }
  
  .car-mobile-book {
    display: flex;
    bottom: 75px;
  }
  
  .car-page {
    padding-bottom: 160px;
  }
  
  .car-page__content {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   Variables (предполагаются заданными где-то выше)
   ========================================================================== */
/*
  --color-bg: #000 или #fff (фон текста);
  --color-white: #fff;
  --color-gray: #aaa или подобный;
  --color-white: #ff4757 или другой;
  --container-width: напр. 1200px;
  --container-padding: напр. 20px;
*/

/* ==========================================================================
   Catalog Page — General Layout
   ========================================================================== */

.catalog-page {
  padding: 22px 0 80px;
}

.catalog__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Header */
.catalog__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.catalog__title-group {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.catalog__title {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-white);
}

.catalog__count,
.catalog__filters-active {
  font-size: 18px;
  color: var(--color-gray);
}

/* Sort Dropdown */
.catalog__sort {
  position: relative;
}

.catalog__sort-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 14px;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.2s ease;
}

.catalog__sort-btn:hover {
  border-color: var(--color-white);
}

.catalog__sort-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background-color: #2a2a2a;
  border-radius: 12px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 10;
}

.catalog__sort-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.catalog__sort-dropdown a,
.catalog__sort-dropdown button {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--color-white);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.catalog__sort-dropdown a:hover,
.catalog__sort-dropdown button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.catalog__sort-dropdown a.is-active {
  color: var(--color-white);
}

/* Grid */
.catalog__content {
  display: grid;
  align-items: start;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
  align-content: start;
}

/* ==========================================================================
   Sidebar & Filters
   ========================================================================== */

.catalog__sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-block {
  background-color: #1a1a1a;
  display: none;
  border-radius: 16px;
  overflow: hidden;
}

.filter-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.filter-block__header:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.filter-block__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white);
  margin: 0;
}

.filter-block__icon {
  width: 20px;
  height: 20px;
  color: var(--color-gray);
  transition: transform 0.3s ease;
}

.filter-block.is-open .filter-block__icon {
  transform: rotate(180deg);
}

.filter-block__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.filter-block.is-open .filter-block__body {
  max-height: 400px;
}

.filter-block__content {
  padding: 0 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.filter-block__content--scroll {
  max-height: 160px;
  overflow-y: auto;
  padding-right: 12px;
}

/* Scrollbar */
.filter-block__content--scroll::-webkit-scrollbar {
  width: 4px;
}
.filter-block__content--scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}
.filter-block__content--scroll::-webkit-scrollbar-thumb {
  background: var(--color-white);
  border-radius: 2px;
}
.filter-block__content--scroll {
  scrollbar-width: thin;
  scrollbar-color: var(--color-white) rgba(255, 255, 255, 0.05);
}

/* Filter Checkbox */
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: opacity 0.2s ease;
}

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

.filter-checkbox:hover {
  opacity: 0.8;
}

.filter-checkbox input {
  display: none;
}

.filter-checkbox__box {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
}

.filter-checkbox input:checked + .filter-checkbox__box {
  background-color: var(--color-white);
  border-color: var(--color-white);
}

.filter-checkbox input:checked + .filter-checkbox__box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 7px;
  border: solid var(--color-bg);
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

.filter-checkbox__label {
  flex: 1;
  font-size: 13px;
  color: var(--color-white);
}

.filter-checkbox__count {
  font-size: 12px;
  color: var(--color-gray);
}

/* Price Range */
.price-range {
  padding: 0 20px 16px;
}

.price-range__slider-wrapper,
.price-range__slider {
  position: relative;
  height: 4px;
  margin-bottom: 12px;
}

.price-range__slider-bg,
.price-range__slider {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.price-range__slider-fill,
.price-range__track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--color-white);
  border-radius: 2px;
  pointer-events: none;
}

.price-range__input {
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 20px;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.price-range__labels {
  display: flex;
  justify-content: space-between;
}

.price-range__min-label,
.price-range__max-label {
  font-size: 12px;
  color: var(--color-white);
}

.price-range__max-label {
  font-weight: 600;
}

.price-range__current-value {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 16px;
}

.price-range__slider-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--color-white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s ease;
}

.price-range__slider-wrapper:hover .price-range__slider-thumb {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Year Filter */
.filter-year-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-year {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-year__checkbox .filter-checkbox__box {
  width: 18px;
  height: 18px;
}

.filter-input {
  flex: 1;
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.filter-input:focus-within {
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-input__field {
  flex: 1;
  padding: 10px 12px;
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--color-white);
  outline: none;
  width: 100%;
}

.filter-input__field::placeholder {
  color: var(--color-gray);
}

.filter-input__field::-webkit-outer-spin-button,
.filter-input__field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.filter-input__field[type=number] {
  -moz-appearance: textfield;
}

.filter-input__arrows {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-input__arrow {
  width: 28px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-gray);
  transition: all 0.2s ease;
}

.filter-input__arrow:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.filter-input__arrow--up {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-input__arrow svg {
  width: 8px;
  height: 5px;
}

/* Active Filters */
.catalog__active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  font-size: 12px;
  color: var(--color-white);
  text-decoration: none;
  transition: all 0.2s ease;
}

.filter-tag:hover {
  background-color: rgba(255, 77, 77, 0.2);
}

.filter-tag svg {
  width: 10px;
  height: 10px;
  opacity: 0.5;
}

/* ==========================================================================
   Car Card — Desktop Version
   ========================================================================== */

.car-card--light {
  display: block;
  background-color: #1e1e1e;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.car-card--light:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.car-card--light .car-card__image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.car-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.car-card--light .car-card__content {
  padding: 20px;
  background-color: #2a2a2a;
}

.car-card__title {
  color: var(--color-white);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-card--light .car-card__location {
  font-size: 14px;
  color: var(--color-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-card__price {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footerCont {
  display: flex;
  flex-direction: column;
}

.car-card__btn--light {
  padding: 10px 13px;
  color: black;
  background-color: var(--color-white);
  font-size: 12px;
  border-radius: 5px;
  font-weight: 700;
}

.car-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.car-card__footer--light {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.car-card__light {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.car-card__btn {
  padding: 10px 20px;
  background-color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-bg);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.car-card--light:hover .car-card__btn {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-bg);
}

/* Убираем все абсолютные позиции у спеков */
.car-card--light .car-card__specs {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 52px; /* свободное место под кнопку "избранное" */
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  pointer-events: none;
  z-index: 2;
  padding: 0; /* сбрасываем padding */
}

.car-card--light .car-card__spec {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 500;
  color: var(--color-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 20px;
  line-height: 1;
  box-sizing: border-box;
  /* Убираем position: absolute! */
  position: static !important;
}

.car-card--light .car-card__spec svg {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  stroke-width: 1.5;
  fill: none;
}

/* Favorite button — остаётся на месте */
.car-card--light .car-card__favorite {
  position: absolute;
  top: 4px;
  right: 10px;
  width: 41px;
  height: 41px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  z-index: 3;
}

.car-card--light .car-card__favorite svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
  fill: none;
}

.car-card--light .car-card__favorite.is-active svg {
  fill: #ffffff;
  stroke: #ffffff;
}

/* ==========================================================================
   Mobile override — только если нужно (опционально)
   ========================================================================== */

@media (max-width: 768px) {
  .car-card--light .car-card__specs {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;

  }

  .car-card__spec {
    font-size: 10px;
    padding: 3px 7px;
    gap: 4px;
  }

  .car-card__spec-icon {
    width: 12px;
    height: 12px;
  }

  .car-card--light .car-card__favorite {
    top: 14px!important;
  }
}

/* ==========================================================================
   Mobile Styles (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {

  .catalog__container {
    padding: 0 20px;
  }
  .catalog__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .catalog__title {
    font-size: 32px;
  }

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

  .catalog__sidebar {
    order: 2;
  }

  .catalog__grid {
    order: 1;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Car Card Mobile */
  .car-card--light {
    background: none;
    border-radius: 16px;
    width: 179px;
  }

  .car-card__image {
    height: 220px;
  }

  .car-card--dark .car-card__image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0) 40%,
      rgba(0, 0, 0, 0) 60%,
      rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
  }

  .car-card__content {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    z-index: 2;
  }

  .car-card__title {
    color: var(--color-white);
    font-weight: 600;
    margin-bottom: 4px;
  }

  .car-card__price {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 0;
  }

  .car-card__location {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
  }

  /* Hide button and footer */
  .car-card__footer,
  .car-card__btn {
    display: none !important;
  }

  /* Specs — bottom */
  .car-card__specs {
    position: absolute;
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 0;
    display: flex;
    gap: 8px;
    justify-content: space-between;
  }

  .car-card__spec {
    position: static;
    max-width: unset;
    justify-content: center;
    text-align: center;
  }

  /* Reset spec positions */
  .car-card__spec--speed,
  .car-card__spec--engine,
  .car-card__spec--passengers {
    top: auto;
    left: auto;
    right: auto;
    transform: none;
  }

  /* Favorite */
  .car-card__favorite {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }
}

/* ==========================================================================
   Extra Small Screens (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .car-card--light .car-card__content {
    padding: 0px;
    background-color: transparent;
  }

  .car-card__btn--light {
    display: none;
  }

  .car-card--light {
    width: 100%;
    border-radius: 0;
  }

  .car-card--light .car-card__image {
    height: 241px!important;
  }

  .car-card__content {
    top: 8px;
    left: 8px;
    right: 8px;
    padding: 0;
  }

  .car-card__location {
    font-size: 14px;
    color: white;
  }

  .car-card__spec {
    padding: 4px 8px;
    font-size: 10px;
    gap: 4px;
  }

  .car-card__spec-icon {
    width: 12px;
    height: 12px;
  }

  .car-card__specs {
    bottom: 8px;
    left: 8px;
    right: 8px;
    gap: 6px;
  }

  .car-page__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
  }
}

@media (max-width: 420px) {
  .car-card--light {
    width: 160px!important;
  }
}

/* ==========================================================================
   Catalog Empty & Pagination
   ========================================================================== */

.catalog__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background-color: #1a1a1a;
  border-radius: 16px;
}

.catalog__empty p {
  font-size: 16px;
  color: var(--color-gray);
  margin-bottom: 20px;
}

.catalog__reset-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--color-white);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-bg);
  text-decoration: none;
}

.catalog__pagination {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.catalog__pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background-color: #1a1a1a;
  border-radius: 8px;
  font-size: 13px;
  color: var(--color-white);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.catalog__pagination .page-numbers:hover {
  background-color: #2a2a2a;
}

.catalog__pagination .page-numbers.current {
  background-color: var(--color-white);
  color: var(--color-bg);
}

.specIcon {
  width: 20px!important;
  height: 20px!important;
}

/* Brand nested filter */
.filter-brand-item {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.filter-brand-item:hover {
  opacity: 0.7;
}

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

.filter-brand-item__label {
  flex: 1;
  font-size: 16px;
  color: var(--color-white);
}

.filter-brand-item__count {
  font-size: 14px;
  color: var(--color-gray);
  margin-right: 8px;
}

.filter-brand-item__arrow {
  width: 16px;
  height: 16px;
  color: var(--color-gray);
}

.mobile-filter-back {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  margin-right: 12px;
}

.mobile-filter-models {
  display: none;
}

.mobile-filter-models.is-active {
  display: flex;
}

/* Year filter mobile */
.filter-year-mobile {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-input-label {
  font-size: 14px;
  color: var(--color-white);
  margin-bottom: 8px;
}

.filter-year-mobile .filter-input__field {
  width: 100%;
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  color: var(--color-white);
  outline: none;
}

.filter-year-mobile .filter-input__field:focus {
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-year-mobile .filter-input__field::placeholder {
  color: var(--color-gray);
}

/* ==========================================================================
   PWA Mode Adjustments
   ========================================================================== */

/* Adjustments for PWA standalone mode (when installed as app) */
@media (display-mode: standalone) {
  /* Header: add top padding for status bar area (camera notch, etc.) */
  .header {
    padding-top: env(safe-area-inset-top);
  }

  /* Body: compensate for header padding - desktop */
  body {
    padding-top: calc(100px + env(safe-area-inset-top));
  }

  /* Mobile navigation: add bottom padding for home indicator */
  .mobile-nav {
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }

  /* Mobile Menu: adjust top position */
  @media (max-width: 992px) {
    body {
      padding-top: calc(60px + env(safe-area-inset-top));
    }

    .header__mobile-menu {
      top: calc(60px + env(safe-area-inset-top));
    }
  }
}

/* iOS Safari standalone mode support (fallback) */
.pwa-mode .header {
  padding-top: env(safe-area-inset-top);
}

.pwa-mode body {
  padding-top: calc(100px + env(safe-area-inset-top));
}

.pwa-mode .mobile-nav {
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

@media (max-width: 992px) {
  .pwa-mode body {
    padding-top: calc(60px + env(safe-area-inset-top));
  }

  .pwa-mode .header__mobile-menu {
    top: calc(60px + env(safe-area-inset-top));
  }

  /* Mobile book buttons */
  .pwa-mode .car-mobile-book,
  .pwa-mode .cart-mobile-book {
    bottom: calc(70px + env(safe-area-inset-bottom));
  }

  @media (display-mode: standalone) {
    .car-mobile-book,
    .cart-mobile-book {
      bottom: calc(70px + env(safe-area-inset-bottom));
    }
  }
}