/* AZM — тёмная индустриальная тема: графит, хром, косые полосы */
:root {
  --bg: #09090b;
  --bg-2: #0e0e11;
  --surface: #131317;
  --surface-2: #1a1a1f;
  --fg: #fff; --on-fg: #0a0a0b; --fg-rgb: 255, 255, 255; --bg-rgb: 9, 9, 11;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #ededf0;
  --soft: #c2c4ca;
  --muted: #8a8c94;
  --dim: #5c5e66;
  --chrome: linear-gradient(110deg, #6d7077 0%, #d9dbdf 22%, #ffffff 38%, #a6a9af 52%, #f1f2f4 70%, #7b7e85 100%);
  --chrome-text: linear-gradient(100deg, #ffffff 0%, #d7d9dd 35%, #8f939a 60%, #f4f5f6 100%);
  --skew: -24deg;
  --wrap: 1320px;
  --r: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font: "Manrope", "Segoe UI", Arial, sans-serif;
  --display: "Unbounded", "Manrope", Arial, sans-serif;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { /* зерно */
  content: ""; position: fixed; inset: 0; z-index: 1000; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
::selection { background: var(--fg); color: var(--on-fg); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.chrome-text { background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Мотив полос ---------- */
.slashes { display: inline-flex; gap: 4px; vertical-align: middle; }
.slashes i { display: block; width: 7px; height: 16px; transform: skewX(var(--skew)); background: var(--fg); }
.slashes i:nth-child(2) { background: linear-gradient(160deg, var(--fg), #6f737a); }
.slashes i:nth-child(3) { background: var(--chrome); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.section-title { font-size: clamp(32px, 4.6vw, 64px); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 720px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 56px; flex-wrap: wrap; }
.head-row .lead { margin: 0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 54px; padding: 0 28px; border-radius: 100px; border: 1px solid transparent; cursor: pointer; overflow: hidden;
  font: 700 14px/1 var(--font); letter-spacing: .02em; color: var(--on-fg); background: var(--fg); isolation: isolate;
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--chrome); background-size: 220% 100%;
  opacity: 0; transition: opacity .4s, background-position .8s var(--ease);
}
.btn:hover::before { opacity: 1; background-position: 100% 0; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn.ghost { background: rgba(var(--fg-rgb), .04); color: var(--fg); border-color: var(--line-2); backdrop-filter: blur(10px); }
.btn.ghost::before { background: var(--fg); }
.btn.ghost:hover { color: var(--on-fg); }
.btn.sm { height: 44px; padding: 0 20px; font-size: 13px; }
.btn.block { width: 100%; }
.link {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: var(--fg);
}
.link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .4s var(--ease); }
.link:hover svg { transform: translateX(5px); }
.circle-btn {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(var(--fg-rgb), .03);
  color: var(--fg); display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s, transform .3s;
}
.circle-btn:hover { background: var(--fg); color: var(--on-fg); }
.circle-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Прогресс прокрутки ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 120; transform-origin: 0 50%; transform: scaleX(0); background: var(--chrome); }

/* ---------- Навигация ---------- */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 100; transition: transform .5s var(--ease);
}
.nav.hide { transform: translateY(-130%); }
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 12px 0 26px; height: var(--nav-h);
  display: flex; align-items: center; gap: 22px; border-radius: 100px; border: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s, height .4s;
}
.nav.solid .nav-inner, .nav.open-mega .nav-inner {
  background: rgba(var(--bg-rgb), .72); border-color: var(--line); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  height: 64px;
}
.nav-logo { flex: none; }
.nav-logo img { height: 42px; width: auto; max-width: none; }
.menu { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 2px; }
.menu > li > a {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 100px;
  font-size: 14px; font-weight: 600; color: var(--soft); transition: color .2s, background .2s; white-space: nowrap;
}
.menu > li > a:hover, .menu > li.active > a { color: var(--fg); background: rgba(var(--fg-rgb), .07); }
.menu .caret { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s; }
.menu > li:hover .caret { transform: rotate(180deg); }
.menu > li { position: relative; }
.submenu {
  list-style: none; margin: 0; padding: 8px; position: absolute; left: 50%; top: calc(100% + 14px); min-width: 260px;
  background: rgba(18, 18, 22, .96); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.menu > li:hover > .submenu, .menu > li:focus-within > .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.submenu a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 14px; color: var(--soft); }
.submenu a:hover, .submenu .active a { color: var(--fg); background: rgba(var(--fg-rgb), .06); }

/* Мега-меню продукции */
.menu > li.has-mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); padding: 14px;
  background: rgba(16, 16, 20, .97); border: 1px solid var(--line); border-radius: 26px; backdrop-filter: blur(20px);
  display: grid; grid-template-columns: 1.1fr 3fr; gap: 14px;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.menu > li.has-mega:hover > .mega, .menu > li.has-mega:focus-within > .mega { opacity: 1; visibility: visible; transform: none; }
.mega-intro { padding: 26px; border-radius: var(--r); background: var(--surface-2); display: flex; flex-direction: column; }
.mega-intro h4 { font-size: 22px; }
.mega-intro p { color: var(--muted); font-size: 14px; flex: 1; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mega-item { position: relative; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.mega-item img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .6s var(--ease), opacity .4s; }
.mega-item:hover img { transform: scale(1.07); opacity: .8; }
.mega-item span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; font-size: 13px; font-weight: 700; line-height: 1.3;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
}
.mega-item.active { outline: 1px solid var(--fg); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(var(--fg-rgb), .03);
  color: var(--fg); display: grid; place-items: center; cursor: pointer; transition: background .2s;
}
.icon-btn:hover { background: rgba(var(--fg-rgb), .1); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.nav-phone { font-size: 14px; font-weight: 700; color: var(--soft); padding: 0 8px; white-space: nowrap; }
.nav-phone:hover { color: var(--fg); }
.burger { display: none; }
.icon-btn.burger { flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--fg); margin: 0; border-radius: 2px; }

/* Мобильное меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: var(--bg); padding: 22px 22px 40px; overflow-y: auto;
  clip-path: circle(0 at calc(100% - 44px) 44px); transition: clip-path .6s var(--ease); visibility: hidden;
}
.mobile-menu.open { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; }
.mobile-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 34px; }
.mobile-head img { height: 40px; width: auto; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu > nav > ul > li { border-bottom: 1px solid var(--line); }
.mobile-menu > nav > ul > li > a, .mobile-menu .has-sub > a { display: block; padding: 16px 0; font: 500 24px var(--display); }
.mobile-menu .has-sub { display: flex; justify-content: space-between; align-items: center; }
.sub-toggle { background: none; border: 1px solid var(--line-2); border-radius: 50%; color: var(--fg); width: 40px; height: 40px; font-size: 20px; cursor: pointer; }
.submenu-m { display: none; padding: 0 0 14px 4px; }
.mobile-menu li.open > .submenu-m { display: block; }
.submenu-m a { display: block; padding: 8px 0; color: var(--muted); }
.mobile-contacts { margin-top: 30px; color: var(--muted); display: grid; gap: 6px; }
.mobile-contacts a { color: var(--fg); font-weight: 700; font-size: 18px; }

/* ---------- Поиск ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(var(--bg-rgb), .9); backdrop-filter: blur(20px);
  display: none; padding: 14vh 22px 40px; overflow-y: auto;
}
.search-overlay.open { display: block; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.search-box { max-width: 820px; margin: 0 auto; }
.search-box form { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line-2); padding-bottom: 8px; }
.search-box form svg { width: 28px; height: 28px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.search-box input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--fg); font: 500 clamp(24px, 4vw, 44px) var(--display); padding: 12px 0; }
.search-box input::placeholder { color: var(--dim); }
.search-results { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; }
.search-results a { display: block; padding: 18px 22px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.search-results a:hover { border-color: var(--line-2); }
.search-results strong { display: block; font-size: 17px; margin-bottom: 4px; }
.search-results span { color: var(--muted); font-size: 14px; }
.search-close { position: absolute; top: 22px; right: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 680px; overflow: hidden; background: #000; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1.4s ease, transform 8s linear; }
.hero-bg img.active { opacity: .62; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb), .55) 0%, rgba(var(--bg-rgb), .1) 30%, rgba(var(--bg-rgb), .35) 65%, var(--bg) 100%),
    linear-gradient(90deg, rgba(var(--bg-rgb), .85) 0%, rgba(var(--bg-rgb), 0) 70%);
}
.grid-lines {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 120px 120px; mask-image: radial-gradient(ellipse at 30% 60%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 60%, #000 10%, transparent 70%);
}
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 60px; }
.hero-slides { position: relative; min-height: 340px; }
.hero-slide { position: absolute; inset: 0 0 auto 0; opacity: 0; visibility: hidden; }
.hero-slide.active { position: relative; opacity: 1; visibility: visible; }
.hero-slide h1, .hero-slide h2 {
  font-size: clamp(42px, 7.6vw, 118px); line-height: .98; letter-spacing: -.035em; margin: 0 0 28px; max-width: 1100px;
}
.hero-slide .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-slide .line > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.hero-slide.active .line > span { transform: none; }
.hero-slide.active .line:nth-child(2) > span { transition-delay: .08s; }
.hero-slide.active .line:nth-child(3) > span { transition-delay: .16s; }
.hero-slide p { font-size: clamp(17px, 1.6vw, 21px); color: var(--soft); max-width: 600px; opacity: 0; transform: translateY(20px); transition: opacity .8s .3s, transform .8s .3s var(--ease); }
.hero-slide.active p { opacity: 1; transform: none; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.hero-bottom { position: absolute; z-index: 3; left: 0; right: 0; bottom: 34px; }
.hero-bottom .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.hero-count { display: flex; align-items: center; gap: 18px; font: 500 14px var(--display); color: var(--muted); }
.hero-count b { color: var(--fg); font-weight: 500; }
.bars { display: flex; gap: 8px; }
.bars button { width: 64px; height: 3px; border: 0; padding: 0; background: rgba(var(--fg-rgb), .18); cursor: pointer; position: relative; overflow: hidden; border-radius: 3px; }
.bars button::after { content: ""; position: absolute; inset: 0; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; }
.bars button::after { transform: scaleX(var(--p, 0)); }
@keyframes bar { to { transform: scaleX(1); } }
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.chip {
  display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 100px;
  background: rgba(var(--fg-rgb), .05); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.chip i { width: 34px; height: 34px; border-radius: 50%; background: var(--fg); color: var(--on-fg); display: grid; place-items: center; flex: none; }
.chip i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.chip small { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; }
.chip strong { display: block; font-size: 13px; line-height: 1.3; }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 30px; width: 26px; height: 42px; border: 1.5px solid var(--line-2); border-radius: 20px; transform: translateX(-50%); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 2px; background: var(--fg); transform: translateX(-50%); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- Бегущая строка ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 48px; animation: marquee 40s linear infinite; padding-right: 48px; will-change: transform; }
@media (hover: hover) { .marquee:hover .marquee-track { animation-play-state: paused; } }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; font: 500 clamp(24px, 3vw, 42px) var(--display); color: transparent; -webkit-text-stroke: 1px rgba(var(--fg-rgb), .35); }
.marquee-track span:nth-child(odd) { color: var(--fg); -webkit-text-stroke: 0; }
.marquee-track .slashes i { width: 10px; height: 26px; }
.marquee.logos .marquee-track span { font: 600 clamp(18px, 2vw, 24px) var(--font); color: var(--muted); -webkit-text-stroke: 0; }
.marquee.logos .marquee-track { animation-duration: 50s; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.section { padding: 140px 0; position: relative; }
.section.tight { padding: 90px 0; }
.section.alt { background: var(--bg-2); }
.glow::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -100px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--fg-rgb), .06), transparent 65%);
}

/* Манифест + цифры */
.statement { font: 500 clamp(26px, 3.6vw, 52px)/1.22 var(--display); letter-spacing: -.02em; max-width: 1150px; }
.statement .w { color: #2c2d33; transition: color .4s; }
.statement .w.on { color: var(--fg); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 90px; border-top: 1px solid var(--line); }
.stat { padding: 34px 28px 0 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat b { display: block; font: 500 clamp(40px, 4.4vw, 68px)/1 var(--display); letter-spacing: -.03em; margin-bottom: 12px; white-space: nowrap; }
.stat b small { font-size: .45em; color: var(--muted); margin-left: 4px; }
.stat span { color: var(--muted); font-size: 15px; }

/* Bento продукции */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 300px; gap: 16px; }
.tile { position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); grid-column: span 4; isolation: isolate; }
.tile.w6 { grid-column: span 6; }
.tile.w8 { grid-column: span 8; }
.tile.tall { grid-row: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease), filter .6s; filter: grayscale(.5) brightness(.75); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .88)); transition: opacity .5s; }
.tile:hover img { transform: scale(1.06); filter: none; }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px; }
.tile-num { position: absolute; top: 24px; left: 28px; font: 500 13px var(--display); color: var(--soft); }
.tile-arrow { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; background: var(--fg); color: var(--on-fg); display: grid; place-items: center; transform: scale(.6) rotate(-45deg); opacity: 0; transition: .5s var(--ease); }
.tile-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.tile:hover .tile-arrow { opacity: 1; transform: none; }
.tile h3 { font-size: clamp(20px, 1.8vw, 28px); margin-bottom: 8px; }
.tile p { color: var(--soft); font-size: 15px; margin: 0; max-width: 460px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s; }
.tile:hover p, .tile.open p { max-height: 120px; opacity: 1; }
.tile.text { background: var(--surface-2); display: flex; flex-direction: column; justify-content: space-between; padding: 32px; }
.tile.text::after { display: none; }
.tile.text h3 { font-size: 26px; }
.tile.text p { max-height: none; opacity: 1; color: var(--muted); }

/* Услуги */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service { position: relative; border-radius: var(--r); overflow: hidden; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; isolation: isolate; border: 1px solid var(--line); }
.service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) brightness(.55); transition: transform 1.2s var(--ease), filter .6s; }
.service:hover img { transform: scale(1.05); filter: grayscale(.2) brightness(.6); }
.service::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, .9)); }
.service h3 { font-size: clamp(30px, 3.2vw, 46px); }
.service p { color: var(--soft); max-width: 520px; }
.service .tag { position: absolute; top: 30px; left: 40px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--soft); }

/* Горизонтальная лента проектов */
.rail-wrap { position: relative; }
.rail { --pad: max(32px, calc((100vw - var(--wrap)) / 2 + 32px)); display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; padding: 4px var(--pad); cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.drag { cursor: grabbing; scroll-snap-type: none; }
.rail.drag a { pointer-events: none; }
.rail-card { flex: 0 0 clamp(280px, 30vw, 420px); scroll-snap-align: start; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.rail-card .ph { aspect-ratio: 4 / 5; overflow: hidden; position: relative; }
.rail-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); user-select: none; -webkit-user-drag: none; }
.rail-card:hover img { transform: scale(1.06); }
.rail-card .ph span { position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 100px; font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, .55); backdrop-filter: blur(10px); }
.rail-card .meta { padding: 22px 24px 26px; }
.rail-card h3 { font: 700 17px/1.35 var(--font); letter-spacing: 0; margin-bottom: 6px; }
.rail-card small { color: var(--muted); }
.rail-card.all { display: grid; place-items: center; text-align: center; background: var(--surface-2); padding: 30px; }
.rail-card.all b { display: block; font: 500 72px/1 var(--display); margin-bottom: 10px; }
.rail-nav { display: flex; gap: 10px; }

/* О компании (главная) */
.about-home { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-home p { color: var(--soft); }
.parallax { overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 5; position: relative; }
.parallax img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.quote { margin: 34px 0 0; padding: 28px 30px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font: 500 19px/1.5 var(--display); position: relative; }
.quote::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px; background: var(--chrome); border-radius: 3px; }

/* Отзывы */
.testimonials { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: center; }
.t-track { position: relative; }
.t-item { display: none; }
.t-item.active { display: block; animation: tin .7s var(--ease); }
@keyframes tin { from { opacity: 0; transform: translateY(16px); } }
.t-item blockquote { margin: 0 0 30px; font: 400 clamp(19px, 2vw, 26px)/1.55 var(--font); color: var(--fg); }
.t-person { display: flex; align-items: center; gap: 16px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--chrome); color: var(--on-fg); display: grid; place-items: center; font: 600 17px var(--display); flex: none; }
.t-person strong { display: block; }
.t-person small { color: var(--muted); }
.t-nav { display: flex; gap: 10px; margin-top: 40px; }
.t-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.t-list button { width: 100%; text-align: left; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; font: 600 15px var(--font); transition: .3s; }
.t-list button .avatar { width: 40px; height: 40px; font-size: 13px; background: var(--surface-2); color: var(--soft); }
.t-list button.active { background: var(--surface); color: var(--fg); border-color: var(--line-2); }
.t-list button.active .avatar { background: var(--chrome); color: var(--on-fg); }
.t-list small { display: block; font-weight: 500; font-size: 12px; color: var(--dim); }

/* Новости (карточки) */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card { border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .3s, transform .5s var(--ease); }
.news-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.news-card .n-img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: var(--surface-2); display: block; }
.news-card .n-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.news-card:hover .n-img img { transform: scale(1.05); }
.n-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at 70% 20%, #24252b, var(--surface) 70%); }
.n-placeholder img { width: 62% !important; height: auto !important; opacity: .12; object-fit: contain !important; }
.n-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.n-date { font-size: 13px; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.n-date::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fg); }
.news-card h3 { font: 700 18px/1.4 var(--font); letter-spacing: 0; margin-bottom: 12px; }
.news-card p { color: var(--muted); font-size: 15px; flex: 1; }
.news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 60px; flex-wrap: wrap; }
.pager button { min-width: 48px; height: 48px; border-radius: 100px; border: 1px solid var(--line); background: var(--surface); color: var(--soft); cursor: pointer; font: 700 14px var(--font); padding: 0 16px; transition: .2s; }
.pager button:hover { border-color: var(--line-2); color: var(--fg); }
.pager button.active { background: var(--fg); color: var(--on-fg); border-color: var(--fg); }
.pager button:disabled { opacity: .3; cursor: default; }

/* CTA */
.cta { position: relative; border-radius: 30px; overflow: hidden; padding: clamp(50px, 8vw, 110px); background: var(--surface); border: 1px solid var(--line); isolation: isolate; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .28; filter: grayscale(1); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 80% 0%, rgba(var(--fg-rgb), .1), transparent 55%), linear-gradient(90deg, var(--surface) 30%, rgba(19, 19, 23, .4)); }
.cta h2 { font-size: clamp(38px, 6vw, 92px); line-height: 1; max-width: 900px; }
.cta-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: end; }
.cta-contacts { display: grid; gap: 14px; }
.cta-contacts a { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: rgba(0, 0, 0, .3); backdrop-filter: blur(8px); font-weight: 700; transition: background .3s, color .3s; }
.cta-contacts a small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.cta-contacts a:hover { background: var(--fg); color: var(--on-fg); }
.cta-contacts a:hover small { color: #555; }
.cta-contacts svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Внутренние страницы ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + 110px) 0 80px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: grayscale(1); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--bg-rgb), .5), var(--bg)), linear-gradient(90deg, var(--bg) 10%, transparent 80%); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(40px, 6.4vw, 96px); line-height: 1; letter-spacing: -.035em; max-width: 1100px; margin-bottom: 30px; }
.page-hero .grid-lines { z-index: 1; }
.hero-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.crumbs { display: flex; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.crumbs span::before { content: "/"; margin-right: 10px; color: var(--dim); }
.share { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.share a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--fg); transition: .2s; }
.share a:hover { background: var(--fg); color: var(--on-fg); }
.share svg { width: 15px; height: 15px; fill: currentColor; }
.article-meta { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 70px; align-items: start; }
.content { font-size: 17px; }
.content p, .content li { color: var(--soft); }
.content h2 { font-size: clamp(26px, 2.6vw, 36px); margin-top: 1.5em; }
.content h3 { font-size: 21px; margin-top: 1.5em; }
.content strong, .content b { color: var(--fg); }
.content a:not(.btn):not(.g-thumb):not(.figure):not(.doc) { text-decoration: underline; text-underline-offset: 3px; }
.content ul.bullets, .content ol.bullets { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 8px; counter-reset: n; }
.content ul.bullets li, .content ol.bullets li { position: relative; padding: 14px 18px 14px 50px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.content ul.bullets li::before { content: ""; position: absolute; left: 20px; top: 23px; width: 12px; height: 6px; background: var(--fg); transform: skewX(var(--skew)); }
.content ol.bullets li { counter-increment: n; }
.content ol.bullets li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 16px; top: 15px; font: 500 13px var(--display); color: var(--muted); }
.figure { display: block; margin: 0 0 40px; border-radius: var(--r); overflow: hidden; cursor: zoom-in; position: relative; border: 1px solid var(--line); }
.figure img { width: 100%; max-height: 620px; object-fit: cover; transition: transform 1s var(--ease); }
.figure:hover img { transform: scale(1.03); }
.note { padding: 30px 34px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); margin: 34px 0; position: relative; overflow: hidden; }
.note::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--chrome); }
.note h3 { margin-top: 0; }
.note p:last-child { margin-bottom: 0; }

.sidebar { position: sticky; top: 100px; display: grid; gap: 16px; }
.side-box { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); padding: 26px; }
.side-box h4 { font: 700 12px var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.side-box p { color: var(--soft); font-size: 15px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-list a { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--soft); transition: .2s; }
.side-list a::after { content: "→"; color: var(--dim); transition: transform .3s; }
.side-list a:hover { background: rgba(var(--fg-rgb), .05); color: var(--fg); }
.side-list a:hover::after { transform: translateX(4px); color: var(--fg); }
.side-list .active a { background: var(--fg); color: var(--on-fg); }
.side-list .active a::after { color: var(--on-fg); }
.side-cta { border-radius: var(--r); padding: 30px 26px; display: grid; gap: 12px; position: relative; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); isolation: isolate; }
.side-cta::before { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--fg-rgb), .12), transparent 65%); z-index: -1; }
.side-cta h4 { font-size: 22px; margin: 0; }
.side-cta p { color: var(--muted); font-size: 14px; margin: 0 0 8px; }

/* ---------- Галереи ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 34px 0; }
.gallery-grid figure { margin: 0; }
.gallery-grid:has(> figure:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } /* 4 фото — сеткой 2×2, без одинокого в ряду */
.g-thumb { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-sm); background: var(--surface); cursor: zoom-in; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .5s; }
.g-thumb:hover img { transform: scale(1.07); }
.g-thumb::after {
  content: ""; position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 10V4h6M20 14v6h-6M4 4l6 6M20 20l-6-6'/%3E%3C/svg%3E") center / 18px no-repeat;
  transform: scale(.5); opacity: 0; transition: .4s var(--ease);
}
.g-thumb:hover::after { transform: none; opacity: 1; }
.gallery-grid figcaption { font-size: 14px; font-weight: 600; padding: 12px 4px 0; color: var(--soft); }

/* Проекты */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { height: 44px; padding: 0 18px; border-radius: 100px; border: 1px solid var(--line); background: var(--surface); color: var(--soft); cursor: pointer; font: 600 14px var(--font); transition: .25s; }
.filters button:hover { border-color: var(--line-2); color: var(--fg); }
.filters button.active { background: var(--fg); color: var(--on-fg); border-color: var(--fg); }
.filters sup { font-size: 11px; opacity: .55; margin-left: 4px; }
.p-search { position: relative; }
.p-search input { height: 44px; width: 280px; max-width: 100%; border-radius: 100px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); padding: 0 18px 0 44px; font: 500 14px var(--font); outline: none; }
.p-search input:focus { border-color: var(--line-2); }
.p-search svg { position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project { border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .3s; }
.project:hover { border-color: var(--line-2); }
.project.hidden { display: none; }
.project .g-thumb { aspect-ratio: 4 / 3; border-radius: 0; }
.project .g-thumb img { filter: grayscale(.35); }
.project:hover .g-thumb img { filter: none; }
.project-body { padding: 24px 26px 26px; }
.project h3 { font: 700 17px/1.4 var(--font); letter-spacing: 0; margin-bottom: 8px; }
.project .place { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.project .place svg { width: 13px; height: 13px; fill: currentColor; flex: none; }
.specs { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 14px; display: grid; gap: 6px; }
.specs li { color: var(--soft); display: flex; justify-content: space-between; gap: 14px; }
.specs li span { color: var(--muted); }
.specs li b { color: var(--fg); font-weight: 600; text-align: right; }
.empty { display: none; text-align: center; color: var(--muted); padding: 60px 0; }
.empty.show { display: block; }

/* Лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(6, 6, 8, .97); display: none; flex-direction: column; }
.lightbox.open { display: flex; animation: fade .3s; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; }
.lb-count { color: var(--muted); font: 500 14px var(--display); }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 0 22px; }
.lb-figure { margin: 0; flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 250px); object-fit: contain; border-radius: var(--r-sm); animation: lbin .5s var(--ease); }
@keyframes lbin { from { opacity: 0; transform: scale(.97); } }
.lb-caption { color: var(--soft); margin-top: 16px; text-align: center; font-size: 15px; max-width: 760px; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 16px 22px 22px; justify-content: safe center; scrollbar-width: none; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs button { flex: 0 0 72px; height: 54px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; opacity: .45; background: none; transition: .2s; }
.lb-thumbs button.active { border-color: var(--fg); opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Документы ---------- */
.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 34px; }
.doc { display: flex; gap: 20px; align-items: center; padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, transform .4s var(--ease); }
.doc:hover { border-color: var(--line-2); transform: translateY(-3px); }
.doc-icon { width: 56px; height: 64px; flex: none; border-radius: 10px; display: grid; place-items: end center; padding-bottom: 10px; background: var(--surface-2); border: 1px solid var(--line-2); font: 600 11px var(--display); color: var(--fg); position: relative; overflow: hidden; }
.doc-icon::before { content: ""; position: absolute; top: 10px; left: 12px; right: 12px; height: 3px; border-radius: 2px; background: var(--chrome); box-shadow: 0 8px 0 rgba(var(--fg-rgb), .15), 0 16px 0 rgba(var(--fg-rgb), .15); }
.doc h3 { font: 700 16px/1.35 var(--font); letter-spacing: 0; margin: 0 0 4px; color: var(--fg); }
.doc p { margin: 0; color: var(--muted) !important; font-size: 14px; line-height: 1.5; }
.doc .size { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--dim); }
.doc .dl { margin-left: auto; width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: .3s; }
.doc:hover .dl { background: var(--fg); color: var(--on-fg); }
.doc .dl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Команда ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 50px; }
.member { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); padding: 28px; transition: border-color .3s; }
.member:hover { border-color: var(--line-2); }
.member .avatar { width: 64px; height: 64px; font-size: 20px; margin-bottom: 40px; }
.member strong { display: block; font-size: 17px; line-height: 1.35; margin-bottom: 4px; }
.member span { color: var(--muted); font-size: 14px; }
blockquote.big { margin: 70px 0; padding: 0; font: 500 clamp(24px, 3.2vw, 46px)/1.25 var(--display); letter-spacing: -.02em; max-width: 1100px; }
blockquote.big::before { content: "“"; display: block; font-size: 2.4em; line-height: .6; color: var(--dim); margin-bottom: 10px; }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 70px; align-items: start; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 50px 0; }
.fact { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); padding: 28px; }
.fact b { display: block; font: 500 44px/1 var(--display); margin-bottom: 10px; }
.fact span { color: var(--muted); font-size: 14px; }

/* ---------- Формы ---------- */
.form-card { border-radius: 26px; background: var(--surface); border: 1px solid var(--line); padding: clamp(26px, 4vw, 50px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea {
  font: 500 16px var(--font); color: var(--fg); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 26px 18px 10px; width: 100%; outline: none; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 170px; resize: vertical; padding-top: 30px; }
.field label { position: absolute; left: 19px; top: 18px; font-size: 15px; color: var(--muted); pointer-events: none; transition: .2s var(--ease); }
.field label em { color: #ff6b5e; font-style: normal; }
.field input:focus, .field textarea:focus { border-color: rgba(var(--fg-rgb), .4); background: var(--surface); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 9px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.field.invalid input, .field.invalid textarea { border-color: #ff6b5e; }
.field .err { color: #ff6b5e; font-size: 12px; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.file-drop { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--r-sm); border: 1px dashed var(--line-2); background: var(--bg-2); cursor: pointer; transition: border-color .2s, background .2s; }
.file-drop:hover, .file-drop.drag { border-color: var(--fg); background: var(--surface); }
.file-drop input { display: none; }
.file-drop i { width: 46px; height: 46px; border-radius: 50%; background: var(--fg); color: var(--on-fg); display: grid; place-items: center; flex: none; }
.file-drop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.file-drop small { color: var(--muted); display: block; }
.form-status { grid-column: 1 / -1; padding: 16px 20px; border-radius: var(--r-sm); display: none; font-weight: 600; }
.form-status.ok { display: block; background: rgba(80, 200, 120, .1); color: #7ee3a0; border: 1px solid rgba(80, 200, 120, .3); }
.form-status.fail { display: block; background: rgba(255, 107, 94, .08); color: #ff9a90; border: 1px solid rgba(255, 107, 94, .3); }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form-actions small { color: var(--dim); }

.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 90px; }
.c-card { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; }
.c-card .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--fg); color: var(--on-fg); display: grid; place-items: center; margin-bottom: 40px; }
.c-card .ic svg { width: 20px; height: 20px; fill: currentColor; }
.c-card h3 { font-size: 22px; }
.c-card p { color: var(--muted); font-size: 15px; flex: 1; }
.c-card a.big { font: 500 19px var(--display); display: block; margin-top: 6px; }
.c-card a.big:hover { text-decoration: underline; }
.map { margin-top: 90px; aspect-ratio: 21 / 8; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.benefits li { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: var(--r-sm); background: rgba(var(--fg-rgb), .03); border: 1px solid var(--line); color: var(--soft); font-size: 15px; }
.benefits li b { font: 500 15px var(--display); color: var(--fg); min-width: 28px; }

/* Статья */
.article-body { font-size: 18px; }
.article-video { margin: 34px 0; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; border: 1px solid var(--line); }
.article-video iframe, .article-video video { width: 100%; height: 100%; border: 0; display: block; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 60px; }
.article-nav a { padding: 22px 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none !important; transition: border-color .3s; }
.article-nav a:hover { border-color: var(--line-2); }
.article-nav small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.article-nav strong { font-size: 15px; line-height: 1.4; display: block; }
.article-nav .next { text-align: right; grid-column: 2; }

/* ---------- Подвал ---------- */
.footer { position: relative; border-top: 1px solid var(--line); padding-top: 100px; overflow: hidden; background: var(--bg-2); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 50px; }
.footer h4 { font: 700 12px var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.footer .f-logo { height: 62px; width: auto; margin-bottom: 24px; }
.footer p { color: var(--muted); font-size: 15px; max-width: 380px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer a { color: var(--soft); transition: color .2s; }
.footer a:hover { color: var(--fg); }
.f-news a { display: block; line-height: 1.45; font-size: 15px; }
.f-news small { color: var(--dim); font-size: 12px; }
.f-contacts li { display: flex; gap: 12px; color: var(--soft); font-size: 15px; }
.f-contacts svg { width: 16px; height: 16px; fill: currentColor; flex: none; margin-top: 4px; color: var(--muted); }
.social { display: flex; gap: 8px; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--fg); transition: .25s; }
.social a:hover { background: var(--fg); color: var(--on-fg); }
.social svg { width: 15px; height: 15px; fill: currentColor; }
.f-news-sub { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 70px; padding: 26px 30px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.f-news-sub p { margin: 0; max-width: none; color: var(--soft); }
.f-news-sub b { color: var(--fg); font-family: var(--display); font-weight: 500; }
.wordmark { margin: 80px 0 50px; display: flex; justify-content: center; pointer-events: none; }
.wordmark img { width: 100%; max-width: var(--wrap); opacity: .07; }
.footer-bottom { border-top: 1px solid var(--line); position: relative; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; padding-bottom: 24px; flex-wrap: wrap; font-size: 13px; color: var(--dim); }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(var(--bg-rgb), .8); backdrop-filter: blur(10px); color: var(--fg); cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: .4s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--fg); color: var(--on-fg); }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* ---------- Появление ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-slide .line > span, .hero-slide p { transform: none; opacity: 1; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1440px) { .nav-phone { display: none; } }
@media (max-width: 1240px) {
  .menu > li > a { padding: 0 10px; font-size: 13.5px; }
}
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile, .tile.w6, .tile.w8 { grid-column: span 3; }
  .tile.tall { grid-row: span 1; }
  .tile p { max-height: 120px; opacity: 1; }
  .layout, .about-home, .testimonials, .cta-grid, .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .sidebar { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .projects, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: repeat(3, 1fr); }
  .chips { display: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav { top: 8px; }
  .nav-inner { margin: 0 8px; padding: 0 6px 0 18px; height: 60px; }
  .nav.solid .nav-inner { height: 60px; }
  .section { padding: 90px 0; }
  .hero { min-height: 620px; }
  .hero-slides { min-height: 380px; }
  .scroll-cue { display: none; }
  .bars button { width: 38px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .tile, .tile.w6, .tile.w8 { grid-column: auto; }
  .tile.text { grid-row: auto; height: auto; }
  .split, .projects, .news-grid, .news-list, .docs, .contact-cards, .team, .form-grid, .facts { grid-template-columns: 1fr; }
  .service { min-height: 420px; padding: 28px; }
  .service .tag { left: 28px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 60px; }
  .stat, .stat + .stat { padding: 24px 12px 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .doc { flex-wrap: wrap; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav .next { grid-column: auto; }
  .lb-figure img { max-height: calc(100vh - 220px); }
  .map { aspect-ratio: 4 / 3; }
  .rail { --pad: 16px; }
  .p-search input { width: 100%; }
  .p-search { width: 100%; }
}
.field label.file-drop { position: static; font-size: 15px; color: var(--text); pointer-events: auto; }
.fact b small { font-size: .5em; color: var(--muted); margin-left: 4px; }
.head-row .lead { max-width: 560px; }

@media (max-width: 720px) { .nav-logo img { height: 34px; } }
@media (max-width: 1000px) {
  .nav .menu, .nav-actions .btn { display: none; }
  .burger { display: flex; }
  .nav-actions { margin-left: auto; }
}

/* ---------- Фоновые видео ---------- */
.reel-bg video, .bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  background: #000 center / cover no-repeat;
}
.reel-bg video { opacity: 0; z-index: 0; scale: 1.08; transition: scale 14s linear; }
.reel-bg video.prev { opacity: .78; z-index: 1; }
.reel-bg video.active { opacity: .78; z-index: 2; scale: 1; animation: fx-fade 1.5s var(--ease) both; }
/* Разные эффекты появления видео на главном экране */
.reel-bg video.active[data-fx="wipe"] { animation-name: fx-wipe; animation-duration: 1.3s; }
.reel-bg video.active[data-fx="zoom"] { animation-name: fx-zoom; animation-duration: 1.6s; }
.reel-bg video.active[data-fx="iris"] { animation-name: fx-iris; animation-duration: 1.5s; }
.reel-bg video.active[data-fx="slide"] { animation-name: fx-slide; animation-duration: 1.3s; }
.reel-bg video.active[data-fx="shutter"] { animation-name: fx-shutter; animation-duration: 1.2s; }
.reel-bg video.active.first { animation-name: fx-fade; }
@keyframes fx-fade { from { opacity: 0; } }
@keyframes fx-wipe { /* косая шторка под углом полос логотипа */
  from { clip-path: polygon(0 0, 0 0, -30% 100%, -30% 100%); }
  to { clip-path: polygon(0 0, 130% 0, 100% 100%, -30% 100%); }
}
@keyframes fx-zoom { from { opacity: 0; transform: scale(1.3); filter: blur(16px); } }
@keyframes fx-iris {
  from { clip-path: circle(0% at 68% 45%); }
  to { clip-path: circle(150% at 68% 45%); }
}
@keyframes fx-slide { from { opacity: 0; transform: translateX(14%); } }
@keyframes fx-shutter {
  from { clip-path: inset(50% 0 50% 0); }
  to { clip-path: inset(0 0 0 0); }
}
.hero::after {
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb), .6) 0%, rgba(var(--bg-rgb), .05) 28%, rgba(var(--bg-rgb), .3) 62%, var(--bg) 100%),
    linear-gradient(90deg, rgba(var(--bg-rgb), .9) 0%, rgba(var(--bg-rgb), .35) 45%, rgba(var(--bg-rgb), 0) 75%);
}
.hero-left { display: grid; gap: 18px; }
.vcap { display: grid; gap: 4px; max-width: 460px; transition: opacity .5s; }
.vcap.swap { opacity: 0; }
.vcap-kicker {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px;
  padding: 6px 12px 6px 10px; border-radius: 100px; background: rgba(var(--fg-rgb), .1); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--soft);
}
.vcap-kicker svg { width: 10px; height: 10px; fill: #ff5a4e; }
.vcap strong { font: 500 18px/1.25 var(--display); }
.vcap-sub { color: var(--muted); font-size: 14px; }
.hero-count .v-toggle { width: 36px; height: 36px; margin-left: 4px; }
.v-toggle svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.v-toggle .i-play, .v-toggle.paused .i-pause { display: none; }
.v-toggle.paused .i-play { display: block; }

/* Производство в деле */
.prod-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 70px; align-items: center; }
.prod-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 34px 0 36px; }
.prod-facts div { padding: 18px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); }
.prod-facts strong { display: block; font: 500 16px/1.2 var(--display); margin-bottom: 6px; white-space: nowrap; }
.prod-facts span { color: var(--muted); font-size: 13px; line-height: 1.4; display: block; }
.prod-video {
  position: relative; aspect-ratio: 16 / 10; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -40px rgba(40, 140, 255, .35);
}
.prod-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55)); pointer-events: none; }
.prod-tag {
  position: absolute; z-index: 2; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 100px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(10px); font-size: 13px; font-weight: 600;
}
.prod-tag i { width: 8px; height: 8px; border-radius: 50%; background: #ff5a4e; box-shadow: 0 0 0 0 rgba(255, 90, 78, .6); animation: rec 1.8s infinite; }
@keyframes rec { 70% { box-shadow: 0 0 0 10px rgba(255, 90, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 78, 0); } }
.prod-video .v-toggle { position: absolute; z-index: 2; right: 18px; bottom: 16px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(10px); }

/* Видеопрезентация на главной */
.promo { padding-top: 0; }
.promo-video {
  position: relative; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-2); background: #000;
  box-shadow: 0 50px 120px -40px rgba(40, 140, 255, .35);
}
.promo-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-play {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 22px;
  border: 0; padding: 0; color: var(--fg); font: inherit; cursor: pointer; background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .55));
  transition: opacity .4s var(--ease);
}
.promo-btn {
  display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: var(--fg); color: var(--on-fg);
  box-shadow: 0 0 0 0 rgba(var(--fg-rgb), .45); animation: promo-pulse 2.4s infinite; transition: transform .4s var(--ease);
}
.promo-btn svg { width: 30px; height: 30px; fill: currentColor; margin-left: 5px; }
.promo-play:hover .promo-btn { transform: scale(1.08); }
.promo-cap { display: flex; flex-direction: column; text-align: left; line-height: 1.3; }
.promo-cap strong { font: 500 clamp(18px, 2vw, 26px)/1.2 var(--display); }
.promo-cap span { color: var(--soft); font-size: 14px; margin-top: 4px; }
.promo-video.playing .promo-play { opacity: 0; pointer-events: none; }
@keyframes promo-pulse { 70% { box-shadow: 0 0 0 22px rgba(var(--fg-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--fg-rgb), 0); } }
@media (max-width: 720px) {
  .promo-video { border-radius: 18px; }
  .promo-play { flex-direction: column; gap: 14px; }
  .promo-cap { text-align: center; }
  .promo-btn { width: 72px; height: 72px; }
  .promo-btn svg { width: 22px; height: 22px; margin-left: 3px; }
}


/* О компании: данные из презентации 2026 */
.timeline { list-style: none; padding: 0; margin: 30px 0 70px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.timeline li { position: relative; padding: 28px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.timeline li::before { content: ""; position: absolute; left: 28px; top: 0; width: 40px; height: 3px; background: var(--chrome); }
.timeline b { display: block; font: 500 40px/1 var(--display); margin-bottom: 14px; }
.timeline strong { display: block; font-weight: 700; margin-bottom: 8px; }
.timeline p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin: 20px 0 50px; }
.about-cols .content h2:first-child { margin-top: 0; }
.photos-3 .gallery-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .timeline, .about-cols, .photos-3 .gallery-grid { grid-template-columns: 1fr 1fr; } .timeline, .about-cols { grid-template-columns: 1fr; } .about-cols { gap: 0; } }

/* Видео в шапке внутренних страниц и в CTA */
.page-hero.has-video .bg-video { opacity: .5; }
.page-hero.has-video::after { background: linear-gradient(180deg, rgba(var(--bg-rgb), .55), var(--bg)), linear-gradient(90deg, var(--bg) 5%, rgba(var(--bg-rgb), .2) 75%); }
.cta > .bg-video { z-index: -2; opacity: .45; }

@media (max-width: 1080px) {
  .prod-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 720px) {
  .prod-facts { grid-template-columns: 1fr; }
  .vcap { max-width: 100%; }
  .vcap strong { font-size: 16px; }
  .hero-bottom .wrap { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .reel-bg video { scale: 1; }
}
.hero-content { padding-top: 70px; padding-bottom: 200px; }
@media (max-height: 760px) { .hero-slide p { display: none; } }
@media (max-width: 720px) { .hero-content { padding-bottom: 210px; } .vcap-sub { display: none; } }
@media (max-width: 720px) {
  .hero-content { padding-top: 90px; }
  .hero-content > .eyebrow { display: none; }
  .hero-slides { min-height: 0; }
  .hero-actions .btn { height: 48px; padding: 0 20px; font-size: 13px; }
}
.page-hero.has-video .bg-video { opacity: .6; }

/* Бегущие строки крутятся всегда, в том числе на телефонах с «уменьшением движения» */
@media (prefers-reduced-motion: reduce) {
  .marquee .marquee-track { animation: marquee 40s linear infinite !important; }
  .marquee.logos .marquee-track { animation-duration: 50s !important; }
}
@media (max-width: 720px) {
  .marquee-track, .marquee-track span { gap: 32px; }
  .marquee-track { padding-right: 32px; }
  .marquee.logos .marquee-track { animation-duration: 38s; }
}

.marquee-track.js-marquee { animation: none !important; }
/* Отступ контента первого экрана от шапки с логотипом */
.hero-content { padding-top: calc(var(--nav-h) + 50px); }
@media (max-width: 720px) { .hero-content { padding-top: 110px; } }
@media (max-width: 720px) {
  .bars { gap: 5px; }
  .bars button { width: 24px; }
  .hero-count { gap: 12px; }
}

/* Первый экран: заголовок подстраивается под высоту окна и не наезжает на кнопки */
.hero-slides { flex-shrink: 0; }
.hero-slide h1, .hero-slide h2 { font-size: clamp(38px, min(7.6vw, 10.5vh), 118px); }
.reel-bg video.active, .reel-bg video.prev { opacity: .7; }
.hero::after {
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb), .62) 0%, rgba(var(--bg-rgb), .12) 28%, rgba(var(--bg-rgb), .38) 62%, var(--bg) 100%),
    linear-gradient(90deg, rgba(var(--bg-rgb), .9) 0%, rgba(var(--bg-rgb), .5) 45%, rgba(var(--bg-rgb), .1) 80%);
}
.chips { flex-wrap: nowrap; }
@media (max-width: 1420px) { .chips .chip:nth-child(3) { display: none; } }
@media (max-width: 720px) { .hero-slide h1, .hero-slide h2 { font-size: clamp(34px, 10.4vw, 48px); } }

/* ---------- Первый экран: живая изометрическая схема завода (assets/js/plant.js) ---------- */
.hero-plant { overflow: hidden; pointer-events: none; }
.plant {
  position: absolute; top: 50%; right: -13vw; width: max(1180px, 104vw); aspect-ratio: 1400 / 900;
  transform: translateY(-44%); opacity: 0; transition: opacity 1.8s var(--ease);
  --anatomy-paper: #0d0e12; --anatomy-face: #17181d; --anatomy-top: #1a1b21;
  --anatomy-shade-0: #0c0d10; --anatomy-shade-1: #101115; --anatomy-shade-2: #14151a; --anatomy-shade-3: #18191e;
  --anatomy-lit-top: #2a2c33; --anatomy-lit-shade: #202127;
  --anatomy-hi: #d9dbdf; --anatomy-mid: #6d7077; --anatomy-lo: #3c3e45; --anatomy-faint: #26272d; --anatomy-lit: var(--fg);
  --anatomy-halo: #000; --anatomy-halo-opacity: .9; --anatomy-dot: #d9dbdf;
  --anatomy-red: #ff6b6b; --anatomy-green: #6be0a0; --anatomy-blue: #6b9bff;
  --anatomy-weight: .6px; --anatomy-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --y0: #4a3c0c; --y1: #5a4910; --y2: #6e5914; --y3: #806819;
  --n0: #151c31; --n1: #19213a; --n2: #1d2643; --n3: #222c4d;
}
.plant.ready { opacity: 1; }
.plant > svg { width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .plant.ready > svg { animation: plant-drift 40s ease-in-out infinite alternate; transform-origin: 55% 50%; }
}
@keyframes plant-drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.06) translate(-1.2%, .8%); } }
.plant .iso-svg { display: block; overflow: visible; }
.plant .iso-svg path, .plant .iso-svg circle { vector-effect: non-scaling-stroke; }
.plant .iso-fill { fill: var(--anatomy-paper); stroke: none; }
.plant .iso-solid[data-lit] > .iso-fill { fill: var(--anatomy-face); }
.plant .iso-shade, .plant .iso-top { stroke: none; }
.plant .iso-shade[data-shade="0"] { fill: var(--anatomy-shade-0); }
.plant .iso-shade[data-shade="1"] { fill: var(--anatomy-shade-1); }
.plant .iso-shade[data-shade="2"] { fill: var(--anatomy-shade-2); }
.plant .iso-shade[data-shade="3"] { fill: var(--anatomy-shade-3); }
.plant .iso-top { fill: var(--anatomy-top); }
.plant .iso-solid[data-lit] > .iso-top { fill: var(--anatomy-lit-top); }
.plant .iso-solid[data-lit] > .iso-shade { fill: var(--anatomy-lit-shade); }
.plant .iso-solid[data-lit] > .iso-edge { stroke: var(--anatomy-lit); }
.plant .iso-halo { fill: var(--anatomy-halo); stroke: none; filter: blur(9px); opacity: var(--anatomy-halo-opacity); transform: translateY(3px); }
.plant .iso-line { fill: none; stroke: var(--anatomy-lo); stroke-width: var(--anatomy-weight); stroke-linecap: round; stroke-linejoin: round; }
.plant .iso-line[data-tone="hi"] { stroke: var(--anatomy-hi); }
.plant .iso-line[data-tone="mid"] { stroke: var(--anatomy-mid); }
.plant .iso-line[data-tone="lo"] { stroke: var(--anatomy-lo); }
.plant .iso-line[data-tone="faint"] { stroke: var(--anatomy-faint); }
.plant .iso-line[data-tone="lit"] { stroke: var(--anatomy-lit); }
.plant .iso-line[data-dotted] { stroke-dasharray: .01 3.5; stroke-width: 1; }
.plant .iso-line[data-dashed] { stroke-dasharray: 3 3; }
.plant .iso-line[data-flow] { stroke-dasharray: 2 6; animation: iso-flow 1600ms linear infinite; }
.plant .iso-dots circle { fill: var(--anatomy-dot); stroke: none; opacity: .32; }
.plant .iso-dots[data-tone="hi"] circle { opacity: .85; }
.plant .iso-dots[data-tone="mid"] circle { opacity: .45; }
.plant .iso-dots[data-tone="lo"] circle { opacity: .22; }
.plant .iso-dots[data-tone="faint"] circle { opacity: .12; }
.plant .iso-face-text { fill: var(--anatomy-mid); font-family: var(--anatomy-mono); letter-spacing: .04em; }
.plant .iso-face-text[data-tone="hi"] { fill: var(--anatomy-hi); }
.plant .yellow > .iso-shade[data-shade="0"] { fill: var(--y0); } .plant .yellow > .iso-shade[data-shade="1"] { fill: var(--y1); }
.plant .yellow > .iso-shade[data-shade="2"] { fill: var(--y2); } .plant .yellow > .iso-shade[data-shade="3"] { fill: var(--y3); }
.plant .navy > .iso-shade[data-shade="0"] { fill: var(--n0); } .plant .navy > .iso-shade[data-shade="1"] { fill: var(--n1); }
.plant .navy > .iso-shade[data-shade="2"] { fill: var(--n2); } .plant .navy > .iso-shade[data-shade="3"] { fill: var(--n3); }
.plant .road > .iso-fill { fill: var(--anatomy-shade-2); }
@keyframes iso-flow { to { stroke-dashoffset: -32; } }
@media (prefers-reduced-motion: reduce) { .plant .iso-line[data-flow] { animation: none; } }
.hero::after {
  background:
    linear-gradient(180deg, rgba(var(--bg-rgb), .7) 0%, rgba(var(--bg-rgb), .05) 26%, rgba(var(--bg-rgb), .15) 62%, var(--bg) 100%),
    linear-gradient(90deg, rgba(var(--bg-rgb), .92) 0%, rgba(var(--bg-rgb), .62) 38%, rgba(var(--bg-rgb), 0) 72%);
}
a.vcap { color: inherit; }
a.vcap:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.vcap-kicker .live { width: 8px; height: 8px; border-radius: 50%; background: #6be0a0; box-shadow: 0 0 0 0 rgba(107, 224, 160, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(107, 224, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(107, 224, 160, 0); } }
@media (max-width: 1080px) { .plant { right: -40vw; width: max(1100px, 150vw); } }
@media (max-width: 720px) {
  .plant { right: auto; left: 50%; top: 60%; width: 210vw; transform: translate(-50%, -50%); }
  .hero::after {
    background: linear-gradient(180deg, rgba(var(--bg-rgb), .8) 0%, rgba(var(--bg-rgb), .55) 45%, rgba(var(--bg-rgb), .35) 70%, var(--bg) 100%);
  }
}

/* ---------- Съёмки завода ---------- */
.reel-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.reel { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: #000; border: 1px solid var(--line); }
.reel-bg { position: absolute; inset: 0; }
.reel-bg video.active, .reel-bg video.prev { opacity: 1; }
.reel::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .7) 100%); }
.reel-cap { position: absolute; z-index: 3; left: 24px; bottom: 22px; right: 160px; display: grid; gap: 2px; transition: opacity .35s; }
.reel-cap.swap { opacity: 0; }
.reel-cap strong { font: 500 18px/1.25 var(--display); }
.reel-count { position: absolute; z-index: 3; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 8px; font: 500 14px var(--display); color: var(--muted); }
.reel-count b { color: var(--fg); font-weight: 500; }
.reel-count .v-toggle { width: 36px; height: 36px; margin-left: 6px; }
.reel-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 4px; }
.reel-list button {
  width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: start; text-align: left;
  padding: 13px 16px; border-radius: var(--r-sm); background: transparent; border: 1px solid transparent; color: var(--muted);
  font: inherit; cursor: pointer; position: relative; overflow: hidden; transition: background .3s, border-color .3s, color .3s;
}
.reel-list button:hover { color: var(--text); }
.reel-list button.active { background: var(--surface); border-color: var(--line); color: var(--text); }
.rl-n { font: 500 13px/1.6 var(--display); color: var(--dim); }
.reel-list button.active .rl-n { color: var(--text); }
.rl-t strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.4; }
.rl-t small { display: none; font-size: 13.5px; line-height: 1.5; color: var(--muted); margin-top: 2px; }
.reel-list button.active .rl-t small { display: block; }
.rl-p { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--fg); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; opacity: 0; }
.reel-list button.active .rl-p { opacity: 1; }
@media (max-width: 1080px) { .reel-grid { grid-template-columns: 1fr; gap: 32px; } .reel { order: -1; } .reel-text { order: 0; } }
@media (max-width: 720px) {
  .reel { aspect-ratio: 4 / 3; }
  .reel-cap { left: 16px; bottom: 16px; right: 120px; }
  .reel-cap strong { font-size: 15px; }
  .reel-cap .vcap-kicker { display: none; }
  .reel-list { margin-top: 20px; }
}

/* ---------- Характеристики завода ---------- */
.pkpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.pk { padding: 24px 18px 22px; border-left: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.pk:first-child { border-left: 0; padding-left: 0; }
.pk b { font: 500 clamp(26px, 2.5vw, 40px)/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.pk b small { font-size: .42em; color: var(--muted); margin-left: 5px; letter-spacing: 0; }
.pk span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 1180px) {
  .pkpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pk:nth-child(4) { border-left: 0; padding-left: 0; }
  .pk:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .pkpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk { padding: 18px 12px 16px; }
  .pk:nth-child(4) { border-left: 1px solid var(--line); padding-left: 12px; }
  .pk:nth-child(odd) { border-left: 0; padding-left: 0; }
  .pk:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ================================================================ Светлая тема (html[data-theme="light"]) */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f3f1; --bg-2: #ebebe8; --surface: #ffffff; --surface-2: #f1f1ee;
  --fg: #101113; --on-fg: #ffffff; --fg-rgb: 16, 17, 19; --bg-rgb: 243, 243, 241;
  --line: rgba(16, 17, 19, .1); --line-2: rgba(16, 17, 19, .18);
  --text: #141518; --soft: #3a3d44; --muted: #5f636b; --dim: #989ba2;
  --chrome: linear-gradient(110deg, #2a2c31 0%, #6f737b 25%, #1a1b1f 45%, #8b8f97 65%, #2c2e33 100%);
  --chrome-text: linear-gradient(100deg, #0f1012 0%, #44474e 40%, #7b7f87 62%, #17181b 100%);
}
html[data-theme="light"] body::before { opacity: .035; }
html[data-theme="light"] .hero { background: var(--bg); }
html[data-theme="light"] .nav.solid .nav-inner, html[data-theme="light"] .nav.open-mega .nav-inner { background: rgba(255, 255, 255, .78); }
html[data-theme="light"] .submenu, html[data-theme="light"] .mega { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .18); }
html[data-theme="light"] .lightbox { background: rgba(243, 243, 241, .97); }
html[data-theme="light"] .wordmark img { opacity: .09; }
html[data-theme="light"] .marquee-track span { -webkit-text-stroke-color: rgba(16, 17, 19, .35); }
/* Карточки поверх фото и видео остаются тёмными — текст на снимках всегда светлый */
html[data-theme="light"] :is(.tile, .service, .rail-card .ph, .mega-item, .promo-video, .reel, .prod-video, .article-video) {
  --fg: #fff; --on-fg: #0a0a0b; --fg-rgb: 255, 255, 255; --bg-rgb: 9, 9, 11;
  --text: #ededf0; --soft: #d4d6db; --muted: #b3b5bb; --line: rgba(255, 255, 255, .12); --line-2: rgba(255, 255, 255, .2);
  color: var(--text);
}
/* Живая схема завода в светлой теме */
html[data-theme="light"] .plant {
  --anatomy-paper: #f7f7f5; --anatomy-face: #ffffff; --anatomy-top: #ffffff;
  --anatomy-shade-0: #d9dbdf; --anatomy-shade-1: #e3e5e8; --anatomy-shade-2: #eceef0; --anatomy-shade-3: #f4f5f6;
  --anatomy-lit-top: #ffffff; --anatomy-lit-shade: #eef0f3;
  --anatomy-hi: #23262c; --anatomy-mid: #858a93; --anatomy-lo: #b4b8bf; --anatomy-faint: #d6d9dd; --anatomy-lit: #000;
  --anatomy-halo: #8a8d93; --anatomy-halo-opacity: .3; --anatomy-dot: #3a3d44;
  --y0: #d9a91c; --y1: #e4b42a; --y2: #ecc043; --y3: #f3cd5e;
  --n0: #6d7cab; --n1: #8090bd; --n2: #95a3ca; --n3: #aab6d6;
}

/* ---------- Переключатели темы и языка ---------- */
.theme-toggle .i-sun { display: none; }
html[data-theme="light"] .theme-toggle .i-sun { display: block; }
html[data-theme="light"] .theme-toggle .i-moon { display: none; }
.lang { position: relative; }
.lang-btn { width: auto; min-width: 44px; padding: 0 12px; gap: 6px; display: inline-flex; font: 700 12.5px/1 var(--font); letter-spacing: .04em; }
.lang-btn svg { width: 12px; height: 12px; transition: transform .25s; }
.lang.open .lang-btn svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 170px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s; z-index: 120;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: flex; justify-content: space-between; gap: 14px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--soft); }
.lang-menu a small { color: var(--dim); font-weight: 700; font-size: 11.5px; letter-spacing: .06em; }
.lang-menu a:hover { background: rgba(var(--fg-rgb), .06); color: var(--text); }
.lang-menu a[aria-current] { color: var(--text); background: rgba(var(--fg-rgb), .08); }
.mobile-prefs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.mobile-prefs a, .mobile-prefs button {
  height: 40px; padding: 0 14px; border-radius: 100px; border: 1px solid var(--line-2); background: none; color: var(--soft);
  display: inline-flex; align-items: center; gap: 8px; font: 700 13px var(--font); cursor: pointer;
}
.mobile-prefs a[aria-current] { background: var(--fg); color: var(--on-fg); border-color: var(--fg); }
.mobile-prefs svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 720px) { .nav-actions .lang, .nav-actions .theme-toggle { display: none; } }
/* Китайский и казахский: шрифты с нужными символами */
html[lang="zh-Hans"] body { font-family: "Manrope", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html[lang="zh-Hans"] :is(h1, h2, h3, h4, .section-title, .statement) { font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 700; letter-spacing: 0; }
/* Логотип: белый хром в тёмной теме, графитовый — в светлой */
html[data-theme="light"] img[src*="logo-white"] { filter: invert(1) hue-rotate(180deg); }
html[data-theme="light"] .n-placeholder { background: radial-gradient(ellipse at 70% 20%, #e4e5e8, var(--surface) 70%); }
html[data-theme="light"] .n-placeholder img { opacity: .14; }

/* Шапка подстраивается под длину меню на текущем языке (main.js): прячет телефон, ужимается, в крайнем случае — бургер */
.nav.no-phone .nav-phone, .nav.no-cta .nav-actions .btn { display: none; }
.nav.tight .nav-inner { gap: 10px; padding-left: 20px; }
.nav.tight .menu > li > a { padding: 0 8px; font-size: 13.5px; }
.nav.tight .nav-actions { gap: 6px; }
.nav.tight .nav-logo img { height: 36px; }
.nav.tighter .nav-inner { padding: 0 8px 0 16px; }
.nav.tighter .menu > li > a { padding: 0 6px; font-size: 12.5px; gap: 4px; }
.nav.tighter .nav-actions { gap: 4px; }
.nav.tighter .nav-actions .icon-btn { width: 38px; height: 38px; }
.nav.tighter .lang-btn { min-width: 38px; padding: 0 9px; }
.nav.tighter .nav-logo img { height: 30px; }
.nav.compact .menu, .nav.compact .nav-actions .btn { display: none; }
.nav.compact .burger { display: flex; }
.nav.compact .nav-actions { margin-left: auto; }
/* Телефоны: крупные цифры не вылезают за экран */
@media (max-width: 720px) { .stat b { font-size: clamp(26px, 8.2vw, 40px); } .pk b { font-size: clamp(22px, 7vw, 30px); } }
.section.glow { overflow-x: clip; }
html[data-theme="light"] .submenu, html[data-theme="light"] .mega { background: rgba(255, 255, 255, .97); }

/* ================================================================ 3D-модели (assets/js/models3d.js) */
.m3d {
  --m3d-face: #1d1e24; --m3d-face2: #2a2c33; --m3d-panel: #3a3d46; --m3d-edge: #d9dbdf; --m3d-accent: #e2b52c; --m3d-navy: #34477d;
  --m3d-glass: #6f8fb8; --m3d-concrete: #4a4c52; --m3d-grid: #ffffff; --m3d-blueprint: #7fa8ff;
  margin: 0 0 40px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden;
}
html[data-theme="light"] .m3d {
  --m3d-face: #ffffff; --m3d-face2: #eceef1; --m3d-panel: #dfe2e7; --m3d-edge: #23262c; --m3d-accent: #f2c230; --m3d-navy: #8090bd;
  --m3d-glass: #a9c4e4; --m3d-concrete: #c9ccd2; --m3d-grid: #101113; --m3d-blueprint: #3e63dd;
}
.m3d-off { display: none; }
.m3d-stage {
  position: relative; aspect-ratio: 16 / 10; cursor: grab; touch-action: pan-y;
  background: radial-gradient(ellipse at 50% 40%, rgba(var(--fg-rgb), .05), transparent 70%);
}
.m3d-drag .m3d-stage { cursor: grabbing; }
.m3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s; }
.m3d-ready .m3d-canvas { opacity: 1; }
.m3d-corner { position: absolute; z-index: 2; font: 600 11px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.m3d-corner.tl { top: 16px; left: 18px; color: var(--text); padding: 4px 7px; border: 1px solid var(--line-2); border-radius: 6px; }
.m3d-corner.tr { top: 20px; right: 18px; max-width: 60%; text-align: right; }
.m3d-corner.bl { bottom: 18px; left: 18px; opacity: .8; }
.m3d-play { position: absolute; z-index: 3; right: 14px; bottom: 12px; width: 38px; height: 38px; }
.m3d-play svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.m3d-play .i-play, .m3d-play.paused .i-pause { display: none; }
.m3d-play.paused .i-play { display: block; }
.m3d-label {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; white-space: nowrap;
  font: 700 11.5px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--on-fg); background: var(--m3d-accent);
  padding: 5px 7px; border-radius: 5px; margin: -11px 0 0 8px; opacity: 0; transition: opacity .4s;
}
html[data-theme="light"] .m3d-label { color: #111; }
.m3d-label.on { opacity: 1; }
.m3d-steps { list-style: none; margin: 0; padding: 6px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px; border-top: 1px solid var(--line); }
.m3d-steps button {
  position: relative; width: 100%; height: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 11px 12px 13px;
  border: 0; border-radius: 10px; background: none; color: var(--muted); font: 600 13px/1.35 var(--font); cursor: pointer; overflow: hidden; transition: color .3s, background .3s;
}
.m3d-steps button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--m3d-accent); transform: scaleX(0); transform-origin: 0 50%; }
.m3d-steps b { font: 600 11px/1.6 var(--display); color: var(--dim); }
.m3d-steps li.done button { color: var(--soft); }
.m3d-steps li.on button { color: var(--text); background: rgba(var(--fg-rgb), .05); }
.m3d-steps li.on button::after { transform: scaleX(var(--k, 0)); }
.m3d-steps li.on b, .m3d-steps li.done b { color: var(--m3d-accent); }
.m3d-steps button:hover { color: var(--text); }
@media (max-width: 720px) {
  .m3d-stage { aspect-ratio: 4 / 3.4; }
  .m3d-corner.tr { display: none; }
  .m3d-steps { grid-template-columns: 1fr 1fr; }
  .m3d-steps button { padding: 9px 10px 12px; font-size: 12.5px; }
}
