/* Metric-matched fallbacks: instant render, no layout shift when the web fonts arrive (display=optional) */
@font-face { font-family: 'Inter Fallback'; src: local('Arial'), local('Helvetica'), local('Roboto'); size-adjust: 107%; ascent-override: 90%; descent-override: 22.5%; line-gap-override: 0%; }
@font-face { font-family: 'Space Grotesk Fallback'; src: local('Arial'), local('Helvetica'), local('Roboto'); size-adjust: 103%; ascent-override: 96%; descent-override: 29%; line-gap-override: 0%; }
/* Translation Bureau - shared styles for language landing pages */
:root {
  --ink: #050816;
  --panel: rgba(15, 20, 40, 0.55);
  --panel-strong: rgba(11, 16, 32, 0.8);
  --border: rgba(148, 163, 184, 0.14);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --dim: #64748b;
  --neon: #22d3ee;
  --violet: #8b5cf6;
  --magenta: #f0abfc;
  --lime: #a3e635;
  --wa: #25d366;
  --tg: #229ed9;
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: 'Inter', 'Inter Fallback', system-ui, -apple-system, sans-serif; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Space Grotesk Fallback', 'Inter', sans-serif; letter-spacing: -0.02em; color: #fff; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Backdrops */
.aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(60vw 60vw at 10% 10%, rgba(139,92,246,.22), transparent 60%),
              radial-gradient(50vw 50vw at 90% 20%, rgba(34,211,238,.16), transparent 60%),
              radial-gradient(70vw 70vw at 50% 100%, rgba(240,171,252,.10), transparent 60%);
  animation: aurora 18s ease-in-out infinite alternate; }
@keyframes aurora { to { filter: hue-rotate(25deg); transform: translateY(-2%); } }
.grid-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(148,163,184,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }

/* Layout */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .wrap { padding: 0 32px; } }

/* Glass */
.glass { background: var(--panel); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--border); border-radius: var(--radius); }
.glass-strong { background: var(--panel-strong); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(148,163,184,.18); border-radius: var(--radius); }
.neon-text { background: linear-gradient(90deg, #67e8f9, #a78bfa 50%, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.neon-ring { position: relative; }
.neon-ring::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(34,211,238,.7), rgba(139,92,246,.4) 50%, rgba(240,171,252,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .6; transition: opacity .3s; }
.neon-ring:hover::before { opacity: 1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 16px; padding: 14px 24px; font-weight: 700; font-size: 15px; transition: transform .2s, box-shadow .2s, filter .2s, border-color .2s, background .2s; cursor: pointer; border: 0; }
.btn-primary { background: linear-gradient(90deg, #22d3ee, #8b5cf6); color: #050816; box-shadow: 0 10px 40px -10px rgba(34,211,238,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -10px rgba(139,92,246,.7); filter: brightness(1.08); }
.btn-ghost { border: 1px solid rgba(148,163,184,.25); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: rgba(34,211,238,.6); background: rgba(34,211,238,.06); transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #050816; }
.btn-tg { background: var(--tg); color: #fff; }
.btn-wa:hover, .btn-tg:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 12px; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: 16px; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-radius: 16px; }
@media (min-width: 640px) { .nav { padding: 12px 24px; } }
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; font-weight: 600; font-size: 18px; color: #fff; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, var(--neon), var(--violet)); color: #050816; font-weight: 700; }
.brand small { color: var(--dim); font-size: 13px; }
.nav-links { display: none; gap: 26px; font-size: 14px; color: #cbd5e1; }
.nav-links a:hover { color: #fff; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-phone { display: none; }
@media (min-width: 640px) { .nav-phone { display: inline-flex; } }
.menu-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: transparent; color: #fff; }
@media (min-width: 1024px) { .menu-btn { display: none; } }
.mobile-menu { display: none; margin-top: 8px; padding: 16px; border-radius: 16px; font-size: 14px; }
.mobile-menu.open { display: grid; gap: 4px; }
.mobile-menu a { padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,.05); }
.mobile-menu a:last-child { border: 0; color: var(--neon); font-weight: 600; }

/* Hero (light version, no WebGL) */
.hero { position: relative; padding: 140px 0 56px; overflow: hidden; }
@media (min-width: 1024px) { .hero { padding: 160px 0 72px; } }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; opacity: .55; animation: float 12s ease-in-out infinite; }
.orb-1 { width: 380px; height: 380px; right: -80px; top: 80px; background: radial-gradient(circle at 30% 30%, rgba(34,211,238,.35), rgba(139,92,246,.15) 60%, transparent 70%); }
.orb-2 { width: 220px; height: 220px; right: 260px; top: 300px; background: radial-gradient(circle at 30% 30%, rgba(240,171,252,.3), transparent 70%); animation-delay: -5s; }
.ring { position: absolute; right: 40px; top: 120px; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(34,211,238,.35); box-shadow: 0 0 60px rgba(34,211,238,.15), inset 0 0 40px rgba(139,92,246,.1); animation: spin 30s linear infinite; pointer-events: none; }
.ring::before { content: ""; position: absolute; inset: 36px; border-radius: 50%; border: 1px dashed rgba(240,171,252,.4); }
.ring::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--neon); top: -5px; left: 50%; box-shadow: 0 0 16px var(--neon); }
@media (max-width: 1023px) { .ring, .orb-2 { display: none; } .orb-1 { width: 240px; height: 240px; right: -100px; top: 60px; } }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-24px) } }
@keyframes spin { to { transform: rotate(360deg) } }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: #fff; }
.crumbs span { color: var(--dim); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--neon); margin-bottom: 12px; }
.hero h1 { font-size: 34px; max-width: 820px; }
@media (min-width: 640px) { .hero h1 { font-size: 44px; } }
@media (min-width: 1024px) { .hero h1 { font-size: 54px; } }
.lead { margin-top: 20px; font-size: 18px; color: #cbd5e1; max-width: 720px; }
@media (min-width: 640px) { .lead { font-size: 20px; } }
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.pills { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 760px; }
@media (min-width: 768px) { .pills { grid-template-columns: repeat(4, 1fr); } }
.pill { padding: 14px 16px; }
.pill dt { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pill dd { margin: 4px 0 0; font-family: 'Space Grotesk', 'Space Grotesk Fallback', sans-serif; font-size: 20px; font-weight: 700; color: #fff; }
.pill dd small { font-size: 13px; font-weight: 600; }
.c-neon { color: var(--neon); } .c-violet { color: #a78bfa; } .c-magenta { color: var(--magenta); } .c-lime { color: var(--lime); }

/* Article body */
.page { padding: 24px 0 80px; }
.layout { display: grid; gap: 32px; }
@media (min-width: 1024px) { .layout { grid-template-columns: 260px 1fr; align-items: start; } }
.toc { position: sticky; top: 100px; padding: 20px; display: none; }
@media (min-width: 1024px) { .toc { display: block; } }
.toc p { font-size: 12px; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); margin-bottom: 10px; }
.toc a { display: block; padding: 7px 0; font-size: 14px; color: #cbd5e1; border-left: 2px solid transparent; padding-left: 12px; margin-left: -12px; }
.toc a:hover, .toc a.active { color: #fff; border-color: var(--neon); }
.toc .toc-sub { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.06); }
.article { display: grid; gap: 20px; }
.section { padding: 28px; }
@media (min-width: 640px) { .section { padding: 36px; } }
.section h2 { font-size: 24px; margin-bottom: 14px; }
@media (min-width: 640px) { .section h2 { font-size: 28px; } }
.section h3 { font-size: 18px; margin: 18px 0 8px; }
.section p { color: #cbd5e1; margin-bottom: 14px; font-size: 16.5px; }
.section p:last-child { margin-bottom: 0; }
.section ul { margin: 0 0 14px; display: grid; gap: 8px; }
.section li { position: relative; padding-left: 22px; color: #cbd5e1; font-size: 16px; }
.section li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--neon), var(--violet)); }
.section strong { color: #fff; }
.section a { color: #67e8f9; border-bottom: 1px solid rgba(103,232,249,.3); }
.section a:hover { border-color: #67e8f9; }
.callout { padding: 18px 20px; border-left: 3px solid var(--neon); background: rgba(34,211,238,.06); border-radius: 12px; margin: 16px 0; color: #e2e8f0; font-size: 15.5px; }
.callout strong { color: #fff; }
table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.07); color: #cbd5e1; vertical-align: top; }
th { color: #fff; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }

/* FAQ */
details { border-radius: 16px; }
details + details { margin-top: 10px; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 600; color: #fff; font-size: 16.5px; }
summary::-webkit-details-marker { display: none; }
summary .chev { color: var(--neon); font-size: 22px; line-height: 1; transition: transform .3s; }
details[open] .chev { transform: rotate(45deg); }
details .answer { padding: 0 20px 20px; color: #cbd5e1; font-size: 15.5px; }

/* Related / CTA */
.related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.related a { padding: 18px; display: block; transition: transform .25s, border-color .25s; }
.related a:hover { transform: translateY(-3px); border-color: rgba(34,211,238,.5); }
.related a strong { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }
.related a span { color: var(--muted); font-size: 13px; }
.cta-box { padding: 32px; display: flex; flex-direction: column; gap: 18px; background: linear-gradient(120deg, rgba(34,211,238,.12), rgba(139,92,246,.12), rgba(240,171,252,.1)); }
@media (min-width: 768px) { .cta-box { flex-direction: row; align-items: center; justify-content: space-between; } }
.cta-box h2 { font-size: 24px; }
.cta-box p { color: #cbd5e1; margin-top: 6px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,.05); padding: 48px 0 32px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { font-size: 14px; margin-bottom: 10px; }
.site-footer li { margin-bottom: 6px; }
.site-footer a:hover { color: var(--neon); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.05); font-size: 12px; color: var(--dim); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Floating WhatsApp */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 30px rgba(37,211,102,.35); transition: transform .2s; }
.fab:hover { transform: scale(1.06); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .aurora, .orb, .ring { animation: none; } .reveal { opacity: 1; transform: none; transition: none; } }

/* EN | RU language switcher */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(148,163,184,.25); font-size: 13px; font-weight: 600; color: #cbd5e1; letter-spacing: .04em; white-space: nowrap; transition: border-color .2s, color .2s; }
.lang-switch:hover { border-color: rgba(34,211,238,.6); color: #fff; }
.lang-switch small { font-weight: 400; color: #64748b; }
.mobile-menu .lang-switch { justify-content: center; margin-top: 4px; }
