/* Dream Drive — mijozlar sayti. Ranglar logotip kelgach --accent va --signal orqali almashtiriladi. */
:root {
  --paper: #f3f4f6;
  --card: #ffffff;
  --ink: #16181d;
  --steel: #5e6571;
  --line: #dcdfe4;
  --accent: #2348c9;
  --signal: #d42a31;
  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 6px;
  --r-lg: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--text); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* Shapka */
.top { position: sticky; top: 0; z-index: 20; background: rgba(243, 244, 246, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { color: var(--ink); display: flex; }
.logo img { height: 30px; width: auto; }
.top__nav { display: flex; align-items: center; gap: 22px; font-weight: 500; }
.top__nav a { text-decoration: none; }
.top__nav a:hover { color: var(--accent); }
.lang { border: 1px solid var(--ink); border-radius: var(--r-sm); padding: 3px 9px; font-size: 14px; font-weight: 700; }
@media (max-width: 640px) { .top__cars { display: none; } .top__nav { gap: 12px; font-size: 15px; } .logo img { height: 24px; } }

/* Bosh qism */
.hero { padding: 56px 0 28px; }
.hero__title { font: 800 clamp(34px, 7vw, 84px)/1.02 var(--display); letter-spacing: -.02em; margin: 0 0 14px; max-width: 14ch; }
.hero__sub { font-size: clamp(17px, 2.2vw, 20px); color: var(--steel); margin: 0 0 32px; max-width: 52ch; }
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { text-decoration: none; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-weight: 700; font-size: 15px; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.sort { display: flex; align-items: center; gap: 10px; color: var(--steel); font-size: 15px; }
select, input, textarea { font: inherit; color: inherit; }
.sort select { border: 1px solid var(--line); background: var(--card); border-radius: var(--r-sm); padding: 8px 10px; }

/* Katalog */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding: 12px 0 72px; }
.card { background: var(--card); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; display: flex;
  flex-direction: column; border: 1px solid var(--line); }
.card:hover .card__photo img { transform: scale(1.03); }
.card__photo { position: relative; aspect-ratio: 4 / 3; background: #e6e8ec; overflow: hidden; }
.card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card__nophoto { width: 100%; height: 100%; background: linear-gradient(160deg, #e9ebef, #d7dae0); }
.card__plate { position: absolute; left: -.04em; bottom: -.18em; font: 800 clamp(64px, 9vw, 104px)/1 var(--display);
  color: #fff; opacity: .9; letter-spacing: -.03em; white-space: nowrap; pointer-events: none;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25); mix-blend-mode: normal; }
.badge { position: absolute; top: 14px; left: 14px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge--road { background: var(--signal); color: #fff; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__brand { margin: 0; color: var(--steel); font-weight: 700; font-size: 14px; }
.card__brand span { font-weight: 500; margin-left: 6px; }
.card__model { margin: 0; font: 700 26px/1.15 var(--display); letter-spacing: -.01em; }
.card__price { margin: 6px 0 0; font-weight: 700; font-size: 18px; }
.card__foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  color: var(--steel); font-size: 14px; }
.swatches { display: flex; }
.swatches i, .colors i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); border: 2px solid var(--card);
  box-shadow: 0 0 0 1px var(--line); display: inline-block; }
.swatches i + i { margin-left: -5px; }
.empty { grid-column: 1 / -1; color: var(--steel); font-size: 18px; }

/* Model sahifasi */
.crumbs { padding: 22px 0 6px; }
.crumbs a { color: var(--steel); text-decoration: none; font-weight: 500; }
.crumbs a:hover { color: var(--ink); }
.mhead { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; align-items: start; padding-bottom: 40px; }
@media (max-width: 900px) { .mhead { grid-template-columns: 1fr; gap: 22px; } }
.gallery__main { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10; background: #e6e8ec; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__plate { position: absolute; right: 18px; bottom: -.16em; font: 800 clamp(56px, 10vw, 140px)/1 var(--display);
  color: #fff; opacity: .85; letter-spacing: -.03em; pointer-events: none; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; cursor: pointer; background: none;
  aspect-ratio: 4 / 3; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-on { border-color: var(--accent); }
.minfo__brand { margin: 0; font-weight: 700; color: var(--steel); }
.minfo__model { margin: 2px 0 10px; font: 800 clamp(40px, 6vw, 72px)/1 var(--display); letter-spacing: -.02em; }
.minfo__price { margin: 0; font-size: 26px; font-weight: 700; }
.minfo__avail { margin: 4px 0 26px; color: var(--steel); }
.h3 { font-size: 15px; margin: 0 0 10px; color: var(--steel); font-weight: 700; }
.colors { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 8px; }
.colors li { display: flex; align-items: center; gap: 10px; }
.colors b { margin-left: auto; font-weight: 700; }
.minfo__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: var(--r-sm);
  font-weight: 700; text-decoration: none; border: 2px solid var(--ink); cursor: pointer; font-size: 16px; }
.btn--main { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--main:hover { filter: brightness(1.08); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.block { padding: 36px 0; border-top: 1px solid var(--line); }
.h2 { font: 700 26px/1.2 var(--display); margin: 0 0 20px; letter-spacing: -.01em; }
.specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.specs div { padding: 16px 18px; box-shadow: inset -1px -1px 0 var(--line); }
.specs dt { color: var(--steel); font-size: 14px; }
.specs dd { margin: 2px 0 0; font-weight: 700; font-size: 19px; }
.video { width: 100%; max-height: 80vh; border-radius: var(--r-lg); background: #000; }
.prose p { max-width: 70ch; margin: 0 0 12px; font-size: 17px; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .twocol { grid-template-columns: 1fr; } }
.calc, .lead { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 14px; align-content: start; }
.calc label, .lead label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.calc input[type=text], .calc select, .lead input, .lead textarea { border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px; background: #fff; width: 100%; }
.calc input[type=range] { width: 100%; accent-color: var(--accent); }
.out { font-weight: 700; }
.calc__res { margin: 6px 0 0; font-size: 18px; }
.calc__res b { font: 700 26px var(--display); display: block; }
.note { margin: 0; color: var(--steel); font-size: 14px; }
.lead p { margin: 0; color: var(--steel); }
.msg { padding: 12px 14px; border-radius: var(--r-sm); font-weight: 700; }
.msg--ok { background: #e3f4e8; color: #17603a; }
.msg--err { background: #fbe4e4; color: #9c1c22; }
.hp { position: absolute; left: -9999px; }
.stickybar { display: none; }
@media (max-width: 640px) {
  .stickybar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: sticky; bottom: 0; padding: 10px 16px;
    background: rgba(243, 244, 246, .96); border-top: 1px solid var(--line); z-index: 15; }
  .stickybar .btn { padding: 12px; }
  .grid { grid-template-columns: 1fr; }
}

/* Pastki qism */
.foot { background: var(--ink); color: #c9ccd2; padding: 40px 0; margin-top: 20px; }
.foot__in { display: grid; gap: 14px; }
.foot img { width: 150px; }
.foot__info { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__info a { color: #fff; text-decoration: none; font-weight: 700; }
.foot__note { margin: 0; font-size: 14px; color: #8c919a; }

.minfo__msg { display: flex; gap: 18px; margin: 14px 0 0; font-weight: 700; }
.minfo__msg a { color: var(--accent); text-decoration: none; }
.minfo__msg a:hover { text-decoration: underline; }
.visit__sub { margin: -8px 0 20px; color: var(--steel); max-width: 60ch; }
.visit__info { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.visit__info dt { color: var(--steel); font-size: 14px; }
.visit__info dd { margin: 2px 0 0; font-weight: 700; font-size: 18px; }
.visit__info a { text-decoration: none; }
