/* ============================================================
   FinTechStan — «Живая финансовая инфраструктура под жидким стеклом»
   Design system: dark canvas, liquid glass, living network.
   ============================================================ */

:root{
  /* Palette */
  --ink:#EEF2F9;          /* page background (cool light) */
  --deep:#E2E8F3;         /* secondary surface */
  --blue:#2F6BFF;         /* primary */
  --aqua:#0FA48F;         /* secondary / living data (deepened for light) */
  --violet:#7C4DEF;       /* accent */
  --coral:#E8552E;        /* rare signal */
  --text-hi:#0F1E3D;
  --text-mid:#46566F;
  --text-dim:#8190A8;
  --stroke:rgba(15,30,61,.12);
  --stroke-soft:rgba(15,30,61,.07);

  /* Glass */
  --glass-fill:linear-gradient(150deg, rgba(255,255,255,.52), rgba(255,255,255,.32));
  --glass-solid:rgba(255,255,255,.50);
  --glass-fill-2:rgba(255,255,255,.42);
  --glass-blur:26px;

  --r-card:22px;
  --r-lg:28px;
  --maxw:1240px;

  --font-display:"Space Grotesk", "Inter", system-ui, sans-serif;
  --font-text:"Inter", system-ui, sans-serif;
  --font-mono:"JetBrains Mono", ui-monospace, monospace;
}

*{margin:0;padding:0;box-sizing:border-box}

html{scroll-behavior:smooth;scrollbar-gutter:stable}

/* Uniform background everywhere: a single flat surface, no per-hero
   colored aurora glows or section tint bands. */
.hero-aurora{display:none!important}
#reviews{background:transparent!important}

body{
  font-family:var(--font-text);
  background:var(--ink);
  background-image:
    radial-gradient(60% 50% at 12% 8%, rgba(47,107,255,.10), transparent 60%),
    radial-gradient(55% 50% at 88% 18%, rgba(15,164,143,.09), transparent 60%),
    radial-gradient(60% 55% at 78% 92%, rgba(124,77,239,.08), transparent 62%),
    radial-gradient(50% 45% at 20% 80%, rgba(47,107,255,.06), transparent 60%);
  background-attachment:fixed;
  color:var(--text-hi);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
  line-height:1.5;
}

/* Film grain over the whole canvas so gradients don't band */
body::after{
  content:"";
  position:fixed;inset:0;
  pointer-events:none;z-index:9000;
  opacity:.022;
  background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMjAnIGhlaWdodD0nMTIwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nLjknIG51bU9jdGF2ZXM9JzInIHN0aXRjaFRpbGVzPSdzdGl0Y2gnLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0nMTAwJScgaGVpZ2h0PScxMDAlJyBmaWx0ZXI9J3VybCgjbiknLz48L3N2Zz4=");
}

.wrap{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 40px}

::selection{background:rgba(61,125,255,.35);color:#fff}

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

/* ---------- Typography helpers ---------- */
.eyebrow{
  font-family:var(--font-mono);
  font-size:12px;letter-spacing:.28em;text-transform:uppercase;
  color:var(--aqua);
}
h1,h2,h3{font-family:var(--font-display);font-weight:600;line-height:1.04;letter-spacing:-.02em}
.mono{font-family:var(--font-mono)}

/* consistent rounded icon strokes across the light theme */
.mega-ic svg,.node-ic svg,.why-card .wic svg,.cta-bullets .cb svg,.form-success .ok svg,.case-body svg{
  stroke-linecap:round;stroke-linejoin:round;
}

.section-head{max-width:760px;margin:0 auto 64px;text-align:center}
.section-head h2{font-size:clamp(34px,4.4vw,58px);margin:18px 0 16px}
.section-head p{color:var(--text-mid);font-size:18px;max-width:560px;margin:0 auto}

section{position:relative}
.block{padding:130px 0;position:relative}

/* ============================================================
   LIQUID GLASS — surfaces
   ============================================================ */
.glass{
  position:relative;
  background:var(--glass-fill);
  backdrop-filter:blur(var(--glass-blur)) saturate(165%) brightness(1.03);
  -webkit-backdrop-filter:blur(var(--glass-blur)) saturate(165%) brightness(1.03);
  border:1px solid rgba(255,255,255,.6);
  border-radius:var(--r-card);
  box-shadow:
    0 24px 52px -28px rgba(15,30,61,.28),
    0 2px 8px -5px rgba(15,30,61,.10),
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 -10px 26px -18px rgba(15,30,61,.06),
    inset 0 0 0 1px rgba(255,255,255,.30);
  overflow:hidden;
}
/* frosted matte sheen: soft top-left light + faint top gloss */
.glass::before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:
    radial-gradient(130% 90% at 0% 0%, rgba(255,255,255,.28), rgba(255,255,255,0) 46%),
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0) 30%);
}

/* ============================================================
   LIQUID GLASS — buttons
   ============================================================ */
.btn{
  position:relative;
  display:inline-flex;align-items:center;gap:10px;
  font-family:var(--font-display);
  font-weight:500;font-size:16px;letter-spacing:.01em;
  padding:16px 30px;border-radius:999px;
  color:var(--text-hi);
  cursor:pointer;border:1px solid var(--stroke);
  background:var(--glass-fill);
  backdrop-filter:blur(18px) saturate(150%);
  -webkit-backdrop-filter:blur(18px) saturate(150%);
  box-shadow:
    0 8px 22px -12px rgba(15,30,61,.22),
    inset 0 1px 0 rgba(255,255,255,.6);
  overflow:hidden;
  transition:box-shadow .45s cubic-bezier(.2,.8,.2,1),
             border-color .45s, background .45s, transform .15s;
  isolation:isolate;
  will-change:transform;
  -webkit-tap-highlight-color:transparent;
}
.btn span{position:relative;z-index:2}
.btn{white-space:nowrap}
/* static refracting bevel */
.btn::before{
  content:"";position:absolute;inset:0;z-index:1;border-radius:inherit;pointer-events:none;
  background:radial-gradient(130% 90% at 8% 0%, rgba(255,255,255,.22), rgba(255,255,255,0) 45%);
}
/* running specular highlight (swept on hover) */
.btn::after{
  content:"";position:absolute;top:0;bottom:0;width:60%;z-index:1;pointer-events:none;
  left:-80%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.5),transparent);
  transform:skewX(-18deg);opacity:0;
  transition:opacity .3s;
}
.btn:hover{
  border-color:rgba(15,30,61,.2);
  background:rgba(255,255,255,.96);
  box-shadow:
    0 16px 34px -16px rgba(15,30,61,.26),
    inset 0 1px 0 rgba(255,255,255,.7),
    0 0 30px -8px rgba(47,107,255,.3);
}
/* dark theme: secondary button must NOT go near-white (text would vanish) */
html[data-theme="dark"] .btn:hover{
  border-color:rgba(125,160,255,.38);
  background:rgba(42,58,96,.6);
  color:var(--text-hi);
  box-shadow:
    0 16px 34px -16px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.12),
    0 0 30px -8px rgba(61,125,255,.45);
}
html[data-theme="dark"] .btn.primary:hover{background:linear-gradient(135deg, rgba(61,125,255,.95), rgba(139,92,246,.95))}
/* dark theme: hero (always-dark) secondary button must never flash white on hover */
html[data-theme="dark"] .hero-actions .btn:not(.primary):hover{
  background:rgba(42,58,96,.72);
  color:var(--text-hi);
  border-color:rgba(125,160,255,.45);
}
/* soften the white specular sweep + corner highlight to blue in dark theme */
html[data-theme="dark"] .btn:not(.primary)::before{
  background:radial-gradient(130% 90% at 8% 0%, rgba(125,160,255,.16), rgba(255,255,255,0) 45%);
}
html[data-theme="dark"] .btn:not(.primary):hover::after{
  background:linear-gradient(100deg,transparent,rgba(125,160,255,.3),transparent);
}
.btn:hover::after{opacity:1;animation:sweep 1.1s cubic-bezier(.35,0,.2,1)}
@keyframes sweep{from{left:-80%}to{left:130%}}
.btn:active{transform:scale(.97)}
.btn:focus-visible{outline:none;box-shadow:
  0 0 0 3px var(--ink),
  0 0 0 5px rgba(61,125,255,.9),
  0 0 30px rgba(61,125,255,.5)}

/* press ripple injected by JS */
.btn .ripple{
  position:absolute;border-radius:50%;z-index:0;pointer-events:none;
  background:radial-gradient(circle,rgba(255,255,255,.5),transparent 70%);
  transform:translate(-50%,-50%) scale(0);
  animation:ripple .6s ease-out forwards;
}
@keyframes ripple{to{transform:translate(-50%,-50%) scale(1);opacity:0}}

/* Primary — accent gradient under glass + strong glow */
.btn.primary{
  color:#fff;
  border-color:rgba(125,160,255,.5);
  background:
    linear-gradient(135deg, rgba(61,125,255,.9), rgba(139,92,246,.9));
  box-shadow:
    0 16px 40px -12px rgba(61,125,255,.7),
    inset 0 1px 0 rgba(255,255,255,.4),
    0 0 0 1px rgba(255,255,255,.06);
}
.btn.primary:hover{
  box-shadow:
    0 22px 54px -14px rgba(61,125,255,.85),
    inset 0 1px 0 rgba(255,255,255,.5),
    0 0 50px -4px rgba(139,92,246,.6);
}
.btn.lg{padding:19px 38px;font-size:18px}
.btn.disabled,.btn:disabled{
  opacity:.4;filter:saturate(.4);cursor:not-allowed;box-shadow:none;
  border-color:var(--stroke-soft);background:rgba(255,255,255,.03);
}
/* Primary (blue) buttons must stay VISIBLE while disabled — keep a dimmed
   gradient with white text instead of a near-transparent white box (the form
   submit button was invisible until the fields/consent were filled in). */
.btn.primary.disabled,.btn.primary:disabled{
  opacity:1;filter:none;color:#fff;
  background:linear-gradient(135deg,rgba(61,125,255,.5),rgba(139,92,246,.5));
  border-color:rgba(125,160,255,.4);
}
.btn.disabled::before,.btn.disabled::after{display:none}

/* arrow that nudges on hover */
.btn .arr{display:inline-block;transition:transform .35s}
.btn:hover .arr{transform:translateX(4px)}

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:1000;
  transition:background .4s, border-color .4s, backdrop-filter .4s;
  border-bottom:1px solid transparent;
}
.site-header.scrolled{
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(20px) saturate(140%);
  -webkit-backdrop-filter:blur(20px) saturate(140%);
  border-bottom:1px solid var(--stroke-soft);
}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;height:78px}

.brand{display:flex;align-items:center;gap:12px;font-family:var(--font-display);
  font-weight:600;font-size:21px;letter-spacing:-.01em}
/* logo size locked — explicit box so it never reflows (theme swap, page) */
.brand-logo{height:48px;width:128px;display:block}
.site-footer .brand-logo{height:52px;width:139px}
.brand .core-dot{
  width:13px;height:13px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%, #fff, var(--aqua) 55%, var(--blue));
  box-shadow:0 0 14px var(--aqua),0 0 28px rgba(61,125,255,.6);
  animation:pulse-dot 2.6s ease-in-out infinite;
}
@keyframes pulse-dot{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.25);opacity:.7}}
.brand b{font-weight:600}
.brand .accent{color:var(--text-mid)}

.main-nav{display:flex;align-items:center;gap:6px;flex:none;margin-right:auto;margin-left:44px}
.main-nav > a, .nav-trigger{
  white-space:nowrap;
  font-size:15px;color:var(--text-mid);padding:10px 16px;border-radius:10px;
  background:none;border:none;cursor:pointer;font-family:var(--font-text);
  display:inline-flex;align-items:center;gap:7px;transition:color .25s,background .25s}
.main-nav > a:hover, .nav-trigger:hover{color:var(--text-hi);background:rgba(15,30,61,.05)}
.caret{width:15px;height:15px;transition:transform .3s}
.has-mega:hover .caret{transform:rotate(180deg)}

.header-cta{display:flex;align-items:center;gap:18px}
/* keep titlebar CTA a constant size across languages/pages */
.header-cta > .btn.primary{min-width:188px;justify-content:center}
.lang{flex:none}
/* remove products hover popup in titlebar */
.mega{display:none!important}
.has-mega .caret{display:none}
.lang{display:flex;gap:2px;font-family:var(--font-mono);font-size:12px}
.lang button{background:none;border:none;color:var(--text-dim);cursor:pointer;
  padding:5px 8px;border-radius:7px;transition:color .25s,background .25s;font-family:inherit}
.lang button.active{color:var(--text-hi);background:rgba(15,30,61,.07)}

/* Header language switcher → single dropdown button */
.lang.lang-dd{position:relative;display:inline-flex;gap:0}
.lang-dd .lang-trigger{display:inline-flex;align-items:center;gap:7px;
  background:rgba(47,107,255,.07);
  border:1px solid rgba(47,107,255,.35);color:var(--blue);cursor:pointer;
  font-family:var(--font-mono);font-size:12px;letter-spacing:.04em;
  padding:8px 11px;border-radius:11px;transition:background .2s,border-color .2s}
.lang-dd .lang-trigger:hover{background:rgba(47,107,255,.14);border-color:rgba(47,107,255,.55)}
.lang-dd .lang-trigger svg{width:15px;height:15px;stroke:currentColor;fill:none;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;opacity:.9}
.lang-dd .lang-trigger .caret{width:13px;height:13px;opacity:.6;transition:transform .25s}
.lang-dd.open .lang-trigger .caret{transform:rotate(180deg)}
.lang-dd .lang-trigger .lang-cur{font-weight:600}
.lang-dd .lang-pop{position:absolute;top:calc(100% + 9px);right:0;min-width:184px;padding:7px;
  background:#fff;border:1px solid var(--stroke);border-radius:15px;
  box-shadow:0 20px 48px -20px rgba(15,30,61,.45),0 2px 8px -4px rgba(15,30,61,.2);
  display:flex;flex-direction:column;gap:2px;z-index:60;
  opacity:0;visibility:hidden;transform:translateY(-7px) scale(.98);transform-origin:top right;
  transition:opacity .2s ease,transform .2s ease,visibility .2s}
.lang-dd.open .lang-pop{opacity:1;visibility:visible;transform:none}
.lang-dd .lang-opt{display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:9px 13px;border-radius:10px;font-family:var(--font-text);font-size:14px;
  color:var(--text-hi);text-decoration:none;cursor:pointer;transition:background .15s}
.lang-dd .lang-opt i{font-style:normal;font-family:var(--font-mono);font-size:11px;color:var(--text-dim)}
.lang-dd .lang-opt:hover{background:rgba(47,107,255,.09)}
.lang-dd .lang-opt.active{background:rgba(47,107,255,.11);color:var(--blue);font-weight:600;cursor:default}
.lang-dd .lang-opt.active i{color:var(--blue)}
html[data-theme="dark"] .lang-dd .lang-trigger{background:rgba(61,125,255,.12);border-color:rgba(61,125,255,.45)}
html[data-theme="dark"] .lang-dd .lang-trigger:hover{background:rgba(61,125,255,.2);border-color:rgba(61,125,255,.65)}
html[data-theme="dark"] .lang-dd .lang-pop{background:#0e1626;border-color:rgba(255,255,255,.12);
  box-shadow:0 22px 54px -22px rgba(0,0,0,.7)}
html[data-theme="dark"] .lang-dd .lang-opt:hover{background:rgba(61,125,255,.16)}
html[data-theme="dark"] .lang-dd .lang-opt.active{background:rgba(61,125,255,.2)}

/* Mega menu */
.has-mega{position:relative}
.mega{
  position:absolute;top:calc(100% + 14px);left:50%;transform:translateX(-50%) translateY(8px);
  width:720px;padding:14px;opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .3s, transform .3s;z-index:50;
}
.has-mega:hover .mega{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0);pointer-events:auto}
.mega-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}
.mega-item{display:flex;gap:13px;padding:13px 14px;border-radius:14px;transition:background .25s}
.mega-item:hover{background:rgba(255,255,255,.06)}
.mega-ic{flex:none;width:38px;height:38px;border-radius:11px;display:grid;place-items:center;
  background:rgba(61,125,255,.12);border:1px solid var(--stroke-soft)}
.mega-ic svg{width:19px;height:19px;stroke:var(--aqua);fill:none;stroke-width:1.7}
.mega-item .mt{font-family:var(--font-display);font-size:15px;font-weight:500;color:var(--text-hi);display:block}
.mega-item .md{font-size:12.5px;color:var(--text-dim);display:block;margin-top:2px}
.mega-foot{display:flex;justify-content:space-between;align-items:center;
  margin-top:8px;padding:14px;border-top:1px solid var(--stroke-soft)}
.mega-foot span{font-size:13px;color:var(--text-mid)}

/* ============================================================
   HERO
   ============================================================ */
.hero{min-height:100vh;display:flex;align-items:center;padding-top:78px;position:relative;overflow:hidden}
.hero-aurora{position:absolute;inset:0;z-index:0;pointer-events:none}
.hero-aurora span{position:absolute;border-radius:50%;filter:blur(90px);opacity:.42;
  animation:breathe 16s ease-in-out infinite}
.aur-1{width:620px;height:620px;left:-120px;top:-160px;
  background:radial-gradient(circle,rgba(61,125,255,.55),transparent 65%)}
.aur-2{width:560px;height:560px;right:-100px;top:40px;
  background:radial-gradient(circle,rgba(139,92,246,.45),transparent 65%);animation-delay:-5s}
.aur-3{width:500px;height:500px;left:40%;bottom:-200px;
  background:radial-gradient(circle,rgba(40,224,200,.32),transparent 65%);animation-delay:-9s}
@keyframes breathe{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(40px,30px) scale(1.12)}}
.hero .wrap{position:relative;z-index:2}

.hero-badge{display:inline-flex;align-items:center;gap:10px;padding:9px 16px 9px 12px;
  border-radius:999px;margin-bottom:30px}
.hero-badge .dot{width:7px;height:7px;border-radius:50%;background:var(--aqua);
  box-shadow:0 0 10px var(--aqua);animation:pulse-dot 2s infinite}
.hero-badge span{font-family:var(--font-mono);font-size:12px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--text-mid)}

.hero h1{font-size:clamp(46px,6.6vw,92px);max-width:16ch;margin-bottom:26px;letter-spacing:-.03em}
.hero h1 .grad{
  background:linear-gradient(110deg,var(--blue),var(--aqua) 55%,var(--violet));
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.hero-sub{font-size:clamp(18px,1.6vw,22px);color:var(--text-mid);max-width:48ch;margin-bottom:42px}
.hero-actions{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:64px}

.hero-metrics{display:flex;gap:0;align-items:stretch;max-width:620px}
.metric{flex:1;padding:0 30px;border-left:1px solid var(--stroke-soft)}
.metric:first-child{padding-left:0;border-left:none}
.metric .num{font-family:var(--font-mono);font-size:clamp(34px,3.4vw,46px);
  font-weight:500;color:var(--text-hi);line-height:1;letter-spacing:-.02em}
.metric .num .u{color:var(--aqua)}
.metric .lbl{font-size:13.5px;color:var(--text-dim);margin-top:10px}

.scroll-cue{position:absolute;bottom:34px;left:50%;transform:translateX(-50%);z-index:2;
  display:flex;flex-direction:column;align-items:center;gap:9px}
.scroll-cue .line{width:4px;height:56px;border-radius:999px;
  background:rgba(15,30,61,.12);position:relative;overflow:hidden;
  box-shadow:0 0 18px -2px rgba(40,224,200,.5)}
.scroll-cue .line::after{content:"";position:absolute;top:0;left:0;width:100%;height:22px;border-radius:999px;
  background:linear-gradient(var(--aqua),var(--blue));box-shadow:0 0 14px var(--aqua);animation:cue 1.8s ease-in-out infinite}
@keyframes cue{0%{transform:translateY(-22px)}100%{transform:translateY(56px)}}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust{padding:60px 0;border-top:1px solid var(--stroke-soft);border-bottom:1px solid var(--stroke-soft)}
.trust-label{text-align:center;color:var(--text-hi);font-size:clamp(26px,3vw,40px);margin-bottom:34px;
  font-family:var(--font-display);font-weight:700;letter-spacing:-.02em}
.marquee{cursor:grab}
.marquee.dragging{cursor:grabbing}
.marquee.dragging .marquee-track{animation-play-state:paused}
.marquee{position:relative;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.marquee::-webkit-scrollbar{display:none}
.marquee-track{display:flex;gap:18px;width:max-content;animation:scroll-x 46s linear infinite}
.marquee:hover .marquee-track{animation-play-state:paused}
@keyframes scroll-x{to{transform:translateX(-50%)}}
.chip{flex:none;display:flex;align-items:center;gap:11px;padding:15px 24px;border-radius:14px;
  font-family:var(--font-display);font-size:16px;color:var(--text-mid);white-space:nowrap;
  transition:color .3s,border-color .3s,box-shadow .3s,background .3s}
.chip .gem{width:9px;height:9px;border-radius:2px;transform:rotate(45deg);background:var(--blue);opacity:.7;transition:.3s}
.chip:hover{color:var(--text-hi);box-shadow:0 0 28px -6px rgba(47,107,255,.28);background:rgba(47,107,255,.07)}
.chip:hover .gem{background:var(--aqua);opacity:1;box-shadow:0 0 10px var(--aqua)}
.chip .typ{font-family:var(--font-mono);font-size:11px;color:var(--text-dim);letter-spacing:.04em}
/* trust tape scrolls continuously — drop per-chip backdrop blur (34 animated layers) so it stays smooth */
.chip.glass{backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(255,255,255,.62)}
/* clickable client chips (link to partner site) */
a.chip,a.chip-link{text-decoration:none;cursor:pointer}
.chip-go{font-family:var(--font-mono);font-size:13px;color:var(--text-dim);opacity:.55;
  margin-left:2px;transform:translateY(-1px);transition:opacity .3s,color .3s,transform .3s}
.chip-link:hover{border-color:rgba(47,107,255,.35)}
.chip-link:hover .chip-go{opacity:1;color:var(--blue);transform:translate(2px,-3px)}
html[data-theme="dark"] .chip-link:hover .chip-go{color:var(--aqua)}

/* ============================================================
   PRODUCTS CORE
   ============================================================ */
.products{padding-top:140px}
.config{display:flex;justify-content:center;gap:8px;margin:0 auto 40px;width:max-content;padding:7px;border-radius:999px}
.config button{font-family:var(--font-display);font-size:15px;color:var(--text-mid);
  background:none;border:none;cursor:pointer;padding:12px 26px;border-radius:999px;
  position:relative;transition:color .3s;white-space:nowrap}
.config button.active{color:#fff}
.config .pill{position:absolute;top:7px;height:calc(100% - 14px);border-radius:999px;
  background:linear-gradient(135deg,rgba(61,125,255,.85),rgba(139,92,246,.85));
  box-shadow:0 6px 24px -6px rgba(61,125,255,.7);transition:left .45s cubic-bezier(.3,.9,.3,1),width .45s cubic-bezier(.3,.9,.3,1);z-index:0}
.config button span{position:relative;z-index:1}

.core-stage{position:relative;width:100%;max-width:920px;height:720px;margin:10px auto 0}
#core-svg{position:absolute;inset:0;width:100%;height:100%;z-index:1;overflow:visible}
.core-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;
  width:188px;height:188px;border-radius:50%;display:grid;place-items:center;text-align:center;cursor:pointer}
.core-center .ring{position:absolute;inset:0;border-radius:50%;border:1px solid rgba(61,125,255,.4);
  animation:coreRing 3.4s ease-out infinite}
.core-center .ring:nth-child(2){animation-delay:1.1s}
.core-center .ring:nth-child(3){animation-delay:2.2s}
@keyframes coreRing{0%{transform:scale(.7);opacity:.8}100%{transform:scale(1.9);opacity:0}}
.core-orb{position:relative;width:158px;height:158px;border-radius:50%;display:grid;place-items:center;
  background:radial-gradient(circle at 38% 32%, rgba(255,255,255,.5), rgba(61,125,255,.85) 42%, rgba(139,92,246,.9));
  box-shadow:0 0 60px -6px rgba(61,125,255,.8), inset 0 2px 12px rgba(255,255,255,.5),0 0 0 1px rgba(255,255,255,.25);
  animation:corePulse 3.4s ease-in-out infinite}
@keyframes corePulse{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
.core-orb .cc-t{font-family:var(--font-display);font-weight:600;font-size:25px;color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.4)}
.core-orb .cc-s{font-family:var(--font-mono);font-size:10.5px;letter-spacing:.18em;color:rgba(255,255,255,.85);margin-top:3px}

.node{position:absolute;z-index:3;width:128px;transform:translate(-50%,-50%);cursor:pointer;
  transition:opacity .5s, filter .5s}
.node-inner{position:relative;padding:15px 14px;border-radius:18px;text-align:center;
  transition:transform .4s cubic-bezier(.3,.9,.3,1), box-shadow .4s, border-color .4s}
.node-ic{width:34px;height:34px;margin:0 auto 9px;display:grid;place-items:center;border-radius:10px;
  background:rgba(40,224,200,.1);border:1px solid var(--stroke-soft)}
.node-ic svg{width:19px;height:19px;stroke:var(--aqua);fill:none;stroke-width:1.7}
.node .nt{font-family:var(--font-display);font-size:13.5px;font-weight:500;color:var(--text-hi);line-height:1.2}
.node .nstat{font-family:var(--font-mono);font-size:10px;color:var(--text-dim);margin-top:5px}
.node .ndesc{font-size:11.5px;color:var(--text-mid);margin-top:9px;line-height:1.35;
  max-height:0;opacity:0;overflow:hidden;transition:max-height .45s,opacity .35s,margin .45s}
.node:hover{z-index:6}
.node:hover .node-inner{transform:scale(1.08);border-color:rgba(40,224,200,.5);
  box-shadow:0 0 40px -6px rgba(40,224,200,.5),inset 0 1px 0 rgba(255,255,255,.2)}
.node:hover .ndesc{max-height:60px;opacity:1;margin-top:9px}
.node:hover .node-ic{background:rgba(40,224,200,.2);box-shadow:0 0 16px -2px var(--aqua)}
.node.dim{opacity:.22;filter:saturate(.3) blur(.4px)}
.node.dim:hover{opacity:.5}

.products-foot{text-align:center;margin-top:44px}
.products-foot .btn .arr{font-size:1.5em;line-height:0;position:relative;top:.06em}

/* ============================================================
   WHY
   ============================================================ */
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.why-card{padding:34px 30px 38px;min-height:260px;display:flex;flex-direction:column;
  transition:transform .4s cubic-bezier(.2,.8,.2,1),box-shadow .4s;transform-style:preserve-3d}
.why-card .wic{width:52px;height:52px;border-radius:15px;display:grid;place-items:center;margin-bottom:auto;
  background:linear-gradient(135deg,rgba(61,125,255,.18),rgba(139,92,246,.12));border:1px solid var(--stroke-soft)}
.why-card .wic svg{width:26px;height:26px;stroke:var(--aqua);fill:none;stroke-width:1.6;transition:stroke .35s}
.why-card h3{font-size:22px;margin:22px 0 10px}
.why-card p{font-size:14.5px;color:var(--text-mid);line-height:1.55}
.why-card:hover .wic svg{stroke:var(--blue)}
.why-card .wnum{display:none}

/* ============================================================
   GEOGRAPHY MAP
   ============================================================ */
.geo{overflow:hidden}
.map-stage{position:relative;width:100%;max-width:1000px;height:560px;margin:0 auto}
#map-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:1}
.geo-legend{display:flex;justify-content:center;gap:28px;margin-top:30px;flex-wrap:wrap}
.geo-legend .li{display:flex;align-items:center;gap:9px;font-size:13.5px;color:var(--text-mid);font-family:var(--font-mono)}
.geo-legend .mk{width:11px;height:11px;border-radius:50%}
.mk.hq{background:var(--coral);box-shadow:0 0 12px var(--coral)}
.mk.rep{background:var(--blue);box-shadow:0 0 12px var(--blue)}
.mk.cli{background:var(--aqua);box-shadow:0 0 10px var(--aqua)}
/* country-coloured legend markers (match the map dots) */
.mk.tj{background:#0FA48F;box-shadow:0 0 12px rgba(15,164,143,.8)}
.mk.uz{background:#2F6BFF;box-shadow:0 0 12px rgba(47,107,255,.8)}
.mk.kg{background:#7C4DEF;box-shadow:0 0 12px rgba(124,77,239,.8)}

/* country breakdown cards */
.geo-countries{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:48px}
.geo-c{padding:30px 28px 32px}
.geo-c .gc-head{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.geo-c .gc-flag{width:14px;height:14px;border-radius:4px;background:var(--c);box-shadow:0 0 14px -2px var(--c)}
.geo-c h3{font-size:21px}
.geo-c .gc-sub{font-family:var(--font-mono);font-size:12px;color:var(--aqua);letter-spacing:.03em;margin-bottom:18px}
.geo-c .gc-cities{font-family:var(--font-mono);font-size:13.5px;color:var(--text-hi);margin-bottom:12px}
.geo-c .gc-clients{font-size:13.5px;color:var(--text-mid);line-height:1.55}
@media(max-width:880px){.geo-countries{grid-template-columns:1fr}}
.map-tip{position:absolute;z-index:5;pointer-events:none;padding:12px 16px;border-radius:13px;
  transform:translate(-50%,-130%);opacity:0;transition:opacity .25s;white-space:nowrap}
.map-tip .mt-c{font-family:var(--font-display);font-size:15px;font-weight:500}
.map-tip .mt-d{font-size:12px;color:var(--text-mid);margin-top:3px}

/* ============================================================
   NUMBERS
   ============================================================ */
.numbers{background:
  radial-gradient(120% 120% at 50% 0%, rgba(47,107,255,.06), transparent 62%)}
.num-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
.num-cell{padding:40px 24px 34px;text-align:center}
.num-cell .big{font-family:var(--font-mono);font-weight:500;font-size:clamp(46px,5.4vw,72px);
  line-height:1;letter-spacing:-.03em;
  background:linear-gradient(160deg,var(--text-hi),var(--aqua));
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.num-cell{padding:52px 24px 48px}
.num-cell .big{font-size:clamp(54px,6.2vw,88px)}
.num-cell .cap{font-size:15px;color:var(--text-mid);margin-top:18px;line-height:1.4}
.spark{display:none}
.num-note{text-align:center;color:var(--text-dim);font-size:13px;margin-top:36px;font-family:var(--font-mono)}

/* ============================================================
   CASES
   ============================================================ */
.cases-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.case-card{cursor:pointer;display:flex;flex-direction:column;transition:transform .4s,box-shadow .4s}
.case-card:hover{transform:translateY(-5px);box-shadow:0 30px 60px -24px rgba(0,0,0,.8),0 0 40px -10px rgba(61,125,255,.3)}
.case-cover{height:180px;position:relative;overflow:hidden;
  background:linear-gradient(135deg,#E7ECF6,#D7DFEE)}
.case-cover .cov-grad{position:absolute;inset:0;opacity:.55;z-index:0}
.case-cover .ctype{position:absolute;top:16px;left:18px;font-family:var(--font-mono);font-size:11px;
  letter-spacing:.08em;color:var(--text-hi);background:rgba(255,255,255,.82);padding:6px 11px;border-radius:8px;
  border:1px solid rgba(255,255,255,.5);backdrop-filter:blur(8px);z-index:3;
  box-shadow:0 4px 14px -6px rgba(15,30,61,.35)}
/* full-bleed photo/logo filling the top frame of the card */
.case-cover .cov-ph{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  object-position:center 18%;z-index:1;display:block;
  transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.case-card:hover .cov-ph{transform:scale(1.055)}
/* soft scrim over photos: lifts the badge, adds depth, unifies varied backgrounds */
.case-cover:not(.logo)::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(180deg,rgba(10,20,45,.24),transparent 34%,transparent 78%,rgba(10,20,45,.12))}
.case-cover.logo{background:#fff;display:flex;align-items:center;justify-content:center;padding:22px}
.case-cover.logo .cov-grad{display:none}
/* logos must fit fully inside the frame — center, never crop or overflow */
.case-cover.logo .cov-ph{position:static;inset:auto;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;padding:0}
.case-card:hover .case-cover.logo .cov-ph{transform:scale(1.04)}
html[data-theme="dark"] .case-cover.logo{background:#f3f6fc}
.case-body{padding:26px 26px 30px;flex:1;display:flex;flex-direction:column}
.case-body h3{font-size:21px;margin-bottom:6px}
.case-body .cprod{font-family:var(--font-mono);font-size:12px;color:var(--aqua);margin-bottom:16px}
.case-body p{font-size:14px;color:var(--text-mid);line-height:1.55}
.case-body .cresult{margin-top:auto;padding-top:18px}
.case-body .cresult .ph{display:inline-block;font-family:var(--font-mono);font-size:12px;
  color:var(--coral);border:1px dashed rgba(255,122,89,.4);padding:5px 10px;border-radius:8px;background:rgba(255,122,89,.05)}
.case-body .cquote{font-size:13.5px;color:var(--text-mid);font-style:italic;line-height:1.5;
  padding:14px 0 4px;border-top:1px solid var(--stroke-soft);margin-top:16px}
.case-body .cquote + .cresult{padding-top:14px}

/* case filter */
.case-filter{display:flex;justify-content:center;gap:6px;width:max-content;margin:0 auto 40px;padding:7px;position:relative}
.case-filter button{font-family:var(--font-display);font-size:15px;color:var(--text-mid);background:none;border:none;
  cursor:pointer;padding:11px 24px;border-radius:999px;position:relative;z-index:1;transition:color .3s;white-space:nowrap}
.case-filter button.active{color:#fff}
.case-filter button span{position:relative;z-index:1}
.cf-pill{position:absolute;top:7px;height:calc(100% - 14px);border-radius:999px;z-index:0;
  background:linear-gradient(135deg,rgba(61,125,255,.85),rgba(139,92,246,.85));box-shadow:0 6px 22px -6px rgba(61,125,255,.7);
  transition:left .42s cubic-bezier(.3,.9,.3,1),width .42s cubic-bezier(.3,.9,.3,1)}
.case-card.hide{display:none}
.cases-note{text-align:center;color:var(--text-dim);font-size:13px;margin-top:34px;font-family:var(--font-mono)}

/* ============================================================
   CTA + FORM
   ============================================================ */
.cta-wrap{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;
  padding:64px;border-radius:var(--r-lg);position:relative;overflow:hidden}
.cta-wrap .cta-glow,.ct-form-wrap .cta-glow{display:none}
.cta-left{position:relative;z-index:2}
.cta-left h2{font-size:clamp(34px,3.6vw,50px);margin:14px 0 18px}
.cta-left p{color:var(--text-mid);font-size:17px;max-width:38ch;margin-bottom:30px}
.cta-bullets{display:flex;flex-direction:column;gap:13px}
.cta-bullets .cb{display:flex;align-items:center;gap:12px;font-size:14.5px;color:var(--text-mid)}
.cta-bullets .cb svg{width:18px;height:18px;stroke:var(--aqua);fill:none;stroke-width:2;flex:none}

.form{position:relative;z-index:2;padding:34px;border-radius:var(--r-lg)}
.form .fld{margin-bottom:16px}
.form label{display:block;font-size:13px;color:var(--text-mid);margin-bottom:8px;font-family:var(--font-mono);letter-spacing:.03em}
.form input,.form select{width:100%;padding:14px 16px;border-radius:13px;
  background:rgba(15,30,61,.035);border:1px solid var(--stroke);color:var(--text-hi);
  font-family:var(--font-text);font-size:15px;transition:border-color .3s,box-shadow .3s,background .3s}
.form input::placeholder{color:var(--text-dim)}
.form input:focus,.form select:focus{outline:none;border-color:rgba(47,107,255,.7);
  background:#fff;box-shadow:0 0 0 4px rgba(47,107,255,.14)}
.form select{appearance:none;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%239FB0CE' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center}
.form select option{background:#fff;color:#0F1E3D}
/* dark theme: focus + the native <option> list must stay dark & readable
   (they don't inherit the light "#fff" recipe meant for the light theme) */
html[data-theme="dark"] .form input:focus,html[data-theme="dark"] .form select:focus{background:rgba(255,255,255,.06)}
html[data-theme="dark"] .form select option{background:var(--deep);color:var(--text-hi)}
.form .consent{display:flex;align-items:flex-start;gap:11px;margin:6px 0 22px;font-size:12.5px;color:var(--text-dim);line-height:1.5;text-align:left;font-family:var(--font-text);letter-spacing:normal;cursor:pointer}
.form .consent input[type="checkbox"]{-webkit-appearance:checkbox;appearance:auto;
  width:18px!important;min-width:18px!important;max-width:18px!important;height:18px;
  padding:0;margin:1px 0 0;border-radius:4px;background:none;border:none;flex:0 0 18px!important;accent-color:var(--blue);cursor:pointer}
.form .consent span{margin:0;flex:1 1 auto}
.form .btn{width:100%;justify-content:center}
.form-success{display:none;text-align:center;padding:30px 10px}
.form-success.show{display:block}
.form-success .ok{width:64px;height:64px;border-radius:50%;margin:0 auto 20px;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--blue),var(--violet));box-shadow:0 0 50px -6px rgba(61,125,255,.8);
  animation:flash .6s ease-out}
@keyframes flash{0%{transform:scale(.5);box-shadow:0 0 0 rgba(61,125,255,1)}100%{transform:scale(1)}}
.form-success .ok svg{width:30px;height:30px;stroke:#fff;fill:none;stroke-width:3}
.form-success h3{font-size:24px;margin-bottom:8px}
.form-success p{color:var(--text-mid);font-size:15px}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{position:relative;padding:90px 0 40px;border-top:1px solid var(--stroke-soft);overflow:hidden}
.footer-grid{position:relative;z-index:2;display:grid;grid-template-columns:1.6fr 1fr 1fr 1.4fr;gap:40px;margin-bottom:60px}
.footer-brand .brand{margin-bottom:18px}
.footer-brand p{color:var(--text-mid);font-size:14px;max-width:32ch;line-height:1.6}
.footer-col h5{font-family:var(--font-mono);font-size:12px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--text-dim);margin-bottom:18px}
.footer-col a{display:block;color:var(--text-mid);font-size:14px;padding:6px 0;transition:color .25s}
.footer-col a:hover{color:var(--text-hi)}
.footer-col .addr{color:var(--text-mid);font-size:13.5px;line-height:1.7}
.footer-col .addr b{color:var(--text-hi);font-weight:500}
.footer-bottom{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:center;
  padding-top:30px;border-top:1px solid var(--stroke-soft);flex-wrap:wrap;gap:16px}
.footer-bottom p{color:var(--text-dim);font-size:13px}
.footer-bottom .fb-right{display:flex;gap:20px;align-items:center}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal{opacity:0;transform:translateY(34px);filter:blur(6px);
  transition:opacity .9s cubic-bezier(.2,.8,.2,1),transform .9s cubic-bezier(.2,.8,.2,1),filter .9s}
.reveal.in{opacity:1;transform:none;filter:none}
.reveal[data-d="1"]{transition-delay:.08s}
.reveal[data-d="2"]{transition-delay:.16s}
.reveal[data-d="3"]{transition-delay:.24s}
.reveal[data-d="4"]{transition-delay:.32s}

/* ============================================================
   RESPONSIVE / MOBILE
   ============================================================ */
/* small-desktop / large-tablet: smooth the step-downs so the grid
   doesn't jump straight from full desktop to the 1024 layout */
@media (max-width:1180px){
  .why-grid{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:1100px){
  .main-nav{gap:2px}
  .main-nav > a,.nav-trigger{padding:8px 11px}
  .header-cta{gap:10px}
}
@media (max-width:1024px){
  .why-grid{grid-template-columns:repeat(2,1fr)}
  .num-grid{grid-template-columns:repeat(3,1fr)}
  .cases-grid{grid-template-columns:1fr}
  .cta-wrap{grid-template-columns:1fr;gap:36px;padding:40px}
  .footer-grid{grid-template-columns:1fr 1fr}
}

/* ---- hamburger + slide-in mobile menu (built by interactions.js) ---- */
.nav-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;
  width:44px;height:44px;border-radius:12px;border:1px solid var(--stroke);
  background:var(--glass-fill);backdrop-filter:blur(14px);cursor:pointer;padding:0;flex:none}
.nav-toggle span{display:block;width:20px;height:2px;margin:0 auto;border-radius:2px;background:var(--text-hi);
  transition:transform .3s, opacity .3s}
.nav-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle.open span:nth-child(2){opacity:0}
.nav-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.mobile-menu{position:fixed;inset:0;z-index:1300;pointer-events:none;visibility:hidden}
.mobile-menu .mm-backdrop{position:absolute;inset:0;background:rgba(4,7,14,.7);opacity:0;transition:opacity .35s}
.mobile-menu .mm-panel{position:absolute;top:0;right:0;bottom:0;width:min(86vw,360px);
  background:linear-gradient(180deg,#FFFFFF,#EEF2F9);border-left:1px solid var(--stroke);
  box-shadow:-30px 0 80px -20px rgba(0,0,0,.8);transform:translateX(100%);transition:transform .4s cubic-bezier(.3,.9,.3,1);
  display:flex;flex-direction:column;padding:24px 26px 32px;overflow-y:auto}
.mobile-menu.open{pointer-events:auto;visibility:visible}
.mobile-menu.open .mm-backdrop{opacity:1}
.mobile-menu.open .mm-panel{transform:none}
.mm-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}
.mm-top .brand-logo{height:44px;width:118px}
.mm-close{width:42px;height:42px;border-radius:11px;border:1px solid var(--stroke-soft);background:rgba(15,30,61,.05);
  color:var(--text-hi);font-size:22px;line-height:1;cursor:pointer;flex:none}
.mm-links{display:flex;flex-direction:column;gap:2px;margin-bottom:26px}
.mm-links a{font-family:var(--font-display);font-size:20px;color:var(--text-hi);padding:15px 4px;
  border-bottom:1px solid var(--stroke-soft);display:flex;align-items:center;justify-content:space-between;transition:padding-left .2s}
.mm-links a:hover,.mm-links a:active{color:var(--aqua);padding-left:10px}
.mm-links a .ar{color:var(--text-dim);font-size:15px}
.mm-menu-cta{margin-top:auto;display:flex;flex-direction:column;gap:16px}
.mm-menu-cta .btn{width:100%;justify-content:center}
.mm-lang{display:flex;gap:4px;justify-content:center}
.mm-lang button{font-family:var(--font-mono);font-size:13px;color:var(--text-dim);background:rgba(15,30,61,.04);
  border:1px solid var(--stroke-soft);padding:8px 16px;border-radius:9px;cursor:pointer}
.mm-lang button.active{color:var(--text-hi);background:rgba(61,125,255,.18);border-color:rgba(125,160,255,.4)}

@media (max-width:1024px){
  .main-nav{display:none}
  .header-cta .lang, .header-cta > .btn{display:none}
  .nav-toggle{display:flex}
  .site-header .wrap{height:68px}
}

@media (max-width:980px){
  .hero h1{font-size:clamp(36px,5.6vw,62px)}
  .hero-actions{margin-bottom:48px}
  .hero-metrics{max-width:none}
  .ah-inner,.mission,.testi-grid,.contacts-grid{grid-template-columns:1fr}
}

@media (max-width:880px){
  .block{padding:84px 0}
  .products{padding-top:90px}
  .section-head{margin-bottom:46px}
  .core-stage{height:560px;max-width:440px}
  .config{flex-wrap:wrap;width:100%;justify-content:center}
}

@media (max-width:680px){
  .wrap{padding:0 18px}
  .block{padding:54px 0}
  .products{padding-top:64px}
  .section-head{margin-bottom:34px}
  .section-head h2{font-size:clamp(26px,6.6vw,34px);margin:10px 0 12px}
  .section-head p{font-size:15px}
  /* #12г: real-numbers — 2 cols, last cell centered */
  .num-grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .num-cell:last-child{grid-column:1 / -1;max-width:calc(50% - 6px);margin-inline:auto}
  /* #12в: why — 2 per row, compact */
  .why-grid{grid-template-columns:1fr 1fr;gap:12px}
  .why-card{min-height:0;padding:20px 15px 22px}
  .why-card h3{font-size:16.5px}
  .why-card p{font-size:12.5px;line-height:1.5}
  .why-card .wic{width:40px;height:40px;border-radius:11px}
  .why-card .wnum{font-size:12px}
  /* #12б: country cards — 2 in a row, 3rd centered */
  .geo-countries{grid-template-columns:1fr 1fr;gap:12px;margin-top:30px}
  .geo-c{padding:18px 16px 20px}
  .geo-c h3{font-size:17px}
  .geo-c .gc-sub{font-size:11px;margin-bottom:12px}
  .geo-c .gc-cities{font-size:11.5px}
  .geo-c .gc-clients{font-size:11.5px}
  .geo-c:last-child{grid-column:1 / -1;max-width:calc(50% - 6px);margin-inline:auto}
  /* #12: only 2 cases on mobile */
  .cases-grid .case-card:nth-child(n+3){display:none}
  .footer-grid{grid-template-columns:1fr;gap:30px}
  .footer-bottom{flex-direction:column;align-items:flex-start;gap:14px}
  /* hero */
  .hero{min-height:auto;padding:108px 0 60px}
  /* #12а: bigger title — the accent of the screen */
  .hero h1{font-size:clamp(37px,9.8vw,52px);margin-bottom:16px;max-width:none;letter-spacing:-.02em;line-height:1.05}
  .hero-sub{font-size:15px;margin-bottom:26px}
  .hero-badge{margin-bottom:20px}
  .hero-badge span{font-size:11px}
  /* #12а: compact counters */
  .hero-metrics{flex-wrap:wrap;gap:12px 0;max-width:none;margin-top:2px}
  .hero-metrics .metric{flex:0 0 50%;padding:0 14px}
  .hero-metrics .num{font-size:23px}
  .hero-metrics .lbl{font-size:11px}
  /* #12а: demo + products in ONE row, smaller */
  .hero-actions{flex-direction:row;flex-wrap:nowrap;align-items:stretch;gap:10px;margin-bottom:28px}
  .hero-actions .btn{flex:1 1 0;width:auto;min-width:0;justify-content:center;font-size:13.5px;padding:13px 10px;white-space:nowrap}
  .hero-actions .btn.lg{font-size:13.5px;padding:13px 10px}
  .btn{font-size:15px;padding:14px 24px}
  .btn.lg{font-size:16px;padding:16px 26px}
  .scroll-cue{display:none}
  /* product core scaled down for phone */
  .core-stage{height:430px;max-width:300px;overflow:visible}
  .node{width:96px}
  .node-inner{padding:10px 8px}
  .node .nt{font-size:11.5px}
  .node .nstat{font-size:9px}
  .node .ndesc{display:none}
  .node-ic{width:28px;height:28px;margin-bottom:6px}
  .node-ic svg{width:16px;height:16px}
  .core-center{width:118px;height:118px}
  .core-orb{width:100px;height:100px}
  .core-orb .cc-t{font-size:18px}
  .core-orb .cc-s{font-size:9px}
  .config{gap:4px;padding:5px;width:100%}
  .config button{padding:9px 13px;font-size:13px}
  /* map — taller on mobile so the stretched city network breathes */
  .map-stage{height:440px}
  .geo-legend{gap:12px 18px}
  .geo-legend .li{font-size:12px}
  /* cta / form */
  .cta-wrap{padding:28px 22px;gap:26px}
  .cta-left h2{font-size:clamp(26px,6.4vw,34px)}
  .form{padding:22px}
}

@media (max-width:480px){
  .core-stage{height:380px;max-width:268px}
  .node{width:86px}
  .node .nt{font-size:11px}
  .core-center{width:104px;height:104px}
  .core-orb{width:88px;height:88px}
  .core-orb .cc-t{font-size:16px}
  .num-cell{padding:30px 16px 28px}
  .num-cell .big{font-size:clamp(40px,12vw,54px)}
  .num-cell .cap{font-size:13px}
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important;scroll-behavior:auto!important}
  .reveal{opacity:1;transform:none;filter:none}
  .marquee-track{animation:none}
}

/* ============================================================
   THEME TOGGLE BUTTON (injected into the header by interactions.js)
   ============================================================ */
.theme-toggle{
  flex:none;width:38px;height:38px;border-radius:11px;
  display:grid;place-items:center;cursor:pointer;
  background:none;border:1px solid var(--stroke-soft);color:var(--text-mid);
  transition:color .25s,background .25s,border-color .25s}
.theme-toggle:hover{color:var(--text-hi);background:rgba(15,30,61,.05)}
.theme-toggle svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8}

/* ============================================================
   DARK THEME — toggled via [data-theme="dark"] on <html>.
   Restores the original dark palette; the interactive "instrument"
   islands (sig-stage / demo-shell / mock-screen) stay dark in both.
   ============================================================ */
html[data-theme="dark"]{
  --ink:#060911; --deep:#0C1326;
  --blue:#3D7DFF; --aqua:#28E0C8; --violet:#8B5CF6; --coral:#FF7A59;
  --text-hi:#EAF1FF; --text-mid:#9FB0CE; --text-dim:#5F708F;
  --stroke:rgba(255,255,255,.10); --stroke-soft:rgba(255,255,255,.06);
  --glass-fill:rgba(255,255,255,.06); --glass-fill-2:rgba(255,255,255,.04);
}
html[data-theme="dark"] ::selection{background:rgba(61,125,255,.45);color:#fff}
html[data-theme="dark"] .site-header.scrolled{background:rgba(6,9,17,.6);border-bottom:1px solid var(--stroke-soft)}
/* Animation canvases must sit on a dark surface in dark theme (about mission
   orbit, news featured constellation, news card covers) — their base fills are
   light and would otherwise show a bright box behind the animation. */
html[data-theme="dark"] .mission-img{background:linear-gradient(135deg,#0c1733,#080d1c);border-color:var(--stroke-soft)}
html[data-theme="dark"] .nf-cover{background:linear-gradient(145deg,#0c1733,#080d1c)}
html[data-theme="dark"] .nc-cover{background:linear-gradient(135deg,#0e1830,#080d1c)}
html[data-theme="dark"] .main-nav > a:hover,
html[data-theme="dark"] .nav-trigger:hover{color:var(--text-hi);background:rgba(255,255,255,.06)}
html[data-theme="dark"] .lang button.active{color:var(--text-hi);background:rgba(255,255,255,.08)}
html[data-theme="dark"] .theme-toggle:hover{background:rgba(255,255,255,.06)}
html[data-theme="dark"] .chip.glass{background:rgba(255,255,255,.06)}
html[data-theme="dark"] .case-cover{background:linear-gradient(135deg,#0c1733,#0a0f1f)}
/* keep Liquid Glass subtle on dark theme (light recipe is for the light bg) */
html[data-theme="dark"] .glass{
  border:1px solid rgba(255,255,255,.10);
  box-shadow:
    0 24px 52px -28px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 0 0 1px rgba(255,255,255,.04);
}
html[data-theme="dark"] .glass::before{
  background:
    radial-gradient(130% 90% at 0% 0%, rgba(255,255,255,.07), rgba(255,255,255,0) 46%);
}

/* dark theme — mobile header + slide-in menu must stay readable */
html[data-theme="dark"] .mm-panel{--text-hi:#EAF1FF;--text-dim:#9FB0CE;--aqua:#28E0C8}
html[data-theme="dark"] .nav-toggle{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.14)}
html[data-theme="dark"] .nav-toggle span{background:#EAF1FF}
html[data-theme="dark"] .mobile-menu .mm-panel{
  background:linear-gradient(180deg,#0C1326,#070B16);
  border-left:1px solid rgba(255,255,255,.10);
  box-shadow:-30px 0 80px -20px rgba(0,0,0,.7);
}
html[data-theme="dark"] .mm-links a{color:#EAF1FF !important;border-bottom-color:rgba(255,255,255,.08)}
html[data-theme="dark"] .mm-links a .ar{color:#9FB0CE !important}
html[data-theme="dark"] .mm-links a:hover,
html[data-theme="dark"] .mm-links a:active{color:#28E0C8 !important}
html[data-theme="dark"] .mm-close{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.14);color:#EAF1FF}
html[data-theme="dark"] .mm-lang button{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.12);color:#9FB0CE}
html[data-theme="dark"] .mm-lang button.active{color:#EAF1FF;background:rgba(61,125,255,.3);border-color:rgba(125,160,255,.5)}

/* ============================================================
   MOBILE PRODUCT WEB → card grid
   The rotating orbit can't fit 9 nodes + the core on a phone, so on
   small screens we drop the rotation, hide the connector lines and
   the centre orb, and lay the products out as a clean 2-column grid.
   ============================================================ */
@media (max-width:880px){
  .core-stage.is-grid{
    position:relative;height:auto!important;max-width:560px!important;
    display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 auto;overflow:visible}
  .core-stage.is-grid #core-svg,
  .core-stage.is-grid .core-center{display:none}
  .core-stage.is-grid .node{
    position:static!important;transform:none!important;left:auto!important;top:auto!important;
    width:auto!important;z-index:auto}
  .core-stage.is-grid .node-inner{height:100%;padding:18px 16px}
  .core-stage.is-grid .node .nt{font-size:15px}
  .core-stage.is-grid .node .nstat{font-size:11px}
  /* no hover on touch — reveal the description inline */
  .core-stage.is-grid .node .ndesc{max-height:none;opacity:1;margin-top:8px;font-size:12.5px}
  .core-stage.is-grid .node.dim{display:none}
  .core-stage.is-grid .node:hover .node-inner{transform:none}

  /* configurator: the sliding pill breaks when buttons wrap — use a filled active state */
  .config{flex-wrap:wrap;width:100%;gap:6px;justify-content:center}
  .config .pill,#config-pill{display:none!important}
  .config button{border:1px solid var(--stroke-soft)}
  .config button.active{background:linear-gradient(135deg,rgba(61,125,255,.9),rgba(139,92,246,.9));color:#fff}
}
@media (max-width:420px){
  .core-stage.is-grid{grid-template-columns:1fr}
}

/* ============================================================
   RESOLUTION TARGETS
   Large / hi-res desktops widen the canvas and scale type so the
   content doesn't sit as a narrow island; short laptops compress
   the hero so it fits without scroll; small phones get tighter type.
   ============================================================ */
/* 1440×900, 1536×864 */
@media (min-width:1440px){ :root{--maxw:1320px} }
@media (min-width:1536px){ :root{--maxw:1400px} }
@media (min-width:1680px){ :root{--maxw:1480px} }
/* 1920×1080 / 1920×1200 */
@media (min-width:1920px){
  :root{--maxw:1560px}
  .hero h1{font-size:clamp(46px,6.2vw,110px)}
  .section-head h2{font-size:clamp(34px,3.3vw,60px)}
}
/* 2560×1440 (QHD) */
@media (min-width:2560px){
  :root{--maxw:2040px}
  .hero h1{font-size:clamp(60px,5.2vw,144px)}
  .hero-sub{font-size:clamp(20px,1.45vw,30px)}
  .section-head h2{font-size:clamp(40px,2.9vw,76px)}
}
/* 3840×2160 (4K UHD) */
@media (min-width:3840px){
  :root{--maxw:2920px}
  .hero h1{font-size:clamp(90px,5vw,210px)}
  .hero-sub{font-size:34px}
  .section-head h2{font-size:96px}
}

/* short landscape laptops: 1366×768, 1280×800, 1600×900, 1536×864 */
@media (min-width:1025px) and (max-height:880px){
  .hero{min-height:0;padding:120px 0 72px}
  .hero h1{font-size:clamp(40px,4.7vw,72px);margin-bottom:18px}
  .hero-sub{margin-bottom:30px}
  .hero-actions{margin-bottom:42px}
  .hero-badge{margin-bottom:20px}
  .hero-metrics .num{font-size:clamp(34px,3vw,46px)}
}
@media (min-width:1025px) and (max-height:740px){
  .hero{padding:104px 0 60px}
  .hero h1{font-size:clamp(36px,4.2vw,58px)}
  .hero-actions{margin-bottom:32px}
}

/* small phones: 360×640/780/800, 375×667/812, 390×844, 393×852 */
@media (max-width:400px){
  .wrap{padding:0 14px}
  .hero h1{font-size:clamp(34px,9.4vw,44px)}
  .hero-sub{font-size:14.5px}
  .trust-label{font-size:clamp(21px,6.2vw,27px)}
  .hero-metrics .num{font-size:22px}
  .num-cell .big{font-size:clamp(34px,11vw,46px)}
  .num-cell .cap{font-size:12px}
  .section-head h2{font-size:clamp(24px,6.6vw,31px)}
}
@media (max-width:360px){
  .hero h1{font-size:32px}
  .hero-metrics .metric{padding:0 12px}
  .hero-actions .btn{font-size:13px;padding:12px 8px}
  .btn,.btn.lg{font-size:15px;padding:14px 20px}
  .core-stage{max-width:248px;height:360px}
}
/* Измеримые результаты в карточке кейса (скрыто, пока не заполнено) */
.cmetrics{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 4px}
.cmetrics .cm{display:flex;flex-direction:column;gap:2px;padding:8px 12px;border-radius:12px;
  background:rgba(61,125,255,.08);border:1px solid var(--stroke-soft);min-width:78px}
.cmetrics .cmv{font-family:var(--font-display,var(--font-text));font-weight:600;font-size:17px;color:var(--text-hi);line-height:1.1}
.cmetrics .cml{font-size:11.5px;color:var(--text-mid);line-height:1.2}
/* ============================================================
   Preloader — theme-aware splash with the real logo
   (light theme → colour logo, dark theme → white logo)
   ============================================================ */
.fts-preloader{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:var(--ink);background-image:radial-gradient(58% 46% at 50% 46%,rgba(47,107,255,.12),transparent 72%),radial-gradient(40% 34% at 78% 74%,rgba(15,164,143,.07),transparent 70%);transition:opacity .55s ease,visibility .55s ease}
.fts-preloader.fp-done{opacity:0;visibility:hidden;pointer-events:none}
.fp-inner{position:relative;display:flex;align-items:center;justify-content:center}
.fp-inner::before{content:"";position:absolute;width:460px;height:460px;max-width:120vw;max-height:120vw;border-radius:50%;background:radial-gradient(circle,rgba(47,107,255,.16),rgba(15,164,143,.05) 46%,transparent 70%);animation:fp-glow 2.8s ease-in-out infinite;z-index:0;pointer-events:none}
.fp-logo{position:relative;z-index:1;width:320px;max-width:66vw;height:120px;background:url(logo-color.svg) center/contain no-repeat;opacity:0;transform:translateY(8px) scale(.97);animation:fp-in .85s cubic-bezier(.2,.7,.2,1) .05s forwards;filter:drop-shadow(0 12px 40px rgba(47,107,255,.22))}
html[data-theme="dark"] .fp-logo{background-image:url(logo.svg)}
@keyframes fp-in{to{opacity:1;transform:none}}
@keyframes fp-glow{0%,100%{opacity:.45;transform:scale(.9)}50%{opacity:.9;transform:scale(1.06)}}
@media (prefers-reduced-motion:reduce){.fp-logo{animation:none;opacity:1;transform:none}.fp-inner::before{animation:none;opacity:.6}}

/* ── Scroll spine (wavy side journey ribbon) ───────────── */
.scroll-spine{position:fixed;top:0;right:10px;bottom:0;width:72px;z-index:30;pointer-events:none;display:none}
.scroll-spine.on{display:block}
.scroll-spine .sp-svg{position:absolute;inset:0;overflow:visible}
.scroll-spine .sp-track{fill:none;stroke:var(--stroke);stroke-width:2;stroke-linecap:round}
.scroll-spine .sp-fill{fill:none;stroke:url(#spgrad);stroke-width:2.5;stroke-linecap:round;
  filter:drop-shadow(0 0 6px rgba(47,107,255,.55))}
.scroll-spine .sp-node{position:absolute;left:36px;top:16vh;transform:translate(-50%,-50%);
  width:40px;height:40px;border-radius:50%;display:grid;place-items:center;pointer-events:auto;cursor:pointer;
  background:var(--glass-solid,rgba(255,255,255,.6));backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border:1px solid var(--stroke);box-shadow:0 10px 26px -10px rgba(47,107,255,.55),inset 0 1px 0 rgba(255,255,255,.5);
  transition:box-shadow .25s}
.scroll-spine .sp-node:hover{box-shadow:0 12px 30px -8px rgba(47,107,255,.8),0 0 24px -4px rgba(124,77,239,.5)}
.scroll-spine .sp-node svg{width:17px;height:17px;fill:none;stroke:var(--blue);stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round}
/* the word rides on the line under the node; its glass pill masks the line
   so the text is never struck through */
.scroll-spine .sp-word{position:absolute;right:0;top:16vh;pointer-events:auto;
  display:inline-flex;align-items:center;padding:7px 14px;border-radius:999px;text-decoration:none;
  font-family:var(--font-mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;white-space:nowrap;
  color:var(--blue);background:var(--glass-solid,rgba(255,255,255,.78));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border:1px solid rgba(47,107,255,.3);box-shadow:0 8px 22px -12px rgba(15,30,61,.4);
  transition:border-color .25s,box-shadow .25s}
.scroll-spine .sp-word:hover{border-color:rgba(47,107,255,.6);box-shadow:0 10px 26px -10px rgba(47,107,255,.6)}
.scroll-spine .sp-word.swap span{display:inline-block;animation:spWord .35s ease}
@keyframes spWord{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
html[data-theme="dark"] .scroll-spine .sp-node,
html[data-theme="dark"] .scroll-spine .sp-word{background:rgba(14,22,38,.75);border-color:rgba(255,255,255,.14)}
html[data-theme="dark"] .scroll-spine .sp-word{color:var(--aqua)}
@media (prefers-reduced-motion:reduce){.scroll-spine .sp-word.swap span{animation:none}}
