/* ==========================================================================
   Карта сайта — новый дизайн
   Разметка: templates/template-sitemap-v2.php + includes/sitemap-page.php. Всё под .bs.
   ========================================================================== */

.bs {
  --ink: #231F20; --red: #E32320; --mut: #6F686A; --mut2: #8b8385; --line: #E5E1E1; --tint: #F6F4F3; --ground: #F1F0EF;
  --sans: "Archivo", "Proxima Nova", Arial, sans-serif; --serif: "Source Serif 4", Georgia, serif;
  --gut: clamp(16px, 5vw, 64px); --max: 1280px;
  background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5;
}
.bs *, .bs *::before, .bs *::after { box-sizing: border-box; }
.bs a:focus-visible, .bs summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.bs-wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }
.bs ul { list-style: none; margin: 0; padding: 0; }
.bs p { margin: 0; }
.bs h1, .bs h2 { text-transform: none; }

/* шапка */
.bs-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; box-shadow: 0 -16px 0 var(--ink); }
.bs-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(110% 90% at 88% 0%, rgba(227,35,32,.24) 0%, rgba(227,35,32,0) 56%); }
.bs-hero__crumbs { position: relative; padding-top: 18px; }
.bs .bs-hero .breadcrumbs { margin: 0; padding: 0; }
.bs .bs-hero .breadcrumbs, .bs .bs-hero .breadcrumbs * { color: rgba(255,255,255,.8) !important; font-family: var(--sans) !important; font-size: 14px !important; }
.bs-hero__in { position: relative; padding-top: 56px; padding-bottom: 56px; }
.bs-hero__title { margin: 0 0 14px; color: #fff; text-align: start; font: 800 clamp(40px, 6vw, 80px)/1 var(--sans); font-variation-settings: "wdth" 120; letter-spacing: -.015em; }
.bs-hero__lead { max-width: 680px; font-family: var(--serif); font-size: 20px; line-height: 1.5; color: rgba(255,255,255,.82); }
.bs-search { display: flex; align-items: center; gap: 10px; max-width: 620px; height: 56px; margin-top: 28px; padding-inline: 18px 14px; border-radius: 12px; background: #fff; color: var(--ink); cursor: text; box-shadow: 0 14px 44px rgba(0,0,0,.28); }
.bs-search:focus-within { box-shadow: 0 0 0 3px rgba(227,35,32,.55), 0 14px 44px rgba(0,0,0,.28); }
.bs-search svg { flex: none; width: 20px; height: 20px; color: var(--mut); }
.bs-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 500 17px var(--sans); -webkit-appearance: none; appearance: none; }
.bs .bs-search input:focus-visible { outline: none; }
.bs-found { margin-top: 10px !important; font-size: 14px; color: rgba(255,255,255,.72); }
.bs-found[hidden] { display: none; }
.bs-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.bs .bs-jump a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 19px; background: rgba(255,255,255,.08); color: #fff; font: 600 14px var(--sans); text-decoration: none; }
.bs .bs-jump a:hover { background: rgba(255,255,255,.18); color: #fff; }
.bs-jump span { color: rgba(255,255,255,.62); font-weight: 500; }

/* разделы */
.bs-body { padding: 40px 0 72px; }
.bs-sec { padding: 32px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.bs-sec:last-of-type { border-bottom: 0; }
.bs-h2 { margin: 0 0 20px; font: 800 clamp(24px, 2.6vw, 32px)/1.1 var(--sans); font-variation-settings: "wdth" 112; color: var(--ink); }
.bs-n { margin-inline-start: 6px; font-size: 13px; font-weight: 500; color: var(--mut2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bs a { color: var(--ink); text-decoration: none; }
.bs a:hover { color: var(--red); }

.bs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bs-chips li { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 21px; background: #fff; font-weight: 600; font-size: 15px; }
.bs-chips li:hover { border-color: var(--ink); }

/* бренды */
.bs-brands { columns: 3 320px; column-gap: 16px; }
.bs-brand { break-inside: avoid; margin-bottom: 16px; padding: 20px 22px 16px; border-radius: 14px; background: #fff; }
.bs-brand__head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.bs-brand__logo { flex: none; display: grid; place-items: center; width: 52px; height: 36px; }
.bs-brand__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bs-brand__name { flex: 1; min-width: 0; font-size: 19px; font-weight: 800; }
.bs-models > li { border-bottom: 1px solid var(--tint); }
.bs-models > li:last-child { border-bottom: 0; }
.bs-models > li > a, .bs-models summary { display: flex; align-items: center; gap: 4px; min-height: 42px; padding: 6px 0; font-weight: 600; font-size: 15px; }
.bs-models summary { cursor: pointer; list-style: none; }
.bs-models summary::-webkit-details-marker { display: none; }
.bs-models summary > a, .bs-models summary > span:first-child { flex: 0 1 auto; }
.bs-models summary svg { flex: none; width: 16px; height: 16px; margin-inline-start: auto; color: var(--mut2); transition: transform .2s; }
.bs-models details[open] summary svg { transform: rotate(180deg); }
.bs-cars { padding: 2px 0 10px 12px !important; border-inline-start: 2px solid var(--line); margin-inline-start: 2px !important; }
.bs-cars li a { display: block; padding: 4px 0 4px 10px; font-size: 14px; line-height: 1.35; color: #4a4345; }
.bs-cars li a:hover { color: var(--red); }

.bs-cols { columns: 4 220px; column-gap: 28px; }
.bs-cols--wide { columns: 2 380px; }
.bs-cols li { break-inside: avoid; padding: 5px 0; font-size: 15px; line-height: 1.4; }
.bs-cols li a { border-bottom: 1px solid transparent; }
.bs-cols li a:hover { border-color: var(--red); }

/* поиск */
.bs .is-off { display: none !important; }
.bs mark { padding: 0 1px; border-radius: 3px; background: rgba(251,188,4,.4); color: inherit; }
.bs-empty { padding: 32px 0; font-size: 17px; color: var(--mut); }
.bs-empty[hidden] { display: none; }

@media (max-width: 700px) {
  .bs-hero__in { padding-top: 28px; padding-bottom: 36px; }
  .bs-hero__title { font-size: clamp(40px, 12vw, 52px); }
  .bs-hero__lead { font-size: 17px; }
  .bs-search { height: 52px; }
  .bs-jump { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scrollbar-width: none; }
  .bs-jump::-webkit-scrollbar { display: none; }
  .bs .bs-jump a { flex: none; }
  .bs-body { padding: 16px 0 48px; }
  .bs-brands { columns: 1; }
  .bs-brand { margin-bottom: 10px; }
  .bs-chips li { height: 40px; padding: 0 14px; font-size: 14px; }
}
