/* ZX SHOCK demo — shared styles for /, /ru/ */
:root {
  --bg: #0b0c0e;
  --surface: #121417;
  --surface-2: #1a1d21;
  --line: #262a2f;
  --text: #f1f2f3;
  --muted: #9aa0a6;
  --red: #da251c;
  --red-hi: #ff4a3d;
  --steel: #c9ced4;
  --radius: 3px;
  --wrap: 1240px;
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 600 11.5px/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--red-hi); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h1, h2, h3 { line-height: 1.08; margin: 0; font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: clamp(30px, 4.2vw, 50px); margin: 16px 0 18px; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.lead { color: var(--muted); font-size: 18px; max-width: 660px; }
section { padding: 104px 0; }
.sec-head { margin-bottom: 52px; max-width: 760px; }

/* demo ribbon */
.demo-bar { background: #17191c; color: #b5b9be; font-size: 12px; text-align: center; padding: 6px 12px; letter-spacing: .04em; }
.demo-bar strong { color: var(--red-hi); font-weight: 600; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,12,14,.8); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand img { width: 136px; }
.menu { display: flex; gap: 28px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.menu a { text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #c9ccd0; padding: 6px 0; transition: color .2s; }
.menu a:hover { color: #fff; }
.nav-tools { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; gap: 2px; font: 600 12px/1 var(--mono); letter-spacing: .1em; }
.lang a { text-decoration: none; padding: 6px 8px; color: var(--muted); border-radius: var(--radius); }
.lang a[aria-current="true"] { color: var(--text); background: var(--surface-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: var(--radius); font: 600 13px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #ec3226; }
.btn-ghost { border-color: #3d4248; color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--red-hi); color: #fff; }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 12px; }
.menu-toggle { display: none; background: none; border: 1px solid #353a40; color: var(--text); width: 44px; height: 40px; border-radius: var(--radius); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 0 auto; position: relative; content: ""; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

/* hero */
.hero { padding: 0; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(1200px 700px at 78% 40%, #17191d 0%, var(--bg) 70%); }
.hero-grid { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 106px); min-height: calc(100svh - 106px); pointer-events: none; }
.hero-copy { padding: 96px 32px 96px 0; display: flex; flex-direction: column; justify-content: center; pointer-events: auto; }
.hero h1 { font-size: clamp(38px, 5.4vw, 74px); margin: 22px 0 24px; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--red-hi); }
.hero .lead { margin-bottom: 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-hint { margin-top: 40px; font: 500 11px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #6d737a; display: flex; align-items: center; gap: 10px; }
.hero-hint::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 0 4px rgba(255,74,61,.18); }
.hero-lab { position: absolute; inset: 0; z-index: 1; cursor: crosshair; touch-action: pan-y; }
.hero-lab canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(11,12,14,.92) 0%, rgba(11,12,14,.55) 34%, rgba(11,12,14,0) 52%); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 36px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(32px, 3.8vw, 48px); line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.stat b i { font-style: normal; color: var(--red-hi); }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: 13px; letter-spacing: .03em; }

/* products */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product { position: relative; background: #050506; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s; }
.product figure { margin: 0; aspect-ratio: 565 / 515; overflow: hidden; background: #000; }
.product img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s; }
.product:hover img { transform: scale(1.05); }
.product-body { padding: 20px 20px 22px; border-top: 1px solid var(--line); background: var(--surface); flex: 1; }
.code { font: 600 11px/1 var(--mono); color: var(--red-hi); letter-spacing: .14em; text-transform: uppercase; }
.product h3 { margin: 10px 0 10px; font-size: 18px; }
.product ul { margin: 0; padding-left: 16px; font-size: 13.5px; color: #c4c8cc; line-height: 1.55; }
.product li::marker { color: var(--red-hi); }
.product p { margin: 0; font-size: 13.5px; color: #c4c8cc; }
@media (hover: hover) { .products:hover .product:not(:hover) img { filter: grayscale(.8) brightness(.5); } }

/* rail */
.rail { background: var(--surface); position: relative; overflow: hidden; }
.rail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.rail-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.rail-media figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; }
.timeline { list-style: none; padding: 0; margin: 8px 0 0; border-left: 1px solid #353a40; }
.timeline li { position: relative; padding: 0 0 26px 28px; color: #c9ccd0; font-size: 15px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 2px solid var(--red-hi); }
.timeline b { display: block; font: 600 12px/1.4 var(--mono); letter-spacing: .14em; color: var(--red-hi); margin-bottom: 4px; }
.timeline strong { color: var(--text); }
.wins { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.win { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.win b { display: block; font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.win b i { font-style: normal; color: var(--red-hi); }
.win span { display: block; font-size: 13px; color: var(--muted); margin-top: 10px; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photos figure { margin: 0; }
.photos figure:first-child { grid-column: 1 / -1; }
.photos img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.photos figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li span { color: var(--muted); font: 500 11px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding-top: 2px; }

/* quality */
.quality { background: var(--surface); }
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.certs figure { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.certs img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #e9e6df; border-radius: 2px; }
.certs figcaption { font-size: 12.5px; color: #c4c8cc; margin-top: 10px; line-height: 1.45; }
.certs figcaption b { display: block; font: 600 11px/1.4 var(--mono); color: var(--red-hi); letter-spacing: .1em; margin-bottom: 3px; }
.note { font-size: 12.5px; color: var(--muted); margin-top: 22px; }

/* faq */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 300; color: var(--red-hi); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: #c4c8cc; margin: 0 0 20px; font-size: 15px; }

/* contact */
.contact { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; font: 500 11px/1.6 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list a { text-decoration: none; font-size: 17px; }
.contact-list a:hover { color: var(--red-hi); }
form.inquiry { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; background: var(--surface); border: 1px solid #30353b; color: var(--text); border-radius: var(--radius); padding: 12px 14px; font: 15px/1.4 var(--font); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red-hi); }
form.inquiry .btn { grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin: 0; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 13px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot img { width: 112px; }

/* responsive */
@media (max-width: 1080px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .certs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  section { padding: 76px 0; }
  .menu-toggle { display: inline-block; }
  .menu { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: #0d0e10; border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
  .menu.open { display: flex; }
  .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav { gap: 14px; }
  .nav-tools { margin-left: auto; }
  .nav-tools .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 48px 0 430px; }
  .hero-hint { display: none; }
  .hero::before { background: linear-gradient(180deg, rgba(11,12,14,.9) 0%, rgba(11,12,14,.6) 40%, rgba(11,12,14,0) 58%); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .rail-grid, .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-body { padding: 14px; }
  .product h3 { font-size: 15.5px; }
  .product ul, .product p { font-size: 12.5px; }
  .certs { grid-template-columns: 1fr 1fr; }
  .wins { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  form.inquiry { grid-template-columns: 1fr; padding: 22px; }
  .stat { padding: 24px 16px; }
  .lang a { padding: 6px 6px; }
  .hero h1 { font-size: 34px; margin: 18px 0 18px; }
  .hero .lead { font-size: 16px; margin-bottom: 26px; }
  .hero .btn-ghost { display: none; }
  .hero-copy { padding: 40px 0 400px; }
}

/* ===== Motion layer — active with html.motion (always set by site.js) ===== */
.stat b, .win b { font-variant-numeric: tabular-nums; }
@keyframes rise { from { opacity: 0; transform: translateY(.55em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

.motion .hero h1 .w { display: inline-block; opacity: 0; animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 65ms + 900ms); }
.motion .hero .eyebrow { animation: fadeUp .8s .7s both; }
.motion .hero .lead { animation: fadeUp .9s 1.5s both; }
.motion .hero .cta-row { animation: fadeUp .9s 1.7s both; }
.motion .hero-hint { animation: fadeUp .9s 2.1s both; }
.motion .hero-hint::before { animation: blink 2.4s ease-in-out infinite; }

/* scroll reveal */
.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion [data-count] { transition: text-shadow .6s; }
.motion [data-count].counted { text-shadow: 0 0 28px rgba(255,74,61,.35); }

/* marquee band */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-size: clamp(26px, 3.8vw, 50px); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px #50555b; transition: color .3s, -webkit-text-stroke-color .3s; white-space: nowrap; }
.marquee span:hover { color: var(--red-hi); -webkit-text-stroke-color: var(--red-hi); }
.marquee i { font-style: normal; color: var(--red-hi); font-size: 14px; }

/* tilt + glow cards (pointer devices) */
.motion .tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, opacity .8s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.motion .tilt.reveal:not(.in) { transform: perspective(900px) translateY(28px); }
.motion .tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,74,61,.16), transparent 60%); z-index: 2; }
.motion .tilt:hover::after { opacity: 1; }
.motion .tilt:hover { border-color: rgba(255,74,61,.5); }
.certs figure, .win { position: relative; }

/* buttons: subtle magnetic pull */
.motion .btn { translate: var(--bx, 0px) var(--by, 0px); transition: background .2s, color .2s, border-color .2s, translate .25s cubic-bezier(.2,.7,.2,1); }

/* nav underline grows from center */
.menu a { position: relative; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red-hi); transform: scaleX(0); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.menu a:hover::after { transform: scaleX(1); }

/* header shrink + scroll progress */
.motion .site-header { transition: background .3s, box-shadow .3s; }
.motion .site-header .nav { transition: height .3s; }
.motion .site-header.scrolled { background: rgba(11,12,14,.94); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.motion .site-header.scrolled .nav { height: 60px; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--red-hi); transform: scaleX(0); transform-origin: 0 50%; z-index: 100; pointer-events: none; }

/* headings slide up out of a mask; images open like a curtain and settle from a slight zoom */
.motion .reveal h2 { clip-path: inset(0 0 100% 0); transform: translateY(40%); transition: clip-path 1s .12s cubic-bezier(.2,.7,.2,1), transform 1s .12s cubic-bezier(.2,.7,.2,1); }
.motion .reveal.in h2 { clip-path: inset(-10% -5% -20% -5%); transform: none; }
.motion .photos figure.reveal img, .motion .rail-media.reveal img { clip-path: inset(100% 0 0 0); scale: 1.15; transition: clip-path 1.3s cubic-bezier(.7,0,.2,1), scale 1.8s cubic-bezier(.2,.7,.2,1); }
.motion .photos figure.reveal.in img, .motion .rail-media.reveal.in img { clip-path: inset(0); scale: 1; }
.stat b { transition: color .3s; }
.stat:hover b { color: var(--red-hi); }

@media (max-width: 900px) {
  .motion .site-header.scrolled .nav { height: 72px; }
  .marquee { padding: 16px 0; }
}
