/* ============================================================
   click.css — страница «Клик» (/click)
   Верхний горизонтальный навбар (самостоятельный, только на этой странице).
   Палитра берётся из styles.css :root.
   ============================================================ */

.page-click { overflow-x: hidden; }
/* Общий styles.css задаёт body{display:flex;overflow:hidden} (расчёт под rail
   со своим скроллом). У Клика свой верхний навбар и обычный скролл страницы —
   возвращаем нормальное поведение тела, иначе на десктопе нижние секции
   обрезаются (body не прокручивается). */
body.page-click { display: block; overflow-x: hidden; overflow-y: auto; height: auto; min-height: 100vh; }
html:has(body.page-click) { height: auto; overflow-y: auto; }
.page-click .rail { display: none !important; } /* прячем общий rail — у Клика свой верхний навбар */

/* ===== ВЕРХНИЙ ЦЕНТРАЛЬНЫЙ НАВБАР ===== */
.cl-topnav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 80;
  display: flex; align-items: center; gap: 6px;
  background: rgba(20,19,28,.72); backdrop-filter: blur(18px); border: 1px solid var(--line-strong);
  border-radius: 18px; padding: 8px; box-shadow: 0 16px 50px -18px rgba(0,0,0,.6);
}
.cl-tlogo { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-right: 4px; }
.cl-tlogo svg { width: 23px; height: 23px; }
.cl-tn { display: flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 12px; color: var(--text-2); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none; background: none; border: none; font-family: inherit; }
.cl-tn svg { width: 18px; height: 18px; }
.cl-tn:hover { color: var(--text); background: rgba(255,255,255,.04); }
.cl-tn.on { background: #ffffff; color: #111111; }
@media (max-width: 980px) { .cl-tn-label { display: none; } .cl-tn { padding: 10px; } }
@media (max-width: 820px) {
  .cl-topnav { top: 8px; left: 5px; right: 5px; transform: none; justify-content: space-between; border-radius: 16px; gap: 2px; }
}

.cl-page { padding-top: 92px; padding-left: 28px; padding-right: 28px; max-width: 1296px; margin: 0 auto; }
@media (max-width: 820px) { .cl-page { padding-top: 74px; padding-left: 5px; padding-right: 5px; } }

.cl-section { padding: 42px 0; }
.cl-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.cl-sec-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.6vw, 30px); line-height: 1.05; letter-spacing: -.01em; }
.cl-sec-head .lk { color: var(--text-2); font-weight: 600; font-size: 13.5px; white-space: nowrap; text-decoration: none; }
.cl-sec-head .lk:hover { color: var(--lime); }
.cl-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.cl-eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--lime); }

/* HERO мини */
.cl-hero { text-align: center; padding: 20px 0 30px; }
.cl-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 5vw, 56px); line-height: 1; letter-spacing: -.02em; }
.cl-hero h1 .g { background: linear-gradient(115deg, var(--accent-2), var(--pink) 60%, var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cl-hero p { color: var(--text-2); font-size: 16px; max-width: 520px; margin: 16px auto 0; }

/* ВИДЕО-БЛОКИ */
.cl-vrow { display: flex; gap: 14px; overflow-x: auto; padding: 6px 0 14px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.cl-vrow::-webkit-scrollbar { display: none; }
.cl-vcard { flex: 0 0 360px; height: 240px; border-radius: 18px; overflow: hidden; position: relative; border: 1px solid var(--line); scroll-snap-align: start; cursor: pointer; }
.cl-vcard img { width: 100%; height: 100%; object-fit: cover; }
.cl-vcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(8,8,10,.9)); }
.cl-vm { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; }
.cl-vm b { font-family: var(--font-display); font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 7px; }
.cl-vm b i { font-style: normal; font-size: 10px; background: var(--lime); color: var(--lime-ink); padding: 2px 7px; border-radius: 5px; }
.cl-vm small { font-size: 12px; color: var(--text-2); display: block; margin-top: 2px; }
.cl-vp { position: absolute; top: 12px; right: 12px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; background: rgba(8,8,10,.6); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; }
.cl-vp svg { width: 13px; height: 13px; color: #fff; }
@media (max-width: 820px) { .cl-vcard { flex-basis: 280px; height: 185px; } }

/* 2 БАННЕРА (512:720) */
.cl-banners { display: grid; grid-template-columns: 512fr 720fr; gap: 16px; margin: 8px 0; }
@media (max-width: 900px) { .cl-banners { grid-template-columns: 1fr; } }
.cl-banner { height: 300px; border-radius: 22px; overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: center; padding: 34px; border: 1px solid var(--line-strong); cursor: pointer; }
.cl-banner.b1 { background: linear-gradient(125deg, #2a0f1c, #1a1020); }
.cl-banner.b1::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 300px at 85% 25%, rgba(255,80,151,.42), transparent 62%); }
.cl-banner.b2 { background: linear-gradient(125deg, #120d24, #0f1420); }
.cl-banner.b2::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 320px at 80% 70%, rgba(124,92,255,.4), transparent 62%), radial-gradient(360px 260px at 15% 20%, rgba(228,244,130,.16), transparent 60%); }
.cl-banner .bin { position: relative; z-index: 2; }
.cl-banner .btag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--lime); margin-bottom: 10px; font-family: var(--font-display); }
.cl-banner h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 34px); line-height: .98; margin-bottom: 8px; }
.cl-banner p { color: var(--text-2); font-size: 14px; margin-bottom: 18px; max-width: 340px; }
.cl-banner .bbtn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 11px; background: var(--lime); color: var(--lime-ink); font-weight: 700; font-size: 14px; font-family: var(--font-display); }
.cl-banner.b2 .bbtn { background: rgba(255,255,255,.12); color: #fff; border: 1px solid var(--line-strong); backdrop-filter: blur(6px); }

/* КАТАЛОГ ФОТОСЕССИЙ */
.cl-preset-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 16px; scrollbar-width: none; }
.cl-preset-bar::-webkit-scrollbar { display: none; }
.cl-pchip { flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.cl-pchip.on { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.cl-pchip:hover:not(.on) { color: var(--text); border-color: var(--line-strong); }
.cl-preset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .cl-preset-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cl-preset-grid { grid-template-columns: repeat(2, 1fr); } }
.cl-preset { border-radius: 16px; overflow: hidden; position: relative; aspect-ratio: 3/4; border: 1px solid var(--line); cursor: pointer; }
.cl-preset img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cl-preset:hover img { transform: scale(1.05); }
.cl-preset::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8,8,10,.9)); }
.cl-preset .pn { position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 2; font-weight: 700; font-size: 14px; }
.cl-preset .pc { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; background: rgba(8,8,10,.65); backdrop-filter: blur(5px); padding: 4px 8px; border-radius: 7px; }
.cl-preset .pc .co { width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe7a3, #e8b54b); }

/* ВИДЕО-ФУНКЦИОНАЛ С ПЕРСОНАЖЕМ */
.cl-magic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .cl-magic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cl-magic-grid { grid-template-columns: 1fr; } }
.cl-mfx { position: relative; border-radius: 20px; overflow: hidden; min-height: 230px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; isolation: isolate; cursor: pointer; }
.cl-mfx img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s; }
.cl-mfx:hover img { transform: scale(1.04); }
.cl-mfx::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,8,10,.1), rgba(8,8,10,.5) 55%, rgba(8,8,10,.95)); }
.cl-mfx .ic { position: absolute; top: 14px; left: 14px; width: 38px; height: 38px; border-radius: 11px; background: rgba(8,8,10,.55); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; color: var(--lime); }
.cl-mfx .ic svg { width: 20px; height: 20px; }
.cl-mfx .vbadge { position: absolute; top: 14px; right: 14px; font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 6px; background: #ffffff; color: #111111; font-family: var(--font-display); }
.cl-mfx .vbadge.soon { background: rgba(8,8,10,.6); color: var(--text-2); backdrop-filter: blur(6px); }
.cl-mfx h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 5px; }
.cl-mfx p { color: var(--text-2); font-size: 13px; line-height: 1.4; }

/* плашка персонажа */
.cl-char-banner { display: flex; align-items: center; gap: 16px; background: radial-gradient(500px 200px at 10% 50%, rgba(124,92,255,.18), transparent 60%), var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; padding: 16px 20px; margin-bottom: 20px; flex-wrap: wrap; }
.cl-char-banner .cav { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--pink)); border: 2px solid var(--lime); flex-shrink: 0; }
.cl-char-banner .cmeta b { font-weight: 700; font-size: 15px; display: block; }
.cl-char-banner .cmeta span { font-size: 13px; color: var(--text-3); }
.cl-char-banner .cswitch { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 11px; background: rgba(255,255,255,.06); border: 1px solid var(--line-strong); font-weight: 600; font-size: 13px; cursor: pointer; color: var(--text); }
.cl-char-banner .cswitch svg { width: 15px; height: 15px; }

/* FOOTER */
.cl-foot { border-top: 1px solid var(--line); padding: 38px 0; text-align: center; color: var(--text-3); font-size: 13px; margin-top: 30px; }
.cl-foot .fl { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--text); margin-bottom: 6px; }

/* reveal — включается ТОЛЬКО когда JS пометил body классом cl-anim.
   Без JS (или если observer не сработал) секции видимы по умолчанию. */
.cl-anim .cl-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.cl-anim .cl-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .cl-anim .cl-reveal { opacity: 1; transform: none; } }
