/* ALPHA PLAST — Premium Industrial. Токены бренда и движения. */
@property --beam { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  --red: #D52320;
  --red-deep: #A91815;
  --graphite: #303030;
  --white: #FFFFFF;
  --surface: #F4F4F4;
  --stage: #171717;          /* глубокий графит для тёмных сцен */
  --stage-2: #222222;
  --muted: #6B6B6B;
  --muted-dark: #A3A3A3;
  --line: rgba(48, 48, 48, .12);
  --line-dark: rgba(255, 255, 255, .12);

  /* Motion tokens — зеркало assets/js/motion.config.js */
  --dur-fast: .3s; --dur-base: .6s; --dur-slow: .9s;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --hh: 64px;
  --pad: clamp(20px, 5vw, 72px);
  --section: clamp(56px, 7.5vw, 120px);
  --radius: 28px;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--graphite); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.menu-open, html.menu-open body { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-inline: var(--pad); }
section { position: relative; overflow: clip; scroll-margin-top: var(--hh); }
.dark { background: var(--stage); color: #fff; }
.soft { background: var(--surface); }

/* Типографика */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.display { font-size: clamp(27px, 3.8vw, 60px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.h2 { font-size: clamp(23px, 3.1vw, 44px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
.h3 { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.2; letter-spacing: -.015em; font-weight: 700; }
.lead { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.dark .lead { color: var(--muted-dark); }
.accent { color: var(--red); }
.head { display: grid; gap: 16px; margin-bottom: clamp(25px, 3.4vw, 48px); }

/* Маска слов для Text Reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.wi { display: inline-block; will-change: transform; }

/* 10 Scroll Progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; z-index: 120; pointer-events: none; }
html:not(.fx-scrollProgress) .progress { display: none; }

/* 1 / 15 Занавес */
.curtain { position: fixed; inset: 0; z-index: 200; pointer-events: none; display: none; }
html.js .curtain { display: block; }
.curtain i { position: absolute; left: 0; right: 0; height: 50.5%; background: #0d0d0d; will-change: transform; }
.curtain i:first-child { top: 0; transform-origin: 50% 0; }
.curtain i:last-child { bottom: 0; transform-origin: 50% 100%; }
html.js .curtain i { animation: curtain-safe .6s 4s forwards; }   /* страховка, если JS не запустился */
.curtain.is-off { visibility: hidden; }
@keyframes curtain-safe { to { transform: scaleY(0); } }

/* Шапка */
.header { position: fixed; inset: 0 0 auto 0; height: var(--hh); z-index: 100; color: #fff; transition: background var(--dur-fast), box-shadow var(--dur-fast); }
.header::before { content: ""; position: absolute; inset: 0; background: rgba(18, 18, 18, .84); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--line-dark); opacity: 0; transition: opacity var(--dur-fast); }
.header.is-scrolled::before, html.menu-open .header::before { opacity: 1; }
.header__in { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: clamp(14px, 2vw, 34px); font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav a { position: relative; padding: 8px 0; opacity: .82; transition: opacity var(--dur-fast); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: 100% 50%; transition: transform var(--dur-base) var(--ease-out); }
.nav a:hover { opacity: 1; }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: 0 50%; }
.header__cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform var(--dur-fast) var(--ease-out), top var(--dur-fast) var(--ease-out); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
html.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
html.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }
.menu { display: none; }

/* 7 Liquid Button */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 999px; font-size: 16px; font-weight: 700; letter-spacing: -.005em; overflow: hidden; isolation: isolate; white-space: nowrap; transition: color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--red { background: var(--red); color: #fff; --fill: #fff; --on-fill: var(--graphite); }
.btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); --fill: #fff; --on-fill: var(--graphite); }
.btn--dark { background: var(--graphite); color: #fff; --fill: var(--red); --on-fill: #fff; }
.btn--white { background: #fff; color: var(--graphite); --fill: var(--graphite); --on-fill: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.fx-liquidButton .btn::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 100%; width: 240%; aspect-ratio: 1; border-radius: 41%; background: var(--fill); transform: translate(-50%, 4%) rotate(0deg); transition: transform 1.1s var(--ease-out); }
@media (hover: hover) {
  .fx-liquidButton .btn:hover::before { transform: translate(-50%, -58%) rotate(150deg); }
  .fx-liquidButton .btn:hover { color: var(--on-fill); }
  html:not(.fx-liquidButton) .btn:hover { filter: brightness(1.08); }
}
.fx-liquidButton .btn:active::before { transform: translate(-50%, -58%) rotate(150deg); transition-duration: .5s; }
.fx-liquidButton .btn:active { color: var(--on-fill); }

/* HERO */
.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hh) + 40px) 0 72px; background: radial-gradient(120% 90% at 78% 40%, #2a2a2a 0%, var(--stage) 55%, #0f0f0f 100%); }
.hero__in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(24px, 4vw, 72px); }
.hero__text { display: grid; gap: 28px; justify-items: start; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stage { position: relative; display: grid; place-items: center; aspect-ratio: 1; will-change: transform; }
.hero__bag { width: min(74%, 420px); filter: drop-shadow(0 50px 60px rgba(0, 0, 0, .55)); }
.hero__ring { position: absolute; inset: 4%; border-radius: 50%; border: 1px solid var(--line-dark); }
.hero__ring + .hero__ring { inset: 18%; border-style: dashed; opacity: .6; }
.hero__scroll { position: absolute; left: 50%; bottom: 24px; z-index: 2; display: grid; justify-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-dark); transform: translateX(-50%); }
.hero__scroll i { width: 1px; height: 36px; background: linear-gradient(#fff, transparent); transform-origin: 50% 0; }

/* 12 Aurora — мягкие градиентные пятна без filter: blur */
.aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .5; will-change: transform; }
.aurora span:nth-child(1) { right: -22vmax; top: -24vmax; background: radial-gradient(closest-side, rgba(213, 35, 32, .42), transparent); }
.aurora span:nth-child(2) { left: -30vmax; bottom: -34vmax; background: radial-gradient(closest-side, rgba(213, 35, 32, .2), transparent); }
.aurora span:nth-child(3) { right: 6vmax; bottom: -40vmax; background: radial-gradient(closest-side, rgba(255, 255, 255, .1), transparent); }
html:not(.fx-aurora) .aurora { display: none; }
.fx-aurora .aurora span:nth-child(1) { animation: aurora-a 18s var(--ease-in-out) infinite alternate; }
.fx-aurora .aurora span:nth-child(2) { animation: aurora-b 22s var(--ease-in-out) infinite alternate; }
.fx-aurora .aurora span:nth-child(3) { animation: aurora-a 26s var(--ease-in-out) infinite alternate-reverse; }
@keyframes aurora-a { to { transform: translate3d(-9vmax, 7vmax, 0) scale(1.15); } }
@keyframes aurora-b { to { transform: translate3d(11vmax, -6vmax, 0) scale(.9); } }

/* 17 Floating Objects */
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.floater { position: absolute; will-change: transform; }
.floater > * { display: block; }
.fx-floating .floater > * { animation: float 9s var(--ease-in-out) infinite alternate; }
.fx-floating .floater:nth-child(2n) > * { animation-duration: 12s; animation-direction: alternate-reverse; }
.fx-floating .floater:nth-child(3n) > * { animation-duration: 15s; }
@keyframes float { from { transform: translate3d(0, -14px, 0) rotate(-5deg); } to { transform: translate3d(0, 14px, 0) rotate(6deg); } }
.fx-floating .hero__bag { animation: float-bag 7s var(--ease-in-out) infinite alternate; }
@keyframes float-bag { from { transform: translate3d(0, -10px, 0) rotate(-1.5deg); } to { transform: translate3d(0, 10px, 0) rotate(1.5deg); } }
.granule { width: var(--s, 18px); height: var(--s, 18px); border-radius: 50%; background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .5), rgba(255, 255, 255, .08) 60%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.granule--red { background: radial-gradient(circle at 32% 30%, #ff6a63, var(--red) 65%); box-shadow: none; }
.chip { width: var(--s, 56px); height: var(--s, 56px); border-radius: 26%; border: 1px solid var(--line-dark); }

/* Пауза фоновых анимаций вне экрана */
[data-ambient]:not(.is-live), [data-ambient]:not(.is-live) *, [data-ambient]:not(.is-live)::before, [data-ambient]:not(.is-live)::after, [data-ambient]:not(.is-live) *::before, [data-ambient]:not(.is-live) *::after { animation-play-state: paused !important; }

/* О КОМПАНИИ */
.about { padding: var(--section) 0; }
.about__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.about__statement { font-size: clamp(20px, 2.5vw, 36px); line-height: 1.14; letter-spacing: -.028em; font-weight: 700; text-wrap: pretty; }
.about__statement .w { overflow: visible; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(36px, 5vw, 72px); border-top: 1px solid var(--line); }
.stat { padding-block: clamp(24px, 3vw, 40px) 0; padding-inline: 0 clamp(16px, 2vw, 32px); display: grid; gap: 10px; align-content: start; }
.stat + .stat { padding-inline-start: clamp(16px, 2vw, 32px); border-inline-start: 1px solid var(--line); }
.stat__num { font-size: clamp(34px, 4.3vw, 62px); line-height: 1; letter-spacing: -.045em; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: .5em; font-weight: 700; color: var(--red); margin-left: .04em; }
.stat p { font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 22ch; }
.flow { margin-top: clamp(36px, 5vw, 72px); color: var(--graphite); }
.flow svg { width: 100%; height: auto; overflow: visible; }
.draw { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.draw-label { font: 700 18px var(--font); letter-spacing: .12em; text-transform: uppercase; fill: currentColor; }

/* ПРОДУКЦИЯ — 9 Horizontal Scroll */
.products { padding: var(--section) 0; }
.products__head { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.products__viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.products__viewport::-webkit-scrollbar { display: none; }
.products__track { display: flex; gap: clamp(14px, 1.6vw, 24px); width: max-content; padding-inline: max(var(--pad), calc((100vw - 1360px) / 2 + var(--pad))); will-change: transform; }
.products.is-pinned { padding: 0; }
.products.is-pinned .products__pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--hh); }
.products.is-pinned .products__viewport { overflow: visible; }
.products.is-pinned .head { margin-bottom: clamp(20px, 3.5vh, 48px); }
.products.is-pinned .card { min-height: 0; height: clamp(330px, calc(100svh - var(--hh) - 300px), 500px); }
@media (max-height: 860px) { .products.is-pinned .products__head .lead { display: none; } .products.is-pinned .card__art svg { width: min(46%, 150px); } }
.products__bar { height: 2px; background: var(--line); margin-top: clamp(24px, 4vh, 48px); border-radius: 2px; overflow: hidden; }
.products__bar i { display: block; height: 100%; background: var(--red); transform: scaleX(.08); transform-origin: 0 50%; }
.card { position: relative; flex: none; width: clamp(272px, 80vw, 400px); min-height: clamp(400px, 56svh, 500px); padding: 28px; border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; gap: 14px; scroll-snap-align: center; overflow: hidden; isolation: isolate; box-shadow: 0 1px 0 rgba(48, 48, 48, .06); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.card__no { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.card__art { flex: 1; display: grid; place-items: center; min-height: 150px; color: var(--graphite); }
.card__art svg { width: min(62%, 190px); height: auto; transition: transform var(--dur-slow) var(--ease-out); }
.card p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tags li { font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; background: var(--surface); }
.card--cta { background: var(--graphite); color: #fff; justify-content: space-between; }
.card--cta p { color: var(--muted-dark); }
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(48, 48, 48, .35); }
  .card:hover .card__art svg { transform: scale(1.06) rotate(-2deg); }
}
/* 4 Spotlight */
.fx-spotlight [data-spot]::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(213, 35, 32, .16), transparent 62%); opacity: 0; transition: opacity var(--dur-base); pointer-events: none; }
@media (hover: hover) { .fx-spotlight [data-spot]:hover::before { opacity: 1; } }
.ill { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ill .r { fill: var(--red); stroke: none; }
.ill .rs { stroke: var(--red); }
.ill .f { fill: currentColor; stroke: none; opacity: .08; }

/* ПРОИЗВОДСТВО — 8 Sticky Scroll */
.prod { padding: var(--section) 0 calc(var(--section) * .6); background: linear-gradient(var(--stage), #101010); }
.prod__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: start; position: relative; z-index: 1; }
.prod__stage { position: sticky; top: calc(var(--hh) + 24px); height: calc(100svh - var(--hh) - 48px); max-height: 720px; border-radius: 36px; background: radial-gradient(90% 70% at 50% 35%, #333, var(--stage-2) 70%); box-shadow: inset 0 0 0 1px var(--line-dark); overflow: hidden; }
.prod__visual { position: absolute; inset: 0; display: grid; place-items: center; padding: 12%; opacity: 0; transform: scale(.92); transition: opacity .7s var(--ease-out), transform 1.1s var(--ease-out); color: #fff; }
.prod__visual svg { width: 100%; max-width: 420px; max-height: 100%; height: auto; }
.prod__visual.is-active { opacity: 1; transform: none; }
.prod__no { position: absolute; inset-inline-start: 28px; top: 22px; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--muted-dark); }
.prod__no::after { content: " / 04"; opacity: .5; }
.prod__step { min-height: 56svh; display: flex; flex-direction: column; justify-content: center; gap: 18px; transition: opacity var(--dur-base); }
.prod__step:first-child { min-height: 46svh; }
.sticky-on .prod__step:not(.is-active) { opacity: .28; }
.prod__step span { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--red); }
.prod__more { margin-top: 8px; }
.link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; padding-bottom: 6px; background: linear-gradient(var(--red), var(--red)) 0 100% / 100% 2px no-repeat; transition: gap var(--dur-fast) var(--ease-out); }
.link:hover { gap: 16px; }
.link svg { width: 18px; height: 18px; }

/* ПРЕИМУЩЕСТВА — 5 Border Beam */
.adv { padding: var(--section) 0; }
.adv__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.tile { position: relative; padding: clamp(24px, 2.6vw, 36px); min-height: 250px; border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 12px; justify-content: flex-end; isolation: isolate; overflow: hidden; }
.tile__ico { width: 44px; height: 44px; margin-bottom: auto; color: var(--red); }
.tile p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.fx-borderBeam .tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; background: conic-gradient(from var(--beam), transparent 0 76%, rgba(213, 35, 32, .25) 84%, var(--red) 96%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: beam 6s linear infinite; }
.fx-borderBeam .tile:nth-child(2n)::after { animation-delay: -2s; }
.fx-borderBeam .tile:nth-child(3n)::after { animation-delay: -4s; }
@keyframes beam { to { --beam: 360deg; } }

/* КЛИЕНТЫ — 14 Infinite Marquee */
.clients { padding: var(--section) 0; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee + .marquee { margin-top: clamp(12px, 1.6vw, 20px); }
.marquee__track { display: flex; width: max-content; gap: clamp(12px, 1.6vw, 20px); padding-right: clamp(12px, 1.6vw, 20px); }
.fx-marquee .marquee__track { animation: marquee 44s linear infinite; will-change: transform; }
.fx-marquee .marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 52s; }
html:not(.fx-marquee) .marquee, .reduced .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
@media (hover: hover) { .marquee:hover .marquee__track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
.marquee li { flex: none; display: grid; place-items: center; height: clamp(76px, 9vw, 116px); padding: 0 clamp(26px, 3.4vw, 52px); border-radius: 20px; background: #fff; font-size: clamp(19px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; color: var(--graphite); }

/* КОНТАКТЫ — 11 Animated Gradient */
.contact { padding: var(--section) 0; background: var(--stage); color: #fff; }
.contact__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.contact__bg::before { content: ""; position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; background: radial-gradient(38% 34% at 30% 36%, rgba(213, 35, 32, .55), transparent 70%), radial-gradient(34% 30% at 70% 62%, rgba(169, 24, 21, .5), transparent 70%), radial-gradient(30% 30% at 58% 28%, rgba(255, 255, 255, .07), transparent 70%); will-change: transform; }
.fx-animatedGradient .contact__bg::before { animation: gradient-drift 20s var(--ease-in-out) infinite alternate; }
@keyframes gradient-drift { from { transform: translate3d(-6%, -4%, 0) rotate(0deg); } to { transform: translate3d(6%, 5%, 0) rotate(24deg); } }
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.contact__main { display: grid; gap: 28px; justify-items: start; }
.contact__list { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.contact__list > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-dark); }
.contact__list dt { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); padding-top: 4px; }
.contact__list dd { display: grid; gap: 4px; font-size: clamp(15px, 1.3vw, 18px); font-weight: 600; }
.contact__list a { transition: color var(--dur-fast); }
.contact__list a:hover { color: #ff8a84; }

/* Подвал */
.footer { background: #0f0f0f; color: var(--muted-dark); padding: 40px 0; font-size: 14px; }
.footer__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer img { height: 40px; width: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a:hover { color: #fff; }

/* Страница «Производство» */
.phero { min-height: 66svh; display: flex; align-items: flex-end; padding: calc(var(--hh) + 80px) 0 clamp(56px, 8vw, 104px); background: radial-gradient(110% 90% at 80% 20%, #2c2c2c, var(--stage) 60%, #0f0f0f); }
.phero__in { position: relative; z-index: 2; display: grid; gap: 28px; justify-items: start; }
.block { padding: var(--section) 0; }
.mats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.mat { position: relative; padding: 24px; min-height: 170px; border-radius: 22px; background: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; isolation: isolate; overflow: hidden; }
.mat b { font-size: clamp(20px, 1.9vw, 26px); letter-spacing: -.03em; line-height: 1; }
.mat span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.duo .tile { min-height: 320px; background: var(--stage-2); color: #fff; }
.duo .tile p { color: var(--muted-dark); }
.scheme { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.scheme li { counter-increment: s; padding: 28px 20px 0 0; border-top: 2px solid var(--line); display: grid; gap: 8px; align-content: start; }
.scheme li::before { content: "0" counter(s); font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--red); }
.scheme p { font-size: 15px; color: var(--muted); line-height: 1.45; }
.cta { padding: var(--section) 0; text-align: center; }
.cta__in { position: relative; display: grid; gap: 28px; justify-items: center; }

/* ---------- Tablet ---------- */
@media (max-width: 1139px) { .nav { font-size: 13px; gap: 14px; } }
@media (max-width: 1023px) {
  .nav, .header__cta .btn { display: none; }
  .burger { display: block; }
  .menu { display: flex; position: fixed; inset: 0; z-index: 90; padding: calc(var(--hh) + 24px) var(--pad) 32px; flex-direction: column; justify-content: space-between; background: rgba(15, 15, 15, .96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #fff; opacity: 0; visibility: hidden; transition: opacity var(--dur-fast), visibility var(--dur-fast); overflow-y: auto; }
  html.menu-open .menu { opacity: 1; visibility: visible; }
  .menu nav { display: grid; }
  .menu nav a { padding: 12px 0; font-size: clamp(20px, 4.5vw, 28px); font-weight: 800; letter-spacing: -.03em; border-bottom: 1px solid var(--line-dark); transform: translateY(16px); opacity: 0; transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base); }
  html.menu-open .menu nav a { transform: none; opacity: 1; }
  .menu nav a:nth-child(2) { transition-delay: .04s; } .menu nav a:nth-child(3) { transition-delay: .08s; } .menu nav a:nth-child(4) { transition-delay: .12s; } .menu nav a:nth-child(5) { transition-delay: .16s; } .menu nav a:nth-child(6) { transition-delay: .2s; }
  .menu__foot { display: grid; gap: 12px; margin-top: 32px; }
  .hero__in { grid-template-columns: minmax(0, 1fr); }
  .hero__stage { order: -1; width: min(62vw, 360px); margin-inline: auto; }
  .about__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
  .adv__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scheme { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
  .scheme li:last-child { grid-column: 1 / -1; }
  .prod__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .prod__stage { top: var(--hh); height: 36svh; margin-inline: calc(var(--pad) * -1); border-radius: 0 0 28px 28px; z-index: 3; box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .7); }
  .prod__visual { padding: 6% 22%; }
  .prod__visual svg { max-height: 100%; width: auto; }
  .prod__step, .prod__step:first-child { min-height: 44svh; padding: 24px 0; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  :root { --hh: 56px; --radius: 22px; }
  body { font-size: 15px; }
  .hero { padding-bottom: 88px; }
  .hero__stage { width: min(56vw, 260px); }
  .hero__actions, .hero__actions .btn, .contact__main .btn, .menu__foot .btn { width: 100%; }
  .hero__scroll { display: none; }
  .aurora span { width: 110vmax; height: 110vmax; opacity: .42; }
  .floater:nth-child(n+5) { display: none; }
  .draw { stroke-width: 7; }
  .draw-label { font-size: 38px; letter-spacing: .06em; }
  .flow { margin-inline: calc(var(--pad) * -1); overflow: hidden; }
  .adv__grid, .duo { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 200px; }
  .mat { padding: 20px; min-height: 150px; }
  .mat b { font-size: 24px; }
  .duo .tile { min-height: 240px; }
  .contact__list > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .footer__in { flex-direction: column; align-items: flex-start; }
}

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .curtain { display: none !important; }
  .fx-borderBeam .tile::after { background: none; box-shadow: inset 0 0 0 1.5px rgba(213, 35, 32, .35); -webkit-mask: none; mask: none; padding: 0; }
}

/* ================= v2: языки, первый экран в 100vh, сеть отраслей, живая линия, логотипы ================= */
.hero { height: 100svh; min-height: 600px; padding: calc(var(--hh) + 16px) 0 76px; }
.hero__title { font-size: clamp(24px, min(2.7vw, 4.8vh), 42px); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; max-width: 18ch; text-wrap: balance; }
.hero__text { gap: clamp(16px, 2.6vh, 28px); }
.hero__stage { aspect-ratio: 1; width: min(100%, calc(100svh - var(--hh) - 120px)); justify-self: center; }

/* Сеть отраслей: заказы идут к пакету */
.net { width: 100%; height: 100%; overflow: visible; }
.net__ring { fill: none; stroke: var(--line-dark); stroke-dasharray: 2 7; }
.net__line { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 1.2; }
.net__dot { fill: none; stroke: #ff5148; stroke-width: 8; stroke-linecap: round; stroke-dasharray: .001 1; opacity: 0; }
.fx-network .net__dot { animation: net-flow 3.4s linear infinite; }
@keyframes net-flow { 0% { stroke-dashoffset: -1; opacity: 0; } 18% { opacity: 1; } 88% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.net__node circle { fill: #232323; stroke: rgba(255, 255, 255, .24); stroke-width: 1.2; }
.net__node path { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.net__node text { font: 600 13px var(--font); fill: var(--muted-dark); text-anchor: middle; }
.net__bag { transform-box: fill-box; transform-origin: 50% 50%; }
.fx-floating .net__bag { animation: float-bag 7s var(--ease-in-out) infinite alternate; }

/* Линия процесса: шарики бегут по линии, этапы подсвечиваются по очереди */
.flow-dots { fill: none; stroke: var(--graphite); stroke-width: 9; stroke-linecap: round; stroke-dasharray: .001 .125; opacity: 0; transition: opacity var(--dur-base); }
.fx-svgPath .is-run .flow-dots { opacity: 1; animation: flow-run 2.8s linear infinite; }
@keyframes flow-run { to { stroke-dashoffset: -.126; } }
.fx-svgPath .is-run .draw-label { animation: label-step 6s infinite; }
.fx-svgPath .is-run .draw-label:nth-of-type(2) { animation-delay: 2s; }
.fx-svgPath .is-run .draw-label:nth-of-type(3) { animation-delay: 4s; }
@keyframes label-step { 0%, 30% { fill: var(--red); } 36%, 100% { fill: currentColor; } }

/* Логотипы клиентов */
.marquee li img { height: clamp(36px, 4.6vw, 62px); width: auto; max-width: clamp(120px, 14vw, 190px); object-fit: contain; }

@media (max-width: 1023px) {
  .hero { height: auto; min-height: 100svh; padding-bottom: 40px; }
  .hero__stage { width: min(78vw, 46svh, 440px); }
  .hero__title { font-size: clamp(22px, 4vw, 32px); }
}
@media (max-width: 767px) {
  .hero { padding-top: calc(var(--hh) + 8px); padding-bottom: 28px; }
  .hero__in { gap: 12px; }
  .hero__stage { width: min(74vw, 36svh); }
  .hero__text { gap: 16px; }
  .net__node text { display: none; }
  .net__node circle { stroke-width: 2; }
  .net__dot { stroke-width: 12; }
  .flow-dots { stroke-width: 18; }
}

.marquee li:has(img) { grid-auto-flow: column; gap: 12px; }

/* Карта с фирменным маркером (Leaflet подгружается при подходе к секции) */
.map-wrap { position: relative; margin-top: clamp(40px, 6vw, 80px); display: grid; gap: 20px; justify-items: start; }
.map { position: relative; z-index: 0; width: 100%; height: clamp(300px, 42vw, 460px); border-radius: var(--radius); overflow: hidden; background: #1c1c1c; box-shadow: inset 0 0 0 1px var(--line-dark); }
.map.leaflet-container { font: inherit; background: #1c1c1c; }
.map .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.92) contrast(.88); }   /* тёмная карта без платных тайлов */
.map .leaflet-control-attribution { background: rgba(0, 0, 0, .55); color: var(--muted-dark); font-size: 10px; }
.map .leaflet-control-attribution a { color: #fff; }
.map .leaflet-bar a { background: #232323; color: #fff; border-color: var(--line-dark); }
.pin { cursor: pointer; }
.pin span { position: absolute; left: 4px; top: 0; width: 48px; height: 48px; display: grid; place-items: center; background: #fff; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.pin img { width: 26px; height: 26px; transform: rotate(45deg); }
.pin::after { content: ""; position: absolute; left: 18px; bottom: -6px; width: 20px; height: 20px; border-radius: 50%; background: rgba(213, 35, 32, .55); z-index: -1; animation: pin-pulse 2.2s ease-out infinite; }
@keyframes pin-pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }

/* ================= 3D-конфигуратор ================= */
.teaser { padding: var(--section) 0; }
.teaser__in { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cfg { min-height: 100svh; padding: calc(var(--hh) + 24px) 0 64px; background: radial-gradient(110% 90% at 30% 30%, #2a2a2a, var(--stage) 60%, #0f0f0f); }
.cfg__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.cfg__stage { position: sticky; top: calc(var(--hh) + 16px); height: calc(100svh - var(--hh) - 48px); min-height: 420px; border-radius: 36px; background: radial-gradient(80% 70% at 50% 40%, #3b3b3b, #1c1c1c 78%); box-shadow: inset 0 0 0 1px var(--line-dark); overflow: hidden; }
.cfg__canvas { position: absolute; inset: 0; cursor: grab; }
.cfg__canvas.is-grabbing { cursor: grabbing; }
.cfg__canvas canvas { display: block; width: 100%; height: 100%; }
.cfg__hint { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 13px; color: var(--muted-dark); pointer-events: none; }
.cfg__fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 32px; text-align: center; color: var(--muted-dark); }
.cfg__fallback[hidden] { display: none; }
.cfg__panel { display: grid; gap: 26px; padding: 8px 0 24px; }
.cfg__group { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 12px; justify-items: start; }
.cfg__group legend { padding: 0; margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-dark); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.opt { min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); font-size: 15px; font-weight: 600; transition: background var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast); }
.opt:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.opt[aria-pressed="true"] { background: #fff; color: var(--graphite); box-shadow: none; }
.opt[hidden] { display: none; }
.sw { position: relative; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28); cursor: pointer; transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast); }
.sw:hover { transform: scale(1.08); }
.sw[aria-pressed="true"] { outline: 2px solid var(--red); outline-offset: 3px; }
.sw--custom { background: conic-gradient(#f33, #fc3, #3c6, #3cf, #63f, #f3c, #f33); overflow: hidden; }
.sw--custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.cfg.is-fixedcolor [data-colors] { opacity: .3; pointer-events: none; }
.range { display: grid; grid-template-columns: 96px minmax(0, 1fr) 64px; align-items: center; gap: 12px; width: 100%; font-size: 15px; }
.range input { width: 100%; accent-color: var(--red); height: 28px; }
.range output { text-align: end; font-variant-numeric: tabular-nums; font-weight: 600; }
.cfg__upload { cursor: pointer; }
.cfg__small { font-size: 13px; line-height: 1.5; color: var(--muted-dark); max-width: 44ch; }
.cfg__small:empty { display: none; }
@media (max-width: 1023px) {
  .cfg__in { grid-template-columns: minmax(0, 1fr); }
  .cfg__stage { position: relative; top: auto; height: 52svh; min-height: 340px; border-radius: 28px; }
  .cfg__group .btn--red { width: 100%; white-space: normal; text-align: center; padding-block: 12px; }
}

/* 3D-история в «Производстве» (поверх SVG-иллюстраций, которые остаются запасным вариантом) */
.prod__3d { position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur-base); }
.prod__3d canvas { display: block; width: 100%; height: 100%; }
.has-3d .prod__3d { opacity: 1; }
.has-3d .prod__visual { opacity: 0 !important; }

/* ================= Каталог и калькулятор ================= */
.phero--sm { min-height: 0; padding: calc(var(--hh) + clamp(48px, 8vw, 96px)) 0 clamp(40px, 6vw, 72px); }
.phero--sm .display { font-size: clamp(25px, 3.4vw, 48px); }
.phero .eyebrow a:hover { color: #fff; }
.card--link { cursor: pointer; }
.card--link h2 a::after, .card--link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* вся карточка — ссылка */
.catgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.catgrid .card { width: auto; min-height: 380px; }
.cat-total { margin-top: 28px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.types { display: grid; gap: clamp(12px, 1.4vw, 20px); }
.type { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 48px); padding: clamp(22px, 2.6vw, 36px); border-radius: var(--radius); background: var(--surface); }
.type__info { display: grid; gap: 18px; align-content: start; }
.spec { display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec dt { color: var(--muted); }
.spec dd { font-weight: 600; }
.type__label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size { display: grid; gap: 2px; min-width: 112px; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.size b { font-size: 17px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.size span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.size:hover { box-shadow: inset 0 0 0 2px var(--red); transform: translateY(-2px); }
.cat-back { margin-top: 32px; }
.link--dark { color: var(--graphite); }

.calc__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.calc__row { display: flex; flex-wrap: wrap; gap: 12px; }
.calc__row[hidden], .field[hidden], .check[hidden], .calc__nums[hidden], .calc__msg[hidden] { display: none; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted-dark); }
.field input { width: 150px; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18); color: #fff; font: 600 17px var(--font); font-variant-numeric: tabular-nums; }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--red); }
.field--inline { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); }
.calc__result { position: sticky; top: calc(var(--hh) + 24px); display: grid; gap: 18px; justify-items: start; padding: clamp(22px, 2.6vw, 36px); border-radius: 32px; background: radial-gradient(90% 70% at 50% 20%, #343434, #1e1e1e 80%); box-shadow: inset 0 0 0 1px var(--line-dark); }
.calc__nums { display: grid; gap: 0; width: 100%; }
.calc__nums > div { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.calc__nums dt { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dark); }
.calc__nums dd { font-size: 17px; color: var(--muted-dark); }
.calc__nums b { font-size: clamp(25px, 2.6vw, 37px); line-height: 1.05; letter-spacing: -.03em; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.calc__msg { font-size: 17px; line-height: 1.5; }
.calc__result .btn { white-space: normal; text-align: center; padding-block: 12px; width: 100%; }
@media (max-width: 1023px) {
  .catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type, .calc__in { grid-template-columns: minmax(0, 1fr); }
  .calc__result { position: static; }
}
@media (max-width: 767px) {
  .catgrid { grid-template-columns: minmax(0, 1fr); }
  .catgrid .card { min-height: 0; }
  .spec > div { grid-template-columns: 96px minmax(0, 1fr); }
  .size { min-width: calc(50% - 4px); }
  .field input { width: 132px; }
}

/* ================= v3: крупнее отрасли и свечение, летящий пакет, пульс точек, нижняя панель ================= */
.net__node text { font-size: 15px; }
.net__core { fill: #232323; stroke: rgba(255, 255, 255, .24); stroke-width: 1.2; }
.net__halo { fill: rgba(255, 81, 72, .5); stroke: none; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
/* Тот же цикл и задержка, что у точки: вспышка в момент, когда точка доходит до отрасли */
.fx-network .net__halo { animation: net-halo 3.4s linear infinite; }
.fx-network .net__core { animation: net-core 3.4s linear infinite; }
@keyframes net-halo { 0%, 82% { opacity: 0; transform: scale(.9); } 88% { opacity: .85; transform: scale(1.05); } 100% { opacity: 0; transform: scale(1.75); } }
@keyframes net-core { 0%, 82% { stroke: rgba(255, 255, 255, .24); fill: #232323; } 90% { stroke: #ff5148; fill: #3a1f1e; } 100% { stroke: rgba(255, 255, 255, .24); fill: #232323; } }

main { position: relative; }
.flybag { position: absolute; left: 0; top: 0; width: 190px; z-index: 6; pointer-events: none; opacity: 0; will-change: transform; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .28)); }
.flybag svg { display: block; width: 100%; height: auto; overflow: visible; }
.flybag.is-on { opacity: 1; }
.hero.is-flying .net__bag { opacity: 0; }
.about__side { display: grid; gap: clamp(24px, 3vw, 40px); justify-items: start; }
.about__bagslot { width: clamp(150px, 15vw, 210px); aspect-ratio: 352 / 412; }
@media (max-width: 1023px) { .about__bagslot, .flybag { display: none; } }

/* Точки на линии процесса пульсируют */
.fx-svgPath .is-run .flow-dots { animation: flow-run 2.8s linear infinite, dot-pulse 1.1s ease-in-out infinite alternate; }
@keyframes dot-pulse { from { stroke-width: 7; } to { stroke-width: 15; } }
@media (max-width: 767px) { @keyframes dot-pulse { from { stroke-width: 14; } to { stroke-width: 28; } } }

/* Стеклянная нижняя панель (мобильные) */
.tabbar { display: none; }
@media (max-width: 1023px) {
  .tabbar { position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 95; display: flex; gap: 2px; width: min(calc(100% - 20px), 460px); padding: 7px; border-radius: 34px; transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(72, 72, 76, .46), rgba(24, 24, 26, .52));
    -webkit-backdrop-filter: blur(28px) saturate(190%); backdrop-filter: blur(28px) saturate(190%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), inset 0 -1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(255, 255, 255, .1), 0 16px 40px rgba(0, 0, 0, .34);
    transition: width .5s var(--ease-out), padding .5s var(--ease-out), opacity var(--dur-fast); }
  .tabbar a, .tabbar button { flex: 1; font-family: inherit; border: 0; background: none; cursor: pointer; min-width: 0; display: grid; justify-items: center; gap: 3px; padding: 8px 2px 7px; border-radius: 27px; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: -.01em; -webkit-tap-highlight-color: transparent; transition: background var(--dur-fast), padding .5s var(--ease-out), gap .5s var(--ease-out); }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar span { max-height: 15px; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; opacity: .92; transition: max-height .45s var(--ease-out), opacity .3s; }
  .tabbar a[aria-current], .tabbar a:active, .tabbar button[aria-expanded="true"] { background: rgba(255, 255, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
  .tabbar--compact { width: min(calc(100% - 96px), 290px); padding: 5px; }
  .tabbar--compact a, .tabbar--compact button { padding: 8px 2px; gap: 0; }
  .tabbar--compact span { max-height: 0; opacity: 0; }
  html.menu-open .tabbar { opacity: 0; pointer-events: none; }
  .footer { padding-bottom: calc(40px + 86px + env(safe-area-inset-bottom)); }
  .hero { padding-bottom: 104px; }
}
@media (max-width: 767px) { .hero { padding-bottom: 100px; } .hero__stage { width: min(64vw, 29svh); } }

/* ================= v4: меню «Связь», первый экран на мобильных, главная в меню ================= */
.sheet { display: none; }
@media (max-width: 1023px) {
  .sheet { position: fixed; inset-inline-end: max(10px, calc(50% - 230px)); bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 96; display: grid; gap: 4px; width: min(calc(100% - 20px), 300px); padding: 6px; border-radius: 26px;
    background: linear-gradient(180deg, rgba(72, 72, 76, .55), rgba(24, 24, 26, .62));
    -webkit-backdrop-filter: blur(28px) saturate(190%); backdrop-filter: blur(28px) saturate(190%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), inset 0 0 0 1px rgba(255, 255, 255, .1), 0 16px 40px rgba(0, 0, 0, .34);
    opacity: 0; visibility: hidden; transform: translateY(10px) scale(.96); transform-origin: 90% 100%;
    transition: opacity .2s, visibility .2s, transform .35s var(--ease-out); }
  .sheet.is-open { opacity: 1; visibility: visible; transform: none; }
  .sheet a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; color: #fff; -webkit-tap-highlight-color: transparent; }
  .sheet a:active { background: rgba(255, 255, 255, .16); }
  .sheet svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .sheet span { display: grid; gap: 1px; }
  .sheet b { font-size: 15px; font-weight: 700; }
  .sheet small { font-size: 12px; color: rgba(255, 255, 255, .6); }
}
@media (max-width: 767px) {
  /* Кнопки первого экрана в один ряд и выше нижней панели */
  .hero { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero__actions .btn { min-height: 48px; padding: 0 12px; font-size: 14px; gap: 8px; }
  .hero__actions .btn svg { width: 16px; height: 16px; }
  .hero__text { gap: 12px; }
  .hero .lead { font-size: 14.5px; }
  .hero .eyebrow { font-size: 11px; }
}
@media (max-width: 767px) and (max-height: 700px) {
  .hero__stage { width: min(58vw, 25svh); }
  .hero .lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
/* Без занавеса на телефонах и планшетах — страница видна сразу, даже до запуска скриптов */
@media (max-width: 1023px), (pointer: coarse) { .curtain { display: none !important; } }

/* ================= v5: видео-фон, фото цеха и команды ================= */
.band { position: relative; display: flex; align-items: flex-end; min-height: min(68svh, 620px); padding: clamp(56px, 7vw, 96px) 0; overflow: hidden; isolation: isolate; background: #111; }
.band__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.band__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 15, 15, .55) 0%, rgba(15, 15, 15, .2) 40%, rgba(15, 15, 15, .88) 100%), radial-gradient(80% 60% at 0% 100%, rgba(213, 35, 32, .28), transparent 70%); }
.band__in { display: grid; gap: 18px; justify-items: start; }
.band__in .h2 { max-width: 20ch; }
.band__in .lead { color: rgba(255, 255, 255, .78); }

.gallery { padding: var(--section) 0; background: var(--white); }
.gallery__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: repeat(2, clamp(180px, 20vw, 300px)); gap: clamp(10px, 1.2vw, 16px); max-width: 1360px; margin: 0 auto; padding-inline: var(--pad); list-style: none; }
.gallery__grid .shot:first-child { grid-row: span 2; }
.gallery__grid .shot:last-child { grid-column: span 2; }
.shot { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface); isolation: isolate; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.shot:hover img { transform: scale(1.04); }
.shot span, .shot figcaption { position: absolute; inset-inline-start: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(20, 20, 20, .45); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.team { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(40px, 5vw, 80px); }
.team__text { display: grid; gap: 18px; justify-items: start; }
.team__pics { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.2vw, 16px); }
.team__pics .shot { aspect-ratio: 4 / 5; }
.team__pics .shot:nth-child(2) { transform: translateY(clamp(16px, 3vw, 40px)); }

@media (max-width: 1023px) {
  .team { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .band { min-height: 64svh; padding-bottom: 48px; }
  /* Фото цеха на телефоне — лента с прокруткой пальцем, как в приложении */
  .gallery__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .gallery__grid::-webkit-scrollbar { display: none; }
  .gallery__grid::after { content: ""; flex: none; width: 1px; }
  .gallery__grid .shot { flex: none; width: 82vw; aspect-ratio: 4 / 5; scroll-snap-align: start; }
  .team__pics .shot { aspect-ratio: 3 / 4; }
}
.phero--video { position: relative; overflow: hidden; isolation: isolate; background: #111; }
.phero--video .floaters { z-index: 0; }
.band .eyebrow, .phero--video .eyebrow { color: #ff6a62; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.band__shade { background: linear-gradient(180deg, rgba(15, 15, 15, .6) 0%, rgba(15, 15, 15, .35) 35%, rgba(15, 15, 15, .92) 100%), radial-gradient(80% 60% at 0% 100%, rgba(213, 35, 32, .3), transparent 70%); }

/* ================= v6: без мигания панелей, крупнее сеть на телефоне, плотнее блоки ================= */
/* Стеклянные панели — на отдельном GPU-слое: при прокрутке и смене высоты окна не перерисовываются заново */
.header, .header::before { transform: translateZ(0); backface-visibility: hidden; }
@media (max-width: 1023px) {
  .tabbar { transform: translateX(-50%) translateZ(0); backface-visibility: hidden; will-change: transform; contain: layout paint; }
  .tabbar--compact { transition: width .4s var(--ease-out), padding .4s var(--ease-out); }
  .team__pics .shot:nth-child(2) { transform: none; }
  .prod .head { margin-bottom: 20px; }
}
@media (max-width: 767px) {
  .hero { padding-top: calc(var(--hh) + 4px); }
  .hero__in { gap: 4px; }
  .hero__stage { width: min(94vw, 40svh); margin-block: -10px -6px; }
  .hero__title { font-size: clamp(21px, 5.8vw, 25px); }
  .stat { padding-top: 18px; }
  .stat:nth-child(n+3) { margin-top: 18px; }
  .tile { min-height: 0; }
  .catgrid .card, .card { min-height: 0; }
}
@media (max-width: 767px) and (max-height: 740px) { .hero__stage { width: min(84vw, 34svh); } }
/* Видео на фоне первого экрана: приглушённое, под сетью отраслей и текстом */
.hero { isolation: isolate; }
.hero__video { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: grayscale(.35) contrast(1.05); -webkit-mask: linear-gradient(180deg, #000 55%, transparent); mask: linear-gradient(180deg, #000 55%, transparent); }
@media (max-width: 767px) { .hero__video { opacity: .32; -webkit-mask: linear-gradient(180deg, #000 0%, #000 45%, rgba(0,0,0,.35) 70%, transparent); mask: linear-gradient(180deg, #000 0%, #000 45%, rgba(0,0,0,.35) 70%, transparent); } }
.team__pics .shot:first-child img { object-position: 50% 35%; }

@media (max-width: 767px) { .hero__video { object-position: 50% 30%; } }
.hero__video { opacity: .3; filter: saturate(1.1) contrast(1.05); }
@media (max-width: 767px) { .hero__video { opacity: .42; } }
.gallery { padding-bottom: calc(var(--section) * .5); }

/* ================= v7: выпадающий выбор языка, письмо справа налево ================= */
.lang { position: relative; font-size: 13px; font-weight: 700; }
.lang summary { display: flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 10px 0 12px; border-radius: 12px; background: rgba(255, 255, 255, .12); cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-fast); }
.lang[open] summary svg { transform: rotate(180deg); }
.lang__list { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; display: grid; gap: 2px; min-width: 176px; padding: 6px; border-radius: 18px; background: rgba(28, 28, 30, .97); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 44px rgba(0, 0, 0, .42); }
.lang__list a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.lang__list a b { width: 24px; font-size: 11px; color: var(--muted-dark); }
.lang__list a:hover, .lang__list a[aria-current] { background: rgba(255, 255, 255, .12); }
.lang__list a[lang="fa-AF"] { font-family: 'Vazirmatn', 'Geeza Pro', Tahoma, sans-serif; }

/* Дари: арабская вязь не терпит межбуквенных интервалов и тесных строк */
[dir="rtl"] body { --font: 'Vazirmatn', 'Manrope', 'Geeza Pro', Tahoma, sans-serif; font-family: var(--font); }
html[dir="rtl"] * { letter-spacing: 0 !important; }
[dir="rtl"] .display, [dir="rtl"] .h2, [dir="rtl"] .h3, [dir="rtl"] .hero__title, [dir="rtl"] .about__statement { line-height: 1.4; }
[dir="rtl"] .link svg, [dir="rtl"] .btn--dark svg { scale: -1 1; }
[dir="rtl"] .hero__video, [dir="rtl"] .band__video { direction: ltr; }
[dir="rtl"] .flybag { right: auto; }
[dir="rtl"] .map { direction: ltr; }
@media (max-width: 767px) { .hero__actions .btn { white-space: normal; text-align: center; line-height: 1.2; } }

/* v8: настоящие фото производства и выставки */
.shot video { display: block; width: 100%; height: 100%; object-fit: cover; }
.team__pics .shot:first-child img { object-position: 50% 50%; }
.expo { background: #171717; color: #fff; padding: var(--section) 0; }
.expo .lead { color: rgba(255, 255, 255, .72); max-width: 56ch; }
@media (min-width: 768px) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: none; grid-auto-rows: clamp(170px, 19vw, 280px); grid-auto-flow: dense; }
  .gallery__grid .shot:nth-child(n) { grid-column: auto; grid-row: auto; }
  .gallery__grid .shot:nth-child(2), .gallery__grid .shot:nth-child(7) { grid-column: span 2; }
  .gallery__grid .shot:nth-child(1), .gallery__grid .shot:nth-child(3) { grid-row: span 2; }
  .expo__grid .shot:nth-child(n) { grid-column: auto; grid-row: auto; }
  .expo__grid .shot:nth-child(1), .expo__grid .shot:nth-child(4) { grid-row: span 2; }
  .expo__grid .shot:nth-child(2) img, .expo__grid .shot:nth-child(3) img, .expo__grid .shot:nth-child(6) img { object-position: 50% 72%; }
}
