/* guesthero-20261111: guest home (/ and /en/) — Syntx-style hero: closed menu (logo + burger), text left, tall video card right. */
body.guest-home .topbar{display:none !important}
.gh-top{position:sticky;top:0;z-index:60;display:flex;align-items:center;gap:16px;height:60px;padding:0 20px;background:var(--glass,rgba(255,255,255,.8));backdrop-filter:blur(16px) saturate(1.3);-webkit-backdrop-filter:blur(16px) saturate(1.3);border-bottom:1px solid var(--border)}
.gh-menu{position:relative;flex:none}
.gh-burger{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 8px 0 4px;cursor:pointer;list-style:none;color:var(--text);border:1px solid transparent;user-select:none;-webkit-tap-highlight-color:transparent}
.gh-burger::-webkit-details-marker{display:none}.gh-burger::marker{content:''}
.gh-burger:hover,.gh-menu[open] > .gh-burger{border-color:var(--border);background:var(--surface)}
.gh-burger .brand-mark{width:30px;height:30px}
.gh-burger > .ico{width:20px;height:20px}
.gh-drop{position:absolute;left:0;top:calc(100% + 8px);min-width:248px;display:flex;flex-direction:column;padding:6px;background:var(--surface);border:1px solid var(--border);box-shadow:0 18px 48px rgba(20,10,40,.18),0 2px 8px rgba(20,10,40,.08);animation:gh-in .16s ease both}
@keyframes gh-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.gh-item{display:flex;align-items:center;gap:10px;min-height:40px;padding:8px 12px;color:var(--text);font-weight:700;font-size:.92rem;text-decoration:none;cursor:pointer;list-style:none;white-space:nowrap}
.gh-item::-webkit-details-marker{display:none}.gh-item::marker{content:''}
.gh-item .ico{width:18px;height:18px;flex:none;color:var(--accent-ink,var(--accent))}
.gh-item > span{flex:1}
.gh-item:hover,.gh-sub[open] > .gh-item{background:var(--accent-soft);color:var(--text)}
.gh-item.on{color:var(--accent-ink)}
.gh-chev{width:14px !important;height:14px !important;color:var(--text-dim) !important;transition:transform .15s}
.gh-sub{position:relative;border-top:1px solid var(--border);margin-top:4px;padding-top:4px}
.gh-sub + .gh-sub{border-top:0;margin-top:0;padding-top:0}
.gh-subdrop{display:flex;flex-direction:column;padding:6px;background:var(--surface);border:1px solid var(--border)}
.gh-subdrop .gh-item{font-size:.88rem}
.gh-subdrop .gh-item > span{color:var(--text-dim);font-weight:600}
@media (min-width:761px){
  .gh-subdrop{position:absolute;left:calc(100% + 10px);top:0;min-width:240px;box-shadow:0 18px 48px rgba(20,10,40,.18)}
}
@media (max-width:760px){
  .gh-sub[open] .gh-chev{transform:rotate(90deg)}
  .gh-subdrop{border:0;border-left:2px solid var(--accent-line);margin:0 0 4px 20px;padding:2px 0 2px 6px}
  .gh-drop{position:fixed;left:10px;right:10px;top:66px;min-width:0;max-height:calc(100dvh - 150px);overflow:auto}
}
.gh-nav{flex:1;display:flex;justify-content:center;gap:28px}
.gh-nav a{color:var(--text);font-weight:700;font-size:.92rem;text-decoration:none;opacity:.82}
.gh-nav a:hover{opacity:1;color:var(--accent-ink)}
.gh-right{display:flex;align-items:center;gap:10px;margin-left:auto}
.gh-right .theme-cycle{width:38px;height:38px}
body.guest-home .gh-search{width:38px;height:38px;border-radius:999px !important;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer}
.gh-search .ico{width:18px;height:18px}
.gh-search:hover{border-color:var(--accent-line);color:var(--accent-ink)}
.gh-login{white-space:nowrap}
@media (max-width:760px){.gh-nav{display:none}.gh-top{padding:0 10px;gap:8px;height:56px}.gh-right .theme-cycle{display:none}}

/* hero */
body.guest-home .app-search-fab{display:none !important}
.hero2.hero-sx{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:48px;text-align:left;padding:16px 0 36px}
.hero2.hero-sx::before{left:0;transform:none;width:100%;background:radial-gradient(50% 60% at 82% 40%,rgba(124,92,255,.22),transparent 70%),radial-gradient(40% 45% at 15% 20%,rgba(176,140,255,.16),transparent 70%),radial-gradient(35% 40% at 70% 90%,rgba(255,77,157,.10),transparent 70%)}
.hsx-left{min-width:0;max-width:680px}
.hsx-brand{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.hsx-brand .brand-mark{width:48px;height:48px;padding:3px}
.hsx-brand-name{font-size:clamp(1.8rem,3.4vw,2.6rem);font-weight:800;letter-spacing:-.02em;color:var(--text)}
.hero-sx .eyebrow{margin-bottom:18px}
.hero-sx h1{font-size:clamp(2rem,4.2vw,3.25rem);line-height:1.08;margin-bottom:18px}
.hero-sx h1 > br + .grad-text{display:inline-block;margin-top:4px}
.hero-sx .subtitle{margin:0 0 22px;max-width:600px;font-size:clamp(1rem,1.6vw,1.14rem)}
.hsx-models{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0 0 8px}
.hsx-model{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:.9rem;color:var(--text);white-space:nowrap}
.hsx-model .vlogo,.hsx-model .ico{width:16px;height:16px;flex:none;object-fit:contain}
.hsx-more{margin:0 0 24px;color:var(--text-dim);font-size:.88rem}
.hero-sx .hero-actions{justify-content:flex-start;margin-bottom:16px}
.hero-sx .hero-trust,.hero-sx .hero-dev{margin-left:0;margin-right:0;justify-content:flex-start;text-align:left}
.hero-sx .chips{justify-content:flex-start;margin-top:14px}
.hsx-terms{margin:14px 0 0;font-size:.8rem;color:var(--text-dim)}
.hsx-terms a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.hsx-right{display:flex;justify-content:flex-end;align-self:start;position:sticky;top:76px}
.hsx-video{position:relative;margin:0;height:min(calc(100dvh - 104px),760px);min-height:440px;aspect-ratio:9/16;overflow:hidden;background:#0d0b14;border:1px solid rgba(176,140,255,.35);box-shadow:0 30px 80px rgba(60,30,140,.35),0 6px 18px rgba(20,10,40,.2)}
.hsx-video video{display:block;width:100%;height:100%;object-fit:cover}
body.guest-home .hsx-play{position:absolute;right:14px;bottom:14px;width:40px;height:40px;border-radius:50% !important;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid rgba(255,255,255,.55);background:rgba(18,16,22,.55);color:#fff;cursor:pointer;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);transition:transform .15s,background .15s}
.hsx-play:hover{background:rgba(124,92,255,.8);transform:scale(1.06)}
.hsx-play svg{width:16px;height:16px;fill:currentColor}
.hsx-play .i-play{display:none}
.hsx-video.is-paused .hsx-play .i-play{display:block}
.hsx-video.is-paused .hsx-play .i-pause{display:none}
@media (max-width:1100px){.hero2.hero-sx{gap:28px}.hsx-video{height:min(calc(100dvh - 130px),620px)}}
@media (max-width:900px){
  .hero2.hero-sx{grid-template-columns:1fr;min-height:0;padding:20px 0 28px}
  .hsx-left{max-width:none}
  .hsx-right{justify-content:center;position:static}
  .hsx-video{height:auto;width:min(78vw,340px);min-height:0}
}
@media (max-width:560px){
  .hsx-brand{margin-bottom:14px}.hsx-brand .brand-mark{width:42px;height:42px}
  .hero-sx h1{font-size:clamp(1.55rem,7.2vw,2rem)}
  .hsx-models{gap:6px 12px}.hsx-model{font-size:.84rem}
  .hero-sx .hero-actions{align-items:stretch}
  .hero-sx .chips{align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){.gh-drop{animation:none}}
/* guesthero2-20261111: no centre links in the guest top bar (all are in the burger menu); only the hero video card is rounded. */
body.guest-home .gh-nav{display:none !important}
body.guest-home .hero-sx .hsx-video{border-radius:20px !important;overflow:hidden;isolation:isolate}
body.guest-home .hero-sx .hsx-video video{border-radius:20px !important}
/* guesthero3-20261111: guest top bar = only logo + burger; «Войти» lives in the burger menu (added by guest-home.js). */
body.guest-home .gh-right{display:none !important}
.gh-item.gh-login-item{font-weight:800;color:var(--accent-ink)}
/* guesthero4-20261111: the pink .glow-bg orb (left:-200px) and the left radial used to sit under the dark sidebar; guests have no sidebar, so drop them here. */
body.guest-home .glow-bg span:nth-child(2){display:none !important}
body.guest-home .glow-bg{background:radial-gradient(420px 260px at 110% -10%,rgba(140,110,255,.16),transparent 70%) !important}
html[data-theme="light"] body.guest-home .glow-bg{background:radial-gradient(420px 260px at 110% -10%,rgba(160,130,255,.22),transparent 70%) !important}
/* logo-20261111: official МиксМедиа logo (transparent, light/dark text) in the hero, burger button and menu header. */
.hsx-brand .mm-logo{display:block;height:80px;width:auto}
.hsx-brand .mm-logo-d{display:none}
html[data-theme="dark"] .hsx-brand .mm-logo-d{display:block}
html[data-theme="dark"] .hsx-brand .mm-logo-l{display:none}
@media (max-width:560px){.hsx-brand .mm-logo{height:58px}}
body.guest-home .gh-burger .brand-mark{background:none !important;padding:0;width:32px;height:32px}
body.guest-home .gh-burger .brand-mark i{background:url('/static/img/brand/mm-logo-icon@2x.png') center/contain no-repeat !important}
.gh-drop-head{display:flex;align-items:center;padding:8px 12px 10px;margin-bottom:4px;border-bottom:1px solid var(--border)}
.gh-drop-head img{height:38px;width:auto;display:block}
.gh-drop-head .mm-logo-d{display:none}
html[data-theme="dark"] .gh-drop-head .mm-logo-d{display:block}
html[data-theme="dark"] .gh-drop-head .mm-logo-l{display:none}
/* theme-20261111: guests keep the theme toggle (round, the only item on the right); search and «Войти» stay hidden. */
body.guest-home .gh-right{display:flex !important}
body.guest-home .gh-right .gh-search,body.guest-home .gh-right .gh-login{display:none !important}
body.guest-home .gh-right .theme-cycle{display:inline-flex !important;width:38px;height:38px;border-radius:50% !important}
/* sound-20261111: speaker toggle next to play/pause */
body.guest-home .hsx-snd{position:absolute;right:62px;bottom:14px;width:40px;height:40px;border-radius:50% !important;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid rgba(255,255,255,.55);background:rgba(18,16,22,.55);color:#fff;cursor:pointer;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);transition:transform .15s,background .15s}
.hsx-snd:hover{background:rgba(124,92,255,.8);transform:scale(1.06)}
.hsx-snd svg{width:18px;height:18px;fill:currentColor}
.hsx-snd .i-sound{display:none}
.hsx-video.is-sound .hsx-snd .i-sound{display:block}
.hsx-video.is-sound .hsx-snd .i-muted{display:none}
.hsx-video:not(.is-sound) video{cursor:pointer}
/* seam-20261111: the hero glow (::before) was clipped to the 1240px .wrap box, leaving a flat band at the left/right edges on screens wider than the wrap. Stretch it to the full viewport. */
body.guest-home main{overflow-x:clip}
.hero2.hero-sx::before{left:calc(50% - 50vw) !important;width:100vw !important;transform:none !important;background:radial-gradient(38% 60% at 75% 40%,rgba(124,92,255,.22),transparent 70%),radial-gradient(32% 45% at 25% 20%,rgba(176,140,255,.14),transparent 70%),radial-gradient(30% 40% at 65% 90%,rgba(255,77,157,.09),transparent 70%) !important}
/* cta-20261111: one gradient CTA «Попробовать бесплатно ✦», consent line right under it */
.hero-sx .hsx-actions{margin-bottom:8px}
.hero-sx .hsx-cta{min-width:280px;justify-content:center;gap:10px}
.hsx-cta-star{font-size:1.05em;line-height:1}
.hero-sx .hsx-actions + .hsx-terms{margin:0 0 18px}
@media (max-width:560px){.hero-sx .hsx-cta{min-width:0;width:100%}}

/* slim-20261111: compact guest home below the hero — Why · Tasks · Models · FAQ · footer. Section subtitles sit left under their h2, even rhythm. */
body.guest-home .hsec{margin-top:88px}
body.guest-home .hero-sx + .hsec,body.guest-home #why{margin-top:72px}
body.guest-home .hsec .section-head{margin-bottom:22px}
body.guest-home .hsec .section-head h2{margin-bottom:8px}
body.guest-home .hsec .section-head p{margin-left:0 !important;margin-right:0 !important;text-align:left;max-width:640px}
body.guest-home #models .model-card{content-visibility:visible}
body.guest-home #faq{margin-bottom:88px}
@media (max-width:760px){body.guest-home .hsec{margin-top:56px}body.guest-home #why{margin-top:48px}body.guest-home #faq{margin-bottom:56px}}

/* lightlogo-20261111: light theme — dark-ink logos so they do not melt into white (hero lockup + menu head use mm-logo-full-ink via markup). */
html[data-theme="light"] body.guest-home .gh-burger .brand-mark i{background-image:url("/static/img/brand/mm-logo-icon-ink@2x.png") !important}
html[data-theme="light"] .hero-sx .hsx-model .vlogo{filter:brightness(0) !important;opacity:.88}
html[data-theme="light"] .hero-sx .hsx-model .ico{color:#15121d}

/* langswitch-20261111: compact RU/EN pill next to the theme button in the guest top bar */
body.guest-home .gh-right{align-items:center;gap:8px}
.gh-lang{display:inline-flex;align-items:center;height:38px;padding:3px;border:1px solid var(--border);background:var(--surface);border-radius:999px !important}
.gh-lang a{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:30px;padding:0 8px;border-radius:999px !important;font-size:12px;font-weight:700;letter-spacing:.03em;color:var(--text-dim);text-decoration:none}
.gh-lang a:hover{color:var(--text)}
.gh-lang a.on{background:var(--text);color:var(--bg)}


/* authhome-20261111: logged-in home — same slim hero + sections as guests; keep the appside rail and the regular header. */
body.auth-home .hsx-play{position:absolute;right:14px;bottom:14px;width:40px;height:40px;border-radius:50% !important;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid rgba(255,255,255,.55);background:rgba(18,16,22,.55);color:#fff;cursor:pointer;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);transition:transform .15s,background .15s}
body.auth-home .hsx-snd{position:absolute;right:62px;bottom:14px;width:40px;height:40px;border-radius:50% !important;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid rgba(255,255,255,.55);background:rgba(18,16,22,.55);color:#fff;cursor:pointer;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);transition:transform .15s,background .15s}
body.auth-home .hero-sx .hsx-video{border-radius:20px !important;overflow:hidden;isolation:isolate}
body.auth-home .hero-sx .hsx-video video{border-radius:20px !important}
body.auth-home main{overflow-x:clip}
body.auth-home .hsec{margin-top:88px}
body.auth-home .hero-sx + .hsec,body.auth-home #why{margin-top:72px}
body.auth-home .hsec .section-head{margin-bottom:22px}
body.auth-home .hsec .section-head h2{margin-bottom:8px}
body.auth-home .hsec .section-head p{margin-left:0 !important;margin-right:0 !important;text-align:left;max-width:640px}
body.auth-home #models .model-card{content-visibility:visible}
body.auth-home #faq{margin-bottom:88px}
@media (max-width:760px){body.auth-home .hsec{margin-top:56px}body.auth-home #why{margin-top:48px}body.auth-home #faq{margin-bottom:56px}}
/* Glow stays in the content column, to the right of the rail on desktop (including a collapsed rail). */
body.auth-home{--auth-rail:0px}
@media (min-width:761px){
  body.auth-home{--auth-rail:var(--appside-w,232px)}
  html[data-appside-collapsed="1"] body.auth-home{--auth-rail:var(--appside-collapsed-w,64px)}
  body.auth-home .hero2.hero-sx::before{left:calc(50% - 50vw + var(--auth-rail) / 2) !important;width:calc(100vw - var(--auth-rail)) !important}
  body.auth-home .hsx-right{top:16px}
  body:has(#mm-ab).auth-home .hsx-right{top:48px}
}
