/* xtech.kz — static site styles. Brand colours are taken from the logo. */
:root {
    --navy-950: #05081a;
    --navy-900: #0a0f2b;
    --navy-800: #121a45;
    --navy: #222550;
    --blue: #3a71b7;
    --cyan: #47c1f1;
    --sky: #a0d8ef;
    --ink: #0e1330;
    --muted: #556084;
    --line: #e2e8f2;
    --bg: #ffffff;
    --bg-alt: #f3f6fb;
    --grad: linear-gradient(135deg, #a0d8ef 0%, #47c1f1 45%, #3a71b7 100%);
    --radius: 16px;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --topbar: 64px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--navy-950);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
main { background: var(--bg); }
img { max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
address { font-style: normal; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
section[id] { scroll-margin-top: var(--topbar); }

.eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}
.eyebrow-light { color: var(--sky); }
.eyebrow-plain { text-transform: none; letter-spacing: .06em; font-size: 15px; font-weight: 600; }

/* ---------- top bar ---------- */
.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: rgba(5, 8, 26, .35);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: background-color .35s, border-color .35s;
}
.topbar.is-scrolled { background: rgba(5, 8, 26, .86); border-bottom-color: rgba(160, 216, 239, .10); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: var(--topbar); }
.topbar-brand {
    display: flex; align-items: center; gap: 10px;
    color: #fff; text-decoration: none;
    font-weight: 800; letter-spacing: .02em; font-size: 18px;
}
.topbar-nav { display: flex; gap: 28px; }
.topbar-nav a { color: rgba(226, 236, 252, .78); text-decoration: none; font-size: 15px; transition: color .2s; }
.topbar-nav a:hover { color: #fff; }
.topbar-progress {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: var(--grad);
    transform-origin: 0 50%;
    transform: scaleX(0);
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--topbar) + 56px) 0 96px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(900px 560px at 50% 32%, #1a2a6e 0%, rgba(18, 26, 69, 0) 70%),
        linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
    position: absolute;
    inset: -80px 0 0 0;
    background-image:
        linear-gradient(rgba(160, 216, 239, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(160, 216, 239, .07) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 0%, transparent 75%);
    will-change: transform;
}
.orbs { position: absolute; inset: 0; will-change: transform; }
.orb { position: absolute; border-radius: 50%; animation: drift 18s ease-in-out infinite alternate; }
.orb-1 { width: 520px; height: 520px; left: -160px; top: 8%; background: radial-gradient(circle, rgba(58, 113, 183, .32), rgba(58, 113, 183, 0) 68%); }
.orb-2 { width: 460px; height: 460px; right: -140px; top: 30%; background: radial-gradient(circle, rgba(71, 193, 241, .22), rgba(71, 193, 241, 0) 68%); animation-duration: 22s; animation-delay: -6s; }
.orb-3 { width: 380px; height: 380px; left: 40%; bottom: -220px; background: radial-gradient(circle, rgba(160, 216, 239, .16), rgba(160, 216, 239, 0) 68%); animation-duration: 26s; animation-delay: -12s; }
@keyframes drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(40px, -30px, 0) scale(1.08); }
    100% { transform: translate3d(-30px, 20px, 0) scale(.96); }
}
.hero-inner { position: relative; }

/* The size is set explicitly, not from the image or aspect-ratio, and the entrance has no blur or 3D:
   with those Safari painted the logo small in the corner until the animation ended. */
.logo-stage {
    --logo-w: min(300px, 62vw);
    position: relative;
    width: var(--logo-w);
    height: calc(var(--logo-w) * .8583);
    margin: 0 auto 48px;
}
.logo-stage::before {
    content: "";
    position: absolute;
    inset: -55%;
    background: radial-gradient(circle,
        rgba(160, 216, 239, .62) 0%,
        rgba(71, 193, 241, .34) 24%,
        rgba(58, 113, 183, .16) 44%,
        rgba(58, 113, 183, 0) 66%);
    animation: glow 7s ease-in-out infinite;
}
.logo-stage::after {
    content: "";
    position: absolute;
    left: 8%; right: 8%; bottom: -16%;
    height: 14%;
    background: radial-gradient(ellipse at center, rgba(71, 193, 241, .5) 0%, rgba(71, 193, 241, 0) 70%);
    animation: shadow 7s ease-in-out infinite;
}
.logo-intro { position: relative; z-index: 1; width: 100%; height: 100%; animation: logo-in 1.2s var(--ease-out) both; }
.logo-tilt { width: 100%; height: 100%; }
.logo-tilt img {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 28px 36px rgba(0, 0, 0, .55));
    animation: float 7s ease-in-out infinite;
}
@keyframes logo-in {
    from { opacity: 0; transform: translateY(28px) scale(.9); }
    to { opacity: 1; transform: none; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes shadow { 0%, 100% { opacity: 1; transform: scaleX(1); } 50% { opacity: .7; transform: scaleX(.9); } }
@keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: .82; } }

.hero-copy { will-change: transform, opacity; }
.intro { animation: rise 1.1s var(--ease-out) both; }
.intro-1 { animation-delay: .35s; }
.intro-2 { animation-delay: .45s; }
.intro-3 { animation-delay: .6s; }
.intro-4 { animation-delay: .72s; }
.intro-5 { animation-delay: .84s; }
@keyframes rise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}

.wordmark {
    font-size: clamp(60px, 11vw, 120px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
    color: #fff;
}
.wordmark .wm-x {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-right: .02em;
}
.hero-lead {
    max-width: 700px;
    margin: 22px auto 0;
    font-size: clamp(17px, 2.1vw, 21px);
    color: rgba(220, 232, 250, .84);
}
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.hero-tags li {
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    color: var(--sky);
    background: rgba(160, 216, 239, .07);
    border: 1px solid rgba(160, 216, 239, .22);
}
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 26px;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 2px solid rgba(160, 216, 239, .45);
    border-radius: 14px;
    animation: rise 1s 1.3s var(--ease-out) both;
}
.scroll-hint span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--sky);
    animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 12px;
    border: 1px solid transparent;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s var(--ease-out), box-shadow .25s, background-color .2s, border-color .2s;
}
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.btn-primary { color: #06102e; background: var(--grad); box-shadow: 0 10px 30px rgba(71, 193, 241, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(71, 193, 241, .42); }
.btn-ghost { color: #fff; border-color: rgba(160, 216, 239, .35); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--sky); background: rgba(160, 216, 239, .08); transform: translateY(-2px); }

/* ---------- statement (scroll-lit words) ---------- */
.statement { position: relative; background: var(--navy-950); color: #fff; padding: 120px 0; }
.statement-sticky { position: relative; display: grid; place-items: center; overflow: hidden; }
.statement-text {
    position: relative;
    z-index: 1;
    width: min(980px, 100% - 40px);
    font-size: clamp(30px, 5.2vw, 64px);
    font-weight: 750;
    line-height: 1.16;
    letter-spacing: -.015em;
    text-align: center;
}
.statement-text em { font-style: normal; color: var(--sky); }
.js .statement { height: 300vh; padding: 0; }
/* with the scene the phrase moves to the lower part of the screen, the X and the links take the top */
.js .statement-sticky { place-items: end center; }
.js .statement-text { margin-bottom: max(56px, 9vh); font-size: clamp(26px, 3.6vw, 46px); line-height: 1.2; }
.js .statement-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; }
.statement-text .w { color: rgba(226, 236, 252, .14); transition: color .35s ease; text-shadow: 0 2px 28px rgba(5, 8, 26, .9); }
.statement-text .w.is-lit { color: #fff; }
.statement-text .w.accent.is-lit { text-shadow: none; }

/* scene behind the statement: built by site.js, --level (0..1) is how many links have reached the X */
.connect { display: none; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; --level: 0; }
.js .connect { display: block; }
.cx-halo { opacity: calc(.15 + var(--level) * .5); transition: opacity .5s; }
.cx-logo { opacity: calc(.12 + var(--level) * .55); transition: opacity .6s; }
.cx-face-l { fill: #0b1030; }
.cx-face-r { fill: #222550; }
.cx-done .cx-logo { opacity: 1; }
.cx-done .cx-halo { opacity: 1; animation: halo 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.cx-track { fill: none; stroke: rgba(160, 216, 239, .09); stroke-width: 1; stroke-dasharray: 2 6; }
.cx-link { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.k-gsm .cx-link { stroke: var(--sky); stroke-width: 1.4; }
.k-sip .cx-link { stroke-dasharray: 3 6; }
.k-api .cx-link { stroke-dasharray: 1 5; stroke-width: 2.4; }
.k-ai .cx-link { stroke: var(--sky); }
.k-trunk .cx-link { stroke-width: 2.6; stroke: var(--blue); }
.k-vpn .cx-link { stroke-dasharray: 10 5; }
.done.k-sip .cx-link { animation: march9 1s linear infinite; }
.done.k-api .cx-link { animation: march6 .7s linear infinite; }
.done.k-vpn .cx-link { animation: march15 1.4s linear infinite; }
@keyframes march9 { to { stroke-dashoffset: -18; } }
@keyframes march6 { to { stroke-dashoffset: -18; } }
@keyframes march15 { to { stroke-dashoffset: -30; } }

.cx-proto {
    fill: var(--sky);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-anchor: middle;
    paint-order: stroke;
    stroke: var(--navy-950);
    stroke-width: 5px;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity .5s;
}
.cx-item.on .cx-proto { opacity: .9; }
.cx-packet { fill: #fff; opacity: 0; }
.cx-item.done .cx-packet { opacity: .95; }

.cx-node { opacity: .3; transition: opacity .6s; }
.cx-node.on { opacity: 1; }
.cx-node-bg { fill: #0e1640; stroke: rgba(160, 216, 239, .3); stroke-width: 1.2; transition: stroke .6s; }
.cx-node.on .cx-node-bg { stroke: var(--cyan); }
.cx-person { fill: rgba(160, 216, 239, .6); }
.cx-node.on .cx-person { fill: var(--sky); }
.cx-badge { fill: var(--navy-800); stroke: var(--cyan); stroke-width: 1; }
.cx-glyph { fill: none; stroke: var(--sky); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cx-label { fill: rgba(220, 232, 250, .78); font-size: 14px; font-weight: 600; text-anchor: middle; }
.cx-ping { fill: none; stroke: var(--sky); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.cx-node.on .cx-ping { animation: ping 2.4s ease-out infinite; }
@keyframes ping { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }
.statement-text .w.accent.is-lit {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- sections ---------- */
.section { padding: 120px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 750; letter-spacing: -.015em; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section-lead { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* scroll reveal: hidden only when JS is running, so the page stays readable without it */
.js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 44px, 0) scale(.985);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-delay="1"] { transition-delay: .08s; }
.js [data-delay="2"] { transition-delay: .16s; }
.js [data-delay="3"] { transition-delay: .24s; }

/* about */
.about { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: center; }
.about-text h2 { margin-bottom: 24px; }
.about-text p + p { margin-top: 16px; }
.about-text p { color: #2b3456; }
.facts { margin: 0; display: grid; gap: 16px; }
.fact {
    padding: 22px 26px;
    border-radius: var(--radius);
    background: var(--bg-alt);
    border: 1px solid var(--line);
}
.fact dt {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--blue), var(--navy));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.fact dd { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.icon {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- services: one chapter per direction, the picture is in layers moving at their own speed ---------- */
.services { padding: 120px 0 56px; background: var(--bg); overflow: hidden; }
.services .section-head { margin-bottom: 24px; }
.svc { padding: 64px 0; }
.svc-inner {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 72px;
    align-items: center;
    min-height: min(80vh, 720px);
}
.svc:nth-of-type(even) .svc-text { order: 2; }
.svc-num { font-size: 14px; font-weight: 700; letter-spacing: .14em; color: #8a93b0; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.svc-num b { color: var(--blue); }
.svc-text h3 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 750; letter-spacing: -.015em; margin-bottom: 20px; }
.svc-lead { font-size: 18px; color: #2b3456; }
.svc-list { display: grid; gap: 12px; margin-top: 26px; }
.svc-list li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.55; color: #3a4366; }
.svc-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .72em;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
}
.svc .chips { margin-top: 26px; }

.svc-media { position: relative; margin: 0; aspect-ratio: 1000 / 747; }
.svc-media > * { will-change: transform; }
.svc-glow {
    position: absolute;
    inset: 2% 4%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(71, 193, 241, .2), rgba(160, 216, 239, .08) 55%, rgba(160, 216, 239, 0));
}
.svc-big {
    position: absolute;
    top: -16%;
    right: -4%;
    font-size: clamp(120px, 16vw, 220px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    color: transparent;
    -webkit-text-stroke: 2px rgba(58, 113, 183, .14);
    user-select: none;
}
.svc:nth-of-type(even) .svc-big { right: auto; left: -4%; }
.svc-img { position: relative; display: block; width: 100%; height: auto; }
.svc-float {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
    white-space: nowrap;
    color: var(--ink);
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(14, 19, 48, .08);
    box-shadow: 0 20px 44px -18px rgba(14, 19, 48, .4);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.f1 { top: 4%; left: -2%; }
.f2 { top: 44%; right: -4%; }
.f3 { bottom: 2%; left: 14%; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(71, 193, 241, .18); }
.dot-ok { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .16); }
.dot-rec { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .16); animation: blink 1.6s ease-in-out infinite; }
.dot-warn { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, .18); }
@keyframes blink { 50% { opacity: .35; } }

/* entrance: separate translate/scale properties, the parallax owns transform */
.js .svc-img { opacity: 0; scale: .94; transition: opacity 1s var(--ease-out), scale 1.3s var(--ease-out); }
.js .svc-float { opacity: 0; translate: 0 18px; transition: opacity .8s var(--ease-out), translate .8s var(--ease-out); }
.js .svc.is-in .svc-img { opacity: 1; scale: 1; }
.js .svc.is-in .svc-float { opacity: 1; translate: none; }
.js .svc.is-in .f1 { transition-delay: .35s; }
.js .svc.is-in .f2 { transition-delay: .55s; }
.js .svc.is-in .f3 { transition-delay: .75s; }

/* ---------- VKS ---------- */
.section-dark {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(700px 380px at 50% 0%, rgba(58, 113, 183, .35) 0%, rgba(58, 113, 183, 0) 70%),
        var(--navy-900);
}
.section-dark .section-lead { color: rgba(220, 232, 250, .72); }
.vks-glow {
    position: absolute;
    width: 900px; height: 900px;
    right: -300px; top: -300px;
    background: radial-gradient(circle, rgba(71, 193, 241, .14), rgba(71, 193, 241, 0) 65%);
    pointer-events: none;
}
.vks-inner { position: relative; display: grid; gap: 64px; }
.vks-text { max-width: 820px; }
.vks-text h2 { margin-bottom: 24px; }
.vks-text p { color: rgba(220, 232, 250, .82); }
.vks-text p + p { margin-top: 16px; }

.topology { display: flex; align-items: stretch; }
.node {
    flex: 0 0 auto;
    width: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 26px 18px 22px;
    border-radius: 18px;
    text-align: center;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(160, 216, 239, .18);
}
.node .icon { stroke: var(--sky); width: 34px; height: 34px; margin-bottom: 6px; }
.node b { font-size: 22px; letter-spacing: .04em; }
.node span { font-size: 14px; color: rgba(220, 232, 250, .7); line-height: 1.35; }
.node-core {
    background: linear-gradient(180deg, rgba(71, 193, 241, .14), rgba(58, 113, 183, .06));
    border-color: rgba(71, 193, 241, .5);
    animation: pulse 3.2s ease-in-out infinite;
}
.node-core + .link + .node-core { animation-delay: -1.6s; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(71, 193, 241, .0), 0 0 30px rgba(71, 193, 241, .12); }
    50% { box-shadow: 0 0 0 6px rgba(71, 193, 241, .08), 0 0 50px rgba(71, 193, 241, .28); }
}
.link {
    position: relative;
    flex: 1 1 auto;
    min-width: 40px;
    height: 2px;
    align-self: center;
    background: linear-gradient(90deg, rgba(71, 193, 241, .15), rgba(71, 193, 241, .6), rgba(71, 193, 241, .15));
}
.link i {
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
    animation: flow-x 2.6s linear infinite;
}
.link i + i { background: var(--sky); box-shadow: 0 0 12px var(--sky); animation-name: flow-x-back; animation-delay: -1.3s; }
.link:nth-of-type(4) i { animation-duration: 2.2s; }
@keyframes flow-x { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: 100%; opacity: 0; } }
@keyframes flow-x-back { from { left: 100%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: 0; opacity: 0; } }
@keyframes flow-y { from { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: 100%; opacity: 0; } }
@keyframes flow-y-back { from { top: 100%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: 0; opacity: 0; } }

/* ---------- products ---------- */
.showcases { display: grid; gap: 140px; }
.showcase { display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px; align-items: center; }
.showcase:nth-child(even) .showcase-text { order: 2; }
.product-id { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.product-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(14, 19, 48, .14);
    flex: none;
}
.product-logo-light { background: #fff; border: 1px solid var(--line); }
.product-logo-dark { padding: 9px; background: #0a0f2b; object-fit: contain; }
.product-id h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.01em; }
.product-tag {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.showcase-text > p { color: #3a4366; font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li {
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    color: var(--blue);
    background: rgba(58, 113, 183, .08);
    border: 1px solid rgba(58, 113, 183, .18);
}
.product-link { display: inline-block; margin-top: 26px; font-weight: 650; text-decoration: none; color: var(--blue); }
.product-link span { display: inline-block; transition: transform .25s var(--ease-out); }
.product-link:hover span { transform: translateX(5px); }

.showcase-media { margin: 0; perspective: 1600px; }
.window {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 50px 90px -30px rgba(14, 19, 48, .45), 0 0 0 1px rgba(14, 19, 48, .08);
    transform-origin: 50% 85%;
    will-change: transform, opacity;
}
.window-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 14px;
    background: #eef2f8;
    border-bottom: 1px solid #dde4ef;
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #66708a;
    background: #fff;
    border-radius: 6px;
    padding: 2px 14px;
    white-space: nowrap;
}
.window img { display: block; width: 100%; height: auto; }
.media-note { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- contacts ---------- */
.contacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(160, 216, 239, .16);
    transition: border-color .3s, background-color .3s, transform .5s var(--ease-out), opacity 1s var(--ease-out);
}
.contact:hover { border-color: rgba(160, 216, 239, .4); background: rgba(255, 255, 255, .06); }
.contact-label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.contact-value {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(226, 236, 252, .55);
    overflow-wrap: anywhere;
    min-height: 1.45em;
}
.contact-value.is-revealed { color: #fff; animation: rise .6s var(--ease-out) both; }
.contact-value a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(160, 216, 239, .45); }
.contact-value a:hover { border-bottom-color: var(--cyan); }
.contact-map { margin-top: auto; font-size: 15px; font-weight: 600; color: var(--sky); text-decoration: none; }
.contact-map:hover { color: #fff; }
.btn-reveal {
    align-self: flex-start;
    min-height: 40px;
    padding: 0 18px;
    margin-top: auto;
    font-size: 15px;
    color: #06102e;
    background: var(--grad);
}
.btn-reveal:hover { transform: translateY(-1px); }
.btn-reveal[hidden] { display: none; }
.noscript { margin-top: 24px; text-align: center; color: var(--sky); }

/* обратный звонок вместо адреса (23.11.2026, assets/js/callback.js) */
.cb { display: flex; flex-direction: column; flex: 1; }
.cb-step { display: flex; flex-direction: column; gap: 10px; flex: 1; animation: rise .5s var(--ease-out) both; }
.cb-step[hidden] { display: none; }
.cb-hint { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(226, 236, 252, .7); }
.cb-hint b { color: #fff; white-space: nowrap; }
.cb-input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(160, 216, 239, .28);
    background: rgba(6, 16, 46, .35);
    color: #fff;
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.cb-input::placeholder { color: rgba(226, 236, 252, .35); font-weight: 500; }
.cb-input:focus { outline: none; border-color: var(--cyan); background: rgba(6, 16, 46, .55); box-shadow: 0 0 0 4px rgba(71, 193, 241, .18); }
.cb-input.is-invalid { border-color: #ff8a8a; }
.cb-code { font-size: 22px; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.cb-code::placeholder { letter-spacing: .3em; }
.cb-error { margin: 0; font-size: 14px; line-height: 1.45; color: #ffb3b3; }
.cb-error:empty, .cb-status:empty { display: none; }
.cb-status { margin: 0; font-size: 14px; color: rgba(226, 236, 252, .7); }
.cb-status.is-ok { color: #7fe0a8; }
.cb-status.is-ok::before { content: "✓ "; font-weight: 700; }
.cb-submit { gap: 8px; }
.cb-spin { display: none; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: cb-spin .7s linear infinite; }
.cb-submit.is-busy { pointer-events: none; opacity: .8; }
.cb-submit.is-busy .cb-spin { display: inline-block; }
.cb-link { align-self: flex-start; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--sky); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cb-link:hover { color: #fff; }
.cb-link:disabled { color: rgba(226, 236, 252, .45); text-decoration: none; cursor: default; }
.cb-hint .cb-link { margin-left: 4px; }
.cb-legal { margin: 0; font-size: 12px; line-height: 1.5; color: rgba(226, 236, 252, .45); }
.cb-legal a { color: inherit; }
@keyframes cb-spin { to { transform: rotate(360deg); } }

/* ---------- footer ---------- */
.footer { background: var(--navy-950); color: rgba(220, 232, 250, .62); font-size: 15px; }
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 0;
    border-top: 1px solid rgba(160, 216, 239, .08);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: rgba(220, 232, 250, .72); text-decoration: none; }
.footer-nav a:hover { color: #fff; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; min-height: 100svh; }
.notfound .logo-stage { --logo-w: min(180px, 44vw); margin-bottom: 40px; }
.notfound-code { font-size: clamp(64px, 12vw, 120px); font-weight: 800; letter-spacing: .04em; line-height: 1; }
.notfound .hero-lead { margin-bottom: 36px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
    .svc-inner { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
    .svc:nth-of-type(even) .svc-text { order: 0; }
    .svc-media { width: min(640px, 100%); margin-inline: auto; }
    .contacts { grid-template-columns: repeat(2, 1fr); }
    .showcase { grid-template-columns: 1fr; gap: 36px; }
    .showcase:nth-child(even) .showcase-text { order: 0; }
    .showcases { gap: 110px; }
    .node { width: 150px; padding: 20px 12px 18px; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .topbar-nav { gap: 18px; }
    .topbar-nav a { font-size: 14px; }
    .hero { padding-bottom: 88px; }
    .logo-stage { margin-bottom: 40px; }
    .section { padding: 84px 0; }
    .about { grid-template-columns: 1fr; gap: 36px; }
    .facts { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .fact { padding: 16px 14px; }
    .fact dt { font-size: 24px; }
    .fact dd { font-size: 13px; }
    .services { padding-top: 84px; }
    .svc { padding: 48px 0; }
    .svc-lead { font-size: 17px; }
    .f1 { left: 0; }
    .f2 { right: 0; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-brand { flex-direction: column; gap: 8px; }

    .topology { flex-direction: column; align-items: center; }
    .node { width: min(320px, 100%); }
    .link {
        flex: none;
        width: 2px;
        height: 46px;
        min-width: 0;
        background: linear-gradient(180deg, rgba(71, 193, 241, .15), rgba(71, 193, 241, .6), rgba(71, 193, 241, .15));
    }
    .link i { left: 50%; top: 0; margin: -4px 0 0 -4px; animation-name: flow-y; }
    .link i + i { animation-name: flow-y-back; }
}
@media (max-width: 560px) {
    .nav-optional { display: none; }
    .contacts { grid-template-columns: 1fr; }
    .svc-float { font-size: 12px; padding: 8px 12px; gap: 8px; }
    .f3 { left: 4%; }
    .facts { grid-template-columns: 1fr; }
    .hero-cta .btn { width: 100%; }
    .window-bar span { display: none; }
    .showcases { gap: 90px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
    .js .statement { height: auto; padding: 120px 0; }
    .js .statement-sticky { position: static; height: auto; }
    .statement-text .w { color: #fff; }
    .js .svc-img, .js .svc-float { opacity: 1; scale: none; translate: none; }
    .link i { display: none; }
}
