/* ===== Цвета и шрифты — меняйте здесь ===== */
:root {
  --sec-pad: 100px;          /* отступ сверху/снизу у секций */
  --title-gap: 64px;         /* отступ под заголовком секции */
  --accent: #f2433a;        /* красные кнопки */
  --dark: #111111;          /* тёмные секции */
  --gray: #f4f4f4;
  --text: #1a1a1a;
  --muted: #777;
  --font: 'Roboto', Arial, sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;
  --container: 1160px;
  --radius: 16px;           /* скругление углов у фото */

  /* Шум (зерно) поверх градиентов.
     Сила зерна — opacity='0.8' внутри, размер зерна — --noise-size (больше = крупнее) */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
  --noise-size: 280px;

  /* Градиент шапки: мягкий и приглушённый, как на Тильде.
     Основа — плавный переход сверху вниз, поверх — большие размытые пятна */
  --grad-hero:
    radial-gradient(130% 70% at 0% 0%, rgba(78, 22, 50, .95) 0%, rgba(78, 22, 50, 0) 60%),
    radial-gradient(110% 60% at 100% 0%, rgba(70, 28, 64, .7) 0%, rgba(70, 28, 64, 0) 55%),
    radial-gradient(90% 55% at 25% 45%, rgba(104, 88, 168, .55) 0%, rgba(104, 88, 168, 0) 70%),
    radial-gradient(150% 70% at 50% 110%, rgba(214, 152, 132, .95) 0%, rgba(214, 152, 132, 0) 65%),
    linear-gradient(180deg, #4b2a6a 0%, #55438f 38%, #7d6198 62%, #c08a83 85%, #cf9784 100%);

  /* Продолжение градиента для тёмных блоков: те же оттенки, но глубже и тише */
  --grad-dark:
    radial-gradient(120% 60% at 0% 0%, rgba(78, 22, 50, .7) 0%, rgba(78, 22, 50, 0) 65%),
    radial-gradient(110% 70% at 100% 50%, rgba(85, 67, 143, .35) 0%, rgba(85, 67, 143, 0) 70%),
    radial-gradient(130% 60% at 30% 110%, rgba(192, 138, 131, .16) 0%, rgba(192, 138, 131, 0) 70%),
    linear-gradient(180deg, #1d1028 0%, #181022 50%, #1c1020 100%);
}

/* Применение градиента с зерном: добавьте класс grad-hero или grad-dark к блоку */
.grad-hero { background: var(--grad-hero); }
.grad-dark { background: var(--grad-dark); color: #fff; }
.grad-hero, .grad-dark { position: relative; isolation: isolate; }
.grad-hero::before, .grad-dark::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--noise) 0 0 / var(--noise-size); mix-blend-mode: overlay; pointer-events: none; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: #fff; line-height: 1.6; font-weight: 300; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }
.section { padding: var(--sec-pad) 0; }
/* Заголовок как разделитель: между двумя белыми секциями он стоит посередине пустого места (чуть выше центра) */
/* Фон теперь общий на всю страницу, поэтому правило работает для всех соседних секций */
.section + .section { padding-top: 0; margin-top: calc(var(--title-gap) * .8 - var(--sec-pad)); }
/* Карточки направлений идут сразу после Introduction без заголовка — обычный отступ */
.section + #works { margin-top: 0; }
/* Тёмные и серые секции прозрачные — сквозь них идёт общий фон страницы */
.section--dark { color: #fff; }
.section--gray { background: none; }

.title { font-family: var(--font-head); font-weight: 500; font-size: clamp(32px, 5vw, 52px); text-align: center; line-height: 1.15; margin-bottom: var(--title-gap); }
.title:has(+ .subtitle) { margin-bottom: 12px; }
.title--left { text-align: left; }
.subtitle { text-align: center; color: var(--muted); font-size: 18px; margin-bottom: var(--title-gap); }
.subtitle--left { text-align: left; margin-bottom: 30px; }
.section--dark .subtitle { color: #aaa; }

.btn { display: inline-block; background: var(--accent); color: #fff; padding: 12px 28px; border-radius: 30px; font-weight: 500; font-size: 14px; border: 0; cursor: pointer; transition: opacity .2s; white-space: nowrap; }
.btn:hover { opacity: .85; }
.btn--big { padding: 16px 40px; font-size: 16px; }

/* ===== Заглушка для фото: серый блок с именем файла, пока фото не загружено ===== */
.ph { position: relative; display: block; overflow: hidden; background: #d9d9d9; aspect-ratio: 4 / 3; border-radius: var(--radius); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ph.is-empty img { display: none; }
.ph.is-empty::after { content: attr(data-file); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 10px; text-align: center; font-size: 13px; color: #666; font-family: monospace; word-break: break-all; }
.section--dark .ph { background: rgba(255,255,255,.08); }
.section--dark .ph.is-empty::after { color: #888; }
.ph--portrait { aspect-ratio: 3 / 4; }
.ph--tall { aspect-ratio: 2 / 3; }     /* фото у текста, как на Тильде 560×840 */
.ph--square { aspect-ratio: 1; }
.ph--wide { aspect-ratio: 16 / 10; }
.ph--card { aspect-ratio: 10 / 7; }    /* карточки Book now, как на Тильде 360×252 */
a.ph:hover img { transform: scale(1.04); }

/* ===== Шапка ===== */
/* Шапка. На первом экране меню скрыто (там большой логотип и свой телефон);
   когда первый экран прокручен, по центру «раскрывается» стеклянная плашка меню, следом выезжает логотип */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 30px; padding: 18px clamp(16px, 3vw, 40px); color: #fff; transition: padding .3s; }
.header::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; background: rgba(28, 14, 38, .5);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: inset 0 -1px 0 rgba(255,255,255,.12), 0 10px 30px rgba(0,0,0,.15); }
.header.is-scrolled { padding-top: 10px; padding-bottom: 10px; }
/* Стекло шапки чуть темнее, чтобы белый текст читался и над белыми разделами */
.header.is-scrolled .glass::before { background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04)), rgba(30,16,42,.42); }
.header:not(.is-scrolled) .nav a, .header:not(.is-scrolled) .header__phone { text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.header__logo { opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .35s, transform .35s; }
.header.is-scrolled .header__logo { opacity: 1; transform: none; pointer-events: auto; }
.header__logo { padding: 6px 22px; border-radius: 999px; }
.header__logo img { height: 38px; width: auto; display: block; transform: translateY(10%); }
.header__logo .logo-text { font-family: var(--font-head); font-style: italic; font-size: 24px; }
.header__bar { display: flex; align-items: center; gap: 24px; padding: 12px 28px; margin-left: auto; border-radius: 999px; }
/* Логотип | пункты меню | телефон — разделены тонкими линиями */
.header__bar > .nav, .header__bar > .header__phone { border-left: 1px solid rgba(255,255,255,.24); padding-left: 24px; }
.nav { display: flex; gap: 26px; font-size: 15px; font-weight: 400; }
.nav a { transition: color .2s; }
.nav a:hover { color: #ffd3c4; }
.nav__phone, .nav__logo { display: none; }
/* На компьютере меню лежит внутри стеклянной плашки — своё стекло ему не нужно */
.nav.glass::before, .nav.glass::after { display: none; }
.header__phone { font-weight: 500; }
/* Выпадающее меню Works — категории галереи. Стекло как у плашки; положение под пунктом Works задаёт js/main.js.
   Появление — только через transform (без opacity: она выключает стекло) */
.header .works-menu { position: absolute; top: 0;   /* .header — чтобы перебить .glass { position: relative } */
   left: 0; display: flex; flex-direction: column; padding: .5em .4em; border-radius: 1.4em;
  pointer-events: auto; transform-origin: 50% 0; transform: translateY(-8px) scale(.94); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.works-menu[hidden] { display: none; }
.works-menu.is-open { transform: none; }
.works-menu a { padding: .45em 1.1em; border-radius: 999px; white-space: nowrap; transition: background .2s, color .2s; }
.works-menu a:hover, .works-menu a:focus-visible { background: rgba(255,255,255,.12); color: #ffd3c4; outline: none; }
.nav__works[aria-expanded="true"] { color: #ffd3c4; }
/* Начало категории в галерее (если открыть ссылку #cat-... напрямую); из меню отступ считает js/main.js */
.grid [id^="cat-"] { scroll-margin-top: 80px; }
/* Логотип внутри плашки меню: выезжает слева после прокрутки, ведёт наверх */
.header__home { display: block; flex-shrink: 0; pointer-events: none; }
.header.is-scrolled .header__home { pointer-events: auto; }
/* Буквы логотипа нарисованы выше середины картинки — сдвигаем вниз, на уровень пунктов меню */
.header__home img { height: 40px; width: auto; max-width: none; margin: -8px 0; transform: translateY(13%); }
.header__home .logo-text { font-family: var(--font-head); font-style: italic; font-size: 20px; white-space: nowrap; }
/* Одинаково на компьютере и телефоне (на телефоне плашка меньше, см. «Планшет и телефон») */
@media all {
  .header__logo { display: none; }
  /* Меню по центру; скрыто на первом экране и раскрывается из середины после него */
  /* Раскрывается только слой стекла (::before/::after), а не сама плашка: opacity или clip-path
     на плашке выключили бы размытие фона в Chrome */
  .header__bar { margin: 0 auto; pointer-events: none; }
  /* Раскрытие в один шаг: стекло растягивается из центра, логотип, пункты и телефон проявляются вместе.
     Скрытие — наоборот: сначала гаснет содержимое, потом стекло сжимается к центру */
  .header__bar.glass::before, .header__bar.glass::after { left: 50%; right: 50%; opacity: 0;
    transition: left .5s cubic-bezier(.8, 0, .8, .2) .2s, right .5s cubic-bezier(.8, 0, .8, .2) .2s, opacity .25s .45s; }
  .header__bar > * { opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s; }
  .header.is-scrolled .header__bar { pointer-events: auto; }
  .header.is-scrolled .header__bar::before, .header.is-scrolled .header__bar::after { left: 0; right: 0; opacity: 1; transition-delay: 0s; }
  .header.is-scrolled .header__bar > * { opacity: 1; transform: none; transition: opacity .35s .3s, transform .35s .3s; }
}

/* ===== Стекло =====
   ::before — само стекло (размытие + преломление, которое добавляет js/main.js в Chrome/Edge/Android),
   ::after — неподвижный блик слева сверху (не двигать за курсором — владелец просил) */
/* Важно: без isolation и mix-blend-mode — иначе Chrome изолирует слой и стеклу нечего размывать */
.glass { position: relative; }
.glass::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transition: opacity .35s;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04)), rgba(30, 16, 42, .22);
  -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: var(--lg-filter, blur(14px) saturate(170%));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 1px rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.16), 0 10px 30px rgba(0,0,0,.18); }
.glass::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; transition: opacity .35s;
  background: radial-gradient(180px circle at var(--mx, 25%) var(--my, 0%), rgba(255,255,255,.22), rgba(255,255,255,0) 70%); }

.burger { display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: none; cursor: pointer; margin-left: auto; z-index: 2; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: #fff; transition: .3s; }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 23px; } .burger span:nth-child(3) { top: 29px; }
.burger.is-open span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* ===== Главный экран ===== */
.hero { min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
/* Фото справа (как на Тильде). Убрать фото — удалите блок hero__photo в index.html */
/* Фото — скруглённая карточка с отступом, вокруг продолжается градиент первого экрана */
/* Ширина фото — половина экрана, но не шире вертикального кадра (0.6 от высоты), чтобы на широких
   мониторах фото не обрезалось снизу. Освободившееся место достаётся тексту слева */
.hero { --hero-gap: clamp(14px, 1.8vw, 32px); --hero-photo-w: min(50% - var(--hero-gap), (100vh - 2 * var(--hero-gap)) * .6); }
.hero__photo { position: absolute; top: var(--hero-gap); right: var(--hero-gap); bottom: var(--hero-gap); width: var(--hero-photo-w); aspect-ratio: auto; background: transparent; z-index: 0; border-radius: var(--radius); }
.hero__photo img { object-position: center top; }
.hero__photo.is-empty { border-left: 1px dashed rgba(255,255,255,.3); }
.hero__photo.is-empty::after { color: rgba(255,255,255,.6); }
/* Левая половина: колонка по центру — логотип, заголовок с текстом, контакты.
   Блоки собраны в одну группу по центру экрана с одинаковыми промежутками */
.hero__content { position: relative; z-index: 2; width: calc(100% - var(--hero-photo-w) - var(--hero-gap)); min-height: 100vh; margin: 0; container-type: inline-size;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(26px, 5.5vh, 96px); text-align: center;
  padding: clamp(32px, 7vh, 96px) clamp(20px, 3vw, 56px); }
/* Размеры зависят и от ширины половины экрана (cqi), и от высоты (vh) — на низких экранах всё помещается */
.hero__logo { width: min(92cqi, max(560px, 26vw), 62vh); height: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.22)); }
.hero__text { max-width: min(100%, 95vh); }   /* на широких экранах заголовок остаётся в две строки */
.hero__title { font-family: var(--font-head); font-weight: 500; font-size: clamp(28px, min(11.6cqi, 8.5vh), max(100px, 4.6vw)); line-height: 1.05; text-transform: uppercase; margin-bottom: clamp(16px, 3vh, 28px); overflow-wrap: break-word; }
.hero__title, .hero__lead > span { text-wrap: balance; }
.hero__lead > span { display: block; }   /* каждая фраза с новой строки, строки выравниваются по длине */
.intro__text p { text-wrap: pretty; }
/* Категории и галерея Reportage — ближе друг к другу */
#works { padding-bottom: 44px; }
.intro__step + .intro__step { margin-top: 16px; }
.hero__lead { font-size: clamp(15px, min(4.9cqi, 2.9vh), max(28px, 1.25vw)); line-height: 1.55; margin: 0 auto; }
.hero__contacts { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero__phone { font-size: clamp(19px, min(5.6cqi, 3.4vh), max(32px, 1.3vw)); font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.5); }

/* ===== Карточки в 3 колонки ===== */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cat { position: relative; display: block; }
.swipe-hint { display: none; }
.cat__title { z-index: 2; }

/* ===== Вступление: белый текст на затемнённом фото ===== */
.intro { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius); color: #fff; background: #1c1020; }
.intro__bg { position: absolute; top: 0; right: 0; bottom: 0; width: 70%; height: 100%; object-fit: cover; object-position: 50% 8%; z-index: -2; }
.intro::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, #1c1020 0%, #1c1020 30%, rgba(28,16,32,.72) 52%, rgba(28,16,32,.15) 100%); }
.intro__text { max-width: 640px; padding: clamp(40px, 6vw, 76px); }
.intro__text p { margin-bottom: 16px; font-size: 17px; }
.intro__text p:last-child { margin-bottom: 0; }
.intro__text strong { font-weight: 500; color: #ffd3c4; }

.cat__title { position: absolute; left: 0; right: 0; bottom: 24px; text-align: center; color: #fff; font-family: var(--font-head); font-size: 30px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.cat:hover img { transform: scale(1.04); }
.card h3 { font-family: var(--font-head); font-weight: 500; font-size: 26px; margin: 20px 0 6px; }
.card p { color: var(--muted); }
.card--dark p { color: #ccc; margin-top: 18px; }

/* ===== Текст + фото ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.split--center { align-items: center; }
.split__text p { margin-bottom: 16px; font-size: 17px; }
.split__text strong { font-weight: 500; }
.split__img { position: sticky; top: 100px; }
/* Надпись поверх фото (Introduction): белые буквы на мягком затемнении снизу, плавно проявляется */
.ph__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 120px 20px clamp(28px, 4vw, 48px); text-align: center; color: #fff;
  font-family: var(--font-head); font-weight: 500; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.1;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.45)); text-shadow: 0 2px 16px rgba(0,0,0,.35); pointer-events: none; }
.ph.is-empty .ph__label { background: none; color: #555; text-shadow: none; }

/* ===== Галереи ===== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
/* Галереи: фото целиком, без обрезки, «кирпичной» раскладкой, вплотную друг к другу и от края до края экрана.
   Колонки: телефон — 2, планшет — 3, компьютер — 4, большие мониторы (4K) — 5–6 */
.grid { display: block; columns: clamp(240px, 21vw, 560px); column-gap: 0; }
.grid > * { break-inside: avoid; margin: 0; }
.grid .ph { aspect-ratio: auto; border-radius: 0; }
.grid .ph img { height: auto; }
/* Пустые места под ещё не загруженные фото в стене не показываем — появятся, как только файл окажется в папке */
.grid .ph.is-empty { display: none; }
/* Раскладка скриптом: ряды на всю ширину, между фото — тонкие разделители (--wall-gap) */
.grid { --wall-gap: 4px; column-gap: var(--wall-gap); }
.grid.is-justified { display: flex; flex-wrap: wrap; gap: var(--wall-gap); columns: auto; }
/* На широком экране стена уже экрана (ширину задаёт js/main.js) и стоит по центру */
.grid[data-gallery] { margin-inline: auto; }
.grid.is-justified > .ph { flex: 0 0 auto; }
.grid.is-justified .ph img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .grid { --wall-gap: 3px; } .header__phone { display: none; } }
#reportage .container, #private .container, #backstage .container { max-width: none; padding: 0; }
/* Галерея идёт вплотную к первому экрану */
#reportage { padding: 0; }
#reportage + .section { padding-top: var(--sec-pad); margin-top: 0; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mosaic .ph { aspect-ratio: 3 / 2; }
.mosaic__wide { grid-column: 1 / -1; aspect-ratio: 3 / 2 !important; }
.title a:hover { color: var(--accent); }

/* ===== Цитата ===== */
.quote { text-align: center; max-width: 820px; }
.quote__mark { font-family: var(--font-head); color: var(--accent); font-size: 80px; line-height: 1; margin-top: 20px; }
.quote__text { font-size: clamp(18px, 2.4vw, 24px); }
/* Текст бывшего вступления — под цитатой, по левому краю, чтобы длинные абзацы легко читались */
.quote__more { max-width: 680px; margin: clamp(36px, 5vw, 56px) auto 0; text-align: left; }
.quote__more p { font-size: 17px; margin-bottom: 16px; text-wrap: pretty; }
.quote__more p:last-child { margin-bottom: 0; }
.quote__more strong { font-weight: 500; color: #ffd3c4; }

/* ===== Цены ===== */
.table-wrap { overflow-x: auto; }
.price { width: 100%; border-collapse: collapse; min-width: 640px; }
.price th, .price td { text-align: left; padding: 22px 16px; border-bottom: 1px solid rgba(255,255,255,.15); vertical-align: middle; }
.price th { font-weight: 500; color: #aaa; font-size: 14px; }
.price td:nth-child(2) { max-width: 440px; color: #ccc; }
.price td:nth-child(3) { font-weight: 500; white-space: nowrap; }

/* ===== Полоса фото ===== */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; }

/* ===== Карта ===== */
.map { aspect-ratio: 4 / 3; background: #ddd; border-radius: var(--radius); overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ===== Форма ===== */
.form { display: grid; gap: 14px; }
.form input, .form textarea { width: 100%; font: inherit; padding: 14px 18px; border: 1px solid #ccc; border-radius: 8px; background: #fff; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { justify-self: center; margin-top: 10px; }
.form .hp { display: none; }
.form__status { text-align: center; min-height: 1.6em; }

/* ===== Подвал ===== */
.footer { text-align: center; padding: 80px 20px 40px; }
.footer__label { font-weight: 500; margin-bottom: 30px; }
.footer__big { display: block; font-size: clamp(22px, 3vw, 32px); font-weight: 400; line-height: 1.3; }
.socials { display: flex; justify-content: center; gap: 12px; margin: 30px 0; }
/* Иконки соцсетей */
.socials a { width: 42px; height: 42px; display: block; transition: opacity .2s, transform .2s; }
.socials img { width: 100%; height: 100%; filter: invert(1); } /* белые иконки становятся чёрными для светлого подвала */
.socials a:hover { opacity: .7; transform: translateY(-2px); }
.hero__socials { display: flex; justify-content: center; gap: 12px; }
.hero__socials a { width: clamp(30px, min(9cqi, 5.5vh), 52px); height: clamp(30px, min(9cqi, 5.5vh), 52px); opacity: .9; transition: opacity .2s, transform .2s; }
.hero__socials a:hover { opacity: 1; transform: translateY(-2px); }
.hero__socials img { width: 100%; height: 100%; }
.footer__copy { color: var(--muted); font-size: 13px; }

/* ===== Просмотр фото (lightbox) ===== */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; touch-action: none; overscroll-behavior: contain; }
.lightbox.is-open { display: flex; }
.lightbox__bg { position: absolute; inset: 0; background: rgba(24, 14, 32, .95); opacity: 0; transition: opacity .45s ease; }
.lightbox.is-visible .lightbox__bg { opacity: 1; }
.lightbox__frame { position: absolute; left: 50%; top: 50%; translate: -50% -50%; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
/* Размер фото задаёт js/main.js: длинная сторона — по краю экрана */
.lightbox__frame img { display: block; max-width: none; transform-origin: 50% 50%; cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
/* Фото увеличено: выходит за рамку, двигается мышью/пальцем */
.lightbox__frame.is-zoomed { overflow: visible; border-radius: 0; box-shadow: none; }
/* Пока фото движется (открытие, закрытие, перелистывание), тень спрятана — её перерисовка
   на каждом кадре даёт рывки. Проявляется, когда фото остановилось */
.lightbox__frame { transition: box-shadow .35s ease; }
.lightbox__frame.is-moving { box-shadow: none; transition: none; }
.lightbox__frame.is-zoomed img { cursor: grab; }
.lightbox__frame.is-zoomed img:active { cursor: grabbing; }
.lightbox button, .lightbox__count { position: absolute; z-index: 2; background: none; border: 0; color: #fff; cursor: pointer; opacity: 0; transition: opacity .3s ease .15s; }
/* Кнопки — стеклянные кружки. Прозрачность только 0 или 1: при промежуточной стекло не размывает фон */
.lightbox button { width: 52px; height: 52px; border-radius: 50%; padding: 0; font-size: 30px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.lightbox.is-visible button, .lightbox.is-visible .lightbox__count { opacity: 1; }
.lightbox__count { top: 22px; left: 24px; font-size: 14px; letter-spacing: .1em; cursor: default; padding: 0; }
a.ph { cursor: zoom-in; }

/* ===== Анимации появления при прокрутке =====
   left — выезд слева, up — снизу, zoom — проявление с увеличением.
   Скорость: --anim-time, расстояние — в transform ниже */
:root { --anim-time: 1s; --anim-ease: cubic-bezier(.2, .7, .2, 1); }
body { overflow-x: clip; }
.js [data-anim] { opacity: 0; transition: opacity var(--anim-time) ease, transform var(--anim-time) var(--anim-ease); transition-delay: var(--d, 0s); }
.js [data-anim="left"] { transform: translateX(-100px); }
.js [data-anim="up"] { transform: translateY(60px); }
.js [data-anim="zoom"] { transform: scale(1.15); transition-duration: 1.6s; }
.js [data-anim="fade"] { transition-duration: 1.8s; }
.js [data-anim].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-anim] { opacity: 1; transform: none; transition: none; }
}
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }

@keyframes swipe-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .swipe-hint svg { animation: none; } }

/* ===== Тёмная тема (все версии сайта) ===== */
:root { --text: #ece6f0; --muted: #a99db3; --gray: #1b1220; }
/* Единый фон страницы: низ градиента первого экрана (персиковый) перетекает в сиреневый,
   потом в тёмные сливовые тона с мягкими пятнами цвета — и так до самого низа. Зерно — по всей странице */
body { position: relative; background-color: #120a16;
  /* Каждое цветное пятно рисуется только в своей области (closest-side + размер + no-repeat).
     Раньше пятна считались на всю высоту страницы — браузер рисовал фон ~0,6 с и прокрутка подвисала.
     Позиция пятна: центр по X/Y, размер — двойной радиус. Пересчёт: позиция% = (центр − радиус) / (1 − 2·радиус) */
  background:
    radial-gradient(closest-side, rgba(104, 88, 168, .32), rgba(104, 88, 168, 0) 70%) 175% 18.29% / 140% 18% no-repeat,
    radial-gradient(closest-side, rgba(150, 60, 110, .26), rgba(150, 60, 110, 0) 70%) -200% 35.71% / 120% 16% no-repeat,
    radial-gradient(closest-side, rgba(85, 67, 143, .3), rgba(85, 67, 143, 0) 70%) 162.5% 56.1% / 140% 18% no-repeat,
    radial-gradient(closest-side, rgba(192, 138, 131, .16), rgba(192, 138, 131, 0) 70%) -175% 73.81% / 120% 16% no-repeat,
    radial-gradient(closest-side, rgba(120, 40, 80, .25), rgba(120, 40, 80, 0) 70%) 83.33% 96.34% / 160% 18% no-repeat,
    /* Мягкие пятна по краям (видны в полях на широком экране): розовый и голубой попеременно.
       Спокойная яркость, очень плавный спад к прозрачному; каждое рисуется только в своей области */
    radial-gradient(closest-side, rgba(232, 150, 190, 0.15), rgba(232, 150, 190, 0.083) 35%, rgba(232, 150, 190, 0.03) 65%, rgba(232, 150, 190, 0)) -200% 1.648% / 80% 9% no-repeat,
    radial-gradient(closest-side, rgba(140, 185, 235, 0.15), rgba(140, 185, 235, 0.083) 35%, rgba(140, 185, 235, 0.03) 65%, rgba(140, 185, 235, 0)) 300% 8.242% / 80% 9% no-repeat,
    radial-gradient(closest-side, rgba(232, 150, 190, 0.15), rgba(232, 150, 190, 0.083) 35%, rgba(232, 150, 190, 0.03) 65%, rgba(232, 150, 190, 0)) -200% 15.934% / 80% 9% no-repeat,
    radial-gradient(closest-side, rgba(140, 185, 235, 0.15), rgba(140, 185, 235, 0.083) 35%, rgba(140, 185, 235, 0.03) 65%, rgba(140, 185, 235, 0)) 300% 23.626% / 80% 9% no-repeat,
    radial-gradient(closest-side, rgba(232, 150, 190, 0.15), rgba(232, 150, 190, 0.083) 35%, rgba(232, 150, 190, 0.03) 65%, rgba(232, 150, 190, 0)) -200% 31.319% / 80% 9% no-repeat,
    radial-gradient(closest-side, rgba(140, 185, 235, 0.15), rgba(140, 185, 235, 0.083) 35%, rgba(140, 185, 235, 0.03) 65%, rgba(140, 185, 235, 0)) 300% 39.011% / 80% 9% no-repeat,
    radial-gradient(closest-side, rgba(232, 150, 190, 0.15), rgba(232, 150, 190, 0.083) 35%, rgba(232, 150, 190, 0.03) 65%, rgba(232, 150, 190, 0)) -200% 46.703% / 80% 9% no-repeat,
    radial-gradient(closest-side, rgba(140, 185, 235, 0.15), rgba(140, 185, 235, 0.083) 35%, rgba(140, 185, 235, 0.03) 65%, rgba(140, 185, 235, 0)) 300% 54.396% / 80% 9% no-repeat,
    radial-gradient(closest-side, rgba(232, 150, 190, 0.12), rgba(232, 150, 190, 0.066) 35%, rgba(232, 150, 190, 0.024) 65%, rgba(232, 150, 190, 0)) -200% 63.187% / 80% 9% no-repeat,
    radial-gradient(closest-side, rgba(140, 185, 235, 0.12), rgba(140, 185, 235, 0.066) 35%, rgba(140, 185, 235, 0.024) 65%, rgba(140, 185, 235, 0)) 300% 71.978% / 80% 9% no-repeat,
    radial-gradient(closest-side, rgba(232, 150, 190, 0.12), rgba(232, 150, 190, 0.066) 35%, rgba(232, 150, 190, 0.024) 65%, rgba(232, 150, 190, 0)) -200% 82.967% / 80% 9% no-repeat,
    radial-gradient(closest-side, rgba(140, 185, 235, 0.12), rgba(140, 185, 235, 0.066) 35%, rgba(140, 185, 235, 0.024) 65%, rgba(140, 185, 235, 0)) 300% 93.956% / 80% 9% no-repeat,
    linear-gradient(180deg, #cf9784 0, #cf9784 100vh, #8a6290 calc(100vh + 420px), #43264f calc(100vh + 1000px),
      #22122c calc(100vh + 1700px), #1d1028 50%, #1a0f22 75%, #120a16 100%) #120a16; }
body::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--noise) 0 0 / var(--noise-size); mix-blend-mode: overlay; }

/* ===== Сияние: живой фон =====
   Неподвижный слой на весь экран под всем содержимым (под зерном). В нём 5 больших мягких пятен,
   которые очень медленно плывут и меняют размер — как северное сияние. Первый экран его закрывает,
   поэтому сияние проявляется при прокрутке. Двигаются только transform — для браузера это дёшево.
   Сила — --aurora (0…1), скорость — время у animation (больше = медленнее), цвета — в background пятен */
:root { --aurora: 1; }
.aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; opacity: var(--aurora); }
.aurora i { position: absolute; display: block; border-radius: 50%; will-change: transform;
  animation: aurora-a 46s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { left: -25vmax; top: -20vmax; width: 80vmax; height: 60vmax;
  background: radial-gradient(closest-side, rgba(130, 104, 220, .8), rgba(130, 104, 220, .32) 50%, rgba(130, 104, 220, 0)); }
.aurora i:nth-child(2) { right: -30vmax; top: 5vh; width: 85vmax; height: 55vmax;
  background: radial-gradient(closest-side, rgba(214, 84, 164, .65), rgba(214, 84, 164, .25) 50%, rgba(214, 84, 164, 0));
  animation-name: aurora-b; animation-duration: 58s; }
.aurora i:nth-child(3) { left: -15vmax; bottom: -25vmax; width: 75vmax; height: 60vmax;
  background: radial-gradient(closest-side, rgba(70, 130, 230, .65), rgba(70, 130, 230, .24) 50%, rgba(70, 130, 230, 0));
  animation-name: aurora-c; animation-duration: 64s; }
.aurora i:nth-child(4) { right: -20vmax; bottom: -30vmax; width: 80vmax; height: 60vmax;
  background: radial-gradient(closest-side, rgba(240, 156, 130, .58), rgba(240, 156, 130, .2) 50%, rgba(240, 156, 130, 0));
  animation-name: aurora-b; animation-duration: 52s; animation-direction: alternate-reverse; }
.aurora i:nth-child(5) { left: 20vw; top: 25vh; width: 60vmax; height: 40vmax;
  background: radial-gradient(closest-side, rgba(90, 200, 210, .38), rgba(90, 200, 210, .13) 50%, rgba(90, 200, 210, 0));
  animation-name: aurora-c; animation-duration: 70s; animation-direction: alternate-reverse; }
@keyframes aurora-a {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate(22vw, 18vh) rotate(25deg) scale(1.2); }
  100% { transform: translate(8vw, 40vh) rotate(-15deg) scale(.9); } }
@keyframes aurora-b {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate(-25vw, 22vh) rotate(-30deg) scale(.85); }
  100% { transform: translate(-10vw, 45vh) rotate(20deg) scale(1.15); } }
@keyframes aurora-c {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate(28vw, -20vh) rotate(35deg) scale(1.15); }
  100% { transform: translate(12vw, -38vh) rotate(-10deg) scale(.9); } }
/* Плавное проявление за первый экран (Chrome, Edge); в остальных браузерах сияние просто есть всегда */
@supports (animation-timeline: scroll()) {
  .aurora { animation: aurora-in linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  @keyframes aurora-in { from { opacity: 0; } to { opacity: var(--aurora); } }
}
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } }
/* Подсветка Ambilight вокруг стены фото (рисует js/main.js, размытие — AMBI_BLUR там же).
   Холст лежит под стеной и прокручивается вместе с ней. Сила — opacity у .is-on */
.ambi { position: absolute; left: 0; width: 100%; z-index: -2; pointer-events: none;
  filter: saturate(1.25); opacity: 0; transition: opacity 1.2s ease; }
.ambi.is-on { opacity: .7; }
/* Под первым экраном сияние проявляется плавно, без «ступеньки» у его нижнего края (компьютер) */
@media (min-width: 641px) and (orientation: landscape), (min-width: 1101px) {
  #reportage { position: relative; }
  #reportage::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 45vh; z-index: -2; pointer-events: none;
    background: linear-gradient(180deg, #cf9784 0%, rgba(207, 151, 132, .6) 35%, rgba(207, 151, 132, 0) 100%); }
}

.ph { background: rgba(255,255,255,.06); }
.ph.is-empty::after { color: #8d8296; }
.map { background: #1b1220; }
.map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.7); }
.form input, .form textarea { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: var(--text); }
.socials img { filter: none; }

/* ===== Планшет и телефон ===== */
@media (max-width: 960px) {
  /* Планшет и телефон: та же стеклянная плашка сверху, что на компьютере, только меньше.
     Кнопки меню нет. На телефоне номер в плашку не помещается — он есть на первом экране и в контактах */
  .header { pointer-events: none; }
  .header, .header.is-scrolled { padding: 8px 10px; }
  .burger { display: none; }
  .header__bar { gap: clamp(8px, 2.6vw, 20px); padding: 8px clamp(10px, 3.6vw, 22px); }
  .header__bar > .nav, .header__bar > .header__phone { padding-left: clamp(8px, 2.6vw, 20px); }
  .nav { gap: clamp(8px, 3vw, 22px); font-size: clamp(10.5px, 3.5vw, 15px); white-space: nowrap; }
  .header__phone { font-size: clamp(10.5px, 3.5vw, 15px); white-space: nowrap; }
  .header__home img { height: clamp(20px, 7vw, 34px); margin: -6px 0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .intro__bg { width: 100%; }
  /* Вступление на телефоне — во всю ширину, без белой рамки, вплотную к первому экрану */
  #about { padding: 0; }
  #about .container { padding: 0; }
  .intro { border-radius: 0; }

  .intro::before { background: linear-gradient(180deg, rgba(28,16,32,.78), rgba(28,16,32,.6)); }
  .intro__text { max-width: none; padding: 36px 22px; }
  .intro__text p { font-size: 16px; }
  /* Карточки направлений — лента, которая листается пальцем; соседняя карточка выглядывает справа */
  .cards3--swipe { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 4px; scroll-padding: 0 20px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .cards3--swipe::-webkit-scrollbar { display: none; }
  .cards3--swipe > * { flex: 0 0 42%; scroll-snap-align: start; }
  .swipe-hint { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: opacity .5s; }
  .swipe-hint svg { animation: swipe-nudge 1.6s ease-in-out infinite; }
  .swipe-hint.is-hidden { opacity: 0; }
  .split__img { position: relative; top: auto; order: -1; }  /* на телефоне фото с надписью Introduction — над текстом */
  .grid { columns: 3; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  :root { --sec-pad: 70px; --title-gap: 44px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .cards3 { grid-template-columns: 1fr; }
  .cards3--swipe { margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 0 16px; }
  .cards3--swipe > * { flex-basis: 78%; }
  .grid { columns: 2; }
  .mosaic { gap: 4px; }
  .mosaic { grid-template-columns: 1fr; }
}

/* Первый экран на телефоне и вертикальном планшете (включая iPad Pro): градиент с текстом на весь экран, фото ниже */
@media (max-width: 640px), (max-width: 1100px) and (orientation: portrait) {
  /* Первый экран на телефоне — не выше 820px: на очень длинных экранах текст не расползается */
  /* Телефон: вместо градиента — фото на весь первый экран, затемнённое; текст поверх */
  .hero { --hero-h: min(100svh, 820px); flex-direction: column; align-items: stretch; background: #120a16; }
  .hero::before { display: none; }
  .hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
  .hero__photo img { object-position: 50% 22%; }
  .hero__photo::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(18,10,22,.66) 0%, rgba(18,10,22,.5) 40%, rgba(18,10,22,.58) 70%, rgba(18,10,22,.92) 100%); }
  .hero__photo.is-empty { border: 0; border-top: 1px dashed rgba(255,255,255,.3); }
  .hero__content { width: 100%; min-height: var(--hero-h); padding: 64px 20px 44px; justify-content: space-between; gap: 28px; }
  .hero__logo { width: min(78cqi, 420px); }
  .hero__title { font-size: clamp(30px, 10.5cqi, 64px); }
  .hero__lead { font-size: 17px; }
}

/* ===== Широкие экраны (большие мониторы, 2K, 4K): разделы, меню и кнопки пропорционально крупнее.
   Галерея и первый экран подстраиваются сами — их не трогаем ===== */
@media (min-width: 1800px) {
  :root { --sec-pad: 120px; }
  .section:not(#reportage) .container, .footer { zoom: 1.15; }
  .nav { font-size: 17px; gap: 30px; }
  .header__phone { font-size: 17px; }
  .header__bar { padding: 14px 32px; gap: 28px; }
  .header__bar > .nav, .header__bar > .header__phone { padding-left: 28px; }
  .header__home img { height: 46px; }
  .lightbox button { width: 60px; height: 60px; font-size: 34px; }
}
@media (min-width: 2200px) {
  :root { --sec-pad: 150px; }
  .section:not(#reportage) .container, .footer { zoom: 1.35; }
  .nav { font-size: 20px; gap: 36px; }
  .header__phone { font-size: 20px; }
  .header__bar { padding: 16px 40px; gap: 32px; }
  .header__bar > .nav, .header__bar > .header__phone { padding-left: 32px; }
  .header__home img { height: 54px; }
  .lightbox button { width: 70px; height: 70px; font-size: 40px; }
  .lightbox__count { font-size: 17px; }
}
@media (min-width: 2800px) {
  .section:not(#reportage) .container, .footer { zoom: 1.65; }
  .nav { font-size: 24px; gap: 44px; }
  .header__phone { font-size: 24px; }
  .header__bar { padding: 20px 48px; gap: 38px; }
  .header__bar > .nav, .header__bar > .header__phone { padding-left: 38px; }
  .header__home img { height: 64px; }
  .lightbox button { width: 82px; height: 82px; font-size: 46px; }
  .lightbox__count { font-size: 20px; }
}
@media (min-width: 3400px) {
  :root { --sec-pad: 190px; }
  .section:not(#reportage) .container, .footer { zoom: 1.9; }
  .nav { font-size: 28px; gap: 50px; }
  .header__phone { font-size: 28px; }
  .header__bar { padding: 24px 56px; gap: 44px; }
  .header__bar > .nav, .header__bar > .header__phone { padding-left: 44px; }
  .header__home img { height: 74px; }
  .lightbox button { width: 94px; height: 94px; font-size: 52px; }
  .lightbox__count { font-size: 24px; }
}

/* ===== Стеклянная полоса прокрутки (компьютер; создаёт js/main.js) =====
   Системная полоса скрыта — вместо неё прозрачная шкала и ползунок из «жидкого стекла», как меню:
   фон под ним не размывается, а преломляется у краёв, как в линзе. Сверху — блик в стиле Aqua (Mac),
   который при движении ползунка отстаёт и плавно возвращается.
   Важно: никакой opacity у полосы и ползунка — в Chrome она выключает преломление фона */
html.has-glass-scroll { scrollbar-width: none; }
html.has-glass-scroll::-webkit-scrollbar { display: none; }
.scrollbar { position: fixed; top: 6px; right: 3px; bottom: 6px; width: 24px; z-index: 90; cursor: pointer;
  transition: transform .35s cubic-bezier(.32, .72, 0, 1); }
.scrollbar.is-off { display: none; }
/* Ширина ползунка постоянная: если её менять (например при наведении), карта преломления стекла
   на мгновение не совпадает с размером — появляется шов, и стекло всей страницы перестраивается */
.scrollbar__thumb { position: absolute; top: 0; right: 4px; width: 16px; border-radius: 999px; cursor: grab; overflow: hidden; }
.scrollbar.is-drag .scrollbar__thumb { cursor: grabbing; }
/* Подложка: по краям мутная, как у меню, к середине — совсем прозрачная (там фон увеличен, как в палочке); яркая кромка */
.scrollbar__thumb.glass::before {
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03)),
    linear-gradient(90deg, rgba(30,16,42,.42) 0%, rgba(30,16,42,.12) 22%, rgba(30,16,42,0) 38%, rgba(30,16,42,0) 62%, rgba(30,16,42,.12) 78%, rgba(30,16,42,.42) 100%);
  -webkit-backdrop-filter: blur(6px) saturate(170%); backdrop-filter: var(--lg-filter, blur(6px) saturate(170%));
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7), inset 0 1px 1px rgba(255,255,255,.9), inset 0 -2px 3px rgba(255,255,255,.3),
    0 0 0 .5px rgba(0,0,0,.35), 0 4px 14px rgba(0,0,0,.3); }
.scrollbar__thumb.glass::after { display: none; }
/* Светотень как у шара (направление --la задаёт js/main.js по неподвижному «солнцу»):
   освещённая сторона → мягкий переход → тёмная полоса собственной тени → рефлекс у дальнего края */
/* Светотень видна только у краёв: середина ползунка без затемнения */
.scrollbar__shade { position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.5) 22%, transparent 40%, transparent 60%, rgba(0,0,0,.5) 78%, #000 100%);
          mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.5) 22%, transparent 40%, transparent 60%, rgba(0,0,0,.5) 78%, #000 100%);
  background: linear-gradient(var(--la, 90deg),
    rgba(255,255,255,.26) 0%, rgba(255,240,250,.10) 22%, rgba(255,255,255,0) 40%,
    rgba(22,8,40,.14) 56%, rgba(22,8,40,.20) 66%, rgba(40,24,80,.10) 82%, rgba(170,160,255,.18) 100%); }
/* Блик A — яркая вытянутая точка с мягким ореолом; на боку ползунка растягивается.
   Отражение C — напротив: крупнее, темнее, с плавным градиентом. Положение задаёт js/main.js */
.scrollbar__shine, .scrollbar__glow { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; will-change: transform; }
/* Блик A — светлая кромка вдоль левого контура (повторяет скругления). Маска показывает её часть:
   --y1 … --y2 — видимый кусок, --yp — самое яркое место (задаёт js/main.js); спад мягкий во все стороны */
/* Отступ 1.5px от края: этот промежуток закрывает светлая кромка самого ползунка, тёмной полосы нет */
.scrollbar__shine { inset: 1.5px; width: auto; height: auto; border-radius: 999px; will-change: auto;
  box-shadow: inset 5px 0 5px -2px rgba(255,255,255,.7), inset 2px 0 2px -1px rgba(255,255,255,.75);
  /* К обоим концам яркость сходит на нет постепенно — краёв блика не видно */
  -webkit-mask-image: linear-gradient(180deg, transparent var(--y1, 0px), rgba(0,0,0,.06) calc(var(--y1, 0px) + (var(--yp, 0px) - var(--y1, 0px)) * .2), rgba(0,0,0,.22) calc(var(--y1, 0px) + (var(--yp, 0px) - var(--y1, 0px)) * .4), rgba(0,0,0,.5) calc(var(--y1, 0px) + (var(--yp, 0px) - var(--y1, 0px)) * .6), rgba(0,0,0,.82) calc(var(--y1, 0px) + (var(--yp, 0px) - var(--y1, 0px)) * .8), #000 var(--yp, 0px), rgba(0,0,0,.82) calc(var(--yp, 0px) + (var(--y2, 0px) - var(--yp, 0px)) * .2), rgba(0,0,0,.5) calc(var(--yp, 0px) + (var(--y2, 0px) - var(--yp, 0px)) * .4), rgba(0,0,0,.22) calc(var(--yp, 0px) + (var(--y2, 0px) - var(--yp, 0px)) * .6), rgba(0,0,0,.06) calc(var(--yp, 0px) + (var(--y2, 0px) - var(--yp, 0px)) * .8), transparent var(--y2, 0px));
          mask-image: linear-gradient(180deg, transparent var(--y1, 0px), rgba(0,0,0,.06) calc(var(--y1, 0px) + (var(--yp, 0px) - var(--y1, 0px)) * .2), rgba(0,0,0,.22) calc(var(--y1, 0px) + (var(--yp, 0px) - var(--y1, 0px)) * .4), rgba(0,0,0,.5) calc(var(--y1, 0px) + (var(--yp, 0px) - var(--y1, 0px)) * .6), rgba(0,0,0,.82) calc(var(--y1, 0px) + (var(--yp, 0px) - var(--y1, 0px)) * .8), #000 var(--yp, 0px), rgba(0,0,0,.82) calc(var(--yp, 0px) + (var(--y2, 0px) - var(--yp, 0px)) * .2), rgba(0,0,0,.5) calc(var(--yp, 0px) + (var(--y2, 0px) - var(--yp, 0px)) * .4), rgba(0,0,0,.22) calc(var(--yp, 0px) + (var(--y2, 0px) - var(--yp, 0px)) * .6), rgba(0,0,0,.06) calc(var(--yp, 0px) + (var(--y2, 0px) - var(--yp, 0px)) * .8), transparent var(--y2, 0px)); }
.scrollbar__glow { width: 10px; height: 24px;
  background: radial-gradient(closest-side, rgba(200,190,255,.26), rgba(200,190,255,.16) 35%, rgba(200,190,255,.07) 65%, rgba(200,190,255,0)); }
/* В просмотре фото полоса уезжает за край экрана */
html:has(.lightbox.is-open) .scrollbar { transform: translateX(40px); pointer-events: none; }
