/* ═══ СТРАНИЦА АВТО — статус, три цены, блок кнопок (ноябрь 2026) ═══════════
   Подключается на car.html после system.css.                              */

#carBadge:empty{display:none}

/* строка под названием — как у Авто.ру: «В наличии · Sport Plus · Арт. MX-XG2RA7»
   Один размер и одна базовая линия; статус — цветом, остальное — серым;
   разделители — точки с равными отступами; артикул без плашки, копируется по клику. */
html body .topbar-title{margin-bottom:8px}
html body .car-st,html body .car-st + .topbar-trim,html body .topbar-article{
  display:inline;font-size:14px;line-height:1.5;vertical-align:baseline;margin:0}
html body .car-st{font-weight:600}
html body .car-st-ok{color:var(--tag-ok-tx)}
html body .car-st-tr{color:var(--tag-tr-tx)}
html body .car-st-or{color:var(--tag-or-tx)}
html body .car-st + .topbar-trim{color:var(--ink3);font-weight:400}
html body .car-st + .topbar-trim:not(:empty)::before,
html body .topbar-article::before{content:"·";display:inline-block;margin:0 8px;color:var(--ink3);font-weight:400;text-decoration:none}
html body .car-st[style*="none"] + .topbar-trim::before{content:none}
html body .topbar-article,html[data-theme="dark"] body .topbar-article{
  height:auto;padding:0;border:0;border-radius:0;background:none;color:var(--ink3);
  font-family:inherit;font-weight:400;letter-spacing:0;cursor:pointer;white-space:nowrap;align-items:baseline;gap:0}
html body .topbar-article svg{display:inline-block;width:13px;height:13px;margin:0 0 0 6px;vertical-align:-1px;opacity:.7;order:2}
html body .topbar-article > span{display:inline}
@media (hover:hover){html body .topbar-article:hover{background:none;color:var(--ink)}
  html body .topbar-article:hover > span{text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px}
  html body .topbar-article:hover svg{opacity:1}}

/* три цены: наличными (крупно) · безнал с НДС · безнал без НДС */
html body .topbar-vat{display:flex;flex-direction:column;gap:3px;margin-top:4px;font-size:13px;line-height:1.35;color:var(--ink3)}
html body .topbar-vat .pr-cash{margin-bottom:6px;font-size:13px;color:var(--ink3)}
html body .topbar-vat .pr-alt{white-space:nowrap}
html body .topbar-vat .pr-alt b{font-weight:600;color:var(--ink2);font-variant-numeric:tabular-nums}

@media (min-width:769px){
  html body .topbar{align-items:flex-start;padding-top:8px}
  html body .tb-right{align-items:flex-start;gap:12px}
  html body .tb-right > div:first-child{display:flex;flex-direction:column;align-items:flex-end;text-align:right}
  html body .topbar-price{font-size:36px;font-weight:700;letter-spacing:-.03em;line-height:1.1}
  html body .topbar-vat{align-items:flex-end;text-align:right}
  html body .topbar-title{font-size:36px;letter-spacing:-.03em}

  /* кнопки: «Позвонить» на всю ширину, ниже «Написать» и «Запросить КП» рядом */
  html body .specs-col{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-content:start}
  html body .specs-col > *{grid-column:1 / -1}
  html body .specs-col .actions{display:contents}
  html body .specs-col .actions .btn-call{grid-column:1 / -1;flex-direction:column;gap:2px;height:56px;border-radius:12px;font-size:16px;font-weight:700;line-height:1.2}
  html body .specs-col .actions .btn-call svg{display:none}
  html body .specs-col .actions .btn-call .call-sub{display:block;font-size:12px;font-weight:500;opacity:.85}
  html body .specs-col .actions .btn-outline{grid-column:1;width:auto;height:48px;padding:0 12px;border-radius:12px;font-size:15px;font-weight:600;gap:8px}
  html body .specs-col .actions-kp{grid-column:2}
  html body .specs-col .actions-kp .btn-kp{width:100%;height:48px;border:0;border-radius:12px;background:var(--surf);color:var(--ink);font-size:15px;font-weight:600}
  @media (hover:hover){html body .specs-col .actions-kp .btn-kp:hover,html body .specs-col .actions .btn-outline:hover{background:var(--surf2)}}
  html body .specs-col #specsContent{margin-top:18px}
}

@media (max-width:768px){
  html body .topbar-vat{align-items:flex-start;text-align:left}
  html body .topbar-vat{margin-top:2px}
  html body .topbar-vat .pr-cash{margin-bottom:4px}
}

/* ── отступы на ПК: без пустот ───────────────────────────────────────────
   • крошки → название: 12 px; название/цена → кнопки и фото: 24 px
   • статус стоит в одну строку с ценой — правый блок по высоте равен левому
   • фото «едет» за прокруткой, пока слева идут характеристики, — справа
     не остаётся пустой колонки под галереей */
@media (min-width:769px){
  html body .page{row-gap:0}
  html body .breadcrumbs{margin-bottom:12px}
  html body .topbar{padding-top:0;margin:0}
  html body .body{margin-top:24px}
  html body .tb-right .topbar-vat{margin-top:2px}
  html body .tb-right .topbar-vat .pr-cash{margin-bottom:4px}
  html body .gallery-col{position:sticky;top:calc(var(--hd-h,72px) + 16px);align-self:start}
  html body .similar-block{margin-top:56px}
}

/* ритм разделов слева: заголовок → содержимое 12 px, раздел → раздел 32 px */
@media (min-width:769px){
  html body #specsContent{row-gap:32px}
  html body #specsContent .spec-group{margin:0;padding:0}
  html body #specsContent .spec-group + .spec-group{margin-top:32px}
  html body #specsContent .spec-group-title{margin:0 0 12px;line-height:1.25}
  html body .specs-col #specsContent{margin-top:28px}
}

/* ── нижняя панель на телефоне: «Позвонить» + «Написать» ─────────────────
   Панель — цвет страницы и тонкая линия сверху, без тени; учитывает «чёлку»
   снизу (safe-area). Кнопки одной высоты 52 px и одного скругления 12 px.
   «Написать» — вторичная: серая заливка + тонкая рамка, иконка крупнее. */
@media (max-width:768px){
  html body .specs-col .actions{
    gap:8px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));
    background:var(--bg);border-top:1px solid var(--line);box-shadow:none}
  html body .specs-col .actions .btn-call{
    height:52px;border-radius:12px;padding:0 16px;gap:2px;
    font-size:16px;font-weight:700;letter-spacing:-.1px;line-height:1.15}
  html body .specs-col .actions .btn-call .call-sub{font-size:12px;font-weight:500;opacity:.8;letter-spacing:0}
  html body .specs-col .actions .btn-outline{
    flex:0 0 52px;width:52px;height:52px;padding:0;border-radius:12px;
    background:var(--surf);border:1px solid var(--line);color:var(--ink)}
  html body .specs-col .actions .btn-outline svg{width:22px;height:22px;stroke-width:1.9}
  html body .specs-col .actions .btn-call:active,html body .specs-col .actions .btn-outline:active{transform:scale(.97)}
}

/* телефон: цена и подписи под ней — плотной группой, затем 16 px до названия */
@media (max-width:768px){
  html body .topbar-price{line-height:1.1}
  html body .topbar-vat{margin-top:4px;gap:2px}
  html body .topbar-vat .pr-cash{margin-bottom:6px}
  html body .tb-left{margin-top:4px}
}

/* кнопка «Скопировать ссылку» — как кнопки-иконки в шапке: 40×40, скругление 12,
   значок ровно по центру; по высоте — по середине строки с ценой */
html body .tb-share .icon-btn{box-sizing:border-box;width:40px;height:40px;padding:0;display:flex;align-items:center;justify-content:center;
  border:0;border-radius:12px;background:var(--surf);color:var(--ink2);line-height:0}
html body .tb-share .icon-btn svg{display:block;width:20px;height:20px}
@media (hover:hover){html body .tb-share .icon-btn:hover{background:var(--surf2);color:var(--ink)}}
html body .tb-share{display:flex;align-items:center}
@media (min-width:769px){html body .tb-share{height:40px;margin-top:-3px}}
@media (max-width:768px){html body .tb-share{height:35px;align-self:flex-start}}
