

/* Start:/local/templates/main_2023/assets/autopark-v2/autopark.css?179378558119303*/
/* АВЕНЮ — автопарк (/autopark/), 2026-10. Стандарт: projects/avenuerent/Принципы_дизайна.
   Всё внутри .apv / .apv-top / .apv-sticky — шаблон сайта не задеваем. */

.apv, .apv-top, .apv-sticky {
  --g: #2B2A29;
  --g60: rgba(43, 42, 41, .6);
  --g20: rgba(43, 42, 41, .2);
  --or: #FF9A00;
  --or-h: #F08700;
  --or-p: #E07B00;
  --tint: #F6F4F1;
  --green: #2E7D32;
  --s: 14px;
  --m: 16px;
  --l: 24px;
  --gap: 48px;
  --gut: 20px;
  font-family: "Gilroy", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--g);
}
@media (min-width: 1024px) {
  .apv, .apv-top, .apv-sticky { --s: 16px; --m: 18px; --l: 30px; --gap: 64px; }
}
.apv *, .apv-top *, .apv-sticky * { box-sizing: border-box; }
.apv-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- верх: крошки и H1 ---------- */
/* шапка сайта лежит поверх страницы (position: absolute), её высоту JS кладёт в --apv-hdr */
.apv-top { max-width: 1280px; margin: 0 auto; padding: calc(var(--apv-hdr, 96px) + 4px) var(--gut) 0; }
.apv-top.container { width: auto; max-width: 1280px; padding-left: var(--gut); padding-right: var(--gut); }
@media (min-width: 1024px) { .apv-top { padding-top: calc(var(--apv-hdr, 132px) + 16px); } }
.apv-top .bx-breadcrumb { margin: 0 0 4px; padding: 0; font-size: var(--s); line-height: 1.4; }
.apv-top .bx-breadcrumb, .apv-top .bx-breadcrumb a, .apv-top .bx-breadcrumb span { color: var(--g60); font-size: var(--s); }
.apv-top .bx-breadcrumb a { color: var(--g); text-decoration: underline; text-decoration-color: var(--g20); text-underline-offset: 3px; }
.apv-top .bx-breadcrumb a:hover { text-decoration-color: var(--g); }
.apv-h1 { margin: 0; font-size: var(--l); line-height: 1.2; font-weight: 700; text-align: left; color: var(--g); letter-spacing: 0; }

/* второстепенный текст на автопарке — графит 70%: 60% давал контраст 3,99 при норме 4,5 для S (Артём 31.10.2026); главная пока на 60% */
#apv, .apv-top { --g60: rgba(43, 42, 41, .7); }
.apv { max-width: 1280px; margin: 0 auto var(--gap); padding: 12px var(--gut) 0; font-size: var(--m); line-height: 1.4; }
.apv p, .apv h2, .apv h3 { margin: 0; text-align: left; }
.apv .apv-zero h2, .apv .apv-zero p, .apv .apv-near--zero h3 { text-align: center; }

/* ---------- кнопки и ссылки (3 вида) ---------- */
.apv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 20px; border-radius: 14px; border: 1px solid transparent;
  font-family: inherit; font-size: var(--m); font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none !important; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.apv-btn--primary { background: var(--or); color: var(--g) !important; }
.apv-btn--primary:hover { background: var(--or-h); }
.apv-btn--primary:active { background: var(--or-p); }
.apv-btn--secondary { background: #fff; color: var(--g) !important; border-color: var(--g20); }
.apv-btn--secondary:hover { border-color: var(--g); }
.apv-btn--secondary:active { background: var(--tint); }
/* мессенджеры — вторичные кнопки: цвет бренда только в иконке */
.apv-btn--max img, .apv-btn--tg img { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.apv-link {
  padding: 0; border: 0; background: none; font: inherit; cursor: pointer; color: var(--g) !important;
  text-decoration: underline !important; text-decoration-color: var(--g20) !important; text-underline-offset: 3px;
  transition: text-decoration-color .15s;
}
.apv-link:hover { text-decoration-color: var(--g) !important; }
.apv :focus-visible, .apv-top :focus-visible, .apv-sticky :focus-visible { outline: 2px solid var(--g); outline-offset: 0; }
.apv a:focus:not(:focus-visible), .apv button:focus:not(:focus-visible) { outline: none; }

/* ---------- даты ---------- */
.apv-dates {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 10px 16px; border-radius: 14px; background: var(--tint); border: 1px solid var(--g20);
  font-weight: 700;
}
.apv-dates__txt { min-width: 0; }
.apv-nw { white-space: nowrap; }
.apv-arrow { color: var(--g60); font-weight: 400; }
.apv-dates__edit, .apv-sticky__edit { flex: none; color: var(--g) !important; font-weight: 700; text-decoration: underline !important; text-decoration-color: var(--g20) !important; text-underline-offset: 3px; }
.apv-dates__edit:hover, .apv-sticky__edit:hover { text-decoration-color: var(--g) !important; }

.apv-when { padding: 20px; border-radius: 20px; background: var(--tint); border: 1px solid var(--g20); }
.apv-when__h { font-size: var(--l); line-height: 1.2; font-weight: 700; }
.apv-when__p { margin-top: 8px !important; color: var(--g); }
.apv-when__btn { width: 100%; margin-top: 16px; }
@media (min-width: 768px) {
  .apv-when { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 32px; }
  .apv-when__btn { grid-column: 2; grid-row: 1 / span 2; width: auto; margin-top: 0; padding: 12px 32px; }
}

/* ---------- счётчик, сортировка, доверие ---------- */
.apv-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.apv-count { font-size: var(--m); line-height: 1.2; font-weight: 700; white-space: nowrap; }
.apv-sort { position: relative; flex: none; }
.apv-sort__btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: var(--s); font-weight: 400; line-height: 1.4; color: var(--g);
}
.apv-sort__btn span[data-apv-sort-label] { text-decoration: underline; text-decoration-color: var(--g20); text-underline-offset: 3px; transition: text-decoration-color .15s; }
.apv-sort__btn:hover span[data-apv-sort-label] { text-decoration-color: var(--g); }
.apv-sort__ico { flex: none; color: var(--g); } /* цвет и толщина — как у текста рядом */
.apv-sort__menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 180px; margin: 0; padding: 6px; list-style: none;
  border-radius: 14px; background: #fff; border: 1px solid var(--g20); box-shadow: 0 8px 24px rgba(43, 42, 41, .12);
}
.apv-sort__menu[hidden] { display: none; }
.apv-sort__menu li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin: 0; padding: 0 12px;
  border-radius: 8px; cursor: pointer; font-size: var(--s);
}
.apv-sort__menu li::before { content: none; }
.apv-sort__menu li:hover { background: var(--tint); }
.apv-sort__menu li[aria-selected="true"] { font-weight: 700; }
/* галочка выбранного пункта — та же иконка, что у преимуществ (.apv-ok), но графитом: это выбор, а не статус */
.apv-sort__menu li .apv-ok { color: var(--g); visibility: hidden; }
.apv-sort__menu li[aria-selected="true"] .apv-ok { visibility: visible; }
.apv-sort__menu li:focus { outline: none; }
.apv-sort__menu li:focus-visible { outline: 2px solid var(--g); outline-offset: -2px; }
.apv-trust { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 2px 0 0; padding: 0; list-style: none; font-size: var(--s); color: var(--g); font-weight: 400; }
.apv-trust li { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.apv-trust li::before { content: none; }
.apv-trust__rate { display: inline-flex; align-items: center; gap: 4px; color: var(--g) !important; text-decoration: underline !important; text-decoration-color: var(--g20) !important; text-underline-offset: 3px; }
/* зона нажатия ≥ 24 px по высоте на телефоне; поля компенсированы отрицательным отступом — вид и строка не меняются */
.apv-trust__rate { padding: 4px 0; margin: -4px 0; }
.apv-trust__rate:hover { text-decoration-color: var(--g) !important; }
.apv-star { color: var(--or); }
.apv-ok { flex: none; color: var(--green); } /* галочка = статус «есть» */
.apv-note { margin-top: 16px !important; padding: 12px 16px; border-radius: 14px; background: var(--tint); font-size: var(--s); }

/* ---------- чипы ---------- */
.apv-chips { display: flex; gap: 8px; margin: 16px calc(var(--gut) * -1) 0; padding: 0 var(--gut) 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.apv-chips::-webkit-scrollbar { display: none; }
.apv-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 18px; border-radius: 14px;
  border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--g20); color: var(--g); font-family: inherit; font-size: var(--s); font-weight: 700; line-height: 1.2; cursor: pointer; white-space: nowrap;
  transition: box-shadow .15s;
}
/* чипы-фильтры (решение Артёма 27.10): в покое белые, рамка графит 20% (inset — размер не прыгает), наведение — рамка графит;
   выбранный — белый, рамка графит 2 px (Артём 31.10: заливка забирала много внимания). Оранжевым выбор не выделяем: он только у главного действия. */
.apv-chip:hover { box-shadow: inset 0 0 0 1px var(--g); }
.apv-chip__n { font-weight: 400; color: var(--g60); }
.apv-chip.is-on { box-shadow: inset 0 0 0 2px var(--g); }
.apv-chip[hidden] { display: none; }

/* ---------- соседние даты ---------- */
.apv-near { margin-top: 16px; }
.apv-near--few { padding: 16px; border-radius: 20px; border: 1px solid var(--g20); background: #fff; }
.apv-near__h { font-size: var(--m); font-weight: 700; }
.apv-near__list { display: grid; gap: 8px; margin-top: 12px; }
.apv-near--few .apv-near__list { grid-template-columns: 1fr 1fr; }
.apv-near__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 56px; padding: 10px 16px;
  border-radius: 14px; border: 1px solid var(--g20); background: #fff; color: var(--g); font: inherit; text-align: left; cursor: pointer;
  transition: border-color .15s;
}
.apv-near__opt:hover { border-color: var(--g); }
.apv-near__opt:active { background: var(--tint); }
.apv-near__t { display: block; font-weight: 700; }
.apv-near__c { display: block; color: var(--green); font-weight: 700; white-space: nowrap; } /* «Свободно N авто» — статус, размер и жирность как у дат (Артём 27.10) */
.apv-near__go { flex: none; color: var(--g60); }
@media (max-width: 400px) { .apv-near--few .apv-near__list { grid-template-columns: 1fr; } }

/* ---------- список ---------- */
.apv-list { display: grid; gap: 24px; margin-top: 16px; }
@media (min-width: 640px) { .apv-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .apv-list { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; } }
/* «Показать ещё авто» (Артём 27.10): сразу 6 на телефоне и планшете, 9 (3 ряда) на компьютере.
   До запуска скрипта прячем лишние карточками CSS, чтобы страница не «прыгала»; дальше управляет autopark.js */
.apv-list[data-apv-paged] > .apv-card:nth-child(n+7) { display: none; }
@media (min-width: 1024px) {
  .apv-list[data-apv-paged] > .apv-card:nth-child(n+7) { display: flex; }
  .apv-list[data-apv-paged] > .apv-card:nth-child(n+10) { display: none; }
}
.apv-more { display: flex; justify-content: center; margin-top: 24px; }
.apv-more[hidden] { display: none; }
.apv-more__btn { width: 100%; }
@media (min-width: 640px) { .apv-more__btn { width: auto; min-width: 320px; } }
.apv-card { display: flex; flex-direction: column; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(43, 42, 41, .08), 0 6px 20px rgba(43, 42, 41, .06); overflow: hidden; }
.apv-card[hidden] { display: none; }

.apv-photo { position: relative; aspect-ratio: 16 / 11; background: var(--tint); border-radius: 20px; overflow: hidden; }
.apv-photo__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.apv-photo__track::-webkit-scrollbar { display: none; }
.apv-photo__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; display: block; }
.apv-photo::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.72)); pointer-events: none; }
/* точки листания — как на главной (ai/css/index.css): тёмная капсула справа сверху, активная точка вытянута */
.apv-dots {
  position: absolute; top: 14px; right: 14px; z-index: 2; display: flex; gap: 5px; padding: 5px 8px;
  border-radius: 999px; background: rgba(20, 19, 18, .35); pointer-events: none;
}
.apv-dots i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .5); transition: width .2s; }
.apv-dots i.is-on { width: 16px; border-radius: 3px; background: #fff; }
@media (min-width: 1024px) {
  .apv-dots { top: auto; right: 0; left: 0; bottom: 0; gap: 4px; padding: 0 16px 6px; border-radius: 0; background: none; }
  .apv-dots i, .apv-dots i.is-on { flex: 1; width: auto; height: 3px; border-radius: 2px; }
  .apv-dots ~ .apv-badges { right: 12px; }
  .apv-cap { bottom: 18px; }
}
.apv-badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
/* плашки не заходят на точки: справа место под капсулу, лишние — во второй ряд */
/* ширина капсулы: 16 отступы + активная 16 + остальные 6 + промежутки 5 */
.apv-dots ~ .apv-badges { right: calc(14px + 8px + 16px + (var(--apv-dots, 5) - 1) * 11px + 8px); }
.apv-badges { right: 12px; }
.apv-badge { padding: 4px 10px; border-radius: 8px; background: #fff; color: var(--g); font-size: var(--s); font-weight: 700; }
.apv-cap { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; padding: 0 16px; color: #fff; pointer-events: none; }
.apv-cap__name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: var(--m); line-height: 1.25; font-weight: 700; }
.apv-cap__name a { color: #fff !important; text-decoration: none !important; pointer-events: auto; }
.apv-cap__year { flex: none; font-size: var(--m); font-weight: 700; color: #fff; }
.apv-cap__specs { margin-top: 4px !important; font-size: var(--s); font-weight: 400; color: rgba(255,255,255,.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.apv-body { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; padding: 14px 16px 16px; flex: 1; }
.apv-price { min-width: 0; }
.apv-price__old { display: block; font-size: var(--s); color: var(--g60); text-decoration: line-through; }
.apv-price__day { font-size: var(--l); line-height: 1.2; font-weight: 700; white-space: nowrap; }
.apv-price__day small { font-size: var(--s); font-weight: 400; color: var(--g60); }
.apv-price__day small.apv-price__from { color: var(--g); }
.apv-price__day--na { font-size: var(--m); }
.apv-price__total { margin-top: 2px !important; font-size: var(--s); font-weight: 400; }
.apv-price__total--muted { font-weight: 400; color: var(--g60); }
.apv-more { align-self: center; font-size: var(--m); font-weight: 700; color: var(--g) !important; white-space: nowrap; text-decoration: underline !important; text-decoration-color: var(--g20) !important; text-underline-offset: 3px; }
.apv-more:hover { text-decoration-color: var(--g) !important; }
.apv-card__cta { grid-column: 1 / -1; width: 100%; margin-top: 16px; }

.apv-empty { margin-top: 24px !important; padding: 24px; border-radius: 20px; background: var(--tint); text-align: center; }
.apv-empty[hidden] { display: none; }

/* ---------- всё занято ---------- */
.apv-zero { margin-top: var(--gap); text-align: center; }
.apv-zero__icon { color: var(--g60); }
.apv-zero__h { margin-top: 12px !important; font-size: var(--l); line-height: 1.2; font-weight: 700; }
.apv-zero__p { margin-top: 8px !important; color: var(--g60); }
.apv-near--zero { margin-top: 32px; }
@media (min-width: 768px) { .apv-near--zero .apv-near__list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- помощь и лист ожидания ---------- */
.apv-help { margin-top: 32px; padding: 24px 20px; border-radius: 20px; background: #fff; box-shadow: 0 2px 16px rgba(43, 42, 41, .08); }
.apv-help__h { font-size: var(--l); line-height: 1.2; font-weight: 700; }
.apv-help__p { margin-top: 8px !important; }

.apv-help__msg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.apv-help__msg .apv-btn { padding: 12px; }
.apv-help__call { width: 100%; margin-top: 12px; }
.apv-help__hours { margin-top: 16px !important; font-size: var(--s); color: var(--g60); }
@media (min-width: 768px) {
  .apv-help { max-width: 720px; margin-left: auto; margin-right: auto; } /* по центру (Артём 27.10) */
}

/* ---------- плашка дат при прокрутке ---------- */
.apv-sticky {
  position: fixed; left: 50%; transform: translateX(-50%); top: calc(var(--apv-hdr-fixed, 0px) + 8px); z-index: 9998;
  width: calc(100% - 2 * var(--gut)); max-width: 640px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--tint); border: 1px solid var(--g20);
  box-shadow: 0 6px 20px rgba(43, 42, 41, .12); font-size: var(--m); font-weight: 700;
}
.apv-sticky[hidden] { display: none; }
.apv-sticky__txt { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 4px; min-width: 0; }
.apv-sticky__edit { margin-right: 8px; }
.apv-sticky__btn { min-height: 40px; padding: 8px 16px; }

/* главная (include/main_cars.php): тегов 15 — на компьютере в несколько строк, как было на главной */
.apv--main { margin-top: 24px; }
.apv .apv-main-h { margin: 0 0 16px; font-size: var(--l); line-height: 1.2; font-weight: 700; text-align: center; color: var(--g); letter-spacing: 0; }
@media (min-width: 1024px) { .apv--main .apv-chips { flex-wrap: wrap; overflow: visible; } }

/* ---------- подборка без машин в городе (404, autopark/index.php): текст M и два действия, без заголовка ---------- */
.apv-gone { padding-top: 24px; }
.apv-gone__act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 599px) { .apv-gone__act .apv-btn { flex: 1 1 100%; } }

/* End */
/* /local/templates/main_2023/assets/autopark-v2/autopark.css?179378558119303 */
