/* Дополнительные утилиты; фон и glass — в design-system.css */

/* ── Spinner keyframe (используется и в оверлее навигации, и в кнопках) ── */
@keyframes nf-spin {
  to { transform: rotate(360deg); }
}

/* ── #nf-page-overlay: затемнение + спиннер при переходе между страницами ── */
#nf-page-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(7, 7, 8, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  pointer-events: all;
  opacity: 1;
  transition: opacity 0.35s ease;
}
#nf-page-overlay.nf-ov-hide {
  opacity: 0;
  pointer-events: none;
}
#nf-page-overlay .nf-spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(61, 212, 224, 0.15);
  border-top-color: #3dd4e0;
  box-shadow: 0 0 18px rgba(61, 212, 224, 0.25);
  animation: nf-spin 0.75s linear infinite;
}


#nf-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  z-index: 99999;
  background: #3dd4e0;
  box-shadow: 0 0 8px rgba(61, 212, 224, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#nf-topbar.nf-topbar-active {
  opacity: 1;
  animation: nf-bar-grow 8s cubic-bezier(0.1, 0.05, 0, 1) forwards;
}
#nf-topbar.nf-topbar-done {
  width: 100% !important;
  opacity: 0;
  animation: none;
  transition: width 0.1s ease, opacity 0.4s ease 0.1s;
}
@keyframes nf-bar-grow {
  0%   { width: 0%; }
  20%  { width: 40%; }
  50%  { width: 65%; }
  80%  { width: 82%; }
  100% { width: 92%; }
}

/* ── btn-loading: блокировка кнопок при нажатии (без ::after спиннера — он режется overflow:hidden) ── */
.nf-btn-loading {
  opacity: 0.45 !important;
  pointer-events: none !important;
  cursor: default !important;
  transition: opacity 0.1s ease !important;
}
body.bg-bg {
  /* базовый фон переопределяется в design-system.css */
}

/* Контент поверх зерна */
body > main,
body > footer {
  position: relative;
  z-index: 2;
}

/* Заголовки лендинга — Syne из design-system */
.font-display {
  font-family: "Syne", Inter, system-ui, -apple-system, sans-serif;
}

/* Метка секции — цвет в design-system */
.section-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Карточка — наследует neo из design-system .panel-rise */
.panel-rise {
  border-radius: 1.75rem;
}

/* Grain texture overlay — Editorial Grain, под контентом */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.048;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Radial gradient utility */
.bg-gradient-radial {
  background: radial-gradient(ellipse at center, var(--tw-gradient-from) 0%, var(--tw-gradient-via, transparent) 50%, var(--tw-gradient-to, transparent) 100%);
}

/* Glass — дублирует design-system; оставляем мягче для совместимости */
.glass {
  background: rgba(12, 12, 16, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* Gold glow — спокойнее */
.glow-gold {
  box-shadow: 0 0 28px rgba(61, 212, 224, 0.12), 0 0 48px rgba(0, 0, 0, 0.35);
}

/* Custom scrollbar */
.custom-scroll::-webkit-scrollbar {
  width: 4px;
}
.custom-scroll::-webkit-scrollbar-track {
  background: #0a0a12;
}
.custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(61, 212, 224, 0.22);
  border-radius: 2px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(184, 95, 163, 0.28);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(61, 212, 224, 0.28) #0c0c0f;
}

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Smooth transitions */
*,
*::before,
*::after {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus ring */
:focus-visible {
  outline: 2px solid rgba(61, 212, 224, 0.45);
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background: rgba(61, 212, 224, 0.2);
  color: #ffffff;
}

/* Мобильная клавиатура / WebView */
html {
  height: 100%;
  height: 100dvh;
}
body {
  min-height: 100%;
  min-height: 100dvh;
}
main {
  max-width: 100%;
  overflow-x: hidden;
}
.sinp,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select {
  max-width: 100%;
  box-sizing: border-box;
}
.app-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.app-input-row > .sinp,
.app-input-row > input,
.app-input-row > textarea {
  flex: 1;
  min-width: 0;
  width: auto;
  max-width: none;
}
.app-input-row > .btn-g,
.app-input-row > .btn-o,
.app-input-row > button[type="submit"] {
  flex-shrink: 0;
}

/* Сообщения чатов: кликабельные ссылки + карточка видеозвонка */
.ch-msg-link,
.nf-chat-url {
  color: #5eead4;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.ch-msg-link:hover,
.nf-chat-url:hover {
  color: #7ef0f5;
}
.nf-call-invite-card {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(61, 212, 224, 0.28);
  background: rgba(61, 212, 224, 0.08);
  max-width: 100%;
  box-sizing: border-box;
}
.nf-call-invite-text {
  font-size: 14px;
  line-height: 1.45;
  color: #e8e8e8;
  word-break: break-word;
}
.nf-call-invite-text .ch-msg-link,
.nf-call-invite-text a.nf-chat-url {
  color: #5eead4;
}
.nf-call-invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  align-items: center;
}
.nf-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: inherit;
}
.nf-call-btn--yes {
  background: linear-gradient(135deg, #3dd4e0, #2a9d8f);
  color: #0a0c12;
}
.nf-call-btn--no {
  background: rgba(255, 255, 255, 0.08);
  color: #e8e8e8;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.nf-call-invite-card--declined .nf-call-invite-actions {
  display: none;
}
.nf-call-invite-card--declined::after {
  content: "Звонок отклонён";
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #9ca3af;
}
.nf-call-invite-fallback {
  color: #d1d5db;
}

/* Глобальное отключение видеосвязи (админка): скрыть кнопки звонка/видео в чатах */
html[data-nf-video-calls="0"] #chPerCall,
html[data-nf-video-calls="0"] #chPerVideo,
html[data-nf-video-calls="0"] #chQuickVideo {
  display: none !important;
}

/* Лендинг: один бирюзовый «маячок» между секциями (листайте дальше) */
.index-scroll-beacon-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px 0 4px;
  pointer-events: none;
  user-select: none;
}
.index-scroll-beacon-track {
  position: relative;
  height: 72px;
  width: 10px;
}
.index-scroll-beacon-pill {
  position: absolute;
  left: 50%;
  margin-left: -3px;
  width: 6px;
  height: 14px;
  border-radius: 9999px;
  background: #3dd4e0;
  box-shadow: 0 0 14px rgba(61, 212, 224, 0.95);
  animation: index-scroll-beacon-float 2.4s ease-in-out infinite;
}
@keyframes index-scroll-beacon-float {
  0%,
  100% {
    top: 2px;
    opacity: 0.85;
  }
  50% {
    top: 56px;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .index-scroll-beacon-pill {
    animation: none;
    top: 29px !important;
    opacity: 0.9;
  }
}

/* Кнопка с градиентом как на главной (доступна на всех страницах с custom.css) */
@keyframes nf-shimmer-btn-flow {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}
.nf-shimmer-btn {
  background: linear-gradient(90deg, #3dd4e0, #b85fa3, #f5c542, #3dd4e0, #b85fa3) !important;
  background-size: 200% auto !important;
  animation: nf-shimmer-btn-flow 3s linear infinite !important;
  color: #070708 !important;
  border: none !important;
  text-decoration: none !important;
  box-shadow: 0 4px 24px rgba(61, 212, 224, 0.22);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}
.nf-shimmer-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 28px rgba(61, 212, 224, 0.3);
}

/* Каркас визарда (радиус вне Tailwind purge) */
.nf-hgw-shell {
  border-radius: 2rem;
}

/* Гостевой визард грибов: единый градиент кнопок + ссылки в тексте */
.nf-hgw-gradient-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.55rem 1rem;
  border-radius: 1rem;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.01em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  text-align: center;
  color: #070708 !important;
  border: none !important;
  cursor: pointer;
  text-decoration: none !important;
  box-sizing: border-box;
  background: linear-gradient(90deg, #3dd4e0, #b85fa3, #f5c542, #3dd4e0, #b85fa3) !important;
  background-size: 200% auto !important;
  animation: nf-shimmer-btn-flow 3s linear infinite !important;
  box-shadow: 0 4px 22px rgba(61, 212, 224, 0.28);
  transition: filter 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
@media (min-width: 640px) {
  .nf-hgw-gradient-btn {
    font-size: 0.875rem;
    padding: 0.6rem 1.1rem;
    border-radius: 1.125rem;
  }
}
.nf-hgw-gradient-btn:hover {
  filter: brightness(1.07);
  box-shadow: 0 6px 30px rgba(184, 95, 163, 0.35);
}
.nf-hgw-gradient-btn:active {
  transform: scale(0.98);
}
.nf-hgw-gradient-btn--back {
  background: linear-gradient(90deg, #f5c542, #ff8ad8, #3dd4e0, #f5c542) !important;
  background-size: 220% auto !important;
  animation-duration: 2.2s !important;
  box-shadow: 0 0 0 2px rgba(245, 197, 66, 0.55), 0 8px 32px rgba(245, 197, 66, 0.35);
  font-weight: 900;
}
.nf-hgw-gradient-btn--research {
  box-shadow: 0 0 0 2px rgba(61, 212, 224, 0.45), 0 10px 36px rgba(61, 212, 224, 0.38);
  filter: saturate(1.12);
}
/* Магазин / витрины — теплее и отличимо от основного cyan–magenta–gold меню */
.nf-hgw-gradient-btn--shop {
  background: linear-gradient(92deg, #ff9a4d, #ff5c9a, #c07cff, #6ee7ff, #ff9a4d) !important;
  background-size: 240% auto !important;
  animation-duration: 2.65s !important;
  box-shadow: 0 0 0 2px rgba(255, 154, 77, 0.5), 0 8px 30px rgba(255, 92, 154, 0.35);
}
.nf-hgw-gradient-btn--shop:hover {
  filter: brightness(1.08) saturate(1.08);
  box-shadow: 0 0 0 2px rgba(255, 154, 77, 0.65), 0 10px 34px rgba(192, 124, 255, 0.38);
}
.nf-hgw-inline-link {
  color: #7ee8f0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  word-break: break-all;
}
.nf-hgw-inline-link:hover {
  color: #f5d78a;
}

/* Логотип в шапке: маскот + подпись */
.nf-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
}
.nf-brand-lockup__mascot {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  object-fit: contain;
  background: radial-gradient(circle at 50% 28%, rgba(61, 212, 224, 0.28), rgba(10, 8, 14, 0.96));
  border: 2px solid rgba(61, 212, 224, 0.38);
  box-shadow: 0 0 22px rgba(61, 212, 224, 0.22);
}
@media (min-width: 640px) {
  .nf-brand-lockup__mascot {
    width: 2.5rem;
    height: 2.5rem;
  }
}
.nf-brand-lockup__title {
  max-width: min(11rem, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nf-fungi-consult-page .nf-brand-lockup__mascot {
  width: 2rem;
  height: 2rem;
}

/* ── /fungi-consult: «телефон в телефоне» + маскот ── */
.nf-fungi-consult-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #000;
}
body.nf-fungi-consult-page {
  background-color: #000;
}
.nf-fungi-consult-page main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.nf-fungi-immersive-root .nf-hgw-gradient-btn {
  border-radius: 999px !important;
}

.nf-fungi-immersive-root {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.5rem 0.65rem max(0.5rem, env(safe-area-inset-bottom));
  padding-top: max(0.5rem, env(safe-area-inset-top));
  box-sizing: border-box;
}
.nf-fungi-immersive-root.nf-fungi-immersive-root--dash {
  padding-top: calc(3.5rem + env(safe-area-inset-top));
}

.nf-fungi-device-outer {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 2.75rem;
  background: linear-gradient(145deg, rgba(40, 40, 48, 0.95), rgba(12, 12, 14, 0.98));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 8px rgba(0, 0, 0, 0.35),
    0 0 0 10px rgba(61, 212, 224, 0.12),
    0 28px 80px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nf-fungi-device-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 2.15rem;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0a0c, #000);
  border: 1px solid rgba(61, 212, 224, 0.14);
}

.nf-fungi-mascot-stage {
  flex-shrink: 0;
  position: relative;
  padding: 0.65rem 1rem 0.35rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(ellipse 100% 120% at 50% 0%, rgba(61, 212, 224, 0.12), transparent 62%);
}

.nf-fungi-hero-avatar {
  width: min(5.5rem, 34vw);
  height: min(5.5rem, 34vw);
  margin: 0 auto 0.45rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(61, 212, 224, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(184, 95, 163, 0.2);
  background: radial-gradient(circle at 50% 30%, rgba(61, 212, 224, 0.25), rgba(8, 6, 12, 0.96));
}
.nf-fungi-hero-avatar__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.nf-fungi-mascot {
  position: relative;
  width: min(7.5rem, 46vw);
  height: min(7.5rem, 46vw);
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  transition: filter 0.25s ease, transform 0.25s ease;
}
.nf-fungi-mascot img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  border: 2px solid rgba(61, 212, 224, 0.4);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(184, 95, 163, 0.15);
}

.nf-fungi-mascot--breathe {
  animation: nf-fungi-mascot-breathe 3.2s ease-in-out infinite;
}
@keyframes nf-fungi-mascot-breathe {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.04);
    filter: brightness(1.06);
  }
}
.nf-fungi--typing .nf-fungi-mascot.nf-fungi-mascot--breathe {
  animation: nf-fungi-mascot-type 0.9s ease-in-out infinite;
}

.nf-fungi--typing .nf-fungi-mascot {
  animation: nf-fungi-mascot-type 0.9s ease-in-out infinite;
}
@keyframes nf-fungi-mascot-type {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px) scale(1.02);
  }
}
.nf-fungi--typing .nf-fungi-hero-avatar {
  animation: nf-fungi-mascot-type 0.9s ease-in-out infinite;
}
.nf-fungi-mascot--glow {
  filter: drop-shadow(0 0 14px rgba(61, 212, 224, 0.85)) drop-shadow(0 0 26px rgba(184, 95, 163, 0.5));
  transform: scale(1.06);
}
.nf-fungi-mascot--post .nf-fungi-mascot-face {
  filter: brightness(1.08) saturate(1.1);
}

.nf-fungi-mush {
  position: absolute;
  right: -0.15rem;
  bottom: 0.1rem;
  font-size: 1.45rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

.nf-fungi-briefcase {
  position: absolute;
  left: -0.2rem;
  bottom: 0.15rem;
  width: 1.85rem;
  height: 1.35rem;
  border-radius: 0.25rem;
  background: linear-gradient(145deg, #2a2a30, #121214);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.nf-fungi-briefcase img {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 0.1rem;
}

.nf-fungi-speech {
  margin: 0.45rem auto 0;
  max-width: 18rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: rgba(232, 238, 242, 0.92);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(61, 212, 224, 0.22);
  border-radius: 1rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.nf-fungi-speech.nf-fungi-speech--on {
  opacity: 1;
  transform: translateY(0);
}

.nf-fungi-log--immersive {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.65rem 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.nf-fungi-bubble-mascot {
  position: relative;
  padding-right: 2.75rem !important;
}
.nf-fungi-bubble-mascot::after {
  content: "";
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--nf-fungi-mascot-url, none) center / cover no-repeat;
  border: 2px solid rgba(61, 212, 224, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.nf-fungi-btn-row {
  flex-shrink: 0;
  padding: 0.45rem 0.75rem 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
/* Фиксированная нижняя навигация приложения (app-uni-tabbar) — запас, чтобы кнопки сценария оставались кликабельны */
body.app-has-mobile-footer .nf-fungi-immersive-root .nf-fungi-btn-row {
  padding-bottom: calc(0.55rem + 56px + max(0px, env(safe-area-inset-bottom, 0px)));
}
body.app-has-mobile-footer .nf-fungi-immersive-root .nf-fungi-input-dock {
  padding-bottom: calc(0.55rem + 56px + max(0px, env(safe-area-inset-bottom, 0px)));
}
body.app-has-mobile-footer .nf-fungi-immersive-root a.nf-fungi-gift-cta {
  margin-bottom: calc(8px + 56px + max(0px, env(safe-area-inset-bottom, 0px)));
}

.nf-fungi-input-dock {
  flex-shrink: 0;
  padding: 0.45rem 0.75rem 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.92), rgba(0, 0, 0, 0.96));
}
.nf-fungi-input-dock__hint {
  font-size: 0.68rem;
  line-height: 1.35;
  color: rgba(232, 238, 242, 0.72);
  margin: 0 0 0.45rem;
}
.nf-fungi-input-dock__inp {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #070708;
  color: rgba(242, 244, 246, 0.96);
  font-size: 0.85rem;
  padding: 0.55rem 0.75rem;
}
.nf-fungi-input-dock__textarea {
  display: block;
  min-height: 6.5rem;
  max-height: min(42vh, 16rem);
  resize: vertical;
  line-height: 1.45;
  font-family: inherit;
}
.nf-fungi-input-dock__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.5rem;
}
.nf-fungi-input-dock__actions .nf-fungi-input-dock__cancel {
  margin-right: auto;
}
.nf-fungi-input-dock__actions .nf-fungi-input-dock__send {
  min-width: 7.5rem;
}
.nf-fungi-input-dock__inp:focus {
  outline: none;
  border-color: rgba(61, 212, 224, 0.45);
  box-shadow: 0 0 0 2px rgba(61, 212, 224, 0.15);
}
.nf-fungi-input-dock__send {
  border: none;
  border-radius: 1rem;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: #070708;
  background: linear-gradient(90deg, #3dd4e0, #b85fa3, #f5c542);
  background-size: 160% auto;
  box-shadow: 0 4px 18px rgba(61, 212, 224, 0.25);
}
.nf-fungi-input-dock__send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.nf-fungi-input-dock__cancel {
  flex-shrink: 0;
  border-radius: 1rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  color: rgba(232, 238, 242, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.nf-fungi-input-dock__cancel:hover {
  background: rgba(255, 255, 255, 0.1);
}
.nf-fungi-consult-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}
@keyframes nf-fungi-input-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}
.nf-fungi-input-dock__inp--shake {
  animation: nf-fungi-input-shake 0.38s ease;
}

.nf-fungi-input-row {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 480px) {
  .nf-fungi-input-row {
    flex-direction: row;
    align-items: center;
  }
}

.nf-fungi-gift-cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0.5rem 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  text-decoration: none !important;
  color: #070708 !important;
  font-weight: 800;
  font-size: 0.7rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #3dd4e0, #b85fa3, #f5c542, #3dd4e0, #b85fa3);
  background-size: 220% auto;
  animation: nf-shimmer-btn-flow 2.8s linear infinite;
  box-shadow: 0 6px 28px rgba(61, 212, 224, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.12);
  transition: filter 0.2s ease, transform 0.15s ease;
}
@media (min-width: 400px) {
  .nf-fungi-gift-cta {
    font-size: 0.78rem;
    padding: 0.75rem 1rem;
  }
}
.nf-fungi-gift-cta:hover {
  filter: brightness(1.06);
}
.nf-fungi-gift-cta:active {
  transform: scale(0.99);
}
.nf-fungi-gift-cta__avatar {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(7, 7, 8, 0.35);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.nf-fungi-gift-cta__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nf-fungi-gift-cta__text {
  text-align: left;
  min-width: 0;
}
.nf-fungi-gift-cta__kicker {
  display: block;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 0.15rem;
}
.nf-fungi-gift-cta__lead {
  display: block;
}

/* Футер: яркие кнопки в стиле главной (ширина по тексту, не на всю колонку) */
.nf-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: #070708;
  background: linear-gradient(90deg, #3dd4e0, #b85fa3, #f5c542, #3dd4e0, #b85fa3);
  background-size: 200% auto;
  animation: nf-shimmer-btn-flow 3s linear infinite;
  border: none;
  box-shadow: 0 4px 20px rgba(61, 212, 224, 0.25);
  transition: filter 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}
.nf-footer-btn:hover {
  filter: brightness(1.07);
  box-shadow: 0 6px 26px rgba(61, 212, 224, 0.32);
}
.nf-footer-btn:focus-visible {
  outline: 2px solid rgba(61, 212, 224, 0.55);
  outline-offset: 2px;
}
button.nf-footer-btn {
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.nf-footer-btn--legal {
  width: auto;
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.625rem;
}
.nf-footer-btn--legal:hover {
  filter: brightness(1.08);
}

@keyframes nf-fab-avatar-breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 18px rgba(0, 229, 216, 0.28),
      0 0 26px rgba(232, 121, 249, 0.2);
  }
  50% {
    transform: scale(1.11);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 0 36px rgba(0, 229, 216, 0.55),
      0 0 48px rgba(232, 121, 249, 0.42),
      0 0 64px rgba(168, 85, 247, 0.2);
  }
}

/* Плавающая «Задать вопрос» — мягкое стекло в духе кнопок /login */
.nf-fungi-fab-launcher {
  position: fixed;
  z-index: 9998;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  left: auto;
  top: auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: min(calc(100vw - 2rem), 300px);
  padding: 0.55rem 1rem 0.55rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(120% 140% at 12% 35%, rgba(34, 158, 217, 0.22), transparent 55%),
    radial-gradient(100% 120% at 88% 65%, rgba(168, 85, 247, 0.18), transparent 50%),
    rgba(8, 10, 18, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 40px rgba(34, 158, 217, 0.1),
    0 0 48px rgba(168, 85, 247, 0.06),
    0 14px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.nf-fungi-fab-launcher:hover {
  transform: translateY(-2px);
  border-color: rgba(160, 220, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 52px rgba(34, 158, 217, 0.16),
    0 0 56px rgba(168, 85, 247, 0.1),
    0 18px 48px rgba(0, 0, 0, 0.45);
}
.nf-fungi-fab-launcher:active {
  transform: translateY(0);
}
@media (min-width: 640px) {
  .nf-fungi-fab-launcher {
    bottom: max(1.75rem, env(safe-area-inset-bottom, 0px));
    right: max(1.5rem, env(safe-area-inset-right, 0px));
    padding: 0.6rem 1.15rem 0.6rem 0.6rem;
  }
}

.nf-fungi-fab-launcher__avatar {
  width: 3.35rem;
  height: 3.35rem;
  flex-shrink: 0;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3px;
  border: 1px solid rgba(120, 240, 255, 0.22);
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 229, 216, 0.25), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(232, 121, 249, 0.22), transparent 50%),
    #030308;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 20px rgba(0, 229, 216, 0.25),
    0 0 28px rgba(232, 121, 249, 0.18);
  transform-origin: center center;
  animation: nf-fab-avatar-breathe 2.75s ease-in-out infinite;
}
.nf-fungi-fab-launcher__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  object-position: center center;
  background: #000;
}
@media (prefers-reduced-motion: reduce) {
  .nf-fungi-fab-launcher__avatar {
    animation: none;
  }
}
.nf-fungi-fab-launcher__text {
  min-width: 0;
  text-align: left;
  padding-right: 4px;
}

/* ── Гостевой лендинг (главная): «дыхание» в духе /login ── */
@keyframes nf-landing-breathe-filter {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.09);
  }
}

@keyframes nf-landing-breathe-scale {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.042);
    filter: brightness(1.08);
  }
}

@keyframes nf-landing-breathe-btn {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.065);
    filter: brightness(1.1);
  }
}

body.index-landing-guest .nf-landing-root .nf-landing-breathe-filter {
  animation: nf-landing-breathe-filter 2.85s ease-in-out infinite;
}

body.index-landing-guest .nf-landing-root .nf-landing-breathe-panel {
  transform-origin: center center;
  animation: nf-landing-breathe-scale 2.85s ease-in-out infinite;
}

body.index-landing-guest .nf-landing-root .nf-landing-breathe-btn {
  transform-origin: center center;
  animation: nf-landing-breathe-btn 2.85s ease-in-out infinite;
}

body.index-landing-guest .nf-landing-root .grid > .nf-landing-breathe-panel:nth-child(1) {
  animation-delay: 0s;
}
body.index-landing-guest .nf-landing-root .grid > .nf-landing-breathe-panel:nth-child(2) {
  animation-delay: 0.15s;
}
body.index-landing-guest .nf-landing-root .grid > .nf-landing-breathe-panel:nth-child(3) {
  animation-delay: 0.3s;
}
body.index-landing-guest .nf-landing-root .grid > .nf-landing-breathe-panel:nth-child(4) {
  animation-delay: 0.45s;
}
body.index-landing-guest .nf-landing-root .grid > .nf-landing-breathe-panel:nth-child(5) {
  animation-delay: 0.6s;
}
body.index-landing-guest .nf-landing-root .grid > .nf-landing-breathe-panel:nth-child(6) {
  animation-delay: 0.75s;
}

body.index-landing-guest .nf-landing-root .community-chaos-stage,
body.index-landing-guest .nf-landing-root .shop-chaos-stage {
  animation: nf-landing-breathe-filter 3.1s ease-in-out infinite;
}

body.index-landing-guest .nf-landing-root .community-chaos-card {
  animation: nf-landing-breathe-filter 2.95s ease-in-out infinite;
}
body.index-landing-guest .nf-landing-root .community-chaos-card:nth-child(1) {
  animation-delay: 0s;
}
body.index-landing-guest .nf-landing-root .community-chaos-card:nth-child(2) {
  animation-delay: 0.12s;
}
body.index-landing-guest .nf-landing-root .community-chaos-card:nth-child(3) {
  animation-delay: 0.24s;
}
body.index-landing-guest .nf-landing-root .community-chaos-card:nth-child(4) {
  animation-delay: 0.36s;
}
body.index-landing-guest .nf-landing-root .community-chaos-card:nth-child(5) {
  animation-delay: 0.48s;
}
body.index-landing-guest .nf-landing-root .community-chaos-card:nth-child(6) {
  animation-delay: 0.6s;
}

body.index-landing-guest .nf-landing-root .community-metric-card {
  animation: nf-landing-breathe-filter 3s ease-in-out infinite;
}
body.index-landing-guest .nf-landing-root .community-metric-card:nth-child(1) {
  animation-delay: 0s;
}
body.index-landing-guest .nf-landing-root .community-metric-card:nth-child(2) {
  animation-delay: 0.2s;
}
body.index-landing-guest .nf-landing-root .community-metric-card:nth-child(3) {
  animation-delay: 0.4s;
}

body.index-landing-guest .nf-landing-root a.nf-shimmer-btn,
body.index-landing-guest .nf-landing-root button.nf-shimmer-btn {
  transform-origin: center center;
  animation:
    nf-shimmer 3s linear infinite,
    nf-landing-breathe-btn 2.85s ease-in-out infinite !important;
}

body.index-landing-guest .nf-landing-root [data-nf-hero-card]:nth-child(1) .nf-landing-breathe-filter {
  animation-delay: 0s;
}
body.index-landing-guest .nf-landing-root [data-nf-hero-card]:nth-child(2) .nf-landing-breathe-filter {
  animation-delay: 0.18s;
}
body.index-landing-guest .nf-landing-root [data-nf-hero-card]:nth-child(3) .nf-landing-breathe-filter {
  animation-delay: 0.36s;
}
body.index-landing-guest .nf-landing-root [data-nf-hero-card]:nth-child(4) .nf-landing-breathe-filter {
  animation-delay: 0.54s;
}
body.index-landing-guest .nf-landing-root [data-nf-hero-card]:nth-child(5) .nf-landing-breathe-filter {
  animation-delay: 0.72s;
}

body.index-landing-guest .nf-landing-root .shop-chaos-card:nth-child(1) {
  animation-delay: 0s;
}
body.index-landing-guest .nf-landing-root .shop-chaos-card:nth-child(2) {
  animation-delay: 0.1s;
}
body.index-landing-guest .nf-landing-root .shop-chaos-card:nth-child(3) {
  animation-delay: 0.2s;
}
body.index-landing-guest .nf-landing-root .shop-chaos-card:nth-child(4) {
  animation-delay: 0.3s;
}
body.index-landing-guest .nf-landing-root .shop-chaos-card:nth-child(5) {
  animation-delay: 0.4s;
}
body.index-landing-guest .nf-landing-root .shop-chaos-card:nth-child(6) {
  animation-delay: 0.5s;
}

body.index-landing-guest nav.glass a[href^="/login"] {
  transform-origin: center center;
  animation: nf-landing-breathe-btn 2.85s ease-in-out infinite;
}

body.index-landing-guest nav.glass #lang-switcher > button {
  animation: nf-landing-breathe-filter 2.95s ease-in-out infinite;
}

body.index-landing-guest footer a.nf-footer-btn,
body.index-landing-guest footer button.nf-footer-btn {
  transform-origin: center center;
  animation:
    nf-shimmer-btn-flow 3s linear infinite,
    nf-landing-breathe-btn 2.88s ease-in-out infinite;
}

body.index-landing-guest .nf-landing-root .nf-landing-breathe-btn:hover,
body.index-landing-guest nav.glass a[href^="/login"]:hover {
  animation-play-state: paused;
}

body.index-landing-guest .nf-landing-root a.nf-shimmer-btn:hover,
body.index-landing-guest .nf-landing-root button.nf-shimmer-btn:hover {
  animation-play-state: paused;
}

body.index-landing-guest footer a.nf-footer-btn:hover,
body.index-landing-guest footer button.nf-footer-btn:hover {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  body.index-landing-guest .nf-landing-root .nf-landing-breathe-filter,
  body.index-landing-guest .nf-landing-root .nf-landing-breathe-panel,
  body.index-landing-guest .nf-landing-root .nf-landing-breathe-btn,
  body.index-landing-guest .nf-landing-root .community-chaos-stage,
  body.index-landing-guest .nf-landing-root .shop-chaos-stage,
  body.index-landing-guest .nf-landing-root .community-chaos-card,
  body.index-landing-guest .nf-landing-root .community-metric-card {
    animation: none !important;
  }

  body.index-landing-guest .nf-landing-root a.nf-shimmer-btn,
  body.index-landing-guest .nf-landing-root button.nf-shimmer-btn {
    animation: nf-shimmer 3s linear infinite !important;
  }

  body.index-landing-guest nav.glass a[href^="/login"],
  body.index-landing-guest nav.glass #lang-switcher > button {
    animation: none !important;
  }

  body.index-landing-guest footer a.nf-footer-btn,
  body.index-landing-guest footer button.nf-footer-btn {
    animation: nf-shimmer-btn-flow 3s linear infinite !important;
  }
}
.nf-fungi-fab-launcher__title {
  display: block;
  line-height: 1.2;
}
.nf-fungi-fab-launcher__cta {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.96);
  line-height: 1.25;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
