/* photoset-mk.css — блоки страницы /photoset в визуале раздела marketing.
   Этап 1: попап создания фотопрофиля.

   Дизайн-язык взят из create-entry.css / studio.css, значения — через те же
   переменные, что и там, чтобы смена темы работала без правок здесь:
     панель   rgba(255,255,255,.05) + рамка var(--line)
     ховер    подложка до .09, текст в var(--text)
     активное белая заливка + var(--accent-ink)
     primary  var(--accent) без рамки
     оверлей  rgba(10,10,14,.66) + blur(2px)
     радиусы  10px мелкое / 14px крупное

   Карточки фотосессий (.ps-card, .ps-grid, бейджи) здесь НЕ трогаются —
   они остаются на своих стилях в photo.css. */

/* ── Подложка ─────────────────────────────────────────────────────────── */
.mkp {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background: rgba(10, 10, 14, .66);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
  overflow-y: auto; overscroll-behavior: contain;
}
.mkp.open { opacity: 1; pointer-events: auto; }

/* ── Карточка ─────────────────────────────────────────────────────────── */
.mkp-card {
  position: relative;
  width: 100%; max-width: 940px; margin: auto;
  background: var(--panel, #14141c);
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  border-radius: 18px;
  padding: 26px 26px 24px;
  transform: translateY(14px) scale(.985);
  transition: transform .24s cubic-bezier(.2, .8, .3, 1);
}
.mkp.open .mkp-card { transform: none; }

/* Мягкая подсветка сверху — как у hero-блоков маркетинга */
.mkp-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(620px 240px at 18% -10%, rgba(124, 92, 255, .18), transparent 62%),
    radial-gradient(520px 220px at 84% -6%, rgba(209, 254, 23, .10), transparent 60%);
}
.mkp-card > * { position: relative; }

.mkp-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  color: var(--text-2, #c7c7cf); cursor: pointer;
}
.mkp-close:hover { background: rgba(255, 255, 255, .09); color: var(--text, #fff); }
.mkp-close svg { width: 16px; height: 16px; }

/* ── Шапка ────────────────────────────────────────────────────────────── */
.mkp-badge {
  display: inline-block; margin-bottom: 10px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(209, 254, 23, .12);
  color: var(--accent, #d1fe17);
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.mkp-h {
  margin: 0 0 8px; font-family: Unbounded, Manrope, sans-serif;
  font-weight: 700; font-size: clamp(21px, 3.2vw, 28px); line-height: 1.15;
  color: var(--text, #fff);
}
.mkp-sub { margin: 0 0 22px; max-width: 620px; color: var(--text-2, #c7c7cf); font-size: 14px; line-height: 1.5; }

/* ── Выбор типа профиля ───────────────────────────────────────────────── */
.mkp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mkp-pick {
  display: flex; flex-direction: column; gap: 9px; text-align: left;
  padding: 17px 16px 15px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  border-radius: 14px; cursor: pointer;
  font-family: inherit; color: var(--text, #fff);
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.mkp-pick:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.mkp-pick-top { display: flex; align-items: center; gap: 9px; }
.mkp-pick-ic {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .06); color: var(--accent, #d1fe17);
}
.mkp-pick-ic svg { width: 17px; height: 17px; }
.mkp-pick-name { font-weight: 700; font-size: 15px; }
.mkp-tag {
  margin-left: auto; padding: 3px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: rgba(255, 255, 255, .08); color: var(--text-2, #c7c7cf);
}
.mkp-tag.best { background: var(--accent, #d1fe17); color: var(--accent-ink, #1a1f05); }
.mkp-pick-desc { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-2, #c7c7cf); }
.mkp-pick-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.mkp-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  font-size: 11.5px; color: var(--text-2, #c7c7cf); white-space: nowrap;
}
.mkp-chip b { color: var(--text, #fff); font-weight: 600; }
.mkp-chip.price b { color: var(--accent, #d1fe17); }
.mkp-chip .coin { width: 12px; height: 12px; }

/* ── Шаг загрузки / описания ──────────────────────────────────────────── */
.mkp-back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
  padding: 8px 13px; border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  color: var(--text-2, #c7c7cf); font-family: inherit; font-weight: 600; font-size: 13px; cursor: pointer;
}
.mkp-back:hover { background: rgba(255, 255, 255, .09); color: var(--text, #fff); }
.mkp-back svg { width: 15px; height: 15px; }

.mkp-hint {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 12px;
  font-size: 13px; color: var(--text-2, #c7c7cf);
}
.mkp-counter { font-weight: 600; color: var(--text, #fff); }
.mkp-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--accent, #d1fe17); text-decoration: underline; text-underline-offset: 3px;
}

.mkp-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-bottom: 16px; }
.mkp-cell { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .04); }
.mkp-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mkp-del {
  position: absolute; top: 5px; right: 5px;
  width: 22px; height: 22px; border-radius: 7px; border: 0;
  background: rgba(10, 10, 14, .72); color: #fff;
  font-size: 15px; line-height: 1; cursor: pointer;
}
.mkp-del:hover { background: rgba(10, 10, 14, .9); }
.mkp-add {
  aspect-ratio: 3 / 4; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255, 255, 255, .04);
  border: 1px dashed rgba(255, 255, 255, .18);
  color: var(--text-2, #c7c7cf); font-family: inherit; font-size: 12px; cursor: pointer;
}
.mkp-add:hover { background: rgba(255, 255, 255, .08); color: var(--text, #fff); border-color: rgba(255, 255, 255, .3); }
.mkp-add svg { width: 20px; height: 20px; }

.mkp-ta {
  width: 100%; min-height: 132px; resize: vertical; margin-bottom: 14px;
  padding: 14px 15px; border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  color: var(--text, #fff); font-family: inherit; font-size: 14px; line-height: 1.5;
}
.mkp-ta::placeholder { color: rgba(255, 255, 255, .35); }
.mkp-ta:focus { outline: none; border-color: var(--accent, #d1fe17); }

.mkp-ideas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mkp-idea {
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  color: var(--text-2, #c7c7cf); font-family: inherit; font-size: 12.5px; cursor: pointer;
}
.mkp-idea:hover { background: rgba(255, 255, 255, .09); color: var(--text, #fff); }

.mkp-consent {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px;
  font-size: 12.5px; line-height: 1.5; color: var(--text-2, #c7c7cf); cursor: pointer;
}
.mkp-consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--accent, #d1fe17); flex: none; }
.mkp-consent a { color: var(--accent, #d1fe17); }

.mkp-go {
  width: 100%; padding: 14px 18px; border: 0; border-radius: 12px;
  background: var(--accent, #d1fe17); color: var(--accent-ink, #1a1f05);
  font-family: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer;
}
.mkp-go:hover:not(:disabled) { filter: brightness(1.05); }
.mkp-go:disabled { opacity: .45; cursor: default; }
.mkp-err { margin: 10px 0 0; font-size: 13px; color: #ff8da3; text-align: center; }

/* ── Разделитель «или» ────────────────────────────────────────────────── */
.mkp-or {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 0;
  color: var(--text-2, #c7c7cf); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
}
.mkp-or::before, .mkp-or::after { content: ""; flex: 1; height: 1px; background: var(--line, rgba(255, 255, 255, .1)); }

/* ── Адаптив ──────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .mkp-cards { grid-template-columns: 1fr; }
  .mkp-pick-meta { padding-top: 0; }
}
@media (max-width: 560px) {
  .mkp { padding: 0; align-items: stretch; }
  .mkp-card { max-width: none; border-radius: 0; border-left: 0; border-right: 0; padding: 22px 16px 20px; min-height: 100%; }
  .mkp-cells { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
}

/* «+ Добавить профиль» в меню профилей был <a>, стал <button> (открывает попап,
   а не уводит на /character). Сбрасываем кнопочные умолчания, чтобы вид не менялся. */
button.pvh-menu-add {
  width: 100%; background: none;
  border: 1px dashed rgba(209, 254, 23, .3);   /* как у прежней ссылки */
  font-family: inherit; cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════════
   ЭТАП 2 — хиро-баннер и фильтры стилей в визуале marketing.

   Правки идут ОВЕРРАЙДАМИ: этот файл подключён после photo.css, поэтому
   исходные правила там не трогаются и откатить всё можно, просто убрав
   строку подключения. Часть селекторов в .ps-banner-b объявлены с !important,
   поэтому местами он нужен и здесь — иначе не перебить.

   Карточки фотосессий (.ps-card, .ps-grid) не затрагиваются.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Хиро: панель вместо голого текста на фоне ─────────────────────────── */
.ps-banner.ps-banner-b {
  max-width: 1180px;
  margin: 28px auto 0 !important;
  padding: 0 24px !important;
}
.ps-banner-b .ps-banner-inner {
  position: relative;
  padding: 38px 32px 32px !important;
  border: 1px solid var(--line, rgba(255, 255, 255, .1)) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, .04) !important;
  overflow: hidden !important;
}
/* Та же подсветка, что у попапа — связывает блоки в один визуальный язык */
.ps-banner-b .ps-banner-inner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(720px 280px at 16% -12%, rgba(124, 92, 255, .20), transparent 62%),
    radial-gradient(600px 260px at 86% -8%, rgba(209, 254, 23, .11), transparent 60%);
}
.ps-banner-b .psb-l,
.ps-banner-b .psb-r { position: relative; z-index: 1; }

/* Бейдж — таблетка, как .mkp-badge в попапе */
.ps-banner-b .psd-badge {
  padding: 5px 11px !important;
  border-radius: 999px !important;
  background: rgba(209, 254, 23, .12) !important;
  font: 700 11.5px/1 Manrope, sans-serif !important;
  letter-spacing: .06em !important;
  margin-bottom: 14px !important;
}
.ps-banner-b h1 { letter-spacing: -.015em; }
.ps-banner-b .ps-sub { max-width: 56ch; font-size: 15px; }

/* Счётчик пресетов — чип, а не голая цифра */
.ps-banner-b .psb-r {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  margin-top: 22px; padding: 13px 26px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
}
.ps-banner-b .psb-stat { font-size: 34px !important; line-height: 1; letter-spacing: -.02em; }
.ps-banner-b .psb-stat-l { margin-top: 0 !important; font-size: 12.5px; }

/* ── Фильтры стилей: таблетки → табы маркетинга ───────────────────────── */
.ps-browse .ps-filters {
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, .07));
}
.ps-cats-desk { gap: 9px; }
.ps-cats-desk .ps-cat-pill {
  padding: 9px 15px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  color: var(--text-2, #c7c7cf);
  font-size: 13px; font-weight: 600;
}
.ps-cats-desk .ps-cat-pill:not(.active):hover {
  background: rgba(255, 255, 255, .09);
  color: var(--text, #fff);
  border-color: rgba(255, 255, 255, .2);
}
.ps-cats-desk .ps-cat-pill.active {
  background: #ffffff;
  border-color: transparent;
  color: var(--accent-ink, #1a1f05);
}

/* ── Мобильная выпадашка на тех же токенах ────────────────────────────── */
.ps-select-btn {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  border-radius: 12px;
  font-weight: 600;
}
.ps-select-btn:hover { background: rgba(255, 255, 255, .09); }
.ps-select-btn.open { border-color: var(--accent, #d1fe17); }
.ps-dropdown {
  top: 56px;
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  border-radius: 14px;
  background: var(--panel, #14141c);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .75);
}
.ps-dd-item { border-radius: 10px; font-weight: 500; }
.ps-dd-item:hover { background: rgba(255, 255, 255, .07); }
.ps-dd-item.on { color: var(--accent, #d1fe17); }

@media (max-width: 820px) {
  .ps-banner.ps-banner-b { padding: 0 16px !important; margin-top: 18px !important; }
  .ps-banner-b .ps-banner-inner { padding: 28px 20px 24px !important; border-radius: 16px !important; }
}

/* ═══════════════════════════════════════════════════════════════════════
   ЭТАП 3 — карточки фотопрофилей и вьювер пресета.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Карточка профиля ─────────────────────────────────────────────────── */
.ps-pcard {
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.ps-pcard:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.ps-pcard.active {
  border-color: var(--accent, #d1fe17);
  background: rgba(209, 254, 23, .07);
}
.ps-pcard-badge {
  background: var(--accent, #d1fe17);
  color: var(--accent-ink, #1a1f05);
  font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
}

/* Аватар: раньше всегда буква на градиенте. Теперь, если бэкенд отдал
   эталонный портрет, показываем лицо — буква остаётся запасным вариантом
   для профилей, обученных до появления portraitUrl. */
.ps-pcard-ava.has-img,
.pvh-prof-ava.has-img,
.pvh-menu-ava.has-img {
  background: rgba(255, 255, 255, .06);
  overflow: hidden; padding: 0;
}
.ps-pcard-ava.has-img img,
.pvh-prof-ava.has-img img,
.pvh-menu-ava.has-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ps-pcard-ava { border-radius: 12px; }

.ps-pcard-use {
  border-radius: 10px;
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  background: rgba(255, 255, 255, .05);
  font-weight: 600;
}
.ps-pcard-use:hover { background: rgba(255, 255, 255, .09); color: var(--text, #fff); }
.ps-pcard-use.on {
  background: #ffffff; border-color: transparent;
  color: var(--accent-ink, #1a1f05);
}

/* Плитка «+ Создать фотопрофиль» */
.ps-pcard.add {
  border-style: dashed;
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .03);
}
.ps-pcard.add:hover { border-color: var(--accent, #d1fe17); background: rgba(209, 254, 23, .06); }

/* ── Вьювер пресета ───────────────────────────────────────────────────── */
.ps-viewer-card.hero {
  border-radius: 20px;
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .75);
}
.ps-viewer-card.hero .ps-viewer-close {
  border-radius: 10px;
  background: rgba(10, 10, 14, .6);
  border: 1px solid rgba(255, 255, 255, .12);
}
.ps-viewer-card.hero .ps-viewer-close:hover { background: rgba(10, 10, 14, .82); }

/* Плашка активного профиля — как чип-панель попапа */
.pvh-prof {
  border-radius: 12px;
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  background: rgba(255, 255, 255, .05);
}
.pvh-prof[data-multi]:hover { background: rgba(255, 255, 255, .09); }

.ps-viewer-use {
  border-radius: 12px;
  font-weight: 700;
}
.ps-viewer-use.ghost {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
}
.ps-viewer-use.ghost:hover { background: rgba(255, 255, 255, .09); }

.pvh-menu-it { border-radius: 10px; }
.pvh-menu-it:hover { background: rgba(255, 255, 255, .07); }

/* ═══════════════════════════════════════════════════════════════════════
   ЭТАП 4 — тур обучения на всю страницу и экран готового профиля.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Тур: был карточкой 1000px по центру, стал полноэкранным ──────────── */
.ps-tour {
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: transparent;
}
.ps-tour-top { padding: 16px clamp(16px, 4vw, 40px); background: transparent; }
.ps-tour-stage { flex: 1 1 auto; height: auto; min-height: 0; }   /* в photo.css было height: 520px */
.ps-tour-foot { padding: 16px clamp(16px, 4vw, 40px); background: transparent; }
/* CTA сцены крупнее — на весь экран прежний кегль теряется */
.ps-tour-cta h2 { font-size: clamp(28px, 4vw, 52px); }
.ps-tour-cta p { font-size: clamp(14px, 1.5vw, 19px); }

/* ── Экран «Фотопрофиль готов» ────────────────────────────────────────── */
.psr {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px clamp(16px, 4vw, 40px);
}
.psr-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  width: 100%; max-width: 940px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  border-radius: 20px;
}
.psr-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(680px 260px at 78% -12%, rgba(124, 92, 255, .20), transparent 62%),
    radial-gradient(520px 240px at 96% 8%, rgba(209, 254, 23, .10), transparent 60%);
}
.psr-pic { position: relative; z-index: 1; aspect-ratio: 3 / 4; background: rgba(255, 255, 255, .05); }
.psr-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.psr-noimg {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: Unbounded, Manrope, sans-serif; font-size: 64px; font-weight: 700;
  color: var(--accent, #d1fe17);
}
.psr-side { position: relative; z-index: 1; padding: 34px 32px; display: flex; flex-direction: column; }
.psr-h {
  margin: 0 0 10px; font-family: Unbounded, Manrope, sans-serif;
  font-weight: 700; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.12; color: var(--text, #fff);
}
.psr-sub { margin: 0 0 20px; font-size: 14px; line-height: 1.5; color: var(--text-2, #c7c7cf); }
.psr-name {
  display: flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 11px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
}
.psr-name-lbl { font-size: 12.5px; color: var(--text-2, #c7c7cf); }
.psr-name-val { font-weight: 600; font-size: 14px; color: var(--text, #fff); }
.psr-name .ps-pcard-edit { margin-left: auto; }
.psr-acts { display: flex; gap: 10px; margin-top: auto; }
.psr-acts .mkp-go { flex: 1 1 auto; width: auto; }
.psr-again {
  flex: 0 0 auto; padding: 14px 20px; border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  color: var(--text, #fff); font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
}
.psr-again:hover { background: rgba(255, 255, 255, .09); }

@media (max-width: 760px) {
  .psr { padding: 20px 16px; }
  .psr-card { grid-template-columns: 1fr; }
  .psr-pic { aspect-ratio: 4 / 3; }
  .psr-side { padding: 24px 20px; }
  .psr-acts { flex-direction: column; }
  .psr-again { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════
   ЭТАП 5 — тур отдельной страницей, ширина экрана готовности.

   Корень обеих проблем один: #ps-layer в photo.css задан как
   `max-width: 760px; margin: 0 auto; padding: 32px 22px 80px`.
   Внутри него ни карточка на 940px, ни полноэкранный тур поместиться не могли.
   Слой теперь помечается атрибутом data-screen, и под каждый экран
   растягивается отдельно — остальные экраны остаются в прежних 760px.
   ═══════════════════════════════════════════════════════════════════════ */

#ps-layer[data-screen="ready"] { max-width: none; padding: 0; }

/* Тур — поверх всего, включая рейл: должно читаться как открытая страница */
#ps-layer[data-screen="training"] {
  position: fixed; inset: 0; z-index: 95;
  max-width: none; margin: 0; padding: 0;
  overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(120deg, #0a0812, #0d0a18, #0a0d18, #0c0a14);
}
.ps-tour-min {
  padding: 8px 14px; border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  color: var(--text-2, #c7c7cf);
  font-family: inherit; font-weight: 600; font-size: 13px; cursor: pointer;
}
.ps-tour-min:hover { background: rgba(255, 255, 255, .09); color: var(--text, #fff); }

/* ── Заголовки не должны рваться посреди слова ────────────────────────────
   В styles.css есть глобальное правило
     p, h1, h2, h3, h4, span, li … { overflow-wrap: anywhere; }
   Из-за `anywhere` минимальная ширина заголовка становится равной ОДНОМУ
   символу, поэтому грид спокойно ужимал колонку и «Фотопрофиль» ломался на
   «Фотопрофил / ь». Возвращаем нормальный перенос по словам. */
.psr-h, .mkp-h, .psr-sub, .mkp-sub, .psr-name-val {
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}
.psr-h { text-wrap: balance; }

/* ── Карточка «Фотопрофиль готов» шире ─────────────────────────────────── */
.psr-card {
  max-width: 1120px;
  grid-template-columns: minmax(0, 0.78fr) minmax(400px, 1fr);
}
.psr-side { padding: 38px 40px; }

@media (max-width: 900px) {
  .psr-card { grid-template-columns: 1fr; max-width: 560px; }
  .psr-side { padding: 26px 22px; }
}

/* ── Портрет крупным планом ────────────────────────────────────────────── */
.ps-pcard-ava.has-img,
.pvh-prof-ava.has-img,
.pvh-menu-ava.has-img { cursor: zoom-in; transition: transform .16s ease; }
.ps-pcard-ava.has-img:hover { transform: scale(1.04); }

.mkp-card.psr-zoom {
  max-width: 560px;
  padding: 18px 18px 16px;
  text-align: center;
}
.psr-zoom-pic {
  border-radius: 14px; overflow: hidden;
  background: rgba(255, 255, 255, .05);
  max-height: 74vh; display: flex;
}
.psr-zoom-pic img { width: 100%; height: auto; max-height: 74vh; object-fit: contain; display: block; }
.psr-zoom-cap {
  margin-top: 14px; font-weight: 600; font-size: 14.5px; color: var(--text, #fff);
}

/* ── Иммерсивный режим: тур на весь экран без интерфейса ──────────────────
   Класс вешается на <body> только на время экрана обучения (см. showScreen).
   Прячем боковой рейл (на мобиле это нижняя панель — тот же .rail) и
   плавающие виджеты, иначе они лежат поверх кадра. */
body.ps-immersive .rail { display: none !important; }
body.ps-immersive .content { padding-left: 0 !important; }
body.ps-immersive #mzs-root,
body.ps-immersive .claude-chat,
body.ps-immersive .gen-floating-extras,
body.ps-immersive .support-fab { display: none !important; }

/* Слой поднимаем выше рейла на случай, если он где-то остаётся видимым */
#ps-layer[data-screen="training"] { z-index: 200; }
