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

:root {
  --white: #ffffff;
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #64748b;
  --black: #0a0a0a;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #dbeafe;
  --blue-glow: rgba(37, 99, 235, 0.15);
  --gm: #c8102e;
  --gm-light: #fde8ec;
  --inomarka: #0f172a;
  --inomarka-light: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.14);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}

main, .footer {
  position: relative;
  z-index: 1;
}

/* Aylanuvchi fon — video + inomarka rasmlar */
.site-bg-carousel {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.8s ease, visibility 1.8s ease;
}

.bg-slide.active {
  opacity: 1;
  visibility: visible;
}

.bg-slide video,
.bg-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-slide video {
  opacity: 1;
  filter: none;
}

.bg-slide-img {
  background-size: cover;
  background-position: center;
  opacity: 1;
}

.bg-carousel-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.62) 0%,
    rgba(255, 255, 255, 0.48) 50%,
    rgba(248, 250, 252, 0.55) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .bg-slide { transition: none; }
  .bg-slide[data-type="video"] { display: none; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.hidden {
  display: none !important;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
  position: relative;
}

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

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.logo-box {
  width: 46px;
  height: 46px;
  border: 2px solid #1a2d4d;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
  box-shadow: 0 2px 10px rgba(26, 45, 77, 0.12);
  flex-shrink: 0;
}

.logo-box-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.logo-text {
  font-family: 'Marck Script', 'Brush Script MT', cursive;
  font-size: 2rem;
  font-weight: 400;
  color: #1a2d4d;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  transition: color var(--transition);
  position: relative;
  letter-spacing: -0.01em;
  padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.nav-cta {
  background: var(--blue);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  padding: 120px 0 60px;
  overflow: hidden;
  background: transparent;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-brands {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.brand-pill {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-pill.gm {
  background: var(--gm-light);
  color: var(--gm);
  border: 1px solid rgba(200, 16, 46, 0.2);
}

.brand-pill.inomarka {
  background: var(--inomarka-light);
  color: var(--inomarka);
  border: 1px solid var(--border-strong);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

.hero-content {
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--blue-light);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  color: var(--black);
  text-wrap: balance;
}

.hero h1 span {
  color: var(--blue);
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.08rem;
  color: #475569;
  margin-bottom: 28px;
  max-width: 520px;
  line-height: 1.7;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-search-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.hero-search-card h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
  color: var(--black);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-search-card h3::after {
  content: 'Katalogdan tez toping';
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0;
}

.hero-search-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-search-form input {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.hero-search-form input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.hero-quick-tags {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.quick-tag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}

.quick-tag:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.stat-card strong {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stat-card span {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
  font-weight: 500;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gm));
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 8px 24px var(--blue-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

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

.btn-block {
  width: 100%;
}

/* Sections */
.section {
  padding: 88px 0;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(8px);
}

.section-alt {
  background: rgba(241, 245, 249, 0.62);
  backdrop-filter: blur(8px);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-tag {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--black);
  text-wrap: balance;
  line-height: 1.2;
}

.section-desc {
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.7;
  font-weight: 500;
}

.brand-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.brand-showcase-card {
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.brand-showcase-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.brand-showcase-card strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--black);
}

.brand-showcase-card span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.brand-showcase-card.gm {
  background: linear-gradient(135deg, var(--gm-light), var(--white));
  border-color: rgba(200, 16, 46, 0.15);
}

.brand-showcase-card.gm strong {
  color: var(--gm);
}

.brand-showcase-card.inomarka {
  background: linear-gradient(135deg, var(--inomarka-light), var(--white));
}

.brand-showcase-card.inomarka strong {
  color: var(--inomarka);
}

.brand-count {
  display: inline-block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--blue);
  border: 1px solid var(--blue-light);
}

.catalog-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

/* Catalog toolbar */
.catalog-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin-bottom: 24px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.search-box svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  border: none;
  background: none;
  padding: 14px 0;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.select-input {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  min-width: 200px;
}

.select-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-btn {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.price-filter {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.price-filter label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.price-filter label span {
  color: var(--blue);
  font-weight: 700;
}

.price-filter input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
}

/* Cars Grid */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.car-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  animation: fadeUp 0.4s ease backwards;
  cursor: pointer;
  position: relative;
}

.car-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  box-shadow: inset 0 0 0 0 var(--blue);
  transition: box-shadow var(--transition);
}

.car-card:hover::after {
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-light);
}

.car-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-alt);
}

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

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

.car-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--blue);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.car-badge.ideal { background: var(--green); }
.car-badge.yaxshi { background: var(--blue); }
.car-badge.ortacha {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
}

.brand-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
}

.brand-tag.gm {
  background: var(--gm);
  color: var(--white);
}

.brand-tag.inomarka {
  background: var(--inomarka);
  color: var(--white);
}

.photo-count {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,0.95);
  color: var(--blue);
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.car-body {
  padding: 20px;
}

.car-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--black);
  letter-spacing: -0.02em;
}

.car-year {
  color: #64748b;
  font-size: 0.86rem;
  margin-bottom: 14px;
  font-weight: 500;
}

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

.car-spec {
  background: var(--bg);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.car-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.car-price {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.car-actions {
  display: flex;
  gap: 8px;
}

.car-btn {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.car-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.car-btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.car-btn.primary:hover {
  background: var(--blue-dark);
}

.empty-state {
  text-align: center;
  padding: 56px 32px;
  background: rgba(255, 255, 255, 0.96);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.empty-icon svg {
  width: 32px;
  height: 32px;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.empty-state p {
  color: #64748b;
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.empty-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.results-count {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.results-count strong {
  color: var(--blue);
  font-weight: 800;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--black);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--black);
}

.about-text > p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1.02rem;
}

.about-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-icon {
  width: 36px;
  height: 36px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.about-features strong {
  display: block;
  margin-bottom: 2px;
  color: var(--black);
}

.about-features p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

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

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.contact-card:not(.static):hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

button.contact-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-icon.phone {
  background: var(--blue-light);
  color: var(--blue);
}

.contact-icon.telegram {
  background: #eff6ff;
  color: var(--blue);
}

.contact-icon.instagram {
  background: #fdf2f8;
  color: #db2777;
}

.contact-icon.location {
  background: var(--bg);
  color: var(--black);
}

.contact-card h3 {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-card p {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--black);
}

.contact-card small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.copy-btn {
  margin-left: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}

.copy-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--black);
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.form-note {
  font-size: 0.85rem;
  min-height: 20px;
}

.form-note.success {
  color: #16a34a;
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 520px;
  box-shadow: var(--shadow);
}

/* Footer */
.footer {
  background: var(--black);
  color: var(--white);
  padding-top: 56px;
}

.footer .logo-sub {
  color: #94a3b8;
}

.footer .logo-box {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.footer .logo-box-icon {
  filter: brightness(0) invert(1);
}

.footer .logo-text {
  color: var(--white);
}

.footer-brand p {
  color: #94a3b8;
  margin-top: 14px;
  font-size: 0.92rem;
  max-width: 280px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-links h4,
.footer-social h4 {
  font-size: 0.88rem;
  margin-bottom: 16px;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #e2e8f0;
  font-size: 0.92rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a,
.social-icons button {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--white);
  cursor: pointer;
  padding: 0;
}

.social-icons a:hover,
.social-icons button:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.social-icons svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  color: #64748b;
  font-size: 0.85rem;
}

.admin-link {
  color: #64748b;
  text-decoration: none;
  font-size: 0.82rem;
  opacity: 0.6;
}

.admin-link:hover {
  opacity: 1;
  color: var(--blue);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.3s ease;
}

.modal-lg {
  max-width: 860px;
}

.modal-gallery {
  background: var(--bg-alt);
}

.gallery-main {
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 88px;
  height: 60px;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color var(--transition);
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--blue);
}

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

.modal-desc {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  z-index: 1;
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--blue-light);
  color: var(--blue);
}

.modal-body {
  padding: 0;
}

.modal-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-alt);
}

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

.modal-info {
  padding: 28px;
}

.modal-info h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--black);
}

.modal-brand {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.modal-brand.gm {
  background: var(--gm-light);
  color: var(--gm);
}

.modal-brand.inomarka {
  background: var(--inomarka-light);
  color: var(--inomarka);
}

.modal-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 16px;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.modal-spec {
  background: var(--bg);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.modal-spec span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.modal-spec strong {
  font-size: 0.92rem;
  color: var(--black);
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 300;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.3s ease;
}

/* FAB & Back to top */
.fab-contact {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  border: none;
  cursor: pointer;
  z-index: 90;
}

.fab-contact:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.45);
}

.fab-contact svg {
  width: 26px;
  height: 26px;
}

/* Contact sheet */
.contact-sheet {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.contact-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.contact-sheet-panel {
  position: relative;
  background: var(--white);
  width: 100%;
  max-width: 420px;
  border-radius: 24px 24px 0 0;
  padding: 28px 24px 32px;
  animation: slideUp 0.35s ease;
  box-shadow: var(--shadow-lg);
}

.contact-sheet-panel h3 {
  font-size: 1.2rem;
  color: var(--black);
  margin-bottom: 6px;
}

.contact-sheet-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: all var(--transition);
}

.contact-option:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  transform: translateX(4px);
}

.contact-option-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-option-icon svg {
  width: 22px;
  height: 22px;
}

.contact-option-icon.phone {
  background: var(--blue-light);
  color: var(--blue);
}

.contact-option-icon.telegram {
  background: #eff6ff;
  color: var(--blue);
}

.contact-option-icon.instagram {
  background: #fdf2f8;
  color: #db2777;
}

.contact-option-text strong {
  display: block;
  color: var(--black);
  font-size: 0.95rem;
}

.contact-option-text small {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.contact-sheet .btn {
  margin-top: 8px;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 769px) {
  .contact-sheet {
    align-items: center;
  }

  .contact-sheet-panel {
    border-radius: var(--radius);
    margin-bottom: 0;
  }
}

.back-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 90;
  transition: all var(--transition);
  color: var(--blue);
}

.back-top:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Forms & Wizard */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  cursor: pointer;
}

.radio-label input {
  accent-color: var(--blue);
}

.wizard-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--blue);
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.wizard-step span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.wizard-step.active {
  background: var(--blue-light);
  color: var(--blue);
}

.wizard-step.active span,
.wizard-step.done span {
  background: var(--blue);
  color: var(--white);
}

.wizard-step.done {
  color: var(--text);
}

.wizard-panel {
  display: none;
}

.wizard-panel.active {
  display: block;
  animation: fadeUp 0.3s ease;
}

.wizard-nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.panel-desc {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.barter-car-select {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.barter-select-card {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}

.barter-select-card input {
  display: none;
}

.barter-select-card img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

.barter-select-card div {
  padding: 12px;
}

.barter-select-card strong {
  display: block;
  font-size: 0.9rem;
  color: var(--black);
}

.barter-select-card span {
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 700;
}

.barter-select-card.selected,
.barter-select-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
}

.lead-success-box {
  text-align: center;
  padding: 8px 0;
}

.lead-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green-light, #dcfce7);
  color: #16a34a;
  font-size: 2rem;
  font-weight: 800;
  line-height: 64px;
}

.lead-success-box h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--black);
}

.lead-success-main {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 20px;
}

.lead-success-box .result-details {
  text-align: left;
  max-width: 420px;
  margin: 0 auto 16px;
}

.lead-success-phone {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.lead-success-phone strong {
  color: var(--black);
}

.barter-result .lead-success-box,
.sell-result-card .lead-success-box {
  padding: 12px 0 0;
}

.result-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.95rem;
}

.result-row span {
  color: var(--text-muted);
}

.result-row strong {
  color: var(--black);
  font-size: 1.05rem;
}

.result-row.highlight strong {
  color: var(--blue);
  font-size: 1.4rem;
}

.result-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.result-summary {
  margin-top: 16px;
  padding: 14px;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  color: var(--blue-dark);
  font-weight: 600;
}

.result-summary strong {
  color: var(--blue-dark);
}

.disclaimer {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Sell section */
.sell-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.sell-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
}

.photo-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.photo-preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border);
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-item span {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--blue);
  color: var(--white);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-count-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.photo-count-label.warning {
  color: #d97706;
}

.photo-count-label.success {
  color: #16a34a;
  font-weight: 600;
}

.file-upload input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
}

.file-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sell-result-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sell-result-card {
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.result-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.result-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 8px;
}

.result-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.result-details {
  list-style: none;
  margin-bottom: 20px;
}

.result-details li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
}

.sell-info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.sell-info-card h3 {
  margin-bottom: 12px;
  color: var(--black);
}

.sell-info-card ol {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.sell-info-card li {
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 968px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .sell-grid {
    grid-template-columns: 1fr;
  }

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

  .brand-showcase {
    grid-template-columns: 1fr;
  }

  .logo-sub {
    display: none;
  }

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

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .map-wrapper {
    min-height: 320px;
  }
}

@media (max-width: 768px) {
  .logo-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .logo-box-icon {
    width: 22px;
    height: 22px;
  }

  .logo-text {
    font-size: 1.55rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    box-shadow: var(--shadow);
  }

  .nav.open .nav-cta {
    display: inline-flex;
    margin-left: auto;
  }

  .nav.open {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0 20px;
  }

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

  .section {
    padding: 64px 0;
  }

  .catalog-panel {
    padding: 20px 16px;
  }

  .modal-specs {
    grid-template-columns: 1fr;
  }

  .fab-contact {
    bottom: 16px;
    right: 16px;
  }

  .back-top {
    bottom: 16px;
    left: 16px;
  }

  .wizard-steps {
    grid-template-columns: 1fr;
  }

  .wizard-step {
    font-size: 0.78rem;
  }
}
