/* ============================================================
   SVN-LAB — лаборатория кастомных корпусов
   постмодерн × авангард × неоминимализм × брутализм
   ============================================================ */

:root {
  --ink: #0a0a0a;
  --panel: #121212;
  --carbon: #1a1a1a;
  --line: #232323;
  --line2: #383838;
  --ember: #ff3e00;
  --volt: #00d9ff;
  --fog: #ffffff;
  --smoke: #e0e0e0;
  --dim: #9b9b9b;
  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
  --header-h: 63px;
  --header-h-md: 91px;
}

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

/* Авторские display (например, .mobile-menu { display: flex })
   не должны отменять атрибут hidden — иначе скрытые блоки
   (мобильное меню, ошибки полей) перекрывают контент. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--smoke);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--ember);
  color: var(--ink);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--line2); border: 2px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: var(--ember); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

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

.i { width: 16px; height: 16px; flex: none; }
.i-plus { width: 11px; height: 11px; color: var(--ember); }

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 768px) {
  .container { padding-left: 24px; padding-right: 24px; }
}

/* ---------- фоновые слои ---------- */

#grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

#app,
.site-header,
.site-footer,
.mobile-menu {
  position: relative;
  z-index: 10;
}

.grid-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
}

/* ---------- шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.94);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 6px 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
@media (min-width: 768px) { .topbar { display: flex; } }

.topbar-item { display: inline-flex; align-items: center; gap: 8px; }

.pulse-dot {
  width: 6px; height: 6px;
  background: var(--ember);
  border-radius: 50%;
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
}
@media (min-width: 768px) { .header-row { padding: 12px 24px; } }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  background: var(--ember);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.logo:hover .logo-mark { transform: rotate(90deg); }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--fog);
}
.logo-text i { font-style: normal; color: var(--ember); }

.main-nav {
  display: none;
  align-items: center;
  gap: 30px;
}
@media (min-width: 1024px) { .main-nav { display: flex; } }

.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoke);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.nav-link b { color: var(--ember); font-weight: 400; margin-right: 6px; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.nav-link:hover { color: var(--fog); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--fog); }

.header-actions { display: flex; align-items: center; gap: 12px; }
@media (max-width: 639px) { .header-actions .btn { display: none; } }

.burger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
}
.burger span {
  display: block;
  width: 18px; height: 1px;
  background: var(--fog);
  transition: transform 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
@media (min-width: 1024px) { .burger { display: none; } }

/* мобильное меню */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  background: var(--ink);
}
@media (min-width: 768px) { .mobile-menu { inset: var(--header-h-md) 0 0 0; } }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

.mobile-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 24px;
}
.mobile-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--fog);
  transition: color 0.25s, padding-left 0.25s;
}
.mobile-link span {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--ember);
}
.mobile-link.active { color: var(--ember); }
.mobile-link:active { padding-left: 8px; }
.mobile-cta { justify-content: center; margin-top: 24px; }

.mobile-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  border-top: 1px solid var(--line);
}
.mobile-socials a { color: var(--dim); transition: color 0.25s, transform 0.25s; }
.mobile-socials a:hover { color: var(--ember); transform: translateY(-2px); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 13px 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn .i { width: 15px; height: 15px; }

.btn-ember {
  background: var(--ember);
  color: var(--ink);
}
.btn-ember:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(0, 217, 255, 0.85);
}
.btn-ember:active { transform: translate(0, 0); box-shadow: 1px 1px 0 rgba(0, 217, 255, 0.85); }

.btn-volt {
  background: var(--volt);
  color: var(--ink);
}
.btn-volt:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 rgba(255, 62, 0, 0.85);
}

.btn-ghost {
  border-color: var(--line2);
  color: var(--smoke);
}
.btn-ghost:hover {
  border-color: var(--ember);
  color: var(--fog);
  background: rgba(255, 62, 0, 0.06);
}

.btn-sm { min-height: 38px; padding: 9px 16px; font-size: 11px; }

.btn-arrow { transition: transform 0.25s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- типовые элементы ---------- */

.mono-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}
.mono-tag .acc { color: var(--ember); }
.mono-tag .acc-v { color: var(--volt); }

.corners { position: absolute; inset: 0; pointer-events: none; }
.corners i {
  position: absolute;
  width: 12px; height: 12px;
  border: 0 solid var(--ember);
}
.corners i:nth-child(1) { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.corners i:nth-child(2) { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.corners i:nth-child(3) { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.corners i:nth-child(4) { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.corners.c-volt i { border-color: var(--volt); }
.corners.c-dim i { border-color: var(--line2); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid;
}
.badge::before {
  content: "";
  width: 5px; height: 5px;
  background: currentColor;
}
.badge-forsale { color: var(--ember); border-color: rgba(255, 62, 0, 0.55); background: rgba(255, 62, 0, 0.12); }
.badge-forsale::before { animation: pulse-dot 1.6s ease-in-out infinite; }
.badge-ready { color: var(--volt); border-color: rgba(0, 217, 255, 0.5); background: rgba(0, 217, 255, 0.1); }
.badge-inprogress { color: var(--smoke); border-color: rgba(224, 224, 224, 0.4); background: rgba(224, 224, 224, 0.08); }

.progress-mini {
  width: 52px; height: 3px;
  background: rgba(224, 224, 224, 0.15);
  overflow: hidden;
}
.progress-mini b { display: block; height: 100%; background: var(--smoke); }

/* ---------- reveal-анимация ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.9, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.reveal.r-left { transform: translateX(-30px); }
.reveal.r-right { transform: translateX(30px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- бегущая строка ---------- */

.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  padding: 13px 0;
  user-select: none;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-chunk {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee-chunk span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--smoke);
  padding: 0 22px;
  white-space: nowrap;
}
.marquee-chunk span:nth-child(4n + 3) { color: var(--ember); }
.marquee-chunk i {
  width: 7px; height: 7px;
  background: var(--volt);
  transform: rotate(45deg);
  flex: none;
}

/* ---------- шапка раздела ---------- */

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
}
.sec-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--fog);
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  margin-top: 14px;
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 60px;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: 32px;
    min-height: calc(100vh - 105px);
    padding-top: 56px;
  }
  .hero-left { grid-column: span 7; }
  .hero-right { grid-column: span 5; }
}

.hero-title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--fog);
}
.hero-title .big {
  display: block;
  font-size: clamp(3.4rem, 12vw, 8.6rem);
}
.hero-title .sub {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.02rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--volt);
}
.hero-sub {
  margin-top: 26px;
  max-width: 430px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--dim);
}
.hero-sub strong { color: var(--fog); font-weight: 600; }
.hero-sub .tir {
  color: var(--ember);
  font-family: var(--font-mono);
  font-weight: 700;
}
.hero-ctas {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.data-strip {
  margin-top: 46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.6);
}
@media (min-width: 640px) { .data-strip { grid-template-columns: repeat(3, 1fr); } }
.data-cell {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.data-cell:nth-child(-n + 2) { border-top: 0; }
.data-cell:nth-child(even) { border-left: 1px solid var(--line); }
@media (min-width: 640px) {
  .data-cell { border-top: 0; border-left: 1px solid var(--line); }
  .data-cell:first-child { border-left: 0; }
}
.data-cell dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.data-cell dd {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fog);
}

.hero-object {
  position: relative;
  margin-left: 12px;
}
@media (min-width: 768px) { .hero-object { margin-left: 32px; } }

.object-frame {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
}
.object-media {
  position: relative;
  overflow: hidden;
}
.object-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.object-frame:hover .object-media img { transform: scale(1.05); }
.object-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.72), transparent 45%);
  pointer-events: none;
}
.scanline {
  position: absolute;
  left: 0; right: 0;
  height: 34%;
  top: -40%;
  background: linear-gradient(to bottom, transparent, rgba(0, 217, 255, 0.07), transparent);
  animation: scan 5.5s linear infinite;
  pointer-events: none;
}
.object-tag {
  position: absolute;
  left: 12px; top: 12px;
  z-index: 2;
  padding: 5px 9px;
  background: rgba(10, 10, 10, 0.72);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.object-cross {
  position: absolute;
  right: 12px; top: 12px;
  width: 9px; height: 9px;
  border: 1px solid var(--volt);
  z-index: 2;
}
.object-caption {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.object-caption .price { color: var(--ember); font-weight: 700; }

.vertical-note {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(155, 155, 155, 0.7);
  writing-mode: vertical-rl;
}
.hero-geo { left: 8px; top: 50%; transform: translateY(-50%) rotate(180deg); display: none; }
@media (min-width: 1280px) { .hero-geo { display: block; } }
.hero-side { right: -30px; top: 50%; transform: translateY(-50%); display: none; }
@media (min-width: 768px) { .hero-side { display: block; } }

.rot-badge {
  position: absolute;
  z-index: 3;
  left: -22px; bottom: -34px;
  width: 112px; height: 112px;
  display: grid;
  place-items: center;
}
@media (min-width: 768px) { .rot-badge { left: -36px; width: 140px; height: 140px; } }
.rot-badge svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.rot-badge .ring-bg { fill: var(--ink); }
.rot-badge .ring-line { fill: none; stroke: var(--line2); }
.rot-badge text {
  fill: var(--smoke);
  font-family: var(--font-mono);
  font-size: 8.2px;
  letter-spacing: 0.24em;
}
.rot-badge .ring-core {
  width: 10px; height: 10px;
  background: var(--ember);
  transform: rotate(45deg);
}

.scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
}
.scroll-dash {
  position: relative;
  width: 64px; height: 1px;
  background: var(--line2);
  overflow: hidden;
}
.scroll-dash b {
  position: absolute;
  inset: 0 auto 0 0;
  width: 26px;
  background: var(--ember);
  animation: dash 2.2s linear infinite;
}

/* ---------- секции ---------- */

.section { position: relative; border-bottom: 1px solid var(--line); }
.section-pad { padding-top: 72px; padding-bottom: 72px; }
@media (min-width: 768px) { .section-pad { padding-top: 104px; padding-bottom: 104px; } }
.section-alt { background: rgba(18, 18, 18, 0.5); }

.about-grid { display: grid; gap: 44px; }
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: repeat(12, 1fr); }
  .about-left { grid-column: span 5; }
  .about-right { grid-column: span 7; }
}
.about-text { font-size: 16px; line-height: 1.7; color: var(--dim); }
.about-text + .about-text { margin-top: 20px; }
.about-text strong { color: var(--fog); }
.about-channel {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.about-channel a { color: var(--volt); transition: color 0.25s; }
.about-channel a:hover { color: var(--ember); }

.about-statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--fog);
}
.about-statement .a-e { color: var(--ember); }
.about-statement .a-v { color: var(--volt); }

.stat-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat-cell {
  background: var(--ink);
  padding: 26px 24px;
  transition: background 0.3s;
}
.stat-cell:hover { background: var(--panel); }
.stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  line-height: 1;
  color: var(--fog);
}
.stat-num em { font-style: normal; color: var(--ember); }
.stat-label {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--dim);
}
.stat-line { margin-top: 16px; display: block; width: 32px; height: 1px; background: var(--line2); }

/* ---------- карточки проектов ---------- */

.cards-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .cards-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-grid.zig { grid-template-columns: repeat(12, 1fr); }
  .cards-grid.zig > :nth-child(4n + 1) { grid-column: span 7; }
  .cards-grid.zig > :nth-child(4n + 2) { grid-column: span 5; }
  .cards-grid.zig > :nth-child(4n + 3) { grid-column: span 5; }
  .cards-grid.zig > :nth-child(4n + 4) { grid-column: span 7; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.2, 1), border-color 0.35s, box-shadow 0.35s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line2);
  box-shadow: 8px 8px 0 rgba(255, 62, 0, 0.14);
}
.card-media {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s;
}
.card:hover .card-media img { transform: scale(1.05); }
.card-media .badge { position: absolute; left: 12px; top: 12px; z-index: 2; }
.card-idx {
  position: absolute;
  right: 10px; bottom: 8px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(10, 10, 10, 0.65);
  padding: 3px 7px;
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.card-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.card-name {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--fog);
  transition: color 0.3s;
}
.card:hover .card-name { color: var(--ember); }
.card-desc {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
}
.card-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--ember);
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoke);
  transition: color 0.25s;
}
.card-link .i { transition: transform 0.25s; }
.card:hover .card-link { color: var(--volt); }
.card:hover .card-link .i { transform: translateX(4px); }

/* ---------- превью процесса на главной ---------- */

.stage-rows { border-top: 1px solid var(--line); }
.stage-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 20px;
  row-gap: 6px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
@media (min-width: 768px) {
  .stage-row {
    grid-template-columns: 60px 220px 1fr 220px 40px;
    padding: 22px 16px;
  }
}
.stage-row:hover { background: var(--panel); }
.stage-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  color: var(--line2);
  transition: color 0.3s;
}
@media (min-width: 768px) { .stage-num { font-size: 30px; } }
.stage-row:hover .stage-num { color: var(--ember); }
.stage-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--fog);
}
@media (min-width: 768px) { .stage-title { font-size: 20px; } }
.stage-lead { grid-column: 1 / -1; font-size: 14px; color: var(--dim); }
@media (min-width: 768px) { .stage-lead { grid-column: auto; } }
.stage-metric {
  display: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
@media (min-width: 768px) { .stage-metric { display: block; } }
.stage-arrow {
  display: none;
  color: var(--dim);
  justify-self: end;
  transition: transform 0.3s, color 0.3s;
}
@media (min-width: 768px) { .stage-arrow { display: block; } }
.stage-row:hover .stage-arrow { transform: translateX(6px); color: var(--volt); }

/* ---------- CTA-блок ---------- */

.cta-section { position: relative; overflow: hidden; background: var(--panel); }
.cta-ghost {
  position: absolute;
  right: -20px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11rem;
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 62, 0, 0.25);
  display: none;
  pointer-events: none;
}
@media (min-width: 1024px) { .cta-ghost { display: block; } }
.cta-inner { max-width: 660px; }
.cta-title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  color: var(--fog);
}
.cta-title .a-e { color: var(--ember); }
.cta-text { margin-top: 22px; max-width: 560px; line-height: 1.7; color: var(--dim); }
.cta-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- подстраницы: шапка ---------- */

.page-head {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-head-inner { padding-top: 56px; padding-bottom: 40px; }
@media (min-width: 768px) { .page-head-inner { padding-top: 76px; padding-bottom: 48px; } }
.page-title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--fog);
  font-size: clamp(2.6rem, 9vw, 6.4rem);
}
.page-lead { margin-top: 22px; max-width: 640px; line-height: 1.7; color: var(--dim); }
.page-lead .a-v { color: var(--volt); }
.page-lead .a-e { color: var(--ember); }
.page-lead strong { color: var(--fog); font-weight: 600; }

.queue-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 62, 0, 0.55);
  background: rgba(255, 62, 0, 0.1);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
}
.queue-chip .pulse-dot { background: var(--ember); }

/* ---------- фильтры ---------- */

.filters-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.95);
}
@media (min-width: 768px) { .filters-bar { top: var(--header-h-md); } }
.filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.filters-label {
  margin-right: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.f-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
@media (min-width: 768px) { .f-btn { min-height: 0; } }
.f-btn b { font-weight: 400; color: var(--ember); }
.f-btn:hover { border-color: var(--line2); color: var(--fog); }
.f-btn.active {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--ink);
  font-weight: 700;
}
.f-btn.active b { color: rgba(10, 10, 10, 0.65); }
.filters-count {
  margin-left: auto;
  display: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
@media (min-width: 768px) { .filters-count { display: block; } }

.portfolio-pad { padding-top: 44px; padding-bottom: 60px; }

/* ошибка загрузки data/projects.json */
.data-error {
  position: relative;
  max-width: 640px;
  border: 1px solid rgba(255, 62, 0, 0.5);
  background: var(--panel);
  padding: 30px 28px;
}
.data-error h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  text-transform: uppercase;
  color: var(--fog);
}
.data-error p { margin-top: 12px; font-size: 14px; line-height: 1.65; color: var(--dim); }
.data-error b { color: var(--volt); font-family: var(--font-mono); font-weight: 400; }
.data-error .btns { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }

/* нижний блок портфолио */
.pf-bottom { border-top: 1px solid var(--line); }
.pf-bottom-grid {
  display: grid;
  gap: 28px;
  padding-top: 56px;
  padding-bottom: 60px;
}
@media (min-width: 768px) { .pf-bottom-grid { grid-template-columns: 1fr 1fr; } }
.pf-panel {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 30px 28px;
}
.pf-panel h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  text-transform: uppercase;
  color: var(--fog);
}
.pf-panel p { margin-top: 12px; font-size: 14px; line-height: 1.65; color: var(--dim); max-width: 440px; }
.pf-actions { display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.pf-actions .btns { display: flex; flex-wrap: wrap; gap: 14px; }
.pf-note {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- детальная страница проекта ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.crumbs a { color: var(--dim); transition: color 0.25s; }
.crumbs a:hover { color: var(--ember); }
.crumbs .sep { color: var(--line2); }

.project-grid {
  display: grid;
  gap: 40px;
  padding-top: 26px;
  padding-bottom: 72px;
}
@media (min-width: 1024px) {
  .project-grid { grid-template-columns: repeat(12, 1fr); }
  .project-media-col { grid-column: span 7; }
  .project-info-col { grid-column: span 5; }
}

.gallery-frame {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
}
.gallery-main {
  position: relative;
  overflow: hidden;
  background: var(--carbon);
}
.gallery-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: opacity 0.4s;
}
.gallery-main img.contain { object-fit: contain; background: #050505; }
.gallery-mode {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 2;
  display: flex;
  gap: 0;
  border: 1px solid var(--line2);
}
.mode-btn {
  padding: 8px 13px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--smoke);
  background: rgba(10, 10, 10, 0.75);
  transition: background 0.25s, color 0.25s;
}
.mode-btn + .mode-btn { border-left: 1px solid var(--line2); }
.mode-btn.active { background: var(--ember); color: var(--ink); font-weight: 700; }
.gallery-counter {
  position: absolute;
  left: 12px; bottom: 12px;
  z-index: 2;
  padding: 5px 9px;
  background: rgba(10, 10, 10, 0.72);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.85);
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.thumb {
  position: relative;
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: 0.65; transition: opacity 0.25s; }
.thumb:hover img { opacity: 1; }
.thumb:hover { transform: translateY(-2px); }
.thumb.active { border-color: var(--ember); }
.thumb.active img { opacity: 1; }

.info-panel {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 28px 26px;
}
@media (min-width: 1024px) { .info-sticky { position: sticky; top: 110px; } }
.info-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--fog);
}
.info-desc { margin-top: 14px; font-size: 15px; line-height: 1.7; color: var(--dim); }
.info-price {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px dashed rgba(255, 62, 0, 0.5);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.info-price dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.info-price dd {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  color: var(--ember);
}
.spec-table { margin-top: 22px; border-top: 1px solid var(--line); }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.spec-row dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 2px;
}
.spec-row dd { color: var(--smoke); text-align: right; }
.info-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.info-actions .btn { justify-content: center; }

.detail-block { margin-top: 56px; }
.detail-block h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--fog);
  display: flex;
  align-items: center;
  gap: 12px;
}
.detail-block h2::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--ember);
  flex: none;
}
.detail-text {
  margin-top: 16px;
  max-width: 760px;
  line-height: 1.75;
  color: var(--dim);
  white-space: pre-line;
}
.mat-list { margin-top: 16px; display: grid; gap: 0; max-width: 640px; }
.mat-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--smoke);
  transition: padding-left 0.25s, color 0.25s;
}
.mat-list li:hover { padding-left: 12px; color: var(--fog); }
.mat-list li::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--volt);
  transform: rotate(45deg);
  flex: none;
}
.tag-row { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 12px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  transition: border-color 0.25s, color 0.25s;
}
.tag:hover { border-color: var(--volt); color: var(--volt); }

.pn-nav {
  border-top: 1px solid var(--line);
  display: grid;
}
@media (min-width: 768px) { .pn-nav { grid-template-columns: 1fr 1fr; } }
.pn-link {
  display: block;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
@media (min-width: 768px) {
  .pn-link { border-bottom: 0; }
  .pn-link + .pn-link { border-left: 1px solid var(--line); text-align: right; }
}
.pn-link:hover { background: var(--panel); }
.pn-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.pn-name {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--fog);
  transition: color 0.25s;
}
.pn-link:hover .pn-name { color: var(--ember); }

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

.process-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(12, 1fr); } }

.rail { display: none; }
@media (min-width: 1024px) {
  .rail { display: block; grid-column: span 3; }
  .rail-inner { position: sticky; top: 140px; }
}
.rail-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.rail-num {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 76px;
  line-height: 1;
  color: var(--fog);
}
.rail-num .of { color: var(--line2); }
.rail-title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--ember);
}
.rail-track {
  position: relative;
  margin-top: 26px;
  width: 1px; height: 176px;
  background: var(--line);
}
.rail-fill {
  position: absolute;
  left: 0; top: 0;
  width: 1px;
  background: var(--ember);
  transition: height 0.5s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.rail-dot {
  position: absolute;
  left: -3.5px;
  width: 8px; height: 8px;
  background: var(--ember);
  transform: rotate(45deg);
  transition: top 0.5s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.rail-outro {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 2;
  color: var(--dim);
}
.rail-outro .a-v { color: var(--volt); }

.stages-col { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 1024px) { .stages-col { grid-column: span 9; } }

.stage-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.5s;
}
.stage-card.active { border-color: var(--ember); }
.stage-card.with-img { display: grid; }
@media (min-width: 768px) { .stage-card.with-img { grid-template-columns: 1fr 1fr; } }
.stage-body { padding: 26px 24px; }
@media (min-width: 768px) { .stage-body { padding: 36px 34px; } }
.stage-head { display: flex; align-items: baseline; gap: 16px; }
.stage-card .stage-num { font-size: 40px; transition: color 0.4s; }
@media (min-width: 768px) { .stage-card .stage-num { font-size: 48px; } }
.stage-card.active .stage-num { color: var(--ember); }
.stage-card h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  text-transform: uppercase;
  color: var(--fog);
}
.stage-sub {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--volt);
}
.stage-text { margin-top: 14px; line-height: 1.7; color: var(--dim); }
.stage-tools { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.stage-tools span {
  padding: 6px 11px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.stage-dur {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.stage-dur b { color: var(--fog); font-weight: 400; }
.stage-img {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) {
  .stage-img { border-top: 0; border-left: 1px solid var(--line); }
}
.stage-img img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stage-card:hover .stage-img img { transform: scale(1.05); }
.stage-img figcaption {
  position: absolute;
  left: 12px; bottom: 12px;
  padding: 5px 9px;
  background: rgba(10, 10, 10, 0.75);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoke);
}

.timeline-strip { border-top: 1px solid var(--line); background: rgba(18, 18, 18, 0.5); }
.timeline-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 768px) { .timeline-grid { grid-template-columns: repeat(5, 1fr); } }
.timeline-cell { background: var(--ink); padding: 20px; }
.timeline-cell .n {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
}
.timeline-cell .t {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--fog);
}
.timeline-cell .m {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.timeline-cell .arr {
  margin-top: 12px;
  display: none;
  font-family: var(--font-mono);
  color: var(--volt);
}
@media (min-width: 768px) { .timeline-cell .arr { display: block; } }

.process-cta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 768px) { .process-cta { flex-direction: row; align-items: center; } }
.process-cta p { max-width: 620px; line-height: 1.7; color: var(--dim); }
.process-cta .btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- заказ ---------- */

.order-grid { display: grid; gap: 36px; padding-top: 56px; padding-bottom: 64px; }
@media (min-width: 1024px) {
  .order-grid { grid-template-columns: repeat(12, 1fr); }
  .order-form-col { grid-column: span 7; }
  .order-aside-col { grid-column: span 5; }
}

.order-form {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 26px 22px;
}
@media (min-width: 768px) { .order-form { padding: 36px 34px; } }
.order-form h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--fog);
}
.form-grid {
  margin-top: 30px;
  display: grid;
  gap: 22px;
}
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-field label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.form-field label .req { color: var(--ember); }
.form-field label .opt { color: var(--line2); }
.field {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--fog);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field::placeholder { color: #5c5c5c; }
.field:focus {
  outline: none;
  border-color: var(--ember);
  box-shadow: 3px 3px 0 rgba(255, 62, 0, 0.25);
}
.field.err { border-color: var(--ember); }
select.field { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ff3e00' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select.field option { background: var(--carbon); color: var(--fog); }
textarea.field { resize: vertical; min-height: 140px; line-height: 1.6; }
.field-error {
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember);
}
.form-foot {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.form-note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.span-2 { grid-column: 1 / -1; }

/* успех */
.order-success {
  position: relative;
  border: 1px solid rgba(0, 217, 255, 0.45);
  background: var(--panel);
  padding: 26px 22px;
}
@media (min-width: 768px) { .order-success { padding: 36px 34px; } }
.order-success h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  text-transform: uppercase;
  color: var(--fog);
}
.order-success .lead { margin-top: 12px; max-width: 560px; font-size: 14px; line-height: 1.65; color: var(--dim); }
.msg-preview {
  margin-top: 24px;
  max-height: 260px;
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  color: rgba(255, 255, 255, 0.88);
}
.success-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.reset-link {
  margin-top: 26px;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.25s;
}
.reset-link:hover { color: var(--ember); }

.aside-stack { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 1024px) { .aside-sticky { position: sticky; top: 128px; } }
.aside-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px 22px;
}
.aside-card.plain { background: transparent; }
.aside-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.aside-title .acc { color: var(--ember); }
.aside-btns { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.aside-btns .btn { justify-content: center; }
.aside-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 2;
  color: var(--dim);
}
.steps-list { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.steps-list li { display: flex; gap: 14px; }
.steps-list .n {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  color: var(--ember);
}
.steps-list .t { font-weight: 600; color: var(--fog); display: block; }
.steps-list .d { font-size: 13.5px; color: var(--dim); }
.aside-socials { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; }
.aside-socials a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  transition: color 0.25s, border-color 0.25s;
}
.aside-socials a:hover { color: var(--fog); border-color: var(--ember); }
.aside-socials a:hover .i { color: var(--ember); }
.aside-socials .i { transition: color 0.25s; }

/* ---------- футер ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.footer-word {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 28px 16px 4px;
  text-align: center;
  user-select: none;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  white-space: nowrap;
  font-size: clamp(3.2rem, 14vw, 11.5rem);
  color: transparent;
  -webkit-text-stroke: 1px #2c2c2c;
}
.footer-grid {
  display: grid;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 16px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(12, 1fr); padding: 48px 24px; }
  .footer-col { grid-column: span 4; }
  .footer-col-wide { grid-column: span 5; }
}
.footer-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 16px;
}
.footer-col:nth-child(2) .footer-label,
.footer-col:nth-child(3) .footer-label { color: var(--dim); }
.footer-text { font-size: 14px; line-height: 1.7; color: var(--dim); max-width: 320px; }
.footer-mail {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fog);
  transition: color 0.25s;
}
.footer-mail:hover { color: var(--volt); }
.footer-list { display: flex; flex-direction: column; gap: 11px; }
.footer-socials { display: grid; }
@media (min-width: 640px) { .footer-socials { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.footer-socials a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s;
}
.footer-socials a:hover { border-color: var(--ember); }
.footer-socials .i { color: var(--dim); transition: color 0.25s, transform 0.25s; }
.footer-socials a:hover .i { color: var(--ember); transform: translateY(-2px); }
.footer-socials span { font-size: 13.5px; color: rgba(255, 255, 255, 0.82); }
.footer-socials em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  transition: color 0.25s;
}
.footer-socials a:hover em { color: var(--ember); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
@media (min-width: 768px) { .footer-bottom { padding: 16px 24px; } }
@media (max-width: 767px) { .footer-bottom-mid { display: none; } }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--dim);
  transition: color 0.25s;
}
.to-top:hover { color: var(--ember); }

/* ---------- noscript ---------- */

.noscript-box {
  max-width: 720px;
  margin: 60px auto;
  padding: 30px;
  border: 1px solid var(--line);
}
.noscript-box h1 { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; color: var(--fog); }
.noscript-box ul { margin: 14px 0 14px 20px; list-style: square; }
.noscript-box a { color: var(--volt); text-decoration: underline; }

/* ---------- keyframes ---------- */

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan { 0% { top: -40%; } 100% { top: 110%; } }
@keyframes dash { 0% { transform: translateX(-110%); } 100% { transform: translateX(360%); } }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.72); }
}
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
.cursor-blink { animation: blink 1.1s steps(1) infinite; color: var(--volt); }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .scanline { display: none; }
}
