/* Vesper — страница установки и офлайн-страница. Токены и кнопки — в site.css. */
.links a[aria-current="page"] { color: var(--text); }
.install-hero { width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 80px 0 30px; text-align: center; }
.install-hero h1 { font-size: clamp(42px, 5.6vw, 72px); margin: 18px 0 18px; }
.install-hero .lead { margin: 0 auto; }
.installed-note { display: inline-block; margin: 22px 0 0; padding: 8px 16px; border-radius: 999px; color: var(--blue-2); border: 1px solid rgba(74, 168, 255, .35); background: rgba(74, 168, 255, .1); }

.os-tabs { width: max-content; max-width: calc(100% - 32px); margin: 26px auto 34px; display: flex; gap: 6px; padding: 6px; border-radius: 18px; border: 1px solid var(--hair); background: rgba(8, 10, 20, .6); backdrop-filter: blur(16px); }
.os-tabs button { display: flex; align-items: center; gap: 9px; padding: 11px 22px; border: 0; border-radius: 13px; background: transparent; color: var(--muted); font: 500 15px var(--sans); cursor: pointer; transition: all .25s var(--ease); }
.os-tabs button svg { width: 19px; height: 19px; }
.os-tabs button:hover { color: var(--text); }
.os-tabs button.on { color: var(--on); background: linear-gradient(135deg, #e6f3ff, var(--blue)); box-shadow: 0 8px 24px -10px rgba(74, 168, 255, .8); }

.os-panel { width: min(1180px, calc(100% - 32px)); margin: 0 auto; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.os-panel.in { opacity: 1; transform: none; }
.panel-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; padding: 38px; border-radius: 28px; border: 1px solid var(--hair); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012)); }
.os-panel h2 { font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 6px; }
.req { margin: 0 0 26px; font-size: 14px; }

.howto { list-style: none; counter-reset: step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.howto li { counter-increment: step; position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 0 16px 52px; border-bottom: 1px solid var(--hair); }
.howto li:last-child { border-bottom: 0; }
.howto li::before { content: counter(step); position: absolute; left: 0; top: 13px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; font: 600 15px var(--sans); color: var(--blue-2); background: linear-gradient(140deg, rgba(74, 168, 255, .22), rgba(91, 92, 240, .2)); border: 1px solid rgba(74, 168, 255, .3); }
.howto b { font-size: 16.5px; font-weight: 600; }
.howto span { color: var(--muted); font-size: 15px; }
.howto-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.app-url { color: var(--blue-2); font-weight: 500; word-break: break-all; }
.app-url:hover { text-decoration: underline; }
.copy { margin-left: 6px; padding: 3px 10px; border-radius: 8px; border: 1px solid var(--hair-2); background: var(--panel); color: var(--text); font: 500 12.5px var(--sans); cursor: pointer; }
.copy:hover { border-color: rgba(74, 168, 255, .5); }
.small-note { margin: 20px 0 0; font-size: 14px; }
.one-click { margin: 0 0 18px; padding: 18px 20px; border-radius: 18px; border: 1px solid rgba(74, 168, 255, .35); background: rgba(74, 168, 255, .08); }
.one-click p { margin: 0 0 12px; color: var(--blue-2); }
.other-browsers { margin-top: 18px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--hair); background: var(--panel); font-size: 14.5px; }
.other-browsers p { margin: 6px 0 0; color: var(--muted); }
.other-browsers p span { color: var(--text); }
.share-ico { display: inline-block; position: relative; width: 13px; height: 15px; margin: 0 2px; vertical-align: -2px; border: 1.6px solid var(--blue-2); border-top: 0; border-radius: 0 0 3px 3px; }
.share-ico::before { content: ""; position: absolute; left: 50%; top: -6px; width: 1.6px; height: 11px; background: var(--blue-2); transform: translateX(-50%); }
.share-ico::after { content: ""; position: absolute; left: 50%; top: -6px; width: 6px; height: 6px; border-left: 1.6px solid var(--blue-2); border-top: 1.6px solid var(--blue-2); transform: translateX(-50%) rotate(45deg); }

/* ───────── макеты экранов ───────── */
figure { margin: 0; }
figcaption { margin-top: 16px; text-align: center; color: var(--muted); font-size: 14px; }
.hl { color: var(--on) !important; background: linear-gradient(135deg, #e6f3ff, var(--blue)) !important; box-shadow: 0 0 0 4px rgba(74, 168, 255, .25), 0 10px 30px -8px rgba(74, 168, 255, .8); animation: glowPulse 2.4s ease-in-out infinite; }

.mock-win { position: sticky; top: 110px; }
.smartscreen { padding: 26px 26px 20px; border-radius: 14px; background: #1257b8; color: #fff; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9); font-size: 13.5px; }
.smartscreen h3 { margin: 0 0 14px; font-weight: 300; font-size: 24px; line-height: 1.2; }
.smartscreen p { margin: 0 0 12px; opacity: .92; }
.ss-link .hl { display: inline-block; padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.ss-meta { font-size: 12.5px; }
.ss-buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.btnlike { padding: 7px 14px; border-radius: 4px; background: rgba(255, 255, 255, .16); font-size: 13px; }

.phone { position: sticky; top: 100px; justify-self: center; }
.phone .screen { position: relative; width: 270px; height: 540px; margin: 0 auto; border-radius: 40px; overflow: hidden; border: 9px solid #15192b; outline: 1px solid var(--hair-2); background: radial-gradient(300px 260px at 50% 30%, rgba(91, 92, 240, .35), transparent 70%), #0a0c18; box-shadow: 0 50px 110px -30px rgba(0, 0, 0, .9), 0 20px 70px -30px rgba(74, 168, 255, .5); }
.page-ghost { position: absolute; inset: 0; display: grid; place-items: center; }
.page-ghost img { width: 90px; opacity: .55; filter: drop-shadow(0 12px 40px rgba(91, 92, 240, .7)); }
.urlbar { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; margin: 34px 10px 0; padding: 9px 12px; border-radius: 999px; background: #1d2234; font-size: 12px; color: #c5cbe0; }
.urlbar .lock { width: 9px; height: 9px; border-radius: 2px; background: #6b7390; }
.urlbar .addr { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.urlbar .dots { font-weight: 700; color: var(--blue-2); }
.android .menu { position: absolute; z-index: 3; top: 80px; right: 12px; width: 190px; padding: 8px 0; border-radius: 14px; background: #202538; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); display: flex; flex-direction: column; font-size: 13px; color: #d7dcee; }
.android .menu span { padding: 9px 16px; }
.android .menu .hl { margin: 2px 8px; padding: 9px 10px; border-radius: 9px; font-weight: 600; }
.sheet-ios { position: absolute; z-index: 3; left: 8px; right: 8px; bottom: 8px; padding: 12px; border-radius: 18px; background: rgba(32, 37, 56, .96); box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #d7dcee; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--hair); }
.sheet-head img { width: 38px; border-radius: 10px; }
.sheet-head span { display: flex; flex-direction: column; line-height: 1.2; }
.sheet-head small { color: var(--muted); font-size: 11px; }
.sheet-ios > span { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 11px; background: rgba(255, 255, 255, .05); }
.sheet-ios > span i { font-style: normal; }
.sheet-ios .hl { font-weight: 600; }

/* ───────── сравнение ───────── */
.compare { padding-top: 100px; }
.table-wrap { border-radius: 22px; border: 1px solid var(--hair); overflow: hidden; background: var(--panel); }
.compare table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.compare th, .compare td { padding: 15px 22px; border-bottom: 1px solid var(--hair); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare th { font-weight: 600; color: var(--blue-2); background: rgba(255, 255, 255, .02); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:not(:first-child):not(.muted) { color: var(--blue); font-weight: 600; }
.center-note { margin: 18px 0 0; text-align: center; font-size: 14.5px; }

/* ───────── офлайн-страница ───────── */
.offline-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.offline { max-width: 420px; text-align: center; }
.offline img { width: 80px; margin: 0 auto 22px; filter: drop-shadow(0 12px 40px rgba(91, 92, 240, .6)); }
.offline h1 { margin: 0 0 12px; font-size: 44px; }
.offline p { margin: 0 0 28px; }

@keyframes glowPulse { 50% { box-shadow: 0 0 0 7px rgba(74, 168, 255, .14), 0 10px 30px -8px rgba(74, 168, 255, .8); } }
@media (max-width: 960px) {
  .panel-grid { grid-template-columns: 1fr; gap: 34px; padding: 24px 20px; }
  .mock-win, .phone { position: static; }
}
@media (max-width: 560px) {
  .os-tabs { width: calc(100% - 32px); }
  .os-tabs button { flex: 1; justify-content: center; padding: 10px 8px; font-size: 14px; }
  .os-tabs button svg { display: none; }
  .install-hero { padding-top: 46px; }
  .compare th, .compare td { padding: 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .hl { animation: none; } .os-panel { transition: none; } }
