/* Claude v1 — версия фронта Hub Garage (стенд hg-claude-front, 13.10.2026).
   Слой поверх hub.css и частных файлов темы/плагина; подключается последним (functions.php, приоритет 200).
   Токены DESIGN.md сохраняются; добавлены только функциональные цвета статуса наличия. */
:root{--hg-ok:#1b7a45;--hg-ok-bg:#e4f2ea;--hg-v1-ease:cubic-bezier(.16,1,.3,1)}
html[data-theme=dark]{--hg-ok:#5ad08e;--hg-ok-bg:#15301f}

/* ── Метка статуса наличия: одна во всех местах (gtyres_stock_status) ── */
.hg-stock{display:inline-flex;align-items:center;gap:6px;min-height:26px;box-sizing:border-box;margin:0;padding:2px 10px 2px 8px;border-radius:999px;background:var(--hg-ok-bg);color:var(--hg-ok);font-size:13px;font-weight:700;line-height:1.3;letter-spacing:0;white-space:nowrap}
.hg-stock::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:currentColor}
.hg-stock[data-stock=sold]{background:var(--hg-ink);color:var(--hg-paper)}
.hg-stock[data-stock=sold]::before{display:none}
.hg-stock[data-stock=checking]{background:var(--hg-soft);color:var(--hg-muted)}
.hg-stock[data-stock=checking]::before{box-sizing:border-box;border:1.5px solid currentColor;background:transparent}
@media (max-width:680px){.hg-stock{font-size:14px}}
/* в карточках вариантов цвет статуса перебивают pdp-r440 (muted) и is-inactive: метка сохраняет свою пару цветов */
.hg-store .hg-variant-card .hg-variant-status.hg-stock{color:var(--hg-ok);font-weight:700}
.hg-store .hg-variant-card .hg-variant-status.hg-stock[data-stock=sold]{color:var(--hg-paper)}
.hg-store .hg-variant-card .hg-variant-status.hg-stock[data-stock=checking]{color:var(--hg-muted)}

/* ── Карточка каталога ── */
.hg-store .jp-product-card{position:relative}
.hg-store .jp-product-card .jp-card-status{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 10px;margin:14px 0 8px}
/* длинная метка набора («タイヤ・ホイール 各4本») на узкой карточке переносится, а не растягивает страницу (360 px: +10 px прокрутки) */
.hg-store .jp-product-card .jp-card-status .hg-stock{min-width:0;max-width:100%;white-space:normal}
.hg-store .jp-product-card .jp-card-status .jp-product-code{display:inline;margin:0;padding:0;color:var(--hg-muted);font-size:12px;line-height:1.4;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.hg-store .jp-product-card h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0 0 4px;font-size:16px;line-height:1.45;letter-spacing:-.01em}
.hg-store .jp-product-card .jp-product-size{margin:0 0 2px;color:var(--hg-muted);font-size:14px;line-height:1.5;font-variant-numeric:tabular-nums}
.hg-store .jp-product-card .jp-set-wheel{margin:0;color:var(--hg-muted);font-size:13px;line-height:1.5}
.hg-store .jp-card-grade{position:absolute;left:12px;bottom:12px;z-index:2;padding:3px 8px;border-radius:4px;background:var(--hg-white);color:var(--hg-red);box-shadow:0 2px 8px #0000001f;font-size:12px;font-weight:800;line-height:1.3;letter-spacing:.02em}
.hg-store .jp-product-card[data-stock=sold] .jp-product-photo img{filter:grayscale(.4);opacity:.78}
/* статус уже показан меткой — повтор в цене карточки скрыт */
.hg-store .jp-product-card :is(.gtyres-pack-catalog-status,small[data-stock]){display:none}
@media (max-width:680px){
  .hg-store .jp-product-card .jp-card-status{margin:10px 0 6px;gap:4px 8px}
  .hg-store .jp-product-card h3{font-size:14px;line-height:1.5}
  .hg-store .jp-product-card .jp-product-size{font-size:14px;line-height:1.45}
  .hg-store .jp-card-grade{left:8px;bottom:8px}
}

/* ── Каталог: первый товар выше (без надстрочника, плотнее шапка) ── */
.hg-store .jp-catalog-page .jp-page-heading{margin:10px 0 14px}
.hg-store .jp-catalog-page .jp-page-heading .jp-eyebrow{display:none}
.hg-store .jp-catalog-page .jp-page-heading h1{margin:0 0 6px;font-size:clamp(30px,3.2vw,44px);line-height:1.2}
.hg-store .jp-catalog-page .jp-page-heading p{margin:0}
.hg-store .jp-catalog-page .jp-category-tabs{margin-top:14px;margin-bottom:18px}
/* desktop: реплика маскота справа от заголовка, а не отдельной строкой — сетка товаров начинается выше; прочие дети страницы на всю ширину */
@media (min-width:1024px){
  .hg-store .jp-catalog-page{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,600px);column-gap:40px}
  .hg-store .jp-catalog-page>*{grid-column:1/-1;min-width:0}
  .hg-store .jp-catalog-page>.jp-breadcrumb{grid-row:1}
  .hg-store .jp-catalog-page>.jp-page-heading{grid-row:2;grid-column:1;align-self:end}
  .hg-store .jp-catalog-page>.hg-mascot{grid-row:2;grid-column:2;align-self:end;max-width:none;margin:0 0 14px}
}

/* ── Карточка товара: проданный лот ── */
.hg-store .gtyres-pack-sold-note{margin:4px 0 12px;color:var(--hg-ink);font-size:15px;line-height:1.7}
/* статус в блоке покупки — та же метка; специфичность выше правила pdp-r440 (.gtyres-pack .gtyres-pack-stock) */
.hg-store .gtyres-pack .gtyres-pack-stock.hg-stock,.hg-store .hg-pdp-r440 .gtyres-pack .gtyres-pack-stock.hg-stock{display:inline-flex;width:auto;min-height:30px;margin:10px 0 8px!important;padding:3px 12px 3px 10px;font-size:14px;font-weight:800;color:var(--hg-ok)}
.hg-store .hg-pdp-r440 .gtyres-pack .gtyres-pack-stock.hg-stock[data-stock=sold]{color:var(--hg-paper)}
.hg-store .hg-pdp-r440 .gtyres-pack .gtyres-pack-stock.hg-stock[data-stock=checking]{color:var(--hg-muted)}
.hg-store .gtyres-pack-stock.hg-stock::before{width:7px;height:7px;background:currentColor}
.hg-store .gtyres-pack-stock.hg-stock[data-stock=checking]::before{background:transparent}
.hg-store .hg-same-size-cta{display:flex;align-items:center;justify-content:center;width:100%;min-height:54px;margin:0 0 10px}

/* ── Мобильная карточка товара (R519: близко к одному экрану; П1-5) ── */
@media (max-width:767px){
  .hg-store .hg-pdp-r440 .jp-main-photo{aspect-ratio:4/3;display:block;overflow:hidden;background:var(--hg-white)}
  .hg-store .hg-pdp-r440 .jp-main-photo img{width:100%;height:100%;object-fit:contain}
  .hg-store .hg-pdp-r440 .jp-photo-thumbs{gap:6px;margin-top:8px}
  .hg-store .hg-pdp-r440 .jp-photo-thumbs button{width:52px!important;height:52px!important}
  .hg-store .hg-pdp-r440 .jp-photo-caption{margin:6px 0 0;font-size:13px}
  .hg-store .hg-pdp-r440 .jp-product-summary h1{font-size:22px!important;line-height:1.4!important;margin-bottom:4px}
  /* варианты: список строк без разрыва слов */
  .hg-store .hg-pdp-r440 .hg-variants-list{grid-template-columns:minmax(0,1fr)!important;gap:6px!important}
  .hg-store .hg-pdp-r440 .hg-variant-card{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;align-items:center!important;gap:12px!important;min-height:62px!important;padding:8px 12px 8px 8px!important}
  .hg-store .hg-pdp-r440 .hg-variant-card.is-inactive{grid-template-columns:minmax(0,1fr)!important;min-height:48px!important;padding:10px 12px!important}
  .hg-store .hg-pdp-r440 .hg-variant-card:not(.is-inactive):not(:has(>.hg-variant-thumb))::before{width:44px!important}
  .hg-store .hg-pdp-r440 .hg-variant-thumb{width:44px!important;height:44px!important}
  .hg-store .hg-pdp-r440 .hg-variant-body{display:grid;gap:2px;min-width:0}
  .hg-store .hg-pdp-r440 .hg-variant-head{display:flex!important;flex-wrap:wrap;align-items:center;gap:4px 8px}
  .hg-store .hg-pdp-r440 .hg-variant-type{font-size:15px!important;line-height:1.35;word-break:keep-all;overflow-wrap:normal}
  .hg-store .hg-pdp-r440 .hg-variant-current{display:inline-flex!important;margin:0!important;font-size:12px!important;white-space:nowrap}
  .hg-store .hg-pdp-r440 .hg-variant-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;font-size:14px!important;line-height:1.4}
  .hg-store .hg-pdp-r440 .hg-variant-basis{font-size:13px!important}
  .hg-store .hg-pdp-r440 .hg-variant-status{font-size:13px;justify-self:start}
  .hg-store .hg-pdp-r440 .hg-variant-status.hg-stock{min-height:22px;padding:1px 8px 1px 7px;font-size:13px}
  html.hg-has-buybar .hg-pdp-r440{padding-bottom:84px}
}

/* ── Главная: аватар сезона над подбором (маскот целиком уже в сцене hero) ── */
.hg-store .hg-v1-finder{position:relative;z-index:2}
.hg-store .hg-mascot.hg-mascot--home-finder{display:flex;align-items:center;gap:14px;max-width:none;margin:0 0 16px;padding:0;border:0;background:none;box-shadow:none}
.hg-store .hg-mascot--home-finder .hg-mascot-figure{flex:none;width:64px!important;height:64px!important;margin:0;padding:0;border-radius:50%;overflow:hidden;background:var(--hg-sun);box-shadow:0 0 0 3px var(--hg-white),0 8px 18px #00000029}
.hg-store .hg-mascot--home-finder .hg-mascot-figure img{width:100%!important;height:100%!important;max-width:none;max-height:none;object-fit:cover}
/* flex-grow обязателен: container-type:inline-size из mascot.css обнуляет собственную ширину пузыря, при flex:0 он схлопывался до знака в строке */
.hg-store .hg-mascot--home-finder .hg-mascot-bubble{position:relative;flex:1 1 auto;min-width:0;max-width:640px;margin:0;padding:12px 18px;border:1px solid var(--hg-line);border-radius:14px;background:var(--hg-white);box-shadow:0 8px 24px #00000012}
.hg-store .hg-mascot--home-finder .hg-mascot-text{margin:0;font-size:15px;line-height:1.65;color:var(--hg-ink)}
@media (max-width:680px){
  .hg-store .hg-mascot.hg-mascot--home-finder{gap:10px;margin-bottom:12px;align-items:flex-start}
  .hg-store .hg-mascot--home-finder .hg-mascot-figure{width:52px!important;height:52px!important}
  .hg-store .hg-mascot--home-finder .hg-mascot-bubble{padding:10px 14px}
  .hg-store .hg-mascot--home-finder .hg-mascot-text{font-size:14px;line-height:1.6}
}

/* ── «Продано» и пустой поиск: сидячая поза apology — место по её высоте, целая фигура читается рядом с репликой ── */
.hg-store .hg-mascot--product-sold,.hg-store .hg-mascot--search-empty{--hg-mascot-h:180px}

/* ── Кабинет: переключатель «ログイン / 新規登録» на телефоне (claude-v1.js) ── */
.hg-store .hg-auth-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:0 0 14px;padding:4px;border-radius:12px;background:var(--hg-soft)}
.hg-store .hg-auth-switch[hidden]{display:none}
.hg-store .hg-auth-switch button{min-height:46px;margin:0;padding:8px 10px;border:0;border-radius:9px;background:transparent;color:var(--hg-muted);font-size:15px;font-weight:700;line-height:1.3;letter-spacing:0;box-shadow:none;cursor:pointer;transition:background-color .2s var(--hg-v1-ease),color .2s var(--hg-v1-ease)}
.hg-store .hg-auth-switch button::after{content:none}
.hg-store .hg-auth-switch button[aria-pressed=true]{background:var(--hg-white);color:var(--hg-ink);box-shadow:0 2px 8px #0000001a}
.hg-store .hg-auth-switch button:focus-visible{outline:3px solid var(--hg-red);outline-offset:2px}
@media (max-width:680px){
  .hg-store .hg-auth-grid.is-switchable[data-hg-auth=login] .hg-register-panel,
  .hg-store .hg-auth-grid.is-switchable[data-hg-auth=register] .hg-login-panel{display:none}
}

/* ── Рольставня гаража при смене дня и ночи (claude-v1.js): единственный «авторский» момент движения ── */
.hg-shutter{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;pointer-events:none;transform:translateY(-101%);
  /* ламели ролеты — материал самого гаража */
  background:repeating-linear-gradient(180deg,#46494e 0 30px,#33363a 30px 32px,#5a5e64 32px 34px,#3d4045 34px 36px);
  box-shadow:0 16px 40px #00000073}
.hg-shutter::after{content:"";position:absolute;left:0;right:0;bottom:0;height:16px;background:linear-gradient(180deg,#d8352d,#a51c16);box-shadow:0 -2px 0 #00000033 inset}
.hg-shutter__sign{display:block;width:min(42vw,320px);opacity:.92;filter:drop-shadow(0 6px 14px #0007)}
.hg-shutter__sign svg,.hg-shutter__sign img{display:block;width:100%;height:auto}
.hg-shutter.is-closing{transform:translateY(0);transition:transform .36s cubic-bezier(.55,0,.8,.25)}
.hg-shutter.is-opening{transform:translateY(-101%);transition:transform .7s var(--hg-v1-ease)}

/* ── Перетекание фото между карточкой каталога и страницей товара, между вариантами (cross-document View Transitions) ── */
@view-transition{navigation:auto}
.hg-store .hg-pdp-r440 .jp-main-photo{view-transition-name:hg-pdp-photo}
.hg-store .hg-pdp-r440 .jp-product-summary h1{view-transition-name:hg-pdp-title}
::view-transition-group(root){animation-duration:.26s}
::view-transition-group(*){animation-duration:.42s;animation-timing-function:var(--hg-v1-ease)}
@media (prefers-reduced-motion:reduce){
  @view-transition{navigation:none}
  .hg-shutter{display:none}
}

/* ── Липкая панель покупки (claude-v1.js): итог + основное действие, над нижним доком ── */
.hg-buybar{position:fixed;left:0;right:0;bottom:var(--hg-bottom-stack,0px);z-index:45;display:flex;align-items:center;gap:12px;box-sizing:border-box;padding:10px 16px;background:var(--hg-white);border-top:1px solid var(--hg-line);box-shadow:0 -10px 26px #00000017;transform:translateY(calc(100% + var(--hg-bottom-stack,0px) + 8px));visibility:hidden;transition:transform .34s var(--hg-v1-ease),visibility 0s .34s}
.hg-buybar.is-visible{transform:none;visibility:visible;transition:transform .34s var(--hg-v1-ease),visibility 0s}
.hg-buybar__price{display:grid;flex:none;max-width:46%;line-height:1.25}
.hg-buybar__label{overflow:hidden;color:var(--hg-muted);font-size:13px;white-space:nowrap;text-overflow:ellipsis}
.hg-buybar__value{color:var(--hg-ink);font-size:19px;font-weight:800;letter-spacing:-.01em;white-space:nowrap;font-variant-numeric:tabular-nums}
.hg-buybar__value .woocommerce-Price-currencySymbol{font-size:.9em}
.hg-buybar .jp-button{flex:1 1 auto;min-height:48px;margin:0;padding:10px 14px;font-size:15px;line-height:1.3;text-align:center;justify-content:center}
@media (min-width:768px){.hg-buybar{display:none}}
@media (prefers-reduced-motion:reduce){.hg-buybar,.hg-buybar.is-visible{transition:none}}

/* ── История: шесть сцен в одном помещении — при смене этапа кадр перетекает (home-story.js, startViewTransition) ── */
.hg-story .hg-story__step:not([hidden]) .hg-story__frame{view-transition-name:hg-story-scene}
.hg-story .hg-story__step:not([hidden]) .hg-story__copy{view-transition-name:hg-story-copy}
::view-transition-old(hg-story-scene),::view-transition-new(hg-story-scene){animation-duration:.45s;animation-timing-function:var(--hg-v1-ease)}
::view-transition-old(hg-story-copy){animation:.18s ease-in both hg-v1-fade-out}
::view-transition-new(hg-story-copy){animation:.32s var(--hg-v1-ease) .08s both hg-v1-rise-in}
@keyframes hg-v1-fade-out{to{opacity:0}}
@keyframes hg-v1-rise-in{from{opacity:0;transform:translateY(6px)}}

/* ══ Claude v2 — карточка покупателя: стикер вида, цена, корзина, быстрый просмотр (inc/shop-card.php, claude-shop.js) ══ */
.hg-store .hg-card-media{position:relative}
/* состояние и ранг — одной группой внизу слева: верхний левый угол остаётся ленте SOLD, правый — стикеру вида */
.hg-store .hg-card .hg-card-cond{position:absolute;left:10px;bottom:10px;z-index:2;display:flex;flex-wrap:wrap;align-items:center;gap:4px;max-width:calc(100% - 64px);pointer-events:none}
.hg-store .hg-card .hg-card-cond .jp-state,.hg-store .hg-card .hg-card-cond .jp-card-grade{position:static;inset:auto;margin:0;box-shadow:0 2px 8px #0000001f}
.hg-store .hg-card .hg-card-cond .jp-state{padding:5px 8px;font-size:11px;font-weight:700;line-height:1.2}
.hg-store .hg-card .hg-card-cond .jp-card-grade{padding:5px 8px;font-size:11px;line-height:1.2}
/* стикер вида — на фотографии, поэтому цвета не зависят от темы; красный не используется (он у действия и SOLD) */
.hg-type-sticker{display:inline-flex;align-items:center;gap:5px;box-sizing:border-box;padding:5px 9px 5px 7px;border-radius:4px;background:#181a1d;color:#fff;font-size:12px;font-weight:800;line-height:1.2;letter-spacing:.03em;white-space:nowrap;box-shadow:0 0 0 2px #fff,0 4px 12px #00000038}
.hg-type-sticker svg{flex:none}
.hg-type-sticker[data-type=tire]{background:#fff;color:#181a1d;box-shadow:inset 0 0 0 1.5px #181a1d,0 0 0 2px #fff,0 4px 12px #00000030}
.hg-type-sticker[data-type=wheel]{background:#e3e7ec;color:#181a1d;box-shadow:inset 0 0 0 1.5px #181a1d,0 0 0 2px #fff,0 4px 12px #00000030}
.hg-store .hg-card .jp-product-photo .hg-type-sticker{position:absolute;top:10px;right:10px;z-index:2;transform:rotate(2.5deg);transform-origin:100% 0;pointer-events:none}
/* быстрый просмотр: круглая кнопка на фото; на устройствах с наведением раскрывается подписью */
.hg-card-peek{position:absolute;right:10px;bottom:10px;z-index:3;display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-width:40px;height:40px;margin:0;padding:0 11px;border:0;border-radius:999px;background:#fff;color:#181a1d;box-shadow:0 3px 12px #00000033;font:inherit;font-size:13px;font-weight:700;line-height:1;cursor:pointer;transition:background-color .2s var(--hg-ease),color .2s var(--hg-ease),box-shadow .2s var(--hg-ease)}
.hg-card-peek svg{flex:none}
.hg-card-peek__text{display:none;white-space:nowrap}
.hg-card-peek:hover{background:#181a1d;color:#fff}
.hg-card-peek:focus-visible{outline:2px solid var(--hg-red);outline-offset:2px}
@media (hover:hover) and (min-width:1024px){
  .hg-store .hg-card:is(:hover,:focus-within) .hg-card-peek .hg-card-peek__text{display:inline}
}
/* цена: основание мелко сверху, сумма крупно, «税込 · 1本 ¥…» мелко под суммой */
.hg-store .hg-card .hg-card-buy{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-top:auto;padding-top:14px;border-top:1px solid var(--hg-line)}
.hg-store .hg-card-price{display:grid;gap:2px;margin:0;color:var(--hg-ink)}
.hg-store .hg-card-price__basis{color:var(--hg-muted);font-size:12px;font-weight:600;line-height:1.3}
.hg-store .hg-card-price__main{font-size:27px;font-weight:800;line-height:1.08;letter-spacing:-.015em;font-variant-numeric:tabular-nums}
.hg-store .hg-card-price__main .hg-yen{margin-right:.06em;font-size:.6em;font-weight:700;vertical-align:.08em}
.hg-store .hg-card-price__sub{color:var(--hg-muted);font-size:12px;line-height:1.35;font-variant-numeric:tabular-nums}
.hg-store .hg-card-price.is-request .hg-card-price__main{font-size:16px;font-weight:700;line-height:1.4;letter-spacing:0}
/* действие: одна кнопка на всю ширину карточки */
.hg-store .hg-card-cart{margin:0}
.hg-store .hg-card-buy :is(.hg-card-cart .jp-button,.hg-card-alt){display:flex;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;width:100%;min-height:46px;margin:0;padding:0 12px;font-size:14px;line-height:1.2;white-space:nowrap}
.hg-store .hg-card-buy .hg-card-cart .jp-button svg{width:18px;height:18px;flex:none}
.hg-store .hg-card .hg-card-buy>a.hg-card-alt,.hg-store .hg-card:hover .hg-card-buy>a.hg-card-alt{width:100%;height:auto;border-radius:var(--hg-radius-control,8px)}
.hg-store .hg-card-cart.is-busy .jp-button{opacity:.7;cursor:progress}
.hg-store .hg-card-cart.is-added .jp-button{background:var(--hg-ok);border-color:var(--hg-ok);color:#fff}
@media (max-width:680px){
  .hg-store .hg-card .hg-card-cond{left:7px;bottom:7px;gap:3px;max-width:calc(100% - 52px)}
  .hg-store .hg-card .hg-card-cond :is(.jp-state,.jp-card-grade){padding:4px 6px;font-size:10px}
  .hg-store .hg-card .jp-product-photo .hg-type-sticker{top:7px;right:7px;padding:4px 7px 4px 5px;font-size:11px;gap:3px}
  .hg-store .hg-card .jp-product-photo .hg-type-sticker svg{width:13px;height:13px}
  .hg-card-peek{right:7px;bottom:7px;min-width:36px;height:36px;padding:0 9px}
  .hg-store .hg-card .hg-card-buy{gap:10px;padding-top:12px}
  .hg-store .hg-card-price__main{font-size:22px}
  .hg-store .hg-card-price__basis,.hg-store .hg-card-price__sub{font-size:11.5px}
  .hg-store .hg-card-buy :is(.hg-card-cart .jp-button,.hg-card-alt){min-height:44px;padding:0 8px;font-size:13px;gap:5px}
  .hg-store .hg-card-buy .hg-card-cart .jp-button svg{width:16px;height:16px}
}
@media (max-width:370px){
  .hg-store .hg-card-buy .hg-card-cart .jp-button svg{display:none}
}

/* ── Быстрый просмотр (native dialog) ── */
html.hg-qv-open{overflow:hidden}
dialog.hg-qv{box-sizing:border-box;width:min(1060px,calc(100vw - 48px));max-width:none;max-height:min(780px,calc(100dvh - 48px));margin:auto;padding:0;border:0;border-radius:18px;background:var(--hg-white);color:var(--hg-ink);box-shadow:0 30px 90px #0000006b;overflow:hidden}
dialog.hg-qv::backdrop{background:#0d0e10a6}
dialog.hg-qv[open]{animation:hg-qv-in .32s var(--hg-v1-ease) both}
dialog.hg-qv[open]::backdrop{animation:hg-qv-fade .32s ease both}
dialog.hg-qv.is-closing{animation:hg-qv-out .18s ease-in both}
@keyframes hg-qv-in{from{opacity:0;transform:translateY(10px) scale(.975)}}
@keyframes hg-qv-out{to{opacity:0;transform:translateY(6px) scale(.985)}}
@keyframes hg-qv-fade{from{opacity:0}}
.hg-qv-frame{position:relative;display:flex;flex-direction:column;max-height:inherit}
.hg-qv-content{overflow:auto;overscroll-behavior:contain}
.hg-qv-close{position:absolute;top:12px;right:12px;z-index:5;display:grid;place-items:center;width:42px;height:42px;margin:0;padding:0;border:0;border-radius:50%;background:var(--hg-white);color:var(--hg-ink);box-shadow:0 2px 10px #0000002b;font-size:26px;line-height:1;cursor:pointer}
.hg-qv-close:focus-visible{outline:2px solid var(--hg-red);outline-offset:2px}
.hg-qv-loading{display:grid;place-items:center;min-height:320px;margin:0;padding:40px;color:var(--hg-muted);font-size:15px;text-align:center}
.hg-qv-content>.jp-button{margin:0 auto 32px;display:flex;width:max-content}
.hg-qv-body{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);align-items:start}
.hg-qv-media{position:sticky;top:0;min-width:0;padding:20px;background:var(--hg-soft)}
.hg-qv-media>.hg-sold-ribbon{top:20px;left:20px}
.hg-qv-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;border-radius:12px;background:#fff;scrollbar-width:none;outline:none}
.hg-qv-track::-webkit-scrollbar{display:none}
.hg-qv-track:focus-visible{box-shadow:0 0 0 2px var(--hg-red)}
.hg-qv-slide{flex:0 0 100%;margin:0;aspect-ratio:1;scroll-snap-align:start;background:#fff}
.hg-qv-slide img{display:block;width:100%;height:100%;object-fit:contain}
.hg-qv-thumbs{display:flex;gap:8px;margin-top:12px;overflow-x:auto;scrollbar-width:thin}
.hg-qv-thumbs button{flex:none;width:58px;height:58px;margin:0;padding:0;border:1px solid var(--hg-line);border-radius:8px;background:#fff;overflow:hidden;cursor:pointer}
.hg-qv-thumbs button[aria-pressed=true]{border-color:var(--hg-red);box-shadow:0 0 0 1px var(--hg-red)}
.hg-qv-thumbs img{display:block;width:100%;height:100%;object-fit:cover}
.hg-qv-info{min-width:0;padding:30px 30px 28px}
.hg-qv-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 46px 12px 0}
.hg-qv-tags .jp-state,.hg-qv-tags .jp-card-grade{position:static;margin:0;padding:5px 8px;border:1px solid var(--hg-line);border-radius:4px;background:var(--hg-white);font-size:12px;line-height:1.2;box-shadow:none}
.hg-qv-tags .hg-type-sticker{box-shadow:none}
.hg-qv-tags .hg-type-sticker[data-type=tire],.hg-qv-tags .hg-type-sticker[data-type=wheel]{box-shadow:inset 0 0 0 1.5px #181a1d}
.hg-qv-info h2{margin:0 0 6px;font-size:22px;line-height:1.4;letter-spacing:-.01em;text-wrap:balance;outline:none}
.hg-qv-code{margin:0 0 18px;color:var(--hg-muted);font-size:13px;font-variant-numeric:tabular-nums}
.hg-qv-specs{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:1px;margin:0 0 20px;border:1px solid var(--hg-line);border-radius:10px;background:var(--hg-line);overflow:hidden}
.hg-qv-specs>div{display:grid;gap:2px;padding:10px 12px;background:var(--hg-white)}
.hg-qv-specs dt{color:var(--hg-muted);font-size:11.5px;line-height:1.3}
.hg-qv-specs dd{margin:0;font-size:15px;font-weight:700;line-height:1.35;font-variant-numeric:tabular-nums}
.hg-qv-buy .gtyres-pack{margin:0}
.hg-qv-more{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-top:10px;color:var(--hg-ink);font-weight:700;text-decoration:none}
.hg-qv-more svg{transition:transform .2s var(--hg-ease)}
.hg-qv-more:hover{color:var(--hg-red)}
.hg-qv-more:hover svg{transform:translateX(4px)}
@media (max-width:760px){
  dialog.hg-qv{width:100vw;max-height:92dvh;margin:auto 0 0;border-radius:18px 18px 0 0}
  dialog.hg-qv[open]{animation:hg-qv-up .34s var(--hg-v1-ease) both}
  dialog.hg-qv.is-closing{animation:hg-qv-down .2s ease-in both}
  @keyframes hg-qv-up{from{transform:translateY(40px);opacity:.4}}
  @keyframes hg-qv-down{to{transform:translateY(60px);opacity:0}}
  .hg-qv-body{grid-template-columns:minmax(0,1fr)}
  .hg-qv-media{position:static;padding:12px 12px 0}
  .hg-qv-media>.hg-sold-ribbon{top:12px;left:12px}
  .hg-qv-slide{aspect-ratio:4/3}
  .hg-qv-thumbs button{width:48px;height:48px}
  .hg-qv-info{padding:18px 16px 24px}
  .hg-qv-info h2{font-size:19px}
}

/* ── Уведомление корзины с маскотом ── */
.hg-toast{position:fixed;z-index:1000;top:96px;right:24px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:12px;box-sizing:border-box;width:min(380px,calc(100vw - 32px));padding:14px 12px 14px 14px;border:1px solid var(--hg-line);border-radius:14px;background:var(--hg-white);color:var(--hg-ink);box-shadow:0 18px 48px #00000030;opacity:0;transform:translateY(-8px);transition:opacity .22s ease,transform .3s var(--hg-v1-ease)}
.hg-toast.is-in{opacity:1;transform:none}
.hg-toast[data-state=error]{border-color:var(--hg-red)}
.hg-toast__face{display:block;width:48px;height:48px;border-radius:50%;background:var(--hg-soft);object-fit:cover}
.hg-toast__body{display:grid;gap:3px;min-width:0}
.hg-toast__title{font-size:15px;line-height:1.35}
/* Claude v3.6 (E5, L1-E): переносы названия по фразам — katakana («サマータイヤ», «ホイール») не рвётся посреди слова; две строки с многоточием прежние */
.hg-toast__item{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:var(--hg-muted);font-size:13px;line-height:1.45;word-break:auto-phrase}
.hg-toast__actions{margin-top:4px}
/* Claude v3.6 (E5, L1b-F): .hg-toast__link (0,1,0) проигрывал .jp-store a{color:inherit;text-decoration:none} (store.css, 0,1,1) — ссылка была тёмной без подчёркивания; с .hg-toast (0,2,0) красная и подчёркнутая в покое */
.hg-toast .hg-toast__link{display:inline-flex;align-items:center;min-height:36px;color:var(--hg-red);font-size:14px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.hg-toast__close{display:grid;place-items:center;width:36px;height:36px;margin:-6px -4px 0 0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--hg-muted);font-size:22px;line-height:1;cursor:pointer}
.hg-toast__close:hover{background:var(--hg-soft);color:var(--hg-ink)}
.hg-toast.hg-toast--in-dialog{position:absolute;top:14px;right:64px;width:min(360px,calc(100% - 88px))}
@media (max-width:680px){
  .hg-toast{top:auto;right:12px;left:12px;bottom:calc(var(--hg-dock-h,64px) + env(safe-area-inset-bottom,0px) + 12px);width:auto;transform:translateY(10px)}
  .hg-toast.hg-toast--in-dialog{position:fixed;bottom:calc(env(safe-area-inset-bottom,0px) + 12px)}
}
@media (prefers-reduced-motion:reduce){
  dialog.hg-qv[open],dialog.hg-qv[open]::backdrop,dialog.hg-qv.is-closing{animation:none}
  .hg-toast,.hg-card-peek,.hg-qv-more svg{transition:none}
}

/* ── Каталог: обновление без «щелчка» — сетка приглушается только при долгом ответе, плашка «読み込み中…» — после 0.45 с;
   неизменные карточки остаются прежними узлами (catalog-ux-r47.js), проявляются только новые (hg-reveal.js) ── */
.hg-store .jp-results :is(.jp-products,.jp-empty){transition:opacity .18s ease}
.hg-store .jp-results[aria-busy=true] :is(.jp-products,.jp-empty){opacity:.62;transition-delay:.15s}
.hg-store .jp-catalog-page:has(.jp-results[aria-busy=true]) .r76-update-status:not([hidden]){animation:hg-v2-late .2s ease .45s both}
@keyframes hg-v2-late{from{opacity:0;transform:translate(-50%,6px)}}
@media (prefers-reduced-motion:reduce){.hg-store .jp-results :is(.jp-products,.jp-empty){transition:none}.hg-store .jp-catalog-page:has(.jp-results[aria-busy=true]) .r76-update-status:not([hidden]){animation:none}}

/* ── Каталог: подбор по автомобилю над категориями (parts/vehicle-bar.php) ── */
.hg-store .hg-vbar{margin:4px 0 20px;border:1px solid var(--hg-line);border-radius:14px;background:var(--hg-white);box-shadow:0 1px 0 #0000000a}
.hg-store .hg-vbar__summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;min-height:68px;box-sizing:border-box;padding:12px 14px;border-radius:14px;cursor:pointer;list-style:none}
.hg-store .hg-vbar__summary::-webkit-details-marker{display:none}
.hg-store .hg-vbar__summary:focus-visible{outline:2px solid var(--hg-red);outline-offset:2px}
.hg-store .hg-vbar__icon{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:var(--hg-soft);color:var(--hg-ink)}
.hg-store .hg-vbar__text{display:grid;gap:2px;min-width:0}
.hg-store .hg-vbar__text strong{font-size:16px;line-height:1.35}
.hg-store .hg-vbar__text small{color:var(--hg-muted);font-size:13px;line-height:1.5}
.hg-store .hg-vbar__cta{display:inline-flex;align-items:center;gap:6px;min-height:42px;box-sizing:border-box;padding:0 12px 0 16px;border:1px solid var(--hg-ink);border-radius:8px;color:var(--hg-ink);font-size:14px;font-weight:700;white-space:nowrap;transition:background-color .2s var(--hg-ease),color .2s var(--hg-ease)}
.hg-store .hg-vbar__cta svg{transition:transform .25s var(--hg-v1-ease)}
.hg-store .hg-vbar__summary:hover .hg-vbar__cta{background:var(--hg-ink);color:var(--hg-paper)}
.hg-store .hg-vbar[open] .hg-vbar__cta svg{transform:rotate(180deg)}
.hg-store .hg-vbar[open] .hg-vbar__summary{border-bottom-left-radius:0;border-bottom-right-radius:0}
.hg-store .hg-vbar__panel{padding:16px 16px 18px;border-top:1px solid var(--hg-line)}
.hg-store .hg-vbar[aria-busy=true] .hg-vbar__panel{opacity:.6}
.hg-store .hg-vbar .hgs--catalog .hgs-actions{margin-top:14px}
/* справочные размеры в каталоге — компактные чипы (вся плашка — ссылка); заголовки групп слева */
.hg-store .hgs--catalog .hgs-ref-body{gap:12px}
.hg-store .hgs--catalog .hgs-summary{margin:14px 0 10px;text-align:left}
.hg-store .hgs--catalog .hgs-ref-group h4{margin:0 0 8px;font-size:14px;text-align:left}
.hg-store .hgs--catalog .hgs-ref-note{text-align:left}
.hg-store .hgs--catalog [data-hgs-show]{display:none}
@media (max-width:680px){
  .hg-store .hg-vbar{margin:0 0 16px}
  .hg-store .hg-vbar__summary{grid-template-columns:auto minmax(0,1fr) auto;gap:10px;min-height:60px;padding:10px 10px 10px 12px}
  .hg-store .hg-vbar__icon{width:40px;height:40px;border-radius:10px}
  .hg-store .hg-vbar__text small{display:none}
  .hg-store .hg-vbar__cta{min-height:40px;padding:0 8px 0 12px;font-size:13px}
  .hg-store .hg-vbar__panel{padding:12px 12px 16px}
}
@media (prefers-reduced-motion:reduce){.hg-store .hg-vbar__cta,.hg-store .hg-vbar__cta svg{transition:none}}

/* ── Фильтр каталога v2: плотные чипы, компактный список брендов, популярные бренды, сброс под заголовком ── */
.hg-store .r47-filter-group{margin-top:18px;padding-top:16px}
.hg-store .r47-filter-group h3{margin:0 0 4px;font-size:15px}
.hg-store .r47-facet{margin:2px 0 0}
.hg-store .jp-filters .r47-facet>summary{min-height:42px;padding:6px 0}
.hg-store .r47-facet>fieldset{margin:2px 0 14px}
.hg-store .r47-facet-options{gap:6px}
.hg-store .r47-facet-options label{min-height:36px;padding:6px 10px;gap:5px;border-radius:999px;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums;transition:border-color .15s ease,background-color .15s ease}
@media (hover:hover){.hg-store .r47-facet-options label:hover:not(.r47-option-unavailable){border-color:var(--hg-ink)}}
.hg-store .r47-facet-options small{font-size:10.5px;font-weight:500}
.hg-store .r47-facet-options .r47-facet-clear{min-height:36px;padding:6px 12px;border-radius:999px;font-size:13px}
/* бренды: строки списка с флажком, а не крупные плитки */
.hg-store .r47-brand-options{gap:0;max-height:248px;padding:0;border:1px solid var(--hg-line);border-radius:8px;background:var(--hg-white)}
.hg-store .r47-brand-options label{min-height:38px;padding:6px 10px 6px 34px;border:0;border-bottom:1px solid var(--hg-line);border-radius:0;background:transparent;font-size:13px;font-weight:600}
.hg-store .r47-brand-options label:last-child{border-bottom:0}
.hg-store .r47-brand-options label::before{content:"";position:absolute;left:10px;top:50%;width:16px;height:16px;margin-top:-8px;box-sizing:border-box;border:1.5px solid var(--hg-muted);border-radius:4px;background:var(--hg-white)}
.hg-store .r47-brand-options label:has(input:checked){background:var(--hg-soft);color:var(--hg-ink)}
.hg-store .r47-filter-panel form .r47-brand-options label:has(input:checked)>span{color:var(--hg-ink)}
.hg-store .r47-brand-options label:has(input:checked) small{color:var(--hg-muted)}
.hg-store .r47-brand-options label:has(input:checked)::before{border-color:var(--hg-ink);background:var(--hg-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.2 3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat}
html[data-theme=dark] .hg-store .r47-brand-options label:has(input:checked)::before{background-color:var(--hg-ink);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.2 3 3 6-6.4' fill='none' stroke='%23121313' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.hg-store .r47-brand-options .r47-facet-clear{margin:6px;border-radius:999px}
.hg-store .r47-brand-search{margin:2px 0 8px!important}
.hg-store .r47-brand-search input{min-height:40px;padding:7px 12px;font-size:13px}
/* популярные бренды — метки тех же флажков */
.hg-store .hg-popular-brands{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:2px 0 10px}
.hg-store .hg-popular-brands>span{width:100%;color:var(--hg-muted);font-size:11.5px;font-weight:600}
.hg-store .hg-popular-brands label{display:inline-flex;align-items:center;min-height:32px;box-sizing:border-box;padding:4px 10px;border:1px solid var(--hg-line);border-radius:999px;background:var(--hg-white);color:var(--hg-ink);font-size:12px;font-weight:700;letter-spacing:.02em;cursor:pointer}
@media (hover:hover){.hg-store .hg-popular-brands label:hover{border-color:var(--hg-ink)}}
.hg-store .r47-filter-panel form>label[for=filter-query]{display:block;text-align:left}
.hg-store .hg-popular-brands label.is-on{border-color:var(--hg-ink);background:var(--hg-ink);color:var(--hg-paper)}
/* сброс всех условий под заголовком; на desktop кнопка «適用» не нужна — выбор применяется сразу */
.hg-store .hg-filter-clear{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 4px;padding:8px 12px;border-radius:8px;background:var(--hg-soft);font-size:13px;font-weight:600}
.hg-store .hg-filter-clear .jp-reset{margin:0;color:var(--hg-red);font-weight:700}
@media (min-width:901px){html.r47-enhanced .hg-store .r47-filter-actions{display:none}}
@media (max-width:900px){
  .hg-store .r47-facet-options label{min-height:40px;padding:7px 12px}
  .hg-store .r47-brand-options label{min-height:42px}
  .hg-store .hg-popular-brands label{min-height:36px}
  html.r47-enhanced .hg-store .r47-filter-actions .jp-button{min-height:48px;font-size:15px}
}

/* ── Страница товара v2: одна строка фактов в шапке, разделы «仕様» и «状態» без вложенных аккордеонов, справа — состав и «ご購入前に» ── */
.hg-pdp-r440 .jp-product-meta{align-items:center}
.hg-pdp-r440 .jp-product-meta .hg-type-sticker{box-shadow:none;padding:4px 8px 4px 6px;font-size:12px}
.hg-pdp-r440 .jp-product-meta .hg-type-sticker[data-type=tire],.hg-pdp-r440 .jp-product-meta .hg-type-sticker[data-type=wheel]{box-shadow:inset 0 0 0 1.5px #181a1d}
.hg-pdp-r440 .jp-product-meta .jp-card-grade{position:static;padding:4px 8px;border-radius:4px;background:var(--hg-white);color:var(--hg-red);box-shadow:inset 0 0 0 1px var(--hg-line);font-size:12px;font-weight:800}
.hg-pdp-r440 .jp-detail-size{font-variant-numeric:tabular-nums}
.hg-store .hg-pdp-below.hg-pdp-v2{grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);gap:32px 48px;align-items:start;margin-top:44px;padding-top:36px}
.hg-store .hg-pdp-v2>.hg-pdp-review{grid-column:1/-1}
.hg-store .hg-pdp-v2 .hg-pdp-main{display:grid;gap:36px;min-width:0}
.hg-store .hg-pdp-v2 :is(.hg-pdp-sec,.hg-pdp-before)>h2{margin:0 0 14px;color:var(--hg-ink);font-size:20px;line-height:1.35;letter-spacing:-.01em}
/* бренд и модель — над плитками, две строки без рамок */
.hg-store .hg-pdp-v2 .hg-pdp-extra{display:grid;gap:0;margin:0 0 14px;padding:0;border-top:1px solid var(--hg-line)}
.hg-store .hg-pdp-v2 .hg-pdp-extra>div{display:grid;grid-template-columns:minmax(96px,30%) minmax(0,1fr);gap:12px;align-items:baseline;margin:0;padding:11px 0;border-bottom:1px solid var(--hg-line)}
.hg-store .hg-pdp-v2 .hg-pdp-extra dt{color:var(--hg-muted);font-size:13px;font-weight:600}
.hg-store .hg-pdp-v2 .hg-pdp-extra dd{margin:0;color:var(--hg-ink);font-size:15px;font-weight:700;text-align:left;overflow-wrap:anywhere}
/* ранг лота — одна плашка-ссылка на страницу рангов */
.hg-store .hg-pdp-v2 .hg-pdp-grade{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:12px 14px;border:1px solid var(--hg-line);border-radius:10px;background:var(--hg-white);color:var(--hg-ink);text-decoration:none;transition:border-color .2s var(--hg-ease)}
.hg-store .hg-pdp-v2 .hg-pdp-grade b{display:grid;place-items:center;flex:none;min-width:46px;height:46px;padding:0 6px;box-sizing:border-box;border-radius:8px;background:var(--hg-ink);color:var(--hg-paper);font-size:20px;font-weight:800;letter-spacing:.02em}
.hg-store .hg-pdp-v2 .hg-pdp-grade span{min-width:0;font-size:14px;font-weight:600;line-height:1.5}
.hg-store .hg-pdp-v2 .hg-pdp-grade small{display:inline-flex;align-items:center;gap:6px;margin-left:auto;color:var(--hg-red);font-size:13px;font-weight:700;white-space:nowrap}
.hg-store .hg-pdp-v2 .hg-pdp-grade small svg{width:16px;height:16px}
.hg-store .hg-pdp-v2 .hg-pdp-grade:hover{border-color:var(--hg-ink)}
.hg-store .hg-pdp-v2 .jp-condition p{margin:0 0 10px;font-size:15px;line-height:1.8}
.hg-store .hg-pdp-v2 .jp-condition .jp-muted{color:var(--hg-muted);font-size:13px}
.hg-store .hg-pdp-v2 #hg-pdp-condition .hg-mascot{margin-top:16px}
/* правая колонка: состав и «ご購入前に» */
.hg-store .hg-pdp-v2 .hg-pdp-aside{display:grid;gap:18px;min-width:0}
.hg-store .hg-pdp-v2 .hg-pdp-before{padding:18px 18px 8px;border:1px solid var(--hg-line);border-radius:12px;background:var(--hg-white)}
.hg-store .hg-pdp-v2 .hg-pdp-before>h2{font-size:16px;margin-bottom:8px}
.hg-store .hg-pdp-v2 .hg-pdp-before .jp-fitment-note{margin:0 0 6px;color:var(--hg-muted);font-size:13px;line-height:1.7}
.hg-store .hg-pdp-v2 .hg-pdp-before .jp-product-help{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;margin:0;border-top:1px solid var(--hg-line);color:var(--hg-ink);font-size:14px;font-weight:600;text-decoration:none}
.hg-store .hg-pdp-v2 .hg-pdp-before .jp-product-help:hover{color:var(--hg-red)}
@media (min-width:900px){.hg-store .hg-pdp-v2 .hg-pdp-aside{position:sticky;top:110px}}
@media (max-width:899px){
  .hg-store .hg-pdp-below.hg-pdp-v2{grid-template-columns:minmax(0,1fr);gap:28px;margin-top:28px;padding-top:24px}
  .hg-store .hg-pdp-v2 .hg-pdp-main{gap:28px}
  .hg-store .hg-pdp-v2 :is(.hg-pdp-sec,.hg-pdp-before)>h2{font-size:18px}
}

/* смена варианта товара (product-switch.js): «読み込んでいます…» только для экранного диктора — строка не раздвигает блок; ошибка видна */
.hg-pdp-r440 .hg-product-switch-status:not(.is-error){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ══ Главная v2: акции (parts/campaigns.php) и стена брендов (parts/brand-wall.php) ══ */
.hg-store .hg-campaigns{padding-top:72px}
.hg-store .hg-campaigns__heading{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 24px;margin-bottom:24px}
.hg-store .hg-campaigns__heading h2{margin:0;font-size:clamp(26px,2.6vw,38px);line-height:1.2;letter-spacing:-.01em}
.hg-store .hg-campaigns__voice{display:flex;align-items:center;gap:10px;min-width:0;max-width:560px}
.hg-store .hg-campaigns__face{flex:none;width:52px;height:52px;border-radius:50%;overflow:hidden;background:var(--hg-soft);box-shadow:0 0 0 2px var(--hg-white),0 4px 14px #0000001f}
.hg-store .hg-campaigns__face img{display:block;width:100%;height:100%;object-fit:cover}
.hg-store .hg-campaigns__face img[data-hg-mascot-theme=night],html[data-theme=dark] .hg-store .hg-campaigns__face img[data-hg-mascot-theme=day]{display:none}
html[data-theme=dark] .hg-store .hg-campaigns__face img[data-hg-mascot-theme=night]{display:block}
.hg-store .hg-campaigns__bubble{position:relative;margin:0;padding:10px 14px;border:1px solid var(--hg-line);border-radius:14px;background:var(--hg-white);color:var(--hg-ink);font-size:14px;line-height:1.6}
.hg-store .hg-campaigns__bubble::before{content:"";position:absolute;left:-7px;top:50%;width:12px;height:12px;margin-top:-6px;border-left:1px solid var(--hg-line);border-bottom:1px solid var(--hg-line);background:var(--hg-white);transform:rotate(45deg)}
.hg-store .hg-campaigns__grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);grid-auto-rows:auto;gap:20px}
.hg-store .hg-campaigns__grid.is-single{grid-template-columns:minmax(0,1fr)}
.hg-store .hg-campaign{position:relative;display:grid;grid-template-columns:minmax(0,42%) minmax(0,1fr);min-width:0;border:1px solid var(--hg-line);border-radius:14px;background:var(--hg-white);overflow:hidden;transition:border-color .2s var(--hg-ease),box-shadow .25s var(--hg-ease),transform .25s var(--hg-v1-ease)}
.hg-store .hg-campaign--lead{grid-row:span 2;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr}
.hg-store .hg-campaign__media{position:relative;min-height:100%;background:var(--hg-soft);overflow:hidden}
.hg-store .hg-campaign__media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s var(--hg-v1-ease)}
.hg-store .hg-campaign--lead .hg-campaign__media{aspect-ratio:16/9;min-height:0}
.hg-store .hg-campaign:not(.hg-campaign--lead) .hg-campaign__media{min-height:170px}
.hg-store .hg-campaign:not(.hg-campaign--lead) .hg-campaign__media img{position:absolute;inset:0}
.hg-store .hg-campaign__body{display:flex;flex-direction:column;gap:8px;min-width:0;padding:18px 20px 20px}
.hg-store .hg-campaign--lead .hg-campaign__body{padding:22px 26px 26px;gap:10px}
.hg-store .hg-campaign__tags{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0}
.hg-store .hg-campaign__badge{display:inline-flex;align-items:center;min-height:24px;padding:2px 9px;border-radius:999px;background:var(--hg-ink);color:var(--hg-paper);font-size:12px;font-weight:800;letter-spacing:.03em}
.hg-store .hg-campaign__until{color:var(--hg-red);font-size:13px;font-weight:700}
.hg-store .hg-campaign h3{margin:0;font-size:17px;line-height:1.5;letter-spacing:-.005em;text-wrap:pretty}
.hg-store .hg-campaign--lead h3{font-size:clamp(20px,1.8vw,26px);line-height:1.45}
.hg-store .hg-campaign h3 a{color:var(--hg-ink);text-decoration:none}
.hg-store .hg-campaign h3 a::after{content:"";position:absolute;inset:0;z-index:1}
.hg-store .hg-campaign h3 a:focus-visible{outline:none}
.hg-store .hg-campaign:has(h3 a:focus-visible){outline:2px solid var(--hg-red);outline-offset:3px}
.hg-store .hg-campaign__text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;margin:0;color:var(--hg-muted);font-size:14px;line-height:1.7}
.hg-store .hg-campaign:not(.hg-campaign--lead) .hg-campaign__text{-webkit-line-clamp:2;font-size:13px}
/* desktop: малая карточка растянута до половины высоты ведущей — крупнее заголовок и три строки текста вместо пустоты */
@media (min-width:861px){
  .hg-store .hg-campaign:not(.hg-campaign--lead) h3{font-size:19px;line-height:1.5}
  .hg-store .hg-campaign:not(.hg-campaign--lead) .hg-campaign__text{-webkit-line-clamp:4;font-size:14px}
  .hg-store .hg-campaign:not(.hg-campaign--lead) .hg-campaign__body{padding:22px 22px 22px;gap:10px}
}
.hg-store .hg-campaign__cta{display:inline-flex;align-items:center;gap:8px;margin-top:auto;padding-top:6px;color:var(--hg-red);font-size:14px;font-weight:700}
.hg-store .hg-campaign__cta svg{width:18px;height:18px;transition:transform .2s var(--hg-ease)}
@media (hover:hover){
  .hg-store .hg-campaign:hover{border-color:var(--hg-ink);box-shadow:var(--hg-shadow);transform:translateY(-2px)}
  .hg-store .hg-campaign:hover .hg-campaign__media img{transform:scale(1.03)}
  .hg-store .hg-campaign:hover .hg-campaign__cta svg{transform:translateX(4px)}
}
@media (max-width:860px){
  .hg-store .hg-campaigns{padding-top:52px}
  .hg-store .hg-campaigns__grid{grid-template-columns:minmax(0,1fr);gap:14px}
  .hg-store .hg-campaign--lead{grid-row:auto}
  .hg-store .hg-campaign:not(.hg-campaign--lead){grid-template-columns:minmax(0,38%) minmax(0,1fr)}
  .hg-store .hg-campaign:not(.hg-campaign--lead) .hg-campaign__media{min-height:140px}
  .hg-store .hg-campaign__body{padding:14px 14px 16px}
  .hg-store .hg-campaign--lead .hg-campaign__body{padding:16px 16px 18px}
}
@media (max-width:420px){.hg-store .hg-campaign:not(.hg-campaign--lead) h3{font-size:15px}}

.hg-store .hg-brand-wall{padding-top:80px}
.hg-store .hg-brand-wall .jp-section-heading{margin-bottom:22px}
.hg-store .hg-brand-row{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:center;gap:12px 20px}
.hg-store .hg-brand-row+.hg-brand-row{margin-top:14px}
.hg-store .hg-brand-row h3{margin:0;color:var(--hg-muted);font-size:13px;font-weight:700;letter-spacing:.04em}
.hg-store .hg-brand-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none}
.hg-store .hg-brand-grid li{margin:0;padding:0}
.hg-store .hg-brand-tile{display:flex;align-items:center;justify-content:center;height:76px;box-sizing:border-box;padding:10px 16px;border:1px solid #e6e3dd;border-radius:12px;background:#fff;transition:border-color .2s var(--hg-ease),box-shadow .25s var(--hg-ease),transform .25s var(--hg-v1-ease)}
html[data-theme=dark] .hg-store .hg-brand-tile{border-color:#ffffff1f}
.hg-store .hg-brand-tile img{display:block;max-width:78%;max-height:36px;width:auto;height:auto;object-fit:contain;opacity:.92;transition:opacity .25s ease}
.hg-store .hg-brand-tile:focus-visible{outline:2px solid var(--hg-red);outline-offset:3px}
@media (hover:hover){
  .hg-store .hg-brand-tile:hover{border-color:#181a1d;box-shadow:0 8px 22px #0000001a;transform:translateY(-2px)}
  .hg-store .hg-brand-tile:is(:hover,:focus-visible) img{opacity:1}
}
@media (hover:none){.hg-store .hg-brand-tile img{opacity:1}}
@media (max-width:1000px){.hg-store .hg-brand-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:680px){
  .hg-store .hg-brand-wall{padding-top:56px}
  .hg-store .hg-brand-row{grid-template-columns:minmax(0,1fr);gap:8px}
  .hg-store .hg-brand-grid{gap:8px}
  .hg-store .hg-brand-tile{height:62px;border-radius:10px;padding:8px 10px}
  .hg-store .hg-brand-tile img{max-height:28px}
}
@media (prefers-reduced-motion:reduce){.hg-store :is(.hg-campaign,.hg-campaign__media img,.hg-campaign__cta svg,.hg-brand-tile,.hg-brand-tile img){transition:none}}
/* ══ Главная v2: компактные ранги (parts/grades-compact.php) ══
   Шкала — вкладки; выделенный ранг — бегущая «вкладка-папка», скруглённая только сверху. Маскот стоит на нижней кромке,
   реплика у лица. Панели лежат в одной ячейке — высота при переключении не меняется. До 1100 px карточка сверху, маскот снизу. */
.hg-store .hg-grades-lite{padding:85px 0}
.hg-store .hg-grades-lite .jp-section-heading{margin-bottom:26px}
.hg-store .hgg{--hgg-fig:300px;--hgg-fig-w:222px;position:relative}
.hg-store .hgg-scale{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin:0;padding:0}
.hg-store .hgg-scale::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--hg-line)}
.hg-store .hgg-scale::before{content:"";position:absolute;z-index:1;top:0;bottom:-1px;left:0;width:calc(100% / 6);box-sizing:border-box;border:1px solid var(--hg-line);border-bottom:0;border-radius:14px 14px 0 0;background:var(--hg-white);transform:translateX(calc(var(--hgg-i, 2) * 100%));transition:transform .38s var(--hg-v1-ease)}
.hg-store .hgg-tab{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:88px;box-sizing:border-box;padding:14px 10px 12px;border-radius:14px 14px 0 0;color:var(--hg-muted);text-align:center;text-decoration:none;-webkit-tap-highlight-color:transparent}
.hg-store .hgg-tab strong{font-family:RoadRadio,Montserrat,sans-serif;font-size:26px;line-height:1.1;color:var(--hg-ink);transition:color .2s ease}
.hg-store .hgg-tab span{font-size:13px;line-height:1.45;text-wrap:balance;transition:color .2s ease}
.hg-store .hgg-tab[aria-selected=true] strong,.hg-store .hgg:not(.is-enhanced) .hgg-tab[aria-current=true] strong{color:var(--hg-red)}
.hg-store .hgg-tab[aria-selected=true] span,.hg-store .hgg:not(.is-enhanced) .hgg-tab[aria-current=true] span{color:var(--hg-ink);font-weight:700}
@media (hover:hover){.hg-store .hgg-tab:hover strong{color:var(--hg-red)}.hg-store .hgg-tab:hover span{color:var(--hg-ink)}}
.hg-store .hgg-stage{position:relative;display:grid;padding:30px 34px 0;border:1px solid var(--hg-line);border-top:0;border-radius:0 0 18px 18px;background:var(--hg-white);overflow:hidden}
.hg-store .hgg-mascot{position:absolute;left:34px;bottom:-6px;margin:0;line-height:0;pointer-events:none}
.hg-store .hgg-mascot img{display:block;width:auto;max-width:none;height:var(--hgg-fig)}
.hg-store .hgg-mascot img[data-hg-mascot-theme=night],html[data-theme=dark] .hg-store .hgg-mascot img[data-hg-mascot-theme=day]{display:none}
html[data-theme=dark] .hg-store .hgg-mascot img[data-hg-mascot-theme=night]{display:block}
.hg-store .hgg-panel{grid-area:1/1;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:40px;visibility:hidden}
.hg-store .hgg-panel.is-active{z-index:2;visibility:visible}
.hg-store .hgg-panel.is-leaving{z-index:1;visibility:visible}
.hg-store .hgg-card{grid-column:2;grid-row:1;align-self:start;display:grid;grid-template-columns:240px minmax(0,1fr);grid-template-rows:auto auto auto 1fr;grid-template-areas:"photo code" "photo title" "photo detail" "photo note";column-gap:28px;padding-bottom:30px}
.hg-store .hgg-photo{grid-area:photo;display:block;width:240px;height:240px;object-fit:cover;border-radius:12px;background:var(--hg-soft)}
.hg-store .hgg-code{grid-area:code;margin:0 0 6px;font-family:RoadRadio,Montserrat,sans-serif;font-size:56px;line-height:1;color:var(--hg-red)}
.hg-store .hgg-card h3{grid-area:title;margin:0 0 10px;font-size:22px;line-height:1.45;letter-spacing:-.005em;text-wrap:balance}
.hg-store .hgg-detail{grid-area:detail;margin:0;color:var(--hg-muted);font-size:15px;line-height:1.8;text-wrap:pretty}
.hg-store .hgg-note{grid-area:note;align-self:end;margin:14px 0 0;color:var(--hg-muted);font-size:14px;line-height:1.6}
.hg-store .hgg-voice{grid-column:1;grid-row:1;align-self:end;box-sizing:border-box;height:var(--hgg-fig);padding-left:calc(var(--hgg-fig-w) + 14px)}
.hg-store .hgg-say{position:relative;margin:0;padding:14px 16px 15px;border-radius:16px;background:var(--hg-soft);color:var(--hg-ink);font-size:14px;line-height:1.75;transform-origin:0 38px}
.hg-store .hgg-say::before{content:"";position:absolute;left:-10px;top:30px;width:11px;height:18px;background:inherit;clip-path:polygon(0 35%,100% 0,100% 100%)}
.hg-store .hgg-say strong{display:flex;align-items:center;gap:6px;margin-bottom:4px;font-size:12px;font-weight:800;letter-spacing:.06em}
.hg-store .hgg-say svg{flex:none;width:16px;height:16px;color:var(--hg-red)}
.hg-store .hgg-more{margin:10px 0 0 4px}
/* смена ранга: новая иллюстрация проявляется поверх прежней, текст и реплика — следом */
.hg-store .hgg-panel :is(.hgg-photo,.hgg-code,.hgg-card h3,.hgg-detail,.hgg-note,.hgg-say,.hgg-more){opacity:0}
.hg-store .hgg-panel .hgg-say{transform:scale(.96)}
.hg-store .hgg-panel.is-active .hgg-photo{opacity:1;transition:opacity .34s ease}
.hg-store .hgg-panel.is-active :is(.hgg-code,.hgg-card h3,.hgg-detail,.hgg-note,.hgg-more){opacity:1;transition:opacity .24s ease .1s}
.hg-store .hgg-panel.is-active .hgg-say{opacity:1;transform:none;transition:opacity .24s ease .14s,transform .34s var(--hg-v1-ease) .14s}
.hg-store .hgg-panel.is-leaving .hgg-photo{opacity:1}
.hg-store .hgg-panel.is-leaving :is(.hgg-code,.hgg-card h3,.hgg-detail,.hgg-note,.hgg-say,.hgg-more){transition:opacity .1s ease}
@media (max-width:1100px){
  .hg-store .hgg{--hgg-fig:200px;--hgg-fig-w:148px}
  .hg-store .hgg-stage{padding:26px 28px 0}
  .hg-store .hgg-mascot{left:28px}
  .hg-store .hgg-panel{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;row-gap:22px}
  .hg-store .hgg-card{grid-column:1;grid-template-columns:200px minmax(0,1fr);padding-bottom:0}
  .hg-store .hgg-photo{width:200px;height:200px}
  .hg-store .hgg-voice{grid-row:2;height:auto;min-height:var(--hgg-fig);padding-bottom:22px}
  .hg-store .hgg-say{transform-origin:0 27px}
  .hg-store .hgg-say::before{top:18px}
}
@media (max-width:900px){
  .hg-store .hgg-tab{min-height:62px;padding:10px 4px}
  .hg-store .hgg-tab span{display:none}
}
@media (max-width:680px){
  .hg-store .hg-grades-lite{padding:57px 0}
  .hg-store .hg-grades-lite .jp-section-heading{margin-bottom:18px}
  .hg-store .hgg{--hgg-fig:164px;--hgg-fig-w:121px}
  .hg-store .hgg-tab{min-height:56px;padding:8px 2px}
  .hg-store .hgg-tab strong{font-size:21px}
  .hg-store .hgg-scale::before{border-radius:12px 12px 0 0}
  .hg-store .hgg-stage{padding:18px 16px 0;border-radius:0 0 16px 16px}
  .hg-store .hgg-mascot{left:10px}
  .hg-store .hgg-panel{row-gap:16px}
  .hg-store .hgg-card{grid-template-columns:104px minmax(0,1fr);grid-template-rows:auto 1fr auto auto;grid-template-areas:"photo code" "photo title" "detail detail" "note note";column-gap:14px}
  .hg-store .hgg-photo{width:104px;height:104px;border-radius:10px}
  .hg-store .hgg-code{margin:2px 0 4px;font-size:40px}
  .hg-store .hgg-card h3{margin:0;font-size:18px}
  .hg-store .hgg-detail{margin-top:14px;font-size:14px}
  .hg-store .hgg-note{margin-top:8px}
  /* реплика внизу справа от фигуры: хвост на высоте лица (≈137 px над кромкой), считается от нижнего края пузыря.
     Ссылка под репликой на телефоне не выводится: над головой осталась бы пустота; тот же переход — «ランクを詳しく見る» → /grades/ */
  .hg-store .hgg-voice{display:flex;align-items:flex-end;padding:0 0 16px calc(var(--hgg-fig-w) + 10px)}
  .hg-store .hgg-say{display:flex;flex-direction:column;justify-content:center;box-sizing:border-box;width:100%;min-height:140px;padding:12px 14px 13px;line-height:1.7;transform-origin:0 calc(100% - 121px)}
  .hg-store .hgg-say::before{top:auto;bottom:112px}
  .hg-store .hgg-more{display:none}
}
@media (prefers-reduced-motion:reduce){
  .hg-store .hgg-scale::before,.hg-store .hgg-tab :is(strong,span),.hg-store .hgg-panel :is(.hgg-photo,.hgg-code,.hgg-card h3,.hgg-detail,.hgg-note,.hgg-say,.hgg-more){transition:none!important}
  .hg-store .hgg-panel .hgg-say{transform:none}
}
/* ══ Главная v2: блок магазинов (parts/commerce-sections.php, раздел community) ══
   Полоса soft: маскот с упакованной шиной стоит на нижней кромке и выходит над полосой; Mercari Shops — логотип, ссылка, QR;
   Rakuten «準備中» — пунктирная карточка без фона. До 680 px фигура уступает место лицу у заголовка, QR скрыт. */
.hg-store .hgm{border-top:0}
.hg-store .hgm-band{position:relative;display:grid;grid-template-columns:200px minmax(0,1fr);grid-template-areas:"fig head" "fig channels";column-gap:30px;row-gap:22px;margin-top:56px;padding:34px 36px 34px 0;border-radius:20px;background:var(--hg-soft)}
.hg-store .hgm-figure{grid-area:fig;align-self:end;justify-self:center;margin:0 0 -34px;line-height:0;pointer-events:none}
.hg-store .hgm-figure img{display:block;width:auto;max-width:none;height:430px}
.hg-store .hgm-figure img[data-hg-mascot-theme=night]{display:none}
html[data-theme=dark] .hg-store .hgm-figure img[data-hg-mascot-theme=day]{display:none}
html[data-theme=dark] .hg-store .hgm-figure img[data-hg-mascot-theme=night]{display:block}
.hg-store .hgm-head{grid-area:head;display:flex;align-items:center;gap:14px;min-width:0}
.hg-store .hgm-head h2{margin:0;font-size:clamp(26px,2.6vw,38px);line-height:1.25;letter-spacing:-.01em;text-wrap:balance}
.hg-store .hgm-head p{margin:8px 0 0;color:var(--hg-muted);font-size:14px;line-height:1.7}
.hg-store .hgm-face{display:none}
.hg-store .hgm-channels{grid-area:channels;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:18px}
.hg-store .hgm-channel{display:flex;flex-direction:column;gap:12px;min-width:0;padding:22px 24px 20px;border:1px solid var(--hg-line);border-radius:16px;background:var(--hg-white)}
.hg-store .hgm-channel__top{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:48px}
.hg-store .hgm-channel h3{margin:0}
.hg-store .hgm-logo{line-height:0}
.hg-store .hgm-logo img{display:block;width:auto;height:52px;margin-left:-9px}
html[data-theme=dark] .hg-store .hgm-logo{padding:2px 6px 2px 14px;border-radius:10px;background:#fff}
.hg-store .hgm-wordmark{font-size:26px;font-weight:800;line-height:1.2;letter-spacing:-.02em}
.hg-store .hgm-wordmark span{margin-left:8px;color:var(--hg-muted);font-size:13px;font-weight:600;letter-spacing:0}
.hg-store .hgm-channel p{margin:0;color:var(--hg-muted);font-size:14px;line-height:1.75}
.hg-store .hgm-channel .hgc-market-status{font-size:12px}
.hg-store .hgm-actions{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:auto}
.hg-store .hgm-link{color:var(--hg-red);font-size:15px;font-weight:700}
.hg-store .hgm-qr{display:flex;flex-direction:column;align-items:center;gap:6px;flex:none;margin:0}
.hg-store .hgm-qr img{display:block;box-sizing:content-box;width:99px;height:99px;padding:12px;border-radius:10px;background:#fff;box-shadow:inset 0 0 0 1px var(--hg-line);image-rendering:pixelated}
.hg-store .hgm-qr figcaption{color:var(--hg-muted);font-size:12px;line-height:1.4}
.hg-store .hgm-channel--rakuten{border-style:dashed;background:transparent}
/* Mercari: QR справа на всю высоту карточки, статус рядом с логотипом, ссылка внизу слева */
.hg-store .hgm-channel--mercari{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto 1fr;grid-template-areas:"top qr" "text qr" "link qr";column-gap:22px;row-gap:10px}
.hg-store .hgm-channel--mercari .hgm-channel__top{grid-area:top;justify-content:flex-start;flex-wrap:wrap}
.hg-store .hgm-channel--mercari>p{grid-area:text}
.hg-store .hgm-channel--mercari .hgm-actions{display:contents}
.hg-store .hgm-channel--mercari .hgm-link{grid-area:link;align-self:end;justify-self:start}
.hg-store .hgm-channel--mercari .hgm-qr{grid-area:qr;align-self:center}
@media (max-width:1100px){
  .hg-store .hgm-band{grid-template-columns:150px minmax(0,1fr);column-gap:22px;padding-right:28px}
  .hg-store .hgm-figure img{height:330px}
}
@media (max-width:860px){
  .hg-store .hgm-channels{grid-template-columns:minmax(0,1fr);gap:14px}
  .hg-store .hgm-figure{align-self:end}
}
@media (max-width:680px){
  .hg-store .hgm-band{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "channels";row-gap:18px;margin-top:40px;padding:22px 16px 18px;border-radius:16px}
  .hg-store .hgm-figure,.hg-store .hgm-qr{display:none}
  .hg-store .hgm-face{position:relative;display:block;flex:none;width:56px;height:56px;border-radius:50%;overflow:hidden;background:var(--hg-white);box-shadow:0 0 0 2px var(--hg-white),0 4px 14px #0000001f}
  .hg-store .hgm-face img{display:block;width:100%;height:100%;object-fit:cover}
  .hg-store .hgm-face img[data-hg-mascot-theme=night],html[data-theme=dark] .hg-store .hgm-face img[data-hg-mascot-theme=day]{display:none}
  html[data-theme=dark] .hg-store .hgm-face img[data-hg-mascot-theme=night]{display:block}
  .hg-store .hgm-head{align-items:flex-start}
  .hg-store .hgm-head h2{font-size:24px}
  .hg-store .hgm-channel{padding:18px 16px 14px}
  .hg-store .hgm-channel--mercari{grid-template-columns:minmax(0,1fr);grid-template-areas:"top" "text" "link";column-gap:0}
  .hg-store .hgm-logo img{height:44px;margin-left:-8px}
  .hg-store .hgm-wordmark{font-size:22px}
}
/* ══ Подбор v2: справочные размеры (vehicle-selector.js references(), parts/home-fitment.php) ══
   Сводка автомобиля и ссылка на страницу автомобиля K2; штатный размер — крупный чип с действием, остальные — компактные чипы
   по посадочному диаметру. Главная и верхняя панель каталога (hgs--catalog) — одна разметка. */
.hg-store .hgs-ref-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 20px;margin:4px 0 14px}
.hg-store .hgs-ref-head .hgs-summary{margin:0;color:var(--hg-ink);font-size:15px;font-weight:700;text-align:left}
.hg-store .hgs-ref-all{display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--hg-red);font-size:14px;font-weight:700;text-decoration:none}
.hg-store .hgs-ref-all[hidden]{display:none}
.hg-store .hgs-ref-all svg{width:18px;height:18px;transition:transform .2s var(--hg-ease)}
@media (hover:hover){.hg-store .hgs-ref-all:hover svg{transform:translateX(4px)}}
.hg-store .hgs-references .hgs-ref-body{display:grid;gap:20px}
.hg-store .hgs-ref-group{min-width:0;padding:18px 20px;border:1px solid var(--hg-line);border-radius:14px;background:var(--hg-white)}
.hg-store .hgs-ref-group h4{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;margin:0 0 12px;color:var(--hg-ink);font-size:16px;font-weight:800;line-height:1.4;text-align:left}
.hg-store .hgs-ref-spec{color:var(--hg-muted);font-size:13px;font-weight:600}
.hg-store .hgs-ref-kind+.hgs-ref-kind{margin-top:16px;padding-top:14px;border-top:1px dashed var(--hg-line)}
.hg-store .hgs-ref-label{margin:0 0 8px;color:var(--hg-muted);font-size:13px;font-weight:700;line-height:1.5;text-align:left}
.hg-store .hgs-chips{display:flex;flex-wrap:wrap;gap:8px}
.hg-store .hgs-chip{display:inline-flex;align-items:center;gap:6px;min-height:40px;box-sizing:border-box;padding:6px 12px 6px 14px;border:1px solid var(--hg-line);border-radius:999px;background:var(--hg-white);color:var(--hg-ink);font-size:14px;line-height:1.3;text-decoration:none;transition:border-color .2s var(--hg-ease),background-color .2s var(--hg-ease)}
.hg-store .hgs-chip strong{font-weight:700;letter-spacing:.01em}
.hg-store .hgs-chip small{padding:1px 6px;border-radius:4px;background:var(--hg-soft);color:var(--hg-muted);font-size:11px;font-weight:700}
.hg-store a.hgs-chip:not(.hgs-chip--main)::after{content:"→";color:var(--hg-muted);font-weight:700;transition:color .2s var(--hg-ease)}
.hg-store .hgs-ref-more>summary{display:flex;align-items:center;gap:10px;min-height:44px;margin:0;cursor:pointer;list-style:none}
.hg-store .hgs-ref-more>summary::-webkit-details-marker{display:none}
.hg-store .hgs-ref-more>summary::after{content:"";flex:none;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s var(--hg-ease)}
.hg-store .hgs-ref-more[open]>summary{margin-bottom:6px}
.hg-store .hgs-ref-more[open]>summary::after{transform:translateY(2px) rotate(-135deg)}
.hg-store .hgs [data-hgs-show]{display:none}
.hg-store .hgs-chip--main{gap:14px;min-height:56px;padding:10px 18px 10px 16px;border-color:var(--hg-ink);border-radius:14px}
.hg-store .hgs-chip--main strong{font-size:20px}
.hg-store .hgs-chip-go{color:var(--hg-red);font-size:13px;font-weight:700}
.hg-store .hgs-chip-go::after{content:" →"}
@media (hover:hover){.hg-store a.hgs-chip:hover{border-color:var(--hg-ink);background:var(--hg-soft)}.hg-store a.hgs-chip:hover::after{color:var(--hg-red)}}
.hg-store .hgs-ref-inch{display:grid;grid-template-columns:78px minmax(0,1fr);align-items:start;gap:8px 12px}
.hg-store .hgs-ref-inch+.hgs-ref-inch{margin-top:8px}
.hg-store .hgs-ref-inch-label{padding-top:10px;color:var(--hg-muted);font-size:13px;font-weight:700;text-align:left}
/* верхняя панель каталога: та же иерархия плотнее */
.hg-store .hgs--catalog .hgs-ref-group{padding:14px 16px}
.hg-store .hgs--catalog .hgs-chip--main{min-height:48px}
.hg-store .hgs--catalog .hgs-chip--main strong{font-size:17px}
@media (max-width:680px){
  .hg-store .hgs-ref-group{padding:14px}
  .hg-store .hgs-ref-inch{grid-template-columns:minmax(0,1fr);gap:6px}
  .hg-store .hgs-ref-inch-label{padding-top:0}
  .hg-store .hgs-chip{min-height:44px}
  .hg-store .hgs-chip--main{flex-wrap:wrap;gap:4px 12px;width:100%}
}

/* Claude v2: фигура панели гида — плавное приглушение вместо смены поз и мгновенного скрытия (guide-mascot.js is-quiet, guide-k2.js data-hg-k2-mascot). */
.hg-guide__mascot{transition:opacity .3s ease,visibility 0s}
.hg-guide__mascot.is-quiet,html[data-hg-k2-mascot] .hg-guide__mascot{opacity:0;visibility:hidden;transition:opacity .3s ease,visibility 0s linear .3s}

/* Claude v2: калькуляторы гида (parts/fit-tools.php, assets/fit-tools.js). Карточка с двумя вкладками; раскладка — по ширине карточки
   (container query). До первого расчёта содержимое невидимо, место занято. line-break:strict — без «ー» в начале строки. */
.hg-store .jp-editorial{line-break:strict}
.hg-store .jp-editorial .hg-fit{container:hg-fit/inline-size;margin-block:8px 64px;padding:28px 28px 22px;border:1px solid var(--hg-line);border-radius:18px;background:var(--hg-white);color:var(--hg-ink);box-sizing:border-box}
.hg-store .jp-editorial .hg-fit [hidden]{display:none!important}
.hg-store .jp-editorial .hg-fit p{margin:0;font-size:14px;line-height:1.7;color:var(--hg-ink)}
.hg-store .jp-editorial .hg-fit__head h2{margin:0;font-size:24px;line-height:1.35;letter-spacing:-.01em;text-wrap:balance;word-break:auto-phrase}
.hg-store .jp-editorial .hg-fit__head p{margin-top:6px;color:var(--hg-muted)}
.hg-store .jp-editorial .hg-fit>noscript p{margin-top:12px}
html:not(.hg-guide-js) .hg-store .jp-editorial .hg-fit :is(.hg-fit-tabs,.hg-fit-stack){display:none}
html.hg-guide-js .hg-store .jp-editorial .hg-fit:not(.is-ready) .hg-fit-stack{visibility:hidden}
@keyframes hg-fit-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.hg-store .jp-editorial .hg-fit button{font-family:inherit;letter-spacing:0;text-transform:none}
.hg-store .jp-editorial .hg-fit :is(button,summary,select,input):focus-visible{outline:2px solid var(--hg-red);outline-offset:2px}
.hg-store .jp-editorial .hg-fit-tabs{display:inline-flex;gap:4px;margin:20px 0 0;padding:4px;border-radius:12px;background:var(--hg-soft)}
.hg-store .jp-editorial .hg-fit-tabs button{min-height:44px;margin:0;padding:8px 18px;border:0;border-radius:9px;background:transparent;color:var(--hg-muted);font-size:14px;font-weight:700;line-height:1.3;text-wrap:balance;word-break:auto-phrase;cursor:pointer;transition:background-color .2s ease,color .2s ease,box-shadow .2s ease}
.hg-store .jp-editorial .hg-fit-tabs button:is(:hover,:focus,:active){background:transparent;color:var(--hg-ink)}
.hg-store .jp-editorial .hg-fit-tabs button[aria-selected=true]{background:var(--hg-white);color:var(--hg-ink);box-shadow:0 0 0 1px var(--hg-line),0 2px 6px #0000000f}
.hg-store .jp-editorial .hg-fit-stack{margin-top:22px}
.hg-store .jp-editorial .hg-fit-panel{min-width:0}
.hg-store .jp-editorial .hg-fit-panel.is-entering{animation:hg-fit-in .24s ease both}
.hg-store .jp-editorial .hg-fit-grid{display:grid;gap:22px}
@container hg-fit (min-width:700px){.hg-store .jp-editorial .hg-fit-grid{grid-template-columns:minmax(0,290px) minmax(0,1fr);gap:24px 36px;align-items:start}}
/* управление: «было» — серый, «стало» — красный контур, как на схеме */
.hg-store .jp-editorial .hg-fit-group{min-width:0;margin:0 0 16px;padding:0;border:0}
.hg-store .jp-editorial .hg-fit-group legend{display:flex;align-items:center;gap:8px;margin:0 0 2px;padding:0;font-size:14px;font-weight:700;line-height:1.5;color:var(--hg-ink)}
.hg-store .jp-editorial .hg-fit-group legend::before{content:"";flex:none;width:16px;height:10px;border-radius:3px;background:color-mix(in srgb,var(--hg-muted) 30%,transparent)}
.hg-store .jp-editorial .hg-fit-group--next legend::before{background:color-mix(in srgb,var(--hg-red) 12%,transparent);box-shadow:inset 0 0 0 2px var(--hg-red)}
.hg-store .jp-editorial .hg-fit-made legend::before{display:none}
.hg-store .jp-editorial .hg-fit-range{margin-top:8px}
.hg-store .jp-editorial .hg-fit-range__head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.hg-store .jp-editorial .hg-fit-range label{display:block;margin:0;font-size:12px;line-height:1.5;color:var(--hg-muted)}
.hg-store .jp-editorial .hg-fit-range__row{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;gap:10px}
.hg-store .jp-editorial .hg-fit-step{position:relative;display:grid;place-items:center;width:36px;height:36px;margin:0;padding:0;border:1px solid var(--hg-line);border-radius:50%;background:var(--hg-white);color:var(--hg-ink);font-size:18px;font-weight:600;line-height:1;cursor:pointer;transition:border-color .2s ease,opacity .2s ease}
.hg-store .jp-editorial .hg-fit-step::after{content:"";position:absolute;inset:-4px}
.hg-store .jp-editorial .hg-fit-step:is(:hover,:focus,:active){background:var(--hg-white);color:var(--hg-ink);border-color:var(--hg-ink)}
.hg-store .jp-editorial .hg-fit-step[aria-disabled=true]{opacity:.35;cursor:default}
.hg-store .jp-editorial .hg-fit-step[aria-disabled=true]:is(:hover,:focus,:active){border-color:var(--hg-line)}
.hg-store .jp-editorial .hg-fit output{font-size:16px;font-weight:700;line-height:1.3;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.hg-store .jp-editorial .hg-fit input[type=range]{--fill:var(--hg-red);-webkit-appearance:none;appearance:none;display:block;width:100%;min-width:0;height:36px;margin:0;padding:0;border:0;background:transparent;cursor:pointer}
.hg-store .jp-editorial .hg-fit .hg-fit-group:not(.hg-fit-group--next) input[type=range]{--fill:var(--hg-muted)}
.hg-store .jp-editorial .hg-fit input[type=range]:focus{outline:none}
.hg-store .jp-editorial .hg-fit input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:linear-gradient(to right,var(--fill) var(--p,50%),var(--hg-line) var(--p,50%))}
.hg-store .jp-editorial .hg-fit input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;box-sizing:border-box;width:22px;height:22px;margin-top:-9px;border:2px solid var(--fill);border-radius:50%;background:var(--hg-white);box-shadow:0 1px 3px #0000002e}
.hg-store .jp-editorial .hg-fit input[type=range]::-moz-range-track{height:4px;border-radius:2px;background:var(--hg-line)}
.hg-store .jp-editorial .hg-fit input[type=range]::-moz-range-progress{height:4px;border-radius:2px;background:var(--fill)}
.hg-store .jp-editorial .hg-fit input[type=range]::-moz-range-thumb{box-sizing:border-box;width:22px;height:22px;border:2px solid var(--fill);border-radius:50%;background:var(--hg-white)}
.hg-store .jp-editorial .hg-fit input[type=range]:focus-visible::-webkit-slider-thumb{border-color:var(--hg-red);box-shadow:0 0 0 4px color-mix(in srgb,var(--hg-red) 30%,transparent)}
.hg-store .jp-editorial .hg-fit input[type=range]:focus-visible::-moz-range-thumb{border-color:var(--hg-red);box-shadow:0 0 0 4px color-mix(in srgb,var(--hg-red) 30%,transparent)}
.hg-store .jp-editorial .hg-fit summary{display:flex;align-items:center;gap:8px;min-height:44px;font-size:13px;font-weight:700;line-height:1.5;color:var(--hg-ink);cursor:pointer;list-style:none}
.hg-store .jp-editorial .hg-fit summary::-webkit-details-marker{display:none}
.hg-store .jp-editorial .hg-fit summary::after{content:"";flex:none;width:7px;height:7px;margin-left:auto;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s ease}
.hg-store .jp-editorial .hg-fit details[open]>summary::after{transform:translateY(2px) rotate(-135deg)}
.hg-store .jp-editorial .hg-fit-more{border-top:1px solid var(--hg-line)}
.hg-store .jp-editorial .hg-fit-more__body{display:grid;gap:12px;padding:2px 0 6px}
.hg-store .jp-editorial .hg-fit-field{display:grid;gap:4px;margin:0;font-size:12px;line-height:1.5;color:var(--hg-muted)}
.hg-store .jp-editorial .hg-fit :is(select,input[type=number]){box-sizing:border-box;width:100%;height:44px;min-height:44px;margin:0;padding:8px 10px;border:1px solid var(--hg-line);border-radius:8px;background-color:var(--hg-paper);color:var(--hg-ink);font-family:inherit;font-size:15px;line-height:1.3;font-variant-numeric:tabular-nums}
.hg-store .jp-editorial .hg-fit-unit{display:flex;align-items:center;gap:8px;color:var(--hg-ink);font-size:14px}
.hg-store .jp-editorial .hg-fit-unit input{max-width:120px}
.hg-store .jp-editorial .hg-fit-size{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:6px;margin-top:4px}
.hg-store .jp-editorial .hg-fit-size__part{display:grid;gap:4px;min-width:0;margin:0;font-size:12px;line-height:1.5;color:var(--hg-muted)}
.hg-store .jp-editorial .hg-fit-size select{padding:8px 4px 8px 8px}
.hg-store .jp-editorial .hg-fit-size__sep{padding-bottom:10px;font-size:16px;font-weight:700;line-height:1.5;color:var(--hg-muted)}
.hg-store .jp-editorial .hg-fit-made label{display:flex;align-items:center;gap:10px;min-height:44px;margin:0;font-size:14px;line-height:1.4;color:var(--hg-ink);cursor:pointer}
.hg-store .jp-editorial .hg-fit-made input{flex:none;width:20px;height:20px;margin:0;accent-color:var(--hg-red)}
/* результат: схема, цифры, реплика маскота */
.hg-store .jp-editorial .hg-fit-view{display:grid;gap:14px;min-width:0}
.hg-store .jp-editorial .hg-fit-svg{display:block;width:100%;height:auto;overflow:visible;font-size:calc(var(--u,1) * 12px)}
.hg-store .jp-editorial .hg-fit-svg text{fill:var(--hg-muted);font-weight:600}
.hg-store .jp-editorial .hg-fit-svg .hg-fit-svg__value{fill:var(--hg-red);font-weight:700;font-variant-numeric:tabular-nums}
.hg-store .jp-editorial .hg-fit-svg .hg-fit-svg__label{fill:var(--hg-ink)}
.hg-store .jp-editorial .hg-fit-svg__old,.hg-store .jp-editorial .hg-fit-svg__tyre{fill:color-mix(in srgb,var(--hg-muted) 24%,transparent)}
.hg-store .jp-editorial .hg-fit-svg__wheel{fill:var(--hg-white)}
.hg-store .jp-editorial .hg-fit-svg__new{fill:none;stroke:var(--hg-red);stroke-width:2;vector-effect:non-scaling-stroke}
.hg-store .jp-editorial .hg-fit-svg__new--rim{stroke-width:1.5;stroke-dasharray:4 3}
.hg-store .jp-editorial .hg-fit-svg__face{stroke:var(--hg-ink);stroke-width:1.5;stroke-dasharray:5 4;vector-effect:non-scaling-stroke}
.hg-store .jp-editorial .hg-fit-svg__arrow{stroke:var(--hg-red);stroke-width:1.5;vector-effect:non-scaling-stroke}
.hg-store .jp-editorial .hg-fit-svg marker path{fill:var(--hg-red)}
.hg-store .jp-editorial .hg-fit-svg__limit{stroke:var(--hg-ink);stroke-width:3;stroke-linecap:round;vector-effect:non-scaling-stroke}
.hg-store .jp-editorial .hg-fit-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin:0;border:1px solid var(--hg-line);border-radius:12px;background:var(--hg-line);overflow:hidden}
.hg-store .jp-editorial .hg-fit-results>div{min-width:0;padding:10px 14px 11px;background:var(--hg-white)}
.hg-store .jp-editorial .hg-fit-results dt{margin:0;font-size:12px;font-weight:600;line-height:1.5;color:var(--hg-muted)}
.hg-store .jp-editorial .hg-fit-results dd{min-height:31px;margin:2px 0 0;color:var(--hg-ink);line-height:1.4}
.hg-store .jp-editorial .hg-fit-num{font-size:22px;font-weight:700;line-height:1.4;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.hg-store .jp-editorial .hg-fit-mm{font-size:13px;font-weight:600;color:var(--hg-muted)}
.hg-store .jp-editorial .hg-fit-dir{font-size:13px;font-weight:700;color:var(--hg-muted)}
.hg-store .jp-editorial .hg-fit-mm:lang(ja){margin-left:2px}
.hg-store .jp-editorial .hg-fit-dir:lang(ja){margin-left:6px}
.hg-store .jp-editorial .hg-fit-results dd[data-tone=watch] .hg-fit-dir{color:var(--hg-red)}
.hg-store .jp-editorial .hg-fit .hg-fit-src{font-size:12px;line-height:1.65;color:var(--hg-muted)}
.hg-store .jp-editorial .hg-fit :is(.hg-fit-gaps,.hg-fit-rim){display:grid;gap:2px;padding:10px 14px;border-radius:10px;background:var(--hg-soft)}
.hg-store .jp-editorial .hg-fit .hg-fit-gaps__title{font-size:12px;font-weight:700;color:var(--hg-muted)}
.hg-store .jp-editorial .hg-fit .hg-fit-gaps p:is([data-zone="2"],[data-zone="3"]),.hg-store .jp-editorial .hg-fit .hg-fit-rim[data-tone=watch] p[data-res=rim]{color:var(--hg-red);font-weight:700}
.hg-store .jp-editorial .hg-fit-voice{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:start;gap:14px;margin-top:2px}
.hg-store .jp-editorial .hg-fit-face{display:block;width:56px;height:56px;border-radius:50%;overflow:hidden;background:var(--hg-white);box-shadow:0 0 0 1px var(--hg-line)}
.hg-store .jp-editorial .hg-fit-face img{display:block;width:100%;height:100%;object-fit:cover}
.hg-store .jp-editorial .hg-fit-face img[data-hg-mascot-theme=night],html[data-theme=dark] .hg-store .jp-editorial .hg-fit-face img[data-hg-mascot-theme=day]{display:none}
html[data-theme=dark] .hg-store .jp-editorial .hg-fit-face img[data-hg-mascot-theme=night]{display:block}
.hg-store .jp-editorial .hg-fit .hg-fit-say{position:relative;min-height:calc(3.5em + 25px);padding:12px 16px 13px;border-radius:16px;background:var(--hg-soft);font-size:14px;line-height:1.75}
.hg-store .jp-editorial .hg-fit .hg-fit-say::before{content:"";position:absolute;left:-10px;top:18px;width:11px;height:18px;background:inherit;clip-path:polygon(0 35%,100% 0,100% 100%)}
.hg-store .jp-editorial .hg-fit-voice:not(:has(.hg-fit-face)){grid-template-columns:minmax(0,1fr)}
.hg-store .jp-editorial .hg-fit-voice:not(:has(.hg-fit-face)) .hg-fit-say::before{display:none}
.hg-store .jp-editorial .hg-fit-formula{margin-top:18px;border-top:1px solid var(--hg-line)}
.hg-store .jp-editorial .hg-fit-formula p{padding:0 0 6px;font-size:13px;color:var(--hg-muted);font-variant-numeric:tabular-nums}
.hg-store .jp-editorial .hg-fit .hg-fit-note{margin-top:10px;font-size:12px;line-height:1.7;color:var(--hg-muted)}
.hg-store .jp-editorial .hg-fit-grid+.hg-fit-note{margin-top:18px}
.hg-store .jp-editorial .hg-fit .hg-fit-foot{margin-top:16px;padding-top:14px;border-top:1px solid var(--hg-line);font-size:12px;line-height:1.7;color:var(--hg-muted)}
/* диаметр × спидометр */
.hg-store .jp-editorial .hg-fit-compare{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:16px}
.hg-store .jp-editorial .hg-fit-results--speed{grid-template-columns:minmax(0,1fr)}
@container hg-fit (min-width:700px){.hg-store .jp-editorial .hg-fit-compare{grid-template-columns:132px minmax(0,1fr)}.hg-store .jp-editorial .hg-fit-results--speed{grid-template-columns:repeat(3,minmax(0,1fr))}}
.hg-store .jp-editorial .hg-fit-table{width:100%;margin:0;border-collapse:collapse;font-variant-numeric:tabular-nums}
.hg-store .jp-editorial .hg-fit-table :is(th,td){padding:8px 6px;border:0;border-bottom:1px solid var(--hg-line);background:none;color:var(--hg-ink);font-size:13px;font-weight:600;line-height:1.4;text-align:right}
.hg-store .jp-editorial .hg-fit-table th[scope=row]{padding-left:0;color:var(--hg-muted);text-align:left;white-space:nowrap}
.hg-store .jp-editorial .hg-fit-table thead th{color:var(--hg-muted)}
.hg-store .jp-editorial .hg-fit-table td{font-size:16px;font-weight:700}
.hg-store .jp-editorial .hg-fit-table td:empty::before{content:"0"}
.hg-store .jp-editorial .hg-fit-results [data-res=d-diff]{min-height:49px}
.hg-store .jp-editorial .hg-fit-results [data-res=d-diff] .hg-fit-dir{display:block;margin:0}
.hg-store .jp-editorial .hg-fit-table :is(thead th:nth-child(2),td:first-of-type){background:var(--hg-soft)}
.hg-store .jp-editorial .hg-fit-gauge{display:grid;gap:6px;padding:12px 14px;border:1px solid var(--hg-line);border-radius:12px}
.hg-store .jp-editorial .hg-fit .hg-fit-gauge__title{font-size:12px;font-weight:700;color:var(--hg-muted)}
.hg-store .jp-editorial .hg-fit-gauge__bar{position:relative;height:10px;margin:10px 0 0;border-radius:5px;background:var(--hg-soft)}
.hg-store .jp-editorial .hg-fit-gauge__ok{position:absolute;top:0;bottom:0;border-radius:5px;background:color-mix(in srgb,var(--hg-ink) 24%,transparent)}
.hg-store .jp-editorial .hg-fit-gauge__mark{position:absolute;top:-6px;width:4px;height:22px;border-radius:2px;background:var(--hg-ink);box-shadow:0 0 0 2px var(--hg-white);transform:translateX(-50%)}
.hg-store .jp-editorial .hg-fit-gauge[data-tone=watch] .hg-fit-gauge__mark{background:var(--hg-red)}
.hg-store .jp-editorial .hg-fit-gauge__scale{position:relative;height:18px;color:var(--hg-muted);font-size:11px;font-weight:600;line-height:18px;font-variant-numeric:tabular-nums}
.hg-store .jp-editorial .hg-fit-gauge__scale span{position:absolute;top:0;white-space:nowrap;transform:translateX(-50%)}
.hg-store .jp-editorial .hg-fit .hg-fit-gauge__text{min-height:1.7em;font-size:14px;font-weight:700}
.hg-store .jp-editorial .hg-fit .hg-fit-src[data-res=tire]{min-height:1.65em}
.hg-store .jp-editorial .hg-fit-gauge[data-tone=watch] .hg-fit-gauge__text{color:var(--hg-red)}
/* одна колонка: схема — над ползунками, чтобы двигать и видеть сразу; цифры и реплика — ниже (display:contents у колонки результата) */
@container hg-fit (max-width:699px){
  .hg-store .jp-editorial .hg-fit-grid{display:flex;flex-direction:column;gap:16px}
  .hg-store .jp-editorial .hg-fit-view{display:contents}
  .hg-store .jp-editorial :is(.hg-fit-svg--top,.hg-fit-compare){order:-1}
  .hg-store .jp-editorial .hg-fit-group{margin-bottom:10px}
}
@container hg-fit (max-width:520px){
  .hg-store .jp-editorial .hg-fit-tabs{display:flex}
  .hg-store .jp-editorial .hg-fit-tabs button{flex:1 1 0;padding:8px 10px;font-size:13px}
  .hg-store .jp-editorial .hg-fit-num{font-size:20px}
  .hg-store .jp-editorial .hg-fit-results>div{padding:9px 12px 10px}
  /* место под тексты расчёта на узком экране (3 строки реплики, 2 строки пояснений) — значения появляются без сдвига статьи */
  .hg-store .jp-editorial .hg-fit .hg-fit-say{min-height:calc(5.25em + 25px)}
  .hg-store .jp-editorial .hg-fit .hg-fit-src[data-res=tire]{min-height:3.3em}
  .hg-store .jp-editorial .hg-fit .hg-fit-gauge__text{min-height:3.4em}
}
@media (max-width:680px){
  .hg-store .jp-editorial .hg-fit{margin-block:4px 48px;padding:20px 16px 18px;border-radius:14px}
  .hg-store .jp-editorial .hg-fit__head h2{font-size:21px}
}
@media (prefers-reduced-motion:reduce){
  .hg-guide__mascot,.hg-guide__mascot.is-quiet,html[data-hg-k2-mascot] .hg-guide__mascot,.hg-store .jp-editorial .hg-fit :is(.hg-fit-tabs button,.hg-fit-step),.hg-store .jp-editorial .hg-fit summary::after{transition:none}
  .hg-store .jp-editorial .hg-fit-panel.is-entering{animation:none}
}

/* Claude v2: справочные таблицы гида свёрнуты (inc/guide-progress.php hg_guide_table_html) — строка раскрытия в виде карточки примера. */
.hg-store .jp-editorial section .hg-guide-table--fold>summary{display:flex;align-items:center;gap:10px;min-height:52px;padding:8px 16px;border:1px solid var(--hg-line);border-radius:12px;background:var(--hg-white);color:var(--hg-ink);cursor:pointer;list-style:none;transition:border-color .2s ease}
.hg-store .jp-editorial section .hg-guide-table--fold>summary::-webkit-details-marker{display:none}
.hg-store .jp-editorial section .hg-guide-table--fold>summary::after{content:"";flex:none;width:7px;height:7px;margin-left:auto;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s ease}
.hg-store .jp-editorial section .hg-guide-table--fold[open]>summary{margin-bottom:10px}
.hg-store .jp-editorial section .hg-guide-table--fold[open]>summary::after{transform:translateY(2px) rotate(-135deg)}
.hg-store .jp-editorial section .hg-guide-table--fold>summary:focus-visible{outline:2px solid var(--hg-red);outline-offset:2px}
@media (hover:hover){.hg-store .jp-editorial section .hg-guide-table--fold>summary:hover{border-color:var(--hg-ink)}}
.hg-store .jp-editorial section .hg-guide-table__title{min-width:0;font-size:14px;font-weight:700;line-height:1.5}
.hg-store .jp-editorial section .hg-guide-table__count{flex:none;padding:2px 8px;border-radius:999px;background:var(--hg-soft);color:var(--hg-muted);font-size:12px;font-weight:600;line-height:1.5;font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion:reduce){.hg-store .jp-editorial section .hg-guide-table--fold>summary,.hg-store .jp-editorial section .hg-guide-table--fold>summary::after{transition:none}}

/* Claude v2: «О нас» вокруг маскота (parts/company.php): приветствие в сцене магазина, три главы работы, фото, визитка компании, связь. */
.hg-store .jp-editorial.hg-about-page{max-width:1120px}
.hg-store .jp-editorial .hg-about{--hg-about-gap:88px}
.hg-store .jp-editorial .hg-about :is(h1,h2,h3){text-wrap:balance;word-break:auto-phrase}
/* реплика маскота: пузырь с хвостом; с лицом — хвост к лицу слева */
.hg-store .jp-editorial .hg-about-say{position:relative;display:flex;align-items:flex-start;gap:12px}
.hg-store .jp-editorial .hg-about-say p{position:relative;flex:1 1 auto;min-width:0;margin:0;padding:14px 18px 15px;border-radius:16px;background:var(--hg-soft);color:var(--hg-ink);font-size:15px;line-height:1.8}
.hg-store .jp-editorial .hg-about-say.has-face p::before{content:"";position:absolute;left:-9px;top:15px;width:10px;height:16px;background:inherit;clip-path:polygon(0 50%,100% 0,100% 100%)}
.hg-store .jp-editorial .hg-about-face{flex:none;display:block;width:48px;height:48px;border-radius:50%;overflow:hidden;background:var(--hg-white);box-shadow:0 0 0 1px var(--hg-line)}
.hg-store .jp-editorial .hg-about-face img{display:block;width:100%;height:100%;object-fit:cover}
.hg-store .jp-editorial .hg-about :is(.hg-about-face,.hg-about-host) img[data-hg-mascot-theme=night],html[data-theme=dark] .hg-store .jp-editorial .hg-about :is(.hg-about-face,.hg-about-host) img[data-hg-mascot-theme=day]{display:none}
html[data-theme=dark] .hg-store .jp-editorial .hg-about :is(.hg-about-face,.hg-about-host) img[data-hg-mascot-theme=night]{display:block}
/* сцены день/ночь (guide-figures.css на этой странице не подключён) */
.hg-store .jp-editorial .hg-about [data-hg-scene-theme=night],html[data-theme=dark] .hg-store .jp-editorial .hg-about [data-hg-scene-theme=day]{display:none}
html[data-theme=dark] .hg-store .jp-editorial .hg-about [data-hg-scene-theme=night]{display:block}
/* заголовок: текст и приветствие слева, сцена магазина справа (кадр 4:5 с маскотом) */
.hg-store .jp-editorial .hg-about-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,440px);grid-template-areas:"lead scene" ". note";column-gap:56px;align-items:start;padding:22px 0 0}
.hg-store .jp-editorial .hg-about-hero__lead{grid-area:lead;align-self:center;padding-bottom:24px}
.hg-store .jp-editorial .hg-about-hero__text{grid-area:text}
.hg-store .jp-editorial .hg-about-hero h1{margin:10px 0 0;font-size:clamp(34px,4.2vw,54px);line-height:1.16;letter-spacing:-.03em}
.hg-store .jp-editorial .hg-about-hero__intro{max-width:34em;margin:18px 0 0;color:var(--hg-muted);font-size:16px;line-height:1.9}
.hg-store .jp-editorial .hg-about-hero__scene{grid-area:scene;margin:0}
.hg-store .jp-editorial .hg-about-hero__frame{position:relative;display:block;aspect-ratio:4/5;border-radius:20px;overflow:hidden;background:var(--hg-soft)}
.hg-store .jp-editorial .hg-about-hero__frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:0% 50%}
.hg-store .jp-editorial .hg-about-say--hero{grid-area:say;max-width:30em;margin-top:30px}
.hg-store .jp-editorial .hg-about-say--hero:not(.has-face) p::after{content:"";position:absolute;right:-10px;top:26px;width:11px;height:18px;background:inherit;clip-path:polygon(0 0,100% 50%,0 100%)}
.hg-store .jp-editorial .hg-about-hero__note{grid-area:note;margin:10px 0 0;color:var(--hg-muted);font-size:12px;line-height:1.6}
/* главы работы: сцена той же комнаты и текст, стороны чередуются */
.hg-store .jp-editorial .hg-about :is(.hg-about-work,.hg-about-store,.hg-about-company){margin-top:var(--hg-about-gap)}
.hg-store .jp-editorial .hg-about :is(.hg-about-work,.hg-about-store,.hg-about-company)>h2{margin:0 0 30px;font-size:clamp(24px,2.6vw,32px);line-height:1.3;letter-spacing:-.02em}
.hg-store .jp-editorial .hg-about-chapters{display:grid;gap:64px;margin:0;padding:0;list-style:none;counter-reset:none}
.hg-store .jp-editorial .hg-about-chapter{display:grid;grid-template-columns:minmax(0,46%) minmax(0,1fr);align-items:center;gap:22px 52px;margin:0;padding:0}
.hg-store .jp-editorial .hg-about-chapter:nth-child(even) .hg-about-chapter__scene{order:2}
.hg-store .jp-editorial .hg-about-chapter.is-plain{grid-template-columns:minmax(0,1fr)}
.hg-store .jp-editorial .hg-about-chapter__scene{position:relative;margin:0}
.hg-store .jp-editorial .hg-about-chapter__frame{display:block;aspect-ratio:4/3;border-radius:18px;overflow:hidden;background:var(--hg-soft)}
.hg-store .jp-editorial .hg-about-chapter__frame img{width:100%;height:100%;object-fit:cover}
.hg-store .jp-editorial .hg-about-chapter__num{margin:0;color:var(--hg-red);font-size:12px;font-weight:700;line-height:1.5;letter-spacing:.1em}
.hg-store .jp-editorial .hg-about-chapter h3{margin:10px 0 0;font-size:clamp(21px,2.1vw,26px);line-height:1.4;letter-spacing:-.01em}
.hg-store .jp-editorial .hg-about-chapter__copy>p:not(.hg-about-chapter__num):not(.hg-about-chapter__links){margin:14px 0 0;color:var(--hg-muted);font-size:16px;line-height:1.95}
.hg-store .jp-editorial .hg-about-chapter__links{display:flex;flex-wrap:wrap;gap:8px 22px;margin:16px 0 0}
/* фото магазина */
.hg-store .jp-editorial .hg-about-store__photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.hg-store .jp-editorial .hg-about-photo{position:relative;margin:0}
.hg-store .jp-editorial .hg-about-photo img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:16px;background:var(--hg-soft)}
/* визитка компании: днём бумажная карточка, ночью — тёмная с белым вордмарком (Claude v3); фигура справа указывает на неё */
.hg-store .jp-editorial .hg-about-company__body{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.hg-store .jp-editorial .hg-about-company__body.has-host{grid-template-columns:minmax(0,1fr) 250px;grid-template-areas:"card say" "card host";column-gap:24px;align-items:start}
.hg-store .jp-editorial .hg-about-card{grid-area:card;position:relative;overflow:hidden;padding:34px 34px 28px;border:1px solid #e4e2dd;border-radius:16px;background:#fff;color:#181a1d;box-shadow:0 18px 44px #171b2214}
.hg-store .jp-editorial .hg-about-card::before{content:"";position:absolute;inset:0 0 auto;height:6px;background:#c92720}
.hg-store .jp-editorial .hg-about-card__logo{display:block;width:250px;max-width:100%;height:auto}
.hg-store .jp-editorial .hg-about-card__facts{margin:24px 0 0}
.hg-store .jp-editorial .hg-about-card__facts>div{display:grid;grid-template-columns:150px minmax(0,1fr);gap:2px 18px;padding:11px 0;border-top:1px solid #ecebe7}
.hg-store .jp-editorial .hg-about-card__facts dt{margin:0;color:#60656a;font-size:12px;font-weight:700;line-height:1.75}
.hg-store .jp-editorial .hg-about-card__facts dd{margin:0;color:#181a1d;font-size:15px;line-height:1.75;overflow-wrap:anywhere}
.hg-store .jp-editorial .hg-about-card__facts a{color:inherit;text-decoration:underline;text-decoration-color:#c92720;text-underline-offset:3px}
.hg-store .jp-editorial .hg-about-card__actions{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 0}
.hg-store .jp-editorial .hg-about-action{display:inline-flex;align-items:center;min-height:44px;padding:10px 18px;border:1px solid #181a1d;border-radius:999px;background:#fff;color:#181a1d;font-size:14px;font-weight:700;line-height:1.3;text-decoration:none;transition:background-color .2s ease,color .2s ease}
.hg-store .jp-editorial .hg-about-action:first-child{border-color:#c92720;background:#c92720;color:#fff}
@media (hover:hover){.hg-store .jp-editorial .hg-about-action:hover{background:#181a1d;border-color:#181a1d;color:#fff}}
.hg-store .jp-editorial .hg-about :is(a,.hg-about-action):focus-visible{outline:2px solid var(--hg-red);outline-offset:3px}
.hg-store .jp-editorial .hg-about-card .jp-kabu-night,html[data-theme=dark] .hg-store .jp-editorial .hg-about-card .jp-kabu-day{display:none}
html[data-theme=dark] .hg-store .jp-editorial .hg-about-card .jp-kabu-night{display:block}
html[data-theme=dark] .hg-store .jp-editorial .hg-about-card{background:var(--hg-white);border-color:var(--hg-line);color:var(--hg-ink);box-shadow:0 18px 50px #0007}
html[data-theme=dark] .hg-store .jp-editorial .hg-about-card__facts>div{border-top-color:var(--hg-line)}
html[data-theme=dark] .hg-store .jp-editorial .hg-about-card__facts dt{color:var(--hg-muted)}
html[data-theme=dark] .hg-store .jp-editorial .hg-about-card__facts dd{color:var(--hg-ink)}
html[data-theme=dark] .hg-store .jp-editorial .hg-about-action{border-color:var(--hg-ink);background:transparent;color:var(--hg-ink)}
html[data-theme=dark] .hg-store .jp-editorial .hg-about-action:first-child{border-color:var(--hg-action);background:var(--hg-action);color:#fff}
@media (hover:hover){html[data-theme=dark] .hg-store .jp-editorial .hg-about-action:hover{background:var(--hg-ink);border-color:var(--hg-ink);color:var(--hg-paper)}}
.hg-store .jp-editorial .hg-about-say--host{grid-area:say}
.hg-store .jp-editorial .has-host .hg-about-say--host .hg-about-face{display:none}
.hg-store .jp-editorial .has-host .hg-about-say--host p::before{display:none}
.hg-store .jp-editorial .has-host .hg-about-say--host p::after{content:"";position:absolute;left:46%;bottom:-10px;width:18px;height:11px;background:inherit;clip-path:polygon(0 0,100% 0,50% 100%)}
.hg-store .jp-editorial .hg-about-host{grid-area:host;justify-self:center;margin:4px 0 0;line-height:0}
.hg-store .jp-editorial .hg-about-host img{display:block;width:auto;height:340px}
/* связь: реплика в контрастном пузыре на сером блоке */
.hg-store .jp-editorial .hg-about-contact{margin-top:28px}
.hg-store .jp-editorial .hg-about-contact .hg-about-say{max-width:44em}
.hg-store .jp-editorial .hg-about-contact .hg-about-say p{background:var(--hg-white);color:var(--hg-ink)}
@media (max-width:899px){
  .hg-store .jp-editorial .hg-about{--hg-about-gap:64px}
  .hg-store .jp-editorial .hg-about-hero{grid-template-columns:minmax(0,1fr);grid-template-areas:"text" "scene" "say" "note";row-gap:0;padding-top:8px}
  .hg-store .jp-editorial .hg-about-hero__lead{display:contents}
  .hg-store .jp-editorial .hg-about-hero__scene{margin-top:24px}
  .hg-store .jp-editorial .hg-about-hero__frame{aspect-ratio:4/3;border-radius:16px}
  .hg-store .jp-editorial .hg-about-say--hero{max-width:none;margin-top:16px}
  .hg-store .jp-editorial .hg-about-say--hero:not(.has-face) p::after{right:auto;left:calc(31% - 9px);top:-10px;width:18px;height:11px;clip-path:polygon(50% 0,100% 100%,0 100%)}
}
@media (max-width:760px){
  .hg-store .jp-editorial .hg-about-chapters{gap:44px}
  .hg-store .jp-editorial .hg-about-chapter{grid-template-columns:minmax(0,1fr)}
  .hg-store .jp-editorial .hg-about-chapter:nth-child(even) .hg-about-chapter__scene{order:0}
  .hg-store .jp-editorial .hg-about-company__body.has-host{grid-template-columns:minmax(0,1fr);grid-template-areas:"say" "card"}
  .hg-store .jp-editorial .hg-about-host{display:none}
  .hg-store .jp-editorial .has-host .hg-about-say--host .hg-about-face{display:block}
  .hg-store .jp-editorial .has-host .hg-about-say--host p::before{display:block}
  .hg-store .jp-editorial .has-host .hg-about-say--host p::after{display:none}
}
@media (max-width:680px){
  .hg-store .jp-editorial .hg-about-store__photos{grid-template-columns:minmax(0,1fr);gap:12px}
  .hg-store .jp-editorial .hg-about-card{padding:28px 20px 22px}
  .hg-store .jp-editorial .hg-about-card__logo{width:210px}
  .hg-store .jp-editorial .hg-about-card__facts>div{grid-template-columns:minmax(0,1fr);gap:0}
  .hg-store .jp-editorial .hg-about-say p{font-size:14px}
}
@media (prefers-reduced-motion:reduce){.hg-store .jp-editorial .hg-about-action{transition:none}}

/* Claude v2: «タイヤ交換・組み替え» (parts/tire-service.php): маскот в позе ухода за колесом, карточки цен 4本 по классам диаметра, работы по колесу, опции, визит. */
.hg-store .jp-editorial.hg-service-page{max-width:1120px}
.hg-store .jp-editorial .hg-service :is(h1,h2,h3){text-wrap:balance;word-break:auto-phrase}
.hg-store .jp-editorial .hg-service :is(.hg-about-face,.hg-service-figure) img[data-hg-mascot-theme=night],html[data-theme=dark] .hg-store .jp-editorial .hg-service :is(.hg-about-face,.hg-service-figure) img[data-hg-mascot-theme=day]{display:none}
html[data-theme=dark] .hg-store .jp-editorial .hg-service :is(.hg-about-face,.hg-service-figure) img[data-hg-mascot-theme=night]{display:block}
.hg-store .jp-editorial .hg-service :is(a,button):focus-visible{outline:2px solid var(--hg-red);outline-offset:3px}
/* заголовок: текст и реплика слева, фигура справа */
.hg-store .jp-editorial .hg-service-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,300px);grid-template-rows:auto 1fr;grid-template-areas:"text figure" "say figure";column-gap:56px;padding:22px 0 0}
.hg-store .jp-editorial .hg-service-hero__text{grid-area:text;padding-top:28px}
.hg-store .jp-editorial .hg-service-hero h1{margin:10px 0 0;font-size:clamp(32px,4vw,50px);line-height:1.16;letter-spacing:-.03em}
.hg-store .jp-editorial .hg-service-hero__intro{max-width:34em;margin:16px 0 0;color:var(--hg-muted);font-size:16px;line-height:1.9}
.hg-store .jp-editorial .hg-service-hero__guide{display:contents}
.hg-store .jp-editorial .hg-service-figure{grid-area:figure;align-self:end;justify-self:center;margin:0;line-height:0}
.hg-store .jp-editorial .hg-service-figure img{display:block;width:auto;height:300px}
.hg-store .jp-editorial .hg-service-say{grid-area:say;align-self:start;max-width:32em;margin-top:24px}
.hg-store .jp-editorial .hg-service-say p::after{content:"";position:absolute;right:-10px;top:26px;width:11px;height:18px;background:inherit;clip-path:polygon(0 0,100% 50%,0 100%)}
.hg-store .jp-editorial .hg-service-say a{color:var(--hg-red);font-weight:700;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
/* цены 4本: карточки классов с кольцом шины по размеру */
.hg-store .jp-editorial .hg-service-sets{margin-top:64px}
.hg-store .jp-editorial .hg-service :is(.hg-service-head,.hg-service-table,.hg-service-notes,.hg-service-visit) h2{margin:0;font-size:clamp(22px,2.4vw,30px);line-height:1.3;letter-spacing:-.02em}
.hg-store .jp-editorial .hg-service .hg-service-head p{margin:8px 0 0;color:var(--hg-muted);font-size:15px;line-height:1.8}
.hg-store .jp-editorial .hg-service-classes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0 0;padding:0;list-style:none}
.hg-store .jp-editorial .hg-service-class{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 48px;grid-template-areas:"inch tyre" "price tyre" "suv suv";align-items:center;gap:2px 10px;margin:0;padding:20px 20px 18px;border:1px solid var(--hg-line);border-radius:16px;background:var(--hg-white)}
.hg-store .jp-editorial .hg-service-class__tyre{grid-area:tyre;justify-self:center;width:calc((var(--hg-tyre) - 8) * 4px);aspect-ratio:1;border:calc((var(--hg-tyre) - 8) * .9px) solid var(--hg-ink);border-radius:50%;box-shadow:inset 0 0 0 2px var(--hg-white),inset 0 0 0 4px color-mix(in srgb,var(--hg-muted) 55%,transparent);box-sizing:border-box;opacity:.88}
.hg-store .jp-editorial .hg-service .hg-service-class p{margin:0;color:var(--hg-ink)}
.hg-store .jp-editorial .hg-service .hg-service-class__inch{grid-area:inch;font-size:14px;font-weight:700;line-height:1.5}
.hg-store .jp-editorial .hg-service .hg-service-class__price{grid-area:price;line-height:1.25}
.hg-store .jp-editorial .hg-service-num{font-size:30px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.hg-store .jp-editorial .hg-service-cur{font-size:15px;font-weight:700}
.hg-store .jp-editorial .hg-service .hg-service-class__suv{grid-area:suv;margin-top:10px;padding-top:10px;border-top:1px solid var(--hg-line);color:var(--hg-muted);font-size:12px;font-weight:600;line-height:1.6}
.hg-store .jp-editorial .hg-service .hg-service-includes{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin:16px 0 0;font-size:13px}
.hg-store .jp-editorial .hg-service-includes__label{margin-right:4px;color:var(--hg-muted);font-weight:700}
.hg-store .jp-editorial .hg-service-chip{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:4px 12px 4px 8px;border-radius:999px;background:var(--hg-soft);color:var(--hg-ink);font-weight:700}
.hg-store .jp-editorial .hg-service-chip svg{flex:none;width:16px;height:16px;fill:none;stroke:var(--hg-red);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
/* работы по колесу и опции */
.hg-store .jp-editorial .hg-service-tables{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 40px;margin-top:64px}
.hg-store .jp-editorial .hg-service .hg-service-table__note{margin:6px 0 0;color:var(--hg-muted);font-size:13px;line-height:1.7}
.hg-store .jp-editorial .hg-service-table table{width:100%;margin:14px 0 0;border-collapse:collapse;font-variant-numeric:tabular-nums}
.hg-store .jp-editorial .hg-service-table :is(th,td){padding:12px 4px;border:0;border-bottom:1px solid var(--hg-line);background:none;color:var(--hg-ink);font-size:15px;line-height:1.5;text-align:left;vertical-align:top}
.hg-store .jp-editorial .hg-service-table thead th{padding-top:4px;border-bottom:2px solid var(--hg-ink);color:var(--hg-muted);font-size:12px;font-weight:700}
.hg-store .jp-editorial .hg-service-table tbody th{font-weight:600}
.hg-store .jp-editorial .hg-service-table :is(td,thead th:last-child){text-align:right;white-space:nowrap}
.hg-store .jp-editorial .hg-service-table td{font-size:17px;font-weight:800}
.hg-store .jp-editorial .hg-service-table__per{color:var(--hg-muted);font-size:12px;font-weight:600}
.hg-store .jp-editorial .hg-service-table__hint{display:block;margin-top:2px;color:var(--hg-muted);font-size:12px;font-weight:500}
/* оговорки и визит */
.hg-store .jp-editorial .hg-service-notes{margin-top:56px;padding:22px 26px;border-radius:16px;background:var(--hg-soft)}
.hg-store .jp-editorial .hg-service .hg-service-notes h2{font-size:18px}
.hg-store .jp-editorial .hg-service-notes ul{display:grid;gap:8px;margin:12px 0 0;padding:0;list-style:none}
.hg-store .jp-editorial .hg-service-notes li{position:relative;margin:0;padding-left:18px;color:var(--hg-ink);font-size:14px;line-height:1.75}
.hg-store .jp-editorial .hg-service-notes li::before{content:"";position:absolute;left:2px;top:.72em;width:6px;height:6px;border-radius:50%;background:var(--hg-red)}
.hg-store .jp-editorial .hg-service-visit{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title title" "say say" "facts call";align-items:end;gap:18px 32px;margin-top:56px;padding-top:40px;border-top:1px solid var(--hg-line)}
.hg-store .jp-editorial .hg-service-visit h2{grid-area:title}
.hg-store .jp-editorial .hg-service-visit .hg-about-say{grid-area:say;max-width:40em}
.hg-store .jp-editorial .hg-service-facts{grid-area:facts;display:grid;gap:6px;margin:0}
.hg-store .jp-editorial .hg-service-facts>div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px}
.hg-store .jp-editorial .hg-service-facts dt{color:var(--hg-muted);font-size:13px;font-weight:700;line-height:1.7}
.hg-store .jp-editorial .hg-service-facts dd{margin:0;color:var(--hg-ink);font-size:15px;line-height:1.7}
.hg-store .jp-editorial .hg-service-facts a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.hg-store .jp-editorial .hg-service-call{grid-area:call;display:inline-flex;align-items:center;gap:10px;min-height:48px;white-space:nowrap}
.hg-store .jp-editorial .hg-service-call__number{font-variant-numeric:tabular-nums;opacity:.9}
@media (max-width:999px){
  .hg-store .jp-editorial .hg-service-classes{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .hg-store .jp-editorial .hg-service-hero{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:"text" "guide";padding-top:8px}
  .hg-store .jp-editorial .hg-service-hero__text{padding-top:0}
  .hg-store .jp-editorial .hg-service-hero__guide{grid-area:guide;display:flex;align-items:flex-end;gap:10px;margin-top:22px}
  .hg-store .jp-editorial .hg-service-figure{flex:none}
  .hg-store .jp-editorial .hg-service-figure img{height:168px}
  .hg-store .jp-editorial .hg-service-say{flex:1 1 auto;min-width:0;margin:0 0 18px}
  .hg-store .jp-editorial .hg-service-say p::after{right:auto;left:-9px;top:auto;bottom:22px;width:10px;height:16px;clip-path:polygon(0 50%,100% 0,100% 100%)}
  .hg-store .jp-editorial .hg-service-tables{grid-template-columns:minmax(0,1fr);gap:40px}
  .hg-store .jp-editorial .hg-service-visit{grid-template-columns:minmax(0,1fr);grid-template-areas:"title" "say" "facts" "call"}
  .hg-store .jp-editorial .hg-service-facts>div{grid-template-columns:minmax(0,1fr);gap:0}
  .hg-store .jp-editorial .hg-service-call{justify-self:stretch;justify-content:center}
}
@media (max-width:420px){
  .hg-store .jp-editorial .hg-service-class{grid-template-columns:minmax(0,1fr);grid-template-areas:"tyre" "inch" "price" "suv";padding:16px 14px 14px}
  .hg-store .jp-editorial .hg-service-class__tyre{justify-self:start;margin:calc(22px - (var(--hg-tyre) - 8) * 2px) 0 calc(30px - (var(--hg-tyre) - 8) * 2px)}
  .hg-store .jp-editorial .hg-service-num{font-size:26px}
  .hg-store .jp-editorial .hg-service-notes{padding:18px 18px}
}

/* Claude v2: информационные страницы (parts/info-page.php): delivery, returns, how-to-buy, legal, privacy — заголовок с маскотом и репликой, карточки фактов, разделы с боковыми заголовками и ссылками, шаги покупки, таблица продавца, связанные страницы. Колонка от левого края контейнера — на одной линии с крошками. */
.hg-store .jp-editorial.hg-info-page{max-width:none;margin-inline:0}
.hg-store .jp-editorial .hg-info-table{max-width:1080px}
.hg-store .jp-editorial .hg-info :is(h1,h2,h3){text-wrap:balance;word-break:auto-phrase}
.hg-store .jp-editorial .hg-info p{text-wrap:pretty}
.hg-store .jp-editorial .hg-info :is(a,button):focus-visible{outline:2px solid var(--hg-red);outline-offset:3px}
.hg-store .jp-editorial .hg-info-figure img[data-hg-mascot-theme=night],html[data-theme=dark] .hg-store .jp-editorial .hg-info-figure img[data-hg-mascot-theme=day]{display:none}
html[data-theme=dark] .hg-store .jp-editorial .hg-info-figure img[data-hg-mascot-theme=night]{display:block}
/* заголовок: текст слева, маскот с репликой справа (фигура обращена к своему пузырю) */
.hg-store .jp-editorial .hg-info-hero{display:grid;grid-template-columns:minmax(0,1fr);gap:28px 56px;padding:22px 0 0}
.hg-store .jp-editorial .hg-info-hero.has-host{grid-template-columns:minmax(0,1fr) minmax(0,440px);align-items:end}
.hg-store .jp-editorial .hg-info-hero h1{margin:10px 0 0;font-size:clamp(32px,4vw,48px);line-height:1.18;letter-spacing:-.03em}
/* Claude v3.6 (E5, L1-C): ru — самое длинное слово заголовка («конфиденциальности», 11,5em) целиком на строке при 320–421 px (раньше рвалось: «конфиденциальност|и»); от 422 px кегль прежний, min берёт меньшее.
   7,6vw: на самом узком месте (372 px) слову остаётся запас 11 px до края заголовка. */
html:lang(ru) .hg-store .jp-editorial .hg-info-hero h1{font-size:min(clamp(32px,4vw,48px),7.6vw)}
.hg-store .jp-editorial .hg-info .hg-info-hero__intro{max-width:36em;margin:16px 0 0;color:var(--hg-muted);font-size:16px;line-height:1.9}
.hg-store .jp-editorial .hg-info-host{display:flex;align-items:flex-end;gap:14px}
.hg-store .jp-editorial .hg-info-host.is-faces-left{flex-direction:row-reverse}
.hg-store .jp-editorial .hg-info-figure{flex:none;margin:0;line-height:0}
.hg-store .jp-editorial .hg-info-figure img{display:block;width:auto;height:240px}
.hg-store .jp-editorial .hg-info-say{flex:1 1 auto;min-width:0;margin-bottom:100px}
.hg-store .jp-editorial .hg-info-say p::after{content:"";position:absolute;left:-9px;bottom:18px;width:10px;height:16px;background:inherit;clip-path:polygon(0 50%,100% 0,100% 100%)}
.hg-store .jp-editorial .hg-info-host.is-faces-left .hg-info-say p::after{left:auto;right:-9px;clip-path:polygon(0 0,100% 50%,0 100%)}
.hg-store .jp-editorial .hg-info-say a{color:var(--hg-red);font-weight:700;text-decoration:underline;text-underline-offset:3px}
/* главные факты */
.hg-store .jp-editorial .hg-info-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:44px 0 0;padding:0;list-style:none}
.hg-store .jp-editorial .hg-info-fact{display:flex;flex-direction:column;gap:4px;margin:0;padding:18px 20px;border:1px solid var(--hg-line);border-radius:16px;background:var(--hg-white)}
.hg-store .jp-editorial .hg-info-fact__label{color:var(--hg-muted);font-size:12px;font-weight:700;line-height:1.5}
.hg-store .jp-editorial .hg-info-fact__value{color:var(--hg-ink);font-size:24px;font-weight:800;line-height:1.3;letter-spacing:-.01em}
.hg-store .jp-editorial .hg-info-fact__note{color:var(--hg-muted);font-size:13px;line-height:1.6}
/* разделы: заголовок слева, текст и ссылки справа */
.hg-store .jp-editorial .hg-info-sections{margin-top:56px;border-bottom:1px solid var(--hg-line)}
.hg-store .jp-editorial .hg-info .hg-info-sec{display:grid;grid-template-columns:minmax(0,280px) minmax(0,1fr);gap:10px 48px;margin:0;padding:30px 0;border-top:1px solid var(--hg-line)}
.hg-store .jp-editorial .hg-info .hg-info-sec h2{margin:0;font-size:19px;line-height:1.55;letter-spacing:-.01em}
.hg-store .jp-editorial .hg-info .hg-info-sec p{max-width:40em;margin:0;color:var(--hg-ink);font-size:15.5px;line-height:1.95}
.hg-store .jp-editorial .hg-info-links{display:flex;flex-wrap:wrap;gap:4px 22px;margin:12px 0 0;padding:0;list-style:none}
.hg-store .jp-editorial .hg-info-links li{margin:0}
.hg-store .jp-editorial .hg-info-links a{display:inline-flex;align-items:center;gap:6px;min-height:36px;color:var(--hg-red);font-size:14px;font-weight:700;text-decoration:none}
.hg-store .jp-editorial .hg-info-links a:hover{text-decoration:underline;text-underline-offset:3px}
.hg-store .jp-editorial .hg-info :is(.hg-info-links,.hg-info-related) svg{flex:none;width:16px;height:16px}
/* шаги покупки */
.hg-store .jp-editorial .hg-info-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:48px 0 0;padding:0;list-style:none}
.hg-store .jp-editorial .hg-info-step{position:relative;display:flex;flex-direction:column;gap:10px;margin:0;padding:22px 22px 18px;border:1px solid var(--hg-line);border-radius:16px;background:var(--hg-white)}
.hg-store .jp-editorial .hg-info-step:not(:last-child)::after{content:"";position:absolute;top:36px;right:-14px;z-index:1;width:9px;height:9px;border-top:2px solid var(--hg-red);border-right:2px solid var(--hg-red);transform:rotate(45deg)}
/* Claude v3.6 (E5, L1-D): пять шагов и больше («как купить» — шесть) на 1000+ px в три колонки, 3+3 (при пяти 3+2): при четырёх колонках стрелка после четвёртого шага указывала за край ряда.
   У последнего шага ряда стрелки нет. Четыре шага и меньше — прежние четыре колонки; до 999 px — две колонки без стрелок (правила ниже). */
@media (min-width:1000px){
  .hg-store .jp-editorial .hg-info-steps:has(>.hg-info-step:nth-child(5)){grid-template-columns:repeat(3,minmax(0,1fr))}
  .hg-store .jp-editorial .hg-info-steps:has(>.hg-info-step:nth-child(5))>.hg-info-step:nth-child(3n)::after{display:none}
}
.hg-store .jp-editorial .hg-info-step__num{display:inline-flex;align-items:baseline;gap:6px;color:var(--hg-red);font-size:30px;font-weight:800;line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.hg-store .jp-editorial .hg-info-step__num span{font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.hg-store .jp-editorial .hg-info .hg-info-step h2{margin:0;font-size:18px;line-height:1.45}
.hg-store .jp-editorial .hg-info .hg-info-step p{margin:0;color:var(--hg-ink);font-size:14px;line-height:1.85}
.hg-store .jp-editorial .hg-info-step .hg-info-links{margin-top:auto;padding-top:4px}
/* реквизиты продавца: 項目 / 内容 */
.hg-store .jp-editorial .hg-info-table{margin:48px 0 0;border-top:2px solid var(--hg-ink)}
.hg-store .jp-editorial .hg-info-row{display:grid;grid-template-columns:minmax(0,240px) minmax(0,1fr);gap:4px 32px;margin:0;padding:16px 0;border-bottom:1px solid var(--hg-line)}
.hg-store .jp-editorial .hg-info-row dt{color:var(--hg-muted);font-size:14px;font-weight:700;line-height:1.8}
.hg-store .jp-editorial .hg-info-row dd{margin:0;color:var(--hg-ink);font-size:15px;line-height:1.85}
.hg-store .jp-editorial .hg-info-row dd>a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.hg-store .jp-editorial .hg-info-row .hg-info-links{margin-top:6px}
/* связанные страницы */
.hg-store .jp-editorial .hg-info-related{margin-top:56px}
.hg-store .jp-editorial .hg-info .hg-info-related h2{margin:0;color:var(--hg-muted);font-size:14px;font-weight:700;line-height:1.5}
.hg-store .jp-editorial .hg-info-related ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0 0;padding:0;list-style:none}
.hg-store .jp-editorial .hg-info-related li{margin:0}
.hg-store .jp-editorial .hg-info-related a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:12px 18px;border:1px solid var(--hg-line);border-radius:14px;background:var(--hg-white);color:var(--hg-ink);font-size:15px;font-weight:700;text-decoration:none;transition:border-color .2s ease}
.hg-store .jp-editorial .hg-info-related a:hover{border-color:var(--hg-ink)}
.hg-store .jp-editorial .hg-info-related svg{color:var(--hg-red)}
/* переносы: число с единицей целиком (parts/info-page.php, $para); короткие японские тексты — по фразам */
.hg-store .jp-editorial .hg-info .hg-nw{white-space:nowrap}
.hg-store .jp-editorial .hg-info :is(.hg-info-hero__intro,.hg-info-say p,.hg-info-fact__note,.hg-info-step p){word-break:auto-phrase}
/* delivery: калькулятор и таблица тарифов (parts/shipping.php) — в прежней ширине; подписи результата читаемы в обеих темах */
.hg-store .jp-editorial .hg-info--delivery :is(.hg-mascot--delivery-fee,.jp-shipping-quote,.jp-shipping-table){max-width:960px}
.hg-store .jp-editorial .hg-info--delivery .hg-mascot--delivery-fee{margin-top:48px}
.hg-store .jp-editorial .hg-info--delivery .jp-shipping-result span{color:var(--hg-muted);font-size:12px;font-weight:600}
.hg-store .jp-editorial .hg-info--delivery .jp-shipping-result p{color:var(--hg-muted);font-size:12px}
@media (min-width:761px){.hg-store .jp-editorial .hg-info--delivery .jp-shipping-result p{font-size:13px!important}}
/* Аудит #25: поле — префектура (короткое значение без обрезки), под ним регион тарифа; обёртка занимает место прежней первой подписи сетки */
.jp-shipping-region{min-width:0}
.jp-shipping-region label{display:block}
.hg-store .jp-shipping-hint{display:block;margin-top:6px;font-size:12px;line-height:1.5;color:var(--hg-muted)}
@media (max-width:600px){.jp-shipping-fields>.jp-shipping-region{grid-column:1/-1}}
/* Claude v2: /contact/ (parts/contact.php) — заголовок в две колонки (текст, реплика с аватаром и каналы | фото магазина); полная фигура маскота одна — у карточки магазина */
.hg-contact-r60 .hg-contact-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:28px 64px;align-items:center;margin:0 0 48px;padding-top:22px}
.hg-store .jp-editorial .hg-contact-r60 .hg-contact-hero h1{margin:10px 0 0;font-size:clamp(30px,3.6vw,46px);line-height:1.22;letter-spacing:-.03em;text-wrap:balance;word-break:auto-phrase}
.hg-store .jp-editorial .hg-contact-r60 .hg-contact-hero__intro{max-width:36em;margin:14px 0 0;color:var(--hg-muted);font-size:16px;line-height:1.9;text-wrap:pretty;word-break:auto-phrase}
.hg-store .jp-editorial .hg-contact-r60 .hg-contact-say{max-width:34em;margin:24px 0 0}
.hg-store .jp-editorial .hg-contact-r60 .hg-contact-say p{word-break:auto-phrase}
.hg-contact-r60 .hg-contact-hero .hg-contact-channel-links{margin-top:22px}
.hg-contact-r60 .hg-contact-hero__photo{width:100%;max-width:580px;margin:0;justify-self:end}
.hg-contact-r60 .hg-about-face img[data-hg-mascot-theme=night],html[data-theme=dark] .hg-contact-r60 .hg-about-face img[data-hg-mascot-theme=day]{display:none}
html[data-theme=dark] .hg-contact-r60 .hg-about-face img[data-hg-mascot-theme=night]{display:block}
.hg-contact-r60 .hg-contact-aside.has-host{position:relative}
.hg-contact-r60 .hg-contact-aside-host{position:absolute;top:20px;right:20px;margin:0;line-height:0;pointer-events:none}
.hg-contact-r60 .hg-contact-aside-host img{display:block;width:auto;height:176px}
.hg-contact-r60 .hg-contact-aside-host img[data-hg-mascot-theme=night],html[data-theme=dark] .hg-contact-r60 .hg-contact-aside-host img[data-hg-mascot-theme=day]{display:none}
html[data-theme=dark] .hg-contact-r60 .hg-contact-aside-host img[data-hg-mascot-theme=night]{display:block}
.hg-contact-r60 .hg-contact-aside.has-host>:is(h2,.hg-contact-phone,.hg-contact-mail){margin-right:124px}
.hg-contact-r60 .hg-inquiry-actions+.hg-inquiry-email-help{margin-top:16px}
/* Claude v2: /inspection/ (parts/inspection-hero.php) — заголовок: текст слева, справа реплика над сценой ухода за колесом (хвост вниз к фигуре); день/ночь — пара сцены */
.hg-store .jp-editorial .hg-insp-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,400px);gap:24px 56px;align-items:center;padding-top:17px}
.hg-store .jp-editorial .hg-insp-hero h1{margin:10px 0 0;max-width:none;font-size:clamp(30px,3.6vw,44px);line-height:1.22;text-wrap:balance;word-break:auto-phrase}
.hg-store .jp-editorial .hg-insp-hero .hg-insp-hero__intro{max-width:36em;margin:14px 0 0;color:var(--hg-muted);font-size:16px;line-height:1.9;word-break:auto-phrase}
.hg-store .jp-editorial .hg-insp-hero__text{padding-bottom:0}
.hg-store .jp-editorial .hg-insp-say{position:relative;z-index:1;max-width:400px;margin:0 0 10px auto}
.hg-store .jp-editorial .hg-insp-hero .hg-insp-say p{position:relative;margin:0;padding:13px 18px 14px;border-radius:16px;background:var(--hg-soft);color:var(--hg-ink);font-size:15px;line-height:1.8;word-break:auto-phrase}
.hg-store .jp-editorial .hg-insp-say p::after{content:"";position:absolute;left:30%;bottom:-9px;width:18px;height:10px;background:inherit;clip-path:polygon(0 0,100% 0,30% 100%)}
.hg-store .jp-editorial .hg-insp-say a{color:var(--hg-red);font-weight:700;text-decoration:underline;text-underline-offset:3px}
/* Claude v2 (аудит #17): реплика маскота в статье (гиды, /grades/, /inspection/ на узком экране) — аватар и пузырь с хвостом вместо плашки с красной полосой; ночью — лицо ночной пары */
.hg-store .jp-editorial .hg-guide-remark.hg-guide-remark{position:relative;max-width:640px;margin:20px 0 0 60px;padding:11px 16px 12px;border:0;border-radius:16px;background:var(--hg-soft)}
.hg-store .jp-editorial .hg-guide-remark.hg-guide-remark::before{content:"";position:absolute;left:-60px;top:0;width:48px;height:48px;border-radius:50%;background:var(--hg-white) var(--hg-remark-face,url(mascot/pose-inspect-face-128.webp)) center/cover no-repeat;box-shadow:0 0 0 1px var(--hg-line)}
html[data-theme=dark] .hg-store .jp-editorial .hg-guide-remark.hg-guide-remark::before{background-image:var(--hg-remark-face-dark,url(mascot/pose-night-greet-face-128.webp))}
.hg-store .jp-editorial .hg-guide-remark.hg-guide-remark::after{content:"";position:absolute;left:-9px;top:15px;width:10px;height:16px;background:inherit;clip-path:polygon(0 50%,100% 0,100% 100%)}
/* /grades/ (аудит #16): подписи рангов под S+…D — не меньше 12 px */
.hg-store .jp-editorial>.hg-grade-explorer .hg-grade-tabs span{font-size:12px}
/* Claude v2 (аудит #26): статьи с оглавлением (гиды, /grades/, /inspection/) — колонка от левого края контейнера, на одной линии с крошками */
@media (min-width:1000px){html.hg-guide-js .hg-store .jp-editorial{margin-inline:0}}
/* Claude v2 (аудит #15): японский текст статей и информационных страниц — без одиночных знаков в последней строке и без разрывов внутри слов («ただ／し») */
html:lang(ja) .hg-store .jp-editorial :is(section,li,.jp-page-heading) p:not(.hg-fit p){text-wrap:pretty;word-break:auto-phrase}
/* Claude v2: кабинет гостя (woocommerce/myaccount/form-login.php, .hg-auth--v2) — вкладки ログイン / 新規登録 и одна форма на экране;
   справа фигура в поклоне (обращена влево, к форме) с репликой; на узком экране вместо фигуры — строка с аватаром под формой */
.hg-account-page .hg-auth.hg-auth--v2{display:grid;grid-template-columns:minmax(0,560px) minmax(0,1fr);gap:24px 64px;align-items:start;margin:8px 0 64px}
.hg-account-page .hg-auth-v2__main{display:grid;gap:20px;min-width:0}
.hg-account-page .hg-auth-reset.hg-auth--v2{max-width:none} /* восстановление пароля: account.css ограничивал обёртку колонкой карточки */
.hg-account-page .hg-auth-v2__main>.hg-member-lead{margin:0;font-size:16px;line-height:1.8}
.hg-account-page .hg-auth--v2 .hg-auth-grid{grid-template-columns:minmax(0,1fr);gap:20px}
.hg-account-page .hg-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;border-radius:12px;background:var(--hg-soft)}
.hg-account-page .hg-auth-tabs[hidden],.hg-account-page .hg-auth--v2 .hg-auth-card[hidden]{display:none}
.hg-account-page .hg-auth-tabs button{min-height:48px;margin:0;padding:8px 10px;border:0;border-radius:9px;background:transparent;color:var(--hg-muted);font-size:15px;font-weight:700;line-height:1.3;letter-spacing:0;box-shadow:none;cursor:pointer;transition:background-color .2s ease,color .2s ease}
.hg-account-page .hg-auth-tabs button::after{content:none}
.hg-account-page .hg-auth-tabs button:hover{color:var(--hg-ink)}
.hg-account-page .hg-auth-tabs button[aria-selected=true]{background:var(--hg-white);color:var(--hg-ink);box-shadow:0 2px 8px #0000001a}
.hg-account-page .hg-auth-tabs button:focus-visible{outline:3px solid var(--hg-red);outline-offset:2px}
html[data-theme=dark] .hg-account-page .hg-auth-tabs button[aria-selected=true]{background:color-mix(in srgb,var(--hg-ink) 16%,var(--hg-white))}
/* До запуска claude-v1.js (класс hg-auth-js ставится в <head>): с первой отрисовки тот же вид, что после authTabs() — вкладки, одна форма,
   скрытые заголовки карточек; иначе на телефоне сдвиг всей страницы (CLS 0,42). Регистрация по ссылке #hg-register-panel работает и без скрипта (:target) */
html.hg-auth-js .hg-account-page .hg-auth--v2 .hg-auth-tabs[hidden]{display:grid}
html.hg-auth-js .hg-account-page .hg-auth--v2:not([data-hg-auth])[data-initial=login]:not(:has(#hg-register-panel:target)) .hg-register-panel,
html.hg-auth-js .hg-account-page .hg-auth--v2:not([data-hg-auth])[data-initial=register] .hg-login-panel,
html.hg-auth-js .hg-account-page .hg-auth--v2:not([data-hg-auth]):has(#hg-register-panel:target) .hg-login-panel{display:none}
html.hg-auth-js .hg-account-page .hg-auth--v2:not([data-hg-auth]) .hg-auth-card>h2,
.hg-account-page .hg-auth--v2[data-hg-auth] .hg-auth-card>h2{position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hg-account-page .hg-auth--v2 .woocommerce-privacy-policy-text a{color:var(--hg-red);font-weight:600;text-decoration:underline;text-underline-offset:3px}
html[data-theme=dark] .hg-account-page .hg-auth--v2 :is(.button,button.button){border-color:var(--hg-action);background:var(--hg-action);color:#fff}
html[data-theme=dark] .hg-account-page .hg-auth--v2 :is(.button,button.button):hover{border-color:var(--hg-action-hover);background:var(--hg-action-hover);color:#fff}
.hg-account-page .hg-auth-v2__host{display:flex;flex-direction:row-reverse;align-items:flex-start;justify-content:flex-start;gap:16px;margin:0;padding-top:24px}
.hg-account-page .hg-auth-v2__figure{flex:none;margin:0;line-height:0}
.hg-account-page .hg-auth-v2__figure img{display:block;width:auto;height:300px}
.hg-account-page .hg-auth-v2__say{display:flex;align-items:flex-start;gap:12px;max-width:380px;margin-top:44px}
.hg-account-page .hg-auth-v2__say p{position:relative;flex:1 1 auto;min-width:0;margin:0;padding:14px 18px 15px;border-radius:16px;background:var(--hg-soft);color:var(--hg-ink);font-size:15px;line-height:1.8;word-break:auto-phrase}
.hg-account-page .hg-auth-v2__say p::after{content:"";position:absolute;right:-9px;top:20px;width:10px;height:16px;background:inherit;clip-path:polygon(0 0,100% 50%,0 100%)}
.hg-account-page .hg-auth-v2__say a{color:var(--hg-red);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.hg-account-page .hg-auth-v2__say .hg-about-face{display:none;flex:none;width:48px;height:48px;border-radius:50%;overflow:hidden;background:var(--hg-white);box-shadow:0 0 0 1px var(--hg-line)}
.hg-account-page .hg-auth-v2__say .hg-about-face img{display:block;width:100%;height:100%;object-fit:cover}
.hg-account-page .hg-auth-v2__host img[data-hg-mascot-theme=night],html[data-theme=dark] .hg-account-page .hg-auth-v2__host img[data-hg-mascot-theme=day]{display:none}
html[data-theme=dark] .hg-account-page .hg-auth-v2__host img[data-hg-mascot-theme=night]{display:block}
/* Claude v2: обзор кабинета после входа — маскот здоровается рядом с «こんにちは、…さん», а не строкой под карточками
   (было: фигура 112 px и реплика в одну строку шириной 760 px ниже всего). Разметку слота не трогаем — только место в сетке */
.woocommerce-dashboard .hg-member-content>.hg-mascot--account{--hg-mascot-h:150px;max-width:560px;margin:0 0 28px}
@media (min-width:1200px){
  .woocommerce-dashboard .hg-member-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,420px);column-gap:32px;align-items:center}
  /* порядок, а не номера строк: пустая обёртка уведомлений скрыта и не занимает строку, раскладка сама ставит приветствие первым */
  .woocommerce-dashboard .hg-member-content>*{grid-column:1/-1;min-width:0}
  .woocommerce-dashboard .hg-member-content>.woocommerce-notices-wrapper{order:-2}
  .woocommerce-dashboard .hg-member-content>.hg-member-heading{grid-column:1;order:-1}
  .woocommerce-dashboard .hg-member-content>.hg-mascot--account{grid-column:2;order:-1;--hg-mascot-h:168px}
}
@media (max-width:1199px){
  .woocommerce-dashboard .hg-member-content{display:flex;flex-direction:column}
  .woocommerce-dashboard .hg-member-content>*{order:2}
  .woocommerce-dashboard .hg-member-content>:is(.woocommerce-notices-wrapper,.hg-member-heading){order:0}
  .woocommerce-dashboard .hg-member-content>.hg-mascot--account{order:1;--hg-mascot-h:120px}
}
/* Claude v2 (аудит #20): цели нажатия на сенсорных экранах — ссылки магазинов в подвале (были 27 px вплотную) и крошки (33×30 px) не меньше 44 px;
   у крошек поле нажатия растёт за счёт отрицательных полей, строка не сдвигается */
@media (max-width:767px),(pointer:coarse){
  .hg-store .hg-footer-shops-r435 a{display:flex;align-items:center;min-height:44px}
  .hg-store .jp-breadcrumb a{min-height:44px;align-items:center;padding:0 6px;margin:-7px -6px}
  /* отчёт скорости, фаза 2: группы фильтров и поле брендов 42/40 → 44, «お店について» на главной 30 → 44 и адрес на услугах 21 → 44 —
     без изменения занимаемого места. Быстрый просмотр 36×36 оставлен: WCAG AA (24) выполнен, поле ::before у <button> касания не ловит */
  .hg-store .jp-filters .r47-facet>summary,.hg-store .r47-brand-search input{min-height:44px}
  .hg-store .hg-story__copy>.hg-secondary-link{min-height:44px;margin-top:5px;margin-bottom:-7px}
  .hg-store .hg-service-facts dd>a{display:inline-block;padding-block:11px;margin-block:-11px}
}
/* Claude v2 (аудит #28): адрес латиницей в подвале RU/EN — второй строкой под японским, стрелка остаётся у первой строки */
.hg-footer-r435 address a:has(.hg-footer-latin){flex-wrap:wrap;row-gap:0;padding-block:4px}
.hg-footer-r435 address a:has(.hg-footer-latin) svg{order:1}
.hg-footer-r435 .hg-footer-latin{order:2;flex-basis:100%;font-size:12px;line-height:1.6;color:var(--hg-muted)}
:is(.hg-footer-r435,.hg-contact-location) .hg-nw{white-space:nowrap}
/* Claude v2: журнал статей (inc/guide-journal.php) — шкала рангов на обложке «商品ランク» вместо надписи (аудит #27);
   на /guides/ боковые карточки верхнего блока с обложкой 16:9 и анонсом в две строки — колонка не выше ведущей (аудит #5) */
.hg-journal-cover.hg-journal-cover--ranks{container-type:inline-size;background:var(--hg-white)}
.hg-journal-ranks{display:flex;align-items:baseline;gap:.42em;font-family:RoadRadio,Montserrat,sans-serif;font-size:11cqi;line-height:1;letter-spacing:0}
.hg-journal-ranks span{color:color-mix(in srgb,var(--hg-red) calc(100% - var(--i) * 19%),var(--hg-muted))}
/* Схема PCD (R555) — вырезанная машина на прозрачном фоне: в тёмной теме обложке не нужна белая панель статьи */
html[data-theme=dark] .hg-journal-cover[data-cover="k2:wheel-offset"]{background:var(--hg-white)}
@media (min-width:681px){
  .hg-store .hg-journal--index .hg-journal__more{margin-top:44px}
  .hg-journal--index .hg-journal-card--lead .hg-journal-cover{aspect-ratio:4/3}
  .hg-journal--index .hg-journal__side .hg-journal-cover{aspect-ratio:2/1}
  .hg-journal--index .hg-journal__side .hg-journal-card__teaser{-webkit-line-clamp:2}
}
@media (max-width:899px){
  .hg-account-page .hg-auth.hg-auth--v2{grid-template-columns:minmax(0,1fr);gap:24px}
  .hg-account-page .hg-auth-v2__host{flex-direction:row;padding-top:0}
  .hg-account-page .hg-auth--v2[data-hg-auth] .hg-auth-v2__main>.hg-member-lead,
  html.hg-auth-js .hg-account-page .hg-auth--v2:not([data-hg-auth]) .hg-auth-v2__main>.hg-member-lead{display:none}
  .hg-account-page .hg-auth--v2 .hg-member-panel{padding:20px}
  .hg-account-page .hg-auth-v2__figure{display:none}
  .hg-account-page .hg-auth-v2__say{max-width:560px;margin-top:0}
  .hg-account-page .hg-auth-v2__say .hg-about-face{display:block}
  .hg-account-page .hg-auth-v2__say p::after{right:auto;left:-9px;top:15px;clip-path:polygon(0 50%,100% 0,100% 100%)}
}
.hg-store .jp-editorial .hg-insp-scene{margin:0;line-height:0}
.hg-store .jp-editorial .hg-insp-scene img{display:block;width:100%;height:auto;border-radius:0}
.hg-store .jp-editorial .hg-insp-scene img[data-hg-scene-theme=night],html[data-theme=dark] .hg-store .jp-editorial .hg-insp-scene img[data-hg-scene-theme=day]{display:none}
html[data-theme=dark] .hg-store .jp-editorial .hg-insp-scene img[data-hg-scene-theme=night]{display:block}
@media (max-width:999px){
  .hg-store .jp-editorial .hg-insp-hero{grid-template-columns:minmax(0,1fr);gap:8px}
  .hg-store .jp-editorial .hg-insp-hero__text{padding-bottom:8px}
  .hg-store .jp-editorial .hg-insp-hero__art{max-width:520px}
  .hg-store .jp-editorial .hg-insp-say{margin-left:0}
}
@media (max-width:999px){
  .hg-contact-r60 .hg-contact-hero{grid-template-columns:minmax(0,1fr);margin-bottom:36px}
  .hg-contact-r60 .hg-contact-hero__photo{max-width:640px}
}
@media (max-width:480px){
  .hg-contact-r60 .hg-contact-hero{padding-top:8px}
  .hg-contact-r60 .hg-contact-aside-host{top:16px;right:12px}
  .hg-contact-r60 .hg-contact-aside-host img{height:140px}
  .hg-contact-r60 .hg-contact-aside.has-host>:is(h2,.hg-contact-phone,.hg-contact-mail){margin-right:100px}
}
@media (max-width:999px){
  .hg-store .jp-editorial .hg-info-hero.has-host{grid-template-columns:minmax(0,1fr)}
  .hg-store .jp-editorial .hg-info-host{max-width:560px}
  .hg-store .jp-editorial .hg-info-facts,.hg-store .jp-editorial .hg-info-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hg-store .jp-editorial .hg-info-step::after{display:none}
}
@media (max-width:760px){
  .hg-store .jp-editorial .hg-info-hero{padding-top:8px;gap:22px}
  .hg-store .jp-editorial .hg-info-figure img{height:156px}
  .hg-store .jp-editorial .hg-info-say{margin-bottom:34px}
  .hg-store .jp-editorial .hg-info-facts{margin-top:32px;gap:10px}
  .hg-store .jp-editorial .hg-info-sections{margin-top:40px}
  .hg-store .jp-editorial .hg-info .hg-info-sec{grid-template-columns:minmax(0,1fr);padding:24px 0}
  .hg-store .jp-editorial .hg-info .hg-info-sec h2{font-size:18px}
  .hg-store .jp-editorial .hg-info .hg-info-sec p{font-size:15px}
  .hg-store .jp-editorial .hg-info-links a{min-height:44px}
  .hg-store .jp-editorial .hg-info-steps{margin-top:36px}
  .hg-store .jp-editorial .hg-info-row{grid-template-columns:minmax(0,1fr);gap:2px;padding:14px 0}
  .hg-store .jp-editorial .hg-info-related{margin-top:44px}
  .hg-store .jp-editorial .hg-info-related ul{grid-template-columns:minmax(0,1fr);gap:8px}
}
@media (max-width:560px){
  .hg-store .jp-editorial .hg-info-steps{grid-template-columns:minmax(0,1fr)}
  .hg-store .jp-editorial .hg-info-fact{padding:14px 14px 13px}
  .hg-store .jp-editorial .hg-info-fact__value{font-size:20px}
  .hg-store .jp-editorial .hg-info-fact__note{font-size:12px}
}

/* ══ Пустые состояния v2: пустой поиск каталога (parts/catalog.php) и пустая корзина (woocommerce/cart/cart-empty.php) ══
   Одна композиция по образцу 404: слева фигура маскота, справа заголовок, пояснение, действие и реплика в пузыре с хвостом.
   Слот маскота (.hg-mascot) разворачивается в сетку карточки (display:contents): фигура — слева на все строки, пузырь — под действием.
   Узкий экран: текст и кнопка сверху, фигура с репликой строкой ниже. Высоты фигуры (--hg-empty-fig*) = аргументы hg_empty_figure_over() (sizes картинки).
   Без JS всё видно и работает: разметка — обычный HTML. */
.hg-store .hg-empty{--hg-empty-fig:280px;--hg-empty-fig-night:280px;--hg-empty-fig-sm:180px;--hg-empty-fig-night-sm:180px;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto auto 1fr;grid-template-areas:"figure title" "figure text" "figure actions" "figure say";column-gap:clamp(22px,3vw,34px);align-items:start;box-sizing:border-box;width:100%;max-width:920px;margin:0;padding:clamp(24px,3vw,40px) clamp(20px,3.4vw,44px);border:1px solid var(--hg-line);border-radius:20px;background:var(--hg-white);box-shadow:0 1px 0 #0000000a;color:var(--hg-ink);text-align:left}
.hg-store .hg-empty--cart{--hg-empty-fig:300px;--hg-empty-fig-night:300px;--hg-empty-fig-sm:170px;--hg-empty-fig-night-sm:170px;grid-template-rows:auto auto auto 1fr auto;grid-template-areas:"figure title" "figure text" "figure actions" "figure say" "cats cats";margin:8px auto 64px}
.hg-store .hg-empty--solo{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:"title" "text" "actions";max-width:640px}
.hg-store .hg-empty--cart.hg-empty--solo{grid-template-areas:"title" "text" "actions" "cats"}
.hg-store .hg-empty .hg-empty__title{grid-area:title;margin:0;color:var(--hg-ink);font-size:clamp(24px,2.5vw,32px);font-weight:700;line-height:1.35;letter-spacing:-.02em;text-wrap:balance;overflow-wrap:anywhere}
.hg-store .hg-empty .hg-empty__text{grid-area:text;max-width:36em;margin:12px 0 0;color:var(--hg-muted);font-size:16px;line-height:1.85;text-wrap:pretty;overflow-wrap:anywhere}
html:lang(ja) .hg-store .hg-empty :is(.hg-empty__title,.hg-empty__text){word-break:auto-phrase}
.hg-store .hg-empty .hg-empty__actions{grid-area:actions;display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;margin:22px 0 0}
.hg-store .hg-empty .hg-empty__actions .jp-button{min-height:52px;margin:0}
/* реплика маскота внутри карточки: сетка карточки, пузырь с хвостом у фигуры (хвост — mascot.css) */
.hg-store .hg-empty .hg-mascot{display:contents}
.hg-store .hg-empty .hg-mascot-figure{grid-area:figure;align-self:end;margin:0;line-height:0}
.hg-store .hg-empty .hg-mascot-figure img{width:auto;max-width:none;height:var(--hg-empty-fig)}
html[data-theme=dark] .hg-store .hg-empty .hg-mascot-figure img{height:var(--hg-empty-fig-night)}
.hg-store .hg-empty .hg-mascot-bubble{grid-area:say;align-self:end;max-width:540px;margin:26px 0 0;padding:14px 18px;border:1px solid var(--hg-line);border-radius:16px;background:var(--hg-soft);box-shadow:none}
.hg-store .hg-empty .hg-mascot-text{margin:0;color:var(--hg-ink);font-size:15px;line-height:1.75}
/* категории и подсказки поиска */
.hg-store .hg-empty__cats h3,.hg-store .hg-empty__tips h3{margin:0 0 12px;color:var(--hg-ink);font-size:15px;font-weight:700;line-height:1.5}
.hg-store .hg-empty__cats ul{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0;list-style:none}
.hg-store .hg-empty__cats li{margin:0}
.hg-store .hg-empty__cats a{display:inline-flex;align-items:center;gap:8px;min-height:44px;box-sizing:border-box;padding:8px 16px;border:1px solid var(--hg-line);border-radius:999px;background:var(--hg-white);color:var(--hg-ink);font-size:14px;font-weight:600;line-height:1.4;text-decoration:none;transition:border-color .2s var(--hg-ease),color .2s var(--hg-ease)}
.hg-store .hg-empty__cats a:hover{border-color:var(--hg-red);color:var(--hg-red)}
.hg-store .hg-empty__cats a:focus-visible{outline:2px solid var(--hg-red);outline-offset:3px}
.hg-store .hg-empty__cats svg{flex:none;width:18px;height:18px}
.hg-store .hg-empty--cart .hg-empty__cats{grid-area:cats;margin-top:30px;padding-top:24px;border-top:1px solid var(--hg-line)}
.hg-store .hg-empty-more{display:grid;gap:26px;max-width:920px;margin:30px 0 0}
.hg-store .hg-empty__tips ul{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.hg-store .hg-empty__tips li{display:inline-flex;align-items:baseline;gap:8px;margin:0;padding:8px 14px;border-radius:10px;background:var(--hg-soft);color:var(--hg-ink);font-size:14px;line-height:1.5}
.hg-store .hg-empty__tips li span{color:var(--hg-muted);font-size:12px;font-weight:700}
.hg-store .hg-empty__tips li b{font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.01em}
/* каталог при нуле результатов: компактный заголовок, фасеты без совпадений скрыты в разметке, подбор по автомобилю — после пустого состояния */
.hg-store .jp-catalog-page.hg-is-empty .jp-page-heading{margin:2px 0 4px;padding:0}
.hg-store .jp-catalog-page.hg-is-empty .jp-page-heading h1{margin:0;font-size:clamp(26px,2.6vw,34px)}
.hg-store .jp-catalog-layout.hg-is-empty{padding-top:16px;padding-bottom:20px}
.hg-store .jp-catalog-layout.hg-is-empty .jp-filters{border-right:0}
.hg-store .jp-results .hg-empty-toolbar{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.hg-store .jp-catalog-page.hg-is-empty>.hg-vbar{margin:8px 0 72px}
@media (max-width:1000px){
  .hg-store .jp-catalog-layout.hg-is-empty{display:flex;flex-direction:column;gap:20px;padding-top:12px;padding-bottom:12px}
  .hg-store .jp-catalog-layout.hg-is-empty .jp-results{order:-1}
  .hg-store .jp-catalog-layout.hg-is-empty .jp-filter-sidebar{margin-bottom:0}
}
@media (max-width:680px){
  .hg-store .hg-empty{--hg-empty-fig:var(--hg-empty-fig-sm);--hg-empty-fig-night:var(--hg-empty-fig-night-sm);grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto;grid-template-areas:"title title" "text text" "actions actions" "figure say";column-gap:12px;padding:22px 18px 20px;border-radius:16px}
  .hg-store .hg-empty--cart{grid-template-areas:"title title" "text text" "actions actions" "figure say" "cats cats";margin-bottom:48px}
  .hg-store .hg-empty--solo{grid-template-columns:minmax(0,1fr);grid-template-areas:"title" "text" "actions"}
  .hg-store .hg-empty--cart.hg-empty--solo{grid-template-areas:"title" "text" "actions" "cats"}
  .hg-store .hg-empty .hg-empty__text{font-size:15px;line-height:1.75}
  .hg-store .hg-empty .hg-empty__actions{margin-top:18px}
  .hg-store .hg-empty .hg-empty__actions .jp-button{width:100%}
  .hg-store .hg-empty .hg-mascot-figure{margin-top:22px}
  .hg-store .hg-empty .hg-mascot-bubble{align-self:center;margin-top:22px;padding:12px 14px}
  .hg-store .hg-empty .hg-mascot-text{font-size:14px;line-height:1.7}
  .hg-store .hg-empty--cart .hg-empty__cats{margin-top:22px;padding-top:20px}
  .hg-store .hg-empty__cats a{font-size:13px;padding:8px 14px}
  .hg-store .hg-empty-more{margin-top:24px;gap:22px}
}
@media print{.hg-store .hg-empty .hg-mascot{display:none}}
/* Claude v3: отклик счётчика корзины, когда число меняется (motion-v3.js) */
.jp-cart-count.is-bump,.hg-dock-cart-count.is-bump{animation:hg-v3-bump .5s cubic-bezier(.34,1.56,.64,1)}
@keyframes hg-v3-bump{0%{transform:scale(1)}35%{transform:scale(1.35)}100%{transform:scale(1)}}
@media (prefers-reduced-motion:reduce){.jp-cart-count.is-bump,.hg-dock-cart-count.is-bump{animation:none}}
/* Claude v3: лепестки сакуры над картинкой героя главной (motion-v3.js) — под текстом героя, пауза вне экрана */
.hg-petals{position:absolute;inset:0;z-index:1;overflow:hidden;pointer-events:none;container-type:size}
.hg-petals i{position:absolute;top:-4%;left:var(--x);width:0;height:0;animation:hg-petal-fall var(--d) linear var(--w) infinite}
.hg-petals b{position:absolute;display:block;width:calc(13px * var(--s));height:calc(9px * var(--s));border-radius:100% 0 100% 0 / 85% 0 100% 15%;background:linear-gradient(135deg,#ffe3ea,#f6a9bb 65%,#ec8aa2);opacity:.92;box-shadow:0 1px 2px rgb(150 40 70 / .14);animation:hg-petal-sway var(--sw) ease-in-out var(--w) infinite alternate}
.hg-petals.is-paused i,.hg-petals.is-paused b{animation-play-state:paused}
@keyframes hg-petal-fall{0%{transform:translate3d(0,0,0);opacity:0}8%{opacity:1}88%{opacity:1}100%{transform:translate3d(var(--dx),108cqh,0);opacity:0}}
@keyframes hg-petal-sway{0%{transform:translateX(-10px) rotate(-30deg) rotateX(10deg)}100%{transform:translateX(14px) rotate(40deg) rotateX(65deg)}}
@media (prefers-reduced-motion:reduce){.hg-petals{display:none}}
/* Claude v3: зона нажатия кнопки быстрого просмотра не меньше 44 px (видимый круг 36–40 px не меняется) */
.hg-card-peek::after{content:"";position:absolute;inset:-4px;border-radius:999px}
/* Claude v3.6 (E5, пункт б): прежние ночные пары night-greet и night-clipboard нарисованы в кадре 320×482 — шире кадра дневных поз (greet 320×696, clipboard 320×757, зима 778, лето 714), поэтому
   при смене темы ширина фигуры прыгала (при высоте 112 px день 47–52, ночь 74). Обе картинки пары получают кадр более широкой (ночной, 320:482); дневная вписывается по низу и центру,
   место и реплика не сдвигаются. Селектор — по картинке ночи в разметке; лица (…-face-…, круглые аватары) и пары R340 с равным кадром не затронуты. */
:is(.hg-mascot-figure,.hg-info-figure,.hg-v34-pose):has(img[data-hg-mascot-theme=night]:is([src*="/pose-night-greet-"],[src*="/pose-night-clipboard-"]):not([src*="-face-"])) img{aspect-ratio:320/482;object-fit:contain;object-position:50% 100%}
/* Claude v3.6 (E5, пункт б, продолжение): winter и summer ночью показывают night-photo (G3) — кадр 320×582 шире дневных (winter 320×778, summer 320×714): при высоте 112 px день 46–50, ночь 62 —
   тот же скачок. Кадр такой пары — ночной, 320:582, день вписывается по низу и центру; пара photo (днём и ночью 320×582) от правила не меняется. */
:is(.hg-mascot-figure,.hg-info-figure,.hg-v34-pose):has(img[data-hg-mascot-theme=night][src*="/pose-night-photo-"]:not([src*="-face-"])) img{aspect-ratio:320/582;object-fit:contain;object-position:50% 100%}
