/* ===========================
   1. CSS Custom Properties
   =========================== */
:root {
  --color-orange: #10a7f0;
  --color-orange-hover: #3dbaf5;
  --color-orange-light: #e8f5fe;
  --color-orange-dark: #0d8acc;
  --color-dark: #1c1c1e;
  --color-dark-lighter: #2c2c2e;
  --color-white: #ffffff;
  --color-light-gray: #f5f5f7;
  --color-gray-bg: #f0f0f2;
  --color-border: #e5e5e7;
  --color-text: #1c1c1e;
  --color-text-light: #ffffff;
  --color-text-muted: #8e8e93;
  --color-text-secondary: #636366;
  --color-green: #34c759;
  --color-green-bg: #e8f9ee;
  --color-yellow: #e6b800;
  --color-yellow-bg: #fef9e7;
  --color-shadow: rgba(0, 0, 0, 0.06);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --container-width: 1280px;
  --header-height: 112px;
  --radius: 8px;
  --radius-lg: 12px;
}

/* ===========================
   2. CSS Reset / Base
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  padding-top: var(--header-height);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
}

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

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

ul {
  list-style: none;
}

/* ===========================
   3. Typography
   =========================== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: 44px; }
h2 { font-size: 32px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

/* ===========================
   4. Utility Classes
   =========================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 40px;
  color: var(--color-text);
}

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

.section-title--light {
  color: var(--color-text-light);
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
  line-height: 1.4;
}

.btn--orange {
  background: var(--color-orange);
  color: #fff;
  border-color: var(--color-orange);
}

.btn--orange:hover {
  background: var(--color-orange-hover);
  border-color: var(--color-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 167, 240, 0.35);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-text);
  border-color: var(--color-white);
}

.btn--white:hover {
  background: var(--color-light-gray);
  border-color: var(--color-light-gray);
}

.btn--accent {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-color: #6366f1;
}

.btn--accent:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-color: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.btn--outline {
  border-color: var(--color-border);
  color: var(--color-text);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.btn--outline-white {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  background: transparent;
}

.btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 15px;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn i {
  font-size: 12px;
}

/* ===========================
   5. Header — Two-Row Layout
   =========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

/* Top Row */
.header-top {
  border-bottom: 1px solid var(--color-border);
}

.header-top__inner {
  display: flex;
  align-items: center;
  height: 52px;
  gap: 8px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0;
  margin-right: 24px;
  flex-shrink: 0;
}

.header__logo-badge {
  background: var(--color-dark);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.header__logo-badge svg {
  width: 20px;
  height: 14px;
  fill: var(--color-white);
}

.header__logo-badge span {
  color: var(--color-orange);
}

.header-top__city {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 20px;
  white-space: nowrap;
}

.header-top__city i {
  color: var(--color-orange);
  font-size: 14px;
}

.header-top__city .fa-chevron-down {
  font-size: 10px;
  color: var(--color-text-muted);
  margin-left: 2px;
}

.header-top__nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: auto;
}

.header-top__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.header-top__nav a:hover {
  color: var(--color-orange);
}

.header-top__nav a i {
  font-size: 14px;
}

.header-top__contact-dropdown {
  position: relative;
  margin-right: 8px;
}

.header-top__phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.header-top__phone i {
  color: var(--color-orange);
}

.header-top__phone-arrow {
  font-size: 10px;
  color: var(--color-text-muted) !important;
  margin-left: 2px;
  transition: transform 0.2s;
}

.header-top__contact-dropdown.open .header-top__phone-arrow {
  transform: rotate(180deg);
}

.header-top__phone:hover {
  color: var(--color-orange);
}

.header-top__contact-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1d2e;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  min-width: 220px;
  box-shadow: 0 12px 36px rgba(0,0,0,.4);
  z-index: 9999;
  padding: 8px;
}

.header-top__contact-dropdown.open > .header-top__contact-menu {
  display: block;
}

.header-top__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 8px;
  transition: background 0.15s;
  white-space: nowrap;
}

.header-top__contact-item:hover {
  background: rgba(255,255,255,.1);
  color: var(--color-orange) !important;
}

.header-top__contact-item i {
  width: 20px;
  text-align: center;
  color: var(--color-orange);
  font-size: 16px;
  flex-shrink: 0;
}

.header-top__socials {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.header-top__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 15px;
  color: var(--color-text);
  transition: all 0.2s;
}

.header-top__socials a:hover {
  color: var(--color-orange);
}

.header-top__socials .fa-telegram { color: #0088cc; }
.header-top__socials .fa-youtube { color: #ff0000; }
.header-top__socials .fa-vk { color: #4a76a8; }

/* Bottom Row */
.header-bottom {
  background: var(--color-white);
}

.header-bottom__inner {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 0;
}

.header-bottom__tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 20px;
}

.header-bottom__tab {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius);
  color: var(--color-text);
  transition: all 0.2s;
  white-space: nowrap;
}

.header-bottom__tab:hover {
  color: var(--color-orange);
}

.header-bottom__tab--active {
  background: var(--color-orange);
  color: #fff;
  padding: 8px 16px;
}

.header-bottom__tab--active i {
  margin-right: 6px;
  font-size: 13px;
}

.header-bottom__tab--active:hover {
  background: var(--color-orange-hover);
  color: #fff;
}

.header-bottom__nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: auto;
}

.header-bottom__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.header-bottom__nav a:hover {
  color: var(--color-orange);
}

.header-bottom__nav a.active {
  color: var(--color-orange);
}

.header-bottom__nav a i {
  font-size: 13px;
}

.header-bottom__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  font-size: 10px;
  color: var(--color-text-muted);
  transition: color 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.header-action i {
  font-size: 18px;
  color: var(--color-text);
}

.header-action:hover,
.header-action:hover i {
  color: var(--color-orange);
}

/* Burger */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header__burger--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.header__burger--active span:nth-child(2) {
  opacity: 0;
}
.header__burger--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--header-height, 60px);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  z-index: 998;
  overflow-y: auto;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu--open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-light-gray);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  color: var(--color-text);
  cursor: pointer;
  z-index: 1;
  transition: background 0.2s;
}

.mobile-menu__close:hover {
  background: var(--color-orange);
  color: #fff;
}

.mobile-menu__inner {
  padding: 60px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: color 0.2s;
}

.mobile-menu__link:first-child {
  border-top: 1px solid var(--color-border);
}

.mobile-menu__link i {
  width: 20px;
  text-align: center;
  font-size: 15px;
  color: var(--color-orange);
}

.mobile-menu__link:hover,
.mobile-menu__link.active {
  color: var(--color-orange);
}

.mobile-menu__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: var(--color-orange);
  color: #fff;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 600;
  transition: background 0.2s;
}

.mobile-menu__phone:hover {
  background: var(--color-orange-hover);
  color: #fff;
}

.mobile-menu__socials {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.mobile-menu__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-light-gray);
  color: var(--color-text);
  font-size: 18px;
  transition: background 0.2s, color 0.2s;
}

.mobile-menu__socials a:hover {
  background: var(--color-orange);
  color: #fff;
}

.mobile-menu__actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-menu__action {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--color-light-gray);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: background 0.2s, color 0.2s;
}

.mobile-menu__action:hover {
  background: var(--color-orange);
  color: #fff;
}

/* ===========================
   6. Hero
   =========================== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-dark);
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(28,28,30,0.92) 0%, rgba(28,28,30,0.5) 60%, rgba(28,28,30,0.2) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  padding: 60px 0;
}

.hero__title {
  color: var(--color-text-light);
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero__title span {
  color: var(--color-orange);
}

.hero__subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero__buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===========================
   7. Promo Banner
   =========================== */
.promo-banner {
  background: var(--color-orange);
  padding: 18px 0;
}

.promo-banner__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.promo-banner__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
}

.promo-banner__item i {
  font-size: 20px;
  opacity: 0.9;
}

/* ===========================
   8. Brands Section
   =========================== */
.brands-section {
  padding: 60px 0;
  background: var(--color-light-gray);
}

.brands-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 32px;
  justify-content: center;
}

.brands-alpha a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-text-muted);
  transition: all 0.2s;
}

.brands-alpha a:hover,
.brands-alpha--active {
  background: var(--color-orange);
  color: #fff;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.brand-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: all 0.3s;
  cursor: pointer;
}

.brand-card:hover {
  border-color: var(--color-orange);
  box-shadow: 0 4px 16px rgba(16, 167, 240, 0.12);
  transform: translateY(-2px);
}

.brand-card__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-card__name {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

/* ===========================
   9. Car Cards (Reusable)
   =========================== */
.cars-section {
  padding: 70px 0;
  overflow: hidden;
}

.cars-section--gray {
  background: var(--color-light-gray);
}

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

.cars-section__header .section-title {
  margin-bottom: 0;
}

.cars-section__nav {
  display: flex;
  gap: 8px;
}

.cars-section__nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  color: var(--color-text);
  font-size: 14px;
}

.cars-section__nav-btn:hover {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #fff;
  transform: scale(1.08);
}

.cars-grid-wrap {
  overflow: visible;
  padding: 20px 0 50px;
  user-select: none;
  cursor: grab;
}

.cars-grid-wrap:active {
  cursor: grabbing;
}

.cars-grid {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}

.cars-grid .car-card {
  min-width: 310px;
  max-width: 340px;
  flex-shrink: 0;
}

/* Focus effect: dim other cards when hovering one */
.cars-grid:has(.car-card:hover) .car-card:not(:hover) {
  filter: blur(3px) brightness(0.85);
  transform: scale(0.96);
  opacity: 0.6;
}

/* ---- Car Card (Modern) ---- */
.car-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  transition: all 0.4s cubic-bezier(.25,.46,.45,.94);
  will-change: transform, filter, opacity;
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 24px 56px rgba(16, 167, 240, 0.18), 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--color-orange);
  z-index: 10;
  position: relative;
}

.car-card__image-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-light-gray) 0%, #e8e8ea 100%);
}

.car-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.25,.46,.45,.94);
}

.car-card:hover .car-card__image {
  transform: scale(1.06);
}

.car-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.car-card__badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.car-card__badge--stock {
  background: rgba(52, 199, 89, 0.15);
  color: var(--color-green);
  border: 1px solid rgba(52, 199, 89, 0.3);
}

.car-card__badge--new {
  background: var(--color-orange);
  color: #fff;
}

.car-card__badge--order {
  background: rgba(230, 184, 0, 0.15);
  color: var(--color-yellow);
  border: 1px solid rgba(230, 184, 0, 0.3);
}

.car-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.car-card__category {
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  font-weight: 600;
}

.car-card__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
  line-height: 1.3;
}

.car-card__prices {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.car-card__price-label {
  font-size: 10px;
  color: var(--color-text-muted);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.car-card__price-value {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
}

.car-card__price-value--orange {
  color: var(--color-orange);
}

/* ---- Specs Infographic ---- */
.car-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--color-light-gray);
  border-radius: 10px;
}

.car-card__spec {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-text-secondary);
  padding: 6px 0;
}

.car-card__spec i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--color-orange);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.car-card__spec span {
  line-height: 1.3;
  font-size: 11px;
}

.car-card__spec span br + * {
  font-weight: 600;
  color: var(--color-text);
}

.car-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.car-card__action-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 14px;
  transition: all 0.25s;
  cursor: pointer;
  background: none;
}

.car-card__action-icon:hover {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #fff;
  transform: scale(1.08);
}

.car-card__details-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  padding: 10px 18px;
  background: var(--color-orange);
  border: none;
  border-radius: 10px;
  transition: all 0.25s;
  letter-spacing: 0.3px;
}

.car-card__details-btn:hover {
  background: var(--color-orange-hover);
  transform: translateX(4px);
  color: #fff;
}

.car-card__details-btn i {
  font-size: 11px;
  transition: transform 0.25s;
}

.car-card__details-btn:hover i {
  transform: translateX(3px);
}

/* ===========================
   10. Services Banner
   =========================== */
.services-banner {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  background: var(--color-dark);
}

.services-banner__bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.services-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-text-light);
}

.services-banner__content p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   11. Credit Section
   =========================== */
.credit-section {
  padding: 70px 0;
  background: var(--color-white);
}

.credit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.credit-card {
  background: var(--color-light-gray);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.credit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: var(--color-orange);
}

.credit-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  color: var(--color-orange);
}

.credit-card__title {
  font-size: 18px;
  margin-bottom: 10px;
}

.credit-card__text {
  color: var(--color-text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ===========================
   12. How We Work
   =========================== */
.how-we-work {
  padding: 70px 0;
  background: var(--color-dark);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-orange);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step__icon {
  font-size: 28px;
  color: var(--color-orange);
  margin-bottom: 12px;
}

.step__title {
  color: var(--color-text-light);
  font-size: 17px;
  margin-bottom: 8px;
}

.step__text {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  line-height: 1.5;
}

.step__connector {
  width: 50px;
  height: 2px;
  background: rgba(255,255,255,0.15);
  margin-top: 28px;
  flex-shrink: 0;
}

/* ===========================
   13. Contacts
   =========================== */
.contacts-section {
  padding: 70px 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contacts-info__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contacts-info__item i {
  font-size: 18px;
  color: var(--color-orange);
  margin-top: 3px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.contacts-info__item p {
  font-size: 15px;
  line-height: 1.5;
}

.contacts-info__item a {
  color: var(--color-orange);
}

.contacts-info__item a:hover {
  text-decoration: underline;
}

.contacts-map__placeholder {
  background: var(--color-light-gray);
  height: 360px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 15px;
  border: 1px solid var(--color-border);
}

.contacts-map__placeholder i {
  font-size: 44px;
  margin-bottom: 12px;
  opacity: 0.4;
}

/* ===========================
   14. Footer
   =========================== */
.footer {
  background: var(--color-dark);
  color: var(--color-text-light);
  padding-top: 48px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer__logo-text span {
  color: var(--color-orange);
}

.footer__about {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.6;
}

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

.footer__socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--color-text-light);
  transition: background 0.3s;
}

.footer__socials a:hover {
  background: var(--color-orange);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  transition: color 0.3s;
}

.footer__links a:hover {
  color: var(--color-orange);
}

.footer__col p {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin-bottom: 8px;
}

.footer__col p i {
  margin-right: 8px;
  color: var(--color-orange);
  width: 16px;
  text-align: center;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  text-align: center;
}

.footer__bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}

/* ===========================
   15. Responsive
   =========================== */
@media (max-width: 1199px) {
  .cars-grid .car-card {
    min-width: 280px;
    max-width: 310px;
  }
  .brands-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .hero__title {
    font-size: 38px;
  }
  .footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

@media (max-width: 991px) {
  :root {
    --header-height: 60px;
  }

  .header-top {
    display: block;
  }

  .header-top__inner {
    height: 60px;
    padding: 0 12px;
  }

  .header-top__nav,
  .header-top__socials {
    display: none;
  }

  .header__logo {
    margin-right: 8px;
  }

  .header-top__contact-dropdown {
    margin-right: auto;
  }

  .header-top__phone {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }

  .header-top__phone-arrow {
    display: none;
  }

  .header__burger {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--color-light-gray);
    margin-left: 8px;
  }

  .header__burger span {
    width: 22px;
    height: 2.5px;
  }

  .header-bottom {
    display: none;
  }

  .cars-grid .car-card {
    min-width: 260px;
    max-width: 300px;
  }

  .cars-grid-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 16px 0 40px;
  }

  .cars-grid-wrap::-webkit-scrollbar {
    display: none;
  }

  .cars-grid {
    scroll-snap-align: start;
  }

  .cars-grid .car-card {
    scroll-snap-align: start;
  }

  .credit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero {
    min-height: 420px;
  }

  .hero__title {
    font-size: 32px;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 28px;
  }

  .steps {
    flex-wrap: wrap;
    gap: 20px;
  }
  .step {
    flex: 0 0 calc(50% - 10px);
  }
  .step__connector {
    display: none;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .header-top__phone {
    font-size: 13px;
  }

  .header-top__city {
    display: none;
  }

  .hero {
    min-height: 380px;
  }

  .hero__title {
    font-size: 26px;
  }

  .hero__subtitle {
    font-size: 14px;
  }

  .hero__buttons {
    flex-direction: column;
    gap: 10px;
  }

  .promo-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cars-grid .car-card {
    min-width: 260px;
    max-width: 280px;
  }
  .cars-grid {
    gap: 14px;
    padding-right: 20px;
  }

  .cars-section {
    padding: 48px 0;
  }

  .cars-section__header {
    margin-bottom: 20px;
  }

  .car-card__image {
    height: 170px;
  }

  .car-card__specs {
    padding: 10px;
    gap: 6px;
  }

  .car-card__spec i {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .car-card__spec span {
    font-size: 10px;
  }

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

  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .cars-section,
  .credit-section,
  .services-banner,
  .how-we-work,
  .contacts-section,
  .brands-section {
    padding: 48px 0;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    flex: none;
    width: 100%;
    max-width: 300px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__title {
    font-size: 22px;
  }

  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 22px;
  }

  .cars-grid .car-card {
    min-width: 240px;
    max-width: 270px;
  }

  .cars-grid {
    gap: 12px;
  }

  .cars-section__nav {
    display: none;
  }

  .car-card {
    border-radius: 14px;
  }

  .car-card__body {
    padding: 14px;
  }

  .car-card__image {
    height: 150px;
  }

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

  .car-card__price-value {
    font-size: 15px;
  }

  .car-card__details-btn {
    padding: 8px 14px;
    font-size: 11px;
  }

  .car-card__action-icon {
    width: 34px;
    height: 34px;
  }

  .header-top__inner {
    padding: 0 8px;
  }

  .header-top__contact-dropdown {
    margin-right: auto;
  }

  .header-top__phone {
    font-size: 0;
    gap: 0;
    width: 36px;
    height: 36px;
    background: var(--color-light-gray);
    border-radius: 50%;
    justify-content: center;
    flex-shrink: 0;
  }

  .header-top__phone i.fa-phone {
    font-size: 14px;
  }

  .header__burger {
    width: 40px;
    height: 40px;
  }
}

/* ========================= FAVORITES ========================= */

/* Active state for bookmark buttons */
.car-card__action-icon.is-fav,
.car-detail__extra-btn.is-fav {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #fff;
}
.car-card__action-icon.is-fav:hover {
  background: var(--color-orange-hover);
  border-color: var(--color-orange-hover);
}

/* Header favorites counter badge */
.header-action {
  position: relative;
}
.fav-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  background: var(--color-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 4px;
}

/* Toast notification */
.fav-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}
.fav-toast--added {
  background: var(--color-orange);
}
.fav-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.fav-toast i {
  margin-right: 6px;
}
body.dark-theme .fav-toast {
  background: #3a3a3c;
}
body.dark-theme .fav-toast--added {
  background: var(--color-orange);
}

/* Favorites page */
.favorites-page {
  padding: 40px 0 60px;
}
.favorites-page__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.favorites-page__subtitle {
  color: var(--color-text-muted);
  margin-bottom: 32px;
}
.favorites-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.favorites-page__empty {
  text-align: center;
  padding: 80px 20px;
}
.favorites-page__empty i {
  font-size: 48px;
  color: var(--color-border);
  margin-bottom: 16px;
}
.favorites-page__empty p {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.favorites-page__empty a {
  color: var(--color-orange);
  font-weight: 600;
}
@media (max-width: 768px) {
  .favorites-page__grid {
    grid-template-columns: 1fr;
  }
  .favorites-page__title {
    font-size: 22px;
  }
}
