/* ГИКПРОМГРАМ — раздел /gikpromgram/, вариант 2 «Фотолента» (28.09.2026).
   СОБРАНО build_css.py из исходников макета — руками не править:
   Редизайн/ГИКПРОМГРАМ/_spec/{v2.css, gg.css} + нужные правила Главная/_spec/v4.css и
   Редизайн/Блог-лента/_spec/blog.css, всё внутри корневого блока .gpg. */

/* --- страница раздела на всю ширину, как /resheniya/: без левой колонки, крошек и H1 темы */
body:has(.gpg) .main__wrap > .in-left { display: none; }
body:has(.gpg) .main__wrap > .in-right { width: 100%; max-width: none; margin-left: 0; float: none; }
body:has(.gpg) .main__wrap.wrap { display: block; max-width: none; padding-left: 0; padding-right: 0; }
body:has(.gpg) .in-right > .bread { display: none; }
body:has(.gpg) .in-right > .page > h1 { display: none; }
body:has(.gpg) .in-separator { display: none; }
body:has(.gpg) footer, body:has(.gpg) .gh-foot { margin-top: 0; }
.main:has(.gpg) { background: var(--bg); }
body:has(.gpg) .in-right > .page { line-height: 1.6; }

/* --- токены главной, которые она задаёт на body (.gh-body), и радиус полей */
.gpg { --steel: #8d95ab; --deep: #161d34; --deep-2: #1f2842; --tick: #c9d1e4;
  --muted: #6a6e7d; --green-d: #278748; font-family: var(--font); -webkit-font-smoothing: antialiased; }

/* --- сброс «статейной» типографики темы (.page ul li:before ✓, отступы списков):
   вес (0,1,1)–(0,1,3) — сильнее правил темы, слабее любого нашего класса (0,2,0) */
.gpg ul, .gpg ol { margin: 0; padding: 0; list-style: none; }
.gpg ul li, .gpg ol li { margin: 0; padding: 0; line-height: inherit; list-style: none; position: static; }
.gpg ul li:before { content: none; }
.gpg .gpg-hidden { display: none; }

/* --- пометка черновика в предпросмотре */
.gpg .gg2-draft { margin: 24px 0 0; padding: 10px 14px; border-radius: 12px; background: #fff4e5; color: #7a4300; font-size: 14px; }

/* ===== главная (v4.css): база .gh, кнопка, форма, шапка блока ===== */
.gpg.gh,
.gpg .gh { color: var(--ink); font-size: 14px; line-height: 1.6; }
.gpg.gh,
.gpg .gh,
.gpg.gh *,
.gpg .gh *,
.gpg.gh *::before,
.gpg .gh *::before,
.gpg.gh *::after,
.gpg .gh *::after { box-sizing: border-box; }
.gpg.gh :where(img),
.gpg .gh :where(img) { max-width: 100%; height: auto; display: block; }
.gpg.gh :where(a),
.gpg .gh :where(a) { color: var(--blue-d); text-decoration: none; }
.gpg.gh :where(h1, h2, h3, h4, p, ul, ol, figure),
.gpg .gh :where(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; }
.gpg.gh :where(ul, ol),
.gpg .gh :where(ul, ol) { list-style: none; padding: 0; }
.gpg.gh :where(button),
.gpg .gh :where(button) { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.gpg.gh :where(svg),
.gpg .gh :where(svg) { stroke-linecap: round; stroke-linejoin: round; }
.gpg.gh :focus-visible,
.gpg .gh :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.gpg.gh :where(a, summary, [tabindex]):focus-visible,
.gpg .gh :where(a, summary, [tabindex]):focus-visible { border-radius: 6px; }
.gpg .gh-dark :focus-visible { outline-color: #9dbaff; }
.gpg.gh-wrap { max-width: 1480px; margin: 0 auto; padding: 0 30px; }
.gpg .gh-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.gpg .gh-num { font-variant-numeric: tabular-nums; }
.gpg .gh-head { position: relative; display: flex; align-items: flex-end; gap: 28px; margin-bottom: 30px; }
.gpg .gh-head__t { min-width: 0; flex: 1 1 auto; }
.gpg .gh-head h2 { font-size: 34px; line-height: 1.18; font-weight: 500; letter-spacing: -.022em; text-wrap: balance; }
.gpg .gh-head p { margin-top: 12px; font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.gpg .gh-head__more { flex: none; font-size: 14px; color: var(--blue-d); padding-bottom: 4px; border-bottom: 1px solid rgba(78,125,241,.3); transition: border-color .18s, color .18s; }
.gpg .gh-head__more:hover { color: var(--blue-d); border-bottom-color: var(--blue-d); }
.gpg .gh-dark .gh-head h2 { color: #fff; }
.gpg .gh-dark .gh-head p { color: #b6bfd6; }
.gpg .gh-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 7px 26px; border-radius: var(--r-ctl); font-size: 15.5px; font-weight: 500; text-align: center; background: var(--accent); color: #fff; transition: background .18s, box-shadow .18s, transform .12s; }
.gpg .gh-btn:hover { background: var(--accent-d); box-shadow: 0 14px 30px -14px rgba(232,84,31,.7); }
.gpg .gh-btn:active { transform: translateY(1px); }
.gpg .gh-btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.gpg .gh-btn--ghost:hover { background: #fff; box-shadow: inset 0 0 0 1px #cdd6ea, var(--shadow); }
.gpg .gh-dark [data-spot]::after { background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.10), transparent 62%); }
@keyframes gh-exp-breathe {
  0%, 100% { transform: translate3d(-4%, 2%, 0) scale(1); opacity: .7; }
  50% { transform: translate3d(6%, -3%, 0) scale(1.14); opacity: 1; }
}
@keyframes gh-exp-shine { to { transform: translateX(130%); } }
@keyframes gh-beam { from { left: -12%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } to { left: 100%; opacity: 0; } }
@keyframes gh-mq { from { transform: translateX(0); } to { transform: translateX(-33.3333%); } }
.gpg .gh-form { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px #e7ecf7, 0 2px 6px rgba(24,34,68,.04), 0 32px 62px -34px rgba(24,34,68,.45); }
.gpg .gh-form__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 16px 26px; color: #fff; background: linear-gradient(100deg, var(--navy) 0%, var(--navy-2) 100%); }
.gpg .gh-form__head b { font-size: 16.5px; font-weight: 500; }
.gpg .gh-form__head span { font-size: 13px; color: #aab4cd; }
.gpg .gh-form__body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 18px 26px 20px; }
.gpg .gh-form__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px 14px; }
.gpg .gh-f { display: flex; flex-direction: column; gap: 5px; }
.gpg .gh-f label { font-size: 13px; color: var(--muted); }
.gpg .gh-f label i { color: var(--accent); font-style: normal; }
.gpg .gh-f input,
.gpg .gh-f textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fbfcfe; border: 1px solid #98a2b8; border-radius: var(--r-ctl); padding: 11px 14px; transition: border-color .16s, background .16s, box-shadow .16s; }
.gpg .gh-f textarea { min-height: 84px; resize: vertical; }
.gpg .gh-f input:hover,
.gpg .gh-f textarea:hover { background: #f4f7fd; border-color: #7d89a6; }
.gpg .gh-f input:focus,
.gpg .gh-f textarea:focus { outline: 2px solid transparent; outline-offset: 2px; background: #fff; border-color: var(--blue); box-shadow: var(--ring); }
.gpg .gh-f input[aria-invalid="true"],
.gpg .gh-f textarea[aria-invalid="true"] { border-color: var(--accent-d); }
.gpg .gh-f--task { flex: 1 1 auto; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.gpg .gh-f--task textarea { flex: 1 1 auto; min-height: 84px; }
.gpg .gh-f textarea::placeholder { color: #9aa2b5; }
.gpg .gh-form__foot { margin-top: 16px; display: grid; gap: 13px; }
.gpg .gh-form__foot .gh-btn { min-width: 178px; min-height: 44px; }
.gpg .gh-agree { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.gpg .gh-agree input { flex: none; width: 18px; height: 18px; margin: 0; cursor: pointer; accent-color: var(--blue); }
.gpg .gh-agree input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.gpg .gh-agree.is-bad { color: var(--accent-d); }
.gpg .gh-agree.is-bad input { outline: 2px solid var(--accent-d); outline-offset: 2px; border-radius: 3px; }
.gpg .gh-form__send { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gpg .gh-form__hint { font-size: 13px; color: var(--muted); }
.gpg .gh-form__msg { width: 100%; margin-top: 14px; font-size: 13px; line-height: 1.5; }
.gpg .gh-form__msg:empty { display: none; }
.gpg .gh-form__msg--err { color: var(--accent-d); }
.gpg .gh-form__msg--ok { color: var(--green-d); }
@media (prefers-reduced-motion: reduce) {
.gpg.gh *,
.gpg .gh *,
.gpg.gh *::before,
.gpg .gh *::before,
.gpg.gh *::after,
.gpg .gh *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 1023px) {
.gpg.gh-wrap { padding: 0 20px; }
}
@media (max-width: 767px) {
.gpg .gh-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.gpg .gh-head h2 { font-size: 26px; letter-spacing: -.018em; }
.gpg .gh-head p { font-size: 15px; }
.gpg .gh-form__head,
.gpg .gh-form__body { padding-left: 18px; padding-right: 18px; }
.gpg .gh-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 559px) {
.gpg .gh-form__grid { grid-template-columns: minmax(0, 1fr); }
}
.gpg .gh-agree .in-checkbox { display: contents !important; }
.gpg .gh-agree .in-checkbox__element { display: none !important; }
.gpg .gh-agree input[type="checkbox"] { flex: none; width: 17px; height: 17px; margin: 2px 0 0; opacity: 1 !important; position: relative !important; z-index: 1 !important; visibility: visible !important; pointer-events: auto; appearance: auto; -webkit-appearance: checkbox; accent-color: var(--blue); }
.gpg .gh-form__msg:empty { visibility: hidden; display: block; min-height: 0; }
.gpg .gh-btn:disabled,
.gpg .gh-btn[disabled] { opacity: .55; cursor: default; }
.gpg .gh-btn:disabled:hover,
.gpg .gh-btn[disabled]:hover { transform: none; }
.gpg.gh [id],
.gpg .gh [id] { scroll-margin-top: 84px; }
.gpg .gh-form__head :focus-visible { outline-color: #9dbaff; }

/* ===== лента блога (blog.css): крошки, мета, пустое состояние, полоса вопроса, пагинация ===== */
.gpg.gb { background: var(--bg); padding: 0 0 72px; --r-card: 18px; --elev-0: 0 0 0 1px #eaeef7, 0 2px 4px rgba(24,34,68,.03); --elev-h: 0 0 0 1px #dbe3f5, 0 20px 42px -22px rgba(24,34,68,.36); --ring-0: inset 0 0 0 1px var(--line); --ring-h: inset 0 0 0 1px #c6d2ee; --sec: 64px; --gap-grid: 20px; --pad-card: 20px; --pad-panel: 32px; --gutter: 20px; }
.gpg.gb .gh-wrap { max-width: 1480px; }
.gpg .gb-crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 34px 0 0; font-size: 14px; color: var(--muted); }
.gpg .gb-crumbs a { color: var(--muted); }
.gpg .gb-crumbs a:hover { color: var(--blue-d); }
.gpg.gb h1 { font-size: 30px; line-height: 42px; font-weight: 500; color: #222; }
.gpg .gb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.gpg .gb-tag { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); }
.gpg .gb-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--blue)); }
.gpg .gb-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 40px; }
.gpg .gb-pager__n { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 8px; border-radius: 10px; background: #fff; box-shadow: var(--ring-0); font-size: 14px; transition: background .18s, box-shadow .18s; }
.gpg.gb .gb-pager__n { color: var(--ink); }
.gpg .gb-pager__n:hover { background: var(--soft); box-shadow: var(--ring-h); }
.gpg .gb-pager__n.is-on { background: var(--navy); color: #fff; box-shadow: none; }
.gpg .gb-pager__gap { padding: 0 6px; color: var(--muted); }
.gpg .gb-pager__next { margin-left: 10px; font-size: 14px; border-bottom: 1px solid rgba(78,125,241,.3); }
.gpg .gb-ask { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 40px; padding: 28px 32px; border-radius: var(--r-card); background: #fff; box-shadow: var(--elev-0); }
.gpg .gb-ask__h { font-size: 22px; line-height: 1.3; font-weight: 500; }
.gpg .gb-ask p:not(.gb-ask__h) { margin-top: 8px; font-size: 14.5px; line-height: 1.58; color: var(--muted); }
.gpg .gb-ask__a { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.gpg.gb .gb-ask__tel { font-size: 17px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.gpg.gb .gh-btn { color: #fff; }
.gpg.gb a.gh-btn:hover { color: #fff; }
.gpg .gb-empty { margin-top: 20px; padding: 22px 24px; border-radius: var(--r-card); background: #fff; box-shadow: var(--elev-0); font-size: 14.5px; color: var(--muted); }
.gpg.gb [hidden] { display: none !important; }
@media (max-width: 767px) {
.gpg.gb { padding-bottom: 48px; }
.gpg.gb h1 { font-size: 20px; line-height: 28px; }
.gpg .gb-crumbs { padding-top: 32px; font-size: 12px; }
.gpg .gb-ask { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; }
.gpg .gb-ask__h { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
.gpg.gb *,
.gpg.gb *::before,
.gpg.gb *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.gpg.gb .v4-plate a:focus-visible { outline-color: #9dbaff; }
.gpg.gb .v4-toc a:focus-visible,
.gpg.gb .gb-pager__n:focus-visible { outline-offset: 2px; }
.gpg.gb .gb-h2,
.gpg.gb .gh-head h2 { font-size: 34px; line-height: 1.18; font-weight: 500; letter-spacing: -.022em; }
.gpg.gb .gh-head p { font-size: 16.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 767px) {
.gpg.gb { --sec: 40px; --pad-panel: 20px; }
.gpg.gb .gb-h2,
.gpg.gb .gh-head h2 { font-size: 26px; }
.gpg.gb .gh-head p { font-size: 15px; }
}
.gpg.gb .is-more { display: none; }
.gpg.gb :where(#v1-feed-h):focus { outline: none; }

/* ===== общее ГИКПРОМГРАМ (gg.css): палитра рубрик, окно вопроса ===== */
.gpg.gg,
.gpg .gg { --gg-priem: #278748; --gg-otgruzka: var(--blue); --gg-vyezd: #1b8a96; --gg-sklad: #6b7488; --gg-lab: #a8660d; --gg-priem-d: #7fd09a; --gg-otgruzka-d: #9dbaff; --gg-vyezd-d: #7fdde6; --gg-sklad-d: #d3d8e4; --gg-lab-d: #f3c56b; }
.gpg .gg-ask.gh { font-size: 14px; line-height: 1.6; }
html:has(.gg-ask[open]) { overflow: hidden; scrollbar-gutter: stable; }
.gpg .gg-ask__need { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.gpg .gg-ask__err { color: #c2410c; }
.gpg .gg-ask .gh-agree.is-bad { color: #c2410c; }
.gpg .gg-ask .gh-agree.is-bad input { outline-color: #c2410c; }
.gpg .gg-ask { margin: auto; inset: 0; width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: transparent; overflow: visible; }
.gpg .gg-ask::backdrop { background: rgba(14, 19, 36, .56); }
.gpg .gg-ask .gh-form { max-height: calc(100dvh - 32px); overflow: auto; }
.gpg .gg-ask .gh-form__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gpg .gg-ask__x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.gpg .gg-ask__x:hover { background: rgba(255, 255, 255, .1); }
.gpg .gg-ask__x:focus-visible { outline: 2px solid #9dbaff; outline-offset: -2px; }
.gpg .gg-ask__x svg { width: 20px; height: 20px; }
.gpg .gg-ask__about { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.gpg .gg-ask__about b { font-weight: 500; color: var(--ink); }
.gpg .gg-ask__about { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) {
.gpg .gg-ask .gh-form__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
.gpg .gg-ask[open] { animation: gg-ask-in .22s cubic-bezier(.16, 1, .3, 1); }
@keyframes gg-ask-in { from { opacity: 0; transform: translateY(8px); } }
}

/* ===== вариант 2 (v2.css) ===== */
.gpg .gg2-t--priem { --c: var(--gg-priem); --cd: var(--gg-priem-d); }
.gpg .gg2-t--otgruzka { --c: var(--gg-otgruzka); --cd: var(--gg-otgruzka-d); }
.gpg .gg2-t--vyezd { --c: var(--gg-vyezd); --cd: var(--gg-vyezd-d); }
.gpg .gg2-t--sklad { --c: var(--gg-sklad); --cd: var(--gg-sklad-d); }
.gpg .gg2-t--lab { --c: var(--gg-lab); --cd: var(--gg-lab-d); }
.gpg .gg2-hero { position: relative; overflow: clip; margin-top: 20px; padding: 40px 44px 0; border-radius: var(--r-card); color: #fff; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); }
.gpg .gg2-hero--solo { padding-bottom: 40px; }
.gpg .gg2-wm { position: absolute; z-index: 0; right: -12px; bottom: -110px; width: 400px; height: 400px; opacity: .06; pointer-events: none; --lg-1: #fff; --lg-2: #fff; --lg-3: #fff; }
.gpg .gg2-hero__in { position: relative; z-index: 1; }
.gpg .gg2-hero h1 { color: #fff; }
.gpg .gg2-hero__lead { margin-top: 10px; font-size: 14px; line-height: 1.65; color: #b6bfd6; }
.gpg .gg2-hero__upd { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; line-height: 1.6; color: #aab4cf; }
.gpg .gg2-hero__upd svg { flex: none; color: #86a6ff; }
.gpg .gg2-hero__upd time { white-space: nowrap; }
.gpg .gg2-chips { position: relative; z-index: 1; display: flex; gap: 8px; margin: 30px -44px 0; padding: 18px 44px 22px; border-top: 1px solid rgba(255,255,255,.12); overflow-x: auto; scroll-padding-inline: 44px; scrollbar-width: none; }
.gpg .gg2-chips::-webkit-scrollbar { display: none; }
.gpg .gg2-chips::after { content: ""; flex: 0 0 0; margin-left: -8px; }
.gpg .gg2-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 15px; border-radius: 19px; font-size: 14px; background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: background .18s, color .18s, box-shadow .18s; }
.gpg.gb .gg2-chip { color: #fff; }
.gpg .gg2-chip[data-type]:not([data-type=""])::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cd); }
.gpg .gg2-chip:hover { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.gpg.gb .gg2-chip[aria-current] { background: #fff; color: var(--navy); box-shadow: none; }
.gpg .gg2-chip[aria-current]::before { background: var(--c) !important; }
.gpg.gb .gg2-chip:focus-visible { outline-offset: 2px; }
.gpg .gg2-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
.gpg .gg2-grid.gg2-grid--few { grid-template-columns: repeat(var(--n), minmax(0, 340px)); }
.gpg .gg2-feed { margin-top: 40px; }
.gpg .gg2-tile { min-width: 0; }
.gpg .gg2-tile__a { display: block; color: var(--ink); border-radius: var(--r-card); }
.gpg .gg2-ph { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--r-card); background: var(--deep); box-shadow: var(--elev-0); transition: box-shadow .18s; }
.gpg .gg2-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.gpg .gg2-ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; pointer-events: none; background: linear-gradient(0deg, rgba(14,19,36,.84) 0%, rgba(14,19,36,.6) 40%, rgba(14,19,36,0) 100%); }
.gpg .gg2-ph__m { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 10px; font-size: 13px; line-height: 1.4; color: #fff; }
.gpg .gg2-ph__m .gb-tag { color: #fff; }
.gpg .gg2-ph__m .gb-tag::before { background: var(--cd); box-shadow: 0 0 0 1.5px rgba(255,255,255,.9); }
.gpg .gg2-ph__m time { margin-left: auto; color: #fff; white-space: nowrap; }
.gpg .gg2-tag-s { display: none; }
.gpg .gg2-ph__n { position: absolute; z-index: 1; top: 12px; right: 12px; display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12.5px; color: #fff; background: rgba(14,19,36,.64); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gpg .gg2-tile__h { margin-top: 12px; font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; text-wrap: pretty; transition: color .18s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gpg .gg2-tile__p { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gpg .gg2-tile__by { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gpg .gg2-tile__h + .gg2-tile__by { margin-top: 6px; }
.gpg .gg2-ph__v { position: absolute; z-index: 1; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 9px 0 7px; border-radius: 12px; font-size: 12.5px; color: #fff; background: rgba(14,19,36,.64); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gpg .gg2-ph__v svg { flex: none; }
.gpg .gg2-vid { display: block; background: #0e1324; }
.gpg .gg2-car__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; pointer-events: none; background: rgba(14,19,36,.28); }
.gpg .gg2-car__play svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.gpg .gg2-tile__a:hover .gg2-ph { box-shadow: var(--elev-h); }
.gpg .gg2-tile__a:hover .gg2-ph img { transform: scale(1.035); }
.gpg .gg2-tile__a:hover .gg2-tile__h { color: var(--blue-d); }
.gpg.gb .gg2-tile__a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: var(--r-card); }
.gpg .gg2-empty,
.gpg .gg2-none { margin-top: 32px; }
.gpg.gg-2 .gb-empty a { border-bottom: 1px solid rgba(78,125,241,.3); transition: border-color .18s; }
.gpg.gg-2 .gb-empty a:hover { border-bottom-color: var(--blue-d); }
.gpg.gg-2 .gb-pager__next { transition: border-color .18s; }
.gpg.gg-2 .gb-pager__next:hover { border-bottom-color: var(--blue-d); }
.gpg .gg2-ask { margin-top: var(--sec); }
.gpg.gg-2 .gb-crumbs [aria-current] { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gpg .gg2-post { --car-h: clamp(320px, min(42vw, calc(100svh - 380px)), 620px); --v-h: min(70svh, 560px); }
@media (min-width: 900px) {
.gpg .gg2-post { --v-h: clamp(320px, calc(100svh - 380px), 720px); }
}
.gpg .gg2-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 16px 48px; margin-top: 14px; }
.gpg .gg2-head--solo { grid-template-columns: minmax(0, 1fr); }
.gpg .gg2-head h1 { text-wrap: pretty; }
.gpg .gg2-meta { margin-top: 8px; }
.gpg .gg2-head__a { align-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.gpg .gg2-head__tel { font-size: 13px; line-height: 1.5; color: var(--muted); }
.gpg.gb .gg2-head__tel a { color: var(--ink); font-weight: 500; white-space: nowrap; }
.gpg .gg2-car { margin-top: 22px; }
.gpg .gg2-car__frame { position: relative; overflow: hidden; border-radius: var(--r-card); }
.gpg .gg2-car__track { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gpg .gg2-car__track::-webkit-scrollbar { display: none; }
.gpg.gb .gg2-car__track:focus-visible { outline: none; }
.gpg .gg2-car__frame:has(.gg2-car__track:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.gpg .gg2-car__s { position: relative; flex: none; height: var(--car-h); aspect-ratio: var(--ar); overflow: hidden; border-radius: var(--r-card); background: var(--deep); scroll-snap-align: start; }
.gpg .gg2-car__img { width: 100%; height: 100%; object-fit: cover; }
.gpg .gg2-car__nav { position: absolute; z-index: 3; top: 50%; display: grid; place-items: center; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); box-shadow: 0 6px 18px -6px rgba(14,19,36,.5); transition: background .18s, color .18s, box-shadow .18s; }
.gpg .gg2-car__nav:hover { background: #fff; color: var(--blue-d); box-shadow: 0 12px 28px -8px rgba(14,19,36,.62); }
.gpg .gg2-car__nav svg { transition: opacity .18s; }
.gpg .gg2-car__nav[aria-disabled="true"] { cursor: default; }
.gpg .gg2-car__nav[aria-disabled="true"] svg { opacity: .35; }
.gpg .gg2-car__nav[aria-disabled="true"]:hover { background: rgba(255,255,255,.9); color: var(--ink); box-shadow: 0 6px 18px -6px rgba(14,19,36,.5); }
.gpg.gb .gg2-car__nav:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 6px #fff, 0 6px 18px -6px rgba(14,19,36,.5); }
.gpg .gg2-car__nav--prev { left: 18px; }
.gpg .gg2-car__nav--prev svg { transform: scaleX(-1); }
.gpg .gg2-car__nav--next { right: 18px; }
@media (min-width: 768px) {
.gpg .gg2-car.is-fit .gg2-car__track { align-items: flex-start; scroll-snap-type: none; }
.gpg .gg2-car.is-fit .gg2-car__s { flex: 0 1 calc(var(--car-h) * var(--ar)); min-width: 0; height: auto; max-height: var(--car-h); }
}
.gpg .gg2-car.is-fit .gg2-car__thumbs,
.gpg .gg2-car.is-fit .gg2-car__dots { display: none; }
.gpg .gg2-car__dots { display: none; }
.gpg .gg2-car__thumbs { display: flex; gap: 10px; margin: 6px -9px 0; padding: 9px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.gpg .gg2-car__thumbs::-webkit-scrollbar { display: none; }
.gpg .gg2-car__thumbs li { flex: none; }
.gpg .gg2-car__thumbs a { position: relative; display: block; width: 92px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--deep); opacity: .72; transition: opacity .18s, box-shadow .18s; }
.gpg .gg2-car__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gpg .gg2-car__thumbs a:hover { opacity: 1; }
.gpg .gg2-car__thumbs a[aria-current] { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--blue); }
.gpg.gb .gg2-car__thumbs a:focus-visible { outline: 2px solid var(--navy); outline-offset: 6px; border-radius: 10px; }
.gpg .gg2-fig { margin-top: 22px; }
.gpg .gg2-fig__img { width: auto; height: auto; max-width: 100%; max-height: var(--car-h); border-radius: var(--r-card); background: var(--deep); }
.gpg .gg2-fig--v .gg2-fig__img { height: var(--v-h); max-height: none; aspect-ratio: var(--ar); }
.gpg .gg2-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px 64px; align-items: start; margin-top: 36px; }
.gpg .gg2-body > :only-child { grid-column: 1 / -1; }
.gpg .gg2-prose p { font-size: 14px; line-height: 1.65; color: #3b4157; }
.gpg .gg2-prose p + p { margin-top: 12px; }
.gpg .gg2-prose a { border-bottom: 1px solid rgba(78,125,241,.3); transition: border-color .18s; }
.gpg .gg2-prose a:hover { border-bottom-color: var(--blue-d); }
.gpg .gg2-side { position: sticky; top: calc(var(--h-fix, 64px) + 20px); padding: 24px; border-radius: var(--r-card); background: #fff; box-shadow: var(--elev-0); }
.gpg .gg2-side__h { font-size: 18px; line-height: 1.3; font-weight: 500; }
.gpg .gg2-prods { margin-top: 10px; }
.gpg .gg2-prods li + li { border-top: 1px solid var(--line-2); }
.gpg .gg2-prod { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 0; color: var(--ink); }
.gpg .gg2-prod__img { display: grid; place-items: center; width: 72px; height: 72px; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: var(--ring-0); color: #7f8cae; }
.gpg .gg2-prod__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.gpg .gg2-prod__b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gpg .gg2-prod b { font-size: 14px; line-height: 1.4; font-weight: 500; transition: color .18s; overflow-wrap: anywhere; }
.gpg .gg2-prod:hover b { color: var(--blue-d); }
.gpg .gg2-prod__p { font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.gpg .gg2-prod__p span { font-size: 12.5px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.gpg .gg2-prod__k { font-size: 12.5px; color: var(--muted); }
.gpg.gb .gg2-prod:focus-visible { outline-offset: 2px; border-radius: 12px; }
.gpg .gg2-more { margin-top: var(--sec); }
@media (min-width: 768px) {
.gpg .gg2-v { --fh: var(--car-h); display: grid; grid-template-columns: minmax(0, min(calc(var(--fh) * var(--ar)), var(--w, 9999px))) minmax(320px, 1fr); gap: 0 32px; align-items: start; margin-top: 22px; }
.gpg .gg2-v--v { --fh: var(--v-h); }
.gpg .gg2-v .gg2-fig { min-width: 0; margin-top: 0; }
.gpg .gg2-v .gg2-fig__img,
.gpg .gg2-v .gg2-fig--v .gg2-fig__img { display: block; width: 100%; height: auto; max-width: none; max-height: var(--fh); aspect-ratio: var(--ar); object-fit: cover; }
.gpg .gg2-v .gg2-body { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 0; }
.gpg .gg2-v .gg2-side { position: static; max-width: none; }
}
@media (min-width: 1024px) {
.gpg .gg2-v { gap: 0 56px; }
}
.gpg .gb-ask.gg2-ask--side { margin-top: 0; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px; }
.gpg .gg2-ask--side .gb-ask__h { font-size: 18px; }
.gpg .gg2-ask--side p:not(.gb-ask__h) { font-size: 14px; }
.gpg .gg2-ask--side .gb-ask__a { gap: 10px 22px; }
.gpg.gb .gg2-ask--side .gb-ask__tel { font-size: 14px; }
@media (max-width: 1023px) {
.gpg .gb-ask.gg2-ask { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) {
.gpg .gg2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gpg .gg2-tile__h { -webkit-line-clamp: 4; }
.gpg .gg2-more .gg2-tile:nth-child(4) { display: none; }
.gpg .gg2-body { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px 36px; }
}
@media (max-width: 900px) {
.gpg .gg2-body { grid-template-columns: minmax(0, 1fr); }
.gpg .gg2-side { position: static; }
.gpg .gg2-head { grid-template-columns: minmax(0, 1fr); }
.gpg .gg2-head__a { align-self: start; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
}
@media (max-width: 767px) {
.gpg .gg2-hero { margin-top: 16px; padding: 26px 20px 0; }
.gpg .gg2-hero--solo { padding-bottom: 26px; }
.gpg .gg2-wm { right: -8px; bottom: -70px; width: 240px; height: 240px; }
.gpg .gg2-chips { margin: 24px -20px 0; padding: 14px 20px 18px; scroll-padding-inline: 20px; }
.gpg .gg2-feed { margin-top: 28px; }
.gpg .gg2-grid,
.gpg .gg2-grid.gg2-grid--few { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
.gpg .gg2-grid.gg2-grid--one { grid-template-columns: minmax(0, 1fr); }
.gpg .gg2-more .gg2-tile:nth-child(4) { display: block; }
.gpg .gg2-ph::after { height: 64px; }
.gpg .gg2-ph__m { left: 9px; right: 9px; bottom: 8px; flex-wrap: nowrap; gap: 6px; font-size: 12.5px; }
.gpg .gg2-ph__m .gb-tag { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gpg .gg2-ph__m .gb-tag::before { display: inline-block; margin: 0 5px 1px 1px; vertical-align: middle; }
.gpg .gg2-ph__m time { flex: none; }
.gpg .gg2-tag-f { display: none; }
.gpg .gg2-tag-s { display: inline; }
.gpg .gg2-ph__tm { display: none; }
.gpg .gg2-ph__n { top: 8px; right: 8px; min-height: 22px; padding: 0 7px; font-size: 12.5px; }
.gpg .gg2-ph__v { top: 8px; left: 8px; min-height: 22px; padding: 0 7px 0 6px; }
.gpg .gg2-tile__h { margin-top: 9px; font-size: 14px; line-height: 1.4; }
.gpg .gg2-tile__p { font-size: 12.5px; }
.gpg .gg2-tile__by { font-size: 12.5px; }
.gpg .gg2-head { margin-top: 12px; }
.gpg .gg2-head__a .gh-btn { width: 100%; }
.gpg .gg2-car { --trk-h: clamp(min(56vw, 72svh), calc(100vw / (var(--ar0))), min(72svh, 125vw)); margin-top: 16px; margin-inline: calc(-1 * var(--gutter)); }
.gpg .gg2-car__frame { border-radius: 0; }
.gpg .gg2-car__frame:has(.gg2-car__track:focus-visible) { outline: none; }
.gpg .gg2-car__frame:has(.gg2-car__track:focus-visible)::after { content: ""; position: absolute; z-index: 4; inset: 3px 3px auto; height: calc(var(--trk-h) - 6px); pointer-events: none; box-shadow: inset 0 0 0 3px var(--blue), inset 0 0 0 5px #fff; }
.gpg .gg2-car__track { gap: 0; height: var(--trk-h); }
.gpg .gg2-car__s { flex: 0 0 100%; height: 100%; aspect-ratio: auto; border-radius: 0; background: var(--bg); scroll-snap-stop: always; }
.gpg .gg2-car__img { object-fit: contain; }
.gpg .gg2-car__nav { top: calc(var(--trk-h) / 2); width: 40px; height: 40px; margin-top: -20px; }
.gpg .gg2-car__nav--prev { left: 10px; }
.gpg .gg2-car__nav--next { right: 10px; }
.gpg .gg2-car__dots { position: static; display: flex; align-items: center; justify-content: center; gap: 0; width: max-content; max-width: 100%; margin: 10px auto 0; }
.gpg .gg2-car__dots button { display: grid; place-items: center; min-width: 24px; height: 28px; padding: 0 7px; }
.gpg .gg2-car__dots span { display: block; width: 9px; height: 9px; border-radius: 5px; background: rgba(14,19,36,.24); transition: width .25s cubic-bezier(.16,1,.3,1), background .18s; }
.gpg .gg2-car__dots [aria-current] span { width: 24px; background: var(--navy); }
.gpg .gg2-car__thumbs { display: none; margin-inline: 0; }
.gpg .gg2-fig { margin: 16px calc(-1 * var(--gutter)) 0; height: clamp(min(56vw, 72svh), calc(100vw / (var(--ar0))), min(72svh, 125vw)); background: var(--bg); }
.gpg .gg2-fig__img,
.gpg .gg2-fig--v .gg2-fig__img { width: 100%; height: 100%; max-width: none; max-height: none; aspect-ratio: auto; object-fit: contain; border-radius: 0; background: none; }
.gpg .gg2-body { margin-top: 22px; }
.gpg .gg2-side { padding: 20px; }
.gpg .gb-ask.gg2-ask--side { max-width: none; padding: 22px 20px; }
}
@media (max-width: 359px) {
.gpg .gg2-ph__m .gb-tag + time { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (forced-colors: active) {
.gpg.gb .gg2-chip { border: 1px solid CanvasText; }
.gpg.gb .gg2-chip[data-type]:not([data-type=""])::before { forced-color-adjust: none; background: CanvasText; }
.gpg.gb .gg2-chip[aria-current] { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
.gpg.gb .gg2-chip[aria-current]::before { background: HighlightText !important; }
.gpg .gg2-car__dots span { forced-color-adjust: none; background: GrayText; }
.gpg .gg2-car__dots [aria-current] span { background: CanvasText; }
.gpg .gg2-car__frame:has(.gg2-car__track:focus-visible) { outline-color: Highlight; }
.gpg .gg2-car__frame:has(.gg2-car__track:focus-visible)::after { box-shadow: none; outline: 3px solid Highlight; outline-offset: -3px; }
}
@media (prefers-reduced-motion: reduce) {
.gpg .gg2-car__track,
.gpg .gg2-car__thumbs,
.gpg .gg2-chips { scroll-behavior: auto; }
.gpg .gg2-tile__a:hover .gg2-ph img { transform: none; }
}

/* --- сетка раздела = .gh-wrap главной: край контента по краю шапки */
.gpg.gh-wrap.gb { padding-left: 30px; padding-right: 30px; }
@media (max-width: 1023px) { .gpg.gh-wrap.gb { padding-left: 20px; padding-right: 20px; } }
