/* GNV METAL — тёмные карточки «кузницы», огненный акцент из логотипа, Onest */
:root {
  --page: #ECEEF1;        /* светлый фон страницы */
  --card: #FFFFFF;
  --soft: #F4F5F7;        /* плитки внутри светлых панелей */
  --line: #DADDE2;
  --ink: #16181B;         /* тёмные карточки и основной текст */
  --ink-2: #202328;
  --ink-3: #30353C;
  --mute: #6A717B;
  --mute-dark: #A3AAB3;   /* второстепенный текст на тёмном */
  --on-dark: #F2F3F5;
  --fire-1: #FFC24A;
  --fire-2: #FF7A1A;
  --fire-3: #E8431A;
  --fire: linear-gradient(100deg, var(--fire-1) 0%, var(--fire-2) 48%, var(--fire-3) 100%);
  --btn: linear-gradient(180deg, #FF8C24 0%, #F2611A 100%);

  --f: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-lg: 1.1875rem;
  --t-h3: 1.1875rem;
  --t-h2: clamp(2rem, 4.2vw, 3.5rem);
  --t-h1: clamp(2.5rem, 5.6vw, 5.25rem);

  --gutter: clamp(16px, 3vw, 32px);
  --max: 1320px;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --dock-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html.is-loading { overflow: hidden; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 var(--t-base)/1.6 var(--f);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--dock-h);
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; max-width: 62ch; }
:focus-visible { outline: 2px solid var(--fire-2); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--fire-2); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.h2 { font-size: var(--t-h2); line-height: 1.04; font-weight: 600; letter-spacing: -0.035em; margin: 0 0 0.45em; text-wrap: balance; }
.h3 { font-size: var(--t-h3); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.35em; }
.lead { font-size: var(--t-lg); line-height: 1.55; }
.fire-text { background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-fire { background: var(--btn); color: #fff; box-shadow: 0 10px 28px -10px rgba(242, 97, 26, .75), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-fire:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(242, 97, 26, .9), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { background: rgba(255,255,255,.08); color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.btn-wide { width: 100%; }
.badge {
  position: absolute; top: -10px; right: 14px; padding: 3px 8px; border-radius: 6px;
  background: var(--fire-2); color: #fff; font-size: .6875rem; font-weight: 700; letter-spacing: .02em; line-height: 1.2;
}

/* ---------- знак GNV ---------- */
.mark { width: 40px; height: 40px; flex: none; overflow: visible; }
.mark .g-path { fill: none; stroke: url(#lg-g); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.mark .g-spark { fill: #FFE7A3; transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(.2) rotate(-45deg); transition: opacity .3s, transform .5s cubic-bezier(.3,1.6,.5,1); }
.mark.is-welded .g-spark, .foot .mark .g-spark { opacity: 1; transform: none; }
.mark .weld-dot { fill: #FFF6DA; opacity: 0; filter: url(#glow); }
.mark.is-welding .weld-dot { opacity: 1; }
.mark .weld-sparks line { stroke: #FFC24A; stroke-width: 1; stroke-linecap: round; }
/* до сварки буква не нарисована (лоадер и шапка); в подвале — сразу целиком */
.loader .mark:not(.is-welded) .g-path, .top .mark:not(.is-welded):not(.is-welding) .g-path { stroke-dasharray: 400; stroke-dashoffset: 400; }
.word { display: grid; line-height: 1; gap: 4px; }
.word b { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; }
.word > span { font-size: .625rem; font-weight: 600; letter-spacing: .42em; background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- лоадер ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--ink); color: var(--on-dark);
  transition: clip-path .65s cubic-bezier(.7,0,.2,1), opacity .4s .3s;
  clip-path: inset(0 0 0 0);
  animation: loader-fallback .4s 4s forwards;     /* страховка, если JS не отработал */
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader-in { display: flex; align-items: center; gap: 18px; }
.mark-xl { width: 96px; height: 96px; }
.word-xl b { font-size: 3rem; }
.word-xl > span { font-size: 1rem; }
.loader .word { opacity: 0; transform: translateX(-8px); transition: opacity .5s .5s, transform .5s .5s; }
.loader .is-welding ~ .word, .loader .is-welded ~ .word { opacity: 1; transform: none; }
@keyframes loader-fallback { to { opacity: 0; visibility: hidden; } }

/* ---------- шапка: плавающая панель по ширине карточки ---------- */
.top { position: fixed; z-index: 40; top: 0; left: 0; right: 0; padding: 12px var(--gutter) 0; pointer-events: none; }
.top-bar {
  pointer-events: auto;
  max-width: 1560px; margin: 0 auto; height: 72px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 14px 0 26px; border-radius: 22px;
  color: var(--on-dark);
  transition: background-color .35s, box-shadow .35s, height .35s;
}
.top.is-solid .top-bar {
  height: 64px;
  background: rgba(22,24,27,.82); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 18px 40px -24px rgba(0,0,0,.6);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: 8px; }
.top-nav { display: flex; gap: 4px; }
.top-nav a { text-decoration: none; font-size: .9375rem; color: rgba(242,243,245,.78); padding: 10px 14px; border-radius: 999px; transition: background-color .2s, color .2s; }
.top-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.top-phone {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px;
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9375rem; letter-spacing: -0.01em; white-space: nowrap;
  background: rgba(22,24,27,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.top-phone svg { width: 18px; height: 18px; color: var(--fire-1); }
.top-phone:hover { background: rgba(255,255,255,.14); }
.top-cta { height: 44px; min-height: 44px; white-space: nowrap; }
.lang {
  display: flex; align-items: center; height: 44px; padding: 4px; gap: 2px; border-radius: 999px;
  background: rgba(22,24,27,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lang button { border: 0; background: none; cursor: pointer; height: 36px; min-width: 40px; padding: 0 10px; border-radius: 999px; font-size: .8125rem; font-weight: 600; color: rgba(242,243,245,.65); }
.lang button[aria-pressed=true] { background: rgba(255,255,255,.16); color: #fff; }

/* ---------- hero ---------- */
.hero { padding: 12px var(--gutter) 0; }
.hero-card {
  position: relative; max-width: 1560px; margin: 0 auto;
  min-height: min(880px, calc(100svh - 24px));
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--ink); color: var(--on-dark);
  border-radius: var(--r-xl); overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; align-self: center; padding: 120px 40px 150px clamp(28px, 5vw, 80px); }
.hero-eyebrow { font-size: 1rem; color: rgba(242,243,245,.82); margin-bottom: 18px; }
.hero-title { font-size: var(--t-h1); line-height: .98; font-weight: 600; letter-spacing: -0.045em; margin: 0 0 26px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-lead { color: rgba(242,243,245,.78); max-width: 46ch; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-media { position: relative; min-height: 100%; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) contrast(1.06); }
.hero-media::after { /* слияние видео с карточкой и тёплый «жар» снизу */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(22,24,27,.55) 14%, transparent 38%),
    radial-gradient(80% 50% at 30% 100%, rgba(255,122,26,.28), transparent 70%);
}
.sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* полоса цифр с «вывернутыми» углами — вырез в карточке */
.stats {
  position: absolute; right: 0; bottom: 0; z-index: 3;
  display: grid; grid-template-columns: repeat(3, auto); gap: 0;
  list-style: none; margin: 0; padding: 26px 34px 22px;
  background: var(--page); color: var(--ink);
  border-top-left-radius: var(--r-xl);
}
.stats::before, .stats::after {
  content: ""; position: absolute; width: var(--r-xl); height: var(--r-xl);
  background: radial-gradient(circle at 0 0, transparent calc(var(--r-xl) - .5px), var(--page) var(--r-xl));
}
.stats::before { right: 0; top: calc(var(--r-xl) * -1); }
.stats::after { left: calc(var(--r-xl) * -1); bottom: 0; }
.stats li { padding: 0 30px; display: grid; gap: 2px; text-align: center; }
.stats li + li { border-left: 1px solid var(--line); }
.stats b { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.stats b small { font-size: .55em; letter-spacing: 0; }
.stats li > span { font-size: .8125rem; color: var(--mute); max-width: 15ch; margin: 0 auto; line-height: 1.35; }

/* ---------- секции ---------- */
.sec { padding: clamp(64px, 9vw, 120px) 0 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 48px; margin-bottom: 22px; }
.sec-head .h2 { margin: 0; }
.sec-note { color: var(--mute); max-width: 40ch; margin: 0; }
.panel { background: var(--card); border-radius: var(--r-xl); padding: clamp(24px, 4.5vw, 64px); }
.dark-card { background: var(--ink); color: var(--on-dark); border-radius: var(--r-xl); padding: clamp(24px, 4.5vw, 64px); position: relative; overflow: hidden; }

/* ---------- работы ---------- */
.filters { display: flex; gap: 8px; margin: 0 0 22px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 0; background: var(--card); border-radius: 999px; padding: 11px 18px; cursor: pointer;
  font-size: .9375rem; font-weight: 500; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; box-shadow: none; }

/* сетка без дыр: JS раскладывает карточки строками, высота строки задаётся вертикальной 3:4 */
.reel { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .reel { grid-template-columns: repeat(4, 1fr); } }
.clip { position: relative; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-2); isolation: isolate; }
.clip.is-wide { grid-column: span 2; aspect-ratio: auto; min-height: 100%; }
.clip.is-solo { aspect-ratio: 3 / 2; }
.clip button { all: unset; position: absolute; inset: 0; z-index: 3; cursor: pointer; border-radius: inherit; }
.clip button:focus-visible { outline: 3px solid var(--fire-2); outline-offset: -3px; }
.clip img, .clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .35s; }
.clip video { opacity: 0; z-index: 1; }
.clip.is-playing video { opacity: 1; }
.clip:hover img, .clip:hover video { transform: scale(1.04); }
.clip-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 48px 16px 14px;
  background: linear-gradient(transparent, rgba(16,18,20,.82)); color: #fff;
  font-size: .8125rem; line-height: 1.35; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.clip:hover .clip-cap, .clip:focus-within .clip-cap { opacity: 1; transform: none; }
.clip-play {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(22,24,27,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center;
}
.clip-play::before { content: ""; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.reel-more { display: flex; justify-content: center; margin-top: 26px; }
.reel-more .btn[hidden] { display: none; }

/* ---------- услуги ---------- */
.services-grid { display: grid; gap: 40px; }
.services-intro p { color: var(--mute); }
.services-photo { margin: 24px 0 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.services-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; align-content: start; }
.svc {
  display: grid; grid-template-columns: 52px 1fr 40px; gap: 16px; align-items: start;
  background: var(--soft); border-radius: var(--r-lg); padding: 18px;
  transition: background-color .2s, box-shadow .2s;
}
.svc:hover { background: #fff; box-shadow: 0 0 0 1px var(--line), 0 16px 34px -22px rgba(22,24,27,.35); }
.svc-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--fire-1); display: grid; place-items: center; }
.svc-ico svg { width: 28px; height: 28px; }
.svc-txt p { margin: 0; color: var(--mute); font-size: .9375rem; line-height: 1.5; }
.svc-go {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); cursor: pointer;
  display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: background-color .2s, color .2s;
}
.svc-go svg { width: 18px; height: 18px; }
.svc-go:hover { background: var(--ink); color: #fff; }
@media (min-width: 680px) {
  .svc-list { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 52px 1fr; grid-template-rows: auto 1fr; min-height: 210px; }
  .svc-ico { grid-row: 1; }
  .svc-txt { grid-column: 1 / -1; grid-row: 2; }
  .svc-go { grid-column: 2; grid-row: 1; justify-self: end; }
}
@media (min-width: 1080px) { .services-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; } }

/* ---------- защита ---------- */
.protect-card { display: grid; gap: 40px; }
.protect-copy .lead { color: rgba(242,243,245,.75); }
.layers { list-style: none; margin: 34px 0 0; padding: 0 0 0 60px; position: relative; counter-reset: ly; }
.layers::before, .layers::after { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; border-radius: 2px; }
.layers::before { background: var(--ink-3); }
.layers::after { background: linear-gradient(180deg, var(--fire-1), var(--fire-3)); transform-origin: top; transform: scaleY(var(--fill, 0)); }
.layers li { position: relative; counter-increment: ly; padding: 10px 0 18px; }
.layers li::before {
  content: counter(ly); position: absolute; left: -60px; top: 6px; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink-2); box-shadow: inset 0 0 0 2px var(--ink-3); color: var(--mute-dark); font-weight: 600; font-size: .9375rem;
  transition: background .35s, color .35s, box-shadow .35s;
}
.layers li.is-on::before { background: var(--btn); color: #fff; box-shadow: 0 0 0 6px rgba(255,122,26,.16); }
.layers p { margin: 0; color: rgba(242,243,245,.68); }
.protect-media { margin: 0; }
.protect-media video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-lg); background: var(--ink-2); }
.protect-media figcaption { margin-top: 12px; color: var(--mute-dark); font-size: var(--t-sm); }
@media (max-width: 959px) { .protect-media video { aspect-ratio: 4 / 5; } }
@media (min-width: 960px) {
  .protect-card { grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
  .protect-media { position: sticky; top: 110px; justify-self: end; width: 100%; max-width: 400px; }
}

/* ---------- шаги ---------- */
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
.step-list li { background: var(--card); border-radius: var(--r-lg); padding: 26px 24px 28px; }
.step-list p { margin: 0; color: var(--mute); font-size: .9375rem; }
.step-n { display: block; font-size: 3.5rem; line-height: 1; font-weight: 600; letter-spacing: -0.05em; margin-bottom: 28px; background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; width: max-content; }
@media (min-width: 640px) { .step-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .step-list { grid-template-columns: repeat(4, 1fr); } }

/* ---------- о мастере ---------- */
.about-grid { display: grid; gap: 36px; align-items: center; }
.about-media video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); background: var(--ink-2); }
.about-copy p { color: #3E444C; font-size: var(--t-lg); }
.sign { display: grid; gap: 2px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.sign b { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.sign span { font-size: var(--t-sm); color: var(--mute); }
@media (min-width: 960px) { .about-grid { grid-template-columns: .75fr 1.25fr; gap: 64px; } }

/* ---------- заказ ---------- */
.order { padding-bottom: clamp(48px, 7vw, 96px); }
.order-card { display: grid; gap: 36px; }
.order-copy { position: relative; display: flex; flex-direction: column; justify-content: flex-end; }
.order-copy > * { position: relative; z-index: 1; }
.order-copy p { color: rgba(242,243,245,.75); }
.forge { position: relative; z-index: 0; width: 100%; height: 280px; margin: -12px 0 8px; }
.contact-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.contact-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; text-decoration: none;
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); font-weight: 500; font-size: .9375rem;
}
.contact-list a:hover { background: rgba(255,255,255,.14); }
.contact-list li:first-child a { font-weight: 600; font-size: 1.0625rem; }

.lead-form { background: var(--card); color: var(--ink); border-radius: var(--r-lg); padding: clamp(20px, 3.5vw, 36px); display: grid; gap: 18px; align-self: start; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend, .lbl { font-weight: 600; font-size: .875rem; padding: 0; }
.field legend { margin-bottom: 10px; }
.opt-note { font-weight: 400; color: var(--mute); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: .9375rem; transition: background-color .15s, color .15s; user-select: none; }
.opt input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.opt input:focus-visible + span { outline: 2px solid var(--fire-2); outline-offset: 2px; }
.lead-form input[type=text], .lead-form input[type=tel], .lead-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border: 0; border-radius: var(--r-md); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line);
}
.lead-form textarea { resize: vertical; min-height: 96px; }
.lead-form input:focus, .lead-form textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--fire-2); background: #fff; }
.lead-form [aria-invalid=true] { box-shadow: inset 0 0 0 2px #C62828; }
.err { color: #C62828; font-size: .8125rem; }
.err:empty { display: none; }
.row2 { display: grid; gap: 18px; align-items: start; }
.form-hint { margin: -4px 0 0; color: var(--mute); font-size: .8125rem; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .order-card { grid-template-columns: 1fr 1fr; gap: 56px; } .forge { height: 380px; } }

/* ---------- подвал ---------- */
.foot { padding: 0 0 48px; color: var(--mute); font-size: var(--t-sm); }
.foot-grid { display: grid; gap: 24px; padding-top: 36px; border-top: 1px solid var(--line); }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.mark-lg { width: 56px; height: 56px; }
.word-lg b { font-size: 1.75rem; color: var(--ink); }
.word-lg > span { font-size: .75rem; }
.foot-tag { margin: 0; color: var(--ink); font-weight: 500; }
.foot-col p { margin: 0 0 4px; }
.foot-col a, .foot-social a { color: var(--ink); text-decoration: none; }
.foot-col a:hover, .foot-social a:hover { color: var(--fire-3); }
.foot-social { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.2fr 1fr auto; align-items: center; } }

/* ---------- мобильная панель ---------- */
.dock { display: none; }
@media (max-width: 899px) {
  :root { --dock-h: calc(72px + env(safe-area-inset-bottom)); }
  .dock {
    position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 48px 48px 48px 1fr; gap: 8px; align-items: center;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    background: rgba(22,24,27,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .dock-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
  .dock-btn svg { width: 22px; height: 22px; }
  .dock-viber { color: #B39CFF; }
  .dock-wa { color: #4ADE80; }
  .dock-order { display: grid; place-items: center; height: 48px; border-radius: 999px; background: var(--btn); color: #fff; font-weight: 600; text-decoration: none; font-size: .9375rem; white-space: nowrap; }
}

/* ---------- модалка заказа ---------- */
.order-modal { border: 0; padding: 0; background: transparent; width: min(640px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow: visible; color: var(--ink); }
.order-modal::backdrop { background: rgba(10,11,13,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.om-card { position: relative; background: var(--ink); color: var(--on-dark); border-radius: var(--r-xl); padding: 32px 28px 28px; max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; }
.om-title { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; margin: 0 48px 10px 0; }
.om-sub { color: rgba(242,243,245,.7); margin-bottom: 20px; }
.om-close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: grid; place-items: center; }
.om-close svg { width: 20px; height: 20px; }
.om-close:hover { background: rgba(255,255,255,.18); }
.om-form .lead-form { padding: 22px; }
@media (max-width: 599px) {
  .order-modal { width: 100vw; max-height: 94dvh; margin: auto 0 0; }
  .om-card { border-radius: 24px 24px 0 0; padding: 26px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 94dvh; }
  .om-form .lead-form { padding: 16px; }
}

/* ---------- лайтбокс ---------- */
.lightbox { border: 0; padding: 0; background: transparent; width: min(92vw, 520px); max-width: none; color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgba(10,11,13,.9); backdrop-filter: blur(4px); }
.lightbox video { width: 100%; max-height: 80vh; border-radius: var(--r-lg); background: #000; }
.lb-close { position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb-cap { font-size: var(--t-sm); color: rgba(255,255,255,.75); margin: 12px 0 0; }

/* ---------- адаптив ---------- */
@media (max-width: 1240px) { .top-nav { display: none; } }
@media (max-width: 899px) {
  .top { padding: 8px 8px 0; }
  .top-bar, .top.is-solid .top-bar { height: 60px; padding: 0 8px 0 14px; gap: 8px; background: rgba(22,24,27,.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 18px; }
  .top-cta { display: none; }
  .mark { width: 34px; height: 34px; }
  .word b { font-size: 1.125rem; }
  .word > span { font-size: .5625rem; letter-spacing: .36em; }
  .top-phone { width: 44px; padding: 0; justify-content: center; }
  .top-phone span { display: none; }

  .hero { padding: 8px 8px 0; }
  .hero-card { grid-template-columns: 1fr; min-height: 0; border-radius: 24px; }
  .hero-media { order: -1; aspect-ratio: 4 / 5; max-height: 60svh; min-height: 0; width: 100%; }
  .hero-media::after { bottom: -2px; background: linear-gradient(180deg, rgba(22,24,27,.6) 0%, transparent 24%, transparent 58%, var(--ink) 94%), radial-gradient(80% 40% at 50% 100%, rgba(255,122,26,.25), transparent 70%); }
  .lang { background: rgba(22,24,27,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .hero-copy { padding: 0 20px 24px; margin-top: -48px; }
  .hero-eyebrow { font-size: .9375rem; margin-bottom: 12px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .stats { position: static; grid-template-columns: repeat(3, 1fr); margin: 0 8px 8px; padding: 18px 4px; border-radius: 18px; }
  .stats::before, .stats::after { display: none; }
  .stats li { padding: 0 6px; }
  .stats li > span { font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
