/* ============================================================================
   Neon Fox — студия веб-разработки
   Тёмная НЕОНОВАЯ тема: тёплый янтарный неон + один холодный (cyan) акцент.
   Свечение, стекло, hairline-неон. Шрифты: Manrope (display) + Inter (body).
   ========================================================================== */

/* ---------------------------------------------------------------- Tokens -- */
:root {
  /* База — тёплый near-black */
  --bg:        #0A0E1A;
  --bg-2:      #0C1122;
  --surface-1: #12172A;
  --surface-2: #171C33;
  --glass:     rgba(124, 107, 255, 0.035);

  /* Текст — тёплый off-white */
  --text:  #ECEEF8;
  --muted: rgba(226, 229, 248, 0.60);
  --faint: rgba(226, 229, 248, 0.34);

  /* Hairline-бордеры */
  --border:        rgba(150, 160, 235, 0.09);
  --border-strong: rgba(150, 160, 235, 0.18);

  /* Янтарный неон (основной акцент) */
  --amber-300: #ADA1FF;
  --amber-400: #ADA1FF;
  --amber-500: #7C6BFF;
  --amber-600: #6A5CF0;
  --amber:     #7C6BFF;
  --amber-grad: linear-gradient(135deg, #22D3EE 0%, #7C6BFF 46%, #6A5CF0 100%);

  /* Холодный неон — дозированный второй акцент */
  --cool:  #22D3EE;
  --cool-600: #1AA6C4;

  /* Свечения */
  --glow-s:  0 0 12px rgba(124, 107, 255, 0.45);
  --glow-m:  0 0 22px rgba(124, 107, 255, 0.50), 0 0 52px rgba(124, 107, 255, 0.22);
  --glow-l:  0 0 34px rgba(124, 107, 255, 0.55), 0 0 90px rgba(124, 107, 255, 0.25);
  --glow-cool: 0 0 20px rgba(85, 214, 255, 0.45);
  --text-glow: 0 0 18px rgba(124, 107, 255, 0.55);

  /* Типографика */
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --fs-hero:  clamp(2.8rem, 6.4vw + 0.5rem, 8rem);
  --fs-h1:    clamp(2.25rem, 4.5vw, 4.5rem);
  --fs-h2:    clamp(1.9rem, 3.4vw, 3.25rem);
  --fs-h3:    clamp(1.2rem, 1.6vw, 1.6rem);
  --fs-lead:  clamp(1.0625rem, 0.6vw + 0.9rem, 1.375rem);
  --fs-body:  1.0625rem;
  --fs-small: 0.8125rem;

  /* Раскладка */
  --container:      1280px;
  --container-wide: 1560px;
  --gutter:  clamp(1.25rem, 5vw, 6rem);
  --space-section: clamp(5.5rem, 11vw, 11rem);
  --radius:   18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  /* Кривые */
  --ease-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-rev: 0.85s;
  --dur-hover: 0.35s;

  --nav-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Фоновые неон-свечения (фиксированы за контентом) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 38% at 84% 4%, rgba(124, 107, 255, 0.16), transparent 62%),
    radial-gradient(40% 34% at 8% 96%, rgba(85, 214, 255, 0.05), transparent 60%);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
::selection { background: rgba(124, 107, 255, 0.30); color: #fff; }

:focus-visible {
  outline: 2px solid var(--amber-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }

.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: clamp(3.5rem, 7vw, 7rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber-500);
  box-shadow: var(--glow-s);
}
.eyebrow--plain::before { display: none; }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: none;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head h2 { font-size: var(--fs-h2); }
.section-head .lead { color: var(--muted); font-size: var(--fs-lead); max-width: none; }

.text-amber {
  background: var(--amber-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* мягкое свечение под градиентным текстом */
  filter: drop-shadow(0 0 18px rgba(124, 107, 255, 0.45));
}
.muted { color: var(--muted); }

/* ------------------------------------------------------------- Buttons ---- */
.btn {
  --pad-y: 0.95rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: var(--pad-y) 1.6rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: transform var(--dur-hover) var(--ease-quart),
              box-shadow var(--dur-hover) var(--ease-quart),
              border-color var(--dur-hover) var(--ease-quart),
              background-color var(--dur-hover) var(--ease-quart),
              color var(--dur-hover) var(--ease-quart);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--dur-hover) var(--ease-quart); }

/* Основная — «неон-таблетка»: янтарный градиент + свечение */
.btn--primary {
  background: var(--amber-grad);
  color: #08101D;
  box-shadow: inset 0 1px 0 rgba(226, 229, 248, 0.55),
              0 8px 26px -8px rgba(124, 107, 255, 0.7),
              0 0 26px rgba(124, 107, 255, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(226, 229, 248, 0.6),
              0 12px 30px -8px rgba(124, 107, 255, 0.8),
              0 0 42px rgba(124, 107, 255, 0.55);
}
.btn--primary:hover svg { transform: translate(3px, -3px); }

/* Вторичная — стеклянная с неон-контуром на hover */
.btn--ghost {
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--amber-500);
  color: var(--amber-300);
  box-shadow: 0 0 22px rgba(124, 107, 255, 0.22), inset 0 0 18px rgba(124, 107, 255, 0.06);
}

.btn--lg { --pad-y: 1.15rem; padding-inline: 2rem; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  color: var(--text);
  transition: gap var(--dur-hover) var(--ease-quart), color var(--dur-hover), text-shadow var(--dur-hover);
}
.link-arrow svg { width: 18px; height: 18px; color: var(--amber-500); transition: transform var(--dur-hover) var(--ease-quart); }
.link-arrow:hover { color: var(--amber-300); text-shadow: var(--text-glow); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ---------------------------------------------------- Grain & cursor ----- */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("/assets/img/noise.svg");
  background-size: 240px 240px;
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 9999;
}

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate3d(-50%, -50%, 0);
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: var(--amber-500); box-shadow: var(--glow-s); }
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(124, 107, 255, 0.4);
  transition: width 0.3s var(--ease-quart), height 0.3s var(--ease-quart), border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.cursor-ring.is-hover { width: 62px; height: 62px; border-color: var(--amber-500); background: rgba(124, 107, 255, 0.06); box-shadow: 0 0 20px rgba(124,107,255,0.3); }
body.has-cursor { cursor: none; }
body.has-cursor a, body.has-cursor button { cursor: none; }

/* ---------------------------------------------------------- Reveal anim -- */
.js .reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--dur-rev) var(--ease-expo),
              transform var(--dur-rev) var(--ease-expo);
  transition-delay: calc(var(--i, 0) * 75ms);
}
.line-mask { overflow: hidden; display: block; padding-block: 0.02em; }
.line-mask > span { display: block; }
.js .line-mask > span { transform: translateY(110%); }
.line-mask.is-in > span {
  transform: none;
  transition: transform 0.9s var(--ease-expo);
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* =============================================================== Navbar === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background-color 0.4s var(--ease-quart), border-color 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 9, 8, 0.62);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(124, 107, 255, 0.08), 0 8px 30px -20px rgba(0,0,0,0.8);
}
.nav__inner {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.brand img { width: 38px; height: 38px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.brand__name .n { color: var(--amber-400); text-shadow: 0 0 16px rgba(124, 107, 255, 0.6); }
.nav__links { display: flex; align-items: center; gap: 2.2rem; }
.nav__links a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color var(--dur-hover), text-shadow var(--dur-hover);
}
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border); }
.nav__toggle svg { width: 22px; height: 22px; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 9, 8, 0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  gap: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.4s var(--ease-quart), transform 0.4s var(--ease-quart), visibility 0.4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 9vw, 3rem);
  letter-spacing: -0.03em;
  padding-block: 0.35rem;
  color: var(--text);
}
.mobile-menu a span { color: var(--amber-500); font-size: 1rem; font-family: var(--font-body); font-weight: 500; margin-right: 0.6rem; }
.mobile-menu .btn { margin-top: 1.5rem; align-self: flex-start; }

/* ================================================================= Hero === */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: 4%; right: -8%;
  width: min(82vw, 940px);
  height: min(82vw, 940px);
  background: radial-gradient(circle at 50% 50%, rgba(124, 107, 255, 0.26), rgba(124, 107, 255, 0.06) 40%, transparent 66%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px);
  background-size: 100% clamp(60px, 8vw, 110px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  opacity: 0.6;
  z-index: 0;
}
.hero__inner { position: relative; z-index: 1; width: 100%; padding-block: clamp(3rem, 8vh, 7rem); }
.hero__eyebrow { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
  max-width: 15ch;
}
.hero__sub {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 46ch;
}
.hero__cta { margin-top: clamp(2rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll {
  position: absolute;
  bottom: 2rem; left: var(--gutter);
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: var(--fs-small); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
  z-index: 1;
}
.hero__scroll::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--amber-500), transparent); box-shadow: var(--glow-s); animation: scrollpulse 2.2s var(--ease-inout) infinite; }
@keyframes scrollpulse { 0%,100% { transform: scaleY(0.4); opacity: 0.5; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; transform-origin: top; } }

/* ======================================================== Trust strip ==== */
.trust { border-block: 1px solid var(--border); padding-block: clamp(1.6rem, 3vw, 2.4rem); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2rem); }
.stat { display: flex; flex-direction: column; gap: 0.35rem; align-items: center; text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.2vw, 2.9rem); letter-spacing: -0.03em; }
.stat__num .text-amber { display: inline; }
.stat__label { font-size: var(--fs-small); color: var(--muted); letter-spacing: 0.02em; }

/* ============================================================= Services === */
.services__list { border-top: 1px solid var(--border); }
.service {
  display: grid;
  grid-template-columns: 5.5rem 3.5rem 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  padding-inline-start: clamp(0.5rem, 2vw, 2rem);
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background-color var(--dur-hover) var(--ease-quart);
}
/* Неон-подсветка снизу строки (без перекрытия цифр — исправлен прежний баг) */
.service::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--amber-grad);
  box-shadow: var(--glow-s);
  opacity: 0;
  transition: opacity var(--dur-hover) var(--ease-quart);
}
.service:hover { background: linear-gradient(90deg, rgba(124, 107, 255, 0.06), transparent 55%); }
.service:hover::after { opacity: 0.9; }
.service__num { font-family: var(--font-display); font-weight: 600; color: var(--faint); font-size: 0.95rem; letter-spacing: 0.05em; transition: color var(--dur-hover), text-shadow var(--dur-hover); }
.service:hover .service__num { color: var(--amber-400); text-shadow: var(--text-glow); }
.service__icon {
  width: 3.5rem; height: 3.5rem;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--amber-400);
  background: var(--surface-1);
  transition: color var(--dur-hover), border-color var(--dur-hover), box-shadow var(--dur-hover), transform var(--dur-hover) var(--ease-quart);
}
.service:hover .service__icon {
  border-color: rgba(124, 107, 255, 0.45);
  box-shadow: 0 0 22px rgba(124, 107, 255, 0.22), inset 0 0 14px rgba(124, 107, 255, 0.08);
  transform: translateY(-2px);
}
.service__body h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 0.3rem; }
.service__body p { color: var(--muted); max-width: 56ch; }
.service__go { color: var(--faint); transition: color var(--dur-hover), transform var(--dur-hover) var(--ease-quart); }
.service__go svg { width: 24px; height: 24px; }
.service:hover .service__go { color: var(--amber-500); transform: translate(3px, -3px); }

.icon-mask {
  width: 26px; height: 26px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

/* ============================================================== Values ==== */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.value {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color var(--dur-hover), box-shadow var(--dur-hover), transform var(--dur-hover) var(--ease-quart);
}
.value:hover {
  border-color: rgba(124, 107, 255, 0.35);
  box-shadow: 0 0 30px -6px rgba(124, 107, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
}
.value__k { font-family: var(--font-display); font-weight: 700; color: var(--amber-500); font-size: 0.85rem; letter-spacing: 0.1em; margin-bottom: 1.2rem; text-shadow: var(--glow-s); }
.value h3 { font-size: 1.18rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.value p { color: var(--muted); font-size: 0.98rem; }

/* ============================================================= Process ==== */
.process { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.process__aside { position: sticky; top: calc(var(--nav-h) + 3rem); }
.process__aside h2 { font-size: var(--fs-h2); margin-block: 1rem; }
.process__aside p { color: var(--muted); max-width: 34ch; }
.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--border);
}
.step:last-child { border-bottom: 1px solid var(--border); }
.step__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--border-strong);
  letter-spacing: -0.02em;
  transition: color 0.4s, -webkit-text-stroke-color 0.4s, text-shadow 0.4s;
}
.step:hover .step__num { color: var(--amber-500); -webkit-text-stroke-color: transparent; text-shadow: var(--text-glow); }
.step h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 0.5rem; }
.step p { color: var(--muted); max-width: 52ch; }

/* ============================================================ Portfolio === */
.pf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.pf-head h2 { font-size: var(--fs-h2); max-width: 16ch; }

.pf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.pf-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-1);
  transition: border-color var(--dur-hover), box-shadow var(--dur-hover), transform var(--dur-hover) var(--ease-quart);
}
.pf-card:hover {
  border-color: rgba(124, 107, 255, 0.4);
  box-shadow: 0 0 36px -6px rgba(124, 107, 255, 0.3);
  transform: translateY(-4px);
}
.pf-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.pf-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.6s var(--ease-expo); }
.pf-card:hover .pf-card__media img { transform: scale(1.05); }
.pf-card__ph {
  width: 100%; height: 100%;
  background: radial-gradient(60% 80% at 30% 20%, rgba(124, 107, 255, 0.16), transparent 60%), var(--surface-2);
}
.pf-card__body { padding: clamp(1.2rem, 2vw, 1.6rem); display: flex; flex-direction: column; gap: 0.5rem; }
.pf-card__meta { display: flex; justify-content: space-between; font-size: var(--fs-small); color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; }
.pf-card__body h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }
.pf-card__body p { color: var(--muted); font-size: 0.98rem; }
.pf-card__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.tag { font-size: 0.75rem; color: var(--muted); border: 1px solid var(--border); border-radius: 100px; padding: 0.3rem 0.75rem; letter-spacing: 0.02em; }
.pf-card__link { position: absolute; inset: 0; }

/* Пустое состояние портфолио */
.pf-empty {
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60% 120% at 50% -10%, rgba(124, 107, 255, 0.12), transparent 60%),
    var(--surface-1);
}
.pf-empty__mark { width: 78px; height: 78px; margin: 0 auto 1.6rem; }
.pf-empty h3 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); margin-bottom: 0.8rem; }
.pf-empty p { color: var(--muted); max-width: 46ch; margin: 0 auto 2rem; font-size: var(--fs-lead); }
.pf-empty__dots { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.pf-empty__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); animation: dotpulse 1.4s var(--ease-inout) infinite; }
.pf-empty__dots span:nth-child(2) { animation-delay: 0.2s; }
.pf-empty__dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotpulse { 0%,100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1); background: var(--amber-500); box-shadow: var(--glow-s); } }

/* ========================================================= Page hero ===== */
.page-hero { padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { font-size: var(--fs-h1); margin: 1rem 0 0; max-width: 16ch; }
.page-hero__sub { color: var(--muted); font-size: var(--fs-lead); max-width: 48ch; margin-top: 1.2rem; }

/* =============================================================== About ==== */
.about { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); }
.about__quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 20ch;
}
.about__quote .text-amber { display: inline; }
.about__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.about__cols p { color: var(--muted); font-size: var(--fs-lead); }
.about__cols p + p { margin-top: 1.2rem; }

/* ================================================================ FAQ ===== */
.faq { display: grid; grid-template-columns: 0.8fr 1.5fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.faq__aside { position: sticky; top: calc(var(--nav-h) + 3rem); }
.faq__aside h2 { font-size: var(--fs-h2); margin-block: 1rem; }
.faq__aside p { color: var(--muted); max-width: 32ch; }
.faq__list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: clamp(1.3rem, 2.5vw, 1.8rem);
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  letter-spacing: -0.02em;
  transition: color var(--dur-hover), text-shadow var(--dur-hover);
}
.faq-item__q:hover { color: var(--amber-300); }
.faq-item__icon { flex-shrink: 0; width: 26px; height: 26px; position: relative; color: var(--amber-500); transition: transform var(--dur-hover) var(--ease-quart), filter var(--dur-hover); filter: drop-shadow(0 0 8px rgba(124,107,255,0.35)); }
.faq-item__icon svg { width: 100%; height: 100%; }
.faq-item[aria-expanded="true"] .faq-item__icon { transform: rotate(45deg); }
.faq-item__a { overflow: hidden; height: 0; transition: height 0.4s var(--ease-quart); }
.faq-item__a-inner { padding-bottom: clamp(1.3rem, 2.5vw, 1.8rem); color: var(--muted); max-width: 68ch; }

/* ============================================================ CTA band ==== */
.cta {
  position: relative;
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
  background:
    radial-gradient(70% 130% at 50% 120%, rgba(124, 107, 255, 0.18), transparent 60%),
    var(--surface-1);
  box-shadow: inset 0 0 60px rgba(124, 107, 255, 0.05);
}
.cta__glow { position: absolute; left: 50%; bottom: -42%; width: 72%; height: 92%; transform: translateX(-50%); background: radial-gradient(circle, rgba(124, 107, 255, 0.32), transparent 65%); filter: blur(60px); pointer-events: none; }
.cta h2 { position: relative; font-size: clamp(2.2rem, 5.5vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; max-width: 18ch; margin: 0 auto 1.2rem; }
.cta p { position: relative; color: var(--muted); font-size: var(--fs-lead); max-width: 44ch; margin: 0 auto 2.4rem; }
.cta .btn { position: relative; }

/* ============================================================= Contact ==== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.contact h2 { font-size: var(--fs-h2); margin-bottom: 1.2rem; max-width: 16ch; }
.contact p { color: var(--muted); font-size: var(--fs-lead); max-width: 44ch; }
.contact__cards { display: flex; flex-direction: column; gap: 1rem; }
.contact-card {
  display: flex; align-items: center; gap: 1.2rem;
  padding: clamp(1.3rem, 2.5vw, 1.8rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--glass);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color var(--dur-hover), box-shadow var(--dur-hover), transform var(--dur-hover) var(--ease-quart);
}
.contact-card:hover { border-color: rgba(124, 107, 255, 0.4); box-shadow: 0 0 26px -6px rgba(124, 107, 255, 0.28); transform: translateX(4px); }
.contact-card__ic { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); color: var(--amber-400); }
.contact-card:hover .contact-card__ic { box-shadow: inset 0 0 14px rgba(124,107,255,0.12); border-color: rgba(124,107,255,0.35); }
.contact-card__ic svg { width: 24px; height: 24px; }
.contact-card__t { font-size: var(--fs-small); color: var(--faint); text-transform: uppercase; letter-spacing: 0.12em; }
.contact-card__v { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; }

/* ============================================================== Footer ==== */
.footer { border-top: 1px solid var(--border); padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: 2.5rem; position: relative; }
.footer__big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 13vw, 12rem);
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-strong);
  margin-bottom: clamp(2rem, 5vw, 4rem);
  user-select: none;
}
.footer__big .n { -webkit-text-stroke: 1px rgba(124, 107, 255, 0.5); }
.footer__row { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; padding-top: 2rem; border-top: 1px solid var(--border); }
.footer__col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col h4 { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); font-family: var(--font-body); font-weight: 600; margin-bottom: 0.4rem; }
.footer__col a { color: var(--muted); transition: color var(--dur-hover), text-shadow var(--dur-hover); }
.footer__col a:hover { color: var(--amber-300); text-shadow: var(--text-glow); }
.footer__tag { color: var(--muted); max-width: 30ch; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--faint); font-size: 0.85rem; }

/* ============================================================ Responsive == */
@media (max-width: 980px) {
  .process, .faq, .contact { grid-template-columns: 1fr; }
  .process__aside, .faq__aside { position: static; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
  .about__cols { grid-template-columns: 1fr; }
  .pf-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .service { grid-template-columns: auto 1fr; row-gap: 0.5rem; }
  .service__num { grid-column: 1; }
  .service__icon { grid-row: span 2; }
  .service__body { grid-column: 2; }
  .service__go { display: none; }
  .hero__scroll { display: none; }
}
@media (max-width: 480px) {
  .values { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
}

/* -------------------------------------------------------------- Print --- */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .grain, .cursor-dot, .cursor-ring, .nav, .mobile-menu, .hero__scroll { display: none !important; }
  body::before { display: none !important; }
  .hero { min-height: auto; padding-top: 2rem; }
  .reveal, .line-mask > span { opacity: 1 !important; transform: none !important; }
  body { background: var(--bg); }
}

/* -------------------------------------------------- Reduced motion ------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal, .line-mask > span { opacity: 1 !important; transform: none !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* =========================================================================
   Шапка v3: верхний блок NEON FOX + вертикальный рейл иконок + marquee
   (палитра берётся из перекрашенных токенов выше)
   ========================================================================= */
html { scroll-padding-top: 24px; }

.nf-top { position: relative; z-index: 1; text-align: center; padding-block: clamp(2rem, 6vw, 4.5rem); }
.nf-top .container { text-align: center; }
.nf-top__word { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 15vw, 12rem); line-height: 0.82; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px var(--border-strong); user-select: none; }
.nf-top__word .n { -webkit-text-stroke: 1.5px var(--amber-500); }
.nf-top__tag { display: flex; justify-content: flex-end; align-items: center; gap: 0.6em; margin-top: clamp(0.5rem, 1.5vw, 1rem); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cool); }
.nf-top__tag::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--cool); box-shadow: var(--glow-cool); }

.nf-rail { position: fixed; right: clamp(0.7rem, 1.6vw, 1.4rem); top: 50%; transform: translateY(-50%); z-index: 95; display: flex; flex-direction: column; gap: 0.7rem; }
.nf-rail a { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 13px; border: 1px solid var(--border); background: rgba(20, 23, 42, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--amber-500); transition: color .3s, border-color .3s, box-shadow .3s, transform .3s var(--ease-quart); }
.nf-rail a svg { width: 21px; height: 21px; }
.nf-rail a:hover { color: #fff; border-color: var(--amber-500); box-shadow: 0 0 18px rgba(124, 107, 255, .45); transform: translateX(-3px); }
.nf-rail a::after { content: attr(data-label); position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(6px); background: rgba(20, 23, 42, 0.92); border: 1px solid var(--border); color: var(--text); font-size: .8rem; font-weight: 500; padding: .42rem .72rem; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease-quart); }
.nf-rail a:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.nf-rail a.is-cta { background: var(--amber-grad); color: #08101d; border-color: transparent; box-shadow: 0 6px 20px -6px rgba(124, 107, 255, .6); }
.nf-rail a.is-cta:hover { box-shadow: 0 8px 24px -6px rgba(124, 107, 255, .85), 0 0 20px rgba(34, 211, 238, .4); }

.nf-marquee { position: relative; z-index: 1; border-block: 1px solid var(--border); overflow: hidden; padding-block: 1.1rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.nf-marquee__track { display: inline-flex; gap: 2.6rem; white-space: nowrap; animation: nf-scroll 28s linear infinite; will-change: transform; }
.nf-marquee span { display: inline-flex; align-items: center; gap: 2.6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--muted); }
.nf-marquee span::after { content: "\2726"; color: var(--amber-500); font-size: 0.7rem; }
@keyframes nf-scroll { to { transform: translateX(-50%); } }

@media (min-width: 721px) { body { padding-right: clamp(58px, 5vw, 86px); } }
@media (max-width: 720px) {
  .nf-rail { top: auto; bottom: clamp(0.7rem, 3vw, 1.1rem); right: 50%; transform: translateX(50%); flex-direction: row; gap: 0.35rem; padding: 0.4rem; border-radius: 16px; border: 1px solid var(--border); background: rgba(10, 14, 26, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .nf-rail a { width: 44px; height: 44px; border: none; background: none; }
  .nf-rail a:hover { transform: none; box-shadow: none; }
  .nf-rail a::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nf-marquee__track { animation: none; } }
