/* =========================================================
   3D Master — вариант 2: industrial / neon
   Палитра и подача ближе к FL Studio: тёплый графит,
   приглушённый янтарный акцент, мягкие свечения.
   ========================================================= */

/* ---------- Шрифты: локальные файлы, без Google Fonts ---------- */

@font-face {
  font-family: "Exo 2";
  font-style: italic;
  font-weight: 600 800;
  font-display: swap;
  src: url("assets/fonts/exo2-italic-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Exo 2";
  font-style: italic;
  font-weight: 600 800;
  font-display: swap;
  src: url("assets/fonts/exo2-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("assets/fonts/exo2-normal-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("assets/fonts/exo2-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-normal-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/manrope-normal-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/manrope-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #131316;
  --bg-deep: #0e0e11;
  --panel: rgba(255, 255, 255, .026);
  --panel-2: #191a1d;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .145);
  --text: #dcd7d0;
  --muted: #9a958d;
  --dim: #6f6b65;
  --accent: #e5893f;
  --accent-soft: rgba(229, 137, 63, .13);
  --accent-glow: rgba(229, 137, 63, .34);
  --teal: #7fb9ae;
  --teal-soft: rgba(127, 185, 174, .1);
  --radius: 3px;
  --wrap: 1240px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Exo 2", "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Consolas", monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 1px;
  z-index: 100;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent) 45%, transparent 68%, var(--teal) 90%, transparent);
  opacity: .7;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.02;
}

h1, h2 { font-style: italic; }

p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: #14100c; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Фон: видео-подложка + текстуры ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.backdrop-video {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  object-position: center 42%;
  opacity: .55;
  filter: saturate(.82) contrast(1.02) brightness(.8);
  animation: backdrop-drift 64s ease-in-out infinite alternate;
  transition: opacity .5s ease;
  will-change: transform;
}

@keyframes backdrop-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.04) translate3d(-1.2%, -0.9%, 0); }
}

.backdrop-video.is-seam { opacity: .3; }

.backdrop-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 62% at 50% 0%, rgba(19, 19, 22, .18), rgba(19, 19, 22, .84) 68%, rgba(19, 19, 22, .97) 100%),
    linear-gradient(180deg, rgba(19, 19, 22, .5) 0%, rgba(19, 19, 22, .78) 34%, rgba(19, 19, 22, .95) 58%, var(--bg) 76%);
}

.backdrop-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 460px at 82% 4%, rgba(229, 137, 63, .1), transparent 66%),
    radial-gradient(680px 420px at 4% 12%, rgba(127, 185, 174, .06), transparent 64%);
}

.backdrop-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .034) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px, 288px 288px, 288px 288px;
  mask-image: radial-gradient(ellipse 125% 85% at 50% 0%, #000 18%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 125% 85% at 50% 0%, #000 18%, transparent 80%);
}

.backdrop-noise {
  position: absolute;
  inset: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
  animation: grain 1.1s steps(3) infinite;
}

@keyframes grain {
  0% { transform: translate3d(0, 0, 0); }
  33% { transform: translate3d(-2%, 1%, 0); }
  66% { transform: translate3d(1%, -2%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: 700 12px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn:disabled {
  opacity: .55;
  cursor: progress;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #17110b;
}

.btn-primary:hover {
  background: #ef9a56;
  border-color: #ef9a56;
  box-shadow: 0 0 30px -8px var(--accent-glow);
}

.btn-ghost {
  border-color: var(--line-2);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: inset 0 0 26px -16px var(--accent);
}

.btn-sm { padding: 11px 15px; font-size: 11px; }
.btn-lg { padding: 17px 26px; font-size: 12px; }

/* ---------- Шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 17, 20, .58);
  backdrop-filter: saturate(1.2) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(17, 17, 20, .88);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(229, 137, 63, .3));
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .01em;
  line-height: 1.1;
  color: #fff;
}

.logo-text small {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 4px;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 11px;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .18s ease, background .18s ease;
}

.nav a i {
  font-style: normal;
  font-size: 9px;
  color: var(--dim);
  transition: color .18s ease;
}

.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav a:hover i { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.phone {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: color .18s ease;
}

.phone:hover { color: var(--accent); }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.burger span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform .2s ease, top .2s ease;
}

.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }

.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Служебная типографика ---------- */

.hud {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.hud-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: blink 3.4s ease-in-out infinite;
}

.hud-mini {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.section { padding: 96px 0; position: relative; }

.section-head { max-width: 780px; margin-bottom: 54px; }

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 46px);
  color: #fff;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 560px;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.head-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line-2);
  font: 500 10px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .18s ease, border-color .18s ease;
}

.head-link::after { content: "→"; }

.head-link:hover {
  color: var(--accent);
  border-bottom-color: rgba(229, 137, 63, .5);
}

/* ---------- Панели и уголки ---------- */

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
  z-index: 2;
  opacity: .8;
}

.corner.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- Hero ---------- */

.hero { padding: 64px 0 28px; position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: clamp(40px, 5.3vw, 76px);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 26px;
}

.hero h1 .h1-top,
.hero h1 .h1-mid { display: block; }

.hero h1 .h1-mid {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(229, 137, 63, .3), 0 0 90px rgba(229, 137, 63, .12);
}

.hero h1 .h1-sub {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-family: var(--mono);
  font-style: normal;
  font-size: clamp(11px, 1.05vw, 14px);
  font-weight: 400;
  letter-spacing: .2em;
  line-height: 1.3;
  color: var(--muted);
}

.hero h1 .h1-sub i {
  display: block;
  width: 38px;
  height: 1px;
  flex-shrink: 0;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.lede {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 46px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 34px;
  justify-content: start;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.facts > div { position: relative; padding-left: 16px; }

.facts > div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.facts dt {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
  line-height: 1.15;
}

.facts dd {
  margin: 5px 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
  max-width: 150px;
}

.hero-media {
  margin: 0;
  overflow: hidden;
  background: #0f0f12;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: brightness(.86) contrast(1.1) saturate(.9);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(155deg, rgba(229, 137, 63, .16), rgba(15, 15, 18, .44) 48%, rgba(127, 185, 174, .12));
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .2) 0 1px, transparent 1px 3px);
  opacity: .45;
  pointer-events: none;
}

.scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(127, 185, 174, .7), transparent);
  box-shadow: 0 0 18px rgba(127, 185, 174, .45);
  animation: scan 6s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: .75; }
  92% { opacity: .75; }
  100% { transform: translateY(700px); opacity: 0; }
}

.hero-media figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(14, 14, 17, .84);
  backdrop-filter: blur(8px);
  font-size: 13px;
  color: #fff;
}

.hero-media figcaption b {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.hero-media figcaption span:last-child {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
}

/* ---------- Услуги ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .032), rgba(255, 255, 255, .006));
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 137, 63, .45);
  box-shadow: 0 0 36px -14px var(--accent-glow);
}

.card-num {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--dim);
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(229, 137, 63, .35);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.005em;
  color: #fff;
  margin-bottom: 8px;
}

.price {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent);
  margin-bottom: 16px;
}

.price span {
  color: var(--dim);
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.card ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--muted);
}

.card ul li { position: relative; padding-left: 14px; }

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .66em;
  width: 5px;
  height: 1px;
  background: var(--teal);
  box-shadow: 0 0 6px rgba(127, 185, 174, .6);
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .18s ease;
}

.card-link span { transition: transform .18s ease; }
.card:hover .card-link { color: var(--accent); }
.card:hover .card-link span { transform: translateX(4px); }

/* ---------- Кейсы: карусель ---------- */

.section-cases { padding-top: 20px; }

.cases-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cases-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: 500 15px/1 var(--mono);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, box-shadow .18s ease, background .18s ease;
}

.cases-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 26px -12px var(--accent-glow);
}

.cases-btn:active { background: var(--accent-soft); }

.cases-viewport {
  overflow: hidden;
  transition: opacity .2s ease;
  touch-action: pan-y;
  cursor: grab;
}

.cases-viewport.is-dragging { cursor: grabbing; }
.cases-viewport.is-fading { opacity: 0; }

.cases-track {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform .65s cubic-bezier(.22, .8, .24, 1);
  will-change: transform;
}

.case {
  flex: 0 0 calc((100% - 28px) / 3);
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0f0f12;
  user-select: none;
}

.case img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(.74);
  transition: transform .55s cubic-bezier(.2, .7, .3, 1), filter .45s ease;
  pointer-events: none;
}

.case::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(14, 14, 17, .94) 4%, rgba(14, 14, 17, .32) 48%, rgba(14, 14, 17, .05));
  pointer-events: none;
}

.case:hover img {
  transform: scale(1.05);
  filter: grayscale(0) contrast(1.06) brightness(.92);
}

.case:hover { border-color: rgba(229, 137, 63, .5); box-shadow: 0 0 40px -18px var(--accent-glow); }

.case-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px;
  color: #fff;
}

.case-meta b {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.case-meta small {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: .03em;
}

.tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(127, 185, 174, .38);
  background: var(--teal-soft);
  padding: 3px 7px;
  margin-bottom: 6px;
}

.cases-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 26px;
}

.cases-dot {
  width: 30px;
  height: 3px;
  padding: 0;
  border: 0;
  background: var(--line-2);
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease;
}

.cases-dot:hover { background: var(--dim); }

.cases-dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.cases-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.cases-more > span {
  font: 400 10px/1.5 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Материалы ---------- */

.materials-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.materials-copy h2 {
  font-size: clamp(26px, 3vw, 42px);
  color: #fff;
  margin-bottom: 20px;
}

.materials-copy p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 30px;
  max-width: 460px;
}

.materials-list { border-top: 1px solid var(--line); }

.materials-list li {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 19px 10px;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease, padding-left .2s ease;
}

.materials-list li:hover {
  background: linear-gradient(90deg, var(--accent-soft), transparent 70%);
  padding-left: 16px;
}

.materials-list b {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
}

.materials-list span { color: var(--muted); font-size: 13.5px; }

.materials-list em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---------- Процесс ---------- */

.section-dark {
  background: linear-gradient(180deg, rgba(14, 14, 17, .5), rgba(14, 14, 17, .78));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.steps li {
  position: relative;
  padding: 28px 28px 0 0;
  border-right: 1px solid var(--line);
}

.steps li:last-child { border-right: 0; }
.steps li + li { padding-left: 28px; }

.step-num {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--accent);
  text-shadow: 0 0 16px var(--accent-glow);
  margin-bottom: 38px;
}

.steps h3 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 10px;
}

.steps p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- Заявка ---------- */

.section-lead { padding-bottom: 76px; }

.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 52px;
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(229, 137, 63, .06), transparent 70%),
    var(--panel-2);
}

.lead-grid::before,
.lead-grid::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--teal);
  border-style: solid;
  opacity: .55;
}

.lead-grid::before { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.lead-grid::after { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }

.lead-copy h2 {
  font-size: clamp(26px, 3vw, 40px);
  color: #fff;
  margin-bottom: 18px;
}

.lead-copy > p {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 30px;
  max-width: 440px;
}

.lead-contacts { border-top: 1px solid var(--line); }

.lead-contacts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.lead-contacts span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}

.lead-contacts a { font-weight: 600; transition: color .18s ease; }
.lead-contacts a:hover { color: var(--accent); }

.lead-form { display: flex; flex-direction: column; gap: 15px; }

.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead-form label span {
  font-size: 9px;
  color: var(--dim);
  letter-spacing: .1em;
}

.lead-form input[type="text"],
.lead-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #101013;
  font: 400 14.5px/1.4 var(--font);
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease;
  resize: vertical;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder { color: #55524d; }

.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 137, 63, .12);
}

.file-label input[type="file"] {
  font-size: 12px;
  color: var(--dim);
  padding: 8px 0;
  text-transform: none;
  letter-spacing: 0;
}

.file-label input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 13px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: transparent;
  font: 500 11px var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
}

.form-note { font-size: 11.5px; color: var(--dim); line-height: 1.5; }

.form-note-file { margin-top: -2px; }

.form-note-file a,
.form-status a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(229, 137, 63, .55);
  text-underline-offset: 2px;
}

.form-note-file a:hover,
.form-status a:hover { color: var(--accent); }

.lead-form .check-label {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font);
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}

.lead-form .check-label input[type="checkbox"] {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.lead-form .check-label span {
  font-family: var(--font);
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.lead-form .check-label a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(229, 137, 63, .55);
  text-underline-offset: 2px;
}

.lead-form .check-label a:hover { color: var(--accent); }

.form-status { font-size: 12px; font-weight: 600; color: var(--accent); min-height: 18px; }

/* ---------- Контакты ---------- */

.contacts-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contacts-grid h2 {
  font-size: clamp(26px, 3vw, 42px);
  color: #fff;
  margin-bottom: 20px;
}

.contacts-address {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 14px;
}

.contacts-note {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 26px;
  max-width: 420px;
}

.contacts-list { border-top: 1px solid var(--line); }

.contacts-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.contacts-list span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}

.contacts-list a { font-weight: 600; font-size: 14.5px; transition: color .18s ease; }
.contacts-list a:hover { color: var(--accent); }

/* ---------- Подвал ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: #101013;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.logo-footer img { width: 38px; height: 38px; }
.logo-footer .logo-text { font-size: 13px; }
.logo-footer .logo-text small { color: var(--dim); }

.footer-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-nav a:hover { color: var(--accent); }

.footer-legal {
  width: 100%;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--dim);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

/* ---------- Появление ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- Просмотр работы (лайтбокс) ---------- */

html.lb-open { overflow: hidden; }
html.lb-open body { padding-right: var(--lb-gutter, 0px); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 5vh 6vw;
  opacity: 0;
  transition: opacity .22s ease;
}

.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox-scrim {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, .955);
  backdrop-filter: blur(9px) saturate(.85);
  -webkit-backdrop-filter: blur(9px) saturate(.85);
}

.lightbox-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: min(1120px, 90vw);
  max-height: 88vh;
  opacity: 0;
  transform: translateY(12px) scale(.985);
  transition: opacity .24s ease, transform .3s cubic-bezier(.22, .8, .24, 1);
}

.lightbox.is-open .lightbox-figure { opacity: 1; transform: none; }

.lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(88vh - 74px);
  object-fit: contain;
  border: 1px solid var(--line-2);
  background: #0b0b0e;
  box-shadow: 0 34px 90px -34px rgba(0, 0, 0, .95);
}

.lightbox-caption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.lightbox-caption .tag {
  align-self: center;
  font: 500 10px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(127, 185, 174, .38);
  background: var(--teal-soft);
  padding: 3px 7px;
}

.lightbox-caption b {
  font: 700 17px/1.2 var(--display);
  font-style: italic;
  letter-spacing: .01em;
  color: var(--text);
}

.lightbox-caption small {
  font: 400 11px/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(19, 19, 22, .78);
  color: var(--text);
  font: 500 15px/1 var(--mono);
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 26px -12px var(--accent-glow);
}

.lightbox-close {
  top: 18px;
  right: 18px;
  font-size: 17px;
}

.lightbox-arrow { top: 50%; margin-top: -23px; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.lightbox-count {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: 20px;
  margin: 0;
  font: 400 11px/1 var(--mono);
  letter-spacing: .22em;
  color: var(--dim);
}

.lightbox.is-single .lightbox-arrow,
.lightbox.is-single .lightbox-count { display: none; }

.lightbox.is-single .lightbox-img { max-height: calc(88vh - 74px); }

.hero-media { cursor: default; }

.case { cursor: zoom-in; }

.case::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  background: rgba(14, 14, 17, .62)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dcd7d0' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M14 4h6v6M20 4l-7 7M10 20H4v-6M4 20l7-7'/%3E%3C/svg%3E")
    center / 14px 14px no-repeat;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.case:hover::before,
.case:focus-visible::before { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .backdrop-video { display: none; }
}

/* ---------- Адаптив ---------- */

@media (max-width: 1100px) {
  .nav { gap: 0; }
  .nav a { padding: 9px 8px; font-size: 10px; }
  .phone { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 36px; }
  .materials-grid { gap: 44px; }
  .lead-grid { padding: 36px; gap: 36px; }
}

@media (max-width: 900px) {
  .header-inner { height: 68px; gap: 14px; }
  .logo-text small { display: none; }

  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    display: none;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 22px 18px;
    background: rgba(17, 17, 20, .98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -30px #000;
  }

  .nav.is-open { display: flex; }
  .nav a { padding: 15px 4px; font-size: 12px; border-bottom: 1px solid var(--line); border-radius: 0; }

  .header-actions { margin-left: auto; gap: 10px; }
  .burger { display: block; }
  .header-actions .btn { padding: 10px 12px; font-size: 10px; }

  .hero { padding: 42px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero h1 { font-size: clamp(34px, 8.6vw, 50px); }
  .lede { font-size: 16px; }
  .hero-cta .btn { flex: 1 1 auto; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 34px; }
  .section-head-row { flex-direction: column; align-items: flex-start; }

  .case { flex: 0 0 calc((100% - 14px) / 2); }
  .materials-grid { grid-template-columns: 1fr; gap: 30px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li { border-top: 1px solid var(--line); padding: 22px 22px 0 0 !important; border-right: 0; }
  .steps li:nth-child(even) { padding-left: 22px !important; border-left: 1px solid var(--line); }
  .step-num { margin-bottom: 20px; }

  .lead-grid { grid-template-columns: 1fr; padding: 30px 22px; }
  .contacts-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-nav { margin-left: 0; flex-wrap: wrap; gap: 14px; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .hero h1 { font-size: clamp(32px, 9.6vw, 42px); }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .facts > div { padding-left: 10px; }
  .facts dt { font-size: 13px; }
  .facts dd { font-size: 9.5px; max-width: none; }
  .cards { grid-template-columns: 1fr; }
  .case { flex: 0 0 100%; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:nth-child(even) { padding: 20px 0 0 0 !important; border-left: 0; }
  .section { padding: 56px 0; }
  .materials-list li { grid-template-columns: 1fr auto; gap: 7px 16px; padding: 16px 8px; }
  .materials-list span { grid-column: 1 / -1; }
  .hero-media img { aspect-ratio: 4 / 5; }
  .lead-contacts li, .contacts-list li { flex-direction: column; gap: 2px; }
  .hero-media figcaption { left: 10px; right: 10px; bottom: 10px; }
  .cases-dots { gap: 4px; margin-top: 20px; }
  .cases-dot { width: 14px; }
  .lightbox { padding: 5vh 12px; }
  .lightbox-figure { max-width: 100%; max-height: 83vh; }
  .lightbox-img { max-height: 66vh; }
  .lightbox-arrow {
    top: 50%;
    bottom: auto;
    margin-top: -20px;
    width: 40px;
    height: 40px;
    background: rgba(9, 9, 11, .72);
    border-color: rgba(255, 255, 255, .22);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
  .lightbox-count { top: 16px; left: 14px; }
  .lightbox-close { top: 12px; right: 12px; width: 42px; height: 42px; }
}

/* ---------- Согласие на cookie ---------- */

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  background: rgba(16, 16, 19, .97);
  border-top: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, .85);
  transform: translateY(110%);
  transition: transform .26s ease;
}

.cookie-bar.is-visible { transform: none; }

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 28px max(16px, env(safe-area-inset-bottom));
}

.cookie-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

.cookie-text a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(229, 137, 63, .55);
  text-underline-offset: 2px;
}

.cookie-text a:hover { color: var(--accent); }

.cookie-tag {
  display: inline-block;
  margin-right: 10px;
  padding: 4px 6px;
  border: 1px solid rgba(229, 137, 63, .4);
  border-radius: 3px;
  font: 400 9.5px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  vertical-align: 1px;
}

.cookie-actions { display: flex; gap: 8px; flex: none; }
.cookie-actions .btn { white-space: nowrap; }

@media (max-width: 820px) {
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 16px max(16px, env(safe-area-inset-bottom));
  }
  .cookie-text { font-size: 12px; }
  .cookie-actions .btn { flex: 1; }
}
