/* Установка: вопросы 1–2–3, карточки способов, файл AnyPlayer, иллюстрации компьютера, ТВ и телефона. */

.in-block + .in-block { margin-top: 26px; }
.in-q { display: flex; align-items: center; gap: 10px; font-size: 18px; line-height: 24px; margin-bottom: 12px; }
.in-q span { flex: none; width: 28px; height: 28px; border-radius: var(--r-xs); display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }

/* Карточки способов */
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.mcard { position: relative; display: grid; align-content: start; gap: 6px; min-height: 150px; padding: 14px 16px 12px; 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 .2s var(--ease), transform .2s var(--ease), background-color .16s; }
.mcard:hover:not(:disabled) { border-color: var(--violet); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.mcard.is-on { border-color: var(--purple); background: #fafaff; box-shadow: 0 0 0 1px var(--purple) inset, var(--shadow-1); }
.mcard.is-on::after { content: ""; position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: var(--r-xs); background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.mcard:focus-visible { outline: none; box-shadow: var(--focus); }
.mcard:disabled { cursor: not-allowed; background: #f7f7fa; color: var(--faint); }
.mcard:disabled .mcard-ico { background: #ececf1; color: var(--faint); }
.mcard-top { display: flex; align-items: center; gap: 8px; min-height: 36px; padding-right: 26px; }
.mcard-ico { width: 36px; height: 36px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--tint); color: var(--purple-600); }
.mcard b { font-size: 15.5px; font-weight: 700; line-height: 20px; }
.mcard-d { font-size: 13.5px; line-height: 19px; color: var(--muted); }
.mcard:disabled .mcard-d { color: var(--faint); }
.mcard-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.mcard-meta span { display: inline-flex; align-items: center; gap: 4px; }
.mcard-meta.is-off { color: var(--faint); }

/* Официальный файл */
.file-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 20px; align-items: center; padding: 16px 18px; margin-bottom: 14px; }
.file-head { display: flex; align-items: center; gap: 12px; }
.file-head img { width: 44px; height: 44px; border-radius: var(--r-md); }
.file-head b { display: block; font-size: 15.5px; }
.file-head span { font-size: 13px; color: var(--muted); }
.file-url { display: flex; align-items: stretch; min-width: 0; border: 1px solid var(--line-2); border-radius: var(--r-xs); background: #fbfbfe; overflow: hidden; }
.file-url code { flex: 1; min-width: 0; display: flex; align-items: center; padding: 10px 14px; font-family: ui-monospace, Menlo, monospace; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; user-select: all; }
.file-url .copy-ico { align-self: center; margin: 0 4px; }
.file-code { grid-column: 2; display: flex; align-items: center; gap: 14px; }
.file-code span { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.file-code b { font-size: 26px; letter-spacing: .12em; font-weight: 700; }
.file-foot { grid-column: 2; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--green); font-weight: 600; }
.file-foot .btn { margin-left: auto; }
.file-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.file-links span { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.file-links a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.in-step-title { font-size: 22px; line-height: 28px; margin-top: 4px; }
.enter.is-cmd { background: #1d1a33; border-color: #1d1a33; }
.enter.is-cmd .enter-url { color: #c9ffdd; }
.enter.is-cmd .enter-label { color: #8f8bb0; }

/* Иллюстрации: компьютер */
.scene.is-pc .scene-device { width: min(440px, 100%); padding: 6px 6px 10px; border-radius: var(--r-md) var(--r-md) 4px 4px; background: #d9d8e6; position: relative; box-shadow: 0 16px 30px rgba(20, 16, 50, .2); }
.scene.is-pc .scene-device::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -10px; height: 10px; border-radius: 0 0 10px 10px; background: #c4c2d6; }
.scene.is-pc .scene-screen { aspect-ratio: 16 / 10; padding: 0; background: #f2f2f7; color: var(--ink); border-radius: 3px; }
.pc-win { display: flex; flex-direction: column; height: 100%; }
.pc-bar { display: flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; background: #e4e3ee; font-size: 9.5px; color: var(--muted); }
.pc-bar i { width: 7px; height: 7px; border-radius: 50%; background: #c9c7da; }
.pc-bar b { margin-left: 6px; font-weight: 600; }
.pc-addr { margin: 6px 8px 0; padding: 5px 8px; border-radius: 4px; background: #fff; border: 1px solid #d6d4e4; font-family: ui-monospace, Menlo, monospace; font-size: 9.5px; color: var(--ink); overflow-wrap: anywhere; }
.pc-body { flex: 1; display: grid; align-content: center; gap: 8px; padding: 10px; }
.pc-dl { justify-self: end; display: grid; gap: 4px; padding: 8px 10px; border-radius: 6px; background: #fff; box-shadow: 0 6px 16px rgba(20, 16, 50, .15); font-size: 10px; }
.pc-dl small { color: var(--green); font-weight: 700; }
.pc-file { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 4px; font-size: 10.5px; font-weight: 600; }
.pc-file.is-on { background: #dfe4ff; box-shadow: 0 0 0 2px var(--orange); }
.pc-ico { width: 14px; height: 16px; border-radius: 2px; background: #9aa8ff; }
.pc-ico.is-apk { background: #7cc28f; }
.pc-ico.is-usb { width: 18px; height: 12px; background: #8a87a6; }
.pc-cols { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.pc-arrow { font-size: 18px; color: var(--orange); font-weight: 700; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.pc-drive, .pc-folder { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 4px; background: #fff; border: 1px solid #d6d4e4; font-size: 10.5px; font-weight: 600; }
.pc-folder::before { content: ""; width: 14px; height: 11px; border-radius: 2px; background: #f5c35b; }
.pc-folder.is-on { box-shadow: 0 0 0 2px var(--orange); }
.pc-menu { justify-self: end; display: grid; min-width: 140px; border-radius: 6px; background: #fff; box-shadow: 0 6px 16px rgba(20, 16, 50, .15); overflow: hidden; font-size: 10.5px; }
.pc-menu span { padding: 6px 10px; }
.pc-menu span.is-on { background: #dfe4ff; font-weight: 700; box-shadow: inset 3px 0 0 var(--orange); }
.pc-page { display: grid; justify-items: start; gap: 6px; }
.pc-page b { font-size: 13px; }
.pc-page .sc-btn { background: #e4e3ee; color: var(--ink); }
.pc-page .sc-btn.is-on { background: var(--orange); }
.pc-term { display: grid; align-content: start; gap: 6px; height: 100%; padding: 14px; background: #16142a; color: #e6e3ff; font-family: ui-monospace, Menlo, monospace; font-size: 11px; line-height: 15px; }
.pc-term i { font-style: normal; color: #8f8bb0; }
.pc-term .ok { color: #7ee2a8; font-weight: 700; }

/* Дополнительные экраны ТВ и телефона */
.sc-logo.is-xp { background: #2f7de1; }
.sc-logo.is-sf { background: #16a39a; }
.sc-bar.is-xp { color: #8fbaff; }
.sc-bar.is-sf { color: #7fe0d6; }
.sc-app.is-col { flex-direction: column; text-align: center; gap: 6px; }
.sc-btn.is-wide { padding: 6px 24px; }
.sc-split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px; flex: 1; }
.sc-split > span { display: grid; align-content: start; gap: 5px; }
.sc-tvico { width: 14px; height: 10px; border-radius: 2px; border: 2px solid currentColor; }
.sc-addr { font-family: ui-monospace, Menlo, monospace; font-size: 12px; font-weight: 700; color: var(--purple-700); padding: 6px 8px; background: #e9e7f7; border-radius: 5px; }
.sc-toast { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 6px 12px; border-radius: 14px; background: #f4f3fb; color: var(--ink); font-weight: 700; font-size: 10.5px; white-space: nowrap; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.sc-row.is-big { font-size: 16px; justify-content: center; letter-spacing: .05em; }
.sc-opt { padding: 6px 8px; border-radius: 5px; font-size: 11px; }
.sc-opt.is-on { background: #e3e6ff; box-shadow: inset 3px 0 0 var(--orange); font-weight: 700; }
.scene-shot { display: block; width: 100%; height: auto; border-radius: 4px; }
.scene.is-phone .scene-shot { border-radius: 16px; }

/* Шаги */
.in-card { min-height: 460px; }

@media (max-width: 900px) {
  .file-card { grid-template-columns: 1fr; }
  .file-code, .file-foot { grid-column: 1; }
}
@media (max-width: 760px) {
  .mcards { grid-template-columns: 1fr; }
  .mcard { min-height: 0; }
  .file-url { flex-direction: column; }
  .file-url code { font-size: 14px; }
  .file-url .copy-ico { align-self: flex-end; margin: 0 4px 4px; }
  .file-foot .btn { margin-left: 0; width: 100%; }
  .in-q { font-size: 16px; }
}
.enter .copy-ico { margin-left: auto; }
@media (min-width: 761px) {
  .install .scene.is-phone .scene-device { width: 166px; }
  .install .in-card { min-height: 486px; }
}
@media (max-width: 1180px) {
  .install .in-foot { position: sticky; bottom: 0; z-index: 5; background: rgba(255, 255, 255, .97); border-radius: 0 0 var(--r-md) var(--r-md); backdrop-filter: blur(6px); }
  .install .in-card { min-height: 0; }
}

/* Телевизор и приставка: настоящий снимок экрана во всю ширину карточки, текст под ним.
   Сцена всегда одной высоты (21:10), поэтому кнопки «Назад / Далее» не прыгают между шагами. */
.in-card.is-big .in-body { grid-template-columns: 1fr; gap: 18px; }
.in-card.is-big .scene-stage { aspect-ratio: 21 / 10; min-height: 0; padding: 16px; align-items: center; gap: 16px; }
.in-card.is-big .scene.is-tv .scene-device { width: auto; height: 100%; aspect-ratio: 16 / 9; padding: 6px; display: flex; }
.in-card.is-big .scene.is-tv .scene-screen, .in-card.is-big .scene.is-tv .scene-shot { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
.in-card.is-big .scene.is-pc .scene-device { width: auto; height: 88%; aspect-ratio: 16 / 10.6; }
.in-card.is-big .scene.is-pc .scene-screen { height: 100%; aspect-ratio: auto; }
.in-card.is-big .scene.is-phone .scene-device { width: auto; height: 100%; }
.in-card.is-big .scene.is-phone .scene-screen { height: 100%; }
.in-card.is-big .in-copy { min-height: 390px; }
.in-card.is-big .in-foot { position: sticky; bottom: 0; z-index: 5; background: rgba(255, 255, 255, .97); border-radius: 0 0 var(--r-md) var(--r-md); backdrop-filter: blur(6px); }
@media (max-width: 760px) {
  .in-card.is-big .scene-stage { padding: 8px; gap: 8px; }
  .in-card.is-big .sc-remote { display: none; }
  .in-card.is-big .scene.is-tv .scene-device { padding: 3px; }
  .in-card.is-big .in-copy { min-height: 0; }
}
.in-card.is-big .in-body > *, .in-card.is-big .scene, .in-card.is-big .scene-stage { min-width: 0; }
.in-card.is-big .scene.is-tv .scene-device { max-width: 100%; min-width: 0; }
.in-card.is-big .scene-shot { min-width: 0; max-width: 100%; }
@media (max-width: 760px) {
  .in-card.is-big .scene-stage { aspect-ratio: auto; padding: 6px; background: none; }
  .in-card.is-big .scene.is-tv .scene-device { width: 100%; height: auto; }
  .in-card.is-big .scene.is-pc .scene-device { width: 100%; height: auto; }
  .in-card.is-big .scene.is-phone .scene-device { width: 190px; height: auto; }
}
.scene-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 4px; }
.scene-zoom:focus-visible { outline: none; box-shadow: var(--focus); }
.shot-view { position: fixed; z-index: 810; inset: 0; display: grid; place-items: center; padding: 56px 16px 16px; cursor: zoom-out; }
.shot-view img { max-width: 100%; max-height: 100%; border-radius: var(--r-sm); box-shadow: var(--shadow-3); cursor: default; }
.shot-close { position: fixed; top: 12px; right: 12px; background: #fff; }
@media (max-width: 760px) and (orientation: portrait) {
  .shot-view { padding: 16px; }
  .shot-view img { width: min(calc(100vh - 88px), calc((100vw - 32px) * 16 / 9)); max-width: none; max-height: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(90deg); }
}
/* Телефон: карточка не ниже экрана — липкий подвал с «Назад / Далее» всегда у нижнего края, кнопки не прыгают. */
@media (max-width: 760px) { .in-card.is-big { min-height: calc(100svh - 56px); } }
/* Телефон в крупном виде: рамка по высоте сцены с пропорциями экрана 9:20 */
.in-card.is-big .scene.is-phone .scene-device { height: 100%; width: auto; aspect-ratio: 540 / 1200; padding: 6px; display: flex; }
.in-card.is-big .scene.is-phone .scene-zoom, .in-card.is-big .scene.is-phone .scene-shot, .in-card.is-big .scene.is-phone .scene-screen { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
@media (max-width: 760px) {
  .in-card.is-big .scene.is-phone .scene-stage { aspect-ratio: auto; height: 460px; }
  .in-card.is-big .scene.is-phone .scene-device { height: 100%; width: auto; }
}
/* Увеличенный снимок телефона: вертикальный, без поворота */
.shot-view.is-phone img { transform: none; position: static; width: auto; max-width: 100%; max-height: 100%; }
@media (min-width: 761px) { .in-card.is-big.is-tall .scene-stage { aspect-ratio: 3 / 2; } }

/* Все версии приложения: строка — версия, дата и размер, «Скачать», «Что нового». */
.ver { padding: 4px 0; }
.ver-state { padding: 16px 20px; margin: 0; }
.ver-list { list-style: none; margin: 0; padding: 0; }
.ver-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 20px; border-top: 1px solid var(--line); }
.ver-row:first-child { border-top: 0; }
.ver-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ver-notes { flex-basis: 100%; }
.ver-notes summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 4px; color: var(--purple-700); font-weight: 600; font-size: 14px; }
.ver-notes summary::-webkit-details-marker { display: none; }
.ver-notes summary .icon { transition: transform .16s; }
.ver-notes[open] summary .icon { transform: rotate(180deg); }
.ver-notes p { margin: 8px 0 0; color: var(--ink-2); line-height: 21px; }
@media (max-width: 480px) { .ver-row { padding: 12px 14px; } }
.hsec-sub { color: var(--muted); margin: -6px 0 14px; line-height: 22px; }
