/* ============================================================
   DemlionD — портфолио видеомонтажёра
   v3 «Монтажная»: кино-постер + интерфейс монтажки.
   Острые углы, плакатная типографика, таймкоды, инверсия.
   ============================================================ */

:root {
  --bg: #060607;
  --panel: #0b0b0e;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #eceaf2;
  --muted: #86838f;
  --accent: #8b5cf6;
  --accent-soft: #a78bfa;
  --accent-dark: #0a0812;
  --rec: #ff4c3b;
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --font-body: 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

::selection { background: var(--accent); color: #0a0a0e; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2733; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.container {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.t-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}

/* ---------- Интро: шторки и загрузка ---------- */

.curtain {
  position: fixed;
  left: 0; right: 0;
  height: 50.5vh;
  background: #040405;
  z-index: 3001;
  transition: transform 1s var(--ease-out) 0.15s;
}
.curtain-top { top: 0; border-bottom: 1px solid rgba(139, 92, 246, 0.35); }
.curtain-bottom { bottom: 0; border-top: 1px solid rgba(139, 92, 246, 0.35); }
body.loaded .curtain-top { transform: translateY(-101%); }
body.loaded .curtain-bottom { transform: translateY(101%); }
body.curtains-gone .curtain { display: none; }

.boot {
  position: fixed; inset: 0; z-index: 3002;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: opacity 0.4s;
}
body.loaded .boot { opacity: 0; pointer-events: none; }
.boot-line { font-size: 12px; color: var(--text); }
.boot-dim { color: var(--muted); font-size: 11px; }
.boot-tc {
  font-size: clamp(34px, 7vw, 64px);
  font-weight: 600;
  color: var(--accent-soft);
  letter-spacing: 0.08em;
}

/* ---------- Фон и глобальные слои ---------- */

#glow {
  position: fixed; inset: 0; z-index: -3;
  width: 100vw; height: 100vh;
  filter: blur(110px);
  opacity: 0.75;
  transform: translateZ(0);
}

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

.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 1001;
  height: 2px; width: 0%;
  background: var(--accent);
}

/* HUD по углам */
.hud {
  position: fixed;
  bottom: 14px;
  z-index: 500;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hud-bl { left: 20px; }
.hud-br { right: 20px; }
.rec-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rec);
  animation: recBlink 1.2s steps(2, start) infinite;
}
@keyframes recBlink { to { opacity: 0; } }

/* ---------- Кастомный курсор ---------- */

.cursor-dot, .cursor-box {
  position: fixed; top: 0; left: 0; z-index: 1200;
  pointer-events: none;
  transform: translate(-50%, -50%);
  display: none;
}
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--accent-soft);
}
.cursor-box {
  width: 30px; height: 30px;
  border: 1px solid rgba(167, 139, 250, 0.6);
  align-items: center;
  justify-content: center;
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
              border-color 0.3s, background 0.3s;
}
.cursor-box span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0a0a0e;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.cursor-box.is-hover {
  width: 46px; height: 46px;
  border-color: var(--accent);
  transform: translate(-50%, -50%) rotate(45deg);
}
.cursor-box.is-view {
  width: 86px; height: 34px;
  background: var(--accent);
  border-color: var(--accent);
}
.cursor-box.is-view span { opacity: 1; }
@media (pointer: fine) {
  .cursor-dot { display: block; }
  .cursor-box { display: flex; }
}

/* ---------- Боковой индикатор разделов ---------- */

.section-dots {
  position: fixed;
  top: 50%; right: 28px;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.section-dots::before {
  content: '';
  position: absolute;
  top: -18px; bottom: -18px; left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: var(--line);
  z-index: -1;
}
.section-dots a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  text-decoration: none;
}
.section-dots span {
  width: 5px; height: 5px;
  background: var(--muted);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.section-dots a:hover span { background: var(--accent-soft); transform: scale(1.4); }
.section-dots a.active span {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.22);
  transform: scale(1.5) rotate(45deg);
}
.section-dots em {
  position: absolute;
  right: 100%;
  margin-right: 12px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  padding: 4px 9px;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.section-dots a:hover em { opacity: 1; transform: translateY(-50%) translateX(0); }

@media (max-width: 1150px) {
  .section-dots { display: none; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
  position: relative;
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.btn::before { content: '['; color: var(--accent-soft); transition: color 0.3s; }
.btn::after  { content: ']'; color: var(--accent-soft); transition: color 0.3s; }
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0e;
  box-shadow: 5px 5px 0 rgba(139, 92, 246, 0.35);
}
.btn:hover::before, .btn:hover::after { color: #0a0a0e; }

.btn-fill {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0e;
}
.btn-fill::before, .btn-fill::after { color: #0a0a0e; }
.btn-fill:hover {
  background: var(--text);
  border-color: var(--text);
  box-shadow: 5px 5px 0 rgba(139, 92, 246, 0.5);
}

.btn-lg { padding: 21px 36px; font-size: 14px; }

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

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
/* Блюр-фон живёт на псевдоэлементе, а не на .header напрямую: у backdrop-filter
   на самом .header есть побочный эффект — он создаёт новую систему координат
   для position:fixed потомков (включая мобильное меню .nav), из-за чего
   полноэкранное меню схлопывается в границы шапки при скролле. */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.header.scrolled::before {
  background: rgba(6, 6, 8, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.header-inner {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
}
.logo-mark { color: var(--accent); font-size: 11px; vertical-align: super; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s;
}
.nav-link i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--accent-soft);
  vertical-align: super;
  margin-right: 5px;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.3s, background 0.3s;
  padding: 8px 10px;
}
.nav-cta:hover { background: var(--accent); color: #0a0a0e; }

.burger {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 6px;
  z-index: 102;
}
.burger span {
  width: 28px; height: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease);
}
.burger.open span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

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

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 130px 0 80px;
}

/* уголки видоискателя */
.vf {
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid rgba(139, 92, 246, 0.55);
  pointer-events: none;
}
.vf-tl { top: 92px; left: 22px; border-right: none; border-bottom: none; }
.vf-tr { top: 92px; right: 22px; border-left: none; border-bottom: none; }
.vf-bl { bottom: 22px; left: 22px; border-right: none; border-top: none; }
.vf-br { bottom: 22px; right: 22px; border-left: none; border-top: none; }

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(30px, 5vh, 60px);
}
.hero-top .mono-label { display: inline-flex; align-items: center; gap: 9px; }
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(46px, 10.5vw, 150px);
  line-height: 0.99;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: clamp(34px, 5vh, 64px);
}
.h-mask { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.h-line { display: inline-block; }
.h-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
}
.h-accent { color: var(--accent); }
.h-accent em { font-style: normal; font-size: 0.5em; vertical-align: 0.5em; color: var(--accent-soft); }

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 6vh, 70px);
}
.hero-sub {
  max-width: 480px;
  color: var(--muted);
  border-left: 1px solid var(--accent);
  padding-left: 22px;
}
.hero-sub .mono-label { display: block; margin-bottom: 8px; color: var(--accent-soft); }
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  padding: 22px 18px 4px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 42px);
  color: var(--text);
  white-space: nowrap;
}
.stat-num span { color: var(--accent); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

/* появление hero после интро */
.stagger {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.h-line.stagger { transform: translateY(110%); }
body.loaded .stagger { opacity: 1; transform: none; }
body.loaded .hero-top { transition-delay: 0.15s; }
body.loaded .h-mask:nth-child(1) .h-line { transition-delay: 0.3s; }
body.loaded .h-mask:nth-child(2) .h-line { transition-delay: 0.42s; }
body.loaded .h-mask:nth-child(3) .h-line { transition-delay: 0.54s; }
body.loaded .hero-sub     { transition-delay: 0.68s; }
body.loaded .hero-actions { transition-delay: 0.78s; }
body.loaded .hero-stats   { transition-delay: 0.9s; }

/* ---------- Бегущие строки ---------- */

.marquee2 {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--panel);
}
.mrow { overflow: hidden; }
.mtrack {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}
.mtrack span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.8vw, 32px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding-right: 30px;
}
.msolid { color: var(--text); }
.mghost {
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 234, 242, 0.4);
}
.mslash { color: var(--accent); font-weight: 400; }

/* ---------- Секции ---------- */

.section { padding: 120px 0; position: relative; }
.section::before {
  content: '+';
  position: absolute;
  top: 22px; left: 24px;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.14);
  font-size: 15px;
}
.section::after {
  content: '+';
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.14);
  font-size: 15px;
}

.sec-head { margin-bottom: 56px; }
.sec-scene {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 18px;
}
.sec-scene::before { content: '// '; color: var(--muted); }
.sec-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1.08;
  text-transform: uppercase;
}
.sec-sub { color: var(--muted); margin-top: 18px; max-width: 560px; }

/* ---------- Работы: строки-клипы ---------- */

.works-list { border-top: 1px solid var(--line); }
.wrow {
  display: grid;
  grid-template-columns: 44px 210px 1fr auto 52px;
  align-items: center;
  gap: clamp(16px, 2.6vw, 36px);
  padding: 22px 6px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.35s, padding 0.35s var(--ease);
}
.wrow:hover { background: var(--accent); padding-left: 20px; }

.wrow-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  transition: color 0.35s;
}
.wrow:hover .wrow-num { color: var(--accent-dark); }

.wrow-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #17131f, #0d0b13 60%);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.35s;
}
/* перфорация киноплёнки */
.wrow-thumb::before, .wrow-thumb::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 5px;
  background-image: repeating-linear-gradient(90deg,
    rgba(255,255,255,0.28) 0 5px, transparent 5px 12px);
  z-index: 2;
}
.wrow-thumb::before { top: 2px; }
.wrow-thumb::after { bottom: 2px; }
.wrow-thumb .th-play {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  color: rgba(236, 234, 242, 0.7);
  font-size: 15px;
}
.wrow:hover .wrow-thumb { border-color: var(--accent-dark); }

.wrow-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 32px);
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--text);
  transition: color 0.35s, letter-spacing 0.35s var(--ease);
}
.wrow:hover .wrow-title { color: var(--accent-dark); letter-spacing: 0.02em; }

.wrow-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  transition: color 0.35s;
}
.wrow:hover .wrow-meta { color: var(--accent-dark); }

.wrow-arrow {
  font-size: 22px;
  color: var(--muted);
  justify-self: end;
  transition: transform 0.4s var(--ease), color 0.35s;
}
.wrow:hover .wrow-arrow { color: var(--accent-dark); transform: translateX(6px) rotate(-45deg); }

/* плавающее превью */
.work-preview {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  width: min(400px, 34vw);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.75);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  will-change: left, top;
}
.work-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.wp-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, #1a1524, #0c0a12 65%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}
.wp-media { position: absolute; inset: 0; overflow: hidden; }
.wp-media video { width: 100%; height: 100%; object-fit: cover; }
.wp-ph {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.wp-ph .ph-icon { font-size: 22px; color: var(--accent-soft); }
.wp-tag {
  position: absolute;
  right: -1px; bottom: -1px;
  padding: 5px 10px;
  background: var(--accent);
  color: #0a0a0e;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 3;
}

/* карточки (мобилка / тач) */
.works-grid {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.work-card {
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.work-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.work-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #17131f, #0d0b13 60%);
  border-bottom: 1px solid var(--line);
}
.work-media::before, .work-media::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 5px;
  background-image: repeating-linear-gradient(90deg,
    rgba(255,255,255,0.28) 0 5px, transparent 5px 12px);
  z-index: 2;
}
.work-media::before { top: 3px; }
.work-media::after { bottom: 3px; }
.work-media video,
.work-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s;
}
.work-card.has-video .work-media video,
.work-card.has-video .work-media img { opacity: 1; }
.work-placeholder {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.work-placeholder .ph-icon { font-size: 20px; color: var(--accent-soft); }
.work-placeholder .ph-text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.work-card.has-video .work-placeholder { display: none; }
.work-info { padding: 16px 18px; }
.work-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
}
.work-tags-line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 7px;
}

.works-more { margin-top: 50px; }

/* ---------- Обо мне ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(160deg, #171221, #0a0910 70%);
  border: 1px solid var(--line);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: none; }
.photo-frame.has-photo img { display: block; }
.photo-frame.has-photo .photo-fallback { display: none; }
.photo-fallback {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  font-size: 76px;
}
.corner {
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid var(--accent);
  z-index: 2;
}
.c-tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.c-tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.c-bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.c-br { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.photo-caption { margin-top: 12px; }

.about-text p { color: var(--muted); margin-bottom: 18px; }
.about-text p strong { color: var(--text); }

.about-points {
  list-style: none;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.about-points li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 6px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  transition: background 0.3s, color 0.3s, padding 0.3s var(--ease);
}
.about-points li i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-soft);
  transition: color 0.3s;
}
.about-points li:hover {
  background: var(--accent);
  color: var(--accent-dark);
  padding-left: 16px;
}
.about-points li:hover i { color: var(--accent-dark); }

/* ---------- Путь: таймлайн достижений ---------- */

.journey-line { display: flex; flex-direction: column; }
.journey-item {
  display: grid;
  grid-template-columns: 118px 20px 1fr;
  grid-template-areas: "tag node body";
  column-gap: 28px;
  padding-bottom: 42px;
}
.journey-item:last-child { padding-bottom: 0; }

.journey-tag {
  grid-area: tag;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
  text-align: right;
  padding-top: 3px;
  white-space: nowrap;
}

.journey-node {
  grid-area: node;
  position: relative;
  display: flex;
  justify-content: center;
}
.journey-node::before {
  content: '';
  position: absolute;
  top: 15px; bottom: -42px;
  width: 1px;
  background: var(--line);
}
.journey-item:last-child .journey-node::before { display: none; }
.journey-node span {
  position: relative;
  z-index: 1;
  width: 9px; height: 9px;
  margin-top: 5px;
  background: var(--bg);
  border: 2px solid var(--accent-soft);
  transform: rotate(45deg);
}
.journey-now .journey-node span {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.journey-body { grid-area: body; }
.journey-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 23px);
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.25;
}
.journey-now .journey-body h3 { color: var(--accent-soft); }
.journey-body p { color: var(--muted); font-size: 15px; max-width: 640px; }

@media (max-width: 640px) {
  .journey-item {
    grid-template-columns: 20px 1fr;
    grid-template-areas:
      "node tag"
      "node body";
    row-gap: 6px;
  }
  .journey-tag { text-align: left; padding-top: 1px; }
}

/* ---------- Закулисье: рабочее место ---------- */

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.workspace-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.workspace-photo:hover { border-color: var(--accent); transform: translateY(-6px); }
.workspace-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.15) contrast(1.05);
  transform: scale(1.12) translateY(var(--py, 0px));
  transition: filter 0.4s, transform 0.4s var(--ease);
  will-change: transform;
}
.workspace-photo:hover img { filter: grayscale(0); transform: scale(1.18) translateY(var(--py, 0px)); }
.workspace-photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(3,3,5,0.92), transparent);
  color: rgba(236, 234, 242, 0.85);
  font-size: 10.5px;
}
.wp-rec {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: rgba(6, 6, 8, 0.6);
  backdrop-filter: blur(4px);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(236, 234, 242, 0.85);
}

@media (max-width: 1000px) {
  .workspace-grid { grid-template-columns: repeat(2, 1fr); }
  .workspace-grid .workspace-photo:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .workspace-grid { grid-template-columns: 1fr; }
  .workspace-grid .workspace-photo:first-child { aspect-ratio: 4 / 3; }
}

/* ---------- Скиллы: техрайдер ---------- */

.spec-table { border-top: 1px solid var(--line); margin-bottom: 44px; }
.spec-row {
  display: grid;
  grid-template-columns: 46px 1fr 1.3fr auto;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  padding: 19px 6px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, padding 0.3s var(--ease);
}
.spec-row:hover { background: var(--accent); padding-left: 18px; }
.spec-i {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  transition: color 0.3s;
}
.spec-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(15px, 1.7vw, 20px);
  text-transform: uppercase;
  transition: color 0.3s;
}
.spec-desc {
  font-size: 15px;
  color: var(--muted);
  transition: color 0.3s;
}
.spec-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.spec-bar i {
  display: block;
  width: 7px; height: 15px;
  border: 1px solid var(--accent-soft);
  background: transparent;
  transition: background 0.3s, border-color 0.3s;
}
.spec-bar i.on { background: var(--accent-soft); }
.spec-row:hover .spec-i,
.spec-row:hover .spec-name,
.spec-row:hover .spec-desc { color: var(--accent-dark); }
.spec-row:hover .spec-bar i { border-color: var(--accent-dark); }
.spec-row:hover .spec-bar i.on { background: var(--accent-dark); }

.tags-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  padding: 10px 16px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all 0.3s;
  cursor: default;
}
.tag:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-3px);
}

/* ---------- Цены ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 26px;
}
.price-card {
  position: relative;
  padding: 36px 34px;
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.price-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.price-card-accent { border-color: rgba(139, 92, 246, 0.5); }
.price-card-accent:hover { border-color: var(--accent); }
.price-pkg { display: block; margin-bottom: 18px; color: var(--accent-soft); }
.price-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 24px);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.price-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 4vw, 46px);
  color: var(--text);
  margin-bottom: 22px;
}
.price-card-accent .price-num { color: var(--accent-soft); }
.price-list {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}
.price-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 10px;
}
.price-list li::before {
  content: '›';
  position: absolute; left: 0;
  color: var(--accent-soft);
  font-weight: 700;
}
.price-card .btn { align-self: flex-start; }
.price-note { text-align: center; }

@media (max-width: 640px) {
  .price-grid { grid-template-columns: 1fr; }
}

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

.services-list { border-top: 1px solid var(--line); }
.srow {
  display: grid;
  grid-template-columns: 52px 1fr 60px;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 30px 6px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.35s, padding 0.35s var(--ease);
}
.srow:hover { background: var(--panel); padding-left: 20px; }
.srow-i {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-soft);
}
.srow-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 28px);
  text-transform: uppercase;
  margin-bottom: 8px;
  transition: color 0.3s;
}
.srow:hover .srow-body h3 { color: var(--accent-soft); }
.srow-body p { color: var(--muted); font-size: 15px; max-width: 640px; }
.srow-arrow {
  font-size: 26px;
  color: var(--muted);
  justify-self: end;
  transition: transform 0.4s var(--ease), color 0.3s;
}
.srow:hover .srow-arrow { color: var(--accent); transform: translateX(10px); }

/* ---------- CTA: рельса (стиль A) ---------- */

.cta-rail {
  position: relative;
  margin: 0 auto;
  padding: 40px clamp(24px, 5vw, 60px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  overflow: hidden;
}
.cta-rail::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(139, 92, 246, 0.12) 50%, transparent 60%);
  transform: translateX(-140%);
  transition: transform 0.9s var(--ease-out);
  pointer-events: none;
}
.cta-rail:hover::before { transform: translateX(140%); }
.cta-rail .corner { border-color: var(--accent); }
.cta-rail-text h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 3vw, 34px);
  text-transform: uppercase;
  line-height: 1.15;
  margin-top: 6px;
}
.cta-rail .btn { flex-shrink: 0; }

/* ---------- CTA: карточка (стиль B) ---------- */

.cta-card {
  position: relative;
  margin: 0 auto;
  max-width: 640px;
  padding: 48px clamp(24px, 5vw, 56px);
  text-align: center;
  border: 1px solid var(--line-strong);
  background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(139, 92, 246, 0.1), transparent 70%), var(--panel);
}
.cta-card::before {
  content: '';
  position: absolute; inset: -1px;
  border: 1px solid rgba(139, 92, 246, 0.5);
  pointer-events: none;
  animation: ctaPulse 2.4s ease-out infinite;
}
@keyframes ctaPulse {
  0%   { transform: scale(1); opacity: 1; }
  75%  { transform: scale(1.045); opacity: 0; }
  100% { transform: scale(1.045); opacity: 0; }
}
.cta-card h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 3.2vw, 36px);
  text-transform: uppercase;
  line-height: 1.15;
  margin: 12px 0 26px;
}
.cta-card .mono-label { color: var(--accent-soft); }

@media (max-width: 640px) {
  .cta-rail { flex-direction: column; align-items: flex-start; text-align: left; }
  .cta-rail .btn { width: 100%; justify-content: center; }
}

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

.process-line {
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  margin-bottom: 30px;
  overflow: hidden;
}
.process-line-fill {
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease-out) 0.3s;
}
.process-wrap.drawn .process-line-fill { transform: scaleX(1); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step {
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.step:hover { border-color: var(--accent); transform: translateY(-6px); }
.step-clip {
  display: block;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--accent-soft);
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  padding: 20px 20px 8px;
}
.step p { color: var(--muted); font-size: 14.5px; padding: 0 20px 22px; }

.checklist {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(30px, 5vw, 60px);
  margin-top: 60px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.checklist-head .mono-label { color: var(--accent-soft); display: block; margin-bottom: 14px; }
.checklist-head h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 26px);
  text-transform: uppercase;
  line-height: 1.25;
  margin-bottom: 12px;
}
.checklist-head p { color: var(--muted); font-size: 14.5px; max-width: 320px; }
.checklist-items { list-style: none; }
.checklist-items li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  transition: background 0.3s, color 0.3s, padding 0.3s var(--ease);
}
.checklist-items li:first-child { border-top: 1px solid var(--line); }
.checklist-items li i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-soft);
  flex-shrink: 0;
}
.checklist-items li:hover {
  background: var(--accent);
  color: var(--accent-dark);
  padding-left: 16px;
}
.checklist-items li:hover i { color: var(--accent-dark); }

@media (max-width: 780px) {
  .checklist { grid-template-columns: 1fr; }
}

/* ---------- Отзывы ---------- */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.review {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.35s, transform 0.35s var(--ease);
}
.review:hover { border-color: var(--accent); transform: translateY(-6px); }
.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
}
.review-stars { color: var(--accent-soft); font-size: 13px; letter-spacing: 3px; }
.review blockquote {
  color: var(--muted);
  font-size: 15.5px;
  padding: 22px;
  flex-grow: 1;
}
.review figcaption {
  padding: 0 22px 20px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.review-name { font-weight: 800; font-size: 15.5px; }
.review-role { color: var(--muted); font-size: 13.5px; }

/* ---------- FAQ ---------- */

.faq-container { max-width: 860px; }

.faq-list { border-top: 1px solid var(--line); }
.faq-item {
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.faq-item.open { background: var(--panel); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 8px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16.5px;
  text-align: left;
  cursor: pointer;
  transition: padding 0.3s var(--ease);
}
.faq-item.open .faq-q { padding-left: 18px; }
.faq-i {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-soft);
  flex-shrink: 0;
}
.faq-icon {
  margin-left: auto;
  flex-shrink: 0;
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 17px;
  color: var(--accent-soft);
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--accent-dark);
  border-color: var(--accent);
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner {
  overflow: hidden;
  padding: 0 18px;
  color: var(--muted);
  font-size: 15.5px;
  transition: padding 0.5s var(--ease);
}
.faq-item.open .faq-a-inner { padding: 0 18px 24px 52px; }

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

.contact { padding-bottom: 90px; }
.contact-giant {
  display: block;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 13vw, 180px);
  line-height: 0.98;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 46px;
}
.cg-line { display: block; }
.cg-fill {
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
  transition: color 0.35s, -webkit-text-stroke-color 0.35s;
}
.contact-giant:hover .cg-fill {
  color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
}
.cg-hint {
  display: block;
  margin-top: 22px;
  color: var(--accent-soft);
  transition: transform 0.35s var(--ease);
}
.contact-giant:hover .cg-hint { transform: translateX(14px); }

.guarantee-row {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.guarantee {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-left: 1px solid var(--line);
}
.guarantee:first-child { border-left: none; }
.guarantee-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  color: var(--accent-soft);
}
.guarantee-icon svg { width: 22px; height: 22px; }
.guarantee-title { font-weight: 800; font-size: 14.5px; line-height: 1.3; }
.guarantee-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 3px;
}

@media (max-width: 780px) {
  .guarantee-row { flex-direction: column; }
  .guarantee { border-left: none; border-top: 1px solid var(--line); }
  .guarantee:first-child { border-top: none; }
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.contact-email {
  margin-left: auto;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dashed rgba(134, 131, 143, 0.5);
  transition: color 0.3s, border-color 0.3s;
}
.contact-email:hover { color: var(--accent-soft); border-color: var(--accent-soft); }

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

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Модалка ---------- */

.modal {
  position: fixed; inset: 0; z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 4, 6, 0.92);
  backdrop-filter: blur(10px);
}
.modal-body {
  position: relative;
  width: fit-content;
  max-width: min(980px, 100%);
  max-height: calc(100svh - 120px);
  animation: modalIn 0.45s var(--ease-out);
}
@keyframes modalIn {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.modal-body video {
  max-width: 100%;
  max-height: calc(100svh - 120px);
  width: auto;
  height: auto;
  border: 1px solid var(--line-strong);
  background: #000;
  display: block;
}
.modal-youtube {
  display: none;
  position: relative;
  width: min(980px, 88vw);
  max-height: calc(100svh - 120px);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  background: #000;
}
.modal-youtube iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.modal-title { margin-top: 14px; text-align: center; }
.modal-close {
  position: absolute;
  top: -20px; right: -20px;
  z-index: 2;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  background: #0d0c12;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.35s var(--ease);
}
.modal-close:hover { background: var(--accent); color: #0a0a0e; transform: rotate(90deg); }

/* ---------- Пасхалка ---------- */

.easter-egg {
  position: fixed; inset: 0;
  z-index: 5000;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
}
.easter-egg.active { opacity: 1; }

.ee-flash {
  position: absolute; inset: 0;
  background: #fff;
  opacity: 0;
}
.easter-egg.active .ee-flash { animation: eeFlash 0.7s ease-out forwards; }
@keyframes eeFlash {
  0%   { opacity: 0; }
  8%   { opacity: 0.85; }
  100% { opacity: 0; }
}

.ee-scan {
  position: absolute;
  left: 0; right: 0;
  top: -4px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), var(--accent), var(--accent-soft), transparent);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.8);
  opacity: 0;
}
.easter-egg.active .ee-scan { animation: eeScan 1.3s ease-in-out 0.15s forwards; }
@keyframes eeScan {
  0%   { top: -4px; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.ee-stamp {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.5) rotate(-8deg);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 36px;
  border: 3px solid var(--rec);
  background: rgba(6, 6, 8, 0.88);
  box-shadow: 0 0 60px rgba(255, 76, 59, 0.35);
  opacity: 0;
}
.easter-egg.active .ee-stamp { animation: eeStamp 1.9s cubic-bezier(0.2, 1.6, 0.4, 1) forwards; }
@keyframes eeStamp {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(-12deg); }
  18%  { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(3deg); }
  28%  { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  82%  { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.06) rotate(0deg); }
}
.ee-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--rec);
  animation: recBlink 0.5s steps(2, start) infinite;
}
.ee-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: 0.06em;
  color: #fff;
}
.ee-tc {
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 19px);
  color: var(--accent-soft);
}

@media (prefers-reduced-motion: reduce) {
  .easter-egg { display: none; }
}

/* ---------- Появление при скролле ---------- */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .stagger, .h-line.stagger { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  #glow, .curtain, .boot { display: none; }
}

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

@media (max-width: 1000px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { width: min(380px, 100%); }
  .spec-row { grid-template-columns: 40px 1fr auto; }
  .spec-desc { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .stat:nth-child(3) { border-left: none; padding-left: 0; }
}

@media (max-width: 1000px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 10vw;
    gap: 30px;
    background: rgba(5, 5, 7, 0.97);
    backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
  }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav-link {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
  }
  .burger { display: flex; }
}

/* тач-устройства и узкие экраны: карточки вместо списка */
@media (hover: none), (max-width: 820px) {
  .works-list, .work-preview { display: none; }
  .works-grid { display: grid; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }

  .hero { padding: 120px 0 70px; }
  .hero-top-right { display: none; }
  .hero-title { font-size: clamp(52px, 15vw, 90px); }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat { padding: 18px 12px 4px; }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }

  .works-grid, .process-grid { grid-template-columns: 1fr; }

  .vf { display: none; }
  .hud-bl { display: none; }

  .srow { grid-template-columns: 40px 1fr; }
  .srow-arrow { display: none; }

  .contact-email { margin-left: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .modal-close { top: -54px; right: 0; }
}
