/* ========================================================================
   ÆTHER // НЕЙРО-ИНТЕРФЕЙС v21.50
   Интерфейс из 2150 года · тёмная среда + голографический акцент
   Шрифты: Syne (дисплей) / JetBrains Mono (HUD/мета)
   ======================================================================== */

:root {
  --void:    #050507;
  --void-2:  #0a0a10;
  --ink:     #eef0ff;
  --dim:     #6a6c84;
  --line:    rgba(150,160,255,.12);
  --line-2:  rgba(150,160,255,.22);

  /* голографический акцент */
  --cyan:    #4df3ff;
  --violet:  #8b5cff;
  --magenta: #ff3fb4;
  --accent:  var(--cyan);
  --holo: linear-gradient(110deg, #4df3ff 0%, #8b5cff 45%, #ff3fb4 100%);

  --maxw: 1380px;
  --pad: clamp(20px, 5vw, 72px);
  --fd: 'Syne', system-ui, sans-serif;
  --fm: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.16,1,.3,1);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; max-width: 100%; }

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--fm);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.booting { overflow: hidden; height: 100vh; }

a { color: inherit; text-decoration: none; }
em { font-style: normal; background: var(--holo); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.accent { background: var(--holo); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
::selection { background: var(--magenta); color: #000; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

/* убираем системный курсор на десктопе (заменяем своим) */
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }
}

/* ---------- фон-канвас ---------- */
#field { position: fixed; inset: 0; z-index: 0; }

/* ---------- наложения ---------- */
.fx-grain, .fx-scan, .fx-vignette { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
.fx-grain {
  opacity: .05; mix-blend-mode: screen;
  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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fx-scan {
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
  opacity: .5;
}
.fx-vignette { background: radial-gradient(120% 120% at 50% 40%, transparent 55%, rgba(0,0,0,.7) 100%); }

/* ---------- кастомный курсор ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; transform: translate(-50%,-50%); }
.cursor__ring {
  position: absolute; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.6);
  border-radius: 50%; transform: translate(-50%,-50%);
  transition: width .3s var(--ease), height .3s var(--ease), border-color .3s, background .3s;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: rgba(255,255,255,.08); }
.cursor__label {
  position: absolute; transform: translate(-50%,-50%); color: #fff;
  font-family: var(--fm); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; transition: opacity .2s; white-space: nowrap;
}
.cursor.is-hover .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ========================================================================
   BOOT
   ======================================================================== */
.boot {
  position: fixed; inset: 0; z-index: 9000; background: var(--void);
  display: grid; place-items: center;
  transition: opacity .8s var(--ease), visibility .8s;
}
.boot.is-done { opacity: 0; visibility: hidden; }
.boot__inner { width: min(440px, 80vw); }
.boot__logo { font-family: var(--fd); font-weight: 800; font-size: 48px; letter-spacing: -.02em; }
.boot__logo span { background: var(--holo); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: blink 1s steps(2) infinite; }
.boot__log { font-family: var(--fm); font-size: 12px; color: var(--dim); min-height: 90px; margin: 28px 0 18px; line-height: 1.9; }
.boot__log b { color: var(--cyan); font-weight: 400; }
.boot__bar { height: 2px; background: var(--line); overflow: hidden; }
.boot__bar span { display: block; height: 100%; width: 0; background: var(--holo); }
.boot__pct { font-family: var(--fm); font-size: 12px; color: var(--ink); margin-top: 10px; text-align: right; }

/* ========================================================================
   HUD
   ======================================================================== */
.hud { position: fixed; inset: 0; z-index: 40; pointer-events: none; font-family: var(--fm); font-size: 11px; letter-spacing: .05em; color: var(--dim); }
.hud b { color: var(--cyan); font-weight: 400; }
.hud__c { position: absolute; padding: 4px 8px; line-height: 1.7; }
.hud__tl { top: 84px; left: var(--pad); }
.hud__tr { top: 84px; right: var(--pad); text-align: right; }
.hud__bl { bottom: 72px; left: var(--pad); }
.hud__br { bottom: 72px; right: var(--pad); text-align: right; }
.blink { color: #2bff88; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 900px) { .hud__bl, .hud__br { display: none; } .hud__tl, .hud__tr { font-size: 10px; top: 76px; } }

/* ========================================================================
   NAV
   ======================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad); transition: padding .4s var(--ease), background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { padding: 14px var(--pad); background: rgba(5,5,7,.55); backdrop-filter: blur(16px); border-color: var(--line); }
.nav__logo { font-family: var(--fd); font-weight: 700; font-size: 17px; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 26px; height: 26px; flex: 0 0 auto; display: block; transition: transform .5s var(--ease); }
.nav__logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.nav.is-scrolled .logo-mark { width: 23px; height: 23px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { font-size: 13px; color: var(--dim); letter-spacing: .04em; position: relative; transition: color .25s; display: inline-flex; gap: 6px; }
.nav__links a::before { content: attr(data-i); font-size: 9px; color: var(--cyan); opacity: .6; }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0; background: var(--holo); transition: width .3s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active::before { opacity: 1; }
.nav__burger { display: none; flex-direction: column; gap: 6px; background: none; border: 0; padding: 8px; }
.nav__burger span { width: 26px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(8px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(0) rotate(-45deg); }

/* ========================================================================
   HERO
   ======================================================================== */
.hero {
  position: relative; z-index: 3;
  min-height: 100vh; max-width: var(--maxw); margin: 0 auto;
  padding: 160px var(--pad) 90px;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
}
.hero__tagline { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .14em; color: var(--ink); }
.dotline { width: 60px; height: 1px; background: var(--holo); }

.hero__title { font-family: var(--fd); font-weight: 800; font-size: clamp(1.6rem, 6.4vw, 5.5rem); line-height: .98; letter-spacing: -.035em; text-transform: uppercase; hyphens: none; }
.ht-line { display: block; white-space: nowrap; }
.ht-line--out { color: var(--dim); }
.ht-accent { background: var(--holo); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.hero__foot { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; align-items: flex-end; }
.hero__desc { max-width: 46ch; color: var(--dim); font-size: clamp(.95rem, 1.3vw, 1.05rem); line-height: 1.75; }
.hero__readout { display: flex; flex-direction: column; gap: 10px; min-width: 240px; }
.ro { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: .04em; }
.ro__k { color: var(--dim); }
.ro__v { color: var(--cyan); }

.hero__enter {
  position: absolute; right: var(--pad); bottom: 90px;
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  border: 1px solid var(--line-2);
  transition: color .3s, transform .4s var(--ease);
}
.hero__enter:hover { transform: translateY(6px); color: var(--void); }
.hero__enter-ring { position: absolute; inset: 0; border-radius: 50%; background: var(--holo); opacity: 0; transition: opacity .3s; z-index: -1; }
.hero__enter:hover .hero__enter-ring { opacity: 1; }
.hero__enter svg { animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
@media (max-width: 720px) { .hero__enter { display: none; } }

/* ========================================================================
   SECTIONS
   ======================================================================== */
.section { position: relative; z-index: 3; max-width: var(--maxw); margin: 0 auto; padding: clamp(80px,13vh,150px) var(--pad); }
.modlabel { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; letter-spacing: .12em; color: var(--dim); padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 48px; flex-wrap: wrap; }
.modlabel span:first-child { color: var(--cyan); }
.section__h { font-family: var(--fd); font-weight: 800; font-size: clamp(2rem, 7vw, 5.5rem); line-height: .95; letter-spacing: -.03em; text-transform: uppercase; margin-bottom: 56px; }

/* ---------- WORK ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.5vw, 36px); }
.tile {
  position: relative; aspect-ratio: 16/11; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: var(--void-2);
  transform-style: preserve-3d; transition: border-color .4s, box-shadow .4s;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
  will-change: transform;
}
.tile:hover { border-color: var(--line-2); box-shadow: 0 0 60px -20px var(--violet); }
/* живое превью демо-сайта в плитке */
.tile__shot {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: radial-gradient(120% 130% at 25% 15%, var(--g2), var(--g1) 55%, var(--void-2) 100%);
  transition: transform .6s var(--ease);
}
.tile__shot iframe {
  position: absolute; top: 0; left: 0; width: 320%; height: 320%; border: 0;
  transform: scale(.3125); transform-origin: 0 0; pointer-events: none;
  background: #fff;
}
.tile:hover .tile__shot { transform: scale(1.05); }
.tile::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5,5,7,.15) 0%, rgba(5,5,7,.5) 55%, rgba(5,5,7,.92) 100%); transition: opacity .4s var(--ease); }
.tile:hover::after { opacity: .82; }
.tile__meta { position: relative; z-index: 2; transform: translateZ(40px); }
.tile__id { font-size: 11px; letter-spacing: .15em; color: var(--cyan); }
.tile__meta h3 { font-family: var(--fd); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.8rem); letter-spacing: -.02em; line-height: 1; margin: 8px 0 6px; }
.tile__cat { font-size: 13px; color: rgba(238,240,255,.7); }
.tile__year { position: absolute; top: 24px; right: 28px; z-index: 2; font-size: 12px; letter-spacing: .1em; color: rgba(238,240,255,.6); transform: translateZ(40px); }

/* ---------- ABOUT ---------- */
.about__text { font-family: var(--fd); font-weight: 400; font-size: clamp(1.4rem, 3.6vw, 2.9rem); line-height: 1.28; letter-spacing: -.02em; max-width: 22ch; }
.about__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 80px; }
.stat { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.stat__num { font-family: var(--fd); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -.03em; background: var(--holo); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { font-size: 11px; letter-spacing: .06em; color: var(--dim); }
@media (max-width: 720px) { .about__stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- SERVICES ---------- */
.mods { list-style: none; border-top: 1px solid var(--line); }
.mod { position: relative; display: grid; grid-template-columns: 90px 1.1fr 1.5fr 60px; gap: 28px; align-items: center; padding: clamp(26px,3.5vw,42px) 0; border-bottom: 1px solid var(--line); transition: padding-left .45s var(--ease), background .45s; overflow: hidden; }
.mod::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--holo); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.mod:hover { padding-left: 28px; }
.mod:hover::before { transform: scaleY(1); }
.mod__no { font-size: 12px; letter-spacing: .1em; color: var(--cyan); }
.mod h3 { font-family: var(--fd); font-weight: 600; font-size: clamp(1.2rem,2.6vw,2rem); letter-spacing: -.02em; transition: color .35s; }
.mod p { color: var(--dim); font-size: 14px; }
.mod__arrow { font-family: var(--fd); font-size: 26px; color: var(--dim); justify-self: end; transition: transform .4s var(--ease), color .35s; }
.mod:hover .mod__arrow { transform: translate(8px,-8px) rotate(0); color: var(--cyan); }
@media (max-width: 760px) { .mod { grid-template-columns: 60px 1fr; gap: 6px 20px; } .mod p { grid-column: 1/-1; margin-top: 6px; } .mod__arrow { display: none; } }

/* ---------- CONTACT ---------- */
.contact { text-align: center; padding-top: clamp(90px,16vh,200px); }
.contact__h { font-family: var(--fd); font-weight: 800; font-size: clamp(1.8rem, 8vw, 7rem); line-height: .94; letter-spacing: -.035em; text-transform: uppercase; margin: 28px 0 48px; hyphens: none; }
.contact__mail { display: inline-block; font-family: var(--fd); font-weight: 500; font-size: clamp(1.3rem, 4.5vw, 2.8rem); letter-spacing: -.01em; padding: 6px 4px; position: relative; }
.contact__mail::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--holo); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.contact__mail:hover::after { transform: scaleX(1); }
.contact__links { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-top: 60px; font-size: 13px; letter-spacing: .1em; }
.contact__links a { color: var(--dim); transition: color .25s; }
.contact__links a:hover { color: var(--cyan); }

/* ========================================================================
   КОНСОЛЬ: терминал + лента передач
   ======================================================================== */
.console__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
@media (max-width: 860px) { .console__grid { grid-template-columns: 1fr; } }
.term, .feed { border: 1px solid var(--line); border-radius: 14px; background: rgba(150,160,255,.03); overflow: hidden; display: flex; flex-direction: column; min-height: 340px; }
.term__bar { display: flex; align-items: center; gap: 6px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.term__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.term__bar b { margin-left: 10px; font-size: 11px; letter-spacing: .12em; color: var(--dim); font-weight: 400; }
.term__out { flex: 1; padding: 16px; font-size: 13px; line-height: 1.75; overflow-y: auto; white-space: pre-wrap; word-break: break-word; }
.term__out .echo { color: var(--cyan); margin-top: 6px; }
.term__out .resp { color: var(--dim); }
.term__in { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-top: 1px solid var(--line); }
.term__prompt { color: var(--accent); font-size: 13px; white-space: nowrap; }
.term__in input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font-family: var(--fm); font-size: 13px; }
.term__in input::placeholder { color: var(--dim); }
.feed__head { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: .12em; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.feed__list { list-style: none; margin: 0; padding: 8px 0; overflow: hidden; }
.feed__list li { display: flex; gap: 12px; padding: 9px 16px; font-size: 12.5px; color: var(--dim); animation: feedIn .5s var(--ease); }
.feed__list time { color: var(--cyan); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---- форма заявки ---- */
.lead { max-width: 620px; margin: 0 auto; text-align: left; display: flex; flex-direction: column; gap: 14px; }
.lead__row { display: flex; gap: 14px; flex-wrap: wrap; }
.lead__row > * { flex: 1; min-width: 0; }
.lead__in {
  width: 100%; background: rgba(150,160,255,.04); color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 15px 16px;
  font-family: var(--fm); font-size: 15px; font-weight: 300; transition: border-color .25s, background .25s;
  resize: vertical;
}
.lead__in::placeholder { color: var(--dim); }
.lead__in:focus { outline: none; border-color: var(--cyan); background: rgba(150,160,255,.07); }
.lead select.lead__in, .lead__in[name="budget"] { cursor: pointer; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.lead select.lead__in option { background: var(--void-2); color: var(--ink); }
.lead__btn {
  flex: 0 0 auto; white-space: nowrap; border: 0; cursor: pointer;
  background: var(--holo); color: var(--void); font-family: var(--fd); font-weight: 700;
  letter-spacing: .04em; font-size: 14px; padding: 0 28px; border-radius: 10px;
  transition: transform .25s var(--ease), filter .25s; min-height: 52px;
}
.lead__btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.lead__btn:disabled { opacity: .6; cursor: default; transform: none; }
.lead__msg { min-height: 20px; font-size: 14px; letter-spacing: .02em; margin-top: 2px; }
.lead__msg.is-ok { color: #2bff88; }
.lead__msg.is-err { color: #ff5c7a; }
@media (max-width: 540px) { .lead__row { flex-direction: column; } .lead__btn { width: 100%; padding: 15px; } }

.contact__alt { margin-top: 32px; font-size: 14px; color: var(--dim); letter-spacing: .02em; }
.contact__alt .contact__mail { font-family: var(--fm); font-size: 15px; font-weight: 400; color: var(--cyan); }
.contact__alt .contact__mail::after { display: none; }

/* ---------- FOOTER ---------- */
.footer { position: relative; z-index: 3; max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 30px var(--pad); border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .08em; color: var(--dim); flex-wrap: wrap; }
.footer__top { transition: color .25s; }
.footer__top:hover { color: var(--cyan); }

/* ========================================================================
   REVEAL
   ======================================================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* декод-текст */
.ht-line, [data-decode] { will-change: contents; }

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; gap: 26px;
    position: fixed; inset: 0; z-index: 45; padding: 130px var(--pad);
    background: rgba(5,5,7,.97); backdrop-filter: blur(12px); font-size: 30px;
  }
  .nav__links.is-open a { font-family: var(--fd); color: var(--ink); }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 32px; }
}

/* ========================================================================
   prefers-reduced-motion
   ======================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  #field, .fx-scan { display: none; }
}

/* ========================================================================
   КЕЙС-СТРАНИЦА
   ======================================================================== */
.case { padding-top: clamp(120px, 16vh, 180px); }
.case__back { display: inline-block; font-size: 12px; letter-spacing: .1em; color: var(--dim); margin-bottom: 56px; transition: color .25s; }
.case__back:hover { color: var(--cyan); }

.case__hero { margin-bottom: 56px; }
.case__id { font-size: 12px; letter-spacing: .15em; color: var(--cyan); margin-bottom: 18px; }
.case__title { font-family: var(--fd); font-weight: 800; font-size: clamp(2.6rem, 11vw, 9.5rem); line-height: .9; letter-spacing: -.04em; text-transform: uppercase; hyphens: none; background: var(--holo); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.case__tagline { font-family: var(--fd); font-weight: 400; font-size: clamp(1.2rem, 3vw, 2rem); line-height: 1.3; letter-spacing: -.01em; max-width: 24ch; margin-top: 22px; color: var(--ink); }

.case__cover { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 64px; transform-style: preserve-3d; will-change: transform; }
.case__cover .shot__img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.case__cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5,5,7,.6)); }
.case__cover-cat { position: absolute; left: 28px; bottom: 24px; z-index: 2; font-size: 13px; letter-spacing: .08em; color: var(--ink); transform: translateZ(40px); }

.case__meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 80px; }
.cm { display: flex; flex-direction: column; gap: 8px; }
.cm__k { font-size: 11px; letter-spacing: .1em; color: var(--dim); }
.cm__v { font-size: 14px; color: var(--ink); }
@media (max-width: 760px) { .case__meta { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

.case__block { margin-bottom: 80px; }
.case__lead { font-family: var(--fd); font-weight: 400; font-size: clamp(1.3rem, 3vw, 2.2rem); line-height: 1.35; letter-spacing: -.02em; max-width: 30ch; margin-top: 24px; }

.case__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 90px; }
.case__col { display: flex; flex-direction: column; gap: 16px; }
.case__k { font-size: 12px; letter-spacing: .12em; color: var(--cyan); }
.case__col p { color: var(--dim); font-size: 16px; line-height: 1.7; }
@media (max-width: 720px) { .case__grid2 { grid-template-columns: 1fr; gap: 36px; } }

.case__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 48px 0; border-top: 1px solid var(--line); margin-bottom: 90px; }
.cstat { display: flex; flex-direction: column; gap: 8px; }
.cstat__n { font-family: var(--fd); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -.03em; background: var(--holo); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cstat__l { font-size: 12px; letter-spacing: .05em; color: var(--dim); }
@media (max-width: 620px) { .case__stats { grid-template-columns: 1fr; gap: 28px; } }

.case__gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.5vw, 32px); margin-bottom: 100px; }
.case__gallery .modlabel { grid-column: 1 / -1; }
.shot { position: relative; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); transform-style: preserve-3d; will-change: transform; background: var(--void-2); }
.shot__chrome { position: absolute; top: 0; left: 0; right: 0; height: 30px; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: rgba(5,5,7,.6); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.shot__chrome span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.shot .shot__img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s var(--ease); }
.shot:hover .shot__img { transform: scale(1.06); }
.shot figcaption { position: absolute; left: 16px; bottom: 14px; z-index: 4; font-size: 12px; letter-spacing: .05em; color: var(--ink); text-shadow: 0 2px 12px rgba(0,0,0,.7); transform: translateZ(30px); }
@media (max-width: 620px) { .case__gallery { grid-template-columns: 1fr; } }

.case__next { display: flex; flex-direction: column; gap: 12px; padding: 60px 0; border-top: 1px solid var(--line); transition: padding-left .4s var(--ease); }
.case__next:hover { padding-left: 20px; }
.case__next-k { font-size: 12px; letter-spacing: .1em; color: var(--cyan); }
.case__next-t { font-family: var(--fd); font-weight: 800; font-size: clamp(2.6rem, 9vw, 7rem); line-height: .9; letter-spacing: -.03em; text-transform: uppercase; transition: color .35s; }
.case__next:hover .case__next-t { background: var(--holo); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.case__next-c { font-size: 14px; color: var(--dim); }

/* ========================================================================
   ИНСТРУМЕНТЫ В НАВИГАЦИИ: язык + звук
   ======================================================================== */
.nav__tools { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 100px; padding: 3px; }
.lang button { background: none; border: 0; color: var(--dim); font-family: var(--fm); font-size: 11px; letter-spacing: .06em; padding: 5px 9px; border-radius: 100px; transition: color .25s, background .25s; }
.lang button:hover { color: var(--ink); }
.lang button.is-active { color: var(--void); background: var(--holo); }

.sound { background: none; border: 1px solid var(--line); border-radius: 100px; width: 38px; height: 30px; display: grid; place-items: center; transition: border-color .25s; }
.sound:hover { border-color: var(--line-2); }
.sound__bars { display: flex; align-items: center; gap: 3px; height: 14px; }
.sound__bars i { width: 2.5px; background: var(--cyan); border-radius: 2px; height: 40%; animation: eq 1s ease-in-out infinite; }
.sound__bars i:nth-child(2) { height: 100%; animation-delay: .2s; }
.sound__bars i:nth-child(3) { height: 65%; animation-delay: .4s; }
@keyframes eq { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.sound.is-off .sound__bars i { animation-play-state: paused; background: var(--dim); transform: scaleY(.4); }

@media (max-width: 820px) { .nav__tools { margin-left: auto; margin-right: 12px; } .lang button { padding: 5px 7px; } }
@media (max-width: 560px) {
  .nav { padding-left: 16px; padding-right: 16px; }
  .nav__logo { font-size: 15px; }
  .nav__tools { gap: 8px; margin-right: 8px; }
  .lang { padding: 2px; gap: 1px; }
  .lang button { padding: 4px 6px; font-size: 10px; }
  .sound { width: 32px; height: 28px; }
  .nav__burger { padding: 6px; }
  .nav__burger span { width: 22px; }
}

/* ========================================================================
   ФИЛЬТР РАБОТ
   ======================================================================== */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter__btn { background: none; border: 1px solid var(--line); color: var(--dim); font-family: var(--fm); font-size: 12px; letter-spacing: .06em; padding: 9px 18px; border-radius: 100px; transition: color .25s, border-color .25s, background .25s; }
.filter__btn:hover { color: var(--ink); border-color: var(--line-2); }
.filter__btn.is-active { color: var(--void); background: var(--holo); border-color: transparent; }
.tile { transition: border-color .4s, box-shadow .4s, opacity .35s var(--ease), transform .45s var(--ease); }

/* ========================================================================
   WARP — переход между страницами
   ======================================================================== */
.warp { position: fixed; inset: 0; z-index: 9400; background: var(--void); transform: translateY(-100%); pointer-events: none; display: grid; place-items: center; overflow: hidden; }
.warp::before { content: ''; position: absolute; inset: 0; background: var(--holo); opacity: .16; }
.warp__lines { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255,255,255,.08) 0 2px, transparent 2px 8px); opacity: .6; }
.warp__glyph { position: relative; font-family: var(--fd); font-weight: 800; font-size: clamp(3rem, 14vw, 10rem); color: var(--ink); mix-blend-mode: difference; letter-spacing: -.02em; }
