/* ===== «Кто в кадре?» (14.10.2026, ТЗ_блок_Кто_в_кадре.md) — наши цвета и шрифты =====
   Категорийные страницы: карточки-ссылки + слайдер фото с тегами. Конечные: плитка тегов-ссылок, карточка сета (попап),
   слайдер стилей. Наши кадры — 3:4, поэтому и карточки 3:4: фото видно целиком, без обрезки. */
.kto-page #nf, .kto-hub #nf:not(.is-open), .kto-page #cats-section { display: none; }
.kto { margin-top: 72px; }
.kto-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 26px; }
.kto-kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
.kto-head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 10px; color: var(--text); }
.kto-head p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; max-width: 720px; }
.kto-all { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--text); text-decoration: none; white-space: nowrap; }
.kto-all:hover { color: var(--accent-ink); }
.kto-arr { width: 16px; height: 16px; flex: none; transition: transform .2s, color .2s; }
.kto-all:hover .kto-arr { transform: translateX(3px); }

.kto-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.kto-card { display: flex; flex-direction: column; min-width: 0; color: var(--text); text-decoration: none; cursor: pointer; }
.kto-card.is-soon { cursor: default; }
.kto-photo { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; background: var(--panel-2);
  box-shadow: var(--sh-2); transition: transform .25s, box-shadow .25s; isolation: isolate; }
.kto-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.kto-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(to bottom, transparent, rgba(0,0,0,.35)); pointer-events: none; }
.kto-card:not(.is-soon):hover .kto-photo { transform: translateY(-2px); box-shadow: var(--sh-3); }
.kto-card.is-soon .kto-photo { filter: saturate(.55); opacity: .82; }
.kto-minis { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; display: flex; gap: 6px; justify-content: center; }
.kto-mini { position: relative; flex: 0 0 26%; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); background: #ddd; }
.kto-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kto-mini-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15,20,20,.5); color: #fff; font-weight: 800; font-size: 12px; text-align: center; line-height: 1.1; }
.kto-title { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-family: var(--font-display); font-weight: 800; font-size: 16.5px; line-height: 1.25; }
.kto-card:hover .kto-title .kto-arr { transform: translateX(4px); color: var(--accent-ink); }
.kto-sub { margin-top: 3px; font-size: 13px; color: var(--muted); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kto-soon { font-family: var(--font-ui); font-size: 11px; font-weight: 700; color: var(--muted); background: var(--panel-2); border-radius: var(--radius-pill); padding: 2px 8px; }

/* ----- слайдеры (внутри сетки, после первого ряда — ставит kto.js) ----- */
.kto-slider-wrap { grid-column: 1 / -1; margin: 12px 0; min-width: 0; }
.kto-slider { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px 2px 6px; cursor: grab; user-select: none; }
.kto-slider::-webkit-scrollbar, .kto-tags-line::-webkit-scrollbar, .kto-tagrow::-webkit-scrollbar { display: none; }
.kto-slider.is-drag { cursor: grabbing; }
.kto-pcard { flex: 0 0 170px; min-width: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.kto-pcard-img { display: block; aspect-ratio: 3 / 4; border-radius: var(--radius-md); overflow: hidden; background: var(--panel-2); box-shadow: var(--sh-1); }
.kto-pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .25s; }
.kto-pcard-img img.is-in { opacity: 1; }
.kto-pcard:hover .kto-pcard-img { box-shadow: var(--sh-2); }
.kto-pcard-t { display: block; margin-top: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kto-slider--styles { scroll-snap-type: x proximity; }
.kto-scard { flex: 0 0 200px; scroll-snap-align: start; color: var(--text); text-decoration: none; }
.kto-scard img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-md); background: var(--panel-2); box-shadow: var(--sh-1); }
.kto-scard span { display: block; margin-top: 7px; font-size: 13.5px; font-weight: 600; }

/* ----- теги: наш мятный градиент — рамка и текст ----- */
.kto-tag, .kto-tags-line button { --g: linear-gradient(100deg, var(--a-700), #0aa6a0 55%, #3d8bff); flex: none; display: inline-flex; align-items: center; padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--g) border-box;
  font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.kto-tag span, .kto-tags-line button span { background: var(--g); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .kto-tag, :root[data-theme="dark"] .kto-tags-line button { --g: linear-gradient(100deg, var(--a-400), #5ce1e6 55%, #8ab4ff); }
.kto-tag:hover, .kto-tags-line button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -6px rgba(9,214,154,.45); }
.kto-tags-line button.is-on, .kto-tag--more { background: var(--g) border-box; color: #fff; }
.kto-tags-line button.is-on span { background: none; color: #fff; -webkit-text-fill-color: #fff; }
.kto-tag--more { color: #fff; }
.kto-tag--more[hidden], .kto-tag.is-hidden { display: none; }
.kto-tag.is-current { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent), 0 6px 18px -6px rgba(9,214,154,.5); }
.kto-tags-line { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 12px; padding: 2px; cursor: grab; user-select: none; }
.kto-tagrow-sec { margin-top: 18px; }
.kto-tagrow { display: flex; flex-wrap: wrap; gap: 10px; }

.kto-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; position: relative; z-index: 2; }
.kto-crumbs a { color: var(--muted); text-decoration: none; }
.kto-crumbs a:hover { color: var(--accent-ink); }

@media (max-width: 900px) {
  .kto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .kto-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .kto { margin-top: 44px; }
  .kto-pcard { flex-basis: 140px; }
  .kto-scard { flex-basis: 168px; }
  .kto-title { font-size: 15px; }
  .kto-tagrow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 6px; }
  .kto-tagrow .kto-tag--more { display: none; }
}

/* 14.10.2026: как на основе /fotosessiya — заголовок сверху, фото видны уже на первом экране.
   Первый экран без высоты «во весь экран», блок «Кто в кадре?» сразу под ним. */
.kto-page .hero, .kto-hub .hero { min-height: 0 !important; justify-content: flex-start; padding-bottom: 32px; margin-bottom: 0; }
.kto-page .kto, .kto-hub .kto { margin-top: 26px; }
.kto-page .kto-head, .kto-hub .kto-head { margin-bottom: 18px; }
.kto-page .kto-head h2, .kto-hub .kto-head h2 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 6px; }
@media (max-width: 640px) {
  .kto-page .hero, .kto-hub .hero { padding-bottom: 22px; }
  .kto-page .kto, .kto-hub .kto { margin-top: 18px; }
}

/* 14.10.2026: граница между первым экраном и «Кто в кадре?» размыта — низ первого экрана
   (вместе с квазаром) плавно уходит в цвет страницы, без рамки и тени снизу. Только белая тема. */
html.qz-white:not([data-theme="dark"]) .kto-hub .hero,
html.qz-white:not([data-theme="dark"]) .kto-page .hero { box-shadow: none; border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 96px; }
html.qz-white:not([data-theme="dark"]) .kto-hub .hero,
html.qz-white:not([data-theme="dark"]) .kto-page .hero {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 120px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 120px), transparent);
}
html.qz-white:not([data-theme="dark"]) .kto-hub .kto,
html.qz-white:not([data-theme="dark"]) .kto-page .kto { margin-top: 0; }
/* плитка тегов над «Кто в кадре?» — отступ, чтобы не липла к заголовку */
.kto-tagrow-sec + .kto { margin-top: 28px !important; }

/* 15.10.2026: карточки слайдера фото — как на скрине Ауры: белая карточка, фото сверху, подпись внутри снизу */
.kto-pcard { background: var(--surface); border-radius: 18px; box-shadow: var(--sh-2); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.kto-pcard:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.kto-pcard-img { border-radius: 0; box-shadow: none; aspect-ratio: 9 / 16; }
.kto-pcard:hover .kto-pcard-img { box-shadow: none; }
.kto-pcard-t { margin: 0; padding: 11px 12px 13px; font-size: 13.5px; font-weight: 600; }
.kto-slider { padding: 4px 4px 14px; }
.kto-grid--sets ~ .kto-slider-wrap, .kto-grid--sets .kto-slider-wrap { margin-top: 28px; }

/* 15.10.2026: все фото страницы под слайдером — как у Ауры: 4 в ряд, крупное фото, подпись и «Открыть фото» */
.kto-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; margin-top: 36px; }
.kto-ph { display: flex; flex-direction: column; min-width: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.kto-ph-img { display: block; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--panel-2); box-shadow: var(--sh-2); transition: transform .25s, box-shadow .25s; }
.kto-ph-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kto-ph:hover .kto-ph-img { transform: translateY(-2px); box-shadow: var(--sh-3); }
.kto-ph-t { margin-top: 12px; font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1.25; }
.kto-ph-sub { margin-top: 3px; font-size: 13px; color: var(--muted); }
.kto-ph:hover .kto-ph-sub { color: var(--accent-ink); }
@media (max-width: 900px) { .kto-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } }
.kto-sub:empty { display: none; }

/* 15.10.2026: добивка ряда сетов свободными фото — на ПК до 4 в ряд, на телефоне до 2 */
.kto-card--fill { display: none; }
@media (min-width: 901px) { .kto-card--fill.f-pc { display: flex; } }
@media (max-width: 900px) { .kto-card--fill.f-mob { display: flex; } }

/* 18.10.2026: в сетке только отдельные кадры; где их нет — пустую сетку прячем */
.kto-photos:empty { display: none; }

