/* ==========================================================================
   Drog - Gallery Pro — вітрина.
   Кольори з чинної теми uhl-mash: синій #2457ab, жовтий #fdd226.
   Хром тихий — колір на екрані дають ФОТО.
   ========================================================================== */
.gs {
  --gs-blue: #2457ab;
  --gs-blue-soft: #eef3fb;
  --gs-yellow: #fdd226;
  --gs-ink: #16181d;
  --gs-muted: #5f6773;
  /* НЕ світлішати: перевірено, нижче цього контраст падає нижче 4.5:1 */
  --gs-faint: #6e7684;
  --gs-line: #e3e6ec;
  --gs-surface: #f7f8fa;
  --gs-r: 12px;
  --gs-r-sm: 8px;
}
.gs *, .gs *::before, .gs *::after { box-sizing: border-box; }
.gs img { max-width: 100%; display: block; }
.gs-head { padding: 6px 0 4px; }
.gs .gs-h1 { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: var(--gs-ink); }
.gs-lede { margin: 10px 0 0; max-width: 70ch; color: var(--gs-muted); font-size: 16px; line-height: 1.55; }
.gs-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: var(--gs-muted); }
/* назад — на рівень вище */
.gs .gs-back {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 6px 0 14px; padding: 8px 14px 8px 11px;
  font-size: 14px; font-weight: 500; line-height: 1;
  color: var(--gs-blue); background: var(--gs-blue-soft);
  border: 1px solid #d6e2f5; border-radius: 22px; text-decoration: none;
}
.gs .gs-back:hover { background: #e2ebf9; }
.gs .gs-back:focus-visible { outline: 2px solid var(--gs-blue); outline-offset: 2px; }
.gs-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* пошук і сегменти */
.gs-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 20px 0 0; }
.gs-search { flex: 1; min-width: 220px; max-width: 420px; }
.gs-search input {
  width: 100%; font: inherit; font-size: 15px; min-height: 46px; padding: 0 14px;
  border: 1px solid var(--gs-line); border-radius: var(--gs-r-sm); color: var(--gs-ink);
}
.gs-search input:focus { outline: 2px solid var(--gs-blue); outline-offset: -1px; border-color: var(--gs-blue); }
.gs-seg { display: inline-flex; background: var(--gs-surface); padding: 4px; border-radius: 10px; gap: 3px; }
.gs .gs-seg__i {
  font-size: 14px; font-weight: 500; color: #333a46; text-decoration: none;
  /* 44px — мінімальна зона натискання; було 38px і не дотягувало */
  padding: 11px 16px; border-radius: 7px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.gs .gs-seg__i:focus-visible { outline: 3px solid var(--gs-blue); outline-offset: 2px; }
.gs .gs-seg__i[aria-selected="true"] { background: #fff; color: var(--gs-blue); box-shadow: 0 1px 3px rgba(22,24,29,.1); }
.gs-facets { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.gs .gs-facet {
  font-size: 13.5px; padding: 7px 14px; min-height: 36px; text-decoration: none;
  color: #333a46; background: #fff; border: 1px solid var(--gs-line);
  border-radius: 20px; display: inline-flex; align-items: center; gap: 7px;
}
.gs .gs-facet:hover { border-color: #c3cad6; }
.gs .gs-facet[aria-pressed="true"] { background: var(--gs-blue); border-color: var(--gs-blue); color: #fff; }
.gs-facet .n { font-size: 12px; opacity: .65; font-variant-numeric: tabular-nums; }
/* картки альбомів */
.gs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 22px; margin: 26px 0 0; }
.gs .gs-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.gs-card__ph { position: relative; aspect-ratio: 4/3; border-radius: var(--gs-r); overflow: hidden; background: #eef0f4; }
.gs-card__ph::after { content: ""; position: absolute; inset: 0; border-radius: var(--gs-r); box-shadow: inset 0 0 0 1px rgba(22,24,29,.07); }
.gs-card__im { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gs .gs-card:hover .gs-card__im { transform: scale(1.04); }
/* ВИМОГА 16: іконка по центру ФОТО, а не над назвою */
.gs-card__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 52px; height: 52px; border-radius: 50%; background: rgba(22,24,29,.55);
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.gs .gs-card:hover .gs-card__play { background: #ff0033; }
.gs-card__play svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }
.gs-card__b { padding: 13px 2px 0; }
.gs-card__t { font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--gs-ink); }
.gs .gs-card:hover .gs-card__t { color: var(--gs-blue); }
.gs-card__m { display: flex; gap: 13px; margin-top: 7px; font-size: 13.5px; color: var(--gs-muted); font-variant-numeric: tabular-nums; }
/* сторінка альбому */
/* Без JS — проста сітка (сторінка лишається робочою).
   Зі скриптом вмикається justified: рядок однакової висоти, ширина плитки
   пропорційна кадру, тож ані обрізки, ані порожніх полів. */
.gs-album { display: grid; grid-template-columns: repeat(auto-fill, minmax(226px, 1fr)); gap: 12px; margin: 22px 0 0; }
.gs-album.is-justified { display: flex; flex-wrap: wrap; gap: 8px; }
.gs .gs-shot { position: relative; display: block; aspect-ratio: 1/1; border-radius: var(--gs-r-sm); overflow: hidden; background: #eef0f4; border: 0; padding: 0; cursor: pointer; }
.gs-album.is-justified .gs-shot { aspect-ratio: auto; flex: 0 0 auto; }
.gs-shot img { width: 100%; height: 100%; object-fit: cover; }
/* Кадр-герой. Займає весь рядок стрічки: альбом починається з великого
   знімка об'єкта, а не з мозаїки однакових плиток. Пропорція зафіксована,
   тож місце під нього зарезервовано і сторінка не стрибає. */
.gs .gs-hero {
  flex: 0 0 100%; width: 100%; aspect-ratio: 16/9;
  border-radius: var(--gs-r); margin-bottom: 4px;
}
.gs-album.is-justified .gs-hero { aspect-ratio: 16/9; }
.gs-hero::after { border-radius: var(--gs-r); }
/* Затемнення щільніше, ніж на дрібних плитках: підпис тут великий і має
   лишатись читабельним навіть на світлому кадрі. */
.gs-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8,12,18,.86) 0%, rgba(8,12,18,.46) 30%,
                                      rgba(8,12,18,.06) 62%, rgba(8,12,18,0) 78%);
}
.gs-hero__b { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 26px; text-align: left; }
.gs-hero__t {
  display: block; color: #fff; font-size: 27px; font-weight: 600; line-height: 1.2;
  letter-spacing: -.01em; text-shadow: 0 1px 14px rgba(0,0,0,.5); max-width: 24ch;
}
.gs-hero__m {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 9px;
  color: rgba(255,255,255,.9); font-size: 13.5px; font-variant-numeric: tabular-nums;
}
/* На героя підпис кадру не виводимо — там уже стоїть заголовок зйомки */
.gs .gs-hero .gs-shot__cap { display: none; }
.gs .gs-hero .gs-shot__tags { left: auto; right: 14px; bottom: auto; top: 14px; }
@media (max-width: 620px) {
  .gs .gs-hero { aspect-ratio: 4/3; }
.gs-hero__b { padding: 16px 17px; }
.gs-hero__t { font-size: 20px; }
}
/* Скільки товарів позначено на кадрі — видно ще до кліку */
.gs-shot__tags {
  position: absolute; left: 9px; bottom: 9px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px; border-radius: 3px;
  background: rgba(255,255,255,.95); color: var(--gs-ink);
  font-size: 11.5px; font-weight: 700; line-height: 1;
  box-shadow: 0 2px 8px rgba(9,14,20,.22);
}
.gs-shot__tags i { width: 8px; height: 8px; border-radius: 50%; background: var(--gs-blue); }
.gs-shot::after { content: ""; position: absolute; inset: 0; border-radius: var(--gs-r-sm); box-shadow: inset 0 0 0 1px rgba(22,24,29,.07); }
.gs-shot__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 22px 11px 9px; font-size: 12.5px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(22,24,29,.72));
  opacity: 0; transition: opacity .2s ease;
}
/* focus-within — щоб підпис бачили й ті, хто ходить з клавіатури */
.gs .gs-shot:hover .gs-shot__cap, .gs .gs-shot:focus-within .gs-shot__cap { opacity: 1; }
.gs .gs-shot:focus-visible { outline: 2px solid var(--gs-blue); outline-offset: 2px; }
.gs-sect-h { display: flex; align-items: baseline; gap: 12px; margin: 38px 0 0; }
.gs-sect-h h2 { margin: 0; font-size: 22px; font-weight: 600; color: var(--gs-ink); }
.gs-sect-h .n { color: var(--gs-faint); font-size: 14px; font-variant-numeric: tabular-nums; }
.gs-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin: 18px 0 0; }
.gs .gs-video { display: block; text-decoration: none; color: inherit; }
.gs-video__ph { position: relative; display: block; aspect-ratio: 16/9; border-radius: var(--gs-r-sm); overflow: hidden; background: #dfe3ea; }
.gs-video__ph img { width: 100%; height: 100%; object-fit: cover; }
.gs-video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 50px; height: 50px; border-radius: 50%; background: rgba(22,24,29,.55);
  display: flex; align-items: center; justify-content: center;
}
.gs .gs-video:hover .gs-video__play { background: #ff0033; }
.gs-video__play svg { width: 19px; height: 19px; fill: #fff; margin-left: 3px; }
.gs-video__b { display: block; padding-top: 10px; }
.gs-video__t { display: block; font-size: 15px; font-weight: 500; line-height: 1.35; }
/* ВИМОГА 17: опис відео поруч, а не лише назва */
.gs-video__d { display: block; margin-top: 5px; font-size: 13.5px; color: var(--gs-muted); line-height: 1.45; }
/* службові стани */
.gs-empty { padding: 46px 20px; text-align: center; }
.gs-empty__t { font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.gs-empty__s { font-size: 14.5px; color: var(--gs-muted); margin-bottom: 16px; }
.gs .gs-btn {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px;
  font-size: 15px; font-weight: 600; color: #16181d; background: var(--gs-yellow);
  border: 0; border-radius: var(--gs-r-sm); text-decoration: none; cursor: pointer;
}
.gs .gs-btn:hover { background: #f5c800; }
.gs .gs-btn:focus-visible { outline: 2px solid var(--gs-blue); outline-offset: 2px; }
.gs-gate { max-width: 420px; margin: 30px auto 60px; text-align: center; }
.gs-gate__form { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; align-items: stretch; }
.gs-gate__lbl { text-align: left; font-size: 13.5px; color: var(--gs-muted); }
.gs-gate__form input {
  font: inherit; font-size: 16px; min-height: 46px; padding: 0 14px;
  border: 1px solid var(--gs-line); border-radius: var(--gs-r-sm);
}
.gs-gate__err { margin-top: 14px; padding: 10px 14px; background: #fdf2f1; border: 1px solid #e8b8b4; border-radius: var(--gs-r-sm); color: #b3261e; font-size: 14px; }
.gs-pagination { margin: 28px 0 10px; }
@media (max-width: 620px) {
  .gs .gs-h1 { font-size: 25px; }
.gs-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.gs-album { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .gs * { transition: none !important; }
}
/* ==========================================================================
   Перегляд кадру з мітками товарів
   ========================================================================== */

.gs-view {
  position: fixed; inset: 0; z-index: 1100;
  /* Третій рядок оголошено ЯВНО під плівку. Без нього вона створювала
     неявний рядок, який не обмежений висотою вікна, — і кадр наїжджав
     на плівку знизу. */
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-columns: 1fr 340px;
  background: #0b0f14; color: #fff;
}
.gs-view[hidden] { display: none; }
body.gs-noscroll { overflow: hidden; }
.gs-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.gs-view__head {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 14px;
  padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.09);
}
.gs-view__t { font-size: 15px; font-weight: 600; }
.gs-view__n { margin-left: auto; font-size: 13px; color: #8ba0b8; font-variant-numeric: tabular-nums; }
.gs-view__x {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: none; border: 1px solid rgba(255,255,255,.16); border-radius: 4px;
  color: #fff; cursor: pointer;
}
.gs-view__x svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.gs-view__x:hover { background: rgba(255,255,255,.1); }
.gs-view__x:focus-visible { outline: 3px solid #9cc0ff; outline-offset: 2px; }
/* min-width:0 — не косметика. Елемент сітки за замовчуванням не стискається
   вужче за свій min-content, і вбудований плеєр (власна ширина 1280) розпирав
   дорожку до 1454px усередині вікна на 562px. Фото так не робило: max-width
   на картинці обнуляє її min-content, а в iframe цього немає. */
.gs-view__stage { position: relative; display: grid; place-items: center; padding: 14px; min-height: 0; min-width: 0; }
.gs-view__stage > * { min-width: 0; }
/* height:100% обов'язковий: max-height у відсотках рахується від ВИЗНАЧЕНОЇ
   висоти батька. Без неї ланцюжок не розв'язується, кадр не обмежується
   рядком сітки й наїжджає на плівку знизу. */
/* Межу висоти виставляє скрипт (--stage-h): відсотки тут не працюють —
   max-height:100% рахується від ВИЗНАЧЕНОЇ висоти батька, а він
   стискається під кадр, тож ланцюжок не розв'язується і кадр наїжджав
   на плівку. Коробка має обіймати саме кадр: на ній позиціонуються мітки. */
.gs-view__in {
  position: relative; line-height: 0; max-width: 100%;
  max-height: var(--stage-h, 100%);
  display: flex; align-items: center; justify-content: center;
}
.gs-view__in img { max-width: 100%; max-height: var(--stage-h, 100%); width: auto; height: auto; border-radius: 4px; object-fit: contain; }
.gs-view__arr {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.2);
  color: #fff; cursor: pointer; display: grid; place-items: center;
}
.gs-view__arr svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.gs-view__arr:hover { background: rgba(255,255,255,.22); }
.gs-view__arr:focus-visible { outline: 3px solid #9cc0ff; outline-offset: 2px; }
.gs-view__arr.l { left: 14px; }
.gs-view__arr.r { right: 14px; }
/* Мітка нумерована: коли їх три і більше, без номера незрозуміло,
   якій позиції списку вона відповідає. */
.gs-mk {
  position: absolute; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gs-blue); border: 3px solid #fff; color: #fff;
  font-size: 12px; font-weight: 700; line-height: 1;
  /* Мітка навмисно дрібна: вона лежить ПОВЕРХ фото і не має його закривати.
     Але 28px замало для пальця, тож площу натискання добиваємо невидимим
     полем до рекомендованих 44px — вигляд не змінюється. */
  touch-action: manipulation;
  box-shadow: 0 2px 10px rgba(0,0,0,.45);
  transform: translate(-50%, -50%); cursor: pointer; z-index: 4;
  transition: transform .18s ease, background .18s ease;
}
.gs-mk.is-filter { background: #0f766e; }
.gs-mk:hover, .gs-mk.is-hot { transform: translate(-50%, -50%) scale(1.28); }
.gs-mk:focus-visible { outline: 3px solid #9cc0ff; outline-offset: 3px; }
.gs-mk.is-open { z-index: 9; }
/* Міні-картка — той самий компонент, що в блоці «Продукція в інтер'єрі»
   на головній: мініатюра, назва, ціна і дії. --dx виставляє скрипт,
   щоб картка біля краю кадру зсувалась усередину, а не обрізалась. */
.gs-tc {
  position: absolute; left: 50%; bottom: calc(100% + 13px);
  transform: translateX(calc(-50% + var(--dx, 0px))) translateY(6px);
  width: 300px; padding: 12px; border-radius: 4px;
  display: flex; gap: 11px; align-items: flex-start; text-align: left;
  background: #fff; color: var(--gs-ink); line-height: 1.4;
  box-shadow: 0 22px 48px -16px rgba(0,0,0,.62);
  opacity: 0; pointer-events: none; z-index: 9;
  transition: opacity .17s ease, transform .17s ease;
}
.gs-tc--below { bottom: auto; top: calc(100% + 13px); }
.gs-mk:hover .gs-tc, .gs-mk:focus-within .gs-tc, .gs-mk.is-open .gs-tc {
  opacity: 1; pointer-events: auto;
  transform: translateX(calc(-50% + var(--dx, 0px))) translateY(0);
}
/* Хвостик, щоб курсор не «провалювався» дорогою до картки */
.gs-tc::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 13px; }
.gs-tc--below::after { top: auto; bottom: 100%; }
.gs-tc__im { flex: 0 0 auto; width: 58px; height: 58px; object-fit: contain; background: var(--gs-surface); border-radius: 3px; }
.gs-tc__m { min-width: 0; flex: 1; }
/* Назви тут довгі («Стелаж СК 1000×750×600 оцинковане покриття») і без
   обмеження розганяли картку на п'ять рядків, підтискаючи кнопки так, що
   «Додати до кошика» обрізалось. Два рядки — достатньо, щоб упізнати товар. */
.gs-tc__t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
            overflow: hidden; font-size: 13px; font-weight: 600; }
.gs-tc__p { display: block; margin-top: 5px; font-size: 16px; font-weight: 700; color: #aa2222; font-variant-numeric: tabular-nums; }
.gs-tc__acts { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.gs-tc__go, .gs-tc__buy {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 10px; border-radius: 3px; border: 1px solid transparent;
  font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.gs-tc__go { background: var(--gs-blue-soft); color: #1e3a8a; border-color: #dbe4f7; }
.gs-tc__buy { background: var(--gs-blue); color: #fff; }
.gs-tc__buy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.gs-tc__buy.is-done { background: #2e9e5b; }
.gs-tc__go:focus-visible, .gs-tc__buy:focus-visible { outline: 3px solid #9cc0ff; outline-offset: 2px; }
/* Специфікація кадру */
.gs-view__spec { padding: 20px 18px; border-left: 1px solid rgba(255,255,255,.09); overflow: auto; min-height: 0; }
.gs-view__spec[hidden] { display: none; }
.gs-spec__h { margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: #8ba0b8; }
.gs-sp {
  display: flex; gap: 12px; align-items: center; margin-bottom: 8px; padding: 10px;
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07);
  border-radius: 4px; text-decoration: none; color: #fff;
}
.gs-sp:hover, .gs-sp.is-hot { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.gs-sp:focus-visible { outline: 3px solid #9cc0ff; outline-offset: 2px; }
.gs-sp__n { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gs-blue); font-size: 11px; font-weight: 700; }
.gs-sp__im { flex: 0 0 auto; width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 3px; }
.gs-sp__m { min-width: 0; flex: 1; }
.gs-sp__t { display: block; font-size: 13px; }
.gs-sp__p { display: block; margin-top: 5px; font-size: 15px; font-weight: 700; color: #ff8a8a; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) {
  .gs-view { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto auto; }
.gs-view__spec { border-left: 0; border-top: 1px solid rgba(255,255,255,.09); max-height: 36vh; }
.gs-mk { width: 36px; height: 36px; font-size: 14px; z-index: 6; }
.gs-view__arr { width: 38px; height: 38px; }
.gs-view__arr.l { left: 6px; }
.gs-view__arr.r { right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .gs-mk, .gs-tc { transition: none; }
.gs-mk:hover, .gs-mk.is-hot { transform: translate(-50%, -50%); }
}
/* ==========================================================================
   Запрошення на зйомку об'єкта
   ========================================================================== */
.gs-invite {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start;
  margin: 44px 0 0; padding: 26px; border-radius: var(--gs-r);
  background: var(--gs-blue-soft); border: 1px solid #d6e2f5;
}
.gs-invite__t { margin: 0; font-size: 22px; font-weight: 600; color: var(--gs-ink); }
.gs-invite__l { margin: 10px 0 0; color: var(--gs-muted); font-size: 14.5px; line-height: 1.55; }
.gs-invite__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gs-f { display: block; margin-bottom: 10px; }
.gs-f > span { display: block; margin-bottom: 4px; font-size: 12.5px; color: var(--gs-muted); }
.gs-f input, .gs-f textarea {
  width: 100%; font: inherit; font-size: 14px; padding: 9px 11px;
  border: 1px solid var(--gs-line); border-radius: var(--gs-r-sm); background: #fff;
}
.gs-f input:focus, .gs-f textarea:focus {
  outline: 2px solid var(--gs-blue); outline-offset: -1px; border-color: var(--gs-blue);
}
.gs-f.is-bad input, .gs-f.is-bad textarea { border-color: #c0392b; }
/* Приманка для ботів: прибрана з потоку, але не display:none —
   частина ботів такі поля свідомо пропускає */
.gs-invite__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gs-agree { display: flex; gap: 9px; align-items: flex-start; margin: 4px 0 14px; font-size: 13px; color: var(--gs-muted); }
.gs-agree input { margin-top: 2px; flex: 0 0 auto; }
.gs-agree.is-bad span { color: #c0392b; }
.gs-invite__act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gs-invite__btn {
  padding: 12px 22px; font: inherit; font-size: 14px; font-weight: 600;
  color: #fff; background: var(--gs-blue); border: 0; border-radius: var(--gs-r-sm); cursor: pointer;
}
.gs-invite__btn:hover { filter: brightness(1.08); }
.gs-invite__btn:disabled { opacity: .6; cursor: default; }
.gs-invite__btn:focus-visible { outline: 3px solid #9cc0ff; outline-offset: 2px; }
.gs-invite__msg { font-size: 13.5px; }
.gs-invite__msg.is-ok { color: #15803d; }
.gs-invite__msg.is-err { color: #c0392b; }
.gs-invite.is-done .gs-invite__f { display: none; }
@media (max-width: 900px) {
  .gs-invite { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
.gs-invite__row { grid-template-columns: 1fr; }
}
/* ==========================================================================
   Каталог: розділи + бенто + смуга відеооглядів
   ========================================================================== */

/* розділи — замість мертвого блоку фасетів */
.gs-sections { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.gs .gs-section {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;            /* зона натискання — не менше 44px */
  padding: 9px 16px; border-radius: 22px; text-decoration: none;
  font-size: 14px; color: #333a46; background: #fff;
  border: 1px solid var(--gs-line); transition: border-color .16s ease, background .16s ease;
}
.gs .gs-section:hover { border-color: #c3cad6; }
.gs .gs-section[aria-current="true"] { background: var(--gs-blue); border-color: var(--gs-blue); color: #fff; }
.gs .gs-section:focus-visible { outline: 3px solid var(--gs-blue); outline-offset: 2px; }
.gs-section .n { font-size: 12.5px; opacity: .7; font-variant-numeric: tabular-nums; }
.gs .gs-section[aria-current="true"] .n { opacity: .85; }
/* Бенто. Пропорція зафіксована на плитці, тож місце під картинку
   зарезервовано ще до завантаження — сторінка не стрибає. */
.gs-bento {
  display: grid; grid-template-columns: repeat(var(--gs-cols, 4), 1fr);
  grid-auto-rows: var(--gs-row, 210px); gap: var(--gs-gap, 10px); margin: 24px 0 0;
}
.gs .gs-tile {
  position: relative; display: block; overflow: hidden;
  grid-column: span 1; grid-row: span 1;
  border-radius: var(--gs-r-sm); background: #eef0f4;
  text-decoration: none; color: #fff; isolation: isolate;
}
/* Розмір = величина зйомки: 30+ фото — велика плитка, 15+ — подвійна */
.gs .gs-tile--lg { grid-column: span 2; grid-row: span 2; }
.gs .gs-tile--md { grid-column: span 2; }
.gs-tile__im { width: 100%; height: 100%; object-fit: contain; position: relative;
               transition: transform .5s cubic-bezier(.22,.61,.36,1); }
/* Підкладка — той самий кадр, розмитий і трохи більший, щоб краї розмиття
   не давали світлої облямівки по периметру плитки. */
.gs .gs-tile__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(16px) saturate(.7); transform: scale(1.2); opacity: .5;
}
/* Обкладинка ролика — на темному тлі: YouTube завжди 16:9, і світла
   розмита підкладка під нею виглядає брудно. */
.gs .gs-tile--vid .gs-tile__bg { filter: blur(20px) saturate(.5) brightness(.55); opacity: .8; }
.gs .gs-tile:hover .gs-tile__im { transform: scale(1.045); }
.gs .gs-tile:focus-visible { outline: 3px solid var(--gs-blue); outline-offset: 3px; }
/* Затемнення щільніше, ніж «для краси»: підпис має лишатись читабельним
   і на світлих кадрах — інакше він зникає на половині альбомів. */
.gs-tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8,12,18,.90) 0%, rgba(8,12,18,.60) 24%,
                                      rgba(8,12,18,.20) 46%, rgba(8,12,18,0) 70%);
}
.gs-tile__b { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px 15px; }
.gs-tile__t {
  display: block; font-size: 15px; font-weight: 600; line-height: 1.28;
  text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
.gs .gs-tile--lg .gs-tile__t { font-size: 24px; font-weight: 700; max-width: 16ch; }
.gs-tile__m {
  display: flex; gap: 12px; margin-top: 6px;
  font-size: 12.5px; color: rgba(255,255,255,.86); font-variant-numeric: tabular-nums;
}
.gs-tile__go {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.34);
  display: grid; place-items: center;
  transition: background .2s ease, transform .2s cubic-bezier(.22,.61,.36,1);
}
.gs-tile__go svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.2; }
.gs .gs-tile:hover .gs-tile__go { background: var(--gs-blue); border-color: var(--gs-blue); transform: translateX(2px); }
/* Розділ вітрини. Суцільна мозаїка на 115 альбомів читається як звалище,
   тож кожна група дістає свій заголовок і повітря навколо. */
.gs-sect + .gs-sect .gs-sect-h { margin-top: 34px; }
/* Плитка-огляд. Значок замінив окрему смугу відео внизу сторінки: жанр
   видно на місці, і ролик не відірваний від зйомки того самого об'єкта. */
.gs-tile__play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(22,24,29,.55); border: 1px solid rgba(255,255,255,.30);
  display: grid; place-items: center;
  transition: background .2s ease, transform .2s cubic-bezier(.22,.61,.36,1);
}
.gs-tile__play svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }
.gs .gs-tile--vid:hover .gs-tile__play {
  background: #ff0033; border-color: #ff0033;
  transform: translate(-50%, -50%) scale(1.06);
}
@media (max-width: 1000px) {
  .gs-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: calc(var(--gs-row, 210px) * .86); }
.gs .gs-tile--lg { grid-column: span 2; grid-row: span 2; }
.gs .gs-tile--md { grid-column: span 2; grid-row: span 1; }
.gs .gs-tile--lg .gs-tile__t { font-size: 20px; }
}
@media (max-width: 560px) {
  .gs-bento { grid-template-columns: 1fr; grid-auto-rows: calc(var(--gs-row, 210px) * .95); gap: 8px; }
.gs .gs-tile--lg, .gs .gs-tile--md { grid-column: span 1; grid-row: span 1; }
.gs .gs-tile--lg .gs-tile__t { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .gs-tile__im, .gs-tile__go, .gs-tile__play { transition: none; }
.gs .gs-tile:hover .gs-tile__im { transform: none; }
.gs .gs-tile:hover .gs-tile__go { transform: none; }
}
.gs .gs-seeall {
  margin-left: auto; font-size: 14px; font-weight: 500; color: var(--gs-blue);
  text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
}
.gs .gs-seeall:hover { text-decoration: underline; }
.gs .gs-seeall:focus-visible { outline: 3px solid var(--gs-blue); outline-offset: 2px; }
/* Обкладинка розділу — широка смуга 8:3, а не квадрат: розділ це не
   товар, і кадр тут працює як заставка, а не як зразок. Пропорція
   зафіксована, тож місце зарезервовано ще до завантаження. */
.gs-cover {
  margin: 14px 0 4px; border-radius: var(--gs-r); overflow: hidden;
  background: #eef0f4; aspect-ratio: 8/3;
}
.gs-cover img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 620px) { .gs-cover { aspect-ratio: 3/2; }
}
/* ---- структура розділів ------------------------------------------------ */
/* Дерево стоїть ПОРУЧ з альбомами, а не смугою над ними. Смуга з 14 гілок
   у чотири колонки читалась як хмара тегів: рівень вкладеності доводилось
   вгадувати за відступом. У колонці гілка йде згори вниз, риска-куточок
   показує рівень, і при прокрутці дерево лишається на екрані. */
.gs-cat { display: grid; grid-template-columns: 276px minmax(0, 1fr); gap: 32px; margin-top: 20px; align-items: start; }
.gs-main { min-width: 0; }
.gs-rail { border: 1px solid var(--gs-line); border-radius: var(--gs-r); background: #fff; }
.gs-rail__in { padding: 8px; }
.gs-rail__h {
  padding: 10px 12px 8px; font-size: 12px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--gs-faint);
}
/* Рядок-розкривач потрібен лише на вузькому екрані — на широкому дерево
   відкрите завжди, і кнопка над ним була б мертвою. */
.gs-rail__s {
  display: flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 0 16px; cursor: pointer; font-size: 15px; font-weight: 600;
  color: var(--gs-ink); list-style: none;
}
.gs-rail__s::-webkit-details-marker { display: none; }
.gs-rail__s svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.gs-rail__s b { margin-left: auto; font-weight: 500; font-size: 13px; color: var(--gs-faint); font-variant-numeric: tabular-nums; }
.gs-rail__s:focus-visible { outline: 3px solid var(--gs-blue); outline-offset: -3px; border-radius: var(--gs-r); }
.gs-tree, .gs-tree__l { list-style: none; margin: 0; padding: 0; }
.gs-tree__b { position: relative; padding-left: 22px; }
/* Куточок ліворуч — це і є позначка рівня. Розділ отримує «гілку»,
   бездітний розділ — коротку риску, підрозділи — вертикальну лінію. */
.gs-tree__tw {
  position: absolute; left: 10px; top: 15px; width: 8px; height: 8px;
  border-left: 1.5px solid #c3c9d4; border-bottom: 1.5px solid #c3c9d4;
  border-radius: 0 0 0 2px;
}
.gs-tree__tw.is-leaf { top: 19px; height: 0; width: 7px; border-left: 0; }
.gs .gs-tree__r {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 38px; padding: 7px 11px; border-radius: var(--gs-r-sm);
  text-decoration: none; color: var(--gs-ink);
  font-size: 14px; font-weight: 500; line-height: 1.28;
}
.gs .gs-tree__r:hover { background: var(--gs-surface); }
.gs-tree__b.is-on > .gs-tree__r { background: var(--gs-blue-soft); color: var(--gs-blue); font-weight: 600; }
.gs-tree__b.is-on > .gs-tree__r .gs-tree__c { color: var(--gs-blue); }
.gs-tree__c {
  font-size: 13px; font-weight: 500; color: var(--gs-faint);
  font-variant-numeric: tabular-nums; flex: 0 0 auto;
}
.gs-tree__l { margin: 0 0 6px; padding-left: 14px; border-left: 1.5px solid var(--gs-line); }
.gs .gs-tree__i {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 34px; padding: 6px 11px; border-radius: var(--gs-r-sm);
  text-decoration: none; font-size: 13px; color: var(--gs-muted); line-height: 1.32;
}
.gs .gs-tree__i:hover { background: var(--gs-surface); color: var(--gs-ink); }
.gs .gs-tree__i.is-on { background: var(--gs-blue-soft); color: var(--gs-blue); font-weight: 600; }
.gs .gs-tree__r:focus-visible, .gs .gs-tree__i:focus-visible { outline: 3px solid var(--gs-blue); outline-offset: -2px; }
@media (min-width: 1001px) {
  /* Дерево не їде вгору разом зі сторінкою: 109 альбомів гортаються довго,
     і без цього довелось би вертатись до початку по кожен перехід. */
  .gs-rail { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.gs-rail__s { display: none; }
}
/* Дерево вище за екран, тож смуга прокрутки в ньому буде завжди. Тема
   малює її фірмовим синім на всю висоту — поруч із тихим деревом це
   читається як другий стовпчик змісту, тому перебиваємо на нейтральну. */
.gs-rail { scrollbar-width: thin; scrollbar-color: #d6dae2 transparent; }
.gs-rail::-webkit-scrollbar { width: 8px; height: 8px; }
.gs-rail::-webkit-scrollbar-track { background: transparent; }
.gs-rail::-webkit-scrollbar-thumb { background: #d6dae2; border-radius: 99px; border: 0; }
.gs-rail::-webkit-scrollbar-thumb:hover { background: #c3c9d4; }
@media (max-width: 1000px) {
  .gs-cat { grid-template-columns: 1fr; gap: 18px; }
.gs-rail__in { border-top: 1px solid var(--gs-line); }
}
/* ---- завантаження + плівка кадрів --------------------------------------- */

/* кнопка «завантажити всі фото» в шапці альбому */
.gs .gs-dl {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 14px 0 0; padding: 11px 18px; min-height: 44px;
  font-size: 14px; font-weight: 600; line-height: 1;
  color: var(--gs-blue); background: var(--gs-blue-soft);
  border: 1px solid #d6e2f5; border-radius: var(--gs-r-sm); text-decoration: none;
}
.gs .gs-dl:hover { background: #e2ebf9; }
.gs .gs-dl:focus-visible { outline: 3px solid var(--gs-blue); outline-offset: 2px; }
.gs-dl svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* кнопка завантаження кадру у вікні перегляду */
.gs-view__dl {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.16); border-radius: 4px;
  color: #fff; text-decoration: none;
}
.gs-view__dl[hidden] { display: none; }
.gs-view__dl svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gs-view__dl:hover { background: rgba(255,255,255,.1); }
.gs-view__dl:focus-visible { outline: 3px solid #9cc0ff; outline-offset: 2px; }
/* Без міток панель не потрібна, і доріжку під неї теж треба прибрати:
   [hidden] ховає елемент, але колонка 340px у гріді лишається — кадр
   виявляється зсунутим ліворуч замість центру. */
.gs-view.is-solo { grid-template-columns: 1fr; }
/* плівка наступних кадрів */
.gs-film {
  grid-column: 1 / -1; display: flex; gap: 6px; padding: 10px 14px;
  overflow-x: auto; border-top: 1px solid rgba(255,255,255,.09);
  scrollbar-width: thin;
}
.gs-film__i {
  flex: 0 0 auto; width: 92px; height: 56px; padding: 0; border: 0;
  border-radius: 3px; overflow: hidden; cursor: pointer; background: #1a1f27;
  opacity: .45; outline: 2px solid transparent;
  transition: opacity .18s ease, outline-color .18s ease;
}
.gs-film__i img { width: 100%; height: 100%; object-fit: cover; }
.gs-film__i:hover { opacity: .85; }
.gs-film__i[aria-selected="true"] { opacity: 1; outline-color: #fff; }
.gs-film__i:focus-visible { outline: 3px solid #9cc0ff; opacity: 1; }
@media (max-width: 1000px) {
  .gs-view { grid-template-rows: auto minmax(0, 1fr) auto auto; }
.gs-film__i { width: 76px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .gs-film__i { transition: none; }
}
/* ---- відео у стрічці кадрів --------------------------------------------- */
.gs-shot__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; background: rgba(22,24,29,.55);
  display: grid; place-items: center; transition: background .2s ease;
}
.gs-shot__play svg { width: 18px; height: 18px; fill: #fff; margin-left: 3px; }
.gs .gs-shot:hover .gs-shot__play { background: #ff0033; }
.gs-shot__dur {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  padding: 2px 6px; border-radius: 3px; background: rgba(0,0,0,.78);
  color: #fff; font-size: 11.5px; font-variant-numeric: tabular-nums;
}
/* Плеєр вантажиться лише після кліку: до того — звичайна обкладинка.
   Так скрипти YouTube не тягнуться на кожен показ і не ставлять куки
   до згоди відвідувача. */
/* Ролик займає всю сцену, а не власний розмір файла. Обкладинки з YouTube
   бувають і 480px завширшки — за природним розміром вони губились посеред
   чорного поля на широкому екрані.

   Формула — це вписування прямокутника 16:9 у доступні W x H: беремо меншу
   з двох меж, і коробка не може вилізти ні за ширину, ні за висоту сцени.
   Відсотки тут не працюють: коробка кадру навмисно стискається під саме
   фото (на ній тримаються мітки товарів), тож `100%` посилається сама на
   себе. Розміри сцени в пікселях кладе скрипт; запасні значення потрібні
   на випадок, коли він ще не відпрацював. */
.gs-view__in { --stage-w: 88vw; --stage-h: 66vh; }
.gs-play {
  position: relative; display: block; line-height: 0;
  width: min(var(--stage-w), calc(var(--stage-h) * 16 / 9));
  aspect-ratio: 16 / 9;
}
/* cover, а не contain: у частини роликів обкладинка 4:3 з чорними полями
   згори й знизу — заповнення їх зрізає, і кадр не «плаває» в рамці. */
.gs-play img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.gs-play__b {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 74px; height: 74px; border-radius: 50%; background: rgba(22,24,29,.62);
  display: grid; place-items: center; cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.gs-play__b svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.gs-play__b:hover { background: #ff0033; transform: translate(-50%,-50%) scale(1.06); }
.gs-play__b:focus-visible { outline: 3px solid #9cc0ff; outline-offset: 3px; }
/* Розмір коробки вже заданий вище — плеєру лишається її заповнити. Без
   цього iframe брав власний розмір за замовчуванням, 300x150. */
.gs-play.is-playing iframe { width: 100%; height: 100%; border: 0; border-radius: 4px; display: block; }
@media (prefers-reduced-motion: reduce) { .gs-play__b, .gs-shot__play { transition: none; }
.gs-play__b:hover { transform: translate(-50%,-50%); }
}
/* Невидиме поле навколо мітки й кнопки закриття: зона натискання 44px
   без зміни вигляду. ::before, бо ::after у мітки вже зайнятий. */
.gs-mk::before, .gs-view__x::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 44px; height: 44px; transform: translate(-50%, -50%);
}
.gs-view__x { position: relative; }
/* ══ Блок на картці товару: «рідна стрічка» ══════════════════════════
   Дві розкладки — ряд карток і горизонтальний запис при одному матеріалі.
   Усі коробки на <span> (лежать усередині <a>, куди не можна <div>), тож
   display:block обов'язковий — інлайновий span ігнорує width/height. */
.gs-pg{
  --pg-line:#dfe4ea; --pg-ink:#131a24; --pg-muted:#67717f; --pg-panel:#fff;
  --pg-brand:#2457ab;
  /* Три набори розмірів замість набору повзунків: комбінацій, які виглядають
     погано, тут просто не існує. Керує один ключ налаштувань. */
  --pg-im:112px; --pg-w:150px; --pg-one-im:135px; --pg-one-h:90px;
  background:var(--pg-panel); border:1px solid var(--pg-line); border-radius:3px;
  color:var(--pg-ink); margin:18px 0;
}
.gs-pg a{text-decoration:none;color:inherit}
.gs-pg img{display:block;width:100%;height:100%;object-fit:cover}
/* Шапка строго в один рядок: колонка товару вужча за макет, і український
   заголовок переносився, додаючи 22px висоти кожній картці. */
.gs-pg__h{display:flex;align-items:baseline;gap:9px;padding:10px 14px 8px}
.gs-pg__t{
  margin:0;font-size:14.5px;font-weight:700;text-transform:uppercase;letter-spacing:.02em;
  flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.gs-pg__n{font-size:11.5px;color:var(--pg-muted);flex:0 0 auto;white-space:nowrap;
          font-variant-numeric:tabular-nums}
.gs-pg__all{margin-left:auto;flex:0 0 auto;white-space:nowrap;
            font-size:12.5px;font-weight:650;color:var(--pg-brand)}
.gs-pg__all:hover{text-decoration:underline}
/* Перемикач Усі / Фото / Відео */
.gs-pg__f{display:flex;gap:6px;padding:0 14px 9px;flex-wrap:wrap}
.gs-pg__fb{
  appearance:none;border:1px solid var(--pg-line);background:transparent;color:var(--pg-muted);
  font:inherit;font-size:12px;line-height:1;padding:9px 13px;min-height:36px;border-radius:99px;
  cursor:pointer;display:inline-flex;align-items:center;gap:5px;
}
.gs-pg__fb i{font-style:normal;font-size:11px;opacity:.75;font-variant-numeric:tabular-nums}
.gs-pg__fb:hover{border-color:var(--pg-brand);color:var(--pg-brand)}
.gs-pg__fb.is-on{background:var(--pg-brand);border-color:var(--pg-brand);color:#fff}
.gs-pg__fb.is-on i{opacity:.85}
.gs-pg__fb:focus-visible{outline:2px solid var(--pg-brand);outline-offset:2px}
.gs-pg__b{padding:0 12px 12px}
.gs-pg__play{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:34px;height:34px;border-radius:50%;background:rgba(16,22,32,.6);
  border:1px solid rgba(255,255,255,.4);display:grid;place-items:center;
}
.gs-pg__play::after{content:"";width:0;height:0;border-left:10px solid #fff;
  border-top:6px solid transparent;border-bottom:6px solid transparent;margin-left:3px}
/* На тачі ціль натискання не менша за 44px — на 36px палець промахується
   повз сусідню кнопку фільтра, вони стоять поруч. На миші 36px достатньо. */
@media (pointer:coarse){
  .gs-pg__fb{min-height:44px;padding:12px 15px}
.gs-pg__f{gap:8px}
}
/* ── Смуга кадрів ────────────────────────────────────────────────────
   Ряд заповнюється ПО ПОБУДОВІ: auto-fill з мінімумом 148px розкладає
   комірки на всю ширину, скільки б її не було. Провідний кадр займає
   3 колонки і 2 рядки. Порожнечі праворуч не лишається навіть тоді,
   коли матеріал один — кадрів у ньому вистачає. */
.gs-pg__b{position:relative}
.gs-pg__strip{
  display:grid; gap:4px;
  grid-template-columns:repeat(auto-fill, minmax(148px, 1fr));
  /* РІВНО два ряди. Кількість колонок залежить від ширини, тож кадрів
     віддаємо із запасом і зайве обрізаємо — інакше останній ряд виходить
     рваним: плитки закінчуються раніше, ніж ширина. */
  grid-template-rows:repeat(2, 128px); grid-auto-rows:0;
  overflow:hidden; grid-auto-flow:dense;
}
.gs-pg .gs-pg__c{
  display:block; position:relative; overflow:hidden;
  background:#e9ecf1; border-radius:2px; min-width:0;
}
.gs-pg .gs-pg__c img{display:block; width:100%; height:100%; object-fit:cover; max-width:none}
.gs-pg .gs-pg__c--lead{grid-column:span 3; grid-row:span 2}
.gs-pg .gs-pg__c--lead img{object-position:center 45%}
.gs-pg .gs-pg__c:focus-visible{outline:2px solid var(--pg-brand); outline-offset:2px; z-index:2}

/* Підпис обʼєкта — на кадрі, градієнтом, а не рядком у порожнечі */
.gs-pg__scrim{
  position:absolute; left:0; right:0; bottom:0; padding:26px 14px 12px;
  background:linear-gradient(to top, rgba(10,16,26,.86), rgba(10,16,26,0));
  color:#fff; font-size:14.5px; font-weight:600; line-height:1.3;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
/* Залишок: число, а не другий заклик */
/* Залишок — значок у куті смуги, а не окрема комірка сітки: коміркою він
   міг стати в будь-якому місці ряду й лишити діру поруч. */
.gs-pg .gs-pg__more{
  position:absolute; right:10px; bottom:10px; z-index:2;
  display:grid; place-items:center; min-width:56px; height:34px; padding:0 12px;
  background:rgba(10,16,26,.82); border-radius:99px;
  color:#fff; font-size:14px; font-weight:700; font-variant-numeric:tabular-nums;
}
.gs-pg .gs-pg__more:hover{background:var(--pg-brand)}
.gs-pg .gs-pg__more:focus-visible{outline:2px solid var(--pg-brand); outline-offset:2px}

@media (hover:hover) and (pointer:fine){
  .gs-pg .gs-pg__c img{transition:transform .22s ease-out}
  .gs-pg .gs-pg__c:hover img{transform:scale(1.05)}
  .gs-pg .gs-pg__c::after{
    content:""; position:absolute; inset:0; box-shadow:inset 0 0 0 0 rgba(36,87,171,0);
    transition:box-shadow .18s ease-out; pointer-events:none;
  }
  .gs-pg .gs-pg__c:hover::after{box-shadow:inset 0 0 0 2px var(--pg-brand)}
}
@media (prefers-reduced-motion:reduce){
  .gs-pg .gs-pg__c img{transition:none}
  .gs-pg .gs-pg__c:hover img{transform:none}
}

/* Набори розмірів керують висотою ряду і мінімумом колонки */
.gs-pg--s .gs-pg__strip{grid-template-rows:repeat(2,104px); grid-template-columns:repeat(auto-fill, minmax(124px,1fr))}
.gs-pg--l .gs-pg__strip{grid-template-rows:repeat(2,152px); grid-template-columns:repeat(auto-fill, minmax(176px,1fr))}

/* Телефон: сітка на 360px виродилась би в дві колонки по 148px, тож
   переходимо в рейку з прокруткою — там кадр лишається читабельним. */
@media (max-width:639px){
  .gs-pg__strip{
    display:flex; overflow-x:auto; overflow-y:visible; gap:4px; scroll-snap-type:x proximity;
    grid-template-rows:none;
    overscroll-behavior-x:contain; scrollbar-width:thin;
  }
  .gs-pg .gs-pg__c{flex:0 0 132px; height:132px; scroll-snap-align:start}
  .gs-pg .gs-pg__c--lead{flex-basis:236px; height:132px}
  .gs-pg .gs-pg__more{position:static; flex:0 0 92px; height:132px; border-radius:2px}
  .gs-pg__scrim{font-size:13px; padding:20px 10px 9px}
}

/* Набори розмірів */
.gs-pg--s{--pg-im:96px;  --pg-w:128px; --pg-one-im:116px; --pg-one-h:78px}
.gs-pg--m{--pg-im:112px; --pg-w:150px; --pg-one-im:135px; --pg-one-h:90px}
.gs-pg--l{--pg-im:140px; --pg-w:186px; --pg-one-im:168px; --pg-one-h:112px}
/* Наведення: тільки transform і box-shadow, обидва дешеві для відмальовки.
   Під тач ховера не буває — там ефект лише заважав би, тож вимикаємо. */
@media (hover:hover) and (pointer:fine){
  .gs-pg .gs-pg__c{transition:transform .18s ease-out, box-shadow .18s ease-out, border-color .18s ease-out}
}
@media (prefers-reduced-motion:reduce){
  .gs-pg .gs-pg__c,.gs-pg .gs-pg__ph{transition:none}
}
/* Пункт «Галерея» в панелі вкладок — вигляд успадковує від теми */
.prod_links__item.gs-nav-link{cursor:pointer}
@media (max-width:480px){
  .gs-pg{--pg-im:100px; --pg-w:138px; --pg-one-im:118px}
}
@media (prefers-reduced-motion:reduce){.gs-pg *{transition:none!important}
}
/* ---- ще зйомки цього розділу -------------------------------------------- */
/* Стрічка, а не сітка: блок стоїть під альбомом і не має конкурувати
   з самою зйомкою за увагу. */
.gs-more { margin-top: 34px; }
.gs-more__row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 232px; gap: 14px;
  overflow-x: auto; padding: 4px 0 10px; scroll-snap-type: x proximity;
}
.gs-more__row::-webkit-scrollbar { height: 8px; }
.gs-more__row::-webkit-scrollbar-thumb { background: #d6dae2; border-radius: 99px; }
.gs .gs-more__i { display: block; text-decoration: none; color: inherit; scroll-snap-align: start; }
.gs-more__ph {
  position: relative; display: block; aspect-ratio: 4/3; overflow: hidden;
  border-radius: var(--gs-r-sm); background: #eef0f4;
}
.gs-more__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.22,.61,.36,1); }
.gs .gs-more__i:hover .gs-more__ph img { transform: scale(1.05); }
.gs .gs-more__i:focus-visible .gs-more__ph { outline: 3px solid var(--gs-blue); outline-offset: 3px; }
.gs-more__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 40px; height: 40px; border-radius: 50%; background: rgba(22,24,29,.55);
  border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center;
}
.gs-more__play svg { width: 15px; height: 15px; fill: #fff; margin-left: 3px; }
.gs-more__t { display: block; margin-top: 9px; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--gs-ink); }
.gs .gs-more__i:hover .gs-more__t { color: var(--gs-blue); }
.gs-more__m { display: block; margin-top: 3px; font-size: 12.5px; color: var(--gs-faint); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .gs-more__ph img { transition: none; }
}

/* Обгортка блока до перенесення скриптом. Якщо орієнтира в темі не
   знайшлося (або скрипт не відпрацював) — блок лишається тут, унизу
   сторінки, і це нормальний робочий стан, а не поломка. */
.uhl-gal-block{display:block}
.uhl-gal-block.is-inplace{max-width:1280px;margin:24px auto;padding:0 15px}
