/* Stream Panel — публичный сайт (поверх portal.css) */

/* ---------- шапка, языки, подвал ---------- */
.site-top .wrap { gap: 16px; }
.site-nav { flex: 1; justify-content: center; }
.lang-sw { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; padding: 3px; gap: 2px; background: rgba(0,0,0,.3); }
.lang-sw button { border: 0; background: none; color: var(--muted); font: 800 12px Manrope, sans-serif; padding: 5px 9px; border-radius: 7px; cursor: pointer; }
.lang-sw button.on { background: var(--accent); color: var(--accent-ink); }
.burger { display: none; border: 1px solid var(--line-strong); background: none; color: var(--text); border-radius: 9px; padding: 6px 10px; font-size: 16px; cursor: pointer; }
@media (max-width: 920px) {
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: rgba(8,8,12,.97); padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .site-top.open .site-nav { display: flex; }
  .burger { display: inline-block; }
  #authNav a:not(.btn) { display: none; }
}
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 44px 0 24px; background: rgba(0,0,0,.25); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 24px; }
.foot-grid h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.foot-grid a:not(.logo) { display: block; color: var(--text); opacity: .8; margin-bottom: 8px; font-size: 14px; }
.foot-grid a:not(.logo):hover { opacity: 1; color: var(--accent); text-decoration: none; }
.foot-bottom { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- главная: первый экран ---------- */
.hero2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 64px 0 30px; }
.hero2 h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; margin-bottom: 18px; }
.hero2 h1 em { font-style: normal; display: block; background: linear-gradient(90deg, #ffb547, #ff4d8d, #7c6fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero2 .lead { font-size: 17px; color: #b8b8c8; max-width: 560px; margin-bottom: 26px; }
@media (max-width: 900px) { .hero2 { grid-template-columns: 1fr; padding-top: 40px; } }

/* макет телефона с эфиром */
.phone { position: relative; width: min(340px, 100%); margin: 0 auto; aspect-ratio: 9 / 17; border-radius: 34px; padding: 10px; background: linear-gradient(160deg, #2a2a3a, #12121a); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08) inset; }
.phone .screen { position: relative; height: 100%; border-radius: 26px; overflow: hidden; background: radial-gradient(120% 70% at 70% 20%, #3a2350, #120f1c 60%), #0e0d16; }
.phone .live { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; }
.phone .live .av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #ffb547, #ff4d8d); display: grid; place-items: center; color: #160a12; }
.phone .live .tag { background: #ff2d55; color: #fff; padding: 2px 7px; border-radius: 6px; font-size: 10.5px; }
.phone .live .vw { margin-left: auto; background: rgba(0,0,0,.4); padding: 3px 8px; border-radius: 99px; }
.phone .ptop { position: absolute; top: 56px; left: 14px; width: 160px; background: rgba(10,10,16,.6); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 8px 10px; font-size: 11.5px; backdrop-filter: blur(6px); }
.phone .ptop b { display: block; font-size: 10px; letter-spacing: .12em; color: #ffc56b; margin-bottom: 4px; }
.phone .ptop div { display: flex; justify-content: space-between; padding: 2px 0; }
.phone .ptop i { font-style: normal; color: #ffc56b; font-weight: 800; }
.phone .chat { position: absolute; left: 14px; right: 60px; bottom: 70px; display: grid; gap: 6px; font-size: 12px; }
.phone .chat div { background: rgba(0,0,0,.35); padding: 5px 9px; border-radius: 10px; width: fit-content; max-width: 100%; }
.phone .chat b { color: #a99bff; margin-right: 6px; }
.phone .alertbox { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%) scale(.8); opacity: 0; width: 84%; text-align: center; padding: 14px 12px; border-radius: 18px; background: rgba(14,12,22,.88); box-shadow: 0 0 0 1.5px rgba(255,106,156,.7), 0 0 40px rgba(255,77,141,.35); transition: .35s cubic-bezier(.2,.9,.3,1.2); }
.phone .alertbox.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.phone .alertbox .n { font: 800 17px Unbounded, Manrope, sans-serif; }
.phone .alertbox .a { display: inline-block; margin: 6px 0; padding: 3px 12px; border-radius: 99px; background: linear-gradient(90deg, #ffb547, #ff4d8d); color: #160a12; font-weight: 800; }
.phone .alertbox .m { font-size: 12.5px; color: #d8d8e4; }
.phone .alertbox .tts { margin-top: 6px; font-size: 10.5px; color: #a99bff; letter-spacing: .08em; text-transform: uppercase; }
.phone .bank { position: absolute; left: 12px; right: 12px; top: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(245,245,250,.96); color: #111; font-size: 12px; transform: translateY(-140%); transition: .35s ease; z-index: 2; }
.phone .bank.on { transform: none; }
.phone .bank b { display: block; font-size: 11px; color: #e11d48; }
.phone .demo-btn { position: absolute; left: 14px; right: 14px; bottom: 14px; }

/* цифры */
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 10px 0 20px; }
.stats3 .card { text-align: center; padding: 20px; margin: 0; }
.stats3 .v { font: 800 30px Unbounded, sans-serif; background: linear-gradient(90deg, #ffb547, #ff4d8d); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 640px) { .stats3 { grid-template-columns: 1fr; } }

/* шаги */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.flow .card { margin: 0; }
.flow .num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 800 16px Unbounded, sans-serif; color: #160a12; background: linear-gradient(135deg, #ffb547, #ff4d8d); margin-bottom: 14px; box-shadow: 0 8px 24px rgba(255,77,141,.3); }
.flow .mock { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid var(--line); font-size: 12.5px; color: #c8c8d8; }
.flow .mock b { color: #ffc56b; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } }

/* витрина виджетов */
.wshow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wshow .card { padding: 0; overflow: hidden; margin: 0; }
.wshow .stage { height: 170px; display: grid; place-items: center; background: repeating-conic-gradient(#15151e 0 25%, #191924 0 50%) 0 0 / 22px 22px; border-bottom: 1px solid var(--line); padding: 14px; }
.wshow .txt { padding: 16px 18px; }
.wshow .txt h3 { margin-bottom: 6px; }
@media (max-width: 960px) { .wshow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .wshow { grid-template-columns: 1fr; } }
.m-alert { text-align: center; padding: 12px 18px; border-radius: 16px; background: rgba(14,12,22,.9); box-shadow: 0 0 0 1.5px rgba(255,106,156,.6), 0 0 30px rgba(255,77,141,.3); }
.m-alert .n { font: 800 16px Unbounded, sans-serif; }
.m-alert .a { display: inline-block; margin: 5px 0; padding: 2px 10px; border-radius: 99px; background: linear-gradient(90deg, #ffb547, #ff4d8d); color: #160a12; font-weight: 800; font-size: 13px; }
.m-top { width: 100%; max-width: 230px; font-size: 13px; }
.m-top div { display: flex; gap: 8px; align-items: center; padding: 4px 0; }
.m-top i { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; background: #262636; }
.m-top div:first-child i { background: linear-gradient(135deg, #ffb547, #ff4d8d); color: #160a12; }
.m-top span { flex: 1; }
.m-top b { color: #ffc56b; }
.m-voice { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(14,12,22,.9); border: 1px solid var(--line-strong); }
.m-voice .play { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #7c6fff, #ff4d8d); }
.m-voice .wave { display: flex; gap: 3px; align-items: center; height: 26px; }
.m-voice .wave i { width: 3px; border-radius: 3px; background: #a99bff; animation: wv 1s ease-in-out infinite alternate; }
@keyframes wv { from { height: 5px; } to { height: 24px; } }
.m-goal { width: 100%; max-width: 260px; font-size: 13px; }
.m-goal .bar { height: 16px; border-radius: 99px; background: #262636; overflow: hidden; margin: 8px 0 5px; }
.m-goal .bar i { display: block; height: 100%; width: 68%; background: linear-gradient(90deg, #ffb547, #ff4d8d); border-radius: 99px; }
.m-wheel { width: 120px; height: 120px; border-radius: 50%; background: conic-gradient(#ffb547 0 60deg, #ff4d8d 0 120deg, #7c6fff 0 180deg, #22c55e 0 240deg, #38bdf8 0 300deg, #f472b6 0); animation: spin 6s linear infinite; box-shadow: 0 0 0 5px #1c1c28, 0 0 30px rgba(124,111,255,.35); }
@keyframes spin { to { transform: rotate(360deg); } }
.m-tt { display: grid; gap: 6px; font-size: 12.5px; width: 100%; max-width: 240px; }
.m-tt div { padding: 6px 10px; border-radius: 10px; background: rgba(0,0,0,.4); }
.m-tt b { color: #25f4ee; margin-right: 6px; }

/* состав подписки */
.fgroups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fgroups .card { margin: 0; }
.fgroups h3 { display: flex; justify-content: space-between; align-items: center; }
.fgroups h3 span { font-size: 12px; color: var(--muted); }
.fitem { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.fitem:first-of-type { border-top: 0; }
.fitem i { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: linear-gradient(135deg, #ffb547, #ff4d8d); }
.fitem b { display: block; font-size: 14px; }
.fitem small { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .fgroups { grid-template-columns: 1fr; } }

/* цены */
.pbox { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: stretch; }
.pbox .card { margin: 0; }
.pbox .periods { display: flex; gap: 6px; margin: 16px 0; flex-wrap: wrap; }
.pbox .periods button { border: 1px solid var(--line-strong); background: rgba(0,0,0,.25); color: var(--text); padding: 9px 16px; border-radius: 10px; font: 700 14px Manrope, sans-serif; cursor: pointer; }
.pbox .periods button.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.pbox .big { font: 800 44px Unbounded, sans-serif; }
.pbox .big small { font: 600 16px Manrope, sans-serif; color: var(--muted); }
.pbox .facts { display: grid; gap: 12px; }
.pbox .facts div { display: flex; justify-content: space-between; padding: 14px 16px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.pbox .facts b { color: #4ade80; }
@media (max-width: 760px) { .pbox { grid-template-columns: 1fr; } }

/* вопросы, финальный призыв */
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 16px; color: #b8b8c8; margin: 0; }
.endcta { text-align: center; padding: 50px 24px; border-radius: 24px; background: linear-gradient(120deg, rgba(255,181,71,.16), rgba(255,77,141,.14), rgba(124,111,255,.16)); border: 1px solid var(--line-strong); }
.endcta h2 { font: 800 30px Unbounded, sans-serif; margin-bottom: 10px; }

/* статьи и документы */
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(26px, 4vw, 38px); }
.article h2 { margin-top: 28px; font-size: 20px; }
.article p, .article li { color: #c8c8d8; font-size: 15.5px; line-height: 1.75; }
.article ol, .article ul { padding-left: 22px; }
.article .meta { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.doc { max-width: 820px; margin: 0 auto; }
.doc h2 { font-size: 18px; margin-top: 26px; }
.doc p, .doc li { color: #c8c8d8; line-height: 1.7; }
.guide-card { display: flex; flex-direction: column; gap: 8px; color: var(--text) !important; text-decoration: none !important; transition: transform .15s, border-color .15s; margin: 0; }
.guide-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.guide-card .num { font: 800 13px Unbounded, sans-serif; color: var(--muted); }
.guide-card .kind { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--accent); }

/* Статьи, документы, загрузки */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } }
.guide-card .ico { font-size: 30px; }
.guide-card h3 { margin: 0; font-size: 17px; }
.guide-card .more { margin-top: auto; color: var(--accent); font-weight: 700; font-size: 14px; }
.article .tip, .doc .tip { margin: 22px 0; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.article ul, .doc ul { padding-left: 22px; line-height: 1.7; }
.dl-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 860px) { .dl-hero { grid-template-columns: 1fr; } }
.dl-steps { counter-reset: s; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.dl-steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.dl-steps li::before { content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--accent); color: #fff; }
.doc-toc { position: sticky; top: 90px; display: grid; gap: 6px; font-size: 14px; }
.doc-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 36px; }
@media (max-width: 860px) { .doc-wrap { grid-template-columns: 1fr; } .doc-toc { position: static; } }
