/* KatanaCode — код без шума */
:root {
  --bg: #0d0d11;
  --bg-2: #13131a;
  --card: #17171f;
  --card-hi: #1f1f2a;
  --line: rgba(255, 255, 255, .08);
  --line-hi: rgba(255, 255, 255, .16);
  --text: #f5f3f0;
  --muted: rgba(245, 243, 240, .62);
  --dim: rgba(245, 243, 240, .4);
  --red: #ff2434;
  --red-deep: #c3101e;
  --red-glow: rgba(255, 36, 52, .45);
  --sand: #f2c5a7;
  --gold: #c9a24a;
  --font: "Onest", system-ui, sans-serif;
  --display: "Unbounded", "Onest", sans-serif;
  --radius: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.45, 0, .55, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
body.intro-lock { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--red); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Интро: удар катаны ---------- */
.intro { position: fixed; inset: 0; z-index: 900; pointer-events: none; }
html:not(.js) .intro, .no-boot .intro { display: none; }
.intro-half {
  position: absolute; inset: 0; background: #060608;
  display: grid; place-items: center;
  transition: transform 1.1s var(--ease);
}
.intro-half span {
  font: 900 clamp(140px, 28vw, 320px)/1 serif; color: transparent;
  -webkit-text-stroke: 2px rgba(255, 36, 52, .55);
  opacity: 0; transform: scale(.9); animation: kanji-in .6s .1s var(--ease) forwards;
}
.intro-top { clip-path: polygon(0 0, 100% 0, 100% 38%, 0 62%); }
.intro-bottom { clip-path: polygon(0 62%, 100% 38%, 100% 100%, 0 100%); }
.intro-slash {
  position: absolute; left: -10%; top: 50%; width: 120%; height: 4px;
  background: linear-gradient(90deg, transparent, #fff 40%, var(--red) 60%, transparent);
  box-shadow: 0 0 24px 6px var(--red-glow), 0 0 80px 10px rgba(255, 36, 52, .25);
  transform: rotate(-13deg) scaleX(0); transform-origin: 0 50%;
}
.intro-sparks { position: absolute; inset: 0; }
.intro-sparks i {
  position: absolute; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(#fff, var(--red));
  box-shadow: 0 0 8px var(--red);
  animation: spark .8s var(--ease) forwards;
}
.intro.is-cut .intro-slash { animation: slash-cut .38s var(--ease-io) forwards; }
.intro.is-open .intro-top { transform: translate(-6%, -110%) rotate(-4deg); }
.intro.is-open .intro-bottom { transform: translate(6%, 110%) rotate(-4deg); }
.intro.is-open .intro-slash { opacity: 0; transition: opacity .3s; }
.intro.is-done { display: none; }
@keyframes kanji-in { to { opacity: 1; transform: none; } }
@keyframes slash-cut { 0% { transform: rotate(-13deg) scaleX(0); } 100% { transform: rotate(-13deg) scaleX(1); } }
@keyframes spark {
  from { opacity: 1; transform: translate(0, 0) rotate(var(--r)); }
  to { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
}

/* ---------- Фон, слои ---------- */
.grid-bg, .slash-trail { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.grid-bg { z-index: 0; }
.slash-trail { z-index: 800; }
.shuriken-layer { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 50; pointer-events: none; }
main, .footer, .header { position: relative; z-index: 2; }

/* ---------- Курсор-прицел ---------- */
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor textarea, .has-cursor iframe { cursor: auto !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; opacity: 0; transition: opacity .2s; }
.cursor[data-visible="true"] { opacity: 1; }
.cursor[data-mode="native"] { opacity: 0; }
.cursor-ring {
  position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; color: rgba(255, 255, 255, .75);
  transition: transform .35s var(--ease), color .2s, width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease);
  animation: ring-spin 8s linear infinite;
}
.cursor-dot {
  position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 10px var(--red);
}
.cursor[data-mode="interactive"] .cursor-ring { color: var(--red); width: 40px; height: 40px; margin: -20px 0 0 -20px; animation-duration: 1.4s; }
.cursor[data-pressed="true"] .cursor-ring { transform: scale(.7); }
@keyframes ring-spin { to { rotate: 360deg; } }

/* ---------- Прогресс-катана ---------- */
.katana-progress {
  position: fixed; right: 18px; top: 50%; translate: 0 -50%; z-index: 60; height: min(62vh, 520px); width: 12px;
  display: flex; flex-direction: column; align-items: center; pointer-events: none;
}
.kp-handle {
  width: 10px; height: 18%; border-radius: 5px 5px 2px 2px;
  background: repeating-linear-gradient(45deg, var(--red) 0 4px, #1c1c26 4px 8px);
  border: 1px solid #000;
}
.kp-guard { width: 22px; height: 6px; border-radius: 3px; background: var(--gold); margin: 2px 0; }
.kp-sheath { position: relative; flex: 1; width: 6px; border-radius: 0 0 6px 6px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.kp-blade {
  position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--p, 0));
  background: linear-gradient(90deg, #8d93a8, #fff 45%, #b9bed0);
  box-shadow: 0 0 12px rgba(255, 255, 255, .5);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 10px));
}

/* ---------- Кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  transition: background .25s, color .25s, box-shadow .3s, border-color .25s, transform .4s var(--ease);
  isolation: isolate; overflow: hidden;
}
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px var(--red-glow); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-primary:hover { box-shadow: 0 14px 40px -8px var(--red-glow); }
.btn-primary:hover::before { transform: translateX(120%); transition: transform .7s var(--ease); }
.btn-ghost { border: 1px solid var(--line-hi); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--text); }
.btn-shuriken { width: 18px; height: 18px; color: #fff; transition: transform .6s var(--ease); }
.btn:hover .btn-shuriken { transform: rotate(360deg); }

/* ---------- Шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: var(--header-h);
  transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(13, 13, 17, .72); backdrop-filter: blur(14px); border-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 19px var(--display); letter-spacing: -.02em; }
.logo b { color: var(--red); font-weight: 700; }
.logo-mark { width: 28px; height: 28px; color: var(--red); transition: transform .8s var(--ease); }
.logo:hover .logo-mark { transform: rotate(360deg); }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav a { position: relative; color: var(--muted); transition: color .2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--red);
  transform: scaleX(0) skewX(-30deg); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1) skewX(-30deg); transform-origin: left; }
.header-phone { font-weight: 600; font-size: 15px; }
.burger { display: none; width: 44px; height: 44px; position: relative; margin-left: auto; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); transition: transform .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.header-inner { position: relative; z-index: 2; }
.mobile-menu {
  position: fixed; inset: 0; height: 100dvh; z-index: 1; padding: calc(var(--header-h) + 24px) 24px 24px; overflow: hidden;
  background: radial-gradient(circle at 100% 100%, rgba(255, 36, 52, .25), transparent 55%), #0b0b0f;
  display: flex; flex-direction: column; gap: 2px;
  clip-path: circle(0 at calc(100% - 38px) 36px); transition: clip-path .7s var(--ease), visibility 0s .7s; visibility: hidden;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 38px) 36px); visibility: visible; transition: clip-path .7s var(--ease); }
.mobile-menu > a {
  padding: 10px 0; font: 700 clamp(30px, 9vw, 42px)/1.1 var(--display); letter-spacing: -.02em;
  opacity: 0; transform: translateX(-30px) skewX(-8deg); transition: opacity .4s, transform .6s var(--ease);
}
.mobile-menu.is-open > a, .mobile-menu.is-open .mm-social { opacity: 1; transform: none; }
.mobile-menu > a:nth-child(1) { transition-delay: .12s; }
.mobile-menu > a:nth-child(2) { transition-delay: .17s; }
.mobile-menu > a:nth-child(3) { transition-delay: .22s; }
.mobile-menu > a:nth-child(4) { transition-delay: .27s; }
.mobile-menu > a:nth-child(5) { transition-delay: .32s; }
.mobile-menu > a:nth-child(6) { transition-delay: .37s; }
.mobile-menu > a:active { color: var(--red); }
.mobile-menu .mm-phone { margin-top: 18px; color: var(--red); font-size: 22px; }
.mm-social { display: flex; gap: 12px; margin-top: 14px; opacity: 0; transform: translateY(20px); transition: opacity .4s .42s, transform .6s .42s var(--ease); }
.mm-social a { padding: 10px 18px; border: 1px solid var(--line-hi); border-radius: 999px; font-weight: 600; }
.mm-ninja { position: absolute; right: -20px; bottom: -30px; width: 210px; transform: translateY(100%) rotate(-12deg); transition: transform .8s .3s var(--ease); }
.mobile-menu.is-open .mm-ninja { transform: rotate(-12deg); }
html.menu-open, html.menu-open body { overflow: hidden; }

/* ---------- Общие элементы секций ---------- */
section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font: 600 13px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--red);
}
.badge::before { content: ""; width: 22px; height: 2px; background: var(--red); transform: skewX(-30deg); }
.section-head { margin-bottom: 52px; max-width: 720px; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; }
.section-head-row > div:first-child { max-width: 680px; }
.section-head h2 { font-size: clamp(32px, 5vw, 58px); }
.section-lead { margin-top: 18px; color: var(--muted); font-size: 18px; }

/* Заголовок появляется разрезом */
.slash-title { position: relative; }
.js .slash-title { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
.js .slash-title.is-in { animation: slash-reveal 1s var(--ease) forwards; }
.slash-title::after {
  content: ""; position: absolute; left: -2%; top: 50%; width: 104%; height: 3px; background: var(--red);
  box-shadow: 0 0 16px var(--red-glow); transform: rotate(-4deg) scaleX(0); transform-origin: left; pointer-events: none;
}
.slash-title.is-in::after { animation: slash-line 1s var(--ease) forwards; }
@keyframes slash-reveal {
  0% { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
  100% { clip-path: polygon(0 -20%, 110% -20%, 110% 120%, 0 120%); }
}
@keyframes slash-line {
  0% { transform: rotate(-4deg) scaleX(0); opacity: 1; }
  45% { transform: rotate(-4deg) scaleX(1); opacity: 1; }
  100% { transform: rotate(-4deg) scaleX(1) translateX(30%); opacity: 0; }
}

.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { touch-action: pan-y; min-height: 100svh; padding: calc(var(--header-h) + 40px) 0 80px; display: flex; align-items: center; overflow: hidden; }
.hero-kanji {
  position: absolute; right: -4vw; top: 50%; translate: 0 -50%;
  font: 900 min(60vw, 720px)/1 serif; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .05);
  user-select: none; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; gap: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 var(--red-glow); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 36, 52, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 36, 52, 0); } }
.hero-title { font-size: clamp(34px, 5vw, 74px); font-weight: 900; line-height: 1; letter-spacing: -.035em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { transform: translateY(110%) skewY(8deg); }
.is-ready .hero-title .line > span { transform: none; transition: transform 1.2s var(--ease); }
.is-ready .hero-title .line:nth-child(2) > span { transition-delay: .1s; }
.is-ready .hero-title .line:nth-child(3) > span { transition-delay: .2s; }
.hero-title .accent {
  color: var(--red); position: relative;
  background: linear-gradient(100deg, var(--red) 40%, #ff8a93 50%, var(--red) 60%) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: -150% 0; } }
.hero-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px; color: var(--muted); }
.hero-points li { position: relative; padding-left: 26px; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px;
  background: var(--red); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.hero-points b { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--dim); }
.js .hero-copy > :not(.hero-title) { opacity: 0; transform: translateY(20px); }
.is-ready .hero-copy > :not(.hero-title) { opacity: 1; transform: none; transition: opacity .9s .45s var(--ease), transform .9s .45s var(--ease); }

.hero-visual { position: relative; aspect-ratio: 1 / 1.1; width: min(100%, 440px); justify-self: center; }
.hero-ring {
  position: absolute; inset: 6% 4% 10%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(255, 36, 52, .28), transparent 62%);
}
.hero-ring::before, .hero-ring::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .12);
  animation: ring-spin 40s linear infinite;
}
.hero-ring::after { inset: 12%; border: 1px solid rgba(255, 36, 52, .25); animation-duration: 25s; animation-direction: reverse; }
/* Красное солнце с прорезями */
.hero-sun {
  position: absolute; left: 50%; top: 44%; width: 74%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: linear-gradient(180deg, #ff5a66 0%, #ff2434 45%, #8f0b16 100%);
  -webkit-mask: linear-gradient(#000 0 56%, transparent 56% 59%, #000 59% 66%, transparent 66% 69.5%, #000 69.5% 76%, transparent 76% 80.5%, #000 80.5% 86%, transparent 86%);
  mask: linear-gradient(#000 0 56%, transparent 56% 59%, #000 59% 66%, transparent 66% 69.5%, #000 69.5% 76%, transparent 76% 80.5%, #000 80.5% 86%, transparent 86%);
  opacity: .92;
}
.js .hero-sun { transform: scale(0); }
.is-ready .hero-sun { transform: none; transition: transform 1.4s .1s var(--ease); }

.ninja-btn { position: absolute; inset: 0; z-index: 2; display: block; -webkit-tap-highlight-color: transparent; }
.ninja-btn:focus-visible { outline-offset: -10px; }
.hero-ninja { width: 100%; height: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); transition: transform .5s var(--ease); }
.ninja-btn:hover .hero-ninja { transform: scale(1.03); }
.ninja-btn:active .hero-ninja { transform: scale(.97); }
.js .ninja-btn { opacity: 0; transform: translateY(-120vh); }
.is-ready .ninja-btn { opacity: 1; animation: ninja-drop .9s .25s cubic-bezier(.5, 0, .75, 0) backwards, ninja-land .5s 1.15s var(--ease); transform: none; transition: opacity .2s .25s; }
@keyframes ninja-drop { from { transform: translateY(-120vh) rotate(-8deg); } to { transform: translateY(0); } }
@keyframes ninja-land { 0% { transform: scaleY(.9) scaleX(1.06); transform-origin: 50% 100%; } 100% { transform: none; } }

/* Дым и ударная волна при приземлении */
.smoke { position: absolute; left: 50%; bottom: 3%; width: 0; height: 0; z-index: 3; pointer-events: none; }
.smoke i {
  position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 200, 215, .55), rgba(120, 120, 140, 0) 70%); opacity: 0;
}
.smoke::after {
  content: ""; position: absolute; left: -10px; top: -4px; width: 20px; height: 8px; border-radius: 50%;
  border: 2px solid rgba(255, 36, 52, .9); opacity: 0;
}
.is-ready .smoke i { animation: puff 1.1s 1.12s var(--ease) both; }
.is-ready .smoke::after { animation: shock .8s 1.12s var(--ease) both; }
.smoke i:nth-child(1) { --x: -150px; --y: -20px; }
.smoke i:nth-child(2) { --x: -90px; --y: -60px; }
.smoke i:nth-child(3) { --x: -30px; --y: -90px; }
.smoke i:nth-child(4) { --x: 40px; --y: -80px; }
.smoke i:nth-child(5) { --x: 100px; --y: -50px; }
.smoke i:nth-child(6) { --x: 150px; --y: -15px; }
.smoke i:nth-child(7) { --x: 0px; --y: -30px; }
@keyframes puff { 0% { opacity: .9; transform: translate(0, 0) scale(.4); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(2.6); } }
@keyframes shock { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(22, 9); } }

/* Орбита сюрикенов: позиции считает JS */
.orbit { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; color: #e3e6ef; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.orb.is-front { z-index: 3; }
.js .orbit { opacity: 0; }
.is-ready .orbit { opacity: 1; transition: opacity .6s 1.3s; }

/* Вспышка удара катаны */
.katana-flash { position: absolute; inset: -10% -25%; width: 150%; height: 120%; z-index: 4; pointer-events: none; overflow: visible; }
.katana-flash path { fill: none; stroke: url(#flash-g); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; filter: drop-shadow(0 0 10px #ff2434) drop-shadow(0 0 3px #fff); }
.hero-visual.is-flash .katana-flash path { animation: flash-cut .6s var(--ease) forwards; }
.hero-visual.is-flash .hero-sun { animation: sun-hit .5s var(--ease); }
@keyframes flash-cut { 0% { stroke-dashoffset: 100; opacity: 1; stroke-width: 12; } 45% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; stroke-width: 1; } }
@keyframes sun-hit { 30% { filter: brightness(1.6); scale: 1.04; } }
#ninja.is-angry .n-lids path { fill: #fff; }

/* Анимации частей ниндзя (работают и внутри <use>) */
#ninja .n-lids { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
#ninja .n-eyes { transition: transform .15s; }
#ninja .n-body { animation: breathe 3.2s var(--ease-io) infinite; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes breathe { 50% { transform: scaleY(1.015) translateY(-1px); } }

.float-shuriken { position: absolute; color: var(--red); opacity: .9; pointer-events: none; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .5)); }
.float-shuriken.fs-1 { width: 56px; height: 56px; left: 4%; top: 22%; animation: spin 6s linear infinite; }
.float-shuriken.fs-2 { width: 34px; height: 34px; left: 46%; top: 16%; color: var(--sand); opacity: .7; animation: spin 4s linear infinite reverse; }
.float-shuriken.fs-3 { width: 26px; height: 26px; left: 40%; bottom: 14%; animation: spin 3s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

/* Мишени */
.target {
  position: absolute; width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle, var(--red) 0 18%, #fff 19% 34%, var(--red) 35% 52%, #fff 53% 68%, var(--red) 69%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5); transition: transform .5s var(--ease), opacity .5s;
  animation: target-bob 3s var(--ease-io) infinite;
}
.target span { position: absolute; inset: 0; }
.target.t-1 { left: 2%; top: 30%; }
.target.t-2 { right: 0; top: 12%; animation-delay: -1s; }
.target.t-3 { right: 6%; bottom: 18%; animation-delay: -2s; }
.target.is-hit { animation: target-hit .6s var(--ease) forwards; pointer-events: none; }
@keyframes target-bob { 50% { transform: translateY(-10px); } }
@keyframes target-hit {
  30% { transform: scale(1.3); }
  100% { transform: scale(0) rotate(180deg); opacity: 0; }
}
.hero-hint { position: absolute; left: 0; right: 0; bottom: -18px; z-index: 5; text-align: center; font-size: 13px; color: var(--dim); }
.hint-touch { display: none; }
.no-cursor .hint-mouse { display: none; }
.no-cursor .hint-touch { display: inline; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid var(--line-hi); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--red); animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Брошенные сюрикены */
.thrown { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; color: #d7dbe6; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
.thrown svg { width: 100%; height: 100%; }
.thrown.is-stuck::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, .55) 0 18%, transparent 60%); z-index: -1;
}
.thrown.is-fading { opacity: 0; transition: opacity .8s; }
.spark { position: absolute; width: 3px; height: 10px; border-radius: 2px; background: linear-gradient(#fff, var(--red)); box-shadow: 0 0 6px var(--red); pointer-events: none; }
.shake { animation: shake .28s; }
@keyframes shake { 25% { transform: translate(3px, -2px); } 50% { transform: translate(-3px, 2px); } 75% { transform: translate(2px, 1px); } }

/* ---------- Лента ---------- */
.tape { position: relative; z-index: 3; background: var(--red); transform: rotate(-2deg); margin: -10px -2vw 0; overflow: hidden; box-shadow: 0 20px 40px -20px var(--red-glow); }
.tape-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.tape-group { display: flex; }
.tape span { padding: 16px 22px; font: 700 clamp(15px, 1.6vw, 20px) var(--display); text-transform: uppercase; white-space: nowrap; color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Цифры ---------- */
.stats { padding: 90px 0 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 34px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 900 clamp(38px, 5vw, 64px)/1 var(--display); letter-spacing: -.03em; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- Услуги ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 290px; padding: 32px;
  border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden;
  transition: border-color .3s, transform .5s var(--ease), opacity .9s var(--ease);
}
.service::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 36, 52, .16), transparent 45%);
}
.service::after {
  content: attr(data-num); position: absolute; right: 22px; top: 16px;
  font: 900 64px/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .08); transition: -webkit-text-stroke-color .3s;
}
.service:hover { border-color: rgba(255, 36, 52, .45); }
.service:hover::before { opacity: 1; }
.service:hover::after { -webkit-text-stroke-color: rgba(255, 36, 52, .5); }
.service h3 { font-size: 22px; max-width: 80%; }
.service p { color: var(--muted); font-size: 16px; }
.service-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.price { font: 700 18px var(--display); white-space: nowrap; }
.link-arrow { text-align: right; }
.link-arrow { color: var(--muted); font-size: 14px; transition: color .2s; }
.link-arrow::after { content: " →"; display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--red); }
.link-arrow:hover::after { transform: translateX(4px); }
/* Росчерк катаны по карточке при наведении */
.service .cut {
  position: absolute; left: -10%; top: 50%; width: 120%; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #fff, var(--red), transparent); box-shadow: 0 0 12px var(--red);
  transform: rotate(-18deg) scaleX(0); transform-origin: left; opacity: 0;
}
.service:hover .cut { animation: card-cut .55s var(--ease) forwards; }
@keyframes card-cut { 0% { opacity: 1; transform: rotate(-18deg) scaleX(0); } 60% { opacity: 1; transform: rotate(-18deg) scaleX(1); } 100% { opacity: 0; transform: rotate(-18deg) scaleX(1); } }

/* ---------- Наши проекты: motion-ролики ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.proj {
  position: relative; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); transition: border-color .3s, opacity .9s var(--ease), transform .9s var(--ease);
}
.proj:hover { border-color: rgba(255, 36, 52, .45); }
.proj-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(circle at 70% 40%, rgba(255, 36, 52, .2), transparent 60%), #0d0d11; }
.proj-video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.proj:hover .proj-video { transform: scale(1.03); }
/* Пока ролик грузится — бегущий блик */
.proj-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .06) 50%, transparent 70%) 0 0 / 250% 100%;
}
.proj-media.is-loading::after { opacity: 1; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.proj-live {
  position: absolute; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  background: rgba(13, 13, 17, .7); backdrop-filter: blur(8px); font: 600 11px var(--font); letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; transition: opacity .4s;
}
.proj-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); animation: pulse 1.6s infinite; }
.proj-media.is-playing .proj-live { opacity: 1; }
.proj-play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); color: #fff; box-shadow: 0 0 0 10px rgba(255, 36, 52, .2), 0 14px 40px -8px var(--red-glow);
  transition: transform .4s var(--ease);
}
.proj-play[hidden] { display: none; }
.proj-play svg { width: 30px; height: 30px; margin-left: 4px; }
.proj-play:hover { transform: scale(1.08); }
.proj-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 26px; flex: 1; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-tags span { padding: 4px 10px; border-radius: 999px; font-size: 12.5px; color: var(--muted); border: 1px solid var(--line-hi); }
.proj h3 { font-size: clamp(22px, 2.4vw, 28px); }
.proj p { color: var(--muted); font-size: 16px; }
.proj-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.store {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 600;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-hi); transition: background .25s, border-color .25s, transform .4s var(--ease);
}
.store svg { width: 18px; height: 18px; flex: none; }
.store:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }

/* ---------- Архив клана: «проектов много» ---------- */
.vault {
  grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; align-items: center;
  padding: 44px 48px 0; border-radius: 26px; overflow: hidden; border: 1px dashed rgba(255, 36, 52, .45);
  background:
    radial-gradient(600px 360px at 80% 30%, rgba(255, 36, 52, .16), transparent 70%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .018) 0 14px, transparent 14px 28px),
    var(--card);
}
.vault-copy h3 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.05; }
.vault-copy h3 b { color: var(--red); font-weight: 900; display: inline-block; min-width: 2.3ch; }
.vault-copy p { margin: 16px 0 26px; color: var(--muted); max-width: 470px; }
.vault-copy .badge { margin-bottom: 14px; }

.vault-visual { position: relative; height: 330px; }
.vault-stack { position: absolute; inset: 0; perspective: 900px; }
.vault-card {
  position: absolute; left: 50%; top: 50%; width: 250px; height: 172px; margin: -86px 0 0 -125px; border-radius: 14px; overflow: hidden;
  background: #1c1c26; border: 1px solid var(--line-hi); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .9);
  transition: transform .8s var(--ease), filter .8s var(--ease);
}
.vc-bar { display: flex; gap: 5px; padding: 9px 10px; background: #24242f; }
.vc-bar i { width: 7px; height: 7px; border-radius: 50%; background: #3e3e4c; }
.vc-body { padding: 12px; display: grid; gap: 7px; }
.vc-body b { height: 12px; width: 60%; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.vc-body span { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.vc-body span + span { width: 75%; }
.vc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 4px; }
.vc-grid em { height: 42px; border-radius: 6px; background: linear-gradient(135deg, rgba(255, 36, 52, .35), rgba(255, 36, 52, .08)); }
.vc-2 .vc-grid em { background: linear-gradient(135deg, rgba(74, 222, 128, .3), rgba(74, 222, 128, .06)); }
.vc-3 .vc-grid em { background: linear-gradient(135deg, rgba(138, 124, 240, .35), rgba(138, 124, 240, .08)); }
.vc-4 .vc-grid em { background: linear-gradient(135deg, rgba(242, 184, 75, .35), rgba(242, 184, 75, .08)); }
.vc-5 .vc-grid em { background: linear-gradient(135deg, rgba(56, 189, 248, .35), rgba(56, 189, 248, .08)); }
/* Стопка: карточки чуть сдвинуты и размыты — содержимое «засекречено» */
.vc-1 { transform: translate(-18px, 14px) rotate(-8deg); filter: blur(5px) brightness(.6); }
.vc-2 { transform: translate(14px, -10px) rotate(6deg); filter: blur(4px) brightness(.7); }
.vc-3 { transform: translate(-6px, -4px) rotate(-3deg); filter: blur(3.5px) brightness(.8); }
.vc-4 { transform: translate(8px, 6px) rotate(3deg); filter: blur(3px) brightness(.9); }
.vc-5 { transform: none; filter: blur(2.5px); }
/* При наведении архив раскрывается веером, но остаётся секретным */
.vault:hover .vc-1 { transform: translate(-190px, 40px) rotate(-16deg); }
.vault:hover .vc-2 { transform: translate(-95px, -36px) rotate(-8deg); }
.vault:hover .vc-3 { transform: translate(0, -60px) rotate(0); }
.vault:hover .vc-4 { transform: translate(95px, -36px) rotate(8deg); }
.vault:hover .vc-5 { transform: translate(190px, 40px) rotate(16deg); }

.vault-stamp {
  position: absolute; left: 50%; top: 50%; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 10px 22px;
  border: 4px solid var(--red); border-radius: 12px; color: var(--red); background: rgba(13, 13, 17, .55); backdrop-filter: blur(2px);
  font: 900 30px/1 var(--display); text-transform: uppercase; letter-spacing: .04em;
  transform: translate(-50%, -50%) rotate(-12deg); box-shadow: 0 0 30px rgba(255, 36, 52, .35), inset 0 0 18px rgba(255, 36, 52, .25);
  -webkit-mask: radial-gradient(circle at 30% 40%, #000 60%, rgba(0, 0, 0, .75) 61%) , linear-gradient(#000, #000);
}
.vault-stamp b { font: 900 38px/1 serif; }
.js .vault .vault-stamp { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(2.4); }
.js .vault.is-in .vault-stamp { animation: stamp-slam .55s .5s cubic-bezier(.5, 0, .75, 0) forwards; }
@keyframes stamp-slam {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(2.4); }
  80% { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg) scale(.94); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg) scale(1); }
}
.vault.is-in .vault-stack { animation: stamp-hit .35s 1.02s; }
@keyframes stamp-hit { 30% { transform: translateY(4px) scale(.99); } }
.vault:hover .vault-stamp { animation: none; opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(1.05); transition: transform .5s var(--ease); }

.vault-ninja { position: absolute; right: 2%; bottom: -6px; z-index: 2; width: 130px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .7)); transform: translateY(20%) rotate(8deg); transition: transform .6s var(--ease); }
.vault:hover .vault-ninja { transform: translateY(6%) rotate(0); }

.vault-niches { grid-column: 1 / -1; margin: 10px -48px 0; padding: 18px 0 22px; border-top: 1px solid var(--line); display: grid; gap: 10px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.niche-row { overflow: hidden; }
.niche-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.niche-rev .niche-track { animation-direction: reverse; animation-duration: 40s; }
.vault:hover .niche-track { animation-play-state: paused; }
.niche-group { display: flex; gap: 10px; padding-right: 10px; }
.niche-group span { padding: 8px 16px; border-radius: 999px; white-space: nowrap; font-size: 14px; color: var(--muted); border: 1px solid var(--line-hi); background: rgba(255, 255, 255, .03); }
.niche-group span::before { content: "✦ "; color: var(--red); }

/* ---------- Процесс: горизонтальный путь ---------- */
.process { padding: 0; height: 420vh; }
.process-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); }
.process-head { margin-bottom: 40px; }
.process-head h2 { font-size: clamp(30px, 4.4vw, 54px); max-width: 820px; }
.process-track { position: relative; padding-left: max(16px, calc((100vw - 1200px) / 2)); }
.steps { list-style: none; margin: 0; padding: 70px 0 0; display: flex; gap: 28px; width: max-content; will-change: transform; }
.step {
  width: min(400px, 78vw); padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  transition: border-color .4s, background .4s, transform .5s var(--ease);
}
.step.is-active { border-color: rgba(255, 36, 52, .6); background: var(--card-hi); transform: translateY(-8px); }
.step-num { display: block; font: 900 46px/1 var(--display); color: transparent; -webkit-text-stroke: 1px var(--red); margin-bottom: 18px; }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; }
.process-line { position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: var(--line); }
.process-line span { position: absolute; inset: 0; background: var(--red); box-shadow: 0 0 12px var(--red-glow); transform-origin: left; transform: scaleX(var(--p, 0)); }
.process-ninja { position: absolute; top: -52px; left: 0; width: 76px; z-index: 2; transform: translateX(var(--nx, 0px)); }
.process-ninja svg { width: 100%; animation: run-bob .32s var(--ease-io) infinite alternate; transform: rotate(8deg); }
.process-ninja.is-still svg { animation: none; transform: none; }
.speed-lines { position: absolute; right: 85%; top: 40%; width: 80px; height: 30px; opacity: 0; transition: opacity .3s;
  background: repeating-linear-gradient(180deg, transparent 0 5px, rgba(255, 255, 255, .35) 5px 7px); mask: linear-gradient(90deg, transparent, #000); }
.process-ninja:not(.is-still) .speed-lines { opacity: 1; }
@keyframes run-bob { to { translate: 0 -5px; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 30px); }
.faq-ninja { position: relative; width: 240px; margin-top: 40px; }
.faq-ninja svg { position: relative; animation: levitate 4s var(--ease-io) infinite; }
.faq-kanji { position: absolute; inset: -10% -20%; display: grid; place-items: center; font: 900 260px/1 serif; color: rgba(255, 36, 52, .08); }
@keyframes levitate { 50% { transform: translateY(-14px); } }
.faq-list { display: grid; gap: 12px; }
.qa { border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.qa[open] { border-color: rgba(255, 36, 52, .45); background: var(--card-hi); }
.qa summary { list-style: none; position: relative; padding: 22px 64px 22px 24px; font-weight: 600; font-size: 18px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background: var(--red); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  transition: transform .6s var(--ease);
}
.qa[open] summary::after { transform: rotate(225deg); }
.qa-body { overflow: hidden; }
.qa-body p { padding: 0 24px 24px; color: var(--muted); }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-copy h2 { font-size: clamp(32px, 4.6vw, 56px); }
.contact-list { margin: 36px 0 0; display: grid; gap: 18px; }
.contact-list div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--dim); }
.contact-list dd { margin: 0; font-weight: 600; }
.contact-list a:hover { color: var(--red); }
.card-form { padding: 36px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.card-form h3 { font-size: 24px; margin-bottom: 22px; }
.field { position: relative; display: block; margin-bottom: 14px; }
.field input, .field textarea {
  width: 100%; padding: 26px 18px 10px; border-radius: 14px; border: 1px solid var(--line-hi); background: var(--bg-2);
  color: var(--text); font: inherit; resize: vertical; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(255, 36, 52, .15); }
.field span { position: absolute; left: 19px; top: 18px; color: var(--dim); pointer-events: none; transition: transform .25s var(--ease), font-size .25s, color .25s; transform-origin: left; }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-11px); font-size: 12px; color: var(--red); }
.field.is-invalid input { border-color: var(--red); animation: shake .3s; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin-top: 12px; font-size: 13px; color: var(--dim); text-align: center; }
.form-note a { text-decoration: underline; }
.form-status { margin-top: 10px; min-height: 1.4em; text-align: center; font-weight: 600; }
.form-status.ok { color: #4ade80; }
.form-status.err { color: var(--red); }
.form-status a { text-decoration: underline; }
.map-wrap { position: relative; margin-top: 70px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); height: 380px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 36, 52, .14), transparent 60%), repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 40px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 40px), var(--card); }
.map-wrap iframe { position: absolute; inset: 0; }
.map-facade { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 20px; text-align: center; }
.map-pin { width: 48px; height: 48px; color: var(--red); filter: drop-shadow(0 0 16px var(--red-glow)); animation: target-bob 2.4s var(--ease-io) infinite; }
.map-facade p { display: grid; gap: 4px; }
.map-facade span { color: var(--dim); font-size: 14px; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* ---------- Футер ---------- */
.footer { padding: 60px 0 100px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 20px; }
.footer p { color: var(--muted); max-width: 560px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-links a { color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--red); }
.footer .copy { color: var(--dim); font-size: 14px; }

/* ---------- Плавающая кнопка ---------- */
.fab {
  position: fixed; right: 50px; bottom: 26px; z-index: 65; display: flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 10px; border-radius: 999px; background: var(--red); font-weight: 600; font-size: 15px;
  box-shadow: 0 14px 40px -10px var(--red-glow); transform: translateY(calc(100% + 40px)); transition: transform .6s var(--ease);
}
.fab.is-visible { transform: none; }
.fab svg { width: 34px; height: 34px; color: #fff; animation: spin 3s linear infinite; }

/* ---------- Модалка ---------- */
.modal {
  width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 32px 36px; border: 1px solid var(--line-hi); border-radius: 28px;
  background: var(--card); color: var(--text);
}
.modal::backdrop { background: rgba(5, 5, 8, .75); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .5s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.modal-close { position: absolute; right: 16px; top: 12px; width: 40px; height: 40px; font-size: 28px; color: var(--muted); }
.modal-close:hover { color: var(--red); }
.modal-ninja { width: 96px; margin: -8px auto 6px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .6)); }
.modal h3 { font-size: 26px; text-align: center; }
.modal-lead { color: var(--muted); text-align: center; margin: 10px 0 24px; font-size: 15px; }

/* ---------- Тост ---------- */
.toast {
  position: fixed; left: 50%; top: 90px; z-index: 950; max-width: calc(100% - 32px); padding: 14px 22px; border-radius: 16px;
  background: var(--text); color: var(--bg); font-weight: 600; box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
  transform: translate(-50%, -30px); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .4s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

.swipe-hint, .rail-shuriken, .arsenal-track { display: none; }

/* ---------- Облегчённые эффекты для телефонов (класс ставит JS) ---------- */
.fx-lite .thrown, .fx-lite .orb, .fx-lite .float-shuriken { filter: none; }
.fx-lite .spark { box-shadow: none; }
.fx-lite .katana-flash path { filter: none; stroke-width: 7; }
.fx-lite .hero-visual.is-flash .hero-sun { animation: none; }
.fx-lite #ninja .n-body { animation: none; }
.fx-lite .hero-ninja { filter: none; }
.fx-lite .ninja-btn { will-change: transform; }
.fx-lite .thrown.is-stuck::after { display: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .nav, .header-phone { display: none; }
  .header .btn-sm { margin-left: auto; }
  .burger { display: block; margin-left: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .faq-grid, .contact-grid, .projects { grid-template-columns: 1fr; }
  .vault { grid-template-columns: minmax(0, 1fr); padding: 32px 22px 0; }
  .vault-copy .btn { white-space: normal; text-align: center; }
  .vault-visual { order: -1; height: 250px; }
  .vault-niches { margin: 6px -22px 0; }
  .vault-card { width: 200px; height: 140px; margin: -70px 0 0 -100px; }
  .vc-grid em { height: 30px; }
  .vault:hover .vc-1 { transform: translate(-110px, 30px) rotate(-14deg); }
  .vault:hover .vc-2 { transform: translate(-55px, -24px) rotate(-7deg); }
  .vault:hover .vc-4 { transform: translate(55px, -24px) rotate(7deg); }
  .vault:hover .vc-5 { transform: translate(110px, 30px) rotate(14deg); }
  .vault-stamp { font-size: 22px; padding: 8px 16px; }
  .vault-stamp b { font-size: 28px; }
  .vault-ninja { width: 96px; }
  .vault-copy .btn { width: 100%; }
  /* Hero на весь экран: ниндзя сверху, текст и кнопка внизу */
  .hero { min-height: 100svh; padding: calc(var(--header-h) + 4px) 0 22px; align-items: stretch; }
  .hero-grid { display: flex; flex-direction: column; gap: 6px; min-height: calc(100svh - var(--header-h) - 26px); }
  .hero-visual { order: -1; flex: 1 1 auto; width: 100%; max-width: 520px; min-height: 300px; aspect-ratio: auto; margin: 0 auto; }
  .hero-sun { top: 46%; width: min(86%, 46svh); }
  .hero-hint { bottom: 0; font-size: 12px; }
  .hero-kanji { font-size: 120vw; right: -30vw; top: 32%; }
  .hero-copy { position: relative; z-index: 3; }
  .eyebrow { margin-bottom: 12px; font-size: 13px; }
  .hero-title { font-size: clamp(32px, 9.6vw, 52px); }
  .hero-points, .hero-note, .scroll-cue { display: none; }
  .hero-cta { margin-top: 18px; }
  .orb { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
  .faq-grid .section-head { position: static; }
  .faq-ninja { display: none; }
  .katana-progress { display: none; }
  /* Процесс на мобильных — вертикальная рельса с вращающимся сюрикеном */
  .process { height: auto; padding: 90px 0; }
  .process-sticky { position: static; height: auto; padding-top: 0; display: block; }
  .process-track { padding: 0 16px; }
  .steps { flex-direction: column; gap: 16px; width: auto; padding: 0 0 0 40px; transform: none !important; }
  .step { width: auto; padding: 24px; }
  .step.is-active { transform: none; }
  .process-ninja { display: none; }
  .process-line { left: 30px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .process-line span { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .rail-shuriken {
    display: block; position: absolute; left: 31px; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; z-index: 2; color: var(--red);
    transform: translateY(var(--ry, 0px)) rotate(var(--rr, 0deg)); filter: drop-shadow(0 0 8px var(--red-glow));
  }
  .fab { right: 16px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .header .btn-sm { display: none; }
  .burger { margin-left: auto; }
  /* Карусели со свайпом */
  .swipe-hint { display: block; margin: -30px 0 14px; font-size: 13px; color: var(--dim); }
  .swipe-hint span { display: inline-block; color: var(--red); animation: nudge 1.4s var(--ease-io) infinite; }
  @keyframes nudge { 50% { transform: translateX(6px); } }
  .services-grid {
    display: flex; gap: 14px; margin: 0 -16px; padding: 4px 16px 18px; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; perspective: none;
  }
  .services-grid::-webkit-scrollbar { display: none; }
  .service { flex: 0 0 84%; scroll-snap-align: start; }
  .service { min-height: 330px; padding: 26px; }
  .proj-body { padding: 20px; }
  .store { padding: 9px 13px; font-size: 14px; }
  .js .services-grid .reveal { opacity: 1; transform: none; }
  /* Coverflow: активный клинок крупный, соседние притушены */
  .services-grid .service { transition: transform .45s var(--ease), opacity .45s var(--ease), border-color .3s; }
  .services-grid .service:not(.is-current) { transform: scale(.92); opacity: .5; }
  .services-grid .service.is-current { border-color: rgba(255, 36, 52, .55); }
  .service::after { font-size: 40px; right: 16px; top: 14px; }
  .service h3 { max-width: 78%; }
  .link-arrow { white-space: nowrap; font-size: 13px; }
  .at-ninja { width: 58px; }
  .services-grid .service.is-current::after { -webkit-text-stroke-color: rgba(255, 36, 52, .7); }
  .service.is-cut .cut { animation: card-cut .6s var(--ease) forwards; }
  .services-grid { padding-left: 8%; padding-right: 8%; scroll-padding: 0 8%; }
  .services-grid .service { scroll-snap-align: center; flex-basis: 84%; }
  /* Дорожка: линия прогресса, бегущий ниндзя, сюрикены-индикаторы */
  .arsenal-track { display: block; margin-top: 4px; }
  .at-run { position: relative; height: 64px; }
  .at-line { position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--line); }
  .at-line span { position: absolute; inset: 0; background: var(--red); box-shadow: 0 0 10px var(--red-glow); transform-origin: left; transform: scaleX(var(--p, 0)); }
  .at-ninja { position: absolute; left: 0; bottom: 4px; width: 50px; transform: translateX(var(--x, 0px)); }
  .at-ninja svg { width: 100%; transform: scaleX(var(--dir, 1)); transition: transform .25s; }
  .at-ninja.is-running svg { animation: run-bob .3s var(--ease-io) infinite alternate; }
  .at-ninja .speed-lines { right: auto; left: -60%; top: 45%; width: 46px; height: 22px; }
  .at-ninja.is-running .speed-lines { opacity: 1; }
  .at-ninja.is-back .speed-lines { left: auto; right: -60%; transform: scaleX(-1); }
  .at-dots { display: flex; justify-content: center; gap: 14px; margin-top: 14px; }
  .at-dot { width: 26px; height: 26px; display: grid; place-items: center; color: rgba(255, 255, 255, .25); transition: color .3s, transform .5s var(--ease); }
  .at-dot svg { width: 16px; height: 16px; transition: width .3s, height .3s; }
  .at-dot.is-active { color: var(--red); transform: rotate(180deg); filter: drop-shadow(0 0 6px var(--red-glow)); }
  .at-dot.is-active svg { width: 22px; height: 22px; }
  .swipe-hint { display: none; }
  .section-head { margin-bottom: 40px; }
  .card-form, .modal { padding: 26px 20px; }
  .contact-list div { grid-template-columns: 1fr; gap: 2px; }
  /* Широкая кнопка заявки внизу */
  .fab { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); justify-content: center; padding: 12px 20px; font-size: 16px; }
  .fab svg { width: 26px; height: 26px; }
  .footer { padding-bottom: 110px; }
  .target { width: 46px; height: 46px; }
  .float-shuriken.fs-1 { width: 34px; height: 34px; left: 4%; top: 16%; }
  .float-shuriken.fs-2 { width: 24px; height: 24px; left: auto; right: 6%; top: 50%; }
  .float-shuriken.fs-3 { display: none; }
  .hero-cta .btn-primary { width: 100%; }
  .hero-cta .btn-ghost { display: none; }
  .map-wrap { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .intro { display: none; }
}
