/* Сайт-презентация (навык sayt-prezentaciya) — один источник слайдов, три вида:
   v-onepage — одностраничник, v-pages — страницы по разделам, v-deck — показ 16:9.
   Режим экрана — класс на <html>: wide (компьютер) | mobile (≤ 820 px) | print (?print=1, PDF).
   Слайд всегда 1920×1080; в показе масштабируется сцена, в одностраничнике и страницах — каждый кадр (--k).
   Имена переменных и классов совпадают с семейством докладов — дизайны Студии (deck-studio/designs) ложатся без правок. */

/* ---------------- токены ---------------- */
:root {
  --xg: #7FB91F; --xr: #D01030; --xy: #FFC233; --see: #3EC1F3; --think: #FFC233; --act: #8CCB3A; --sec: #FF5470; --human: #FFFFFF;
  --c: var(--xg);
  --bg: #0A1016; --fg: #F5F8F3; --muted: #C4CEC6; --line: rgba(255, 255, 255, .2);
  --glass: rgba(9, 16, 13, .72); --glass-b: rgba(255, 255, 255, .16); --glass-blur: 24px;
  --panel-fg: var(--fg); --panel-muted: var(--muted);
  --scrim: rgba(5, 10, 8, .55);
  --photo-f: saturate(1.06) contrast(1.02);
  --f-main: 'Onest', 'Golos Text', system-ui, sans-serif; --f-num: 'Onest', system-ui, sans-serif;
  --w-title: 300; --w-num: 200;
  --ease: cubic-bezier(.23, 1, .32, 1); --dur: 720ms; --step-ms: 110ms;
  --f-ink: radial-gradient(1100px 700px at 88% 6%, rgba(92, 200, 245, .16), transparent 60%), radial-gradient(900px 640px at 4% 100%, rgba(127, 185, 31, .16), transparent 60%), #0A1016;
  --f-forest: radial-gradient(1200px 800px at 85% 0%, rgba(127, 185, 31, .30), transparent 60%), linear-gradient(160deg, #0F2E1C, #071510);
  --f-green: linear-gradient(135deg, #9AD13A 0%, #7FB91F 45%, #5E9A14 100%);
  --f-paper: radial-gradient(1000px 700px at 92% 0%, rgba(127, 185, 31, .10), transparent 60%), #0D1511;
  /* страница вокруг слайдов (одностраничник и страницы) */
  --page: #EEF2EC; --page-fg: #0D1A12; --page-muted: #4A5A50; --page-line: rgba(13, 26, 18, .12); --page-card: #FFFFFF; --acc: #2F7A20;
}
[data-theme="light"] {
  --bg: #F3F6F1; --fg: #0D1A12; --muted: #34443A; --line: rgba(13, 26, 18, .16);
  --glass: rgba(250, 252, 248, .80); --glass-b: rgba(255, 255, 255, .75);
  --scrim: rgba(243, 246, 241, .35);
  --see: #0A6A9E; --think: #8A5A00; --act: #2F7A20; --xg: #3E7D12; --sec: #B0142E;
  --f-ink: radial-gradient(1100px 700px at 88% 6%, rgba(10, 120, 180, .08), transparent 60%), radial-gradient(900px 640px at 4% 100%, rgba(127, 185, 31, .12), transparent 60%), #F3F6F1;
  --f-paper: radial-gradient(1000px 700px at 92% 0%, rgba(127, 185, 31, .12), transparent 60%), radial-gradient(rgba(13, 26, 18, .07) 1.2px, transparent 1.6px) 0 0 / 30px 30px, #F6F8F3;
  --f-forest: radial-gradient(1200px 800px at 85% 0%, rgba(127, 185, 31, .22), transparent 60%), linear-gradient(160deg, #E4EEDD, #F3F6F1);
}
[data-theme="dark"] { --page: #0C1310; --page-fg: #EEF3EE; --page-muted: #A9B7AD; --page-line: rgba(255, 255, 255, .1); --page-card: #121B16; --acc: #9AD13A; }
[data-design="proektor"] { --glass: rgba(4, 8, 6, .88); --scrim: rgba(0, 0, 0, .66); --photo-f: saturate(1.05) brightness(.8); --muted: #DCE3DD; --w-title: 400; --w-num: 300; }
.fd-green { --fg: #0D1A10; --muted: #1F3020; --line: rgba(13, 26, 16, .25); }

/* ---------------- база ---------------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--page-fg); font-family: var(--f-main); -webkit-font-smoothing: antialiased; }
html.wide.v-deck, html.wide.v-deck body { height: 100%; overflow: hidden; background: #000; }
button { font-family: inherit; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.fill { fill: currentColor; stroke: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- слайд 1920×1080 ---------------- */
#stage { position: relative; }
.frame { position: relative; }
.slide { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden; background: var(--bg); color: var(--fg); font-family: var(--f-main); font-size: 32px; line-height: 1.32; }
.slide.fd-paper { background: var(--f-paper); } .slide.fd-ink { background: var(--f-ink); } .slide.fd-forest { background: var(--f-forest); } .slide.fd-green { background: var(--f-green); }
.slide h1, .slide h2, .slide h3, .slide p, .slide ul, .slide figure, .slide blockquote { margin: 0; }
.ttl { font-weight: var(--w-title); font-size: 76px; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
.ttl.xl { font-size: 86px; letter-spacing: -.03em; }
.slide .line { font-size: 34px; line-height: 1.34; color: var(--muted); font-weight: 300; margin-top: 26px; text-wrap: pretty; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 999px; font-size: 24px; background: color-mix(in srgb, var(--fg) 8%, transparent); border: 1px solid var(--line); color: var(--fg); }
.slide .kick { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; letter-spacing: .14em; text-transform: uppercase; color: var(--c); font-weight: 500; margin-bottom: 26px; }
.kick::before { content: ''; width: 34px; height: 3px; background: currentColor; border-radius: 2px; }
.slide .pts { list-style: none; padding: 0; margin-top: 34px; display: grid; gap: 18px; }
.pts li { display: flex; gap: 18px; align-items: flex-start; font-size: 30px; line-height: 1.3; }
.pts li .ico { font-size: 34px; color: var(--c); margin-top: 1px; stroke-width: 2; }

/* фон-фото + Ken Burns (только текущий слайд показа) */
.bg { position: absolute; inset: 0; overflow: hidden; background: #1A221D; }
.bg img { width: 100%; height: 100%; object-fit: cover; display: block; filter: var(--photo-f); transform-origin: var(--kb-o, 50% 50%); }
.wide.v-deck .slide.on .bg img { animation: kb 18s var(--ease) both; }
.kb1 img { --kb-o: 20% 30%; } .kb2 img { --kb-o: 80% 30%; } .kb3 img { --kb-o: 50% 80%; } .kb4 img { --kb-o: 30% 70%; } .kb5 img { --kb-o: 70% 60%; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.07); } }
[data-motion="off"] .slide .bg img { animation: none !important; }
.scrim { position: absolute; inset: 0; pointer-events: none; }
.scrim.left { background: linear-gradient(90deg, var(--scrim) 0%, transparent 62%); }
.scrim.right { background: linear-gradient(270deg, var(--scrim) 0%, transparent 62%); }
.scrim.full { background: linear-gradient(0deg, var(--scrim), color-mix(in srgb, var(--scrim) 40%, transparent)); }

/* стеклянная плашка */
.glass { position: absolute; background: var(--glass); border: 1px solid var(--glass-b); border-radius: 28px; padding: 64px 70px; color: var(--panel-fg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2); backdrop-filter: blur(var(--glass-blur)) saturate(1.2); box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .55); }
.glass .line { color: var(--panel-muted); }
.glass.left { left: 110px; top: 50%; translate: 0 -50%; width: 860px; }
.glass.right { right: 110px; top: 50%; translate: 0 -50%; width: 860px; }
.glass.center { left: 50%; top: 50%; translate: -50% -50%; width: 1180px; text-align: center; }

/* подвал слайда: раздел и номер */
.foot { position: absolute; left: 110px; right: 110px; bottom: 44px; display: flex; justify-content: space-between; align-items: center; font-size: 22px; color: var(--muted); pointer-events: none; }
.foot .src, .foot .pg { display: inline-flex; align-items: center; gap: 12px; }
.foot .pg img { height: 30px; }
.has-photo .foot .src, .has-photo .foot .pg, .k-split:not(.flip) .foot .src, .k-split.flip .foot .pg { background: var(--glass); padding: 8px 18px; border-radius: 999px; color: var(--panel-fg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.foot .src i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); transform: rotate(45deg); }

/* ---------- виды слайдов ---------- */
/* cover */
.k-cover .glass { left: 110px; top: 50%; translate: 0 -50%; width: 1080px; padding: 72px 80px; }
.k-cover .logos { display: flex; gap: 30px; align-items: center; margin-bottom: 40px; }
.k-cover .logos img { height: 64px; }
.k-cover .meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
/* photo — пункты в плашке */
.k-photo .glass .pts li { font-size: 28px; }
/* split — фото слева, текст справа */
.k-split .bg.half { right: auto; width: 50%; }
.k-split .side { position: absolute; left: calc(50% + 100px); right: 110px; top: 50%; translate: 0 -50%; }
.k-split.flip .bg.half { left: auto; right: 0; }
.k-split.flip .side { left: 110px; right: calc(50% + 100px); }
/* cards — карточки с иконками */
.hd { position: absolute; left: 110px; top: 110px; width: 1500px; }
.cards { position: absolute; left: 110px; right: 110px; top: 470px; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 28px; }
.card { background: color-mix(in srgb, var(--fg) 5%, transparent); border: 1px solid var(--line); border-radius: 26px; padding: 48px 46px 52px; min-height: 400px; }
[data-theme="light"] .card { background: rgba(255, 255, 255, .78); border-color: rgba(13, 26, 18, .09); box-shadow: 0 24px 60px -40px rgba(13, 26, 18, .35); }
.card .ic { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; font-size: 42px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); margin-bottom: 30px; }
.card b { display: block; font-size: 40px; font-weight: 400; line-height: 1.15; letter-spacing: -.01em; }
.card span { display: block; font-size: 28px; color: var(--muted); margin-top: 14px; line-height: 1.35; }
/* number — большая цифра */
.k-number .bign { position: absolute; left: 110px; top: 50%; translate: 0 -50%; width: 900px; }
.k-number .num { font-family: var(--f-num); font-weight: var(--w-num); font-size: 300px; line-height: .9; letter-spacing: -.05em; color: var(--c); }
.k-number .num small { font-size: 96px; letter-spacing: -.02em; margin-left: 12px; }
.k-number .side { position: absolute; left: 1080px; right: 110px; top: 50%; translate: 0 -50%; }
.k-number .side .ttl { font-size: 60px; }
/* gallery — три фото с подписями */
.gal { position: absolute; left: 110px; right: 110px; bottom: 130px; display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 28px; }
.gal figure { position: relative; height: 560px; border-radius: 24px; overflow: hidden; background: #1A221D; }
.gal img { width: 100%; height: 100%; object-fit: cover; display: block; filter: var(--photo-f); }
.gal figcaption { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 16px 22px; border-radius: 16px; background: var(--glass); color: var(--panel-fg); font-size: 25px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
/* quote */
.k-quote .quote { position: absolute; left: 160px; right: 160px; top: 50%; translate: 0 -50%; }
.k-quote .quote p { font-size: 74px; font-weight: 300; line-height: 1.16; letter-spacing: -.02em; text-wrap: balance; }
.k-quote .quote p::before { content: '«'; color: var(--c); } .k-quote .quote p::after { content: '»'; color: var(--c); }
.k-quote .quote cite { display: block; margin-top: 40px; font-style: normal; font-size: 30px; color: var(--muted); }
/* end */
.k-end .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 44px; }
.k-end .links a { color: inherit; text-decoration: none; }

/* ---------- анимации появления ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: calc(var(--d, 0) * var(--step-ms)); }
.rv.fromL { transform: translateX(-30px); } .rv.fromR { transform: translateX(30px); } .rv.pop { transform: scale(.95); }
.slide.on .rv { opacity: 1; transform: none; }
[data-motion="calm"] { --dur: 1100ms; --step-ms: 170ms; }
[data-motion="off"] .rv, .print .rv { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ================= ВИД «ПРЕЗЕНТАЦИЯ» (wide) ================= */
.wide.v-deck #stage { position: fixed; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }
.wide.v-deck .frame { display: contents; }
.wide.v-deck .slide { opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.wide.v-deck .slide.cur { opacity: 1; visibility: visible; transition: opacity .45s ease; z-index: 1; }
.wide.v-deck .ghead, .wide.v-deck #topbar, .wide.v-deck #pager, .wide.v-deck #sitefoot { display: none; }
[data-motion="off"].wide.v-deck .slide { transition: none; }
.dock { position: fixed; left: 50%; bottom: 18px; translate: -50% 0; z-index: 30; display: none; align-items: center; gap: 8px; padding: 8px; border-radius: 999px;
  background: rgba(10, 16, 13, .62); color: #EEF3EE; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: opacity .3s; }
.wide.v-deck .dock { display: flex; }
.idle .dock, .idle #menuBtn, .idle #deckBack { opacity: 0; pointer-events: none; }
.idle .dock:focus-within, .idle #deckBack:focus-visible, .idle #menuBtn:focus-visible { opacity: 1; pointer-events: auto; }
.idle.wide.v-deck, .idle.wide.v-deck * { cursor: none; }
.dock button { border: 0; background: transparent; color: inherit; font-size: 15px; padding: 8px 14px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.dock button:hover, .dock button:focus-visible { background: rgba(255, 255, 255, .14); outline: none; }
.dock .nav { font-size: 26px; line-height: 1; width: 44px; padding: 0; }
.dock .dsite { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; padding: 8px 13px 8px 11px; }
.dock .dsite svg { width: 21px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.dock .where { font-size: 14px; padding: 0 10px; opacity: .85; white-space: nowrap; max-width: 360px; overflow: hidden; text-overflow: ellipsis; }

/* ================= ОДНОСТРАНИЧНИК и СТРАНИЦЫ (wide) ================= */
.wide:is(.v-onepage, .v-pages) #stage { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.wide:is(.v-onepage, .v-pages) .frame { width: var(--fw, 100%); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; margin: 0 auto 20px; background: var(--bg);
  box-shadow: 0 1px 0 var(--page-line), 0 40px 80px -60px rgba(10, 20, 14, .55); }
.wide:is(.v-onepage, .v-pages) .frame > .slide { transform: scale(var(--k, .66)); transform-origin: 0 0; }
.wide:is(.v-onepage, .v-pages) .frame > .slide:not(.on) .bg img { transform: none; }
:is(.v-onepage, .v-pages) .frame:has(> .st-off), :is(.v-onepage, .v-pages) .frame:has(> .st-del), :is(.v-onepage, .v-pages) .frame:has(> .gr-off) { display: none; }
.v-pages .frame:not(.in-g), .v-pages .ghead:not(.in-g) { display: none; }
/* шапка раздела (28.10 – компактно): номер и название в одну строку, «раздел N из M» и описание мелким; слайд под ней целиком в окне */
.ghead { max-width: 1320px; margin: 0 auto; padding: 28px 0 14px; display: flex; gap: 14px; align-items: baseline; scroll-margin-top: 48px; }
.wide .ghead { width: var(--fw, 100%); }
.ghead.empty, .ghead.gr-hide { display: none; }
.ghead .gn { font: 200 34px/1 var(--f-num); letter-spacing: -.03em; color: var(--acc); flex: none; }
.ghead .gtx { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 14px; min-width: 0; }
.ghead h2 { order: 0; margin: 0; font-weight: 300; font-size: 30px; line-height: 1.1; letter-spacing: -.015em; }
.ghead .gof { order: 1; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--page-muted); }
.ghead p { order: 2; flex: 1 0 100%; margin: 0; color: var(--page-muted); font-size: 15px; line-height: 1.4; max-width: 980px; }
.frame { scroll-margin-top: 64px; }
.mobile .frame { scroll-margin-top: 104px; }

/* закрепленное меню (одностраничник и страницы): разделы, вид, Кратко / Подробно – стекло, тонкие шрифты; при прокрутке ужимается */
#topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 72px 0 22px;
  background: color-mix(in srgb, var(--page) 72%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--page-line); transition: height .3s var(--ease), box-shadow .3s; font-weight: 400; }
.tb-sm #topbar { height: 48px; box-shadow: 0 12px 30px -26px rgba(0, 0, 0, .5); }
#topbar .brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 400; color: var(--page-fg); text-decoration: none; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
#topbar .brand img { height: 28px; transition: height .3s var(--ease); }
.tb-sm #topbar .brand img { height: 22px; }
#topbar .brand span { overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
#toc { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 auto; min-width: 0; flex: 0 1 auto; }
#toc::-webkit-scrollbar { display: none; }
#toc a { flex: none; display: inline-flex; align-items: center; gap: 7px; color: var(--page-muted); text-decoration: none; font-size: 14px; font-weight: 400; padding: 7px 12px; border-radius: 999px; white-space: nowrap; transition: background .2s, color .2s; }
#toc a b { font-weight: 500; font-size: 11.5px; color: var(--acc); }
#toc a:hover { background: color-mix(in srgb, var(--page-fg) 6%, transparent); color: var(--page-fg); }
#toc a.cur { background: color-mix(in srgb, var(--acc) 15%, transparent); color: var(--page-fg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 34%, transparent); }
#toc a:focus-visible, .tb-seg button:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.tb-ctl { display: flex; align-items: center; gap: 8px; flex: none; }
.tb-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--page-fg) 5%, transparent); border: 1px solid var(--page-line); }
.tb-seg button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--page-muted); font: 400 13px/1 var(--f-main); padding: 7px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.tb-seg button:hover { color: var(--page-fg); }
.tb-seg button[aria-pressed="true"] { background: var(--page-card); color: var(--page-fg); box-shadow: 0 1px 3px rgba(10, 20, 14, .12), 0 0 0 1px var(--page-line); }
[data-theme="dark"] .tb-seg button[aria-pressed="true"] { background: color-mix(in srgb, var(--page-fg) 14%, transparent); box-shadow: none; }
.tb-seg svg { width: 19px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linejoin: round; }
.tb-sm .tb-seg button { padding-top: 5px; padding-bottom: 5px; }
[data-design="proektor"] #topbar { background: rgba(0, 0, 0, .86); }
[data-design="proektor"] .tb-seg button, [data-design="proektor"] #toc a { color: #D6DED8; }
@media (max-width: 1500px) { #topbar .brand span { max-width: 150px; } }
@media (max-width: 1440px) { .tb-views button:not([aria-pressed="true"]) span { display: none; } }
@media (max-width: 1300px) { #topbar .brand span { display: none; } }
/* показ: «← Сайт» слева сверху – стекло как у закрепленного меню; прячется вместе с панелью ‹ › (idle) */
#deckBack { display: none; position: fixed; left: 14px; top: 12px; z-index: 40; height: 44px; padding: 0 18px 0 13px; align-items: center; gap: 8px; border-radius: 999px; cursor: pointer;
  font: 400 15px/1 var(--f-main); letter-spacing: .01em; color: var(--page-fg); background: color-mix(in srgb, var(--page) 74%, transparent);
  border: 1px solid color-mix(in srgb, var(--page-fg) 14%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 28px -16px rgba(0, 0, 0, .55); transition: opacity .3s, border-color .2s, background .2s; }
.wide.v-deck #deckBack { display: inline-flex; }
.st-on #deckBack, .print #deckBack, .mobile #deckBack { display: none !important; }
#deckBack:hover { border-color: var(--acc); background: color-mix(in srgb, var(--page) 88%, transparent); }
#deckBack:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
#deckBack svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: translate .2s var(--ease); }
#deckBack:hover svg { translate: -2px 0; }
[data-design="proektor"] #deckBack { background: rgba(0, 0, 0, .86); color: #fff; border-color: rgba(255, 255, 255, .28); }
@media (prefers-reduced-motion: reduce) { #deckBack svg { transition: none; } }
/* страницы: «назад / дальше» */
#pager { display: none; max-width: 1320px; margin: 0 auto 30px; padding: 0 32px; gap: 18px; }
.v-pages #pager { display: grid; grid-template-columns: 1fr 1fr; }
#pager a { display: block; padding: 22px 26px; border-radius: 18px; background: var(--page-card); border: 1px solid var(--page-line); color: var(--page-fg); text-decoration: none; }
#pager a:hover { border-color: var(--acc); }
#pager a small { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--page-muted); margin-bottom: 6px; }
#pager a span { font-size: 22px; font-weight: 300; }
#pager .next { text-align: right; grid-column: 2; }
#sitefoot { max-width: 1320px; margin: 0 auto; padding: 30px 32px 70px; display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; color: var(--page-muted); font-size: 14px; border-top: 1px solid var(--page-line); }
#sitefoot .views { display: flex; gap: 8px; margin-left: auto; }
#sitefoot .views a { color: var(--page-muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--page-line); }
#sitefoot .views a.cur { color: var(--page-fg); border-color: var(--page-fg); }

/* ================= ТЕЛЕФОН (mobile): адаптивная прокрутка во всех видах ================= */
.mobile #stage { padding: 0 14px; }
.mobile .frame { margin: 0 0 16px; border-radius: 18px; overflow: hidden; background: var(--bg); box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .5); }
.mobile .slide { position: relative; width: auto; height: auto; font-size: 16px; padding: 0 0 6px; }
.mobile .slide > .bg:not(.half) { position: relative; inset: auto; height: 56vw; }
.mobile .bg.half { position: relative !important; width: auto !important; height: 56vw; }
.mobile .scrim { display: none; }
.mobile .glass, .mobile .hd, .mobile .side, .mobile .bign, .mobile .cards, .mobile .gal, .mobile .quote { position: static !important; translate: none !important; width: auto !important; margin: 0; }
.mobile .glass { border-radius: 0; border: 0; box-shadow: none; background: var(--bg); color: var(--fg); padding: 22px 20px 12px; -webkit-backdrop-filter: none; backdrop-filter: none; text-align: left; }
.mobile .glass .line { color: var(--muted); }
.mobile .hd, .mobile .side, .mobile .bign, .mobile .quote { padding: 22px 20px 6px; }
.mobile .ttl { font-size: 27px; line-height: 1.12; }
.mobile .ttl.xl { font-size: 33px; }
.mobile .slide .line { font-size: 17px; margin-top: 12px; }
.mobile .slide .kick { font-size: 12px; margin-bottom: 12px; }
.mobile .chip { font-size: 13px; padding: 6px 12px; }
.mobile .k-cover .logos { margin-bottom: 18px; } .mobile .k-cover .logos img { height: 34px; }
.mobile .k-cover .meta { margin-top: 18px; gap: 8px; }
.mobile .slide .pts { margin-top: 14px; gap: 10px; } .mobile .pts li { font-size: 16px !important; gap: 10px; } .mobile .pts li .ico { font-size: 18px; }
.mobile .cards { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px 20px 8px; }
.mobile .card { min-height: 0; padding: 16px 18px; border-radius: 16px; display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; }
.mobile .card .ic { width: 44px; height: 44px; font-size: 24px; border-radius: 12px; margin: 0; grid-row: span 2; }
.mobile .card b { font-size: 18px; } .mobile .card span { font-size: 15px; margin-top: 2px; }
.mobile .k-number .num { font-size: 96px; } .mobile .k-number .num small { font-size: 34px; }
.mobile .k-number .side { padding-top: 4px; } .mobile .k-number .side .ttl { font-size: 24px; }
.mobile .gal { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px 20px 8px; }
.mobile .gal figure { height: 52vw; border-radius: 14px; }
.mobile .gal figcaption { font-size: 14px; padding: 8px 12px; left: 10px; right: 10px; bottom: 10px; }
.mobile .k-quote .quote p { font-size: 24px; } .mobile .k-quote .quote cite { font-size: 15px; margin-top: 12px; }
.mobile .k-end .links { justify-content: flex-start; margin-top: 18px; gap: 8px; }
.mobile .foot { position: static; padding: 10px 20px 8px; font-size: 13px; }
.mobile .foot .pg img { height: 20px; }
.mobile .has-photo .foot .src, .mobile .has-photo .foot .pg { background: none; padding: 0; color: var(--muted); }
.mobile .rv { transform: translateY(12px); }
.mobile .ghead { padding: 28px 18px 12px; gap: 10px; }
.mobile .ghead .gn { font-size: 28px; }
.mobile .ghead h2 { font-size: 24px; } .mobile .ghead p { font-size: 14px; } .mobile .ghead .gof { font-size: 10.5px; }
.mobile #topbar { height: auto; flex-wrap: wrap; gap: 6px 8px; padding: 8px 60px 6px 12px; }
.mobile.tb-sm #topbar { padding-top: 5px; padding-bottom: 4px; }
.mobile #topbar .brand span { max-width: 34vw; font-size: 14px; }
.mobile .tb-ctl { margin-left: auto; gap: 6px; }
.mobile .tb-seg button { padding: 6px 9px; font-size: 12.5px; }
.mobile .tb-views span { display: none; }
.mobile #toc { order: 3; flex: 1 0 100%; margin: 0 -60px 0 -12px; padding: 0 12px 2px; width: calc(100% + 72px); }
.mobile #toc a { font-size: 13.5px; padding: 6px 11px; }
@media (max-width: 440px) { .mobile #topbar .brand span { display: none; } }
.mobile #pager { display: none; } .mobile.v-pages #pager { display: grid; grid-template-columns: 1fr; padding: 0 14px; gap: 10px; }
.mobile #pager .next { grid-column: 1; }
.mobile #sitefoot { padding: 22px 16px 48px; }
.mobile #sitefoot .views { margin-left: 0; }
.mobile .dock { display: none !important; }

/* ================= ПЕЧАТЬ и PDF (?print=1, «Скачать PDF» в браузере) ================= */
@page { size: 1920px 1080px; margin: 0; }
.print body { background: #fff; }
.print #topbar, .print #pager, .print #sitefoot, .print .ghead, .print .dock, .print #menuBtn, .print #menu, .print #toast, .print .gx-ui { display: none !important; }
.print #stage { transform: none !important; width: 1920px; }
.print .frame { position: relative; width: 1920px; height: 1080px; overflow: hidden; break-after: page; page-break-after: always; }
.print .frame:has(> .st-off), .print .frame:has(> .st-del), .print .frame:has(> .gr-off) { display: none; }
.print .slide { position: absolute; }
.print *, .print *::before { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.print .glass { background: color-mix(in srgb, var(--glass) 70%, var(--bg)); }

/* ================= БОЛЬШИЕ ОБЪЕКТЫ (проба 28.10): таблицы, графики, встроенные страницы ================= */
/* виды слайдов table, embed, html: заголовок сверху, коробка .bx на все оставшееся место */
.slide:is(.k-table, .k-embed, .k-html) { display: flex; flex-direction: column; padding: 92px 110px 108px; }
.slide:is(.k-table, .k-embed, .k-html) .hd { position: static; width: auto; max-width: 1560px; flex: none; }
.slide:is(.k-table, .k-embed, .k-html) .ttl { font-size: 62px; }
.slide:is(.k-table, .k-embed, .k-html) .line { font-size: 28px; margin-top: 16px; }
.slide:is(.k-table, .k-embed, .k-html) .kick { margin-bottom: 18px; }
.bx { position: relative; flex: 1 1 auto; min-height: 0; margin-top: 34px; overflow: hidden; border-radius: 22px; }
.bnote { flex: none; font-size: 21px; color: var(--muted); margin-top: 14px; }
.rvo { opacity: 0; transition: opacity calc(var(--dur) * .7) var(--ease) var(--step-ms); }
.slide.on .rvo, [data-motion="off"] .rvo, .print .rvo { opacity: 1; }
.k-embed .bx { background: color-mix(in srgb, var(--fg) 5%, var(--bg)); border: 1px solid var(--line); }
.bx iframe, .bv-px .big-in > iframe { display: block; width: 100%; height: 100%; border: 0; background: transparent; }
.k-embed .big-in { height: 100%; }
/* таблица */
.tbl { border-collapse: separate; border-spacing: 0; width: max-content; font-size: 22px; line-height: 1.25; font-weight: 300; font-variant-numeric: tabular-nums; color: var(--fg); }
.tbl th, .tbl td { padding: 11px 18px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); background: var(--bg); }
.tbl thead th { position: sticky; top: 0; z-index: 2; font-weight: 500; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom-color: color-mix(in srgb, var(--fg) 30%, transparent); }
.tbl td.n { text-align: right; }
.tbl tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--fg) 4%, var(--bg)); }
.tbl :is(th, td):first-child { position: sticky; left: 0; z-index: 1; font-weight: 400; }
.tbl thead th:first-child { z-index: 3; }
.tbl :is(th, td):last-child { font-weight: 500; }

/* обертка содержимого большого объекта и состояния */
.big-rel { position: relative; }
.big-px > .big-in { min-width: 0; }
.big-in { width: fit-content; min-width: 100%; transform-origin: 0 0; }
.big-in.big-flow { width: 100%; display: inherit; flex-direction: inherit; flex-wrap: inherit; gap: inherit; align-items: inherit; justify-content: inherit; grid-template-columns: inherit; grid-template-rows: inherit; grid-auto-flow: inherit; }
.big-c { overflow: hidden !important; }
.big-cut > .big-in { -webkit-mask-image: linear-gradient(#000 calc(var(--big-fade, 100%) - 150px), transparent var(--big-fade, 100%)); mask-image: linear-gradient(#000 calc(var(--big-fade, 100%) - 150px), transparent var(--big-fade, 100%)); }
.big-c:not(.big-m):not([data-big-unit="px"]) { cursor: zoom-in; }
.big-full { flex: none !important; max-height: none !important; overflow-x: auto !important; overflow-y: hidden !important; }
.big-anc { overflow: visible !important; max-height: none !important; }
.wide:is(.v-onepage, .v-pages) .frame.fr-grow { aspect-ratio: auto; }
.big-away > .big-badge { display: none !important; }
.big-away::after { content: 'Открыто во весь экран'; position: absolute; inset: 0; display: grid; place-items: center; border: 2px dashed var(--line); border-radius: 18px; color: var(--muted); font-size: 26px; font-weight: 300; }
/* значок «Развернуть ⤢» (единицы слайда – масштабируется вместе с ним) */
.big-badge { position: absolute; right: 18px; bottom: 18px; z-index: 4; display: none; align-items: center; gap: 12px; padding: 13px 24px 13px 18px; border-radius: 999px; cursor: pointer;
  font: 400 22px/1 var(--f-main); color: var(--panel-fg); background: var(--glass); border: 1px solid var(--glass-b); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .55); transition: transform .25s var(--ease), border-color .2s; }
.big-badge svg { width: 26px; height: 26px; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.big-badge small { font-size: 18px; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); }
.big-badge:hover { border-color: var(--c); transform: translateY(-2px); }
.big-badge:focus-visible { outline: 4px solid var(--c); outline-offset: 3px; }
.big-over > .big-badge { display: inline-flex; }
.big-full > .big-badge { top: 14px; bottom: auto; padding: 10px; } .big-full > .big-badge :is(span, small) { display: none; }
.print .big-badge, .print .big-away::after { display: none !important; }
/* телефон: обычная прокрутка; объект – с прокруткой вбок внутри, в «Кратко» – не выше 70 % экрана */
.mobile .slide:is(.k-table, .k-embed, .k-html) { display: block; padding: 0 0 6px; }
.mobile .slide:is(.k-table, .k-embed, .k-html) .ttl { font-size: 24px; }
.mobile .slide:is(.k-table, .k-embed, .k-html) .line { font-size: 16px; margin-top: 10px; }
.mobile .bx { margin: 8px 14px 4px; border-radius: 12px; }
.mobile .bnote { font-size: 13px; margin: 6px 20px 0; }
.mobile .big-in { width: auto !important; min-width: 0; max-width: 100%; overflow-x: auto; transform: none !important; -webkit-overflow-scrolling: touch; }
.mobile .big-m.big-cut { max-height: 70vh; }
.mobile .big-cut > .big-in { --big-fade: 70vh; overflow-y: hidden; }
.mobile .k-embed .bx { height: 62vh; } .mobile.detail .k-embed .bx { height: auto; }
.mobile .k-embed .big-in { height: 100%; }
.mobile .bx .big-in > svg:not(.ico), .mobile .bigw .big-in > svg:not(.ico) { width: 820px; height: auto; max-width: none; }
.mobile .tbl { font-size: 13px; } .mobile .tbl th, .mobile .tbl td { padding: 7px 10px; } .mobile .tbl thead th { font-size: 10.5px; }
.mobile .big-badge { right: 10px; bottom: 10px; font-size: 13px; padding: 8px 14px 8px 10px; gap: 7px; }
.mobile .big-badge svg { width: 16px; height: 16px; } .mobile .big-badge small { font-size: 12px; padding-left: 8px; }
.mobile .big-full > .big-badge { top: 8px; bottom: auto; }

/* окно разворота поверх показа (пиксели экрана) */
#bigview { position: fixed; inset: 0; z-index: 75; }
#bigview[hidden] { display: none; }
html.bv-open, html.bv-open body { overflow: hidden; }
.bv-back { position: absolute; inset: 0; background: rgba(5, 9, 7, .58); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bv-win { position: absolute; inset: 3vh 2.4vw; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; transform-origin: 0 0; will-change: transform;
  background: var(--bg); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 50px 140px -40px rgba(0, 0, 0, .75); font-family: var(--f-main); }
.bv-h { flex: none; display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 22px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--fg) 4%, var(--bg)); }
.bv-tt { min-width: 0; display: grid; gap: 3px; }
.bv-tt small { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-tt b { font-weight: 300; font-size: 21px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-k { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.bv-x { flex: none; width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; }
.bv-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.bv-x:hover { border-color: var(--c); } .bv-x:focus-visible, .bv-body:focus-visible { outline: 2px solid var(--c); outline-offset: -3px; }
.bv-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
#bigview .bv-slide.slide { position: relative; left: auto; top: auto; width: auto; height: auto; min-height: 100%; overflow: visible; opacity: 1; visibility: visible; transform: none; translate: none;
  display: block; padding: 26px 30px 40px; transition: none; font-size: 32px; }
.bv-sizer { position: relative; margin: 0 auto; }
.bv-sizer > .big-in { position: absolute; left: 0; top: 0; min-width: 0; max-width: none; overflow: visible; -webkit-mask-image: none; mask-image: none; }
#bigview.bv-px .bv-slide.slide { position: absolute; inset: 0; height: auto; min-height: 0; padding: 0; }
.bv-px .bv-body { position: relative; }
.bv-px .bv-sizer { width: 100%; height: 100%; }
.bv-px .bv-sizer > .big-in { position: static; width: 100% !important; height: 100% !important; transform: none !important; }
.bv-px .bv-body { overflow: hidden; }
.mobile .bv-win { inset: 0; border-radius: 0; border: 0; }
.mobile .bv-k { display: none; } .mobile .bv-h { padding: 8px 8px 8px 14px; } .mobile .bv-tt b { font-size: 16px; }
.mobile #bigview .bv-slide.slide { padding: 12px; font-size: 16px; }
.print #bigview { display: none !important; }

/* ================= меню «···», подсказка ================= */
#menuBtn { position: fixed; right: 14px; top: 12px; z-index: 40; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); display: grid; place-items: center;
  background: rgba(10, 16, 13, .55); color: #fff; font-size: 24px; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity .3s; }
.wide.v-deck #menuBtn { opacity: .82; } .wide.v-deck #menuBtn:hover, #menuBtn[aria-expanded="true"] { opacity: 1; }
:is(.v-onepage, .v-pages) #menuBtn, .mobile #menuBtn { top: 10px; width: 40px; height: 40px; font-size: 22px; color: var(--page-fg); border-color: var(--page-line);
  background: color-mix(in srgb, var(--page-card) 80%, transparent); box-shadow: 0 1px 3px rgba(10, 20, 14, .1); transition: top .3s var(--ease), opacity .3s; }
.tb-sm:is(.v-onepage, .v-pages) #menuBtn { top: 4px; }
.mobile #menuBtn { top: 7px; } .mobile.tb-sm #menuBtn { top: 3px; }
:is(.v-onepage, .v-pages) #menuBtn:hover { border-color: var(--acc); }
#menu { position: fixed; right: 14px; top: 64px; z-index: 41; width: 400px; max-width: calc(100vw - 28px); max-height: calc(100vh - 80px); overflow: auto; padding: 18px 20px 20px; border-radius: 20px;
  background: rgba(14, 22, 18, .96); color: #EEF3EE; font: 15px/1.4 var(--f-main); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); display: none; }
#menu.open { display: block; }
#menu h4 { margin: 16px 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #9FB3A5; font-weight: 500; }
#menu h4:first-child { margin-top: 2px; }
#menu button { font: inherit; color: inherit; cursor: pointer; }
#menu .views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
#menu .vw { display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); text-align: center; }
#menu .vw svg { width: 46px; height: 30px; }
#menu .vw b { font-weight: 500; font-size: 14px; } #menu .vw small { font-size: 11.5px; color: #9FB3A5; line-height: 1.25; }
#menu .vw[aria-pressed="true"] { border-color: #9AD13A; background: rgba(154, 209, 58, .14); }
#menu .pvs { display: grid; gap: 6px; }
#menu .pv { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; background: rgba(255, 255, 255, .04); text-align: left; }
#menu .pv[aria-pressed="true"] { border-color: #9AD13A; }
#menu .sw2 { display: inline-flex; } #menu .sw2 i { width: 16px; height: 22px; display: block; } #menu .sw2 i:first-child { border-radius: 5px 0 0 5px; } #menu .sw2 i:last-child { border-radius: 0 5px 5px 0; }
#menu .seg { display: flex; gap: 4px; background: rgba(255, 255, 255, .06); padding: 4px; border-radius: 12px; }
#menu .seg button { flex: 1; border: 0; background: none; padding: 7px 4px; border-radius: 9px; }
#menu .seg button[aria-pressed="true"] { background: #EEF3EE; color: #0E1612; }
#menu .row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
#menu .row button, #menu .row a, #menu .wbtn { border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); padding: 8px 12px; border-radius: 10px; color: inherit; text-decoration: none; font-size: 14px; }
#menu .wbtn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; }
#menu .wbtn kbd, #menu kbd { margin-left: auto; font: 12px ui-monospace, monospace; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .12); }
#menu .keys { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 13px; color: #C9D6CC; }
#menu .keys b { display: inline-block; min-width: 48px; font: 12px ui-monospace, monospace; color: #fff; }
.mobile #menu .keys, .mobile #menu .wide-only { display: none; }
#toast { position: fixed; left: 50%; bottom: 84px; translate: -50% 0; z-index: 60; background: rgba(12, 20, 16, .92); color: #fff; font: 15px/1.4 var(--f-main); padding: 10px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .25s; max-width: 90vw; }
#toast.show { opacity: 1; }
.ix-sec { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .rv { transition: none; } }

/* ================= редактор разделов (groups.js) ================= */
.gx { position: fixed; right: 0; top: 0; bottom: 0; z-index: 70; width: 430px; max-width: 100vw; display: flex; flex-direction: column; background: #FAFBF8; color: #13201A;
  font: 14px/1.4 var(--f-main); box-shadow: -30px 0 80px -40px rgba(0, 0, 0, .55); border-left: 1px solid rgba(19, 32, 26, .1); }
.gx[hidden] { display: none; }
.gx-i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.gx-h { display: flex; align-items: center; gap: 6px; padding: 14px 14px 10px 18px; border-bottom: 1px solid rgba(19, 32, 26, .08); }
.gx-h b { font-size: 18px; font-weight: 500; margin-right: auto; }
.gx-net { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #4A5A50; margin-right: 6px; max-width: 170px; line-height: 1.2; }
.gx-net i { width: 8px; height: 8px; border-radius: 50%; background: #9AA59E; flex: none; }
.gx-net.ok i { background: #3E9B2A; } .gx-net.busy i { background: #D9A400; } .gx-net.warn i { background: #E07B00; } .gx-net.bad i { background: #C4102E; }
.gx-b { border: 1px solid rgba(19, 32, 26, .14); background: #fff; color: inherit; border-radius: 10px; padding: 7px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font: inherit; }
.gx-b:hover:not(:disabled) { border-color: #2F7A20; } .gx-b:disabled { opacity: .35; cursor: default; }
.gx-b:focus-visible, .gx-st:focus-visible, .gx-name:focus-visible, .gx-mv:focus-visible { outline: 2px solid #2F7A20; outline-offset: 1px; }
.gx-ic { padding: 6px; border-color: transparent; background: transparent; }
.gx-ic[aria-pressed="true"] { color: #C4102E; }
.gx-pri { background: #13201A; color: #fff; border-color: #13201A; }
.gx-hint { margin: 10px 18px 6px; font-size: 12.5px; color: #5A6A60; }
.gx-grip .gx-i { width: 14px; height: 14px; vertical-align: -2px; }
.gx-list { flex: 1; overflow: auto; padding: 6px 12px 12px; }
.gx-g { background: #fff; border: 1px solid rgba(19, 32, 26, .1); border-radius: 14px; margin: 8px 0; padding: 6px 6px 8px; transition: border-color .15s, box-shadow .15s; }
.gx-g.off { background: repeating-linear-gradient(135deg, #F4F5F2 0 8px, #EEF0EC 8px 16px); }
.gx-g.off .gx-name { color: #7A867E; text-decoration: line-through; }
.gx-g.gx-over { border-color: #2F7A20; box-shadow: 0 0 0 3px rgba(47, 122, 32, .14); }
.gx-gh { display: flex; align-items: center; gap: 2px; }
.gx-drag { cursor: grab; color: #8A968E; padding: 6px 2px 6px 4px; display: inline-flex; }
.gx-num { font: 300 20px/1 var(--f-num); color: #2F7A20; min-width: 28px; text-align: center; }
.gx-name { flex: 1; min-width: 0; border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 6px 8px; font: 500 15px/1.2 var(--f-main); color: inherit; }
.gx-name:hover { border-color: rgba(19, 32, 26, .14); } .gx-name:focus { border-color: #2F7A20; background: #fff; outline: none; }
.gx-cnt { font-size: 12px; min-width: 22px; height: 22px; border-radius: 11px; display: inline-grid; place-items: center; background: #EEF2EC; color: #3A4A40; margin: 0 2px; }
.gx-sl { list-style: none; margin: 4px 0 0; padding: 0 0 0 30px; min-height: 30px; position: relative; }
.gx-s { display: flex; align-items: center; gap: 8px; padding: 4px 4px; border-radius: 9px; cursor: grab; }
.gx-s:hover { background: #F3F6F1; } .gx-s.cur { background: #E8F2E2; }
.gx-s.hid .gx-st, .gx-s.del .gx-st { color: #8A968E; } .gx-s.del .gx-st { text-decoration: line-through; }
.gx-th { width: 46px; height: 26px; border-radius: 5px; flex: none; background: #D7DED3 center / cover no-repeat; }
.gx-st { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 2px; font: inherit; color: inherit; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-st em { font-style: normal; font-size: 11px; color: #A0640A; }
.gx-mv { width: 26px; height: 26px; border-radius: 7px; border: 1px solid rgba(19, 32, 26, .12); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23455' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat; color: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; flex: none; }
.gx-mv option { color: #13201A; }
.gx-empty { font-size: 12.5px; color: #8A968E; padding: 8px 4px; border: 1px dashed rgba(19, 32, 26, .18); border-radius: 9px; text-align: center; }
.gx-drop { height: 3px; border-radius: 2px; background: #2F7A20; margin: 2px 0; list-style: none; }
.gx-list > .gx-drop { margin: 4px 6px; }
.gx-f { padding: 12px 16px 16px; border-top: 1px solid rgba(19, 32, 26, .08); display: flex; }
.gx-f .gx-pri { width: 100%; justify-content: center; padding: 10px; }
.gx-dragging .gx-s { cursor: grabbing; }

/* ================= ВЫНОСКИ НА ФОТО (28.10): точка + подпись на стекле, по очереди при показе слайда ================= */
.slide.has-co { counter-reset: co; }
.has-co .bg img { animation: none !important; }  /* без «наезда» камеры – точки стоят на месте */
.cos { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.co { position: absolute; left: var(--cx, -999px); top: var(--cy, -999px); width: 0; height: 0;
  opacity: 0; transition: opacity .5s var(--ease); transition-delay: calc(700ms + var(--co-i, 0) * 450ms); }
.co-dot { counter-increment: co; position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 3px solid #fff;
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--c) 32%, transparent), 0 6px 18px rgba(0, 0, 0, .45); transform: scale(.4); transition: transform .5s var(--ease); transition-delay: inherit; }
.co-t { position: absolute; display: block; width: max-content; max-width: 460px; padding: 13px 22px; border-radius: 16px; font-size: 25px; line-height: 1.25; font-weight: 400; color: var(--panel-fg);
  background: var(--glass); border: 1px solid var(--glass-b); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .6); pointer-events: auto; text-wrap: balance; transition: transform .55s var(--ease); transition-delay: inherit; }
.co::before { content: ''; position: absolute; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.co-right .co-t { left: 46px; top: 0; transform: translate(-14px, -50%); }  .co-right::before { left: 15px; top: -1px; width: 31px; height: 2px; }
.co-left .co-t { right: 46px; top: 0; transform: translate(14px, -50%); }   .co-left::before { right: 15px; top: -1px; width: 31px; height: 2px; }
.co-top .co-t { bottom: 46px; left: 0; transform: translate(-50%, 14px); }  .co-top::before { bottom: 15px; left: -1px; width: 2px; height: 31px; }
.co-bottom .co-t { top: 46px; left: 0; transform: translate(-50%, -14px); } .co-bottom::before { top: 15px; left: -1px; width: 2px; height: 31px; }
.slide.on .co { opacity: 1; } .slide.on .co-dot { transform: none; }
.slide.on .co-right .co-t, .slide.on .co-left .co-t { transform: translate(0, -50%); } .slide.on .co-top .co-t, .slide.on .co-bottom .co-t { transform: translate(-50%, 0); }
.wide .co-out, .print .co-out { display: none; }
/* «Подробно» – подписи раскрыты сразу; анимации выключены – без движения */
.detail:is(.v-onepage, .v-pages) .co, [data-motion="off"] .co, .print .co { opacity: 1; transition: none; }
.detail:is(.v-onepage, .v-pages) .co-dot, [data-motion="off"] .co-dot, .print .co-dot { transform: none; transition: none; }
.detail:is(.v-onepage, .v-pages) .co-t, [data-motion="off"] .co-t, .print .co-t { transition: none; }
.detail:is(.v-onepage, .v-pages) :is(.co-right, .co-left) .co-t, [data-motion="off"] :is(.co-right, .co-left) .co-t, .print :is(.co-right, .co-left) .co-t { transform: translate(0, -50%); }
.detail:is(.v-onepage, .v-pages) :is(.co-top, .co-bottom) .co-t, [data-motion="off"] :is(.co-top, .co-bottom) .co-t, .print :is(.co-top, .co-bottom) .co-t { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .co, .co-dot, .co-t { transition: none !important; } .co { opacity: 1; } .co-dot { transform: none; } .co-right .co-t, .co-left .co-t { transform: translate(0, -50%); } .co-top .co-t, .co-bottom .co-t { transform: translate(-50%, 0); } }
.print .co-t { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--glass) 80%, var(--bg)); }
/* телефон: нумерованные точки на фото, подписи – списком под фото */
.mobile .slide.has-co { display: flex; flex-direction: column; }
.mobile .slide.has-co > * { order: 2; }
.mobile .slide.has-co > :is(.bg, .hd, .gal) { order: 0; }
.mobile .slide.has-co > .foot { order: 3; }
.mobile .cos, .mobile .co { display: contents; }
.mobile .co::before { display: none; }
.mobile .co-dot { position: absolute; z-index: 3; left: calc(var(--cx) - 13px); top: calc(var(--cy) - 13px); width: 26px; height: 26px; border-width: 2px; transform: none; transition: none;
  display: grid; place-items: center; font: 600 13px/1 var(--f-main); color: #0D1A12; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 30%, transparent), 0 3px 10px rgba(0, 0, 0, .4); }
.mobile .co-dot::after { content: counter(co); }
.mobile .co-out .co-dot { visibility: hidden; }
.mobile .co-t { order: 1; position: static; transform: none !important; max-width: none; width: auto; margin: 0 16px; padding: 8px 4px; display: flex; gap: 10px; align-items: baseline;
  font-size: 15px; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--fg); }
.mobile .co-t::before { content: counter(co); flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font: 600 12px/1 var(--f-main); background: var(--c); color: #0D1A12; }
.mobile .co:first-child .co-t { margin-top: 10px; }

/* ================= ОЗВУЧКА (28.10): панель ix-voice.js снизу во всех видах ================= */
/* «Сайт» и «Страницы»: панель закреплена внизу, при фоне «Стекло» у страницы нижний отступ на ее высоту */
.has-vo.vo-pad:not(.v-deck) body, .has-vo.vo-pad.mobile body { padding-bottom: var(--vo-h, 80px); }
.has-vo #toast { bottom: calc(var(--vo-h, 70px) + 16px); }
.has-vo .ixv-fab { width: 48px; padding: 0; justify-content: center; }
.has-vo .ixv-fab svg { width: 20px; height: 20px; margin-left: 2px; }
.has-vo .ixv { --ixv-accent: #7FB91F; }
/* показ: прячется вместе с панелью ‹ › при бездействии (субтитры остаются) */
.idle .ixv:not(:hover):not(:focus-within), .idle .ixv-fab:not(:hover):not(:focus-visible) { opacity: 0; pointer-events: none; }
.ixv, .ixv-fab { transition: opacity .3s ease, bottom .25s ease; }
/* окно большого объекта, Студия, печать – поверх панели или без нее */
.bv-open :is(.ixv, .ixv-fab, .ixv-cap) { z-index: 70 !important; }
.st-on :is(.ixv, .ixv-fab, .ixv-cap), .print :is(.ixv, .ixv-fab, .ixv-cap, .ixv-pop) { display: none !important; }
/* экскурсия в «Подробно»: короткая подсветка главного (большого объекта) */
.vo-hl { animation: vohl 1.9s var(--ease) 1; }
@keyframes vohl { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 0%, transparent); } 25% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 70%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .vo-hl { animation: none; outline: 6px solid color-mix(in srgb, var(--c) 70%, transparent); outline-offset: 2px; } }
