/* NeonFrame — extras on top of Tailwind (design system §4) */
.hidden {
  display: none !important;
}
.nf-chrome-hide {
  display: none !important;
}
:root {
  --nf-dark: #0a0a0f;
  --nf-surface: #13131c;
  --nf-surface2: #1c1c2a;
  --nf-cyan: #00ffd1;
  --nf-purple: #b44fff;
  --nf-gold: #ffb800;
  --nf-text: #f0f0ff;
  --nf-muted: #8888aa;
}

/* Prevent horizontal scroll / layout shift (100vw + overflow children) */
html {
  overflow-x: clip;
}
body {
  overflow-x: clip;
  max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .nf-hero-grid,
  .nf-fade-in,
  .nf-card,
  .nf-stagger-cards > *,
  .nf-skeleton,
  .nf-neon-pop {
    animation: none !important;
    transition: none !important;
  }
}

/* TZ §4.6 — motion (MPA: no full page SPA fade; utilities for sections & UI) */
.nf-fade-in {
  animation: nf-fade-in 200ms ease-in-out both;
}
@keyframes nf-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.nf-stagger-cards > * {
  animation: nf-fade-in 160ms ease-out both;
}
.nf-stagger-cards > *:nth-child(1) {
  animation-delay: 0ms;
}
.nf-stagger-cards > *:nth-child(2) {
  animation-delay: 50ms;
}
.nf-stagger-cards > *:nth-child(3) {
  animation-delay: 100ms;
}
.nf-stagger-cards > *:nth-child(4) {
  animation-delay: 150ms;
}
.nf-stagger-cards > *:nth-child(5) {
  animation-delay: 200ms;
}
.nf-stagger-cards > *:nth-child(6) {
  animation-delay: 250ms;
}

.nf-skeleton {
  border-radius: 0.5rem;
  background: linear-gradient(
    90deg,
    var(--nf-surface2) 0%,
    rgba(28, 28, 42, 0.55) 50%,
    var(--nf-surface2) 100%
  );
  background-size: 200% 100%;
  animation: nf-skeleton-pulse 1.5s ease-in-out infinite;
}
@keyframes nf-skeleton-pulse {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.nf-neon-pop {
  animation: nf-neon-pop 800ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  font-family: "Space Mono", ui-monospace, monospace;
  font-weight: 700;
  color: var(--nf-cyan);
  pointer-events: none;
}
@keyframes nf-neon-pop {
  0% {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.92);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-2.25rem) scale(1);
  }
}

.nf-hero-grid {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: var(--nf-dark);
  background-image: linear-gradient(
      rgba(10, 10, 15, 0.88),
      rgba(10, 10, 15, 0.92)
    ),
    repeating-linear-gradient(
      -12deg,
      rgba(28, 28, 42, 0.35) 0,
      rgba(28, 28, 42, 0.35) 1px,
      transparent 1px,
      transparent 28px
    ),
    repeating-linear-gradient(
      78deg,
      rgba(28, 28, 42, 0.28) 0,
      rgba(28, 28, 42, 0.28) 1px,
      transparent 1px,
      transparent 36px
    );
  overflow: hidden;
  pointer-events: none;
}

.nf-hero-grid::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at 70% 40%, rgba(0, 255, 209, 0.08), transparent 55%),
    radial-gradient(ellipse at 30% 60%, rgba(180, 79, 255, 0.07), transparent 50%);
  animation: nf-drift 48s linear infinite;
  opacity: 0.55;
}

@keyframes nf-drift {
  to {
    transform: rotate(8deg) scale(1.05);
  }
}

.nf-device-mock {
  border-radius: 1rem;
  border: 1px solid rgba(0, 255, 209, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  background: linear-gradient(165deg, #13131c, #0a0a0f);
}

.nf-legal {
  font-family: Inter, system-ui, sans-serif;
  background: #fafafa;
  color: #111;
}

.nf-legal h1,
.nf-legal h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.nf-legal a {
  color: #0369a1;
  text-decoration: underline;
}

/* —— Site chrome (header / footer / mobile bar) — TZ §5.2–5.3 — */
body.nf-chrome-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* Full-viewport layer: flex body can otherwise shrink-wrap fixed children; pin to viewport box. */
body.nf-chrome-page > .nf-chrome-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
  max-width: none;
  flex: none;
  margin: 0;
}
body.nf-chrome-page > main {
  flex: 1 0 auto;
  width: 100%;
  min-width: 0;
  overflow-x: clip;
}

.nf-chrome-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.nf-chrome-skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--nf-surface);
  color: var(--nf-text);
  border-radius: 0.5rem;
  outline: 2px solid var(--nf-cyan);
}

.nf-chrome-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(28, 28, 42, 0.85);
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(10px);
}
/* Overlay (z 50) covered the header — raise header when menu open so burger stays clickable */
body.nf-mobile-nav-open .nf-chrome-header {
  z-index: 60;
}
.nf-chrome-header__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 72rem;
  min-width: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}
.nf-chrome-header__logo {
  flex-shrink: 0;
  min-width: 0;
}
.nf-chrome-header__logo img {
  display: block;
  height: 2.25rem;
  width: auto;
}
.nf-chrome-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nf-muted);
}
@media (min-width: 1024px) {
  .nf-chrome-nav {
    display: flex;
  }
}
.nf-chrome-nav a {
  color: inherit;
  text-decoration: none;
}
.nf-chrome-nav a:hover {
  color: var(--nf-cyan);
}

.nf-chrome-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 1024px) {
  .nf-chrome-actions:not(.nf-chrome-hide) {
    display: flex;
  }
}
.nf-chrome-lang {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--nf-muted);
}
.nf-chrome-lang button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.nf-chrome-lang button[aria-current="true"] {
  color: var(--nf-cyan);
  font-weight: 700;
}
.nf-chrome-lang--header {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}
@media (max-width: 1023px) {
  .nf-chrome-lang--header {
    margin-left: 0;
    margin-right: 0.25rem;
  }
  .nf-chrome-burger {
    margin-left: auto;
  }
}
@media (min-width: 1024px) {
  .nf-chrome-lang--header {
    margin-left: 0;
  }
}
.nf-chrome-drawer__lang {
  padding: 0.85rem 1.25rem 0.25rem;
  border-top: 1px solid rgba(28, 28, 42, 0.95);
  margin-top: 0.35rem;
}
.nf-chrome-drawer__lang-label {
  margin: 0 0 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nf-muted);
}
.nf-chrome-lang--drawer {
  font-size: 0.8125rem;
}
.nf-chrome-actions a {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}
.nf-chrome-actions .nf-chrome-link-muted {
  color: var(--nf-muted);
}
.nf-chrome-actions .nf-chrome-link-muted:hover {
  color: var(--nf-text);
}
.nf-chrome-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--nf-cyan);
  color: var(--nf-dark);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}
.nf-chrome-btn-primary:hover {
  filter: brightness(1.08);
}

.nf-chrome-userbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nf-chrome-neons {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--nf-cyan);
}
.nf-chrome-user {
  position: relative;
}
.nf-chrome-user > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.nf-chrome-user > summary::-webkit-details-marker {
  display: none;
}
.nf-chrome-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 2px solid var(--nf-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  background: linear-gradient(135deg, rgba(180, 79, 255, 0.35), rgba(0, 255, 209, 0.25));
  color: var(--nf-text);
}
.nf-chrome-user__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 11rem;
  padding: 0.35rem 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(28, 28, 42, 0.9);
  background: var(--nf-surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 50;
}
.nf-chrome-user__menu a,
.nf-chrome-user__menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  color: var(--nf-text);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.nf-chrome-user__menu a:hover,
.nf-chrome-user__menu button:hover {
  background: var(--nf-surface2);
}
.nf-chrome-user__menu .nf-chrome-danger:hover {
  color: #ff4466;
}

.nf-chrome-burger {
  display: flex;
  flex-shrink: 0;
  border: 1px solid rgba(28, 28, 42, 0.9);
  background: transparent;
  color: var(--nf-text);
  border-radius: 0.5rem;
  padding: 0.45rem;
  cursor: pointer;
}
@media (min-width: 1024px) {
  .nf-chrome-burger {
    display: none;
  }
}

.nf-chrome-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  box-sizing: border-box;
  overflow: hidden;
}
/* Use project class — not Tailwind `hidden` — so CDN utilities never fight the drawer */
.nf-overlay-hidden {
  display: none !important;
  pointer-events: none !important;
}
.nf-chrome-drawer {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  left: auto;
  z-index: 1;
  width: min(20rem, 100%);
  max-width: 100%;
  box-sizing: border-box;
  border-left: 1px solid rgba(28, 28, 42, 0.9);
  background: var(--nf-surface);
  padding: 1rem 1.25rem 1.5rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nf-chrome-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  margin: 0 0 0.25rem;
  border-bottom: 1px solid rgba(28, 28, 42, 0.85);
}
.nf-chrome-drawer__title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--nf-text);
}
.nf-chrome-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 0.5rem;
  background: rgba(28, 28, 42, 0.85);
  color: var(--nf-text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.nf-chrome-drawer__close:hover {
  background: rgba(0, 255, 209, 0.12);
  color: var(--nf-cyan);
}
.nf-chrome-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
}
.nf-chrome-drawer nav a {
  color: var(--nf-text);
  text-decoration: none;
}
.nf-chrome-drawer nav a:hover {
  color: var(--nf-cyan);
}
.nf-chrome-drawer__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.nf-chrome-drawer__foot.nf-chrome-hide {
  display: none !important;
}

.nf-chrome-mobbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: none;
  border-top: 1px solid rgba(28, 28, 42, 0.9);
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: center;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nf-muted);
}
@media (max-width: 1023px) {
  body.nf-chrome-page.nf-chrome--session .nf-chrome-mobbar {
    display: flex;
  }
}
.nf-chrome-mobbar a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 0.35rem 0.15rem;
}
.nf-chrome-mobbar a:hover,
.nf-chrome-mobbar a[aria-current="page"] {
  color: var(--nf-cyan);
}

.nf-chrome-footer {
  border-top: 1px solid rgba(28, 28, 42, 0.85);
  background: var(--nf-surface);
  padding: 3rem 0 0;
  font-size: 0.875rem;
}
.nf-chrome-footer__grid {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .nf-chrome-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .nf-chrome-footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.nf-chrome-footer h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nf-muted);
  margin: 0;
}
.nf-chrome-footer ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.nf-chrome-footer li + li {
  margin-top: 0.5rem;
}
.nf-chrome-footer a {
  color: var(--nf-muted);
  text-decoration: none;
}
.nf-chrome-footer a:hover {
  color: var(--nf-cyan);
}
.nf-chrome-footer__bottom {
  max-width: 72rem;
  margin: 3rem auto 0;
  padding: 2rem 1rem;
  border-top: 1px solid rgba(28, 28, 42, 0.85);
  font-size: 0.75rem;
  color: var(--nf-muted);
}
.nf-chrome-footer__bottom p {
  margin: 0.35rem 0;
}
.nf-chrome-badge18 {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid rgba(136, 136, 170, 0.45);
  border-radius: 0.25rem;
  padding: 0.1rem 0.45rem;
  font-family: ui-monospace, monospace;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--nf-text);
}

/* Cookie banner (shared) */
.nf-cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 60;
  box-sizing: border-box;
  width: auto;
  max-width: min(48rem, calc(100% - 2rem));
  margin: 0 auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(28, 28, 42, 0.9);
  background: var(--nf-surface);
  padding: 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 768px) {
  .nf-cookie-banner {
    flex-wrap: nowrap;
  }
}
.nf-cookie-banner__text {
  flex: 1 1 14rem;
}
.nf-cookie-banner p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--nf-muted);
}
.nf-cookie-banner__ru {
  margin-top: 0.5rem !important;
  font-size: 0.8125rem !important;
  opacity: 0.92;
}
.nf-cookie-modal__sub {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--nf-muted);
}
.nf-chrome-tel {
  color: var(--nf-cyan);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.nf-footer-contact-line {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.nf-chrome-tel:hover {
  text-decoration: underline;
}

/* Form thank-you toast (lead forms, login/register success) */
.nf-form-thanks-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 85;
  max-width: min(22rem, calc(100% - 2rem));
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  background: var(--nf-surface);
  border: 1px solid rgba(0, 255, 209, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  color: var(--nf-text);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.nf-form-thanks-toast--visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

/* AI assistant — fixed stack (no :has, no absolute panel) to avoid CLS / drift */
.nf-ai-assistant {
  position: fixed;
  z-index: 58;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  box-sizing: border-box;
  width: min(22rem, calc(100% - 1.5rem));
  max-width: calc(100% - 1.5rem);
  display: flex;
  flex-direction: column-reverse;
  align-items: stretch;
  gap: 0.5rem;
  font-family: Inter, system-ui, sans-serif;
  pointer-events: none;
  isolation: isolate;
}
.nf-ai-assistant > * {
  pointer-events: auto;
}
/* Stable inset: mobile cookie strip + optional bottom nav — no :has() reflow */
@media (max-width: 1023px) {
  .nf-ai-assistant {
    bottom: max(5.25rem, calc(env(safe-area-inset-bottom) + 3.75rem));
  }
  body.nf-chrome--session .nf-ai-assistant {
    bottom: max(5.75rem, calc(env(safe-area-inset-bottom) + 4.25rem));
  }
}
@media (min-width: 1024px) {
  .nf-ai-assistant {
    bottom: max(1rem, env(safe-area-inset-bottom));
    right: max(1rem, env(safe-area-inset-right));
  }
}
.nf-ai-assistant__toggle {
  display: flex;
  align-self: flex-end;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 auto;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--nf-cyan), #00b89a);
  color: var(--nf-dark);
  box-shadow: 0 8px 28px rgba(0, 255, 209, 0.35);
}
.nf-ai-assistant__toggle:hover {
  filter: brightness(1.08);
}
.nf-ai-assistant__panel {
  position: relative;
  width: 100%;
  max-width: 100%;
  max-height: min(28rem, calc(100dvh - 8rem));
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  background: var(--nf-surface);
  border: 1px solid rgba(28, 28, 42, 0.95);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.nf-ai-assistant__panel.hidden {
  display: none !important;
}
.nf-ai-assistant__head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(28, 28, 42, 0.9);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--nf-text);
}
.nf-ai-assistant__head button {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--nf-muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.2rem;
}
.nf-ai-assistant__msgs {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 7rem;
  max-height: min(14rem, 42dvh);
}
.nf-ai-assistant__bubble {
  border-radius: 0.5rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.nf-ai-assistant__bubble--bot {
  align-self: flex-start;
  max-width: 100%;
  background: rgba(0, 255, 209, 0.08);
  border: 1px solid rgba(0, 255, 209, 0.2);
  color: var(--nf-text);
}
.nf-ai-assistant__bubble--user {
  align-self: flex-end;
  max-width: 100%;
  background: rgba(180, 79, 255, 0.12);
  border: 1px solid rgba(180, 79, 255, 0.25);
  color: var(--nf-text);
}
.nf-ai-assistant__chips {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.75rem 0.5rem;
}
.nf-ai-assistant__chips button {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(136, 136, 170, 0.45);
  background: transparent;
  color: var(--nf-muted);
  cursor: pointer;
  max-width: 100%;
}
.nf-ai-assistant__chips button:hover {
  border-color: var(--nf-cyan);
  color: var(--nf-cyan);
}
.nf-ai-assistant__foot {
  flex: 0 0 auto;
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem 0.75rem;
  border-top: 1px solid rgba(28, 28, 42, 0.9);
  min-width: 0;
}
.nf-ai-assistant__foot input {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(28, 28, 42, 0.9);
  background: var(--nf-dark);
  color: var(--nf-text);
  padding: 0.45rem 0.6rem;
  font-size: 0.8125rem;
}
.nf-ai-assistant__foot button[type="submit"] {
  flex-shrink: 0;
  border-radius: 0.5rem;
  border: none;
  background: var(--nf-cyan);
  color: var(--nf-dark);
  font-weight: 700;
  padding: 0 0.85rem;
  font-size: 0.75rem;
  cursor: pointer;
}
.nf-cookie-banner a {
  color: var(--nf-cyan);
}
.nf-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.nf-cookie-actions button {
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.45rem 0.85rem;
}
.nf-cookie-accept {
  background: var(--nf-cyan);
  color: var(--nf-dark);
  border: none;
  font-weight: 700;
}
.nf-cookie-decline {
  background: transparent;
  border: 1px solid rgba(136, 136, 170, 0.45);
  color: var(--nf-text);
}
.nf-cookie-manage {
  background: transparent;
  border: 1px solid rgba(0, 255, 209, 0.45);
  color: var(--nf-cyan);
}

.nf-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 1rem;
}
.nf-cookie-modal:not(.hidden) {
  display: flex;
}
.nf-cookie-modal__box {
  width: 100%;
  max-width: 28rem;
  border-radius: 0.75rem;
  background: var(--nf-surface);
  padding: 1.5rem;
  color: var(--nf-text);
}
.nf-cookie-modal__box h2 {
  margin: 0 0 1rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.25rem;
}
.nf-cookie-modal__box label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}
.nf-cookie-modal__actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.5rem;
}
.nf-cookie-modal__actions button {
  border-radius: 0.5rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  cursor: pointer;
}

/* Home: slightly tighter display type, less “template glow” on cards */
.nf-home .font-display {
  letter-spacing: -0.02em;
}
.nf-home .nf-card {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.035);
}
