:root {
  --bg: #0f0819;
  --bg-2: #1a1030;
  --accent: #a87bff;
  --accent-2: #7c3aed;
  --accent-soft: rgba(168,123,255, 0.16);
  --text: #f6f2ff;
  --muted: rgba(236,228,255, 0.58);
  --danger: #ff6b6b;
  --card: rgba(22,12,40, 0.72);
  --stroke: rgba(168,123,255, 0.22);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --nav: #150c26;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  background: #0f0819;
  color: var(--text);
  overflow: hidden;
}

.glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}
.glow-a {
  top: -80px; left: 10%; right: 10%; height: 220px;
  background: radial-gradient(ellipse at center, rgba(168,123,255,.32), transparent 70%);
}
.glow-b {
  bottom: 80px; right: -40px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(124,58,237,.16), transparent 70%);
}

.app {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.boot {
  flex: 1;
  display: grid;
  place-items: center;
  animation: fadeIn .5s ease;
}
.boot-logo {
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 18px;
}
.boot-bar {
  width: 120px; height: 4px; border-radius: 99px;
  background: rgba(255,255,255,.08); overflow: hidden;
}
.boot-bar span {
  display: block; height: 100%; width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent));
  animation: load 1.1s ease infinite;
}

.screen {
  flex: 1;
  overflow: auto;
  padding: 12px 16px calc(96px + var(--safe-bottom));
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }

.view { animation: rise .55s cubic-bezier(.2,.8,.2,1); }
.view + .view { display: none; }

.promo {
  position: relative;
  height: 76px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15,8,25,.15), rgba(15,8,25,.55)),
    radial-gradient(circle at 88% 40%, rgba(170,120,255, .55), transparent 42%),
    linear-gradient(135deg, #2e1a55, #1f1238);
  display: flex;
  align-items: center;
  padding: 0 18px;
  box-shadow: var(--shadow);
}
.promo b { font-size: 16px; font-weight: 700; }
.promo span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.wifi {
  position: absolute; right: 18px; top: 14px;
  width: 54px; height: 54px; opacity: .95;
}

.balance-wrap {
  text-align: center;
  padding: 28px 8px 8px;
}
.balance-wrap .label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.balance {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}
.sub-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}
.sub-status.ok { color: #b794ff; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255,107,107,.12);
}
.sub-status.ok .dot { box-shadow: 0 0 0 4px rgba(183,148,255,.12); }

.pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 22px;
}
.pill {
  min-width: 132px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.btn {
  width: 100%;
  border: 0;
  border-radius: 18px;
  min-height: 54px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(109,40,217, .28);
  margin-bottom: 12px;
}
.btn-outline {
  background: rgba(30,16,56, .35);
  color: #c4a8ff;
  border: 1.5px solid rgba(168,123,255,.5);
}
.btn svg { width: 20px; height: 20px; }

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.tile {
  position: relative;
  height: 200px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(32,18,60,.9), rgba(18,10,34,.92));
  border: 1px solid rgba(255,255,255,.05);
  overflow: hidden;
  padding: 16px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  animation: floaty 5.5s ease-in-out infinite;
}
.tile:nth-child(2) { animation-delay: -.9s; }
.tile h3 { font-size: 16px; font-weight: 700; position: relative; z-index: 3; }
.tile .art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 150px;
  display: grid;
  place-items: end center;
  pointer-events: none;
  z-index: 1;
}
.tile .go {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(15,8,25,.7);
  border: 1px solid rgba(168,123,255,.35);
  display: grid; place-items: center;
  color: var(--accent);
}

.nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(430px, 100%);
  height: calc(72px + var(--safe-bottom));
  padding: 8px 18px var(--safe-bottom);
  background: linear-gradient(180deg, rgba(18,10,32,.72), #150c26 40%);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: space-between;
  z-index: 5;
}
.nav button {
  width: 56px; height: 48px;
  border: 0; background: transparent; color: rgba(255,255,255,.46);
  display: grid; place-items: center;
  border-radius: 16px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.nav button.active {
  color: #ffffff;
  background: linear-gradient(180deg, #8b5cf6, #6d28d9);
  box-shadow: 0 8px 18px rgba(109,40,217,.25);
}
.nav svg { width: 24px; height: 24px; }

.panel {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
}
.panel h2 { font-size: 18px; margin-bottom: 6px; }
.panel p, .muted { color: var(--muted); font-size: 14px; line-height: 1.45; }

.plan {
  width: 100%;
  text-align: left;
  color: inherit;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.plan.selected {
  border-color: rgba(168,123,255,.7);
  background: var(--accent-soft);
}
.plan { gap: 12px; }
.plan.selected { box-shadow: 0 0 0 1px rgba(168,123,255,.55), 0 10px 26px rgba(109,40,217,.28); }
.plan .radio {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.28);
  transition: border-color .2s ease, background .2s ease;
}
.plan.selected .radio { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, transparent 50%); }
.plan .plan-main { flex: 1; min-width: 0; }
.plan .plan-price { text-align: right; }
.plan .plan-price s { display: block; font-size: 12px; color: var(--muted); }
.plan .price { font-size: 20px; font-weight: 800; }
.badge {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(168,123,255,.18);
  color: var(--accent);
  margin-top: 4px;
}

.top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.back {
  width: 36px; height: 36px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.2);
  color: var(--text);
}

.toast {
  position: fixed; left: 50%; bottom: calc(90px + var(--safe-bottom));
  transform: translateX(-50%) translateY(12px);
  background: rgba(22,12,40,.94);
  border: 1px solid var(--stroke);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  z-index: 9;
  max-width: 86%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.account {
  display: flex; gap: 12px; align-items: center;
}
.avatar {
  width: 48px; height: 48px; border-radius: 16px;
  background: linear-gradient(180deg, #a87bff, #4c1d95);
  display: grid; place-items: center; font-weight: 800;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes load {
  from { transform: translateX(-120%); }
  to { transform: translateX(280%); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.apps { display: grid; gap: 12px; margin-bottom: 14px; }
.app-card {
  position: relative; width: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 14px; text-align: left; color: inherit;
  background: var(--card); border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px; cursor: pointer;
  transition: transform .18s ease, border-color .2s ease;
}
.app-card:active { transform: scale(.985); }
.app-card:not(.disabled):hover { border-color: rgba(168,123,255,.55); }
.app-card img { width: 56px; height: 56px; border-radius: 15px; object-fit: cover; flex: none; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.app-info { flex: 1; display: grid; gap: 4px; }
.app-info b { font-size: 16px; }
.app-info span { font-size: 12.5px; color: var(--muted); }
.app-card .go { color: var(--accent); display: grid; place-items: center; width: 28px; height: 28px; }
.app-card .go svg { width: 22px; height: 22px; }
.app-card.disabled { cursor: default; opacity: .72; }
.app-card.disabled img { filter: saturate(.8); }
.soon {
  justify-self: start; padding: 3px 10px; border-radius: 999px;
  background: rgba(168,123,255,.18); color: var(--accent) !important; font-weight: 600;
}

.slogan {
  text-align: center; margin: 18px 4px 16px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em;
  color: #d9c8ff; padding: 12px 14px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(139,92,246,.22), rgba(76,29,149,.18));
  border: 1px solid rgba(168,123,255,.25);
}

.happ-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.happ-head img { width: 60px; height: 60px; border-radius: 16px; object-fit: cover; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.happ-head b { font-size: 20px; display: block; }
.happ-head span { color: var(--muted); font-size: 13px; }

.keybox {
  background: rgba(0,0,0,.32); border: 1px solid rgba(168,123,255,.35);
  border-radius: 16px; padding: 14px; margin-bottom: 12px; word-break: break-all;
  font-size: 12.5px; line-height: 1.45; max-height: 140px; overflow: auto;
}
.keybox.empty { border-style: dashed; text-align: center; color: var(--muted); font-size: 14px; padding: 22px 14px; }
.keybox code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #e2d4ff; }
.btn-outline { margin-bottom: 12px; }
a.btn { text-decoration: none; }
.btn.is-disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.steps { text-align: center; }
.steps p { color: var(--text); font-weight: 600; }

.sub-status.hint { color: var(--muted); font-weight: 500; }
.ref-hero { text-align: center; }
.ref-hero h2 { font-size: 20px; margin-bottom: 8px; }
.ref-dots { display: flex; justify-content: center; gap: 14px; margin: 16px 0 10px; }
.ref-dot {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
  border: 2px dashed rgba(255,255,255,.25); color: var(--muted);
}
.ref-dot.on {
  border: 2px solid var(--accent); color: #fff;
  background: linear-gradient(180deg, #8b5cf6, #6d28d9);
  box-shadow: 0 6px 16px rgba(109,40,217,.4);
}
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.ref-stats div {
  background: var(--card); border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; padding: 12px 8px; text-align: center; display: grid; gap: 4px;
}
.ref-stats b { font-size: 22px; }
.ref-stats span { font-size: 11.5px; color: var(--muted); }

.ref-tagline { display: inline-block; margin: 0 0 10px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #d9c8ff; background: rgba(139,92,246,.2); border: 1px solid rgba(168,123,255,.3); }

.stars-hint { text-align: center; margin-top: 4px; font-size: 12.5px; }

.menu-item {
  width: 100%; margin-top: 12px; padding: 15px 16px; text-align: left; color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid rgba(255,255,255,.08); border-radius: 18px;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.menu-item svg { width: 20px; height: 20px; color: var(--accent); }
.policy h3 { font-size: 15px; margin: 18px 0 8px; color: #e2d4ff; }
.policy h3:first-child { margin-top: 0; }
.policy p { margin-bottom: 8px; font-size: 13.5px; }
.policy ul { margin: 0 0 10px 18px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.policy li { margin-bottom: 3px; }

.btn-trial { background: linear-gradient(135deg, rgba(139,92,246,.28), rgba(76,29,149,.3)); color: #e9defe; border: 1.5px solid rgba(168,123,255,.55); margin-bottom: 12px; }

/* ===== Компактная главная + каскадные анимации ===== */
.screen { padding: 8px 16px calc(84px + var(--safe-bottom)); }
.promo { height: 60px; border-radius: 16px; padding: 0 16px; }
.promo b { font-size: 14px; }
.promo span { font-size: 11.5px; }
.wifi { width: 44px; height: 44px; top: 8px; right: 14px; }

.balance-wrap { padding: 14px 8px 4px; }
.balance-wrap .label { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.balance { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.sub-status { margin-top: 8px; font-size: 12px; gap: 6px; }
.dot { width: 6px; height: 6px; box-shadow: 0 0 0 3px rgba(255,107,107,.12); }
.pills { margin: 10px 0 14px; gap: 8px; }
.pill { min-width: 0; padding: 6px 12px; font-size: 12px; }

.btn { min-height: 46px; border-radius: 14px; font-size: 14.5px; gap: 8px; max-width: 340px; margin-left: auto; margin-right: auto; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { margin-bottom: 9px; box-shadow: 0 8px 18px rgba(109,40,217,.28); }
.btn-outline { margin-bottom: 9px; }
.btn-trial { margin-bottom: 9px; }
.btn-primary:last-child, .btn-outline:last-child { margin-bottom: 0; }

.tiles { margin-top: 12px; gap: 10px; }
.tile { height: 130px; border-radius: 18px; padding: 13px; }
.tile h3 { font-size: 14px; }
.tile .art { height: 92px; bottom: -8px; }
.tile .art svg { width: 100px; height: auto; }
.tile .go { width: 28px; height: 28px; left: 10px; bottom: 10px; }

.nav { height: calc(64px + var(--safe-bottom)); padding-top: 6px; }
.nav button { width: 52px; height: 44px; }

/* Плавное появление элементов страницы сверху вниз */
.view { animation: none; }
.view > * { animation: cascade .6s cubic-bezier(.2, .8, .2, 1) both; }
.view > *:nth-child(1)  { animation-delay: .02s; }
.view > *:nth-child(2)  { animation-delay: .08s; }
.view > *:nth-child(3)  { animation-delay: .14s; }
.view > *:nth-child(4)  { animation-delay: .20s; }
.view > *:nth-child(5)  { animation-delay: .26s; }
.view > *:nth-child(6)  { animation-delay: .32s; }
.view > *:nth-child(7)  { animation-delay: .38s; }
.view > *:nth-child(8)  { animation-delay: .44s; }
.view > *:nth-child(9)  { animation-delay: .50s; }
.view > *:nth-child(n+10) { animation-delay: .56s; }
.app.no-anim .view > * { animation: none; }
@keyframes cascade {
  from { opacity: 0; transform: translateY(-14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.tile { height: 156px; }
.tile .art { height: 112px; }
.tile .art svg { width: 116px; }

/* ===== Стиль как в примере: таблетки, плавающее меню, мягкие анимации ===== */
.btn { border-radius: 999px; max-width: none; min-height: 46px; }
.btn-primary { box-shadow: 0 10px 24px rgba(109,40,217,.32); }
.btn-outline { background: rgba(20, 10, 38, .45); }

.tiles { gap: 12px; margin-top: 16px; }
.tile { height: 170px; border-radius: 26px; }
.tile h3 { font-size: 15px; }
.tile .art { height: 126px; bottom: -10px; }
.tile .art svg { width: 132px; }
.tile .go { left: 12px; bottom: 12px; width: 34px; height: 34px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); }

.screen { padding-bottom: calc(92px + var(--safe-bottom)); }
.nav {
  bottom: calc(10px + var(--safe-bottom));
  width: calc(100% - 32px);
  max-width: 398px;
  height: 58px;
  padding: 5px 8px;
  border-radius: 30px;
  background: rgba(24, 13, 44, .86);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  justify-content: space-around;
  align-items: center;
}
.nav button { width: 64px; height: 46px; border-radius: 24px; }

/* Мягкое появление «из ниоткуда» с лёгким опусканием */
.view > * {
  animation-name: cascade;
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(.22, 1, .36, 1);
  animation-fill-mode: both;
}
.view > *:nth-child(1)  { animation-delay: .05s; }
.view > *:nth-child(2)  { animation-delay: .15s; }
.view > *:nth-child(3)  { animation-delay: .25s; }
.view > *:nth-child(4)  { animation-delay: .35s; }
.view > *:nth-child(5)  { animation-delay: .45s; }
.view > *:nth-child(6)  { animation-delay: .55s; }
.view > *:nth-child(7)  { animation-delay: .65s; }
.view > *:nth-child(8)  { animation-delay: .75s; }
.view > *:nth-child(9)  { animation-delay: .85s; }
.view > *:nth-child(n+10) { animation-delay: .95s; }
@keyframes cascade {
  0%   { opacity: 0; transform: translate3d(0, -9px, 0); filter: blur(6px); }
  60%  { filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}

/* правки по плиткам и воздуху */
.tile { display: block; height: 196px; }
.tile h3 { position: absolute; top: 16px; left: 16px; }
.tile .art { height: 150px; bottom: -8px; }
.tile .art svg { width: 150px; }
.tile .go { left: 14px; bottom: 14px; }
.balance-wrap { padding: 20px 8px 6px; }
.pills { margin: 14px 0 20px; }
.btn { min-height: 48px; }
.btn-primary, .btn-outline, .btn-trial { margin-bottom: 12px; }
.tiles { margin-top: 20px; }

/* Главная заполняет экран: плитки тянутся до нижнего меню */
.screen { display: flex; flex-direction: column; }
.view.home { flex: 1 0 auto; display: flex; flex-direction: column; }
.view.home > .tiles { flex: 1; min-height: 150px; margin-top: 16px; grid-auto-rows: 1fr; }
.view.home .tile { height: auto; min-height: 150px; }
.tile .art { height: 64%; bottom: -6px; }
.tile .art svg { width: auto; height: 100%; max-width: 100%; }

/* Размытие в анимации короче и слабее */
@keyframes cascade {
  0%   { opacity: 0; transform: translate3d(0, -8px, 0); filter: blur(3px); }
  35%  { filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}

/* Баланс подписки центрируется в свободном месте, плитки фиксированной красивой высоты */
.view.home > .balance-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.view.home > .balance-wrap .balance { font-size: 34px; }
.view.home > .tiles { flex: 0 0 auto; min-height: 0; margin-top: 12px; grid-auto-rows: 200px; }
.view.home .tile { height: 200px; min-height: 0; }
.tile .art { height: 72%; bottom: -4px; }

/* Группа «подписка + пилюли» по центру свободного места */
.view.home > .balance-wrap { flex: 0 0 auto; margin-top: auto; padding: 8px 8px 0; }
.view.home > .pills { margin-top: 12px; margin-bottom: auto; padding-bottom: 20px; }

/* Как в примере: свободное место сверху, блок подписки ниже, плитки компактные */
.view.home > .balance-wrap { margin-top: auto; padding: 8px 8px 0; }
.view.home > .pills { margin-top: 10px; margin-bottom: 16px; padding-bottom: 0; }
.view.home > .tiles { flex: 0 0 auto; margin-top: 14px; grid-auto-rows: 148px; }
.view.home .tile { height: 148px; min-height: 0; }
.tile .art { height: 96%; bottom: -6px; right: 4px; left: auto; width: 62%; place-items: end end; }
.tile .art svg { height: 100%; width: auto; max-width: 100%; }

/* Фон: почти чёрный, фиолетовое свечение из разных мест */
html, body { background: #050309; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(62% 34% at 100% 26%, rgba(124, 58, 237, .40), transparent 72%),
    radial-gradient(52% 32% at 0% 58%, rgba(91, 33, 182, .32), transparent 72%),
    radial-gradient(64% 36% at 86% 100%, rgba(139, 92, 246, .34), transparent 72%),
    radial-gradient(48% 24% at 18% 0%, rgba(109, 40, 217, .26), transparent 72%);
  animation: glowBreath 9s ease-in-out infinite alternate;
}
@keyframes glowBreath { from { opacity: .82; } to { opacity: 1; } }
.glow { opacity: .35; }
.boot-bar { background: rgba(255,255,255,.06); }

/* Блок подписки чуть выше, плашки крупнее */
.view.home > .pills { margin-top: 12px; margin-bottom: clamp(26px, 7vh, 64px); }
.pills { gap: 10px; }
.pill { padding: 9px 18px; font-size: 14px; background: rgba(0, 0, 0, .38); border-color: rgba(255,255,255,.1); }

/* ===== Яркое живое свечение (пятна двигаются из JS) ===== */
body::before { display: none; }
.glow { display: none; }
.glows { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.gb {
  position: absolute; top: 0; left: 0; border-radius: 50%;
  will-change: transform; opacity: 0;
  transition: transform 2.6s cubic-bezier(.22, 1, .36, 1);
  animation: gbIn 1.6s ease .1s forwards, gbBreath 8s ease-in-out 1.8s infinite alternate;
}
.gb0 { background: radial-gradient(circle, rgba(139, 92, 246, .62), rgba(124, 58, 237, 0) 66%); }
.gb1 { background: radial-gradient(circle, rgba(109, 40, 217, .58), rgba(91, 33, 182, 0) 66%); }
.gb2 { background: radial-gradient(circle, rgba(167, 123, 255, .5), rgba(139, 92, 246, 0) 66%); }
.gb3 { background: radial-gradient(circle, rgba(124, 58, 237, .5), rgba(76, 29, 149, 0) 66%); }
@keyframes gbIn { to { opacity: 1; } }
@keyframes gbBreath { from { opacity: .82; } to { opacity: 1; } }
.gb1 { animation-delay: .25s, 2.4s; }
.gb2 { animation-delay: .4s, 3.2s; }
.gb3 { animation-delay: .55s, 4s; }

/* Отдельное свечение за картинкой в плитках */
.tile::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: -28%; bottom: -34%; width: 96%; height: 96%; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .62), rgba(124, 58, 237, 0) 66%);
  animation: tileGlow 5.5s ease-in-out infinite alternate;
}
.tile:nth-child(2)::before { right: -18%; bottom: -40%; background: radial-gradient(circle, rgba(167, 123, 255, .55), rgba(109, 40, 217, 0) 66%); animation-delay: -2.4s; }
.tile .art, .tile h3, .tile .go { z-index: 2; }
@keyframes tileGlow { from { opacity: .7; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }

/* Мягкий градиент без видимого края + плавное затухание при перемещении */
.glows { transition: opacity 1s ease; }
.gb0 { background: radial-gradient(circle, rgba(139,92,246,.60) 0%, rgba(139,92,246,.48) 10%, rgba(139,92,246,.34) 24%, rgba(139,92,246,.19) 40%, rgba(139,92,246,.08) 56%, rgba(139,92,246,.025) 72%, rgba(139,92,246,0) 100%); }
.gb1 { background: radial-gradient(circle, rgba(109,40,217,.58) 0%, rgba(109,40,217,.46) 10%, rgba(109,40,217,.33) 24%, rgba(109,40,217,.18) 40%, rgba(109,40,217,.08) 56%, rgba(109,40,217,.025) 72%, rgba(109,40,217,0) 100%); }
.gb2 { background: radial-gradient(circle, rgba(167,123,255,.48) 0%, rgba(167,123,255,.38) 10%, rgba(167,123,255,.27) 24%, rgba(167,123,255,.15) 40%, rgba(167,123,255,.065) 56%, rgba(167,123,255,.02) 72%, rgba(167,123,255,0) 100%); }
.gb3 { background: radial-gradient(circle, rgba(124,58,237,.50) 0%, rgba(124,58,237,.40) 10%, rgba(124,58,237,.28) 24%, rgba(124,58,237,.16) 40%, rgba(124,58,237,.07) 56%, rgba(124,58,237,.02) 72%, rgba(124,58,237,0) 100%); }
.gb { transition-duration: 3.2s; }

/* Без границ: квадратный слой и градиент, затухающий к самому краю */
.gb { border-radius: 0; }
.gb0 { background: radial-gradient(closest-side, rgba(139,92,246,0.62) 0%, rgba(139,92,246,0.496) 12%, rgba(139,92,246,0.353) 28%, rgba(139,92,246,0.198) 46%, rgba(139,92,246,0.087) 64%, rgba(139,92,246,0.025) 82%, rgba(139,92,246,0) 100%); }
.gb1 { background: radial-gradient(closest-side, rgba(109,40,217,0.6) 0%, rgba(109,40,217,0.48) 12%, rgba(109,40,217,0.342) 28%, rgba(109,40,217,0.192) 46%, rgba(109,40,217,0.084) 64%, rgba(109,40,217,0.024) 82%, rgba(109,40,217,0) 100%); }
.gb2 { background: radial-gradient(closest-side, rgba(167,123,255,0.5) 0%, rgba(167,123,255,0.4) 12%, rgba(167,123,255,0.285) 28%, rgba(167,123,255,0.16) 46%, rgba(167,123,255,0.07) 64%, rgba(167,123,255,0.02) 82%, rgba(167,123,255,0) 100%); }
.gb3 { background: radial-gradient(closest-side, rgba(124,58,237,0.52) 0%, rgba(124,58,237,0.416) 12%, rgba(124,58,237,0.296) 28%, rgba(124,58,237,0.166) 46%, rgba(124,58,237,0.073) 64%, rgba(124,58,237,0.021) 82%, rgba(124,58,237,0) 100%); }

/* Карточка Happ: основная область + кнопка «Скачать» */
.app-card { padding: 10px 12px; gap: 10px; }
.app-card .app-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; text-align: left; color: inherit; background: none; border: 0; cursor: pointer; }
.app-card .app-main img { width: 52px; height: 52px; }
.app-card .go { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 4px; }
.app-dl {
  flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(168,123,255,.55);
  background: rgba(139, 92, 246, .22); color: #e9defe; font-weight: 700; font-size: 13px; cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.app-dl:active { transform: scale(.96); background: rgba(139, 92, 246, .38); }
.dl-panel b, .step-title { display: block; font-size: 14px; margin-bottom: 10px; }
.step-title { margin: 16px 2px 10px; }
.dl-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-btns .btn { margin: 0; min-height: 44px; font-size: 13.5px; }

/* Кнопки: скруглённые прямоугольники, а не овалы */
.btn { border-radius: 16px; }
.app-dl { border-radius: 12px; }
.menu-item { border-radius: 16px; }
.nav button { border-radius: 18px; }
.back { border-radius: 12px; }
.pill { border-radius: 14px; }

/* Нижнее меню: ровная сетка, одинаковые отступы по краям */
.nav {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  padding: 6px; height: 60px; border-radius: 22px; justify-content: stretch; align-items: stretch;
}
.nav button { width: 100%; height: 100%; border-radius: 16px; }
.nav button.active { box-shadow: 0 6px 16px rgba(109, 40, 217, .35); }

/* Вкладка подарков: скелет без скачков вёрстки */
.ref-stats b { min-height: 26px; }

/* Нижнее меню: чуть меньше и с более округлыми краями */
.nav { height: 54px; padding: 5px; gap: 5px; max-width: 350px; border-radius: 28px; bottom: calc(12px + var(--safe-bottom)); }
.nav button { border-radius: 22px; }
.nav svg { width: 22px; height: 22px; }
.screen { padding-bottom: calc(84px + var(--safe-bottom)); }

.plan .rub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.panel.offer { border: 1px solid rgba(157, 123, 255, .45); }

/* Выбор тарифа: подсветка-бегунок плавно переезжает между карточками */
.plans { position: relative; }
.plans .plan { position: relative; z-index: 1; }
.plan-glider {
  position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 0; pointer-events: none;
  border-radius: 18px;
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(168,123,255,.7), 0 10px 26px rgba(109,40,217,.28);
  opacity: 0;
  transition: transform .45s cubic-bezier(.22,1.25,.36,1), height .35s ease, opacity .2s ease;
}
.plan-glider.ready { opacity: 1; }
.plans .plan.selected { background: transparent; box-shadow: none; border-color: transparent; }
.plan .radio { transition: border-color .25s ease, background .25s ease, transform .25s ease; }
.plan.selected .radio { transform: scale(1.12); }
.price.pop { animation: pricePop .35s ease; }
@keyframes pricePop { 0% { transform: scale(1); } 45% { transform: scale(1.12); } 100% { transform: scale(1); } }
.pay-label { display: inline-block; }
.pay-label.swap { animation: labelSwap .3s ease; }
@keyframes labelSwap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .plan-glider { transition: none; } .price.pop, .pay-label.swap { animation: none; } }

.tile .key-art { font-size: 58px; display: flex; align-items: center; justify-content: center; }
.key-status { text-align: center; }
.key-note { text-align: center; margin: 4px 6px 12px; }



/* ===== Премиум: две темы, дорогие кнопки с подсветкой снизу (Apple / Google), MacBook на старте ===== */
:root, :root[data-theme="black"] {
  --bg: #000; --surface: #0b0912; --surface-2: #120e1d;
  --line: rgba(255, 255, 255, .08); --line-hi: rgba(160, 125, 255, .38);
  --accent: #9275f2; --ink: #f6f4fb; --ink-2: rgba(238, 233, 250, .58); --glow-o: .62;
  --btn-bg: linear-gradient(180deg, #7a58ec 0%, #5a38c9 48%, #3d2296 100%);
  --btn2-bg: linear-gradient(180deg, #1f1a2c 0%, #0e0b16 100%);
  --btn-hi: rgba(255, 255, 255, .42); --btn-edge: rgba(255, 255, 255, .10);
  --btn-glow: rgba(112, 74, 240, .58); --btn-glow2: rgba(112, 74, 240, .32); --btn2-glow: rgba(112, 74, 240, .2);
}
:root[data-theme="violet"] {
  --bg: #0f0628; --surface: #180c38; --surface-2: #1f1048;
  --line: rgba(255, 255, 255, .09); --line-hi: rgba(170, 135, 255, .42);
  --accent: #a285ff; --ink: #f6f4fb; --ink-2: rgba(238, 233, 250, .62); --glow-o: .5;
  --btn-bg: linear-gradient(180deg, #2a2434 0%, #0d0a14 55%, #000 100%);
  --btn2-bg: linear-gradient(180deg, #221c2e 0%, #07050b 100%);
  --btn-hi: rgba(255, 255, 255, .22); --btn-edge: rgba(255, 255, 255, .10);
  --btn-glow: rgba(126, 88, 255, .5); --btn-glow2: rgba(126, 88, 255, .28); --btn2-glow: rgba(126, 88, 255, .18);
}
html, body { background: var(--bg); color: var(--ink); }
body { font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, Inter, "Helvetica Neue", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; letter-spacing: -.006em; }
h1, h2, .balance, .tile h3 { letter-spacing: -.025em; }
.boot-logo { color: var(--accent); letter-spacing: .22em; font-weight: 600; }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; } ::view-transition-new(root) { z-index: 2; }

/* живой фон страницы: из темноты после загрузки, на стартовом экране скрыт */
.living { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 2.8s cubic-bezier(.22, 1, .36, 1); }
body.ready .living { opacity: 1; }
body.on-intro.ready .living { opacity: 0; }
.gb { opacity: 0; animation: none; }
body.ready .gb { animation: gbIn 3s cubic-bezier(.22, 1, .36, 1) forwards, gbBreath 11s ease-in-out 3.2s infinite alternate; }
@keyframes gbIn { to { opacity: var(--glow-o); } }
@keyframes gbBreath { from { opacity: calc(var(--glow-o) * .8); } to { opacity: var(--glow-o); } }

/* поверхности */
.promo, .tile, .app-card, .panel, .plan, .keybox, .ref-stats > div, .slogan, .menu-item, .pill {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.01)), var(--surface);
  border: 1px solid var(--line); border-radius: 18px; backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 18px 30px -20px rgba(0,0,0,.85);
}
.promo { height: 56px; } .promo b { font-weight: 600; font-size: 13.5px; } .promo span { color: var(--ink-2); }
.promo::before, .tile::before { display: none; }
.wifi-line { width: 26px; height: 26px; right: 18px; top: 15px; position: absolute; color: var(--accent); }
.pill { border-radius: 12px; padding: 8px 16px; font-size: 12.5px; color: var(--ink-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.balance-wrap .label { letter-spacing: .24em; font-size: 10.5px; color: var(--ink-2); }
.balance { font-weight: 600; letter-spacing: -.04em; }
.muted, .panel p { color: var(--ink-2); }
.plan.selected { border-color: var(--line-hi); background: linear-gradient(180deg, rgba(150,115,255,.14), rgba(150,115,255,.04)), var(--surface-2); }

/* кнопки: стекло-металл, внутренняя подсветка сверху и свечение цветом снизу */
.btn, .btn-primary, .btn-outline, .btn-trial, .app-dl, .back, .tile .go, .nav button.active {
  position: relative; color: #fff; border: 0; border-radius: 16px; min-height: 52px; font-weight: 600; letter-spacing: -.005em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .38);
  background: var(--btn-bg);
  box-shadow: inset 0 1px 0 var(--btn-hi), inset 0 0 0 1px var(--btn-edge), inset 0 -12px 18px rgba(0,0,0,.2),
    0 1px 2px rgba(0,0,0,.6), 0 12px 22px -10px var(--btn-glow), 0 28px 42px -20px var(--btn-glow2);
  transition: scale .22s cubic-bezier(.3, 1.4, .5, 1), filter .25s ease;
}
.btn-outline, .btn-trial {
  background: var(--btn2-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.07), inset 0 -10px 16px rgba(0,0,0,.25),
    0 1px 2px rgba(0,0,0,.6), 0 12px 22px -12px var(--btn2-glow), 0 26px 40px -22px var(--btn2-glow);
}
.btn:hover { filter: brightness(1.08); } .btn:active { scale: .985; filter: brightness(.96); }
.btn svg { opacity: .92; }
.btn.is-disabled { opacity: .45; }
.app-dl, .back { min-height: 0; border-radius: 12px; }
.tile .go { min-height: 0; width: 30px; height: 30px; border-radius: 10px; }

/* плитки */
.tile { border-radius: 20px; }
.tile h3 { font-weight: 600; font-size: 14px; }
.tile .art { display: grid; place-items: end end; right: 16px; left: auto; width: auto; height: auto; bottom: 16px; }
.tile .art svg.line-art { width: 64px; height: 64px; color: var(--accent); }

/* нижнее меню */
.nav { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)), var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 34px -14px rgba(0,0,0,.9); backdrop-filter: none; height: 56px; }
.nav button { border-radius: 14px; color: var(--ink-2); background: transparent; box-shadow: none; border: 0; }
.nav button.active { color: #fff; min-height: 0; border-radius: 14px; }

.ref-dot { background: var(--surface); border: 1px solid var(--line); }
.ref-dot.on { background: var(--btn-bg); border-color: var(--btn-edge); }
.badge, .soon, .ref-tagline { background: rgba(150,115,255,.1); border: 1px solid var(--line-hi); color: var(--accent); border-radius: 8px; }
.toast { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }

/* переключатель темы */
.theme-toggle { position: relative; flex: none; width: 60px; height: 34px; border-radius: 12px; padding: 0; cursor: pointer; background: var(--surface-2); border: 1px solid var(--line-hi); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.tt-knob { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 9px; background: var(--btn-bg); box-shadow: inset 0 1px 0 var(--btn-hi), 0 4px 10px -2px var(--btn-glow); transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
:root[data-theme="violet"] .tt-knob { transform: translateX(26px); }
.menu-item .theme-toggle { margin-left: auto; }

/* ===== Стартовый экран: MacBook ===== */
.intro-view { min-height: calc(100vh - 40px); min-height: calc(100svh - 40px); display: flex; flex-direction: column; }
.intro-top { display: flex; justify-content: flex-end; padding-top: 6px; }
.mac-wrap { flex: 1; display: grid; place-items: center; perspective: 1500px; padding: 6px 0; }
.mac { width: 100%; max-width: 372px; transform: rotateX(7deg); animation: macIn 2.8s cubic-bezier(.22, 1, .36, 1) both; }
.mac-lid {
  position: relative; border-radius: 15px 15px 4px 4px; padding: 10px 10px 13px;
  background: linear-gradient(180deg, #34343a 0%, #141417 40%, #0a0a0c 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 0 0 1px #000, 0 0 0 2px rgba(255,255,255,.1), 0 40px 90px -24px rgba(112, 74, 240, .7), 0 0 120px rgba(112, 74, 240, .28);
}
.mac-screen { position: relative; aspect-ratio: 16 / 10; border-radius: 7px; overflow: hidden; background: #050309; animation: screenOn 3.2s cubic-bezier(.22, 1, .36, 1) .5s both; }
.mac-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mac-screen canvas.nogl { background: radial-gradient(60% 70% at 50% 45%, #5a38c9, #1a0d4a 60%, #050309); }
.mac-notch { position: absolute; top: 0; left: 50%; width: 21%; height: 11px; transform: translateX(-50%); background: #000; border-radius: 0 0 9px 9px; }
.mac-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #fff; font-family: ui-serif, "New York", "Iowan Old Style", "Playfair Display", Georgia, serif; text-shadow: 0 2px 26px rgba(0,0,0,.6); animation: textIn 2.2s ease 1.6s both; }
.mac-text em { font-size: 16px; font-style: italic; font-weight: 400; color: #ece4ff; letter-spacing: .01em; }
.mac-text strong { font-size: 36px; font-weight: 700; letter-spacing: -.015em; line-height: 1.05; }
.mac-base { position: relative; width: 112%; margin: 0 -6%; height: 13px; background: linear-gradient(180deg, #dcdde2 0%, #a3a4aa 55%, #7c7d83 100%); border-radius: 0 0 18px 18px; box-shadow: 0 22px 44px -10px rgba(112, 74, 240, .5), inset 0 1px 0 rgba(255,255,255,.7); }
.mac-thumb { position: absolute; top: 0; left: 50%; width: 18%; height: 5px; transform: translateX(-50%); background: linear-gradient(180deg, #86878d, #b9babf); border-radius: 0 0 9px 9px; }
@keyframes macIn { from { opacity: 0; transform: rotateX(22deg) translateY(26px) scale(.94); } to { opacity: 1; transform: rotateX(7deg); } }
@keyframes screenOn { 0% { filter: brightness(0); } 55% { filter: brightness(.55); } 100% { filter: brightness(1); } }
@keyframes textIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.intro-sub { text-align: center; color: var(--ink-2); font-size: 14px; margin: 4px 0 16px; }
.intro-cta {
  margin: 0 0 calc(18px + var(--safe-bottom)); background: linear-gradient(180deg, #ffffff 0%, #ebe7f8 100%); color: #171320; text-shadow: none;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.45), 0 14px 26px -8px rgba(115, 80, 245, .8), 0 32px 48px -16px rgba(115, 80, 245, .5);
}
.intro-cta svg { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .mac, .mac-screen, .mac-text { animation: none; } }
/* возвращаем стрелки плиток на место, основание ноутбука чуть уже */
.tile .go { position: absolute; left: 14px; bottom: 14px; z-index: 2; }
.mac-base { width: 106%; margin: 0 -3%; }
/* объёмные иллюстрации в плитках */
.tile .art { right: 10px; bottom: 8px; }
.tile .art svg.art-img { width: 104px; height: 104px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); }
.theme-fade { position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .24s ease; }

/* ноутбук строго фронтально (без 3D): при смене темы снимки совпадают, двигаться нечему */
.mac-wrap { perspective: none; }
.mac { transform: none; }
@keyframes macIn { from { opacity: 0; transform: translateY(28px) scale(.94); } to { opacity: 1; transform: none; } }
/* ноутбук живёт отдельным слоем перехода: анимация экрана не замирает при смене темы */
.mac { view-transition-name: mac; }
::view-transition-group(mac) { animation: none; }
::view-transition-old(mac) { display: none; }
::view-transition-new(mac) { animation: none; mix-blend-mode: normal; }

/* ===== Заставка: линия, бегущая вдоль краёв, нижняя панель, проступание из фона ===== */
.fx-layer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.fx-line { position: absolute; height: 3px; border-radius: 3px; transform-origin: 50% 50%;
  background: linear-gradient(90deg, rgba(140,100,255,0) 0%, #b9a2ff 18%, #ffffff 50%, #b9a2ff 82%, rgba(140,100,255,0) 100%);
  box-shadow: 0 0 16px 3px rgba(130, 90, 255, .85), 0 0 60px 10px rgba(130, 90, 255, .5); }
.fx-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fx-svg path { fill: none; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(140, 100, 255, .95)) drop-shadow(0 0 14px rgba(120, 80, 255, .6)); }

.nav.nav-arrive { animation: navIn 1.2s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes navIn { from { scale: .06 .5; opacity: 0; filter: brightness(2.6) blur(6px); } to { scale: 1 1; opacity: 1; filter: none; } }

.view.arrive > * { animation-name: emerge; animation-duration: 1.6s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); animation-fill-mode: both; }
@keyframes emerge {
  0%   { opacity: 0; filter: blur(26px) brightness(2.6) saturate(1.8); transform: scale(.93); }
  55%  { opacity: .85; }
  100% { opacity: 1; filter: none; transform: none; }
}
/* нижняя панель теперь заполняет уже вычерченный силуэт мягким проявлением */
.nav.nav-arrive { animation: navIn2 .9s ease both; }
@keyframes navIn2 { from { opacity: 0; filter: brightness(2.2); } to { opacity: 1; filter: none; } }
.fx-svg path { stroke-linejoin: round; }
/* короче: проступание из фона и панель */
.view.arrive > * { animation-duration: 1.15s; }
.nav.nav-arrive { animation-duration: .65s; }
/* плавнее и чуть дольше */
.view.arrive > * { animation-duration: 1.6s; animation-timing-function: cubic-bezier(.25, .8, .25, 1); }
.nav.nav-arrive { animation-duration: 1s; }
/* закрытая крышка видна на основании */
.mac { position: relative; }
.mac-slab { position: absolute; left: 4%; right: 4%; bottom: 13px; height: 9px; border-radius: 7px 7px 0 0; opacity: 0;
  background: linear-gradient(180deg, #e9eaee 0%, #b4b5bb 60%, #8e8f96 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 -6px 26px rgba(112,74,240,.45); }

/* все экраны проступают из фона так же, как после заставки */
.view > * { animation-name: emerge; animation-duration: 1.1s; animation-timing-function: cubic-bezier(.25, .8, .25, 1); animation-fill-mode: both; }

/* чуть быстрее и менее размыто */
@keyframes emerge { 0% { opacity: 0; filter: blur(12px) brightness(1.9) saturate(1.4); transform: scale(.96); } 55% { opacity: .9; } 100% { opacity: 1; filter: none; transform: none; } }
.view > * { animation-duration: .85s; }
.view.arrive > * { animation-duration: 1.3s; }

.fx-line { height: 2px; }
.fx-svg path { filter: drop-shadow(0 0 4px rgba(140,100,255,.9)) drop-shadow(0 0 10px rgba(120,80,255,.5)); }

/* Иконки платформ (встроены в код) */
.pico { flex: none; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.pico svg { width: 30px; height: 30px; }
.pico-android { background: linear-gradient(135deg, #3ddc84, #169c55); }
.pico-windows { background: linear-gradient(135deg, #36a3ff, #0063d1); }
.pico-apple { background: linear-gradient(135deg, #9a9aa0, #3a3a3c); }
.happ-head .pico { width: 60px; height: 60px; border-radius: 16px; }
.happ-head .pico svg { width: 34px; height: 34px; }
.app-card.disabled .pico { filter: saturate(.8); }
