/* Публичные страницы, установка, помощь, профиль, подвал сайта. */

/* Шапка для гостей */
.top-login { color: #fff; text-decoration: none; }
/* Уже входили в этом браузере (js/member.js): пока приложение не спросило сервер, гостевые кнопки готовой шапки не мелькают. */
.is-member:not(.is-ready) .topbar.is-public .top-login,
.is-member:not(.is-ready) .topbar.is-public .top-signup { visibility: hidden; }
.top-signup { min-height: 36px; padding: 7px 14px 5px; font-size: 12.5px; margin-left: 4px; }
.topbar.is-public .topbar-right { margin-right: 0; }

/* Подвал сайта */
.site-foot { margin-top: 48px; border-top: 1px solid var(--line); background: var(--surface); }
.site-foot-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; min-height: 72px; padding-block: 18px; font-size: 13.5px; color: var(--muted); }
.site-foot-brand { display: flex; align-items: center; gap: 14px; }
.site-foot-brand img { height: 19px; width: auto; }
.site-foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
.site-foot-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.site-foot-links a:hover { color: var(--purple-700); text-decoration: underline; text-underline-offset: 3px; }
.site-foot-copy { color: var(--faint); }
.page { padding-bottom: 32px; }

/* Кнопки на тёмном фоне */
.btn.on-dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn.on-dark:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: #fff; }

/* Рамки устройств с настоящими кадрами */
.tv-frame { position: relative; border-radius: var(--r-md); padding: 8px; background: linear-gradient(160deg, #2a2744, #14122a); box-shadow: 0 30px 70px rgba(20, 16, 50, .45), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.tv-frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; }
.phone-frame { border-radius: 26px; padding: 7px; background: #141225; box-shadow: 0 24px 50px rgba(20, 16, 50, .35), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.phone-frame img { width: 100%; height: auto; border-radius: 20px; }
.tablet-frame { border-radius: 18px; padding: 10px; background: #141225; box-shadow: 0 24px 60px rgba(20, 16, 50, .3); }
.tablet-frame img { width: 100%; height: auto; border-radius: 10px; }

/* Главная: первый экран */
.home { padding-bottom: 8px; }
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 420px at 85% 10%, rgba(151, 165, 249, .35), transparent 70%), radial-gradient(700px 360px at 10% 110%, rgba(255, 152, 0, .18), transparent 70%), linear-gradient(135deg, #353f92 0%, #4652ad 55%, #5361c0 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; padding-block: 64px 36px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #cfd5ff; }
.kicker::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--orange); }
.hero h1 { margin-top: 14px; font-size: 52px; line-height: 58px; font-weight: 700; letter-spacing: -.015em; color: #fff; }
.hero-lead { margin-top: 16px; max-width: 540px; font-size: 18px; line-height: 27px; color: #e4e7ff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-cta .btn-lg { min-height: 50px; padding-inline: 22px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: #cfd5ff; }
.hero-shot { position: relative; margin: 0; padding-right: 60px; }
.hero-phone { position: absolute; right: 0; bottom: -24px; width: 150px; }
.hero-devices { display: flex; align-items: center; gap: 10px; padding-block: 18px 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; color: #d5daff; }

/* Разделы главной */
.hsec { margin-top: 56px; }
.hsec h2 { font-size: 30px; line-height: 36px; font-weight: 700; }
.hsec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.hsec-head p { color: var(--muted); margin-top: 6px; }
.hsec-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.hsteps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hsteps li { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.hstep-n { flex: none; width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--orange); color: var(--ink); font-weight: 700; font-size: 18px; }
.hsteps h3 { font-size: 17px; }
.hsteps p { color: var(--muted); margin-top: 6px; font-size: 14.5px; line-height: 21px; }
.gallery { margin: 0; padding: 32px; border-radius: var(--r-md); background: linear-gradient(180deg, #eceefb, #e2e5f8); display: grid; justify-items: center; gap: 16px; min-height: 520px; align-content: center; }
.gallery .tv-frame { width: min(860px, 100%); }
.gallery .tablet-frame { width: min(640px, 100%); }
.gallery .phone-frame { width: 250px; }
.gallery figcaption { font-weight: 600; color: var(--ink-2); text-align: center; }
.feats { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.feat-mark { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--tint); color: var(--purple-600); margin-bottom: 14px; }
.feat h3 { font-size: 17px; }
.feat p { color: var(--muted); margin-top: 6px; font-size: 14.5px; line-height: 21px; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 32px 36px; border-radius: var(--r-md); background: var(--header-bg, var(--purple)); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e0e4ff; margin-top: 6px; }

/* Установка */
.install .in-pick { display: grid; gap: 10px; margin-bottom: 18px; }
.install .in-pick .dr-section-title { margin-top: 4px; }
.picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pick { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); text-align: left; color: var(--ink); transition: border-color .16s, box-shadow .16s, background-color .16s; }
.pick .icon { width: 24px; height: 24px; color: var(--purple-600); }
.pick span { display: grid; gap: 2px; min-width: 0; }
.pick b { font-weight: 600; font-size: 15px; }
.pick small { font-size: 12.5px; color: var(--muted); }
.pick:hover { border-color: var(--violet); }
.pick.is-on { border-color: var(--purple); background: #fafaff; box-shadow: 0 0 0 1px var(--purple) inset; }
.pick:focus-visible { outline: none; box-shadow: var(--focus); }
.in-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.in-rail { padding: 10px; position: sticky; top: calc(var(--header-h) + 12px); }
.in-rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rail-step { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 8px; border: 0; border-radius: var(--r-xs); background: none; text-align: left; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.rail-step i { flex: none; width: 24px; height: 24px; border-radius: var(--r-xs); display: grid; place-items: center; font-style: normal; font-size: 12px; background: var(--bg); color: var(--muted); }
.rail-step:hover { background: #f5f5fb; color: var(--ink); }
.rail-step.is-on { background: var(--orange-soft); color: var(--ink); }
.rail-step.is-on i { background: var(--orange); color: var(--ink); }
.rail-step.is-done i { background: var(--green); color: #fff; }
.rail-step:focus-visible { outline: none; box-shadow: var(--focus); }
.in-card { display: flex; flex-direction: column; min-height: 560px; }
.in-body { flex: 1; display: grid; gap: 22px; padding: 24px 28px 8px; }
.in-count { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--purple-600); }
.in-copy h2 { font-size: 22px; line-height: 28px; margin-top: 4px; }
.in-lead { font-size: 16px; line-height: 24px; color: var(--ink-2); margin-top: 8px; max-width: 640px; }
.in-foot { display: flex; align-items: center; gap: 8px; padding: 14px 28px; border-top: 1px solid var(--line); }
.in-foot .btn-quiet:first-child { margin-left: -10px; }
.enter { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bg); border: 1px dashed var(--line-2); }
.enter-label { flex-basis: 100%; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.enter-code { font-family: inherit; font-size: 30px; line-height: 34px; font-weight: 700; letter-spacing: .12em; color: var(--ink); }
.enter-url { font-family: ui-monospace, Menlo, monospace; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; flex: 1; min-width: 0; }
.ext-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; }
.path { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--tint); }
.path p { font-weight: 600; font-size: 14px; line-height: 21px; margin-top: 2px; color: var(--ink); }
.in-more { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.in-more summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; color: var(--purple-600); list-style: none; padding: 4px 0; border-radius: var(--r-xs); }
.in-more summary::-webkit-details-marker { display: none; }
.in-more summary:focus-visible { outline: none; box-shadow: var(--focus); }
.in-more p { color: var(--muted); font-size: 14px; line-height: 21px; margin-top: 8px; }
.in-copy .btn-primary { margin-top: 14px; }
.faq { padding: 4px 0; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:first-child { border-top: 0; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; border-radius: var(--r-xs); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex: none; color: var(--muted); transition: transform .2s var(--ease); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item summary:hover { background: #fafaff; }
.faq-item summary:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--purple); }
.faq-item p { padding: 0 18px 16px; color: var(--ink-2); line-height: 22px; max-width: 760px; }
.install .hsec h2 { font-size: 22px; margin-bottom: 12px; }

/* Иллюстрация шага: схема экрана и пульта */
.scene { margin: 0; }
.scene-stage { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding: 22px; border-radius: var(--r-md); background: linear-gradient(160deg, #eef0fb, #e2e6f8); min-height: 250px; }
.scene-device { width: min(420px, 100%); border-radius: var(--r-md); padding: 7px; background: #1b1830; box-shadow: 0 18px 36px rgba(20, 16, 50, .28); }
.scene.is-phone .scene-device { width: 190px; border-radius: 22px; padding: 7px; }
.scene-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; background: radial-gradient(400px 160px at 80% 0%, #2d2a52, #151329); color: #eceaff; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; font-size: 11px; line-height: 14px; }
.scene.is-phone .scene-screen { aspect-ratio: 9 / 17; border-radius: 16px; padding: 18px 12px; }
.sc-bar { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #bfbbe0; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.sc-bar.is-dl { color: #ffb86b; }
.sc-cards { display: flex; gap: 8px; margin-top: 4px; }
.sc-card { flex: 1; display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: #cfcbea; }
.sc-card.is-on { background: #ece9ff; color: var(--ink); box-shadow: 0 0 0 2px var(--orange); }
.sc-card b { font-size: 10.5px; }
.sc-card small { font-size: 9px; opacity: .7; }
.sc-logo { width: 28px; height: 28px; border-radius: 6px; background: rgba(255, 255, 255, .15); display: grid; place-items: center; font-style: normal; font-weight: 700; color: #fff; }
.sc-logo.is-dl { background: #f28c1f; }
.sc-logo.is-web { background: #4f7bd9; }
.sc-logo.big { width: 44px; height: 44px; font-size: 20px; }
.sc-app { display: flex; gap: 12px; align-items: center; margin: auto 0; }
.sc-app b { display: block; font-size: 14px; }
.sc-app small { display: block; opacity: .7; margin-bottom: 8px; }
.sc-field { display: flex; align-items: center; gap: 2px; height: 30px; padding: 0 10px; border-radius: 5px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; letter-spacing: .08em; }
.sc-field.is-on { box-shadow: 0 0 0 2px var(--orange); }
.sc-field.is-url { font-size: 10.5px; letter-spacing: 0; font-weight: 600; }
.sc-caret { width: 1.5px; height: 16px; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sc-btns { display: flex; gap: 6px; justify-content: flex-end; margin-top: 4px; }
.sc-btn { padding: 5px 10px; border-radius: 5px; background: rgba(255, 255, 255, .1); font-weight: 700; font-size: 10.5px; }
.sc-btn.is-on { background: var(--orange); color: var(--ink); }
.sc-title { font-size: 13px; }
.sc-progress { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.sc-progress i { display: block; height: 100%; width: 68%; background: var(--orange); animation: prog 2.4s var(--ease) infinite; }
@keyframes prog { from { width: 8%; } to { width: 92%; } }
.sc-muted { opacity: .6; }
.sc-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 5px; background: rgba(255, 255, 255, .05); }
.sc-row.is-on { background: #ece9ff; color: var(--ink); box-shadow: 0 0 0 2px var(--orange); font-weight: 700; }
.sc-toggle { margin-left: auto; order: 2; width: 26px; height: 14px; border-radius: 7px; background: var(--purple); position: relative; }
.sc-toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.sc-file { width: 12px; height: 14px; border-radius: 2px; background: #7fa0ff; }
.sc-dialog { margin: auto; width: 82%; display: grid; gap: 4px; padding: 12px; border-radius: 8px; background: #f4f3fb; color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.sc-dialog b { font-size: 12.5px; }
.sc-dialog small { color: var(--muted); }
.sc-dialog .sc-btn { background: #e3e1ef; }
.sc-dialog .sc-btn.is-on { background: var(--orange); }
.sc-launch { margin: auto; display: grid; justify-items: center; gap: 6px; text-align: center; }
.sc-launch img { height: 14px; width: auto; }
.sc-launch small { opacity: .7; }
.sc-code { font-size: 22px; letter-spacing: .14em; color: var(--orange); }
.sc-notif { display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 8px; background: #f4f3fb; color: var(--ink); font-weight: 600; font-size: 10.5px; }
.sc-notif .sc-btn { margin-left: auto; }
.sc-remote { flex: none; display: grid; justify-items: center; gap: 3px; width: 56px; padding: 12px 6px 10px; border-radius: 28px; background: #26233d; box-shadow: 0 10px 22px rgba(20, 16, 50, .3); }
.sc-remote span { display: flex; align-items: center; gap: 3px; }
.sc-remote i { width: 10px; height: 10px; border-radius: 2px; background: #4a4668; }
.sc-remote b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 8.5px; font-weight: 700; color: #cfcbea; background: #3a3658; }
.sc-remote b.is-on, .sc-remote em.is-on { background: var(--orange); color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 152, 0, .3); animation: press 1.6s ease-in-out infinite; }
.sc-remote em { margin-top: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; color: #cfcbea; background: #3a3658; }
@keyframes press { 50% { box-shadow: 0 0 0 7px rgba(255, 152, 0, .12); } }
.scene figcaption { margin-top: 8px; font-size: 12px; color: var(--faint); text-align: center; }

/* Помощь */
.help-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.help-search { flex: 1 1 420px; }
.help-search .input { min-height: 46px; font-size: 16px; }
.help-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.help-contact { padding: 20px; position: sticky; top: calc(var(--header-h) + 12px); }
.help-contact h2 { font-size: 18px; }
.help-contact > p { margin: 4px 0 14px; font-size: 14px; }
.help-contact .form-grid { grid-template-columns: 1fr; gap: 14px; }
textarea.input { resize: vertical; min-height: 110px; line-height: 21px; }
.help-contact .success { padding: 12px 0 0; }

/* Профиль */
.profile .pf { max-width: 920px; }
.pf-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; padding: 22px 24px; border-top: 1px solid var(--line); }
.pf-row:first-child { border-top: 0; }
.pf-label h2 { font-size: 16px; line-height: 22px; }
.pf-label p { color: var(--muted); font-size: 13.5px; line-height: 19px; margin-top: 4px; }
.pf-body { display: grid; gap: 12px; min-width: 0; align-content: start; }
.pf-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 34px; }
.pf-value { font-weight: 600; overflow-wrap: anywhere; }
.pf-act { margin-left: auto; margin-right: -10px; }
.pf-form { display: grid; gap: 12px; max-width: 560px; padding: 16px; border-radius: var(--r-md); background: #fafafd; border: 1px solid var(--line); }
.pf-form .field { margin: 0; }
.pf-actions { display: flex; gap: 8px; }
.pf-socials { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pf-socials li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-md); }
.pf-soc-name { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; flex-wrap: wrap; }
.pf-soc-ico { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-xs); background: var(--bg); }
.pf-soc-ico svg { width: 18px; height: 18px; }
.pf-lang { width: min(320px, 100%); min-height: 44px; }
.pf-switches { gap: 16px; }
.pf-row.is-danger h2 { color: var(--red); }
.pf-danger { color: var(--red); margin-left: -10px; justify-self: start; }
.pf-danger:hover { background: var(--red-soft); color: var(--red); }
.pf .form-ok { max-width: 560px; }

/* Адаптивность */
@media (max-width: 1180px) {
  .in-grid { grid-template-columns: 220px minmax(0, 1fr); }
  .hero h1 { font-size: 44px; line-height: 50px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; }
  .hero-shot { padding-right: 40px; }
  .hero-phone { width: 120px; }
  .hsteps, .feats { grid-template-columns: 1fr; }
  .picks { grid-template-columns: 1fr 1fr; }
  .in-grid { grid-template-columns: minmax(0, 1fr); }
  .in-rail { position: static; }
  .in-rail ol { display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .in-rail ol li { flex: none; }
  .rail-step span { display: none; }
  .rail-step.is-on span { display: inline; }
  .help-grid { grid-template-columns: 1fr; }
  .help-contact { position: static; }
  .pf-row { grid-template-columns: 1fr; gap: 10px; }
  .top-signup, .top-login { display: none; }
}
@media (max-width: 760px) {
  .hero h1 { font-size: 34px; line-height: 40px; }
  .hero-lead { font-size: 16px; line-height: 24px; }
  .hero-cta .btn { width: 100%; }
  .hsec { margin-top: 40px; }
  .hsec h2 { font-size: 24px; line-height: 30px; }
  .gallery { padding: 16px; min-height: 0; }
  .gallery .phone-frame { width: 200px; }
  .hsec-tools .seg { width: 100%; }
  .hsec-tools .seg button { flex: 1; justify-content: center; }
  .cta-band { padding: 24px 20px; }
  .cta-band .btn { width: 100%; }
  .picks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pick { min-height: 58px; padding: 8px 10px; gap: 8px; }
  .pick small { display: none; }
  .in-card { min-height: 0; }
  .in-body { padding: 16px 16px 8px; gap: 16px; }
  .scene-stage { padding: 14px; min-height: 0; gap: 10px; }
  .sc-remote { width: 44px; padding: 10px 4px; }
  .in-foot { padding: 12px 16px; position: sticky; bottom: 0; background: rgba(255, 255, 255, .97); border-radius: 0 0 var(--r-md) var(--r-md); z-index: 5; }
  .in-foot .btn-primary { flex: 1; min-height: 46px; }
  .enter-code { font-size: 26px; }
  .pf-row { padding: 18px 16px; }
  .pf-socials li { flex-wrap: wrap; }
  .site-foot-links { margin-left: 0; }
}
.hero h1 { white-space: pre-line; }

/* Установка: шаг целиком на экране — иллюстрация и текст рядом */
.in-grid { grid-template-columns: 250px minmax(0, 1fr); }
.in-card { min-height: 420px; }
.in-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 28px; padding-top: 22px; }
.in-body .scene-stage { min-height: 0; }
@media (max-width: 1180px) { .in-grid { grid-template-columns: 220px minmax(0, 1fr); } .in-body { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .in-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .in-card { min-height: 0; } }
.in-copy .btn { white-space: normal; text-align: center; max-width: 100%; }
@media (max-width: 760px) { .in-copy .btn { width: 100%; } }
@media (max-width: 760px) {
  .in-foot .btn-quiet:first-child { font-size: 0; gap: 0; min-width: 46px; }
  .in-foot .btn-quiet:first-child .icon { width: 20px; height: 20px; }
  .in-foot .btn-primary { min-width: 0; }
}
@media (max-width: 760px) { .in-foot .wz-spacer, .wz-foot .wz-spacer { display: none; } }
.pf-body > .btn { justify-self: start; }

/* Правовые страницы: оглавление слева, документ справа */
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.legal-toc { padding: 10px; position: sticky; top: calc(var(--header-h) + 12px); }
/* Вкладки друг под другом: «Конфиденциальность» длиннее половины рамки и вылезала за неё; переносов нет. */
.legal-tabs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 4px; margin-bottom: 8px; border-radius: var(--r-sm); background: var(--tint); }
.legal-tab { display: grid; place-items: center start; min-height: 36px; padding: 4px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: var(--r-xs); font-size: 14px; font-weight: 600; line-height: 18px; text-align: left; color: var(--ink-2); text-decoration: none; }
.legal-tab[aria-current] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-toc-link { display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: var(--r-sm); background: none; text-align: left; font-size: 14px; line-height: 19px; color: var(--ink-2); }
.legal-toc-link:hover { background: var(--tint); color: var(--ink); }
.legal-toc-link:focus-visible { outline: none; box-shadow: var(--focus); }
.legal-toc-link i { flex: none; width: 22px; height: 22px; border-radius: var(--r-xs); display: grid; place-items: center; background: var(--tint); font-style: normal; font-size: 12px; font-weight: 700; color: var(--purple-600); }
.legal-doc { padding: 28px 32px; }
.legal-draft { margin-bottom: 20px; }
.legal-sum { padding: 16px 18px; border-radius: var(--r-md); background: #f6f7ff; margin-bottom: 8px; }
.legal-sum h2 { font-size: 16px; line-height: 22px; margin: 0 0 8px; }
.legal-sum ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legal-sum li { display: flex; gap: 8px; font-size: 14.5px; line-height: 21px; }
.legal-sum li .icon { flex: none; margin-top: 2px; color: var(--green); }
.legal-sec { padding-top: 22px; }
.legal-sec h2 { display: flex; align-items: baseline; gap: 10px; font-size: 19px; line-height: 26px; margin: 0 0 8px; }
.legal-sec h2:focus { outline: none; }
.legal-sec h2 span { color: var(--purple-600); font-size: 15px; }
.legal-sec p { margin: 0 0 10px; font-size: 15.5px; line-height: 24px; color: var(--ink-2); max-width: 72ch; }
.legal-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal-foot p { margin: 0; flex: 1 1 280px; color: var(--muted); }
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; }
  .legal-toc ol { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 760px) {
  .legal-doc { padding: 18px 16px; }
  .legal-foot .btn { width: 100%; }
}

/* «Страница не найдена» */
.nf { max-width: 640px; margin: 40px auto; padding: 44px 32px 36px; text-align: center; }
.nf-code { font-size: 96px; line-height: 1; font-weight: 700; letter-spacing: -.02em; color: var(--purple); background: linear-gradient(135deg, var(--purple), #8f7cf0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nf h1 { margin: 16px 0 8px; font-size: 26px; line-height: 32px; }
.nf h1:focus { outline: none; }
.nf-body { margin: 0 auto 22px; max-width: 44ch; color: var(--muted); }
.nf-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.nf-more { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .nf { margin: 16px auto; padding: 32px 16px 24px; } .nf-code { font-size: 72px; } .nf-actions .btn { width: 100%; } }
/* Под страницей кабинета — один отступ 32 (страница), без второго у подвала: пустого поля над подвалом нет (владелец 01.10). */
#app > main.page + .site-foot { margin-top: 0; }

/* «Возможности и управление»: оглавление слева, разделы со снимками плеера справа */
.guide-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.guide-toc { padding: 10px; position: sticky; top: calc(var(--header-h) + 12px); max-height: calc(100vh - var(--header-h) - 24px); overflow: auto; }
.guide-toc-title { margin: 4px 10px 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.guide-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.guide-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.guide-sec { padding: 26px 30px; scroll-margin-top: calc(var(--header-h) + 12px); }
.guide-sec h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font-size: 22px; line-height: 28px; }
.guide-sec h2:focus { outline: none; }
.guide-sec h2 span { color: var(--purple-600); font-size: 16px; }
.guide-lead { margin: 0 0 18px; max-width: 76ch; font-size: 15.5px; line-height: 24px; color: var(--ink-2); }
.guide-shots { display: grid; gap: 18px; margin: 0 0 18px; }
.guide-shots.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-shot { margin: 0; }
.guide-shot .tv-frame { padding: 6px; box-shadow: 0 16px 40px rgba(20, 16, 50, .28), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.guide-shot figcaption { margin-top: 10px; font-size: 13.5px; line-height: 19px; color: var(--muted); }
.guide-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 82ch; }
.guide-points li { display: flex; gap: 10px; font-size: 15px; line-height: 23px; color: var(--ink-2); }
.guide-points li .icon { flex: none; margin-top: 4px; color: var(--green); }
.guide-points b { color: var(--ink); font-weight: 650; }
.guide-feats { margin: 4px 0 0; }
.guide-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.guide-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 21px; }
.guide-table th, .guide-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.guide-table thead th { border-top: 0; background: var(--tint); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.guide-table tbody th { white-space: nowrap; font-weight: 600; }
.guide-table td { color: var(--ink-2); }
.guide-table kbd { display: inline-block; min-width: 28px; padding: 2px 8px; border-radius: var(--r-xs); background: var(--tint); box-shadow: inset 0 -1px 0 var(--line); font: inherit; font-weight: 700; color: var(--ink); text-align: center; }
.guide-note { display: flex; gap: 8px; margin: 14px 0 0; font-size: 14px; line-height: 21px; color: var(--muted); max-width: 82ch; }
.guide-note .icon { flex: none; margin-top: 2px; }
.guide-faq { margin: 0 -18px; }
.guide-cta { margin: 0; }
.guide-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 1100px) { .guide-shots.is-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-toc { position: static; max-height: none; }
  .guide-toc ol { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 760px) {
  .guide-sec { padding: 18px 16px; }
  .guide-sec h2 { font-size: 19px; line-height: 25px; }
  .guide-faq { margin: 0 -16px; }
  .guide-cta-btns .btn { width: 100%; }
  .guide-table thead { display: none; }
  .guide-table tr { display: block; padding: 10px 14px; border-top: 1px solid var(--line); }
  .guide-table tbody tr:first-child { border-top: 0; }
  .guide-table th, .guide-table td { display: block; padding: 3px 0; border: 0; }
  .guide-table td::before { content: attr(data-l); display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
}
/* Ссылка на раздел/пункт «Возможностей» (#lock, #lock-3, #faq-15): кнопка тихая, ярче при наведении; место из адреса подсвечено. */
.guide-link { width: 30px; height: 30px; margin-left: 6px; vertical-align: middle; opacity: .55; }
.guide-link .icon { width: 18px; height: 18px; }
.guide-sec h2 .guide-link { margin-left: auto; }
.guide-points li .guide-link { margin-left: auto; align-self: flex-start; }
.guide-sec h2:hover .guide-link, .guide-points li:hover .guide-link, .faq-item[open] .guide-link, .guide-link:focus-visible, .guide-link.is-done { opacity: 1; }
.guide-sec.is-target, .guide-points li.is-target, .faq-item.is-target { animation: guide-target 2.6s ease-out; }
@keyframes guide-target { 0%, 40% { box-shadow: 0 0 0 3px var(--orange-soft); background-color: var(--orange-soft); } 100% { box-shadow: 0 0 0 0 transparent; } }
.guide-points li { border-radius: var(--r-xs); }
@media (prefers-reduced-motion: reduce) { .guide-sec.is-target, .guide-points li.is-target, .faq-item.is-target { animation-duration: .01s; outline: 2px solid var(--orange); } }
/* Подсказка кнопки ссылки стоит у правого края пункта: прижата вправо, чтобы не выталкивать страницу вбок на телефоне. */
.guide-link::after { left: auto; right: 0; transform: translate(0, 4px); }
.guide-link:hover::after, .guide-link:focus-visible::after, .guide-link.is-done::after { transform: translate(0, 0); }
