/* weldteam — dark industrial UI, mobile-first */

:root {
  --bg: #08090a;
  --bg-soft: #0d0f11;
  --panel: #111417;
  --panel-2: #171b1f;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #eef1f3;
  --muted: #8d959d;
  --dim: #616970;
  --arc: #ff7a1a;
  --arc-2: #ffcf6a;
  --arc-soft: rgba(255, 122, 26, .14);
  --argon: #7fd4ff;
  --ok: #46d18a;
  --r: 14px;
  --pad: clamp(18px, 4.4vw, 40px);
  --max: 1240px;
  --font: "Bahnschrift", "DIN Alternate", "Inter Tight", "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Consolas", monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  color-scheme: dark; scrollbar-gutter: stable;
}

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #262c32; border: 3px solid var(--bg); border-radius: 100px;
  transition: background .2s;
}
::-webkit-scrollbar-thumb:hover { background: #3b444d; }
::-webkit-scrollbar-thumb:active { background: var(--arc); }
::-webkit-scrollbar-corner { background: var(--bg); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: #2b3238 var(--bg); }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
[id] { scroll-margin-top: 88px; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--arc); color: #140800; }
:focus-visible { outline: 2px solid rgba(255, 122, 26, .75); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

/* film grain */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .035;
  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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--arc), transparent);
}
.eyebrow.no-line::before { display: none; }
h1, h2, h3 {
  margin: 0; font-weight: 600; line-height: 1.02; letter-spacing: -.03em;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 8.4vw, 96px); }
h2 { font-size: clamp(28px, 4.6vw, 52px); }
h3 { font-size: clamp(19px, 2.2vw, 23px); letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
b, strong, .mono, .card .num, .stat, time { font-variant-numeric: tabular-nums; }
.lead { color: var(--muted); font-size: clamp(15px, 1.7vw, 18px); line-height: 1.6; max-width: 56ch; }
.hl {
  background: linear-gradient(100deg, var(--arc-2), var(--arc) 55%, #ff5c00);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--dim); }
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.page-hero + .section { padding-top: clamp(38px, 5vw, 64px); }
.sec-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.sec-head p { max-width: 46ch; }

/* ---------- buttons ---------- */
.btn {
  --bg-btn: var(--arc); --fg-btn: #1a0a00;
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 100px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  background: var(--bg-btn); color: var(--fg-btn);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  box-shadow: 0 10px 30px -12px rgba(255, 122, 26, .6);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(255, 122, 26, .75); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  --bg-btn: transparent; --fg-btn: var(--text);
  border: 1px solid var(--line-strong); box-shadow: none; backdrop-filter: blur(6px);
}
.btn.ghost:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .04); }
.btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 58%);
}
.btn.ghost::after { display: none; }
.btn svg { width: 18px; height: 18px; }
.btn.sm { height: 42px; padding: 0 18px; font-size: 14px; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.hdr.scrolled {
  background: rgba(8, 9, 10, .78); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line); box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .9);
}
.hdr .inner {
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: .12em; font-size: 14px; }
.logo .mark {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  object-fit: contain; filter: drop-shadow(0 0 10px rgba(255,122,26,.18));
}
.logo:hover .mark { filter: brightness(1.08); }
.logo .brand { font-size: 15px; letter-spacing: .08em; }
.logo .brand em { font-style: normal; color: var(--arc); }
.logo small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .16em; color: var(--dim); font-weight: 400; }
.nav { display: none; gap: 28px; font-size: 14px; color: #c6ccd2; }
.nav a { position: relative; padding: 6px 0; transition: color .2s; white-space: nowrap; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--arc); transition: width .3s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { width: 100%; }
.hdr-cta { display: none; align-items: center; gap: 12px; }
.burger {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line);
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .25s, opacity .2s;
}
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(8, 9, 10, .97);
  backdrop-filter: blur(20px); padding: 96px var(--pad) 40px;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
body.menu-open .menu { opacity: 1; visibility: visible; transform: none; }
.menu a {
  font-size: clamp(28px, 8vw, 44px); font-weight: 600; letter-spacing: -.03em;
  padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center;
}
.menu a span { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .1em; }
.menu .foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; color: var(--muted); font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: 100px 0 34px; overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media .poster {
  width: 100%; height: 100%; object-fit: cover; object-position: 24% 44%;
  filter: grayscale(.25) contrast(1.05) brightness(.62);
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 78% 28%, rgba(255, 122, 26, .24), transparent 55%),
    linear-gradient(180deg, rgba(8, 9, 10, .85) 0%, rgba(8, 9, 10, .35) 34%, rgba(8, 9, 10, .78) 74%, var(--bg) 100%),
    linear-gradient(90deg, rgba(8, 9, 10, .92) 0%, rgba(8, 9, 10, .35) 60%, rgba(8, 9, 10, .2) 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(90% 60% at 50% 40%, #000 20%, transparent 78%);
}
#sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .9; }
.hero .inner { position: relative; width: 100%; z-index: 2; }
.hero-figure {
  position: absolute; right: 4vw; bottom: 20%; width: min(31vw, 440px);
  margin: 0; z-index: 0; pointer-events: none;
  filter: drop-shadow(0 24px 70px rgba(0, 0, 0, .6));
}
.hero-figure img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 84%, transparent 100%);
}
#sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* отблески на маске: светятся вместе с искрами (--flash из site.js) */
.hero-figure { --flash: 0; --flick: .35; }
.hero-figure .glint {
  position: absolute; inset: 0; pointer-events: none;
  background: url("/assets/img/hero/helmet-glow-600.webp?v=13") center / 100% 100% no-repeat;
  mix-blend-mode: screen;
  opacity: calc(var(--flash) * .95);
  transition: opacity .05s linear;
}
/* оранжевая кромка слева: мягко светится вместе с искрами */
.hero-figure .rim-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: url("/assets/img/hero/rim-glow-600.webp?v=13") center / 100% 100% no-repeat;
  mix-blend-mode: screen;
  opacity: calc(.55 + var(--flash) * .45);
}
/* мерцание самого стекла: быстрее и резче, чем свечение купола */
.hero-figure .visor-flick {
  position: absolute; inset: 0; pointer-events: none;
  background: url("/assets/img/hero/visor-glow-600.webp?v=13") center / 100% 100% no-repeat;
  mix-blend-mode: screen;
  opacity: calc(var(--flick) * .95);
}

@media (min-width: 900px) {
  .hero .inner { max-width: min(100%, 900px); margin-inline: 0 auto; }
  .hero h1 { font-size: clamp(50px, 5.1vw, 72px); }
  .hero .lead { max-width: 46ch; }
}
@media (max-width: 899px) { .hero-figure { display: none; } }
.hero h1 { margin: 18px 0 20px; }
.hero h1 em { font-style: normal; display: block; color: #fff; }
.hero .lead { max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--arc); box-shadow: 0 0 8px var(--arc); }
.hero-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  margin-top: clamp(36px, 7vw, 76px); padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-bottom .hint { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.hero-bottom .hint svg { width: 15px; height: 15px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 100px;
  border: 1px solid var(--line-strong); background: rgba(8, 9, 10, .45); backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #cfd5da;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }

/* ---------- services ---------- */
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card {
  position: relative; padding: 26px 24px 24px; border-radius: var(--r);
  border: 1px solid var(--line); background: linear-gradient(165deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease), background .3s, box-shadow .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(150deg, rgba(255, 122, 26, .8), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s;
}
.card:hover {
  transform: translateY(-4px); border-color: rgba(255, 255, 255, .16);
  background: linear-gradient(165deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .015));
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, .9);
}
.card:hover::before { opacity: 1; }
.card .num {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--arc);
  display: flex; align-items: center; gap: 10px; margin-bottom: 40px;
}
.card .num::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.card li { position: relative; padding-left: 18px; font-size: 14px; color: #cfd5da; }
.card li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px;
  border-left: 1px solid var(--arc); border-bottom: 1px solid var(--arc); transform: rotate(-45deg);
}
.card .more-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  font-size: 13.5px; color: var(--arc);
}
.card .more-link svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.card .more-link:hover svg { transform: translateX(3px); }
.card .tag {
  position: absolute; top: 22px; right: 22px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .1em; color: var(--dim); text-transform: uppercase;
}
.note-line {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 16px 18px;
  border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); font-size: 13.5px;
}
.note-line b { color: var(--text); font-weight: 600; }

/* ---------- works ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 9px 16px; border-radius: 100px; border: 1px solid var(--line);
  font-size: 13px; color: var(--muted); transition: .2s; background: transparent;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.on { background: var(--text); color: #0a0b0c; border-color: var(--text); font-weight: 600; }
.grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.tile {
  position: relative; overflow: hidden; border-radius: 12px; background: var(--panel);
  aspect-ratio: 3 / 4; cursor: zoom-in; border: 1px solid var(--line);
  transition: opacity .3s, transform .4s var(--ease), border-color .3s;
}
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.tile:hover img { transform: scale(1.04); }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(4, 5, 6, .55) 72%, rgba(4, 5, 6, .92));
  opacity: .95; transition: opacity .3s;
}
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px 14px 13px;
  transform: translateY(4px); transition: transform .35s var(--ease);
}
.tile figcaption b {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 13.5px; font-weight: 600; line-height: 1.28;
}
.tile figcaption span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--arc-2); text-transform: uppercase; margin-top: 5px; }
.tile:hover figcaption { transform: none; }
.tile.hide { display: none; }
.tile .play {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(8, 9, 10, .6); backdrop-filter: blur(6px); display: grid; place-items: center;
  border: 1px solid var(--line-strong);
}
.tile .play svg { width: 12px; height: 12px; fill: #fff; }
.tile.featured { grid-column: span 2; aspect-ratio: 4 / 3; }
.more { display: flex; justify-content: center; margin-top: 26px; }

/* ---------- tech ---------- */
.tech { background: radial-gradient(80% 60% at 50% 0%, rgba(255, 122, 26, .07), transparent 60%); }
.tech-inner { display: grid; gap: 36px; align-items: center; }
.tech-points { display: grid; gap: 16px; margin-top: 26px; }
.tech-point { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.tech-point .k {
  font-family: var(--mono); font-size: 11px; color: var(--argon); letter-spacing: .1em; min-width: 42px; padding-top: 3px;
}
.tech-point b { display: block; font-weight: 600; margin-bottom: 3px; font-size: 15px; }
.tech-point span { color: var(--muted); font-size: 14px; }
.diagram {
  position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  background: radial-gradient(70% 70% at 55% 60%, rgba(255, 122, 26, .09), transparent 65%), var(--bg-soft);
}
.diagram::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(75% 70% at 55% 55%, #000 30%, transparent 78%);
  mask-image: radial-gradient(75% 70% at 55% 55%, #000 30%, transparent 78%);
}
.diagram svg { position: relative; width: 100%; height: auto; }
.diagram .cap {
  display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 6px 4px 0;
}
.arc-line { stroke-dasharray: 3 4; animation: gas 1.4s linear infinite; }
@keyframes gas { to { stroke-dashoffset: -28; } }
.arc-glow { animation: flicker 2.6s steps(2, end) infinite; }
@keyframes flicker { 0%, 92%, 100% { opacity: .95; } 94% { opacity: .55; } 96% { opacity: 1; } }
.pool { animation: pool 3s ease-in-out infinite; transform-origin: center; }
@keyframes pool { 50% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) {
  .arc-line, .arc-glow, .pool, .hero-bottom .hint svg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- process ---------- */
.steps { display: grid; gap: 0; counter-reset: s; }
.step {
  position: relative; padding: 22px 0 22px 56px; border-top: 1px solid var(--line);
  counter-increment: s;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  content: "0" counter(s); position: absolute; left: 0; top: 20px;
  font-family: var(--mono); font-size: 12px; color: var(--arc); letter-spacing: .1em;
}
.step::after {
  content: ""; position: absolute; left: 26px; top: 40px; bottom: -1px; width: 1px;
  background: linear-gradient(var(--line-strong), transparent);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; max-width: 52ch; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 0; }
details {
  border-top: 1px solid var(--line); padding: 4px 0;
}
details:last-child { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 18px 0; font-size: clamp(15px, 1.7vw, 18px); font-weight: 500;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; font-family: var(--mono); font-size: 20px; color: var(--arc); transition: transform .3s var(--ease);
  flex: none;
}
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); font-size: 14.5px; padding: 0 0 20px; max-width: 70ch; }

/* ---------- contact ---------- */
.contact { background: linear-gradient(180deg, transparent, rgba(255, 122, 26, .045)); }
.contact-grid { display: grid; gap: 34px; }
.contact-aside { display: flex; flex-direction: column; gap: 22px; }
.contact-list { display: grid; gap: 10px; }
.contact-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left;
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02);
  transition: border-color .25s, background .25s;
}
.contact-item:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .04); }
.contact-item .t { display: flex; flex-direction: column; gap: 3px; }
.contact-item b { font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.contact-item .t span { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.contact-item svg { width: 18px; height: 18px; color: var(--arc); flex: none; }
.form {
  border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 30px);
  background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01));
}
.form h3 { margin-bottom: 6px; }
.form .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.field input, .field textarea {
  width: 100%; background: rgba(0, 0, 0, .35); border: 1px solid var(--line);
  border-radius: 10px; padding: 13px 14px; color: var(--text); font: inherit; font-size: 15px;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-color: rgba(255, 122, 26, .55); background: rgba(0, 0, 0, .55); }
.form .btn { width: 100%; margin-top: 6px; }
.form .fine { font-size: 12px; color: var(--dim); margin-top: 12px; text-align: center; }
.form .status { font-size: 13.5px; margin-top: 12px; text-align: center; color: var(--ok); min-height: 20px; }
.form .status.err { color: #ff7d7d; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 34px 0 90px; }
.foot .inner { display: flex; flex-direction: column; gap: 20px; }
.foot .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 13.5px; }
.foot nav a:hover { color: var(--text); }
.foot .copy { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--dim); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-right: 0; }
@media (max-width: 719px) {
  .chat-btn { display: none; }
  .chat-panel {
    inset: 0; width: 100%; height: 100svh; border-radius: 0; border: 0;
    transform: translateY(100%);
  }
  .chat-panel.open { transform: none; }
  .chat-head { padding-top: calc(14px + env(safe-area-inset-top)); }
  .chat-body { padding-bottom: 8px; }
  body { padding-bottom: 74px; }
  .tile figcaption { padding: 10px 10px 11px; }
  .tile figcaption b { font-size: 12.5px; }
  .tile figcaption span { font-size: 9px; letter-spacing: .08em; margin-top: 3px; }
  .grid { gap: 8px; }
  .contact { padding-bottom: 40px; }
}

@media (min-width: 720px) { .foot .copy { padding-right: 170px; } }

/* ---------- mobile bar ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8, 9, 10, .86); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.mbar.show { transform: none; }
.mbar .btn { flex: 1; height: 46px; }

/* ---------- chat ---------- */
.chat-btn {
  position: fixed; right: 16px; bottom: 18px; z-index: 55;
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 14px;
  border-radius: 100px; background: var(--arc); color: #1a0a00; font-weight: 600; font-size: 14px;
  box-shadow: 0 14px 40px -10px rgba(255, 122, 26, .75); transition: transform .3s var(--ease);
}
.chat-btn:hover { transform: translateY(-2px); }
.chat-btn .ico { width: 22px; height: 22px; }
.chat-btn[data-unread]:not([data-unread="0"])::after {
  content: attr(data-unread); position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px;
  border-radius: 10px; background: #fff; color: #0a0b0c; font-size: 11px; display: grid; place-items: center;
  padding: 0 5px; font-weight: 700;
}
.chat-btn .label { display: none; }
.chat-panel {
  position: fixed; z-index: 56; right: 16px; bottom: 16px;
  width: min(390px, calc(100vw - 24px)); height: min(620px, calc(100svh - 32px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--line-strong);
  background: #0c0e10; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98);
  transition: opacity .22s, transform .28s var(--ease), visibility .22s;
}
.chat-panel.open { opacity: 1; visibility: visible; transform: none; }
.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 14px 13px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03); flex: none;
}
.chat-ava {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(from 200deg, #ffb347, #ff6a00, #8a2c00, #ffb347); color: #1a0a00;
}
.chat-ava svg { width: 20px; height: 20px; }
.chat-head .who { flex: 1; min-width: 0; }
.chat-head b { display: block; font-size: 14px; font-weight: 600; }
.chat-head .st { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.chat-head .st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.chat-panel[data-state="offline"] .chat-head .st::before { background: #ffb020; }
.chat-close { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); }
.chat-close:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.chat-body {
  flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px;
  overscroll-behavior: contain; scrollbar-width: thin;
}
.msg { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.msg.in { align-self: flex-start; background: var(--panel-2); border-bottom-left-radius: 5px; }
.msg.out { align-self: flex-end; background: linear-gradient(150deg, #ff9040, #ff6a00); color: #1a0a00; border-bottom-right-radius: 5px; }
.msg.sys { align-self: center; background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); font-size: 12px; text-align: center; max-width: 92%; }
.msg img { border-radius: 9px; margin-top: 6px; max-width: 100%; }
.msg .time { display: block; font-family: var(--mono); font-size: 9.5px; opacity: .55; margin-top: 5px; letter-spacing: .06em; }
.chat-quick { display: flex; gap: 6px; padding: 0 14px 10px; flex-wrap: wrap; flex: none; }
.chat-quick button { font-size: 12px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); }
.chat-quick button:hover { color: var(--text); border-color: var(--line-strong); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex: none; align-items: flex-end; }
.chat-form textarea {
  flex: 1; resize: none; min-height: 42px; max-height: 96px; overflow-y: auto; background: rgba(0, 0, 0, .4); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 12px; color: var(--text); font: inherit; font-size: 14px; line-height: 1.4;
}
.chat-form textarea:focus { outline: none; border-color: rgba(255, 122, 26, .5); }
.chat-attach, .chat-send {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line); color: var(--muted);
}
.chat-attach:hover { color: #fff; border-color: var(--line-strong); }
.chat-send { background: var(--arc); border-color: transparent; color: #1a0a00; }
.chat-send:disabled { opacity: .4; }
.chat-send svg { width: 17px; height: 17px; }
.chat-note { font-size: 10.5px; color: var(--dim); text-align: center; padding: 0 14px 10px; flex: none; }
.typing { display: flex; gap: 4px; padding: 12px 14px; align-self: flex-start; background: var(--panel-2); border-radius: 14px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: t 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes t { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center;
  background: #050607; padding: 16px; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lb.open { opacity: 1; visibility: visible; }
.lb figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 12px; }
.lb img, .lb video { max-height: calc(100svh - 150px); width: auto; max-width: 100%; margin: 0 auto; border-radius: 10px; object-fit: contain; }
.lb figcaption { color: var(--muted); font-size: 13.5px; text-align: center; padding: 0 40px; }
.lb figcaption b { color: var(--text); font-weight: 600; display: block; margin-bottom: 3px; }
.lb .x, .lb .pv, .lb .nx {
  position: absolute; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line-strong); color: #fff;
}
.lb .x { top: 14px; right: 14px; }
.lb .pv { left: 10px; top: 50%; transform: translateY(-50%); }
.lb .nx { right: 10px; top: 50%; transform: translateY(-50%); }
.lb .count { position: absolute; top: 22px; left: 18px; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s 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) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 719px) {
  .chat-btn { display: none; }
  .chat-panel {
    inset: 0; width: 100%; height: 100svh; border-radius: 0; border: 0;
    transform: translateY(100%);
  }
  .chat-panel.open { transform: none; }
  .chat-head { padding-top: calc(14px + env(safe-area-inset-top)); }
  .chat-body { padding-bottom: 8px; }
  body { padding-bottom: 74px; }
  .tile figcaption { padding: 10px 10px 11px; }
  .tile figcaption b { font-size: 12.5px; }
  .tile figcaption span { font-size: 9px; letter-spacing: .08em; margin-top: 3px; }
  .grid { gap: 8px; }
  .contact { padding-bottom: 40px; }
}

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .tile.featured { grid-column: span 2; }
  .chat-btn { right: 24px; bottom: 24px; }
  .chat-btn .label { display: inline; }
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .step:nth-child(2) { border-top: 1px solid var(--line); }
  .step::after { display: none; }
  .tech-inner { grid-template-columns: 1.05fr .95fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
  .foot { padding-bottom: 44px; }
  .mbar { display: none; }
}
@media (min-width: 980px) and (max-width: 1140px) {
  .nav { gap: 18px; font-size: 13px; }
  .hdr-cta { gap: 8px; }
}
@media (min-width: 980px) {
  .nav { display: flex; }
  .hdr-cta { display: flex; }
  .burger { display: none; }
  .hdr .inner { height: 76px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .tech-inner { grid-template-columns: 1fr 1.05fr; gap: 64px; }
  .steps { grid-template-columns: repeat(4, 1fr); column-gap: 28px; }
  .step { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0 26px 0; }
  .step::before { position: static; display: block; margin-bottom: 16px; }
  .contact-grid { grid-template-columns: .9fr 1.1fr; }
  .hero { align-items: center; }
}

/* ---------- landing pages (services / geo) ---------- */
.crumbs {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
  margin-bottom: 26px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs span { opacity: .5; }

.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(104px, 13vw, 170px) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 130%; z-index: -1;
  background:
    radial-gradient(60% 60% at 78% 20%, rgba(255, 122, 26, .16), transparent 70%),
    radial-gradient(50% 50% at 20% 0%, rgba(127, 212, 255, .06), transparent 70%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .4;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 50% 20%, #000 10%, transparent 75%);
}
.page-hero h1 { font-size: clamp(34px, 6.4vw, 64px); margin: 16px 0 18px; max-width: 20ch; }
.page-hero .lead { max-width: 62ch; }
.page-hero .hero-cta { margin-top: 26px; }
.page-hero .hero-meta { margin-top: 22px; }

.svc-layout { display: grid; gap: 34px; }
.svc-main { min-width: 0; }
.svc-main h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 16px; letter-spacing: -.02em; }
.svc-main h2 + .checks { margin-top: 0; }
.svc-main > h2:not(:first-child) { margin-top: clamp(34px, 5vw, 54px); }
.checks { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.checks li {
  position: relative; padding: 12px 14px 12px 38px; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255, 255, 255, .02); font-size: 14.5px; color: #d6dbe0;
}
.checks li::before {
  content: ""; position: absolute; left: 15px; top: 17px; width: 9px; height: 5px;
  border-left: 1.6px solid var(--arc); border-bottom: 1.6px solid var(--arc); transform: rotate(-45deg);
}
.svc-gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px;
  grid-auto-rows: clamp(130px, 18vw, 210px);
}
.svc-gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); height: 100%; }
.svc-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; font-size: 11.5px; color: #d9dee3;
  background: linear-gradient(180deg, transparent, rgba(4, 5, 6, .9));
}
.svc-gallery figure:first-child { grid-column: span 2; }

.svc-aside { min-width: 0; }
.aside-card {
  position: sticky; top: 92px; border: 1px solid var(--line-strong); border-radius: 16px;
  padding: 22px; background: linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .01));
}
.aside-card b { display: block; font-size: 17px; margin-bottom: 8px; }
.aside-card p { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.aside-card .btn { width: 100%; margin-bottom: 10px; }
.aside-card .tg-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; margin-bottom: 16px;
}
.aside-card .tg-link:hover { border-color: var(--line-strong); }
.aside-card .addr { font-family: var(--mono); font-size: 10.5px; line-height: 1.9; letter-spacing: .06em; color: var(--dim); text-transform: uppercase; }

.cta-band {
  margin-top: clamp(34px, 5vw, 54px); padding: clamp(22px, 3vw, 30px); border-radius: 16px;
  border: 1px solid rgba(255, 122, 26, .35);
  background: radial-gradient(80% 140% at 90% 20%, rgba(255, 122, 26, .18), transparent 60%), var(--bg-soft);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.cta-band b { display: block; font-size: clamp(17px, 2.2vw, 21px); margin-bottom: 4px; }
.cta-band span { color: var(--muted); font-size: 14px; }

.svc-cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
.svc-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .025);
  transition: border-color .25s, transform .3s var(--ease), background .25s;
}
.svc-card:hover { border-color: rgba(255, 122, 26, .45); transform: translateY(-3px); background: rgba(255, 255, 255, .05); }
.svc-card .k { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--arc); text-transform: uppercase; }
.svc-card b { font-size: 16.5px; font-weight: 600; line-height: 1.25; }
.svc-card span {
  color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

.geo-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.geo-list a {
  padding: 9px 14px; border-radius: 100px; border: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.geo-list a:hover { color: var(--text); border-color: var(--line-strong); }

@media (min-width: 720px) {
  .svc-gallery { grid-template-columns: repeat(3, 1fr); }
  .svc-gallery figure:first-child { grid-column: auto; }
  .svc-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
  .svc-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
}
