/* Оформление GazGaz в духе auto.ru: белый фон, чёрный текст, серые плашки, красный акцент — см. docs/BRAND.md. Подключается последним. */
:root {
  --bg: #fff;               /* страница белая */
  --fill: #f2f3f5;          /* серые плашки: поля, чипы, вкладки */
  --fill-2: #e8e9ec;
  --card: #fff;
  --ink: #111;
  --muted: #707378;
  --line: #e4e5e8;
  --accent: #e0262b;        /* красный акцент */
  --accent-soft: #fdecec;
  --link: #0a66c2;
  --place: #12a150;         /* зелёная «Разместить» */
  --great: #128a3e;
  --good: #2e9e57;
  --fair: #707378;
  --high: #d4481f;
  --r: 12px;
  --shadow: none;
}
body { background: var(--bg); color: var(--ink); font-family: "YS Text", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
h1, h2, h3 { letter-spacing: -.015em; }
h2 { font-size: 24px; font-weight: 700; }

/* шапка */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.logo { gap: 9px; letter-spacing: -.01em; font-size: 22px; font-weight: 800; color: var(--accent); }
.logo__img { display: block; height: 54px; width: auto; }
.logo__txt { font-weight: 900; letter-spacing: -.02em; color: var(--accent); }
.ft__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; margin-bottom: 18px; }
.ft__logo { display: block; height: 72px; width: auto; }
.ft__tag { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: #3d4045; }
.region, .region select { color: var(--ink); }
.hd__search { background: var(--fill); border-radius: 10px; }
.lang { border: 0; background: var(--fill); border-radius: 10px; padding: 9px 8px; }
.cur { background: var(--fill); }
.sections { gap: 22px; padding-bottom: 0; }
.sections a { padding: 10px 0 12px; border-radius: 0; color: var(--ink); font-weight: 500; border-bottom: 2px solid transparent; }
.sections a:hover { background: none; color: var(--accent); }
.sections a.on { background: none; color: var(--ink); font-weight: 700; box-shadow: none; border-bottom-color: var(--accent); }
.count { background: var(--accent); color: #fff; }

/* кнопки, поля */
.btn { border-radius: 10px; border-color: var(--line); font-weight: 600; }
.btn:hover { border-color: #c9cbd0; background: #fafafa; }
.btn--main, .btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--main:hover, .btn--dark:hover { background: #333; border-color: #333; }
.btn--place { background: var(--place); border-color: var(--place); color: #fff; }
.btn--place:hover { background: #0e8a44; border-color: #0e8a44; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--link); }
.btn--ghost:hover { background: transparent; border-color: transparent; color: var(--accent); }
.btn--on { background: var(--fill); border-color: var(--ink); color: var(--ink); }
.btn--big { border-radius: 12px; }
.input, select.input, textarea.input { background: var(--fill); border-color: transparent; border-radius: 10px; }
.input:hover { background: var(--fill-2); }
.input:focus { background: #fff; border-color: var(--ink); box-shadow: none; }
.fgrid .input { background: var(--fill); }
.chip { background: var(--fill); border-color: transparent; font-weight: 500; }
.chip:hover { background: var(--fill-2); }
.chip.on, .chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.check input, .calc input[type=range] { accent-color: var(--ink); }
.card, .tile, .cmp-table { box-shadow: none; border: 1px solid var(--line); }
.tabs { background: var(--fill); border-radius: 10px; }
.tabs button { border-radius: 8px; }
.tabs button.on { box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.seg { border: 0; background: var(--fill); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.active-f button { background: var(--fill); color: var(--ink); }
.notice { background: #fff8e1; border-color: #f3e2a6; }
.crumbs a:hover, .cmp-table a:hover { color: var(--accent); }

/* главная: всё по центру на белом */
.home-top { text-align: center; padding: 44px 0 12px; }
.home-top h1 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; }
.home-sub { font-size: 17px; color: var(--muted); margin: 10px auto 2px; max-width: 620px; }
.home-top .offers { margin: 4px 0 22px; }
.smart { background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: none; }
.smart .btn { border-radius: 10px; }
.understood span { background: var(--fill); color: var(--ink); }
.hint { border: 0; background: var(--fill); color: var(--ink); }
.hint:hover { background: var(--fill-2); color: var(--ink); }
.pill { background-color: var(--fill); border-radius: 10px; font-weight: 500; padding-top: 10px; padding-bottom: 10px; }
.pill:hover:not(:disabled) { background-color: var(--fill-2); }
.pill.on { background-color: var(--ink); color: #fff; }
.pills .btn--dark { border-radius: 10px; }
.service span { background: var(--fill); box-shadow: none; border-radius: 16px; }
.service:hover span { background: var(--fill-2); transform: none; }
.brands { gap: 0 24px; }
.brand { border-radius: 10px; font-weight: 500; }
.brand:hover { background: var(--fill); }
.brand__logo { background: var(--fill); color: var(--muted); border-color: transparent; }
.tip { background: var(--fill); border: 0; color: var(--ink); }
.budget { background: var(--fill); border: 0; }
.budget .input { background: #fff; }
.budget__out .price-big { color: var(--ink); }
.promo { background: var(--fill); }

/* карточки и строки выдачи */
.car { box-shadow: none; border-radius: var(--r); overflow: visible; background: none; }
.car:hover { transform: none; box-shadow: none; }
.car:hover .car__title { color: var(--accent); }
.car__img { border-radius: var(--r); overflow: hidden; }
.car__body { padding: 10px 2px 4px; }
.car__price { font-size: 20px; font-weight: 700; }
.car__title { font-weight: 500; }
.car__foot { border-top: 0; padding-top: 0; margin-top: 2px; }
.car.tip { padding: 22px; background: var(--fill); }
.deck .car { background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.deck .car__body { padding: 14px 16px 16px; }
.car__img, .row__img, .gallery__main, .watch .thumb, .tbl .thumb { background: var(--fill); }
.row { box-shadow: none; border-radius: 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
.row:hover { box-shadow: none; }
.row__img { border-radius: var(--r); }
.row__main h3 { color: var(--link); font-weight: 500; font-size: 18px; }
.row:hover .row__main h3 { color: var(--accent); }
.row__price { font-weight: 700; }
.row__tools .icon-btn { background: var(--fill); }
.icon-btn.on { color: var(--accent); }
.icon-btn.cmp.on { color: var(--link); }
.rows { gap: 0; }
.fpanel { border: 0; background: var(--fill); }
.fpanel .input { background: #fff; }
.fpanel .tabs { background: var(--fill-2); }
.badge { border-radius: 6px; }
.badge--ok { background: #e7f0fb; color: var(--link); }
.badge--great { background: var(--great); color: #fff; }
.badge--good { background: #e2f3e8; color: var(--great); }
.badge--fair { background: var(--fill); color: var(--fair); }
.badge--high { background: #fbe6de; color: var(--high); }
.verified { color: var(--great); }

/* страница машины */
.gallery__thumbs button { background: var(--fill); border-radius: 10px; }
.gallery__thumbs button.on { border-color: var(--ink); }
.specs { border: 1px solid var(--line); }
.calc__out { background: var(--fill); }
.calc__out b { color: var(--ink); }
.avatar { background: var(--fill); color: var(--ink); }
.estimate .price-big { color: var(--ink); }
.swipe__btns button { box-shadow: none; border: 1px solid var(--line); }
.modal__box { border-radius: 16px; }

/* шкала честной цены — фирменный элемент */
.meter { display: grid; gap: 4px; min-width: 150px; }
.meter__bar { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--great) 0 30%, var(--good) 30% 45%, #c9cfcf 45% 62%, var(--high) 62% 100%); }
.meter__pin { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); transform: translate(-50%, -50%); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.meter__txt { display: flex; justify-content: space-between; gap: 6px; white-space: nowrap; font-size: 12px; color: var(--muted); }
.meter__txt b { font-size: 13px; }
.meter__txt b.great, .meter__txt b.good { color: var(--great); }
.meter__txt b.fair { color: var(--fair); } .meter__txt b.high { color: var(--high); }
.meter--big .meter__bar { height: 12px; border-radius: 6px; } .meter--big .meter__pin { width: 22px; height: 22px; }

/* подвал: светлый, как у auto.ru */
.footer { margin-top: 48px; background: var(--fill); color: var(--ink); border-top: 0; }
.footer .muted { color: var(--muted); }
.ft { padding: 40px 20px 24px; display: grid; gap: 22px; }
.ft__title { font-size: 22px; }
.ft__links { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.ft__links a { color: var(--ink); font-weight: 500; }
.ft__links a:hover, .ft__cities a:hover { color: var(--accent); }
.ft__cities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.ft__cities a { color: var(--ink); display: flex; gap: 8px; align-items: baseline; }
.ft__cities span { font-size: 12px; color: var(--muted); }
.ft__about { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; color: var(--muted); font-size: 14px; }
.ft__about p { margin: 0; max-width: 480px; }
.ft__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.ft__bottom a { color: var(--muted); text-decoration: underline; }
.info p { font-size: 17px; max-width: 720px; }

/* админка в тех же цветах */

/* ---------- рекламный баннер салона ---------- */
.ad { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 10px; border-radius: 16px; overflow: hidden; color: var(--ink); min-height: 280px; background: var(--fill); }
.ad__body { padding: clamp(20px, 3vw, 36px); display: grid; gap: 10px; justify-items: start; }
.ad__label { font-size: 13px; color: var(--muted); }
.ad__label span { background: var(--fill-2); color: var(--muted); padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.ad__title { font-size: clamp(22px, 2.6vw, 32px); }
.ad__text { margin: 0; color: var(--muted); max-width: 460px; }
.ad__price { font-size: 26px; font-weight: 800; }
.ad__cta { background: var(--ink); border-color: var(--ink); color: #fff; }
.ad__cta:hover { background: #333; border-color: #333; }
.ad__3d { height: 100%; min-height: 260px; display: grid; place-items: center; }
.ad__3d > svg { width: 88%; }
.ad__3d canvas { width: 100% !important; height: 100% !important; }
.ad-slot { grid-column: 1 / -1; }

@media (max-width: 760px) {
  .ad { grid-template-columns: 1fr; } .ad__3d { min-height: 160px; order: -1; }
  .ft__cities { grid-template-columns: 1fr 1fr; }
  .ft__about { grid-template-columns: 1fr; }
  .sections { gap: 18px; }
  .lang { max-width: 64px; }
  .hd__right { gap: 6px; margin-left: auto; }
  .logo { font-size: 19px; }
  .row { padding: 14px 0; }
  .home-top { padding-top: 26px; }
}
.ft__contacts { margin-top: 14px; font-size: 14px; color: var(--muted); }
.ft__contacts a { color: var(--ink); }
.ft__contacts a:hover { color: var(--accent); }
/* телефон: логотип компактнее, выбор региона прячем из шапки (город есть в фильтрах каталога) */
@media (max-width: 600px) {
  .hd .region { display: none; }
  .logo__img { height: 42px; }
}
@media (max-width: 360px) {
  .logo__img { height: 36px; }
}

/* языки: кнопки UZ | RU | EN в шапке, KZ / KG — в списке; ссылки на все языки в подвале */
.langs { display: flex; align-items: center; background: var(--fill); border-radius: 10px; padding: 3px; }
.langs a { padding: 5px 9px; border-radius: 8px; font-weight: 700; font-size: 14px; color: var(--muted); line-height: 1.2; }
.langs a:hover { color: var(--ink); }
.langs a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.lang-more { border: 0; background: transparent; font-weight: 700; font-size: 14px; color: var(--muted); padding: 5px 2px 5px 6px; width: 40px; cursor: pointer; border-radius: 8px; }
.lang-more.on { background: #fff; color: var(--ink); width: 56px; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.ft__langs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 18px; font-size: 14px; }
.ft__langs a { color: var(--muted); }
.ft__langs a:hover { color: var(--accent); }
.ft__langs a.on { color: var(--ink); font-weight: 600; }
@media (max-width: 600px) {
  .langs a { padding: 5px 6px; font-size: 13px; }
  .lang-more { width: 30px; font-size: 13px; }
  .lang-more.on { width: 46px; }
}
/* узкие телефоны: всё в шапке на одной строке — логотип, UZ | RU | EN, валюта, «＋» */
@media (max-width: 420px) {
  .hd { padding-left: 12px; padding-right: 12px; gap: 6px; }
  .hd__right { gap: 4px; }
  .logo__img { height: 34px; }
  .langs { padding: 2px; }
  .langs a { padding: 5px 5px; }
  .lang-more { width: 26px; padding-left: 4px; }
  .lang-more.on { width: 42px; }
  .cur button { padding: 5px 6px; }
}
/* каталог на телефоне: шкала честной цены — на всю ширину карточки, не вылезает за экран */
@media (max-width: 760px) {
  .row__side > * { min-width: 0; }
  .row__side .meter { grid-column: 1 / -1; min-width: 0; width: 100%; }
}

/* ---------- по образцу avtoelon.uz: горячие предложения, пакеты, позиция, аренда с выкупом ---------- */
.hot { margin: 24px 0 8px; }
.hot__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.hot__head h2 { margin: 0; font-size: 22px; }
.hot__head a { color: var(--link); font-size: 14px; }
.hot__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.hot__item { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--fill); }
.hot__item svg { width: 100%; height: 100%; display: block; }
.hot__price { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 12px; font-weight: 600; }
.hot__item:hover { outline: 2px solid var(--link); }
.badge--pkg { font-weight: 700; }
.badge--hot { background: #fff1e6; color: #c2410c; }
.badge--vip { background: #1d1d1f; color: #ffd75e; }
.badge--urgent { background: #e11d48; color: #fff; }
.car--vip, .row--vip { box-shadow: 0 0 0 2px #ffd75e inset; background: #fffcf0; }
.car__pos { font-weight: 400; color: var(--muted); }
.car__rent { font-size: 13px; color: #08844a; font-weight: 600; }
.rent-box { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #e9f7ef; color: #08844a; font-weight: 600; }
.rent-box .muted { font-weight: 400; font-size: 13px; }
.info__list { list-style: none; padding: 0; display: grid; gap: 10px; }

/* ---------- по образцу auto.ru (второй проход): владение, опции, поделиться, жалоба, готовые запросы ---------- */
.car-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.car-head__acts { display: flex; gap: 6px; flex-shrink: 0; padding-top: 6px; }
.car-meta { font-size: 13px; margin: -6px 0 14px; }
.optg { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.optg > div { background: var(--fill); border-radius: 10px; padding: 10px 12px; }
.opt-all summary { cursor: pointer; color: var(--link); }
.opt-list { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px; }
.sell__group { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; }
.sell__group legend { padding: 0 6px; font-weight: 600; }
.sell__opts summary { cursor: pointer; font-weight: 600; }
.sell__opts .flabel { margin-top: 8px; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.cm { display: grid; gap: 8px; }
.quick { display: grid; gap: 6px; background: linear-gradient(135deg, #f3f7ff, #fff); }
.quick .chips { margin-top: 4px; }
.rows > .quick, .grid > .quick { grid-column: 1 / -1; }

/* ---------- поиск в списках марок и моделей (src/shared/combo.js) ---------- */
.combo { position: relative; min-width: 0; }
.combo__native { display: none !important; }
.combo__input { width: 100%; cursor: text; }
.combo__input:disabled { cursor: not-allowed; opacity: .6; }
.combo__list { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px); min-width: 200px; max-height: 300px; overflow-y: auto;
  margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.combo__list li { padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 15px; }
.combo__list li.hi { background: var(--fill); }
.combo__list li.cur { font-weight: 600; }
.combo__list li.any { color: var(--muted); }
.combo__list li.none { color: var(--muted); cursor: default; }
