@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,600&display=swap');

/* ИРБР 2026 — Corporate Design System (executive / B2B)
 * Direction: Stripe-Atlas / IBM / Capital One restraint.
 * Deep navy primary, warm-gold accent, serif display, ample whitespace.
 * Aurora effects radically dimmed — solid corporate surfaces.
 * Light theme primary + dark mode inversion.
 */

:root {
  /* Light theme (primary) */
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --bg-subtle: #f4f4f5;
  --bg-muted: #e4e4e7;
  --fg: #0a0a0a;
  --fg-muted: #52525b;
  --fg-subtle: #71717a;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;

  /* Brand — corporate navy + warm gold */
  --brand: #0a2540;          /* deep navy (Stripe-style) */
  --brand-hover: #11365d;
  --brand-strong: #061a2e;
  --brand-subtle: #eaeef3;   /* navy 8% mix on white */
  --accent: #bda06f;         /* warm gold / executive */
  --accent-hover: #a98955;
  --accent-subtle: #f6f1e6;  /* gold 10% mix on white */

  /* Status */
  --success: #166534;        /* darker, more authoritative */
  --warning: #b45309;
  --danger: #991b1b;

  /* Aurora — radically dimmed (legacy compat) */
  --aurora-1: linear-gradient(120deg, #0a25400a, #bda06f0a);
  --aurora-2: linear-gradient(135deg, #11365d0a, #0a25400a);
  --aurora-3: linear-gradient(110deg, #bda06f08, #0a25400a);

  /* Typography — serif for display, sans for body */
  --font-sans: 'Inter Variable', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  --font-corporate: Ubuntu, Inter, sans-serif;
  --font-display: 'Source Serif 4 Variable', 'Source Serif 4', 'Source Serif Pro', 'PT Serif', Georgia, 'Times New Roman', serif;
  --font-serif: var(--font-display);

  /* Sizes — corporate (smaller radii, more squared) */
  --container: 1280px;
  --container-narrow: 880px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows — corporate restrained */
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.05);
  --shadow: 0 2px 8px rgba(10, 37, 64, 0.06), 0 1px 2px rgba(10, 37, 64, 0.04);
  --shadow-lg: 0 8px 24px rgba(10, 37, 64, 0.08), 0 2px 6px rgba(10, 37, 64, 0.04);
  --shadow-glow: 0 0 24px rgba(10, 37, 64, 0.10);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-elevated: #14181f;
  --bg-subtle: #1c2230;
  --bg-muted: #2a3242;
  --fg: #fafafa;
  --fg-muted: #d4d4d8;
  --fg-subtle: #a1a1aa;
  --border: #1f2733;
  --border-strong: #2e3849;
  /* Inverted brand — lighter navy/blue for dark surfaces */
  --brand: #6c9ed4;
  --brand-hover: #8eb4dd;
  --brand-strong: #4a82bd;
  --brand-subtle: #6c9ed420;
  --accent: #d4b486;          /* lighter gold for dark contrast */
  --accent-hover: #e3c79e;
  --accent-subtle: #d4b48620;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

/* Typography — serif display for executive feel */
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--fg);
}
h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.625rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.lead { font-size: clamp(1.125rem, 2vw, 1.375rem); color: var(--fg-muted); line-height: 1.5; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: clamp(5rem, 9vw, 9rem) 0; }
.section-tight { padding: clamp(3.5rem, 6vw, 6rem) 0; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.nav-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  font-weight: 500;
  transition: color 0.15s var(--ease);
}
.nav-links a:hover { color: var(--fg); }
.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Mobile nav toggle */
.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-mobile-toggle[aria-expanded="true"] + .mobile-menu { display: flex; }
  .mobile-menu {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1rem;
  }
  .mobile-menu a { padding: 0.5rem 0; font-size: 1rem; }
}

/* Buttons — corporate squared, restrained */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #ffffff;
  box-shadow: var(--shadow);
}
[data-theme="dark"] .btn-primary { color: #0a2540; }
[data-theme="dark"] .btn-primary:hover { color: #061a2e; }
.btn-secondary {
  background: var(--bg-elevated);
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--fg);
  background: var(--bg-subtle);
}
.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
}
.btn-ghost:hover { color: var(--fg); background: var(--bg-subtle); }
.btn-lg { padding: 0.875rem 1.5rem; font-size: 1rem; }

/* Hero — corporate executive */
.hero {
  position: relative;
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 7vw, 7rem);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 540px;
  background: radial-gradient(ellipse at center, rgba(10, 37, 64, 0.04), transparent 65%);
  z-index: -1;
  pointer-events: none;
}
.hero-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.9375rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 1.75rem;
  letter-spacing: 0.005em;
}
.hero-eyebrow-pill .dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hero-title {
  max-width: 22ch;
  margin-bottom: 1.75rem;
}
.hero-title .gradient {
  /* Corporate solid — no gradient (was light-blue→purple) */
  color: var(--brand);
  font-style: italic;
  font-weight: 600;
}
[data-theme="dark"] .hero-title .gradient { color: var(--accent); }
.hero-lead { max-width: 64ch; margin-bottom: 2.75rem; font-weight: 400; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-trust {
  margin-top: 2.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  font-size: 0.8125rem;
  color: var(--fg-subtle);
  letter-spacing: 0.005em;
}
.hero-trust .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-trust .trust-item::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Bento grid — more whitespace, corporate gap */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.75rem;
  margin-top: 4rem;
}
.bento-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.2s var(--ease);
  overflow: hidden;
  position: relative;
}
.bento-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.bento-card.span-6 { grid-column: span 6; }
.bento-card.span-4 { grid-column: span 4; }
.bento-card.span-8 { grid-column: span 8; }
.bento-card.span-12 { grid-column: span 12; }
.bento-card.span-3 { grid-column: span 3; }
.bento-card.span-5 { grid-column: span 5; }
.bento-card.span-7 { grid-column: span 7; }
.bento-card.span-9 { grid-column: span 9; }
.bento-card.row-2 { grid-row: span 2; }
@media (max-width: 880px) {
  .bento-card.span-6, .bento-card.span-4, .bento-card.span-8, .bento-card.span-3, .bento-card.span-5, .bento-card.span-7, .bento-card.span-9 { grid-column: span 12; }
}
.bento-card .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand-subtle);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.bento-card.accent { background: var(--aurora-1); }
.bento-card.dark {
  background: linear-gradient(135deg, #0a0a0a 0%, #18181b 60%, #1a1a2e 100%);
  color: #fafafa;
  border-color: #27272a;
  position: relative;
  overflow: hidden;
}
.bento-card.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(0, 102, 255, 0.15), transparent 60%),
              radial-gradient(ellipse at bottom left, rgba(139, 92, 246, 0.1), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.bento-card.dark > * { position: relative; z-index: 1; }
.bento-card.dark .icon { background: rgba(255, 255, 255, 0.08); color: #fafafa; }
.bento-card.dark p,
.bento-card.dark ul,
.bento-card.dark .arrow,
.bento-card.dark .price-period { color: rgba(255, 255, 255, 0.7); }
.bento-card.dark h3,
.bento-card.dark .price-amount,
.bento-card.dark strong { color: #fafafa; }
.bento-card.dark .btn-secondary,
.bento-card.dark .btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fafafa;
}
.bento-card.dark .btn:hover,
.bento-card.dark .btn-secondary:hover {
  background: rgba(0, 102, 255, 0.2);
  border-color: rgba(0, 102, 255, 0.4);
  color: #fafafa;
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 3rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  font-feature-settings: 'tnum';
  /* Corporate solid — no gradient */
  color: var(--brand);
  line-height: 1;
  margin-bottom: 0.5rem;
}
[data-theme="dark"] .stat-num { color: var(--fg); }
.stat-label { font-size: 0.9375rem; color: var(--fg-muted); }

/* Service card grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.2s var(--ease);
  text-decoration: none;
  color: inherit;
}
.service-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.service-card .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--brand-subtle);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.service-card h3 { font-size: 1.25rem; }
.service-card p { color: var(--fg-muted); flex: 1; }
.service-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--brand);
  font-size: 0.9375rem;
}

/* Logo cloud */
.clients-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
  opacity: 0.7;
}
.clients-cloud img {
  width: 100%;
  max-height: 40px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.2s var(--ease), opacity 0.2s var(--ease);
}
.clients-cloud img:hover { filter: none; }

/* CTA strip — corporate navy plate */
.cta-strip {
  background: var(--brand);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(189, 160, 111, 0.10), transparent 55%),
              radial-gradient(circle at 70% 85%, rgba(255, 255, 255, 0.06), transparent 55%);
  z-index: 0;
}
.cta-strip h2 { color: #ffffff !important; }
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip h2 { color: #ffffff; max-width: 22ch; margin: 0 auto 1rem; }
.cta-strip p { color: rgba(255, 255, 255, 0.82); max-width: 56ch; margin: 0 auto 2rem; }

/* Footer */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-subtle);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col a { color: var(--fg-muted); font-size: 0.9375rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--fg-subtle);
}
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* Theme toggle */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--fg-muted);
  transition: all 0.15s var(--ease);
}
.theme-toggle:hover { color: var(--fg); border-color: var(--fg); }
/* Language toggle (RU<->EN) - matches theme-toggle visual weight */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.15s var(--ease);
}
.lang-toggle:hover { color: var(--brand); border-color: var(--brand); }


/* Utility */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-8 { margin-top: 2rem; }
.text-muted { color: var(--fg-muted); }
.text-subtle { color: var(--fg-subtle); }
.font-mono { font-family: var(--font-mono); font-feature-settings: 'tnum'; }

/* Section header */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}
.section-header .eyebrow { display: block; margin-bottom: 1rem; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 1.25rem; max-width: 480px; }
.form-row { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row label { font-size: 0.875rem; font-weight: 500; }
.form-row input, .form-row textarea, .form-row select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  font-size: 1rem;
  transition: border-color 0.15s var(--ease);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-subtle);
}

/* Page hero (interior pages) */
.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--fg-subtle);
  margin-bottom: 1.5rem;
}
.breadcrumbs a:hover { color: var(--fg); }
.breadcrumbs .sep { opacity: 0.4; }

/* Print */
@media print {
  .site-header, .site-footer, .cta-strip { display: none; }
}

/* ============================================================
 * Theme-aware helpers + dark-mode fixes (added 2026-05-06)
 * ============================================================ */

/* Replaces inline `background: linear-gradient(135deg,#fff,#f8faff)`
 * on bento cards. Uses CSS vars so dark theme inverts correctly. */
.bento-card.feature-soft {
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-subtle));
}
.bento-card.feature-soft-violet {
  background:
    linear-gradient(135deg, var(--bg-elevated), var(--accent-subtle));
}

/* Dark-theme: bento .accent uses --aurora-1 (rgba 15% alpha) — boost
 * contrast with a subtle elevated layer underneath so the gradient
 * remains visible on #0a0a0a background. */
[data-theme="dark"] .bento-card.accent {
  background: var(--bg-elevated), var(--aurora-1);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, var(--bg-elevated)),
                            color-mix(in srgb, var(--accent) 12%, var(--bg-elevated)));
  border-color: var(--border-strong);
}

/* CTA strip — currently uses var(--fg) as bg and rgba(255,255,255,X)
 * for descendants. In dark theme var(--fg) = #fafafa (white-ish) so
 * white text becomes invisible. Make all internal whites theme-aware. */
.cta-strip p { color: rgba(255, 255, 255, 0.82); }
[data-theme="dark"] .cta-strip { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
[data-theme="dark"] .cta-strip p { color: rgba(255, 255, 255, 0.82); }

.cta-eyebrow { color: rgba(189, 160, 111, 0.9) !important; }
/* CTA buttons designed against navy plate */
.cta-btn-light {
  background: #ffffff;
  color: #0a2540;
  border-color: #ffffff;
}
.cta-btn-light:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.18); background: #f6f1e6; color: #0a2540; }
.cta-btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
}
.cta-btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Pricing helpers (replace inline styles, keep dark-theme aware) */





.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.price-period { font-size: 1rem; color: var(--fg-muted); font-weight: 400; }


.price-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--fg-muted);
  font-size: 0.9375rem;
}


.bento-card.dark .btn-secondary:hover {
  background: color-mix(in srgb, var(--bg) 18%, transparent);
  border-color: var(--bg);
}

/* Theme-toggle: sun visible in light, moon visible in dark */
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Touch-target compliance — WCAG 2.5.5 / Apple HIG / Material 44×44.
 * Apply only on coarse pointers so desktop density stays compact. */
@media (pointer: coarse) {
  .btn { min-height: 44px; padding: 0.75rem 1.125rem; }
  .btn-lg { min-height: 48px; }
  .theme-toggle, .nav-mobile-toggle { width: 44px; height: 44px; }
  .nav-links a, .footer-col a, .mobile-menu a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Mobile-menu — make it span the viewport, not just the container.
 * It's nested in .container so left:0/right:0 was constrained. */
@media (max-width: 880px) {
  .site-header { position: sticky; }
  .nav { position: relative; }
  .mobile-menu {
    left: -1.5rem;
    right: -1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 49;
  }
  /* Tighter bento gap, smaller card padding for breathing room */
  .bento { gap: 0.875rem; margin-top: 2.5rem; }
  .bento-card { padding: 1.5rem; border-radius: var(--radius); }
  .stats { padding: 1.75rem; gap: 1.25rem; }
  .stats > div { text-align: left; }
  .cta-strip { padding: 2.5rem 1.5rem; border-radius: var(--radius-lg); }
  .hero { padding-top: 2.5rem; padding-bottom: 2rem; }
  .hero-title { max-width: 100%; }
  .hero-actions .btn { flex: 1; min-width: 0; }
  /* Section header tighter */
  .section-header { margin-bottom: 2.5rem; }
  /* Footer single column on small */
}

/* Extra-small (≤ 480px) — iPhone SE / 320–414px */
@media (max-width: 480px) {
  body { font-size: 15px; }
  .container, .container-narrow { padding: 0 1rem; }
  .mobile-menu { left: -1rem; right: -1rem; }
  section { padding: 2.5rem 0; }
  .section-tight { padding: 2rem 0; }
  .nav { height: 3.5rem; }
  .mobile-menu { top: 3.5rem; }
  .bento { gap: 0.75rem; margin-top: 2rem; }
  .bento-card { padding: 1.25rem; }
  .stats { padding: 1.25rem; gap: 1rem; }
  .stat-num { font-size: 1.875rem; }
  .cta-strip { padding: 2rem 1.25rem; }
  .cta-strip h2 { font-size: 1.625rem; }
  .hero { padding-top: 2rem; }
  .hero-eyebrow-pill { font-size: 0.75rem; padding: 0.3125rem 0.75rem; }
  .hero-actions { flex-direction: column; gap: 0.75rem; }
  .hero-actions .btn { width: 100%; }
  /* Footer single column */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  /* Pricing cards force-stack with full width */
  .bento-card.span-4, .bento-card.span-6, .bento-card.span-8 { grid-column: span 12; }
  /* Inline illust images — clamp to card width */
  .bento-card img { max-width: 100% !important; }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus-visible — improve a11y on keyboard nav */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.btn:focus-visible { outline-offset: 3px; }




@media (max-width: 880px) {
  .nav-mobile-toggle[aria-expanded="true"] + .mobile-menu,
  .mobile-menu[style*="display: flex"] { display: flex !important; }
}

/* ============================================================
   HERITAGE CASE CARD — Хвистер showcase (premium dark, theme-independent)
   Used on: index.html, cases/index.html
   ============================================================ */
.bento-card.heritage,
.case-card.heritage {
  background: linear-gradient(135deg, #0a0a0a 0%, #18181b 60%, #1a1a2e 100%);
  color: #fafafa;
  border: 1px solid #27272a;
  position: relative;
  overflow: hidden;
  padding: 3rem;
  border-radius: var(--radius-xl, 1.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.bento-card.heritage::before,
.case-card.heritage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0, 102, 255, 0.28), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.22), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.bento-card.heritage > *,
.case-card.heritage > * { position: relative; z-index: 1; }
.bento-card.heritage h3,
.case-card.heritage h3,
.bento-card.heritage strong,
.case-card.heritage strong { color: #fafafa; }
.bento-card.heritage p,
.case-card.heritage p,
.bento-card.heritage li,
.case-card.heritage li { color: rgba(250, 250, 250, 0.78); }
.bento-card.heritage .text-muted,
.case-card.heritage .text-muted { color: rgba(250, 250, 250, 0.7); }
.bento-card.heritage .eyebrow,
.case-card.heritage .eyebrow { color: rgba(250, 250, 250, 0.6); }
.bento-card.heritage .heritage-badge,
.case-card.heritage .heritage-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .875rem;
  background: rgba(0, 102, 255, 0.18);
  border: 1px solid rgba(0, 102, 255, 0.4);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #b9d4ff;
}
.bento-card.heritage .heritage-badge::before,
.case-card.heritage .heritage-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4d9fff;
  box-shadow: 0 0 8px rgba(77, 159, 255, 0.8);
}
.heritage-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 720px) {
  .heritage-stats { grid-template-columns: repeat(2, 1fr); }
  .bento-card.heritage, .case-card.heritage { padding: 2rem 1.5rem; }
}
.heritage-stats .stat-value {
  font-family: var(--font-display, Inter), system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.03em;
  background: linear-gradient(120deg, #ffffff 0%, #b9d4ff 60%, #d6c4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.heritage-stats .stat-label {
  font-size: .8125rem;
  color: rgba(250, 250, 250, 0.6);
  margin-top: .25rem;
  line-height: 1.3;
}
.heritage-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2rem;
  position: relative;
}
.heritage-timeline::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 102, 255, 0.6), rgba(139, 92, 246, 0.6));
  z-index: 0;
}
.heritage-timeline .tl-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 .5rem;
}
.heritage-timeline .tl-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #0a0a0a;
  border: 2px solid #4d9fff;
  margin: 0 auto .5rem;
  box-shadow: 0 0 12px rgba(77, 159, 255, 0.5);
}
.heritage-timeline .tl-step:last-child .tl-dot {
  background: linear-gradient(135deg, #4d9fff, #a78bfa);
  border-color: #a78bfa;
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.6);
}
.heritage-timeline .tl-year {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-weight: 700;
  font-size: .9375rem;
  color: #fafafa;
}
.heritage-timeline .tl-label {
  display: block;
  font-size: .75rem;
  color: rgba(250, 250, 250, 0.65);
  margin-top: .25rem;
  line-height: 1.35;
}
@media (max-width: 720px) {
  .heritage-timeline { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0; }
  .heritage-timeline::before { display: none; }
}
.heritage-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.5rem;
  padding: .75rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm, .5rem);
  color: #fafafa;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s var(--ease, ease);
}
.heritage-cta:hover {
  background: rgba(0, 102, 255, 0.22);
  border-color: rgba(0, 102, 255, 0.5);
}


/* === PRICING — CLEAN UNIFIED 2026-05-10 (corporate navy) === */
.pricing-card {
  position: relative !important;
  padding-top: 2.5rem !important;
  overflow: visible !important;
}
.pricing-card.featured {
  border: 2px solid var(--brand) !important;
  box-shadow: 0 8px 32px rgba(10, 37, 64, 0.16);
}
.pricing-badge {
  position: absolute !important;
  top: -14px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  background: var(--brand) !important;
  color: #ffffff !important;
  padding: 0.4rem 1.1rem !important;
  border-radius: 999px !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  z-index: 10 !important;
  box-shadow: 0 6px 18px rgba(10, 37, 64, 0.35), 0 0 0 4px var(--bg-elevated, #fff), inset 0 0 0 1px rgba(189, 160, 111, 0.4);
  pointer-events: none;
}


/* === PRICING LAYOUT FIX — равные столбцы 2026-05-10 === */
@media (min-width: 881px) {
  /* Force 3-column equal grid для pricing section */
  .pricing-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: 420px !important;
    height: 100% !important;
  }
  .pricing-card .price-list,
  .pricing-card ul {
    flex: 1 1 auto;
  }
  .pricing-card .btn,
  .pricing-card a.btn {
    margin-top: auto !important;
  }
}
@media (max-width: 880px) {
  .pricing-card {
    min-height: auto !important;
    margin-bottom: 1rem;
  }
}


/* === CORPORATE PILLS / STATUS BADGES — outlined, restrained 2026-05-10 === */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.25rem 0.6875rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  font-size: 0.7188rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.pill::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  opacity: 0.85;
}
.pill.pill-prod { color: var(--success); border-color: color-mix(in srgb, var(--success) 35%, var(--border)); background: color-mix(in srgb, var(--success) 6%, transparent); }
.pill.pill-nda { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); background: var(--brand-subtle); }
.pill.pill-load { color: var(--accent-hover); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: var(--accent-subtle); }
.pill.pill-sector { color: var(--fg-muted); border-color: var(--border-strong); background: var(--bg-elevated); }
.pill.pill-sector::before { display: none; }

/* Hero Source-Serif italic accent — explicit fallback if web font fails */
.hero-title em, .hero-title .gradient { font-style: italic; }

/* Section header tightening for executive feel */
.section-header h2 { font-family: var(--font-serif); }
.section-header .lead { color: var(--fg-muted); }

/* Trust ribbon — used on hero + key sections */
.trust-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--fg-subtle);
  letter-spacing: 0.005em;
}
.trust-ribbon .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.trust-ribbon .trust-item svg { color: var(--accent); flex-shrink: 0; }

/* Footer corporate addons */
.site-footer { background: var(--bg-elevated); }
.footer-cert {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.75rem;
  color: var(--fg-subtle);
  letter-spacing: 0.02em;
}
.footer-cert .cert-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
}
.footer-cert .cert-item::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.footer-meta-credits {
  font-size: 0.75rem;
  color: var(--fg-subtle);
  margin-top: 0.5rem;
}
.footer-meta-credits a { color: var(--brand); }
[data-theme="dark"] .footer-meta-credits a { color: var(--accent); }

/* Hero gradient text — final corporate (override any earlier !important) */
.hero-title .gradient {
  background: none !important;
  -webkit-text-fill-color: var(--brand) !important;
  color: var(--brand) !important;
  font-style: italic;
  font-weight: 600;
}
[data-theme="dark"] .hero-title .gradient {
  -webkit-text-fill-color: var(--accent) !important;
  color: var(--accent) !important;
}


/* === MOBILE MENU BULLETPROOF — DO NOT REMOVE — see feedback_no_duplicate_mobile_menu_20260510.md === */
[x-cloak] { display: none !important; }
.mobile-menu { display: none !important; }
@media (max-width: 880px) {
  .nav-mobile-toggle[aria-expanded="true"] + .mobile-menu,
  .mobile-menu[style*="display: flex"],
  .mobile-menu[style*="display:flex"] { display: flex !important; }
}
/* === END BULLETPROOF === */


/* === DARK CARD TEXT — ALWAYS WHITE (theme-independent, не использует var(--bg)) === */
.bento-card.dark,
.bento-card.dark *,
.bento-card.dark h3,
.bento-card.dark p,
.bento-card.dark ul,
.bento-card.dark li,
.bento-card.dark strong,
.bento-card.dark .price-amount,
.bento-card.dark .price-period,
.bento-card.dark .price-list,
.bento-card.dark .arrow { color: #fafafa !important; }
.bento-card.dark p,
.bento-card.dark ul,
.bento-card.dark li,
.bento-card.dark .price-period,
.bento-card.dark .arrow { color: rgba(255, 255, 255, 0.78) !important; }
.bento-card.dark h3,
.bento-card.dark .price-amount,
.bento-card.dark strong { color: #ffffff !important; }
.bento-card.dark .btn,
.bento-card.dark .btn-secondary {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #fafafa !important;
}
.bento-card.dark .btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}


/* === ENTERPRISE DARK CARD — kontaktni equal height + readable btn === */
.bento-card.dark.pricing-card {
  display: flex !important;
  flex-direction: column !important;
  min-height: 420px !important;
  height: 100% !important;
}
.bento-card.dark.pricing-card .btn,
.bento-card.dark.pricing-card a.btn {
  margin-top: auto !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  font-weight: 500;
}
.bento-card.dark.pricing-card .btn:hover {
  background: rgba(189, 160, 111, 0.2) !important;  /* gold hover */
  border-color: rgba(189, 160, 111, 0.5) !important;
  color: #ffffff !important;
}
.bento-card.dark.pricing-card .price-from {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #ffffff !important;
}
.bento-card.dark.pricing-card ul {
  flex: 1 1 auto;
}


/* === ENTERPRISE PRICING CARD — premium gold accent, theme-aware === */
.bento-card.enterprise-card {
  position: relative !important;
  border: 2px solid var(--accent) !important;  /* gold border */
  box-shadow: 0 12px 40px rgba(189, 160, 111, 0.18), 0 0 0 1px var(--accent-subtle) inset;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--accent-subtle) 100%) !important;
  overflow: hidden;
}
.bento-card.enterprise-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at top right, rgba(189, 160, 111, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.bento-card.enterprise-card > * { position: relative; z-index: 1; }
/* "Корпоративный" eyebrow → золотой */
.bento-card.enterprise-card > div:first-child {
  color: var(--accent) !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem !important;
}
.bento-card.enterprise-card .btn,
.bento-card.enterprise-card a.btn {
  background: var(--brand) !important;  /* navy primary */
  color: #ffffff !important;
  border: 1px solid var(--brand) !important;
  font-weight: 500;
  margin-top: auto !important;
}
.bento-card.enterprise-card .btn:hover {
  background: #14365c !important;  /* deeper navy */
  border-color: var(--accent) !important;
  box-shadow: 0 6px 18px rgba(10, 37, 64, 0.3);
  color: #ffffff !important;
}


/* === UBUNTU CORPORATE DISPLAY (вместо serif) === */
h1, h2, h3,
.hero-title,
.section-header h2,
.nav-logo span,
.hero-eyebrow-pill,
.btn,
.eyebrow {
  font-family: var(--font-corporate, "Ubuntu", "Inter", sans-serif) !important;
}
h1, h2 { font-weight: 700; letter-spacing: -0.02em; }
.btn { font-weight: 500; }
.eyebrow { font-weight: 500; letter-spacing: 0.08em; }

/* === SKIP-LINK ACCESSIBILITY (WCAG 2.4.1 Bypass Blocks) === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--brand, #0a2540);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-corporate, "Ubuntu", "Inter", sans-serif);
  border-radius: 0 0 6px 0;
  transition: top 0.15s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid var(--accent, #bda06f);
  outline-offset: 2px;
}




/* IT-aesthetic accents */
body { font-feature-settings: "ss01", "cv11", "tnum"; }
.hero-title .gradient {
  background: linear-gradient(135deg, var(--brand), var(--accent)) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  text-shadow: 0 0 40px rgba(74, 142, 255, 0.3);
}
.hero-eyebrow-pill {
  background: var(--bg-elevated) !important;
  border: 1px solid var(--border-strong) !important;
  color: var(--fg-muted) !important;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.hero-eyebrow-pill .dot {
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2), 0 0 12px rgba(34, 197, 94, 0.6) !important;
  background: #22c55e !important;
}
/* Terminal-style code-monospace на stats */
.stat-num {
  font-family: var(--font-mono) !important;
  font-feature-settings: "tnum";
}
/* Subtle grid background на body для tech feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(74, 142, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 142, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: -10;
}
:root[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(10, 37, 64, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 37, 64, 0.04) 1px, transparent 1px);
}
/* Site-header terminal-style border */
.site-header {
  background: color-mix(in srgb, var(--bg) 80%, transparent) !important;
  border-bottom: 1px solid var(--border-strong) !important;
}


/* === HIDE LOGO IMAGE (favicon only) — 2026-05-10 === */

.nav-logo span { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }


/* === LOGO RESTORE 2026-05-10 === */
.nav-logo-mark {
  display: inline-block !important;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  vertical-align: middle;
}


/* === SPAN-3 4-column grid 2026-05-10 === */
.bento-card.span-3 { grid-column: span 3; }
@media (max-width: 880px) {
  .bento-card.span-3 { grid-column: span 6; }  /* 2 columns на tablets */
}
@media (max-width: 480px) {
  .bento-card.span-3 { grid-column: span 12; } /* 1 col на mobile */
}


/* === LOGO HOVER SPIN + UP BUTTON 2026-05-10 === */
.nav-logo-mark {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.nav-logo:hover .nav-logo-mark {
  transform: rotate(360deg) scale(1.05);
}

/* Promo banner с динамической датой */
.promo-banner {
  background: linear-gradient(135deg, var(--bg-elevated), var(--accent-subtle));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  text-align: center;
  margin: 2rem 0;
  font-size: 0.9375rem;
  color: var(--fg);
}

/* Up button */
.up-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: opacity 0.3s, transform 0.2s;
}
.up-button.visible { display: flex; }
.up-button:hover { transform: translateY(-3px); background: var(--accent); }
.up-button svg { width: 22px; height: 22px; stroke: currentColor; }
@media (max-width: 480px) { .up-button { bottom: 16px; right: 16px; } }


/* === SECURITY CARD GRID 2026-05-10 === */
.security-card {
  background: linear-gradient(135deg, var(--bg-elevated), var(--brand-subtle)) !important;
  position: relative;
  overflow: hidden;
}
.security-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(74, 142, 255, 0.08), transparent 60%);
  pointer-events: none;
}
.security-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.security-illust { display: flex; justify-content: center; align-items: center; }
.security-illust img { filter: drop-shadow(0 10px 30px rgba(74, 142, 255, 0.15)); }
@media (max-width: 880px) {
  .security-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .security-illust img { max-width: 220px !important; margin: 0 auto; }
}


/* === NAV-LOGO TEXT FIX 2026-05-10 === */
.nav-logo, .nav-logo span {
  color: var(--fg) !important;
  text-decoration: none;
}
.nav-logo:hover, .nav-logo:hover span {
  color: var(--brand) !important;
}
