/* G2 product filmstrip and the window belonging to its selected product. */
.pg {
  --pg-gutter: max(5vw, calc((100vw - 1380px) / 2));
  --pg-card-width: min(80vw, 1260px);
  padding: clamp(68px, 7vw, 120px) 0 clamp(46px, 5vw, 85px);
  background: #000;
  color: #f5f5f7;
  overflow: clip;
}
.pg-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: clamp(22px, 3vw, 43px);
}
.pg-heading h2 {
  font: 600 var(--t-sec)/1.07 var(--font);
  letter-spacing: -.015em;
  text-wrap: balance;
}
.pg-heading > a, .pg-secondary { color: #f5f5f7; font-size: 16px; }
.pg-heading > a { flex-shrink: 0; }
.pg-heading > a:hover, .pg-secondary:hover { text-decoration: underline; text-underline-offset: 4px; }
.pg-track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  gap: clamp(10px, 1.3vw, 24px);
  padding-inline: var(--pg-gutter);
  scroll-padding-inline: var(--pg-gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.pg-track::-webkit-scrollbar { display: none; }
.pg-track::after { content: ""; flex: none; width: max(0px, calc(100vw - var(--pg-card-width) - 2 * var(--pg-gutter) - 16px)); }
.pg-card {
  position: relative;
  flex: 0 0 var(--pg-card-width);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(15px, 1.5vw, 25px);
  scroll-snap-align: start;
  background: #31231c;
  box-shadow: inset 0 0 0 1px #ffffff36;
}
.pg-card > picture, .pg-card > picture img, .pg-card video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.pg-card video.film { pointer-events: none; transition: none; }
.pg-card:has(video.has-frame:not([hidden])) > picture { visibility: hidden; }
.pg-card::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid #ffffff2d; border-radius: inherit;
  pointer-events: none; z-index: 2;
}
.pg-card-link {
  position: absolute; inset: 0;
  display: flex; align-items: center; flex-direction: column;
  gap: 8px; padding: clamp(22px, 3.3vw, 56px) 8% 20px;
  background: transparent;
  color: #fff; text-align: center;
}
.pg-card-link:focus-visible { outline-offset: -5px; }
.pg-product-name { font: 500 13px/1.3 var(--font); color: #f5e5dc; }
.pg-card-link strong { max-width: 840px; font: 600 var(--t-card)/1.13 var(--font); letter-spacing: -.012em; }
.pg-card-arrow {
  display: grid; place-items: center;
  position: absolute; right: 20px; bottom: 20px;
  height: 36px; width: 36px; border-radius: 50%;
  background: #17111283; border: 1px solid #ffffff3d;
  font-size: 18px; transition: background .2s;
}
.pg-card-link:hover .pg-card-arrow { background: #211522bd; }
.pg-mode {
  display: none; position: absolute; z-index: 2;
  bottom: 4%; left: 50%; transform: translateX(-50%);
  padding: 3px; border: 1px solid #ffffff48; border-radius: 25px; background: #141113bd;
  backdrop-filter: blur(12px);
}
.pg-mode button { border: 0; background: transparent; color: #dfd8da; font: 500 12px/1 var(--font); padding: 8px 15px; border-radius: 18px; }
.pg-mode button[aria-pressed="true"] { background: #ffffff30; color: #fff; }
.pg-controls { display: none; }
.pg-ready .pg-controls, .pg-ready .pg-mode { display: flex; align-items: center; }
.pg-controls { justify-content: center; gap: 12px; margin-top: clamp(15px,2vw,26px); }
.pg-indicators { display: flex; align-items: center; }

.pg-current { color: #aaa6ad; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg-current { font: 500 12px/1 var(--font); letter-spacing: .08em; }
.pg-current b { color: #fff; }
.pg-indicators button {
  display: grid; place-items: center; border: 0; background: none;
  padding: 0; min-height: 36px; min-width: 22px;
}
.pg-indicators button i {
  width: clamp(12px, 1.6vw, 28px); height: 2px; margin: 0 2px;
  background: #4b474d; transition: background .25s, box-shadow .25s;
}
.pg-indicators button[aria-pressed="true"] i { background: #f0dcff; box-shadow: 0 0 7px #aa7de9; }
.pg-icon {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: #131215; border: 1px solid #3c3840; color: #efeef1;
  padding: 0; font-size: 22px; line-height: 1;
}
.pg-icon:hover { background: #302a34; }
.pg-play span { font-size: 11px; }
@media (max-width: 680px) {
  .pg { --pg-gutter: 18px; --pg-card-width: calc(100vw - 52px); padding-block: 44px 30px; }
  .pg-heading { align-items: end; gap: 12px; margin-bottom: 19px; }
  .pg-heading h2 { font-size: clamp(29px, 7.7vw, 42px); }
  .pg-heading > a { font-size: 11px; }
  .pg-card { aspect-ratio: 4 / 5; }
  .pg-card-link { padding: 24px 12px; gap: 6px; }
  .pg-card-link strong { font-size: 20px; }
  .pg-product-name { font-size: 11px; }
  .pg-card-arrow { right: 12px; bottom: 12px; width: 29px; height: 29px; font-size: 15px; }
  .pg-controls { gap: 5px; }
  .pg-indicators button { min-width: 13px; }
  .pg-indicators button i { width: 9px; }
  .pg-mode button { padding: 7px 12px; }

}
@media (prefers-reduced-motion: reduce) {
  .pg * { scroll-behavior: auto; transition: none; }
}


.pg-card [hidden] { display: none !important; }
#product-viewer { background: #000; }
#product-viewer .ap-prod-bg img {
  inset: 0; width: 100%; height: 100%; object-position: center;
  filter: none; transform: scale(1.018);
}
#product-viewer .ap-prod-bg img.on { opacity: 1; transform: none; }
#product-viewer .ap-prod-bg::after {
  background:
    linear-gradient(90deg, rgb(12 8 6 / .88), rgb(12 8 6 / .78) 28%, rgb(12 8 6 / .29) 55%, rgb(12 8 6 / .10) 78%),
    linear-gradient(180deg, rgb(0 0 0 / .43), transparent 19%, transparent 79%, rgb(0 0 0 / .46));
}
#product-viewer .ap-prod-text p { color: #d5cfcc; }
#product-viewer .ap-prod-stick > .a3-eyebrow-s { color: #beb8b5; }
#product-viewer .ap-shot { display: block; --v: 1; }
#product-viewer .ap-prod-side { display: none; }
#product-viewer:not(.pg-scrolling) .ap-prod-wrap { display: block; max-width: 900px; }
#product-viewer:not(.pg-scrolling) .ap-shot { --v: 1; }
#product-viewer.pg-scrolling .ap-prod-side { display: block; }
.pg-scrolling .pg-inline-copy { display: none; }
#product-viewer .ap-dots a { display: grid; align-items: center; padding-block: 10px; }
#product-viewer .ap-dots i { display: block; }
@media (max-width:860px) {
  /* The hub has no fixed double navbar: use the space it occupied in G2. */
  #product-viewer .ap-prod-side { top: 0; }
  #product-viewer .ap-prod-stick {
    margin-inline: calc(-1 * var(--g)); padding-inline: var(--g);
    background: linear-gradient(180deg, rgb(17 13 12 / .96), rgb(17 13 12 / .96) 78%, rgb(17 13 12 / .91) 88%, transparent);
  }
  #product-viewer .ap-prod-bg::after {
    background: linear-gradient(180deg, rgb(10 7 6 / .64), rgb(10 7 6 / .27) 38%, rgb(10 7 6 / .13) 68%, rgb(10 7 6 / .44));
  }
}
.hub-calm #product-viewer *, .hub-calm #product-viewer *::after { animation: none!important; transition: none!important; }
@media (prefers-reduced-motion: reduce) {
  #product-viewer *, #product-viewer *::after { animation: none!important; transition: none!important; }
}
/* Place the linked window under the mobile caption, or at eye level on desktop. */
#product-viewer [data-pg-view] { scroll-margin-top: max(0px, calc(45svh - min(20vw, 280px))); }
@media(max-width:860px) { #product-viewer [data-pg-view] { scroll-margin-top: min(50svh, 360px); } }
#view-portfolio { position: relative; }
#ai-to-portfolio { position: absolute; top: 0; left: 0; width: 1px; height: 1px; scroll-margin-top: calc(47svh - 24px); pointer-events: none; }
@media(max-width:860px) { #ai-to-portfolio { scroll-margin-top: 65svh; } }
/* The sticky desert is scoped to the nine-window reel, including on WebKit. */
#product-viewer { display: grid; grid-template-columns: minmax(0,1fr); contain: paint; overflow: clip; }
#product-viewer .ap-prod-bg, #product-viewer .ap-prod-wrap { grid-area: 1 / 1; }
#product-viewer .ap-prod-bg { align-self: start; margin: 0; z-index: 0; }
#product-viewer .ap-prod-wrap { position: relative; width: 100%; z-index: 1; }
.chapters { position: relative; isolation: isolate; background: #000; }
.chapter-copy { position: relative; z-index: 1; color: #f5f5f7; }
.pg-example {position:absolute;left:4%;bottom:6%;max-width:55%;text-align:left;background:rgb(23 17 15 / .85);border-left:2px solid #debb91;padding:10px 16px;color:#fff8ed;backdrop-filter:blur(8px)}
.pg-example small,.pg-example b {display:block}
.pg-example small {font:450 12px/1.25 var(--font);color:#decfbd;margin-bottom:4px}
.pg-example b {font:550 clamp(14px,1.25vw,19px)/1.25 var(--font)}
.pg-product-name, .pg-card-link strong { text-shadow: 0 1px 5px rgb(0 0 0 / .8), 0 2px 16px rgb(0 0 0 / .55); }
@media(max-width:950px){.pg-card:has(.pg-mode) .pg-example {bottom:17%}}
@media(max-width:680px){.pg-example{left:5%;bottom:5%;max-width:78%;padding:8px 10px}.pg-example small{font-size:10px}.pg-example b{font-size:13px}}
.pg-mode button:disabled {color:#ad9f9b}
.pg-live .ap-view {position:relative;background:#000}
.pg-demo-frame {position:absolute;left:0;top:0;border:0;transform-origin:top left;pointer-events:none;opacity:0;background:#000}
.pg-demo-ready .pg-demo-frame {opacity:1}
.pg-demo-ready .ap-sc {visibility:hidden}
#product-viewer .pg-live .ap-view::after {display:none}
#product-viewer .pg-live::after {display:none}
.pg-live .ap-bar {height:34px;padding-inline:14px;gap:6px}
.pg-live .ap-bar i {width:7px;height:7px}
.pg-live .ap-bar b {font-size:10px;padding:0;box-shadow:none;transform:none}
.hub-calm .pg-card video {opacity:0}

/* A real publication belongs beside Social, outside the hero composition. */
.social-reference {position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;margin:24px 0 0;padding:22px 0;border-top:1px solid #cabb9a40;text-align:left;color:#f4eee5}
.social-reference small {display:block;font:400 11px/1.6 var(--font);color:#c7bba9}
.social-reference-story > small {letter-spacing:.04em}
.social-reference-story > small span {letter-spacing:0;color:#b9afa3}
.social-reference-title {display:block;margin-top:7px;font:500 clamp(17px,1.4vw,22px)/1.35 var(--font);letter-spacing:-.02em;text-wrap:pretty}
.social-reference-title span {display:inline-block;margin-left:5px;color:#cbb8df;font-size:14px}
.social-reference-author {align-self:center}
.social-reference-author a {display:inline-block;margin-bottom:5px;font:400 13px/1.5 var(--font);color:#d4bfe9}
.social-reference a:hover {text-decoration:underline;text-underline-offset:4px}
.social-reference a:focus-visible {outline:2px solid #cbb8df;outline-offset:5px;border-radius:2px}
@media(max-width:1100px){.social-reference{grid-template-columns:minmax(0,1fr);gap:14px}}
@media(max-width:680px){.social-reference{margin-top:18px;padding:18px 0;gap:12px}.social-reference-title{font-size:19px}}

/* The film is the entire scene, not a browser frame around a monitor. */
#product-viewer .pg-film .ap-view{aspect-ratio:auto;height:auto;overflow:hidden}
.pg-film .ap-view picture,.pg-film-poster{display:block;width:100%;height:auto}
.pg-reel-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000;opacity:0}
.pg-film-ready .pg-reel-video{opacity:1}

/* Discreet playback control; the scene owns the full window. */
.pg-film .pg-demo-pause{position:absolute;z-index:3;right:16px;bottom:16px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #ffffff38;border-radius:50%;background:#111113b8;color:#fff;box-shadow:0 2px 12px #0002;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);cursor:pointer;opacity:.72;transition:background .2s,opacity .2s,transform .2s}
.pg-film:hover .pg-demo-pause,.pg-film:focus-within .pg-demo-pause{opacity:1}
.pg-film .pg-demo-pause:hover{background:#29272ded;transform:scale(1.06)}
.pg-film .pg-demo-pause:active{transform:scale(.96)}
.pg-film .pg-demo-pause:focus-visible{outline:2px solid #d5c0ee;outline-offset:4px;opacity:1}
.pg-demo-pause svg{width:20px;height:20px;grid-area:1/1}
.pg-demo-pause .pg-icon-play,.pg-demo-pause[aria-pressed="true"] .pg-icon-pause{display:none}
.pg-demo-pause[aria-pressed="true"] .pg-icon-play{display:block}
.pg-film .pg-demo-pause:disabled{display:none}
@media(hover:none){.pg-film .pg-demo-pause{opacity:1}}
@media(max-width:680px){.pg-film .pg-demo-pause{right:12px;bottom:12px}}
@media(prefers-reduced-motion:reduce){.pg-film .pg-demo-pause{transition:none}}

/* One product story: a generous interface, with a small scene at its lower edge. */
#product-viewer .pg-composition {
  overflow:visible;background:transparent;box-shadow:none;border-radius:0;
  padding:0 3% 12% 0;isolation:isolate;
}
#product-viewer .pg-composition::after {display:none}
.pg-main-screen {display:block;border-radius:16px;overflow:hidden;background:#08080a;box-shadow:0 0 0 1px #ffffff24,0 32px 80px #0006}
.pg-main-screen .ap-bar {height:30px;padding-inline:14px;gap:5px}
.pg-main-screen .ap-bar i {width:6px;height:6px}
.pg-main-screen .ap-bar b {font-size:10px;box-shadow:none;padding:0;transform:none}
#product-viewer .pg-main-screen .ap-view::after {display:none}
#product-viewer .pg-main-screen .ap-sc {transform:none;filter:none}
#product-viewer .pg-inset {
  position:absolute;right:0;bottom:0;width:43%;z-index:2;overflow:hidden;
  border:1px solid #ffffff40;border-radius:12px;background:#111;
  box-shadow:0 16px 48px #0009,0 0 0 5px #1513126b;
  transition:box-shadow .25s ease;
}
#product-viewer .pg-inset .ap-view {aspect-ratio:16/9;height:auto}
#product-viewer .pg-inset picture,#product-viewer .pg-inset .pg-film-poster {height:100%;width:100%;object-fit:cover}
.pg-inset-label {position:absolute;top:10px;left:12px;z-index:2;color:#fff;font:500 10px/1.2 var(--font);letter-spacing:.05em;padding:5px 8px;border-radius:20px;background:#08080885;backdrop-filter:blur(10px);pointer-events:none}
#product-viewer .pg-inset .pg-demo-pause {width:32px;height:32px;min-height:0;right:9px;bottom:9px}
.pg-inset .pg-demo-pause svg {width:15px;height:15px}
#product-viewer .ap-prod-text h3 {font-size:clamp(30px,3.1vw,52px);line-height:1.08;text-wrap:pretty}
#product-viewer .ap-prod-text .ap-pk {font-size:13px;letter-spacing:.02em;margin-bottom:16px}
.pg-lesson {display:inline-block;margin-top:22px;font:400 13px/1.5 var(--font);color:#dec9f2;max-width:30ch}
.pg-lesson:hover {text-decoration:underline;text-underline-offset:4px}
#product-viewer .social-reference {gap:14px;margin-top:18px;padding:18px 0}
#product-viewer .social-reference-title {font-size:17px}
@media(max-width:1100px) and (min-width:861px){
 #product-viewer .ap-prod-wrap {grid-template-columns:minmax(250px,.7fr) 1.3fr;gap:3vw}
 #product-viewer .pg-inset {width:48%}
 #product-viewer .pg-composition {padding-bottom:15%}
}
@media(max-width:860px){
 #product-viewer .ap-prod-side {display:none!important}
 #product-viewer .pg-inline-copy {display:block;margin-bottom:28px;min-height:0}
 #product-viewer .ap-prod-wrap {display:block}
 #product-viewer .ap-prod-list {padding:42px 0 60px;gap:70px}
 #product-viewer .ap-prod-text h3 {font-size:clamp(30px,6vw,46px);max-width:20ch}
 #product-viewer .ap-prod-text p {font-size:16px;line-height:1.55;max-width:50ch;margin-bottom:22px}
 #product-viewer [data-pg-view] {scroll-margin-top:24px}
 #product-viewer .pg-composition {padding:0 0 22%}
 #product-viewer .pg-inset {width:54%;bottom:0;right:10px;border-radius:10px}
 #product-viewer .pg-main-screen {border-radius:12px}
 #product-viewer .pg-main-screen .ap-bar {height:25px}
 #product-viewer .pg-main-screen .ap-bar b {font-size:9px}
 #product-viewer .pg-inset .pg-demo-pause {width:36px;height:36px;right:6px;bottom:6px}
 .pg-inset-label {font-size:9px;top:6px;left:6px;padding:4px 6px}
}
@media(prefers-reduced-motion:reduce){.pg-inset{transition:none}}

/* The same UI timeline in the large screen and the photographed monitor. */
#product-viewer .pg-scenario {padding:0;isolation:isolate}
.pg-media-pair {position:relative;padding:0 3% 13% 0}
#product-viewer .pg-screen-view {position:relative;aspect-ratio:16/10;height:auto;background:#000;overflow:hidden}
.pg-screen-poster {display:block;width:100%;height:100%;object-fit:contain;background:#000}
.pg-screen-video {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000;opacity:0}
.pg-pair-ready .pg-screen-video,.pg-pair-ready .pg-reel-video {opacity:1}
.pg-scenario-controls {position:absolute;bottom:4px;left:0;width:54%;color:#eee8de;text-align:left}
.pg-scenario-note {font:400 10px/1.4 var(--font);color:#c4baad;letter-spacing:.015em;margin:0 0 10px}
.pg-steps {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.pg-step {position:relative;display:flex;align-items:baseline;gap:6px;min-height:45px;padding:0 0 12px;border:0;border-radius:0;background:none;color:#b8b0a7;cursor:pointer;font:400 11px/1.35 var(--font);text-align:left;transition:color .2s}
.pg-step-number {font-size:9px;color:#aa9a83;font-variant-numeric:tabular-nums}
.pg-step i {position:absolute;bottom:0;left:0;right:0;height:2px;background:#ffffff25;overflow:hidden}
.pg-step i::after {content:'';display:block;position:absolute;inset:0;background:#d8c1f2;transform:scaleX(var(--progress,0));transform-origin:left}
.pg-step[aria-pressed=true],.pg-step:hover {color:#fff}
.pg-step[aria-pressed=true] .pg-step-number {color:#e4d4f6}
.pg-step:focus-visible {outline:2px solid #d8c1f2;outline-offset:5px;border-radius:2px}
.pg-step:disabled {cursor:default}
@media(min-width:861px) and (max-width:1100px){.pg-media-pair{padding-bottom:17%}.pg-steps{gap:8px}.pg-step{font-size:10px;gap:4px}.pg-scenario-controls{width:48%}.pg-scenario-note{font-size:9px}}
@media(max-width:860px){
 .pg-media-pair{padding:0 0 22%}
 .pg-scenario-controls{position:relative;bottom:auto;width:100%;margin-top:20px}
 .pg-scenario-note{font-size:10px;margin-bottom:12px}
 .pg-step{min-height:44px;font-size:12px}
 .pg-step-number{font-size:10px}
 .pg-steps{gap:12px}
 #product-viewer .pg-scenario .social-reference{margin-top:20px}
}
@media(prefers-reduced-motion:reduce){.pg-step{transition:none}}
/* Keep the detailed sand visible without putting captions on a bright dune. */
@media(max-width:860px){
 #product-viewer .ap-prod-bg::after{background:linear-gradient(90deg,#0009,#0007),linear-gradient(#0008,transparent 25%,transparent 75%,#0009)}
}

/* Fade only the scenery: the product interfaces and copy remain fully opaque. */
#product-viewer .ap-prod-bg {
 -webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 28%,#000 82%,transparent 100%);
 mask-image:linear-gradient(to bottom,transparent 0%,#000 28%,#000 82%,transparent 100%);
}
@media(min-width:861px){
 #product-viewer .ap-prod-list {padding-top:clamp(100px,15svh,180px)}
}

/* 11.11 (Данил): большое окно = снимок лендинга продукта (без ролика), малое окно = ролик экрана без людей */
#product-viewer .pg-shot-mode .pg-screen-poster { object-fit: cover; object-position: top center; }
#product-viewer .pg-shot-mode .pg-inset .pg-reel-video { object-fit: cover; object-position: top left; }
/* 12.11: the gallery is video only (no Photo / Video switch); the caption sits bottom-left on a soft shade, crisp, not centred over the sky */
#product-gallery .pg-mode, .pg-ready #product-gallery .pg-mode, #product-gallery.pg-ready .pg-mode { display: none !important; }
html body.editorial-hub #product-gallery .pg-card-link {
  align-items: flex-start; justify-content: flex-end; text-align: left; gap: 12px;
  padding: clamp(24px, 3.4vw, 52px);
  background: linear-gradient(to top, rgb(0 0 0 / .66) 0%, rgb(0 0 0 / .34) 26%, rgb(0 0 0 / 0) 52%);
}
html body.editorial-hub #product-gallery .pg-product-name {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/16px var(--font); letter-spacing: .16em; text-transform: uppercase; color: rgb(255 255 255 / .78);
  text-shadow: none;
}
html body.editorial-hub #product-gallery .pg-product-name::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
html body.editorial-hub #product-gallery .pg-card-link strong {
  max-width: 660px; font: 500 clamp(26px, 2.5vw, 42px)/1.12 var(--font); letter-spacing: -.028em; color: #fff;
  text-wrap: balance; text-shadow: 0 1px 2px rgb(0 0 0 / .25);
}
@media (max-width: 680px) {
  html body.editorial-hub #product-gallery .pg-card-link { padding: 20px 18px; gap: 8px; background: linear-gradient(to top, rgb(0 0 0 / .7) 0%, rgb(0 0 0 / .32) 34%, rgb(0 0 0 / 0) 60%); }
  html body.editorial-hub #product-gallery .pg-card-link strong { font-size: 22px; }
  html body.editorial-hub #product-gallery .pg-product-name { font-size: 11px; letter-spacing: .14em; }
}
