:root {
  /* Palette: Deep Near-Black Canvas + Graphite Surfaces + Acid Green & Violet Accents */
  --bg-canvas: #050507;
  --bg-surface: #14161b;
  --bg-surface-2: #1c1f26;
  --bg-elevated: #242830;
  --glass-bg: rgba(20, 22, 27, 0.82);
  --glass-bg-strong: rgba(16, 18, 23, 0.92);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-border-hover: rgba(139, 92, 246, 0.45);

  --text-primary: #f5f6f8;
  --text-secondary: #9aa1b2;
  --text-muted: #6e7585;

  --accent-lime: #c4e84d;
  --accent-lime-hover: #d5f567;
  --accent-violet: #8b5cf6; /* неон — только мелкие акценты */
  --violet-deep: #6d58d6; /* глубокий фиолетовый для больших свечений */
  --violet-deep-rgb: 109, 88, 214;
  --accent-violet-glow: #9969ff;
  --accent-violet-soft: rgba(139, 92, 246, 0.16);
  --accent-lime-soft: rgba(196, 232, 77, 0.14);

  /* Typography: Zephiq Inter Tight scale */
  --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --h1-size: clamp(40px, 5vw, 70px);
  --h2-size: clamp(32px, 4.2vw, 60px);
  --h3-size: clamp(28px, 2.8vw, 40px);
  --h4-size: clamp(24px, 2.1vw, 32px);
  --h5-size: clamp(20px, 1.6vw, 24px);

  /* Layout & Spacing */
  --canvas: 1320px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --ease-zephiq: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font: 400 16px/1.55 var(--font-sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.menu-active {
  overflow: hidden;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-violet-glow);
  outline-offset: 4px;
}

button:disabled {
  cursor: wait;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(var(--canvas), calc(100% - 80px));
  margin-inline: auto;
}

section[id], footer[id] {
  scroll-margin-top: 108px;
}

.skip {
  position: absolute;
  z-index: 60;
  left: 16px;
  top: -120px;
  background: var(--accent-lime);
  color: #111215;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
}

.skip:focus {
  top: 16px;
}

h1, h2, h3, h4, p {
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }
h4 { font-size: var(--h4-size); }

p {
  text-wrap: pretty;
}

.ico {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.14em;
  flex-shrink: 0;
}

.btn-badge .ico,
.slide-arrows .ico {
  vertical-align: 0;
}

@media (max-width: 767px) {
  .wrap {
    width: min(var(--canvas), calc(100% - 36px));
  }
}

/* Zephiq-inspired Pill Badges */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  width: max-content;
  max-width: 100%;
}

.pill-badge-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-violet-soft);
  color: var(--accent-lime);
  font-size: 12px;
}

.pill-badge strong {
  color: var(--text-primary);
  font-weight: 600;
}

.pill-badge-sep {
  opacity: 0.4;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-lime);
  margin-bottom: 14px;
}

.kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-violet);
  box-shadow: 0 0 12px var(--accent-violet);
}

/* Zephiq 3-Variant Buttons with Embedded Square Arrow Badge */
.pill {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  border-radius: var(--radius-pill);
  padding: 7px 8px 7px 20px;
  background: var(--accent-lime);
  color: #111215;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.15;
  transition: transform 0.32s ease-in-out, background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, box-shadow 0.32s ease-in-out;
}

.pill:hover {
  transform: translateY(-2px);
  background: var(--accent-lime-hover);
  box-shadow: 0 12px 32px rgba(196, 232, 77, 0.22);
}

.btn-badge {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111215;
  color: var(--accent-lime);
  font-size: 14px;
  font-style: normal;
  overflow: hidden;
  transition: transform 0.32s ease-in-out, background-color 0.3s ease-in-out;
}

.pill:hover .btn-badge {
  transform: scale(1.06) rotate(8deg);
}

.pill.secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
  backdrop-filter: blur(14px);
}

.pill.secondary:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--accent-violet-glow);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.18);
}

.pill.secondary .btn-badge {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.pill.tertiary {
  background: var(--bg-surface-2);
  border-color: var(--glass-border);
  color: var(--text-primary);
}

.pill.tertiary:hover {
  border-color: var(--accent-lime);
}

.pill.tertiary .btn-badge {
  background: var(--accent-violet-soft);
  color: var(--accent-violet-glow);
}

.pill.compact {
  padding: 5px 6px 5px 15px;
  font-size: 13px;
  gap: 9px;
}

.pill.compact .btn-badge {
  width: 26px;
  height: 26px;
  font-size: 12px;
}

/* Soft Lift Glassmorphic Card */
.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: transform 0.38s ease-in-out, border-color 0.35s ease-in-out, box-shadow 0.38s ease-in-out;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(139, 92, 246, 0.15);
}

/* Sticky Glassmorphic Header + Preserved Dropdown Mega-Menu */
.site-head {
  position: fixed;
  inset: 16px 0 auto;
  z-index: 30;
  pointer-events: none;
  transition: inset 0.3s var(--ease-zephiq);
}

.site-head.is-scrolled {
  inset: 10px 0 auto;
}

.head-wrap {
  width: min(var(--canvas), calc(100% - 48px));
  margin: auto;
  pointer-events: auto;
}

.head-bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 10px 8px 18px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  background: rgba(20, 22, 28, 0.72);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38);
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-head.is-scrolled .head-bar {
  background: rgba(17, 18, 21, 0.90);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand i {
  position: relative;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-lime), var(--accent-violet));
  display: inline-block;
  transform: rotate(-8deg);
}

.brand i::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid #111215;
  border-bottom-width: 0;
  border-left-width: 0;
  border-radius: 2px 5px 0 0;
  transform: rotate(-18deg);
}

.head-bar nav,
.head-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.head-bar nav button,
.login,
.locale,
.icon-btn,
.mobile-trigger,
.mobile-language {
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 9px 12px;
  font-size: 13px;
  white-space: nowrap;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.28s ease-in-out, background-color 0.28s ease-in-out;
}

.head-bar nav button:hover,
.head-bar nav button[aria-expanded="true"],
.login:hover,
.locale:hover,
.locale[aria-expanded="true"],
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

/* Interactive Language Switcher Dropdown */
.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-switcher .locale[aria-expanded="true"] .chevron {
  transform: rotate(225deg);
  margin-bottom: -1px;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 156px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(20, 22, 28, 0.96);
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65);
  display: grid;
  gap: 2px;
  z-index: 40;
  animation: dropIn 0.2s var(--ease-zephiq) both;
}

.lang-dropdown a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background-color 0.28s ease-in-out, color 0.28s ease-in-out;
}

.lang-dropdown a:hover,
.lang-dropdown a[aria-current="true"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.lang-dropdown a[aria-current="true"] b {
  color: var(--accent-lime);
}

.lang-dropdown b {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.chevron {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin: 0 0 2px 6px;
  transition: transform 0.22s var(--ease-zephiq);
}

.head-bar nav button[aria-expanded="true"] .chevron {
  transform: rotate(225deg);
  margin-bottom: -1px;
}

.mobile-trigger,
.mobile-language {
  display: none;
}

/* Preserved Dropdown Mega-Menu in Dark Graphite Glassmorphism */
.nav-shade {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(10, 11, 14, 0.62);
  backdrop-filter: blur(4px);
  animation: shadeIn 0.22s ease-out both;
}

.mega {
  margin-top: 10px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139, 92, 246, 0.32);
  background: linear-gradient(135deg, rgba(24, 26, 32, 0.96), rgba(32, 28, 46, 0.94));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(28px) saturate(140%);
  overflow: hidden;
  animation: dropIn 0.26s var(--ease-zephiq) both;
}

.mega-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.05fr 0.88fr;
  gap: 16px;
  padding: 20px;
}

.mega-col {
  padding: 10px;
}

.mega-col h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-lime);
  text-transform: uppercase;
  margin: 0 0 10px 12px;
}

.mega-link {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  min-height: 52px;
  transition: background-color 0.2s;
}

.mega-link:hover,
.mega-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.mega-icon {
  display: grid;
  place-items: center;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  color: var(--accent-lime);
  background: var(--accent-violet-soft);
  font-size: 16px;
}

.mega-link span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.mega-link strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.mega-link small {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-link b {
  font-size: 13px;
  color: var(--text-muted);
}

.mega-feature {
  display: flex;
  min-height: 196px;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  border: 1px solid rgba(196, 232, 77, 0.28);
  border-radius: 18px;
  padding: 22px;
  background: linear-gradient(155deg, rgba(109, 88, 214, 0.16), rgba(17, 18, 21, 0.94)), var(--art) center / cover;
  overflow: hidden;
}

.mega-feature h3 {
  font-size: 22px;
  max-width: 240px;
  color: var(--text-primary);
}

.mega-feature span {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-lime);
}

@media (max-width: 980px) {
  .head-wrap {
    width: calc(100% - 24px);
  }
  .head-bar nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--bg-surface);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  }
  .head-bar nav.is-open {
    display: flex;
  }
  .head-bar nav button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    font-size: 15px;
  }
  .head-actions .login {
    display: none;
  }
  .mobile-trigger {
    display: inline-flex;
    align-items: center;
  }
  .mega-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .head-wrap {
    width: calc(100% - 16px);
  }
  .head-bar {
    padding: 7px 10px 7px 14px;
    gap: 8px;
  }
  .brand {
    font-size: 13px;
    min-width: 0;
  }
  .head-actions {
    gap: 2px;
    flex-shrink: 0;
  }
  .head-actions .pill {
    display: none;
  }
  .icon-btn,
  .mobile-trigger,
  .mobile-language {
    padding: 8px 9px;
  }
}

/* Иконка поиска: крупная и контрастная */
.icon-btn[data-search-open] {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--text-primary);
}

.icon-btn .search-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* Мобильная выпадающая плашка поиска из шапки (без блюра экрана и без автозума) */
.search-drawer {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: var(--bg-surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  z-index: 35;
  animation: dropIn 0.2s var(--ease-zephiq) both;
}

.search-drawer-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-drawer input {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--bg-canvas);
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.3;
  color: var(--text-primary);
}

.search-drawer input:focus-visible {
  outline: 2px solid var(--accent-lime);
  outline-offset: 1px;
}

.search-drawer-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
}

@media (min-width: 981px) {
  .search-drawer {
    display: none;
  }
}

/* Zephiq-Adapted Hero Section in Dark Graphite + Neon Violet & Acid Green */
.hero {
  position: relative;
  min-height: min(92svh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(62% 58% at 78% 28%, rgba(109, 88, 214, 0.12), transparent 68%),
    radial-gradient(45% 45% at 18% 82%, rgba(196, 232, 77, 0.05), transparent 65%),
    var(--bg-canvas);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 100%);
  pointer-events: none;
}

.hero-art {
  position: absolute;
  inset: 0;
  background: var(--art) 72% 35% / cover no-repeat;
  opacity: 0.24;
  mix-blend-mode: lighten;
  transform: scale(1.04);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.35) 0%, rgba(5, 5, 7, 0.85) 75%, var(--bg-canvas) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: 132px 56px;
  display: grid;
  gap: 44px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  display: grid;
  gap: 20px;
  max-width: 660px;
}

.hero-copy h1 {
  font-size: var(--h1-size);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.hero-intro {
  max-width: 540px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

/* Floating Glassmorphic Fintech UI Mockups + Beamfall WebGL Stage */
.hero-visual {
  position: relative;
  display: grid;
  gap: 14px;
}

.hero-mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mockup-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(24, 26, 32, 0.68);
  backdrop-filter: blur(22px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
  transition: transform 0.38s ease-in-out, border-color 0.35s ease-in-out;
}

.mockup-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.5);
}

.mockup-card.wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(24, 26, 32, 0.85));
  border-color: rgba(139, 92, 246, 0.32);
}

.mockup-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 10px var(--accent-lime);
}

.mockup-dot.violet {
  background: var(--accent-violet-glow);
  box-shadow: 0 0 10px var(--accent-violet-glow);
}

.mockup-value {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.mockup-sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--accent-lime);
  font-weight: 500;
}

.node-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.node-pill {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.node-line {
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-violet-glow), var(--accent-lime));
  border-radius: 2px;
}

.beamfall-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  -webkit-mask-image: radial-gradient(ellipse 78% 76% at 50% 50%, #000 56%, transparent 98%);
  mask-image: radial-gradient(ellipse 78% 76% at 50% 50%, #000 56%, transparent 98%);
}

.beamfall-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1080px;
  height: 1080px;
  overflow: hidden;
  isolation: isolate;
  transform-origin: center;
  transform: translate(-50%, -50%) scale(var(--bf-scale, 0.5));
}

.bf-canvas,
.bf-sparks,
.bf-circuits {
  position: absolute;
  left: 0;
  top: 0;
  width: 1080px;
  height: 1080px;
  pointer-events: none;
}

.bf-sparks {
  mix-blend-mode: screen;
}

.bf-fallback {
  position: absolute;
  left: 280px;
  top: 340px;
  width: 520px;
  height: 400px;
  border-radius: 34px;
  background: #14161d;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.bf-trace {
  stroke: rgba(139, 92, 246, 0.22);
  stroke-width: 1.4px;
}

.bf-pulse {
  stroke: url(#bf-trace-pulse);
  stroke-width: 2.2px;
  stroke-linecap: round;
}

.bf-pulse-from {
  stop-color: #8b5cf6;
  stop-opacity: 0;
}

.bf-pulse-to {
  stop-color: #c4e84d;
  stop-opacity: 1;
}

.bf-card {
  position: absolute;
  left: 280px;
  top: 340px;
  width: 520px;
  height: 400px;
  padding: 34px 38px;
  border-radius: 34px;
  overflow: hidden;
  pointer-events: none;
}

.bf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bf-index {
  font: 600 14px var(--font-sans);
  letter-spacing: 0.14em;
  color: rgba(245, 246, 248, 0.55);
}

.bf-live {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  font: 600 13px var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-lime);
  padding: 6px 11px 6px 10px;
  border-radius: 99px;
  background: rgba(196, 232, 77, 0.10);
  box-shadow: inset 0 0 0 1px rgba(196, 232, 77, 0.25);
}

.bf-live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-lime);
  box-shadow: 0 0 8px var(--accent-lime);
}

.bf-live-ring {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  border: 1px solid var(--accent-lime);
}

.bf-label {
  font-size: 17px;
  color: rgba(245, 246, 248, 0.65);
  margin-top: 26px;
}

.bf-values {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 6px;
}

.bf-volume {
  font-weight: 600;
  font-size: 58px;
  line-height: 1.24;
  letter-spacing: -0.035em;
  color: #f5f6f8;
  font-variant-numeric: tabular-nums;
}

.bf-change {
  font: 600 17px var(--font-sans);
  color: var(--accent-lime);
  letter-spacing: 0.02em;
}

.bf-chart {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  height: 150px;
}

.bf-chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.bf-fill-top {
  stop-color: #8b5cf6;
  stop-opacity: 0.38;
}

.bf-fill-bot {
  stop-color: #8b5cf6;
  stop-opacity: 0;
}

.bf-line-from {
  stop-color: #8b5cf6;
  stop-opacity: 0.3;
}

.bf-line-mid {
  stop-color: #c4e84d;
}

.bf-line-to {
  stop-color: #ffffff;
}

.bf-chart-grid {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.bf-chart-area {
  fill: url(#bf-chart-fill);
}

.bf-chart-line {
  fill: none;
  stroke: url(#bf-chart-line);
  stroke-width: 2.5px;
  stroke-linecap: round;
}

.bf-chart-guide {
  stroke: rgba(196, 232, 77, 0.35);
  stroke-dasharray: 3 4;
}

.bf-chart-glow {
  fill: rgba(196, 232, 77, 0.28);
}

.bf-chart-dot {
  fill: #ffffff;
}

.bf-chart-tip {
  position: absolute;
  font: 600 13px var(--font-sans);
  color: #f5f6f8;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(24, 26, 32, 0.92);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.45);
  white-space: nowrap;
  transform: translate(-50%, -130%);
}

.bf-axis {
  position: absolute;
  left: 38px;
  right: 38px;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
  font: 500 11.5px var(--font-sans);
  color: rgba(245, 246, 248, 0.42);
  letter-spacing: 0.08em;
}

/* Hero Slider Controls */
.hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.slide-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slide-choices button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-zephiq);
}

.slide-choices button i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--text-muted);
  transition: width 0.28s var(--ease-zephiq), background-color 0.25s;
}

.slide-choices button[aria-pressed="true"] {
  background: rgba(196, 232, 77, 0.12);
  border-color: rgba(196, 232, 77, 0.35);
  color: var(--text-primary);
}

.slide-choices button[aria-pressed="true"] i {
  width: 18px;
  background: var(--accent-lime);
}

.slide-arrows {
  display: flex;
  gap: 8px;
}

.slide-arrows button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  transition: background-color 0.2s, border-color 0.2s;
}

.slide-arrows button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-violet-glow);
}

@media (max-width: 980px) {
  .hero-inner {
    padding-block: 112px 48px;
    gap: 20px;
  }
  .hero-layout,
  .hero-copy {
    display: contents;
  }
  .pill-badge {
    order: 1;
    justify-self: start;
  }
  .hero-copy h1 {
    order: 2;
  }
  .hero-intro {
    order: 3;
  }
  .hero-actions {
    order: 4;
    margin-top: 6px;
  }
  .hero-controls {
    order: 5;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 18px;
  }
  .slide-arrows {
    margin-left: auto;
  }
  .hero-visual {
    order: 6;
    margin-top: 20px;
  }
  .beamfall-wrap {
    background: transparent;
    border: 0;
    border-radius: 0;
    margin-inline: auto;
    -webkit-mask-image: radial-gradient(ellipse 78% 76% at 50% 50%, #000 56%, transparent 98%);
    mask-image: radial-gradient(ellipse 78% 76% at 50% 50%, #000 56%, transparent 98%);
  }
}

@media (max-width: 768px) {
  .hero::after {
    background: linear-gradient(180deg, rgba(5, 5, 7, 0.28) 0%, rgba(5, 5, 7, 0.58) 58%, rgba(5, 5, 7, 0.9) 85%, var(--bg-canvas) 100%);
  }
  .hero-copy h1 {
    min-height: 2.95em;
  }
  .hero-intro {
    min-height: 6.4em;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
    width: 100%;
    gap: 10px;
  }
  .hero-actions .pill {
    width: 100%;
    justify-content: space-between;
    padding: 6px 6px 6px 14px;
    gap: 8px;
    font-size: 13px;
    white-space: nowrap;
  }
  .hero-visual {
    min-width: 0;
    max-width: 100%;
  }
  .hero-mockup-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .hero-mockup-grid::-webkit-scrollbar {
    display: none;
  }
  .hero-mockup-grid .mockup-card,
  .hero-mockup-grid .mockup-card.wide {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
  .mockup-card.wide {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-mockup-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
  }
  .hero-mockup-dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    transition: width 0.22s var(--ease-zephiq), background-color 0.22s;
  }
  .hero-mockup-dots span.is-active {
    width: 18px;
    background: var(--accent-lime);
  }
}

@media (min-width: 769px) {
  .hero-mockup-dots {
    display: none;
  }
}

/* Feature Rail */
.rail {
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: var(--bg-surface);
}

.rail .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.rail a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-inline-end: 1px solid var(--glass-border);
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.rail a:last-child {
  border-inline-end: 0;
}

.rail a:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.rail a span {
  color: var(--accent-lime);
}

/* Shared Section Spacing & Intro */
.section-band {
  padding-block: 96px;
  background: var(--bg-canvas);
}

.section-band.surface {
  background: var(--bg-surface);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.section-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 32px;
  margin-bottom: 44px;
}

.section-intro > p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
}

/* Trust & Metrics (Zephiq Home C inspired) */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.metric-card {
  padding: 28px 24px;
}

.metric-value {
  font-size: clamp(36px, 3.6vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--accent-lime);
  line-height: 1;
}

.metric-label {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trust-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.pillars-stack {
  display: grid;
  gap: 16px;
}

.pillar-card {
  padding: 28px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.pillar-tag {
  display: inline-block;
  width: max-content;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-violet-soft);
  color: var(--accent-violet-glow);
  font-size: 12px;
  font-weight: 600;
}

.pillar-card h3 {
  font-size: 22px;
}

.pillar-card p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Platform Products (#products) */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filters button {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.filters button:hover {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--text-primary);
}

.filters button[aria-pressed="true"] {
  background: var(--accent-lime);
  border-color: var(--accent-lime);
  color: #111215;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 290px;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.045), rgba(20, 22, 28, 0.96));
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.35s ease-in-out, border-color 0.35s ease-in-out, box-shadow 0.38s ease-in-out;
}

.product-card:hover {
  border-color: rgba(109, 88, 214, 0.45);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(196, 232, 77, 0.2);
}

.prod-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 35%), rgba(109, 88, 214, 0.12), rgba(196, 232, 77, 0.04) 45%, transparent 72%);
  transition: opacity 0.35s ease-in-out;
}

.product-card:hover .prod-spotlight {
  opacity: 1;
}

.prod-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.prod-visual {
  position: relative;
  flex: 1;
  height: 124px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.035), rgba(10, 10, 12, 0.9));
  overflow: hidden;
  display: grid;
  place-items: center;
}

.bf-prod-scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.bf-prod-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.prod-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: 118px;
}

/* Thematic SVG Hover Micro-Animations */
.svg-orbit,
.svg-orbit-rev {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.8s var(--ease-zephiq), stroke 0.35s;
}

.product-card:hover .svg-orbit {
  transform: rotate(38deg);
  stroke: var(--accent-lime);
}

.product-card:hover .svg-orbit-rev {
  transform: rotate(-42deg);
  stroke: var(--accent-violet-glow);
}

.svg-pulse-line {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s var(--ease-zephiq), filter 0.35s;
}

.product-card:hover .svg-pulse-line {
  stroke-dashoffset: -120;
  filter: drop-shadow(0 0 6px rgba(196, 232, 77, 0.7));
}

.svg-node {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.4s var(--ease-zephiq), filter 0.35s;
}

.product-card:hover .svg-node {
  transform: scale(1.32);
  filter: drop-shadow(0 0 8px currentColor);
}

.svg-beam {
  transition: transform 0.45s var(--ease-zephiq);
}

.product-card:hover .svg-beam:nth-of-type(1) { transform: translateX(8px); }
.product-card:hover .svg-beam:nth-of-type(2) { transform: translateX(12px); }
.product-card:hover .svg-beam:nth-of-type(3) { transform: translateX(6px); }

.prod-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-lime);
  font-size: 15px;
  transition: transform 0.32s ease-in-out, background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.product-card:hover .prod-arrow {
  transform: scale(1.08) rotate(8deg);
  background: var(--accent-lime);
  color: #111215;
}

.prod-body {
  position: relative;
  z-index: 1;
}

.prod-body h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

.prod-body p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Onboarding 3-Step Flow (#onboarding) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 8px;
}

.step-card {
  position: relative;
  padding: 40px 28px 32px;
  display: grid;
  gap: 14px;
  align-content: start;
  overflow: hidden;
}

.step-num {
  position: relative;
  display: block;
  width: max-content;
  margin-bottom: 4px;
  pointer-events: none;
  user-select: none;
  font-family: "Space Grotesk", var(--font-sans);
  font-weight: 700;
  font-size: clamp(64px, 5.4vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  background: linear-gradient(
    180deg,
    rgba(245, 246, 248, 0.56) 0%,
    rgba(196, 232, 77, 0.28) 58%,
    rgba(255, 255, 255, 0.08) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.step-card h3,
.step-card p {
  position: relative;
  z-index: 2;
}

.step-card h3 {
  font-size: 22px;
}

.step-card p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* FAQ Accordion (#faq) */
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.faq-grid > div:first-child p:not(.kicker) {
  margin-top: 16px;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
}

#faq-list {
  display: grid;
  gap: 12px;
}

#faq-list details {
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--bg-surface);
  padding: 18px 22px;
  transition: border-color 0.3s ease-in-out;
}

#faq-list details[open] {
  border-color: rgba(139, 92, 246, 0.45);
}

#faq-list summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

#faq-list summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent-lime);
  transition: transform 0.3s ease-in-out;
}

#faq-list details[open] summary::after {
  content: "−";
}

#faq-list details p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Product Detail Page */
.detail {
  padding-block: 140px 80px;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-lime);
  margin-bottom: 24px;
}

#detail-content {
  display: grid;
  gap: 20px;
  max-width: 760px;
}

#detail-content p:not(.kicker) {
  font-size: 18px;
  color: var(--text-secondary);
}

.data-status {
  color: var(--text-secondary);
  font-size: 15px;
}

@media (max-width: 980px) {
  .section-band {
    padding-block: 84px;
  }
  .section-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 36px;
  }
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .metrics-grid,
  .rail .wrap {
    grid-template-columns: 1fr 1fr;
  }
  .rail a:nth-child(2n) {
    border-inline-end: 0;
  }
  .pillars-grid,
  .trust-showcase,
  .steps-grid,
  .product-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 768px) {
  #about,
  #about .wrap,
  #about .trust-showcase,
  #about .pillars-stack {
    overflow: visible;
  }
  #about .pillars-stack {
    gap: 24px;
    padding-bottom: 24px;
  }
  #about .pillars-stack .pillar-card {
    position: sticky;
    top: 88px;
    z-index: 1;
    background-color: #090a0d;
    box-shadow: 0 -12px 32px rgba(5, 5, 7, 0.88), 0 18px 40px rgba(0, 0, 0, 0.55);
  }
  #about .pillars-stack .pillar-card:nth-child(2) {
    top: 102px;
    z-index: 2;
  }
  #about .pillars-stack .pillar-card:nth-child(3) {
    top: 116px;
    z-index: 3;
  }
  .prod-top {
    position: static;
    display: block;
  }
  .prod-arrow {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 2;
  }
  .prod-body {
    padding-right: 52px;
  }
  #onboarding .steps-grid {
    gap: 48px;
    margin-top: 12px;
  }
  #onboarding .step-num {
    position: relative;
    top: auto;
    right: auto;
    font-size: 64px;
    margin-bottom: 2px;
  }
  #onboarding .step-card,
  #onboarding .step-card:hover {
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transform: none;
    padding: 20px 0 36px;
    border-radius: 0;
    gap: 12px;
  }
  #onboarding .step-card:last-child,
  #onboarding .step-card:last-child:hover {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .section-cta {
    margin-top: 52px;
    padding: 24px 20px;
  }
}

@media (max-width: 580px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
  }
  .metric-card {
    padding: 14px 12px;
  }
  .metric-value {
    font-size: 24px;
  }
  .metric-label {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.3;
  }
}

/* CTA «Open an account» внутри секций */
.section-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin-top: 48px;
  padding: 22px 26px;
  border: 1px solid rgba(196, 232, 77, 0.22);
  border-radius: var(--radius-lg, 22px);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), rgba(17, 18, 21, 0.7) 60%, rgba(196, 232, 77, 0.06));
}

.section-cta-note {
  margin: 0;
  max-width: 560px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Dark Graphite SaaS Dashboard Style for Currency & Banking Tools */
.rates-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.rates-copy p:not(.kicker) {
  margin-top: 16px;
  font-size: 17px;
  color: var(--text-secondary);
}

.tool-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tool-links button {
  border: 1px solid var(--glass-border);
  background: var(--bg-surface-2);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.tool-links button:hover,
.tool-links button[aria-pressed="true"] {
  border-color: var(--accent-violet-glow);
  background: var(--accent-violet-soft);
}

.converter {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, var(--bg-surface), #14151a);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

#banking-tools {
  scroll-margin-top: 105px;
  block-size: 475px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

#banking-tools > [role="tabpanel"] {
  min-block-size: 0;
  min-inline-size: 0;
  overflow-y: auto;
  scrollbar-color: var(--accent-violet) var(--bg-surface);
  scrollbar-width: thin;
  padding: 6px 8px;
}

.tool-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--glass-border);
  background: var(--bg-canvas);
  border-radius: 12px;
}

.tool-tabs button {
  min-width: 0;
  border: 0;
  border-radius: 8px;
  padding: 9px 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.28s ease-in-out, color 0.28s ease-in-out;
}

.tool-tabs button[aria-selected="true"] {
  color: #111215;
  background: var(--accent-lime);
}

.tool-tabs button:not([aria-selected="true"]):hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.converter-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 16px;
}

.exchange-sign {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-violet-soft);
  color: var(--accent-lime);
  font-size: 13px;
}

.rate-row {
  display: grid;
  gap: 6px;
}

.rate-row label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.rate-row > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--bg-canvas);
}

.rate-row input,
.rate-row output {
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
}

.rate-row select {
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 6px 10px;
  background: var(--bg-surface-2);
  font-size: 14px;
  font-weight: 600;
  color-scheme: dark;
}

.swap {
  margin: 8px auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--bg-surface-2);
  color: var(--accent-lime);
  transition: transform 0.32s ease-in-out;
}

.swap:hover {
  transform: rotate(180deg);
}

.rate-detail {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-lime);
}

.rate-foot {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.tool-desc {
  margin: -4px 0 14px;
  color: var(--text-secondary);
  font-size: 14px;
}

.bank-form {
  display: grid;
  gap: 8px;
}

.bank-form label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.bank-form input,
.bank-form select {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text-primary);
  background: var(--bg-canvas);
  height: 44px;
}

.bank-form select {
  color-scheme: dark;
  margin-bottom: 4px;
}

.bank-form input[aria-invalid="true"] {
  border-color: #fb7185;
}

#iban-value {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bank-result {
  margin: 12px 0 6px;
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--bg-canvas);
  overflow-wrap: anywhere;
  font-size: 14px;
}

.bank-result[data-tone="success"] {
  border-color: rgba(196, 232, 77, 0.45);
}

.bank-result[data-tone="error"] {
  border-color: rgba(251, 113, 133, 0.5);
}

.bank-result strong {
  display: block;
  margin-bottom: 4px;
}

.bank-result[data-tone="success"] > strong {
  color: var(--accent-lime);
}

.bank-result[data-tone="error"] > strong {
  color: #fda4af;
}

.bank-result p {
  font-size: 12px;
  color: var(--text-secondary);
}

.bank-result p:empty {
  display: none;
}

.bic-matches {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.bic-matches li {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-top: 1px solid var(--glass-border);
}

.bic-matches code {
  font-size: 13px;
  color: var(--accent-lime);
  font-weight: 700;
}

.bic-matches span {
  font-size: 12px;
  color: var(--text-secondary);
}

.data-source {
  text-decoration: underline;
  text-underline-offset: 2px;
}

#send-amount {
  -moz-appearance: textfield;
  appearance: textfield;
}

#send-amount::-webkit-inner-spin-button,
#send-amount::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media (max-width: 980px) {
  .rates-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  #resources .converter,
  #banking-tools {
    position: relative;
    z-index: 2;
    isolation: isolate;
    background: #000000;
    opacity: 1;
    height: 455px;
    block-size: 455px;
  }
  .rates-copy [data-tools-title] {
    min-height: 2.5em;
  }
  .rates-copy [data-tools-text] {
    min-height: 6.2em;
  }
}

@media (max-width: 580px) {
  #banking-tools {
    block-size: 455px;
  }
}

/* Extended Zephiq-Style Footer & Modals */
.footer {
  background: #050507;
  border-top: 1px solid var(--glass-border);
  padding-block: 72px 36px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--glass-border);
}

.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 340px;
}

.footer-col h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-col a,
.footer-col button {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.28s ease-in-out;
}

.footer-col a:hover,
.footer-col button:hover {
  color: var(--accent-lime);
}

.footer-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.footer-tail {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-weight: 600;
}

.back-to-top:hover {
  color: var(--accent-lime);
}

/* Modals (Account, Search, Feedback) */
dialog {
  width: min(520px, calc(100% - 32px));
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.72);
}

dialog::backdrop {
  background: rgba(10, 11, 14, 0.74);
  backdrop-filter: blur(6px);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  font-size: 20px;
  line-height: 1;
}

dialog small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-lime);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

dialog h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

dialog > p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-form {
  display: grid;
  gap: 12px;
}

.modal-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--bg-canvas);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-primary);
}

.search-results {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
}

.search-results a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-canvas);
  border: 1px solid var(--glass-border);
  font-size: 14px;
}

.search-results a:hover {
  border-color: var(--accent-lime);
}

@media (max-width: 980px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .modal-form input,
  .modal-form select,
  .modal-form textarea {
    font-size: 16px;
  }
}

@media (max-width: 580px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
}

/* Zephiq-Inspired Soft Reveal & Motion System */
@keyframes shadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-copy.change h1,
.hero-copy.change .hero-intro {
  animation: heroFade 0.42s var(--ease-zephiq) both;
}

.motion .reveal {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.65s var(--ease-zephiq), translate 0.65s var(--ease-zephiq);
}

.motion .reveal.in {
  opacity: 1;
  translate: 0 0;
}

.motion #onboarding .step-card.reveal {
  opacity: 0;
  translate: 0 28px;
  scale: 0.97;
  filter: blur(4px);
  transition:
    opacity 0.7s var(--ease-zephiq),
    translate 0.7s var(--ease-zephiq),
    scale 0.7s var(--ease-zephiq),
    filter 0.7s var(--ease-zephiq),
    transform 0.35s ease-in-out,
    border-color 0.35s ease-in-out,
    box-shadow 0.38s ease-in-out;
}

.motion #onboarding .step-card.reveal.in {
  opacity: 1;
  translate: 0 0;
  scale: 1;
  filter: blur(0);
}

.motion #onboarding .step-card.reveal:nth-child(1) { transition-delay: 0ms; }
.motion #onboarding .step-card.reveal:nth-child(2) { transition-delay: 130ms; }
.motion #onboarding .step-card.reveal:nth-child(3) { transition-delay: 260ms; }

.motion #onboarding .step-card.reveal .step-num {
  opacity: 0;
  translate: 0 12px;
  transition: opacity 0.65s var(--ease-zephiq) 90ms, translate 0.65s var(--ease-zephiq) 90ms;
}

.motion #onboarding .step-card.reveal.in .step-num {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .motion .reveal,
  .motion #onboarding .step-card.reveal,
  .motion #onboarding .step-card.reveal .step-num {
    opacity: 1;
    translate: none;
    scale: 1;
    filter: none;
    transition-delay: 0ms;
  }
  .hero-art {
    transform: none !important;
  }
}

/* Ambient WebGL Gradient Forms field + sculpted section/card accent gradients */
.gradient-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

html.no-gradient-webgl body {
  background:
    radial-gradient(62% 52% at 82% 18%, rgba(109, 88, 214, 0.12) 0%, transparent 65%),
    radial-gradient(56% 48% at 14% 78%, rgba(196, 232, 77, 0.05) 0%, transparent 62%),
    var(--bg-canvas);
}

/* Футер и контент поверх фиксированного WebGL-поля (иначе canvas перекрывает футер) */
main,
.footer {
  position: relative;
  z-index: 1;
}

/*
 * Ритм секций (премиальная палитра): 70–80 % графит, фиолетовый — только свет/акцент.
 * --section-tone задаёт единственный цветной акцент секции; секции чередуются:
 * Hero (фиолетовый свет) → About (нейтральный) → Products (чёрный) → Onboarding (лайм) → Tools (по вкладке) → FAQ (нейтральный).
 */
.section-band {
  --section-tone: 255, 255, 255;
  background: rgba(5, 5, 7, 0.72);
}

#about { --section-tone: 255, 255, 255; background: #050507; }
#onboarding { --section-tone: 196, 232, 77; }

.section-band.surface {
  background: rgba(20, 22, 27, 0.88);
}

/* The Platform: сплошной чёрный фон, ничего не просвечивает */
#products {
  background: #000;
}

/* Карточки в покое: нейтральный графитовый блик сверху, без фиолетовых пятен */
.glass-card,
.metric-card,
.pillar-card,
.step-card,
.converter,
.product-card,
.mega-feature {
  position: relative;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 38%),
    radial-gradient(120% 90% at 100% 0%, rgba(var(--section-tone, 255, 255, 255), 0.05) 0%, transparent 56%);
}

.metric-card,
.pillar-card,
.step-card {
  background-color: #090a0d;
  background-image: linear-gradient(155deg, rgba(255, 255, 255, 0.045), rgba(10, 11, 15, 0.98));
  overflow: hidden;
  transition: transform 0.35s ease-in-out, border-color 0.35s ease-in-out, box-shadow 0.38s ease-in-out;
}

.pillar-card > *,
.step-card > *,
.metric-card > * {
  position: relative;
  z-index: 1;
}

.pillar-card::before,
.step-card::before,
.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
    radial-gradient(130% 95% at 92% 6%, rgba(109, 88, 214, 0.14) 0%, transparent 60%),
    radial-gradient(110% 85% at 6% 96%, rgba(196, 232, 77, 0.05) 0%, transparent 58%);
  transition: opacity 0.42s ease-in-out;
}

/* Наведение: плавный фиолетовый свет + тонкий лаймовый рефлекс, как в The Platform */
.pillar-card:hover,
.step-card:hover,
.metric-card:hover {
  border-color: rgba(109, 88, 214, 0.45);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(196, 232, 77, 0.2);
}

.pillar-card:hover::before,
.step-card:hover::before,
.metric-card:hover::before {
  opacity: 1;
}

@media (max-width: 768px) {
  #onboarding .step-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transform: none;
  }
  #onboarding .step-card::before,
  #onboarding .step-card:hover::before {
    opacity: 0;
  }
}

.converter {
  background-color: rgba(16, 18, 23, 0.9);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
    radial-gradient(90% 75% at 85% 12%, rgba(109, 88, 214, 0.1) 0%, transparent 60%);
}

.mega-feature {
  background-image:
    linear-gradient(150deg, rgba(109, 88, 214, 0.16) 0%, rgba(20, 21, 25, 0.92) 55%, rgba(20, 21, 25, 0.96) 100%);
}

/* Сцены карточек «The Platform»: canvas рисует сцену целиком; HTML только для 3D-карты (Holo Card). */
.bf-prod-scene .bf-prod-canvas {
  mix-blend-mode: normal;
}

.pv-holo {
  position: relative;
  z-index: 1;
  perspective: 600px;
  pointer-events: none;
}

.pv-holo-card {
  position: relative;
  width: 150px;
  height: 94px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(139, 92, 246, 0.55) 0%, transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(196, 232, 77, 0.28) 0%, transparent 55%),
    linear-gradient(135deg, #23202f 0%, #15161b 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform-style: preserve-3d;
  will-change: transform;
  color: #f5f6f8;
  font: 600 10px/1 "Inter Tight", system-ui, sans-serif;
}

.pv-holo-sheen {
  position: absolute;
  inset: -20%;
  background: linear-gradient(105deg, transparent calc(var(--sheen, 0%) - 18%), rgba(196, 232, 77, 0.22) var(--sheen, 0%), rgba(139, 92, 246, 0.3) calc(var(--sheen, 0%) + 6%), transparent calc(var(--sheen, 0%) + 22%));
  mix-blend-mode: screen;
}

.pv-holo-chip {
  position: absolute;
  left: 14px;
  top: 30px;
  width: 22px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(135deg, #d5f567, #8a9f35);
  opacity: 0.85;
}

.pv-holo-brand {
  position: absolute;
  left: 14px;
  top: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #c4e84d;
}

.pv-holo-nfc {
  position: absolute;
  right: 14px;
  top: 32px;
  opacity: 0.6;
  letter-spacing: -0.1em;
}

.pv-holo-num {
  position: absolute;
  left: 14px;
  bottom: 24px;
  font-family: ui-monospace, "JetBrains Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.pv-holo-name {
  position: absolute;
  left: 14px;
  bottom: 10px;
  font-size: 8px;
  letter-spacing: 0.14em;
  opacity: 0.6;
}

/* Плашки мега-меню: уникальные лёгкие CSS-микроанимации (только transform/opacity). */
.mega-feature {
  position: relative;
  gap: 8px;
  justify-content: flex-end;
  min-height: 260px;
  isolation: isolate;
}

.mega-feature h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.mega-feature .mf-kicker {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-lime);
}

.mega-feature .mf-text {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-secondary, rgba(245, 246, 248, 0.7));
  max-width: 260px;
}

.mega-feature .mf-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--text-primary);
}

.mega-feature .mf-metric strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.mega-feature .mf-metric small {
  font-size: 12px;
  color: rgba(245, 246, 248, 0.6);
}

.mega-feature .mf-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-lime);
}

.mega-feature .mf-art {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 120px;
  height: 72px;
  z-index: -1;
  color: var(--accent-lime);
  font-size: 0;
}

.mf-art i {
  position: absolute;
  display: block;
}

/* Business — rails: импульсы по прямым расчётным линиям */
.mf-art--rails .mf-rail {
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(139, 92, 246, 0.45);
  overflow: hidden;
}
.mf-art--rails .mf-rail:nth-child(1) { top: 16px; }
.mf-art--rails .mf-rail:nth-child(2) { top: 36px; }
.mf-art--rails .mf-rail:nth-child(3) { top: 56px; }
.mf-art--rails .mf-rail::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, #c4e84d);
  box-shadow: 0 0 8px #c4e84d;
  animation: mf-rail 1.8s linear infinite;
}
.mf-art--rails .mf-rail:nth-child(2)::after { animation-delay: -0.6s; }
.mf-art--rails .mf-rail:nth-child(3)::after { animation-delay: -1.2s; }
@keyframes mf-rail { from { transform: translateX(-30px); } to { transform: translateX(124px); } }

/* Personal — card: парящая мини-карта с бликом */
.mf-art--card .mf-mini-card {
  right: 6px;
  top: 6px;
  width: 96px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), #1b1a24 70%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
  animation: mf-float 4s ease-in-out infinite;
}
.mf-art--card .mf-mini-card b {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(196, 232, 77, 0.35) 50%, transparent 65%);
  animation: mf-sheen 3.2s ease-in-out infinite;
}
@keyframes mf-float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-6px) rotate(-2deg); } }
@keyframes mf-sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Partners — network: узлы сети по очереди «загораются» */
.mf-art--network .mf-node {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8b5cf6;
  animation: mf-node 2.4s ease-in-out infinite;
}
.mf-art--network .mf-node--c { left: 56px; top: 32px; width: 10px; height: 10px; background: #c4e84d; box-shadow: 0 0 14px #c4e84d; animation: none; }
.mf-art--network .mf-node:nth-child(2) { left: 14px; top: 8px; animation-delay: 0s; }
.mf-art--network .mf-node:nth-child(3) { left: 100px; top: 10px; animation-delay: -0.6s; }
.mf-art--network .mf-node:nth-child(4) { left: 20px; top: 58px; animation-delay: -1.2s; }
.mf-art--network .mf-node:nth-child(5) { left: 96px; top: 56px; animation-delay: -1.8s; }
.mf-art--network::before {
  content: '';
  position: absolute;
  inset: 12px 18px;
  border: 1px dashed rgba(139, 92, 246, 0.45);
  border-radius: 50%;
  animation: mf-spin 14s linear infinite;
}
@keyframes mf-node { 0%, 100% { transform: scale(1); opacity: 0.55; } 50% { transform: scale(1.5); opacity: 1; background: #c4e84d; } }
@keyframes mf-spin { to { transform: rotate(360deg); } }

/* Resources — ticker: столбики живых курсов */
.mf-art--ticker .mf-bar {
  bottom: 6px;
  width: 12px;
  height: 56px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #c4e84d, rgba(139, 92, 246, 0.5));
  transform-origin: bottom;
  animation: mf-bar 2.2s ease-in-out infinite;
}
.mf-art--ticker .mf-bar:nth-child(1) { left: 8px; animation-delay: 0s; }
.mf-art--ticker .mf-bar:nth-child(2) { left: 30px; animation-delay: -0.4s; }
.mf-art--ticker .mf-bar:nth-child(3) { left: 52px; animation-delay: -0.8s; }
.mf-art--ticker .mf-bar:nth-child(4) { left: 74px; animation-delay: -1.2s; }
.mf-art--ticker .mf-bar:nth-child(5) { left: 96px; animation-delay: -1.6s; }
@keyframes mf-bar { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

/* About — shield: вращающееся кольцо вокруг щита SRO */
.mf-art--shield .mf-ring {
  right: 18px;
  top: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: #c4e84d;
  border-right-color: rgba(139, 92, 246, 0.7);
  animation: mf-spin 3.2s linear infinite;
}
.mf-art--shield .mf-shield {
  right: 38px;
  top: 18px;
  width: 32px;
  height: 36px;
  background: linear-gradient(180deg, rgba(196, 232, 77, 0.9), rgba(139, 92, 246, 0.8));
  clip-path: polygon(50% 0, 100% 18%, 100% 55%, 50% 100%, 0 55%, 0 18%);
  animation: mf-pulse 2.4s ease-in-out infinite;
}
@keyframes mf-pulse { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.08); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .mf-art *,
  .mf-art::before,
  .mf-art *::after {
    animation: none !important;
  }
}

/* Currency Tools: фон и тексты секции меняются вместе с активной вкладкой */
#resources[data-tool] {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#resources .tools-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

#resources .tools-bg-layer {
  position: absolute;
  inset: -10%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s var(--ease-zephiq, ease), transform 1.2s var(--ease-zephiq, ease);
}

#resources .tools-bg-layer[data-layer="fx"] {
  background:
    radial-gradient(45% 60% at 85% 30%, rgba(109, 88, 214, 0.13) 0%, transparent 65%),
    radial-gradient(40% 50% at 10% 85%, rgba(196, 232, 77, 0.05) 0%, transparent 60%);
}

#resources .tools-bg-layer[data-layer="iban"] {
  background:
    radial-gradient(50% 65% at 80% 40%, rgba(196, 232, 77, 0.16) 0%, transparent 62%),
    radial-gradient(35% 45% at 15% 20%, rgba(109, 88, 214, 0.08) 0%, transparent 60%),
    repeating-linear-gradient(90deg, rgba(196, 232, 77, 0.07) 0 1px, transparent 1px 44px);
}

#resources .tools-bg-layer[data-layer="bic"] {
  background:
    radial-gradient(55% 60% at 75% 55%, rgba(109, 88, 214, 0.14) 0%, transparent 62%),
    radial-gradient(30% 40% at 20% 80%, rgba(196, 232, 77, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 75% 55%, transparent 0 22%, rgba(169, 156, 242, 0.14) 22.2% 22.6%, transparent 22.8% 34%, rgba(169, 156, 242, 0.1) 34.2% 34.6%, transparent 34.8%);
}

#resources[data-tool="fx"] .tools-bg-layer[data-layer="fx"],
#resources[data-tool="iban"] .tools-bg-layer[data-layer="iban"],
#resources[data-tool="bic"] .tools-bg-layer[data-layer="bic"] {
  opacity: 1;
  transform: scale(1);
}

#resources [data-tools-kicker],
#resources [data-tools-title],
#resources [data-tools-text] {
  transition: opacity 0.16s ease, transform 0.16s ease;
}

#resources.is-swapping [data-tools-kicker],
#resources.is-swapping [data-tools-title],
#resources.is-swapping [data-tools-text] {
  opacity: 0;
  transform: translateY(4px);
}

@media (prefers-reduced-motion: reduce) {
  #resources .tools-bg-layer,
  #resources [data-tools-kicker],
  #resources [data-tools-title],
  #resources [data-tools-text] {
    transition: none;
  }
}

/* Hero: живая S-лента (исходная картинка + блик + кометы + дыхание + параллакс) */
.hero .hero-art {
  background: none;
  opacity: 0.62;
  mix-blend-mode: normal;
  transform: translate3d(var(--hr-x, 0px), var(--hr-y, 0px), 0) scale(1.04);
  isolation: isolate;
  overflow: hidden;
  filter: saturate(0.6) contrast(1.06);
}

.hr-breathe {
  position: absolute;
  inset: 0;
  animation: hr-breathe 14s ease-in-out infinite;
  transform-origin: 72% 40%;
  will-change: transform;
}

@keyframes hr-breathe {
  0%, 100% { transform: scale(1) rotate(0deg) translate3d(0, 0, 0); }
  50% { transform: scale(1.025) rotate(-0.6deg) translate3d(-6px, 4px, 0); }
}

.hero-ribbon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hr-glow {
  fill: none;
  stroke: rgba(196, 232, 77, 0.06);
  stroke-width: 10;
  stroke-linecap: round;
}

.hr-comet {
  fill: none;
  stroke: url(#hr-comet-grad);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 0.18 1.2;
  stroke-dashoffset: 1;
  opacity: 0;
}

.hr-head {
  fill: url(#hr-head-grad);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(3);
}

/* Блик бежит по ленте: overlay подсвечивает светлые участки ленты, тёмный фон почти не меняется */
.hr-sheen {
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.55) 48%, rgba(213, 245, 103, 0.35) 52%, transparent 62%);
  mix-blend-mode: overlay;
  animation: hr-sheen 7s cubic-bezier(0.6, 0, 0.3, 1) infinite;
  will-change: transform;
  pointer-events: none;
}

@keyframes hr-sheen {
  0% { transform: translate3d(-60%, 0, 0); }
  55%, 100% { transform: translate3d(60%, 0, 0); }
}

@media (min-width: 769px) {
  .hero .hero-art {
    opacity: calc(0.62 * var(--hero-reveal, 1));
    transition: opacity 0.35s ease-in-out;
  }
}

@media (max-width: 768px) {
  .hero .hero-art {
    opacity: calc(0.58 * var(--hero-reveal, 1));
    transition: opacity 0.28s ease-out;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 12%, #000 28%, #000 68%, rgba(0, 0, 0, 0.35) 88%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.45) 12%, #000 28%, #000 68%, rgba(0, 0, 0, 0.35) 88%, transparent 100%);
  }

  .hero-ribbon {
    inset: auto;
    left: 50%;
    top: 0;
    width: 112%;
    height: 100%;
    aspect-ratio: auto;
    transform: translate(-50%, 0);
  }

  .hr-breathe {
    transform-origin: 50% 42%;
  }
}

@media (max-width: 480px) {
  .hero .hero-art {
    opacity: calc(0.54 * var(--hero-reveal, 1));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hr-breathe,
  .hr-sheen {
    animation: none;
  }
  .hr-sheen,
  .hr-lights {
    display: none;
  }
}

/* Облегчённый режим (медленный интернет / экономия трафика / слабое устройство): без CSS-анимаций */
html.lite-motion .hr-breathe,
html.lite-motion .hr-sheen,
html.lite-motion .mf-art *,
html.lite-motion .mf-art::before,
html.lite-motion .mf-art *::after {
  animation: none !important;
}

html.lite-motion .hr-sheen,
html.lite-motion .hr-lights {
  display: none;
}

/* Шаблон-заглушка страниц мега-меню (product.html / produkt.html) */
.stub-page {
  max-width: 1080px;
}

.stub-page h1 {
  margin: 12px 0 16px;
}

.stub-lead {
  max-width: 640px;
  color: var(--text-secondary, rgba(255, 255, 255, 0.72));
  font-size: 1.125rem;
}

.stub-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin: 28px 0 48px;
}

.stub-back {
  color: var(--accent-lime, #c4e84d);
  text-decoration: none;
}

.stub-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.stub-block {
  padding: 28px;
  border-radius: 20px;
  min-width: 0;
}

.stub-block h2 {
  margin: 12px 0 8px;
  font-size: 1.25rem;
}

.stub-block p {
  margin: 0 0 18px;
  color: var(--text-secondary, rgba(255, 255, 255, 0.68));
}

.stub-num {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--accent-violet, #8b5cf6);
}

.stub-soon {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(196, 232, 77, 0.45);
  color: var(--accent-lime, #c4e84d);
  font-size: 0.75rem;
}
