/* Продуктовый слой витрины Atomic RD: прежняя навигация и приветствие.
   Подключается после основ, до kit.css. В общий dist не входит. */

.ds-main { margin: 0 auto; display: grid; gap: var(--ard-space-widget, 24px); padding-bottom: calc(92px + var(--safe-b)); outline: none; }
.nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav {
  position: fixed; z-index: 20; left: 12px; right: 12px; bottom: max(8px, calc(var(--safe-b) - 12px));
  height: 68px; border-radius: var(--ard-r-full); padding: 6px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  max-width: 520px; margin: 0 auto;
}
.nav a {
  display: grid; place-items: center; align-content: center; gap: 2px; text-decoration: none;
  border-radius: var(--ard-r-xl); color: var(--subtle); font-size: 10px; line-height: 12px; letter-spacing: .02em;
  transition: background .2s, color .2s;
}
.nav a[aria-current="page"] { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.nav .nav-brand { display: none; }
@media (min-width: 960px) {.nav {
    top: 16px; bottom: 16px; left: 16px; right: auto; width: 248px; height: auto; max-width: none; margin: 0;
    border-radius: var(--ard-r-full); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
  }
.nav .nav-brand { display: block; padding: 4px 12px 16px; }
.nav .nav-brand b { display: block; font-size: 18px; line-height: 24px; }
.nav a { display: flex; justify-content: flex-start; gap: 12px; padding: 12px 14px; font-size: 14px; line-height: 20px; border-radius: var(--ard-r-md); }
.nav a:hover:not([aria-current="page"]) { background: var(--accent-band); }
.nav .nav-foot { display: block; margin-top: auto; padding: 12px; color: var(--muted); font-size: 12px; line-height: 16px; }
}
.nav .nav-user { display: none; }
@media (min-width: 960px) {.nav .nav-user { display: flex; margin-top: auto; }
}
.nav .nav-user .me-img.sm { flex: none; }
:where(.ds-crm-desktop, .ds-fin-desktop, .ds-phone:has(.ard-crm-mscreen, .ard-fin-screen), .ard-crm-profile, .ard-crm-reminder, .ard-crm-steps, .ard-crm-dash) {
  --c-work: var(--biz-work); --c-tel: var(--biz-tel); --c-media: var(--biz-media); --c-tax: var(--biz-tax); --c-reserve: var(--biz-reserve); --c-home: var(--biz-home); --c-charity: var(--biz-charity);
  --accent-band: color-mix(in srgb, var(--accent) 14%, transparent);                     /* подсветка и заливка графиков — тише */
}
.ds-crm-desktop::before, .ds-fin-desktop::before, .ds-phone:has(.ard-crm-mscreen, .ard-fin-screen)::before { display: none; }
body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 15% 10%, var(--blob-1), transparent 70%),
    radial-gradient(45vmax 45vmax at 90% 20%, var(--blob-2), transparent 70%),
    radial-gradient(40vmax 40vmax at 60% 95%, var(--blob-3), transparent 70%);
}
.nav-user-row { display: none; }
@media (min-width: 960px) {.nav-user-row { display: flex; gap: 8px; align-items: center; margin-top: auto; }
.nav-user-row .nav-user { flex: 1; margin-top: 0; }
.nav-user-row .theme-btn { width: 44px; height: 44px; flex: none; }
.page-head .head-theme { display: none; }
}
.head-theme { flex: none; }
.nav .nav-brand { align-items: center; gap: 12px; }
@media (min-width: 960px) {.nav .nav-brand { display: flex; }
}
.nav .nav-brand .kicker { display: block; font-size: 5.5px; line-height: 8px; }
.nav .nav-brand b { line-height: 20px; }
.nav a.desktop-only { display: none; }
@media (min-width: 960px) {.nav a.desktop-only { display: flex; }
}
.welcome { display: grid; justify-items: center; gap: 12px; text-align: left; }
.welcome img { width: 200px; height: 200px; object-fit: contain; animation: wave-in .5s cubic-bezier(.2,.9,.3,1.3) both; }
.welcome .bubble { border-radius: var(--ard-r-lg); }
@media (prefers-reduced-motion: reduce) {.welcome img { animation: none; }
}
@media (hover: hover) {.nav-user-row [data-tip]::after { top: auto; bottom: calc(100% + 8px); }
}
.welcome > * { min-width: 0; max-width: 100%; }
.welcome .bubble { width: 100%; }
@media (max-width: 959px) {.welcome img { width: min(200px, 20dvh); height: min(200px, 20dvh); }
.welcome { gap: 8px; }
}
.nav a[aria-current="page"] { background: var(--ctl); color: var(--ctl-fg); }
.nav { border-radius: 34px; }
.nav .nav-label { display: none; }
.nav .nav-count { display: none; }
.sheet-welcome { isolation: isolate; }
.sheet-welcome::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: radial-gradient(60% 42% at 14% 6%, var(--blob-1), transparent 72%), radial-gradient(56% 42% at 92% 14%, var(--blob-2), transparent 72%), radial-gradient(70% 46% at 50% 104%, var(--blob-3), transparent 74%); }
@media (min-width: 960px) {.nav { border-radius: 28px; padding: 14px 10px 12px; gap: 2px; }
.nav .nav-brand { padding: 4px 10px 8px; }
.nav a { gap: 10px; padding: 0 14px; border-radius: 16px; min-height: 36px; align-items: center; font-weight: 500; }
.nav .nav-label { display: block; padding: 12px 10px 6px; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--muted); }
.nav a svg { width: 20px; height: 20px; flex: none; }
.nav a[aria-current="page"] { font-weight: 700; }
.nav .nav-count { display: block; margin-left: auto; font-style: normal; font-size: 13px; line-height: 16px; font-weight: 400; color: var(--muted); }
.nav a[aria-current="page"] .nav-count { color: inherit; opacity: .7; }
.nav-user-row { padding-top: 8px; }
}
@media (prefers-reduced-motion: no-preference) {.sheet-welcome::before { animation: welcome-drift 16s ease-in-out infinite alternate; }
}
html.glass-nav .nav {
  background: var(--nav-bg);
  -webkit-backdrop-filter: var(--nav-blur) !important;
  backdrop-filter: var(--nav-blur) !important;
}

/* Демонстрация типографики не зависят от экрана Suyber. */
.ds-type-amount { font-size: 36px; line-height: 34px; font-weight: 800; letter-spacing: -.03em; }
