/* ===== bixcar — base ===== */
:root {
  --orange: #FF6A00;
  --orange-dark: #e35c00;
  --orange-light: #fff1e6;
  --ink: #1a2129;
  --gray-900: #232b33;
  --gray-700: #4b555f;
  --gray-500: #7a8590;
  --gray-300: #d7dce1;
  --gray-200: #e7eaee;
  --gray-100: #f2f4f6;
  --bg: #f5f6f8;
  --white: #ffffff;
  --green: #1f9d55;
  --blue: #2d6cdf;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(20, 24, 28, 0.08), 0 1px 2px rgba(20, 24, 28, 0.06);
  --shadow-md: 0 6px 20px rgba(20, 24, 28, 0.10);
  --container: 1240px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--orange);
  color: #fff;
}
.btn--primary:hover { background: var(--orange-dark); }
.btn--outline {
  background: transparent;
  border-color: var(--gray-300);
  color: var(--gray-900);
}
.btn--outline:hover { border-color: var(--orange); color: var(--orange); }
.btn--light {
  background: #fff;
  color: var(--orange-dark);
}
.btn--light:hover { background: var(--orange-light); }

/* ===== Topbar ===== */
.topbar {
  background: var(--gray-900);
  color: #cfd6dc;
  font-size: 0.82rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
}
.topbar__left, .topbar__right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #cfd6dc;
}
.topbar__item:hover { color: #fff; }
.topbar__item--strong { color: var(--orange); font-weight: 600; }
.topbar__location svg { flex-shrink: 0; }

.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-switch__btn {
  background: none;
  border: none;
  color: #9aa4ad;
  padding: 2px 2px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.lang-switch__btn.is-active { color: #fff; }
.lang-switch__sep { color: #4b555f; }
.lang-switch--footer .lang-switch__btn { color: #9aa4ad; }
.lang-switch--footer .lang-switch__btn.is-active { color: var(--orange); }

/* ===== Header ===== */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 1px 0 rgba(20,24,28,0.06);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__text { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.logo__text--light { color: #fff; }

.search-bar {
  flex: 1;
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  overflow: hidden;
  height: 48px;
  max-width: 640px;
}
.search-bar__select {
  border: none;
  border-right: 1px solid var(--gray-300);
  background: var(--gray-100);
  padding: 0 12px;
  color: var(--gray-700);
  font-size: 0.86rem;
  max-width: 160px;
}
.search-bar__input {
  flex: 1;
  border: none;
  padding: 0 14px;
  font-size: 0.92rem;
  outline: none;
  min-width: 0;
}
.search-bar__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 0 20px;
  font-weight: 600;
  font-size: 0.9rem;
}
.search-bar__btn:hover { background: var(--orange-dark); }

.header-cta { flex-shrink: 0; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.cat-nav {
  border-top: 1px solid var(--gray-200);
  background: #fff;
}
.cat-nav__inner {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  height: 46px;
  align-items: center;
  scrollbar-width: none;
}
.cat-nav__inner::-webkit-scrollbar { display: none; }
.cat-nav__link {
  font-size: 0.86rem;
  color: var(--gray-700);
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.cat-nav__link:hover, .cat-nav__link.is-active { color: var(--orange); border-color: var(--orange); }
.cat-nav__link--accent { color: var(--green); font-weight: 600; }
.cat-nav__link--accent:hover { color: var(--green); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--gray-200);
  position: sticky;
  top: 76px;
  z-index: 39;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
  font-weight: 600;
  color: var(--gray-900);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--gray-200);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero__text h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.hero__text > p {
  color: var(--gray-700);
  font-size: 1.05rem;
  margin: 0 0 28px;
  max-width: 520px;
}

.hero__filters {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.hero__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hero__field label { font-size: 0.78rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.03em; }
.hero__field select {
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  padding: 10px 10px;
  background: #fff;
  font-size: 0.9rem;
  color: var(--ink);
}
.hero__submit { height: 44px; }

.hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 26px;
}
.hero__stat { display: flex; flex-direction: column; }
.hero__stat strong { font-size: 1.4rem; color: var(--orange); letter-spacing: -0.01em; }
.hero__stat span { font-size: 0.82rem; color: var(--gray-500); }

.hero__media { display: flex; justify-content: center; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ===== Sections ===== */
.section { padding: 56px 0; }
.section--muted { background: #fff; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }
.section__title {
  font-size: 1.6rem;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.section__subtitle { color: var(--gray-500); margin: 0; font-size: 0.95rem; }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 20px;
  flex-wrap: wrap;
}
.section__footer { display: flex; justify-content: center; margin-top: 34px; }

.sort-select {
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  padding: 9px 12px;
  background: #fff;
  font-size: 0.86rem;
  color: var(--gray-700);
}

/* ===== Category tiles ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cat-tile {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.cat-tile:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-tile img { width: 44px; height: 44px; }
.cat-tile__name { font-weight: 700; font-size: 0.95rem; }
.cat-tile__count { font-size: 0.78rem; color: var(--gray-500); }

/* ===== Listings grid ===== */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.car-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.car-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.car-card__media { position: relative; aspect-ratio: 4 / 2.6; background: var(--gray-100); overflow: hidden; }
.car-card__media img { width: 100%; height: 100%; object-fit: cover; }

.car-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 999px;
}
.car-card__badge--new { background: var(--green); }
.car-card__badge--reduced { background: var(--blue); }

.car-card__fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.car-card__fav:hover { color: var(--orange); }
.car-card__fav.is-active { color: var(--orange); }
.car-card__fav.is-active svg { fill: var(--orange); }

.car-card__body { padding: 14px 16px 16px; }
.car-card__price { font-size: 1.2rem; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.car-card__title { font-size: 0.98rem; font-weight: 600; margin: 0 0 8px; color: var(--gray-900); }
.car-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.car-card__specs .dot { color: var(--gray-300); }

.car-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--gray-500);
  border-top: 1px solid var(--gray-100);
  padding-top: 10px;
}

/* ===== Trust ===== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
}
.trust-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.trust-card h3 { font-size: 1.02rem; margin: 0 0 6px; }
.trust-card p { font-size: 0.86rem; color: var(--gray-500); margin: 0; }

/* ===== CTA ===== */
.cta {
  background: linear-gradient(120deg, var(--orange) 0%, #ff8a3d 100%);
  color: #fff;
  padding: 46px 0;
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta h2 { font-size: 1.6rem; margin: 0 0 6px; }
.cta p { margin: 0; opacity: 0.92; max-width: 520px; }

/* ===== Footer ===== */
.site-footer { background: var(--gray-900); color: #b7c0c8; padding-top: 46px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 36px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; font-size: 0.92rem; margin: 0 0 4px; }
.footer-col a { color: #b7c0c8; font-size: 0.88rem; }
.footer-col a:hover { color: var(--orange); }
.footer-col--brand p { font-size: 0.86rem; margin: 4px 0 6px; max-width: 260px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #333d46;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700;
  color: #fff;
}
.footer-social a:hover { background: var(--orange); color: #fff; }

.footer-bottom { border-top: 1px solid #333d46; padding: 16px 0; }
.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .listing-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:nth-child(4) { grid-column: 2; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { max-width: 480px; aspect-ratio: 16 / 9; }
  .hero__filters { grid-template-columns: 1fr 1fr; }
  .hero__submit { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .topbar__left { display: none; }
  .search-bar { display: none; }
  .header-cta { display: none; }
  .burger { display: flex; }
  .cat-nav { display: none; }
  .site-header__inner { height: 64px; }

  .hero { padding: 32px 0 40px; }
  .hero__text h1 { font-size: 1.8rem; }
  .hero__stats { gap: 22px; flex-wrap: wrap; }

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

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:nth-child(4) { grid-column: auto; }
  .footer-col--brand { grid-column: 1 / -1; }

  .cta__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
