/* DAJ demo — graphite + DAJ teal (#00617e) + tool orange */
:root {
  --ink: #0a1013; --ink2: #0f181c; --panel: #131e23; --line: rgba(255,255,255,.09);
  --text: #e8eef0; --muted: #93a3a9; --teal: #00617e; --teal-hi: #2bb3d6; --orange: #f07c1e;
  --paper: #eeeeee; --paper-ink: #13191c; --paper-muted: #5a676c; --paper-line: #d9dcdd;
  --wrap: 1240px; --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--teal-hi); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--orange); color: #111; }
.btn.primary:hover { background: #ff8f33; }
.btn.ghost { border-color: rgba(255,255,255,.25); color: var(--text); }
.btn.ghost:hover { border-color: var(--teal-hi); color: #fff; }
.btn svg { width: 16px; height: 16px; }

/* demo bar + header */
.demo-bar { position: relative; z-index: 60; background: #05080a; color: #8c9aa0; font-size: 12px; text-align: center; padding: 6px 12px; border-bottom: 1px solid var(--line); }
.demo-bar strong { color: var(--orange); font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10,16,19,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { height: 78px; display: flex; align-items: center; gap: 32px; }
.brand img { height: 30px; width: auto; }
.menu { display: flex; gap: 28px; margin: 0 0 0 auto; padding: 0; list-style: none; font-size: 14px; color: #c3cfd3; }
.menu a { position: relative; padding: 6px 0; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--orange); transform: scaleX(0); transition: transform .3s var(--ease); }
.menu a:hover { color: #fff; }
.menu a:hover::after { transform: scaleX(1); }
.lang { display: flex; gap: 2px; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.lang a { padding: 5px 9px; border-radius: 999px; color: var(--muted); }
.lang a[aria-current] { background: rgba(255,255,255,.08); color: #fff; }
.nav .btn { padding: 10px 18px; font-size: 13.5px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: #fff; border-radius: 8px; width: 42px; height: 38px; cursor: pointer; }

/* hero */
.hero { position: relative; min-height: calc(100vh - 106px); min-height: calc(100svh - 106px); display: flex; align-items: center; overflow: hidden; isolation: isolate; background: radial-gradient(1200px 700px at 78% 30%, rgba(0,97,126,.28), transparent 60%), var(--ink); cursor: crosshair; }
.hero-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(10,16,19,.92) 0%, rgba(10,16,19,.72) 34%, rgba(10,16,19,0) 62%), linear-gradient(0deg, rgba(10,16,19,.85), transparent 30%); }
.hero-inner { position: relative; z-index: 3; width: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 120px; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero h1 { font-size: clamp(40px, 5.6vw, 82px); font-weight: 750; margin: 22px 0 22px; max-width: 12.5em; }
.hero h1 em { font-style: normal; color: var(--orange); }
html[lang=ru] .hero h1 { font-size: clamp(34px, 4.3vw, 62px); max-width: 13em; }
.hero .lead { font-size: clamp(16px, 1.35vw, 19px); color: #b9c6ca; max-width: 34em; margin: 0 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-card { justify-self: end; width: min(380px, 100%); background: var(--paper); color: var(--paper-ink); border-radius: 22px; padding: 18px 18px 20px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06); pointer-events: auto; translate: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -14px); transition: translate .6s var(--ease); }
.hero-card img { width: 100%; aspect-ratio: 46 / 42; object-fit: cover; object-position: center 40%; border-radius: 14px; }
.hero-card .tag { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--paper-muted); }
.hero-card b { display: block; font-size: 17px; color: var(--paper-ink); letter-spacing: -.01em; }
.hud { position: absolute; z-index: 3; left: 0; right: 0; bottom: 26px; pointer-events: none; }
.hud .wrap { display: flex; align-items: flex-end; gap: 34px; font-variant-numeric: tabular-nums; }
.gauge { display: flex; align-items: center; gap: 14px; }
.gauge svg { width: 64px; height: 64px; overflow: visible; }
.gauge .track { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 5; }
.gauge .val { fill: none; stroke: var(--teal-hi); stroke-width: 5; stroke-linecap: round; transition: stroke .3s; }
.gauge.low .val { stroke: var(--orange); }
.hud-k { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hud-v { font-size: 26px; font-weight: 700; color: #fff; line-height: 1.1; }
.hud-v small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.hud-hint { margin-left: auto; font-size: 12px; color: var(--muted); letter-spacing: .08em; display: flex; align-items: center; gap: 8px; }
.hud-hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(240,124,30,.18); }
.cutin { font-size: 10px; letter-spacing: .16em; padding: 3px 7px; border-radius: 4px; border: 1px solid rgba(255,255,255,.15); color: var(--muted); margin-left: 8px; vertical-align: middle; transition: all .3s; }
.gauge.low .cutin { border-color: var(--orange); color: var(--orange); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(34px, 3.6vw, 52px); font-weight: 700; letter-spacing: -.03em; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.stat b i { font-style: normal; color: var(--orange); font-size: .55em; margin-left: 2px; }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; }

/* sections */
section { position: relative; }
.sec { padding: 120px 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(32px, 4vw, 56px); font-weight: 700; margin-top: 16px; }
.sec-head p { color: var(--muted); margin: 0; max-width: 36em; }
.light { background: var(--paper); color: var(--paper-ink); }
.light .sec-head p { color: var(--paper-muted); }
.light .eyebrow { color: var(--teal); }

/* product lines */
.lines { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.line-card { border: 1px solid var(--paper-line); border-radius: 18px; padding: 26px 28px; background: #f6f6f6; }
.line-card h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.line-card h3 span { font-size: 11px; letter-spacing: .14em; padding: 3px 8px; border-radius: 4px; background: var(--teal); color: #fff; }
.line-card.fm h3 span { background: var(--orange); color: #111; }
.line-card p { margin: 12px 0 0; color: var(--paper-muted); font-size: 14.5px; }

/* products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product { background: #fff; border: 1px solid var(--paper-line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.product figure { margin: 0; background: var(--paper); aspect-ratio: 1 / 1; overflow: hidden; }
.product figure img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease), filter .5s; }
.product:hover figure img { transform: scale(1.05); }
.product .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.product .model { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--teal); }
.product .model em { font-style: normal; color: var(--paper-muted); font-weight: 600; margin-left: 6px; }
.product h3 { font-size: 20px; margin: 8px 0 14px; }
.product dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13.5px; }
.product dt { color: var(--paper-muted); }
.product dd { margin: 0; font-weight: 600; text-align: right; }
.product p { font-size: 13.5px; color: var(--paper-muted); margin: 14px 0 0; }
@media (hover: hover) { .products:hover .product:not(:hover) { opacity: .55; } .products:hover .product:not(:hover) img { filter: grayscale(.8); } .product { transition: opacity .4s, transform .35s var(--ease), border-color .3s; } }

/* about */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.about-media { border-radius: 22px; overflow: hidden; position: relative; }
.about-media img { width: 100%; aspect-ratio: 601 / 400; object-fit: cover; }
.about-media figcaption { position: absolute; left: 16px; bottom: 16px; font-size: 12px; background: rgba(10,16,19,.7); padding: 6px 12px; border-radius: 999px; color: #cfd8db; }
.about-copy h2 { font-size: clamp(30px, 3.4vw, 46px); margin: 16px 0 20px; }
.about-copy p { color: #b3c0c4; margin: 0 0 16px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; padding: 0; list-style: none; }
.facts li { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 14px; color: #c8d3d6; background: rgba(255,255,255,.02); }
.facts b { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }

/* timeline */
.timeline { margin-top: 96px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; border-top: 1px solid var(--line); }
.timeline li { list-style: none; padding: 22px 18px 0 0; position: relative; font-size: 13.5px; color: #a9b6ba; }
.timeline li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); border: 2px solid var(--teal-hi); }
.timeline li:last-child::before { background: var(--orange); border-color: var(--orange); }
.timeline b { display: block; color: #fff; font-size: 15px; margin-bottom: 6px; }
.timeline { padding: 0; }

/* factory + honors */
.factory-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; }
.factory-grid figure { margin: 0; border-radius: 22px; overflow: hidden; }
.factory-grid figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.honors { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.honors li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--paper-line); align-items: start; }
.honors li:first-child { border-top: 1px solid var(--paper-line); }
.honors .n { font-size: 12px; font-weight: 700; color: var(--teal); letter-spacing: .1em; padding-top: 3px; }
.honors b { display: block; font-size: 16px; }
.honors span { font-size: 13.5px; color: var(--paper-muted); }

/* faq */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; align-items: start; }
.faq-grid details { border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; background: rgba(255,255,255,.02); transition: border-color .3s, background .3s; }
.faq-grid details[open] { border-color: rgba(43,179,214,.4); background: rgba(0,97,126,.08); }
.faq-grid summary { cursor: pointer; list-style: none; padding: 20px 28px 20px 0; font-weight: 600; position: relative; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-size: 22px; color: var(--teal-hi); transition: transform .3s; }
.faq-grid details[open] summary::after { transform: rotate(45deg); }
.faq-grid details p { margin: 0 0 20px; color: #b3c0c4; font-size: 15px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.contact-info h2 { font-size: clamp(32px, 4vw, 54px); margin: 16px 0 20px; }
.contact-info p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.contact-list li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 14px; }
.contact-list span { color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding-top: 3px; }
.contact-list a:hover { color: var(--orange); }
form.inquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 32px; }
form.inquiry label { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
form.inquiry .full { grid-column: 1 / -1; }
form.inquiry input, form.inquiry select, form.inquiry textarea { font: inherit; font-size: 15px; color: #fff; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 12px 14px; width: 100%; }
form.inquiry input:focus, form.inquiry select:focus, form.inquiry textarea:focus { outline: none; border-color: var(--teal-hi); }
form.inquiry select option { color: #111; }
form.inquiry .btn { justify-self: start; }
form.inquiry small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }

footer { border-top: 1px solid var(--line); padding: 40px 0 50px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
footer img { height: 24px; width: auto; opacity: .8; }

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; padding-bottom: 150px; }
  .hero-card { justify-self: start; width: min(320px, 100%); }
  .products { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(4, 1fr); row-gap: 30px; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; margin-left: auto; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(10,16,19,.98); border-bottom: 1px solid var(--line); padding: 8px 28px 18px; }
  .menu.open { display: flex; }
  .menu li a { display: block; padding: 12px 0; }
  .nav .btn { display: none; }
  .sec { padding: 84px 0; }
  .sec-head, .about-grid, .factory-grid, .contact-grid, .lines { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .nav { height: 64px; gap: 14px; }
  .brand img { height: 24px; }
  .hero-inner { padding-top: 40px; padding-bottom: 130px; gap: 28px; }
  .hero::before { background: linear-gradient(180deg, rgba(10,16,19,.85) 0%, rgba(10,16,19,.55) 55%, rgba(10,16,19,.9) 100%); }
  .hero-card { display: none; }
  .products { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 18px; }
  .hud .wrap { gap: 18px; }
  .hud-hint, .cutin { display: none; }
  .gauge svg { width: 52px; height: 52px; }
  .hud-v { font-size: 22px; }
  form.inquiry { grid-template-columns: 1fr; padding: 22px; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .facts { grid-template-columns: 1fr; }
}

/* ===== Motion layer — active with html.motion (always set by site.js) ===== */
@keyframes rise { from { opacity: 0; transform: translateY(.55em); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }

.motion .hero h1 .w { display: inline-block; opacity: 0; animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 65ms + 1500ms); }
.motion .hero .eyebrow { animation: fadeUp .8s 1.3s both; }
.motion .hero .lead { animation: fadeUp .9s 2.1s both; }
.motion .hero .cta-row { animation: fadeUp .9s 2.3s both; }
.motion .hero-card { animation: cardIn 1.2s 2.4s var(--ease) both; }
.motion .hud { animation: fadeUp .9s .4s both; }

.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .reveal h2 { clip-path: inset(0 0 100% 0); transform: translateY(40%); transition: clip-path 1s .12s var(--ease), transform 1s .12s var(--ease); }
.motion .reveal.in h2 { clip-path: inset(-10% -5% -20% -5%); transform: none; }
.motion .about-media.reveal img, .motion .factory-grid figure.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 var(--ease); }
.motion .about-media.reveal.in img, .motion .factory-grid figure.reveal.in img { clip-path: inset(0); scale: 1; }
.motion [data-count].counted { color: #fff; text-shadow: 0 0 30px rgba(240,124,30,.35); transition: text-shadow .6s; }

.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: 34px; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-size: clamp(26px, 3.6vw, 48px); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px #3d4b50; white-space: nowrap; transition: color .3s, -webkit-text-stroke-color .3s; }
.marquee span:hover { color: var(--orange); -webkit-text-stroke-color: var(--orange); }
.marquee i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-hi); flex: none; }

.motion .tilt { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); 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(340px circle at var(--gx, 50%) var(--gy, 50%), rgba(43,179,214,.16), transparent 60%); z-index: 2; }
.motion .tilt:hover::after { opacity: 1; }
.motion .product.tilt:hover { border-color: rgba(0,97,126,.45); }
.motion .btn { translate: var(--bx, 0px) var(--by, 0px); transition: background .2s, color .2s, border-color .2s, translate .25s var(--ease); }

.motion .site-header { transition: background .3s, box-shadow .3s; }
.motion .site-header .nav { transition: height .3s; }
.motion .site-header.scrolled { background: rgba(8,13,15,.92); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.motion .site-header.scrolled .nav { height: 62px; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--teal-hi), var(--orange)); transform: scaleX(0); transform-origin: 0 50%; z-index: 100; pointer-events: none; }
@media (max-width: 620px) { .motion .site-header.scrolled .nav { height: 58px; } }
