/* Р166/Р167 (25.11.2026): учебные кадры схем гидов 01–08 — разметка inc/gd34-photo.php, поведение assets/gd34-photo.js.
   Кадр — картинка и слой подписей в одной пропорции (рамки, кольца, плашки — элементы страницы, на самой картинке текста нет).
   Переключатель «Схема | Как выглядит»: без JS вкладки скрыты и обе части идут друг за другом. Движение — только opacity/transform. */

.hg-gd34{--ph-ink:#181a1d;--ph-shade:rgba(243,242,239,.8);--ph-fade:rgba(250,250,249,.82);--ph-quiet:#60656a}
html[data-theme=dark] .hg-gd34{--ph-ink:#0f1011;--ph-shade:rgba(27,28,29,.8);--ph-fade:rgba(27,28,29,.84);--ph-quiet:#9a9fa6}

/* ---------- Кадр ---------- */
.hg-store .jp-editorial .hg-gd34 .gd34-ph{margin:0;min-width:0}
.hg-store .jp-editorial .hg-gd34 .gd34-ph__pic{position:relative;overflow:hidden;border-radius:16px;background:var(--gd34-panel);box-shadow:inset 0 0 0 1px var(--gd34-panel-line)}
.hg-store .jp-editorial .hg-gd34 .gd34-ph__pic>img{display:block;width:100%;height:100%;object-fit:cover}
.hg-store .jp-editorial .hg-gd34 .gd34-ph__cap{display:grid;gap:4px;padding:10px 2px 0}
.hg-store .jp-editorial .hg-gd34 .gd34-ph__cap>b{font-size:15px;line-height:1.4;font-weight:700;color:var(--hg-ink)}
.hg-store .jp-editorial .hg-gd34 .gd34-ph__cap>span{font-size:14px;line-height:1.6;color:var(--hg-ink);max-width:68ch}
.hg-store .jp-editorial .hg-gd34 .gd34-ph__note{margin:8px 2px 0;font-size:12.5px;line-height:1.5;color:var(--hg-muted)}
.hg-store .jp-editorial .hg-gd34 .gd34-ph__cap .gd34-ph__note{margin:2px 0 0}

/* подписи, рамки и кольца поверх кадра */
.hg-store .jp-editorial .hg-gd34 .gd34-ph__chip{position:absolute;z-index:2;transform:translate(-50%,-50%);display:inline-flex;align-items:center;gap:5px;max-width:88%;padding:5px 10px;border-radius:9px;
  background:var(--ph-ink);color:#fff;font:700 13px/1.25 Montserrat,'Noto Sans JP',sans-serif;white-space:nowrap;text-align:center;box-shadow:0 2px 8px #0000004d;pointer-events:none}
.hg-store .jp-editorial .hg-gd34 .gd34-ph__chip.is-red{background:var(--hg-red)}
.hg-store .jp-editorial .hg-gd34 .gd34-ph__chip>svg{flex:none}
.hg-store .jp-editorial .hg-gd34 .gd34-ph__box{position:absolute;z-index:1;border:3px solid #fff;border-radius:10px;box-shadow:0 0 0 1px #0000002e,0 2px 10px #00000038;pointer-events:none;transition:opacity .25s ease}
.hg-store .jp-editorial .hg-gd34 .gd34-ph__box.is-red{border-color:var(--hg-red);background:rgba(201,39,32,.1)}
.hg-store .jp-editorial .hg-gd34 .gd34-ph__box.is-dash{border-style:dashed;border-color:#fff;background:none}
.hg-store .jp-editorial .hg-gd34 .gd34-ph__ring{position:absolute;z-index:1;transform:translate(-50%,-50%);border:3px solid var(--hg-red);border-radius:50%;box-shadow:0 0 0 2px #ffffffb3;pointer-events:none}
.hg-store .jp-editorial .hg-gd34 .gd34-ph__shade{position:absolute;z-index:1;top:0;height:100%;background:var(--ph-shade);transition:opacity .25s ease;pointer-events:none}
.hg-store .jp-editorial .hg-gd34 .gd34-ph__pt{position:absolute;z-index:3;display:grid;place-items:center;width:40px;height:40px;margin:-20px 0 0 -20px;padding:0;border:3px solid var(--hg-red);border-radius:50%;
  background:#fff;color:#181a1d;font:700 15px/1 Montserrat,sans-serif;box-shadow:0 2px 8px #0000002e;cursor:pointer;transition:background-color .15s ease,color .15s ease,transform .15s ease}
.hg-store .jp-editorial .hg-gd34 button.gd34-ph__pt:hover{transform:scale(1.06)}
.hg-store .jp-editorial .hg-gd34 .gd34-ph__pt.is-on{background:var(--hg-red);color:#fff;border-color:#fff;box-shadow:0 0 0 5px rgba(201,39,32,.24),0 2px 8px #0003}
.hg-store .jp-editorial .hg-gd34 .gd34-ph__pt.is-static{cursor:default;pointer-events:none}
.hg-store .jp-editorial .hg-gd34 :is(.gd34-ph__pt,.gd34-sw__tab,.gd34-pg__btn):focus-visible{outline:3px solid var(--hg-red);outline-offset:2px}

/* SVG-слой поверх кадра (колесо 05.1, малые кадры, категории 06) */
.hg-store .jp-editorial .hg-gd34 .gd34-ph-ov{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;filter:none}
.hg-gd34 .gd34-ph-ring{fill:none;stroke:var(--hg-red);stroke-width:7}
.hg-gd34 .gd34-ph-ring.is-dash{stroke-dasharray:14 10}
.hg-gd34 .gd34-ph-band{fill:none;stroke:rgba(201,39,32,.55);stroke-width:18}
.hg-gd34 .gd34-ph-fill{fill:rgba(201,39,32,.16)}
.hg-gd34 .gd34-ph-dim{fill:none;stroke:var(--hg-red);stroke-width:6}
.hg-gd34 .gd34-ph-pill rect{fill:#181a1d}
.hg-gd34 .gd34-ph-pill.is-red rect{fill:var(--hg-red)}
.hg-gd34 .gd34-ph-pill text{fill:#fff;font-family:Montserrat,'Noto Sans JP',sans-serif;font-weight:700}
.hg-gd34 .gd34-ph-lead{fill:none;stroke:var(--hg-red);stroke-width:3;stroke-dasharray:6 6;opacity:.5;transition:opacity .25s ease}
.hg-gd34 .gd34-ph-lead.is-on{opacity:1;stroke-dasharray:none}

/* ---------- Кадр внутри «исследователя» (01, 05.1, 05.2) ---------- */
.hg-store .jp-editorial .hg-gd34 .hg-gd34-ex__fig>.gd34-ph-fig{position:absolute;inset:0}
.hg-store .jp-editorial .hg-gd34 .gd34-ph-fig>img{display:block;width:100%;height:100%;object-fit:cover}
.hg-store .jp-editorial .hg-gd34 .gd34-ph-fig--wheel>img{position:absolute;left:7%;top:7%;width:86%;height:86%;object-fit:contain;filter:drop-shadow(0 16px 22px #171b2233)}
html[data-theme=dark] .hg-store .jp-editorial .hg-gd34 .gd34-ph-fig--wheel>img{filter:drop-shadow(0 16px 26px #000a)}
.hg-store .jp-editorial .hg-gd34 .hg-gd34-ex--phcar .hg-gd34-ex__fig{aspect-ratio:960/1286;width:100%;max-width:420px;justify-self:center;background:var(--gd34-panel)}
.hg-store .jp-editorial .hg-gd34 .hg-gd34-ex--ph43 .hg-gd34-ex__fig{aspect-ratio:960/717;background:var(--gd34-panel)}
.hg-store .jp-editorial .hg-gd34 .hg-gd34-card__art:has(>.gd34-ph-art){display:block;height:auto;padding:0;background:none;overflow:visible}
.hg-store .jp-editorial .hg-gd34 .gd34-ph-art{margin:0}
.hg-store .jp-editorial .hg-gd34 .gd34-ph-art .gd34-ph__pic{border-radius:12px}
.hg-store .jp-editorial .hg-gd34 .gd34-ph-art>figcaption{padding:7px 2px 0;font-size:12.5px;line-height:1.5;color:var(--hg-muted)}

/* «рентген» колёс на виде сверху: обычные — светлый пунктир, выбранные — красные */
.hg-store .jp-editorial .hg-gd34 .gd34-xr{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;filter:none}
.hg-gd34 .gd34-xr__w{fill:rgba(24,26,29,.26);stroke:#fff;stroke-width:5;stroke-dasharray:14 9;transition:fill .25s ease,stroke .25s ease}
.hg-gd34 .gd34-xr__a{stroke:#fff;stroke-width:4;stroke-dasharray:10 9;opacity:.8;transition:stroke .25s ease,opacity .25s ease}
.hg-gd34 :is(.hg-gd34-ex[data-active=front],.hg-gd34-ex[data-active=count],.gd34-lab--fit4[data-state=all],.gd34-lab--fit4[data-state=some]) .gd34-xr__w[data-g=front],
.hg-gd34 :is(.hg-gd34-ex[data-active=rear],.hg-gd34-ex[data-active=count],.gd34-lab--fit4[data-state=all]) .gd34-xr__w[data-g=rear]{fill:rgba(201,39,32,.42);stroke:var(--hg-red);stroke-dasharray:none}
.hg-gd34 :is(.hg-gd34-ex[data-active=front],.hg-gd34-ex[data-active=count],.gd34-lab--fit4[data-state=all],.gd34-lab--fit4[data-state=some]) .gd34-xr__a[data-g=front],
.hg-gd34 :is(.hg-gd34-ex[data-active=rear],.hg-gd34-ex[data-active=count],.gd34-lab--fit4[data-state=all]) .gd34-xr__a[data-g=rear]{stroke:var(--hg-red);opacity:1;stroke-dasharray:none}

/* ---------- «Лаборатории» с кадром (02 четыре колеса, 06 категории) ---------- */
.hg-store .jp-editorial .hg-gd34 .gd34-lab--ph .gd34-lab__stage{display:grid;place-items:center;padding:14px}
.hg-store .jp-editorial .hg-gd34 .gd34-lab--ph .gd34-ph-fig{position:relative;width:100%;overflow:hidden;border-radius:14px}
.hg-store .jp-editorial .hg-gd34 .gd34-lab--ph .gd34-ph-fig--car{aspect-ratio:960/1286;max-width:330px}
.hg-store .jp-editorial .hg-gd34 .gd34-lab--ph .gd34-ph-fig--sale{aspect-ratio:1/1;max-width:420px;overflow:visible}
.hg-store .jp-editorial .hg-gd34 .gd34-ph-fig--sale>img{object-fit:contain}
.hg-gd34 .gd34-sl__fade{fill:var(--ph-fade);opacity:0;transition:opacity .25s ease}
.hg-gd34 .gd34-sl__in{fill:none;stroke:var(--hg-red);stroke-width:10;opacity:0;transition:opacity .25s ease}
.hg-gd34 .gd34-sl__out{fill:none;stroke:var(--ph-quiet);stroke-width:6;stroke-dasharray:18 12;opacity:0;transition:opacity .25s ease}
.hg-gd34 .gd34-lab--sale[data-state=set] .gd34-sl__in,
.hg-gd34 .gd34-lab--sale[data-state=tyre] :is(.gd34-sl__in[data-m=tyre],.gd34-sl__fade[data-m=wheel],.gd34-sl__out[data-m=wheel]),
.hg-gd34 .gd34-lab--sale[data-state=wheel] :is(.gd34-sl__in[data-m=wheel],.gd34-sl__fade[data-m=tyre],.gd34-sl__out[data-m=tyre]){opacity:1}
.hg-store .jp-editorial .hg-gd34 .gd34-lab--sale [data-for]{opacity:0;transition:opacity .25s ease}
.hg-store .jp-editorial .hg-gd34 .gd34-lab--sale[data-state=tyre] [data-for=tyre],
.hg-store .jp-editorial .hg-gd34 .gd34-lab--sale[data-state=wheel] [data-for=wheel]{opacity:1}
.hg-store .jp-editorial .hg-gd34 .gd34-lab--sale .gd34-ph--set{margin-top:18px}
html:not(.hg-gd34-js) .hg-store .jp-editorial .hg-gd34 .gd34-lab--sale .gd34-lab__panel{display:block}

/* «Как сузить выбор» (03): название шага в полосе вместо точек */
.hg-gd34 .gd34-fn__lbl{fill:var(--hg-ink);font-family:Montserrat,'Noto Sans JP',sans-serif;font-weight:700;letter-spacing:-.01em}

/* ---------- Переключатель «Схема | Как выглядит» ---------- */
.hg-store .jp-editorial .hg-gd34 .gd34-sw{min-width:0}
.hg-store .jp-editorial .hg-gd34 .gd34-sw__tabs{display:inline-flex;gap:4px;margin:0 0 16px;padding:4px;border-radius:14px;background:var(--gd34-panel);box-shadow:inset 0 0 0 1px var(--gd34-panel-line)}
.hg-store .jp-editorial .hg-gd34 .gd34-sw__tab{display:inline-flex;align-items:center;gap:7px;min-height:44px;margin:0;padding:0 18px;border:0;border-radius:10px;background:transparent;color:var(--hg-muted);
  font:700 14px/1.2 Montserrat,'Noto Sans JP',sans-serif;cursor:pointer;transition:background-color .2s ease,color .2s ease,box-shadow .2s ease}
.hg-store .jp-editorial .hg-gd34 .gd34-sw__tab:hover{color:var(--hg-ink)}
.hg-store .jp-editorial .hg-gd34 .gd34-sw__tab.is-on{background:var(--hg-white);color:var(--hg-ink);box-shadow:0 1px 3px #0000001f,0 4px 10px #0000000d}
html[data-theme=dark] .hg-store .jp-editorial .hg-gd34 .gd34-sw__tab.is-on{background:#2c2e31;color:#f1efea;box-shadow:0 1px 3px #0008}
html:not(.hg-gd34-js) .hg-store .jp-editorial .hg-gd34 .gd34-sw__tabs{display:none}
html:not(.hg-gd34-js) .hg-store .jp-editorial .hg-gd34 .gd34-sw__panel+.gd34-sw__panel{margin-top:24px}
html.hg-gd34-js .hg-store .jp-editorial .hg-gd34 .gd34-sw__panel:not(.is-on){display:none}

/* ---------- Номера и кнопки на кадре (04 размер, 03 три шины) ---------- */
.hg-store .jp-editorial .hg-gd34 .gd34-pg{display:grid;gap:12px;max-width:760px}
.hg-store .jp-editorial .hg-gd34 .gd34-pg__lead{margin:0;font-size:14px;color:var(--hg-muted)}
.hg-store .jp-editorial .hg-gd34 .gd34-pg__bar{display:flex;flex-wrap:wrap;gap:8px}
.hg-store .jp-editorial .hg-gd34 .gd34-pg__btn{min-height:44px;margin:0;padding:0 16px;border:1px solid var(--hg-line);border-radius:99px;background:var(--hg-white);color:var(--hg-ink);
  font:700 14px/1.2 Montserrat,'Noto Sans JP',sans-serif;cursor:pointer;transition:background-color .2s ease,color .2s ease,border-color .2s ease}
.hg-store .jp-editorial .hg-gd34 .gd34-pg__btn:hover{border-color:var(--hg-ink)}
.hg-store .jp-editorial .hg-gd34 .gd34-pg__btn.is-on{background:var(--hg-ink);border-color:var(--hg-ink);color:var(--hg-white)}
html:not(.hg-gd34-js) .hg-store .jp-editorial .hg-gd34 .gd34-pg__bar{display:none}
.hg-store .jp-editorial .hg-gd34 .gd34-pg__say{display:grid;gap:6px}
.hg-store .jp-editorial .hg-gd34 .gd34-pg__line{display:flex;align-items:baseline;gap:10px;margin:0;font-size:15px;line-height:1.6;color:var(--hg-ink)}
.hg-store .jp-editorial .hg-gd34 .gd34-pg__n{display:inline-grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:var(--hg-red);color:#fff;font:700 12px/1 Montserrat,sans-serif;transform:translateY(-1px)}
html.hg-gd34-js .hg-store .jp-editorial .hg-gd34 .gd34-pg__line:not(.is-on){display:none}
html.hg-gd34-js .hg-store .jp-editorial .hg-gd34 .gd34-pg :is(.gd34-ph__box,.gd34-ph__shade)[data-pg-show]:not(.is-on){opacity:0}

/* ---------- Ряды, пары и одиночные кадры ---------- */
.hg-store .jp-editorial .hg-gd34 .gd34-ph-row{margin-top:clamp(20px,3vw,28px)}
.hg-store .jp-editorial .hg-gd34 .gd34-ph-row__t{margin:0 0 12px;font-size:17px;line-height:1.35;font-weight:700;letter-spacing:-.01em;color:var(--hg-ink)}
.hg-store .jp-editorial .hg-gd34 .gd34-ph-row__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:18px}
.hg-store .jp-editorial .hg-gd34 .gd34-ph-row--2 .gd34-ph-row__grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
.hg-store .jp-editorial .hg-gd34 .gd34-ph__pic.is-cover>img{object-fit:cover}
.hg-store .jp-editorial .hg-gd34 .gd34-ph-steps{display:flex;flex-wrap:wrap;gap:8px 10px;margin:16px 0 0;padding:0;list-style:none;counter-reset:gd34ph}
.hg-store .jp-editorial .hg-gd34 .gd34-ph-steps>li{display:inline-flex;align-items:center;gap:10px;margin:0;padding:8px 14px 8px 8px;border-radius:99px;background:var(--gd34-panel);font-size:14px;font-weight:700;line-height:1.35;color:var(--hg-ink);counter-increment:gd34ph}
.hg-store .jp-editorial .hg-gd34 .gd34-ph-steps>li::before{content:counter(gd34ph);display:inline-grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;background:var(--hg-red);color:#fff;font:700 13px/1 Montserrat,sans-serif}
.hg-store .jp-editorial .hg-gd34 .gd34-ph-solo{margin-top:clamp(18px,2.6vw,26px);max-width:760px}
.hg-store .jp-editorial .hg-gd34 .gd34-ph-solo--half{max-width:520px}
@media (min-width:700px){
  .hg-store .jp-editorial .hg-gd34 .gd34-ph--side{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:22px;align-items:center}
  .hg-store .jp-editorial .hg-gd34 .gd34-ph--side>.gd34-ph__cap{padding:0}
}
.hg-store .jp-editorial .hg-gd34 .gd34-ph-pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:18px}
.hg-store .jp-editorial .hg-gd34 .gd34-ph-duo{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:18px 28px;align-items:center}
.hg-store .jp-editorial .hg-gd34 .gd34-ph-legend{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.hg-store .jp-editorial .hg-gd34 .gd34-ph-legend>li{display:flex;align-items:center;gap:10px;margin:0;font-size:15px;line-height:1.45;color:var(--hg-ink)}
.hg-store .jp-editorial .hg-gd34 .gd34-ph-say{margin:16px 0 0;padding:12px 16px;border-radius:14px;background:var(--gd34-panel);font-size:15px;line-height:1.6;color:var(--hg-ink)}
.hg-store .jp-editorial .hg-gd34 .hg-gd34-axles>.gd34-ph__note{margin-top:10px}

/* ---------- Узкий экран ---------- */
@media (max-width:600px){
  .hg-store .jp-editorial .hg-gd34 .gd34-ph__chip{padding:4px 8px;border-radius:8px;font-size:11px;white-space:normal;width:max-content;max-width:46%}
  .hg-store .jp-editorial .hg-gd34 .gd34-ph__chip.is-front{max-width:none;white-space:nowrap}
  .hg-store .jp-editorial .hg-gd34 .gd34-ph__pt{width:34px;height:34px;margin:-17px 0 0 -17px;border-width:2.5px;font-size:13px}
  .hg-store .jp-editorial .hg-gd34 .gd34-sw__tabs{display:flex;width:100%}
  .hg-store .jp-editorial .hg-gd34 .gd34-sw__tab{flex:1 1 0;justify-content:center;padding:0 10px}
  .hg-store .jp-editorial .hg-gd34 .gd34-ph-steps>li{font-size:13px}
}
@media (prefers-reduced-motion:reduce){
  .hg-gd34 :is(.gd34-ph__box,.gd34-ph__shade,.gd34-ph-lead,.gd34-xr__w,.gd34-xr__a,.gd34-sl__fade,.gd34-sl__in,.gd34-sl__out),
  .hg-store .jp-editorial .hg-gd34 :is(.gd34-ph__pt,.gd34-sw__tab,.gd34-pg__btn,.gd34-lab--sale [data-for]){transition:none}
}
