/* ═══════════════════════════════════════════════════════════
   DEADC0DE17 — портфолио
   рабочий стол macOS · окна-папки · киберпанк-фото
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg:      #04050c;
  --panel:   rgba(11, 15, 30, .9);
  --panel-2: #070a16;
  --txt:     #e9edf5;
  --mut:     #7e89a3;
  --cyan:    #5af5ff;
  --mag:     #ff3d8a;
  --vio:     #8b6bff;
  --amb:     #ffb454;
  --line:    rgba(255, 255, 255, .08);
  --line-2:  rgba(255, 255, 255, .14);
  --ease:    cubic-bezier(.32, .72, 0, 1);
  --spring:  cubic-bezier(.22, 1, .36, 1);
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--txt);
  overflow: hidden;
}

::selection { background: var(--mag); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; }

/* тонкий скроллбар внутри окон */
.win-scroll::-webkit-scrollbar { width: 8px; }
.win-scroll::-webkit-scrollbar-track { background: transparent; }
.win-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .14);
  border-radius: 4px;
}

/* ── фон: фото ────────────────────────────────────────────── */

.bg {
  position: fixed;
  inset: -3.5%;
  z-index: 0;
  background: url("../assets/bg.jpg") center 30% / cover no-repeat;
  transform: translate(0, 0) scale(1.02);
  will-change: transform;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 95% at 50% 8%, transparent 42%, rgba(2, 3, 8, .5) 100%),
    linear-gradient(180deg, rgba(2, 3, 8, .5), rgba(2, 3, 8, .12) 26%, transparent 55%, rgba(2, 3, 8, .55));
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%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");
}

/* ── заставка / boot ──────────────────────────────────────── */

#boot {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 50% at 50% 42%, rgba(139, 107, 255, .12), transparent 70%),
    radial-gradient(40% 35% at 68% 60%, rgba(255, 61, 138, .07), transparent 70%),
    #03040a;
  transition: transform 1s var(--ease), opacity .9s var(--ease);
}
body.open #boot {
  transform: translateY(-102%);
  opacity: .4;
  pointer-events: none;
}

.boot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  max-width: 720px;
  width: 100%;
}

#boot-log {
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: .08em;
  color: var(--mut);
  min-height: 130px;
  width: 300px;
  text-align: left;
  white-space: pre-wrap;
}
#boot-log .ok { color: var(--cyan); }

.boot-title {
  font-size: clamp(2.4rem, 9vw, 5.5rem);
  font-weight: 800;
  letter-spacing: .06em;
  margin-top: 18px;
}

.boot-sub {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--mut);
}

.boot-line {
  width: min(420px, 70vw);
  height: 2px;
  margin: 26px 0 34px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
  border-radius: 2px;
}
.boot-line span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--vio), var(--cyan), var(--mag));
  animation: bootFill 2.2s var(--ease) forwards;
}
@keyframes bootFill { to { transform: scaleX(1); } }

.boot-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 6px 6px 26px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04);
  color: var(--txt);
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(14px);
  transition:
    border-color .5s var(--ease),
    box-shadow .5s var(--ease),
    transform .5s var(--ease),
    opacity .5s var(--ease);
}
.boot-btn.show { opacity: 1; transform: translateY(0); }
.boot-btn:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 34px rgba(90, 245, 255, .22), inset 0 0 18px rgba(90, 245, 255, .06);
}
.boot-btn:active { transform: scale(.97); }

.btn-orb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(90, 245, 255, .1);
  border: 1px solid rgba(90, 245, 255, .35);
  color: var(--cyan);
  transition: transform .5s var(--ease), background .5s var(--ease);
  flex: none;
}
.boot-btn:hover .btn-orb,
.cta-proposal:hover .btn-orb,
.prop-send:hover .btn-orb {
  transform: translateX(3px) scale(1.06);
  background: rgba(90, 245, 255, .2);
}

.boot-hint {
  margin-top: 22px;
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--mut);
  opacity: 0;
  transition: opacity .8s var(--ease) .2s;
}
.boot-hint.show { opacity: .8; }

/* ── глитч ────────────────────────────────────────────────── */

.glitch { position: relative; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.glitch::before { color: var(--cyan); animation: glitchA 7s infinite steps(1); }
.glitch::after  { color: var(--mag);  animation: glitchB 7s infinite steps(1); }

@keyframes glitchA {
  0%, 91%, 94.5%, 100% { opacity: 0; transform: none; clip-path: none; }
  91.5% { opacity: .85; transform: translate(-5px, 2px);  clip-path: inset(12% 0 58% 0); }
  92.5% { opacity: .85; transform: translate(4px, -2px);  clip-path: inset(60% 0 8% 0); }
  93.5% { opacity: .85; transform: translate(-3px, 1px);  clip-path: inset(35% 0 40% 0); }
}
@keyframes glitchB {
  0%, 91%, 94.5%, 100% { opacity: 0; transform: none; clip-path: none; }
  91.5% { opacity: .85; transform: translate(5px, -2px);  clip-path: inset(55% 0 15% 0); }
  92.5% { opacity: .85; transform: translate(-4px, 2px);  clip-path: inset(5% 0 70% 0); }
  93.5% { opacity: .85; transform: translate(3px, -1px);  clip-path: inset(70% 0 5% 0); }
}

/* ── меню-бар ─────────────────────────────────────────────── */

#menubar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: rgba(5, 7, 16, .58);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  transform: translateY(-100%);
  transition: transform .9s var(--ease) .35s;
}
body.open #menubar { transform: translateY(0); }

.mb-left, .mb-right { display: flex; align-items: center; gap: 18px; }

.mb-logo {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--cyan), var(--vio));
  box-shadow: 0 0 10px rgba(90, 245, 255, .8);
}

.mb-name {
  font-weight: 700;
  letter-spacing: .14em;
  background: none;
  border: none;
  font-size: 12px;
}

.mb-nav { display: flex; gap: 6px; }
.mb-nav button {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--mut);
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: 7px;
  transition: color .4s var(--ease), background .4s var(--ease);
}
.mb-nav button:hover { color: var(--txt); background: rgba(255, 255, 255, .06); }
.mb-nav button.active { color: var(--txt); background: rgba(90, 245, 255, .12); }

.mb-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--mut);
  letter-spacing: .04em;
}
.mb-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 8px #3ddc84;
  animation: pulseDot 2.4s var(--ease) infinite;
}
@keyframes pulseDot { 50% { opacity: .35; } }

#lang-toggle {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: .12em;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
#lang-toggle:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(90, 245, 255, .25);
}
#lang-toggle:active { transform: scale(.95); }

#clock { color: var(--mut); font-variant-numeric: tabular-nums; }

/* ── рабочий стол ─────────────────────────────────────────── */

#desktop {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 76px clamp(20px, 5vw, 64px) 118px;
  gap: 5vh;
}

.hero { text-align: left; max-width: 720px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--mut);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  background: rgba(4, 5, 12, .5);
}

.hero-title {
  margin-top: 20px;
  font-size: clamp(2.2rem, 6.5vw, 4.6rem);
  font-weight: 800;
  letter-spacing: .04em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .8), 0 0 60px rgba(139, 107, 255, .4);
}

.hero-sub {
  margin-top: 12px;
  font-size: clamp(.75rem, 1.6vw, .95rem);
  letter-spacing: .5em;
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(90, 245, 255, .6), 0 2px 10px rgba(0, 0, 0, .9);
}

.caret {
  display: inline-block;
  width: .55em;
  height: 1.1em;
  margin-left: .35em;
  vertical-align: text-bottom;
  background: var(--cyan);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* появление элементов после открытия */
.rise {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
}
body.open .rise {
  animation: riseIn 1s var(--ease) forwards;
  animation-delay: calc(var(--d, 0s) + .5s);
}
@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ── папки ────────────────────────────────────────────────── */

.folders {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(8px, 2vw, 26px);
}

.folder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 12px;
  min-width: 118px;
  border: none;
  background: none;
  border-radius: 16px;
  transition: background .5s var(--ease), transform .6s var(--ease);
}
.folder:hover { background: rgba(4, 5, 12, .45); transform: translateY(-6px); }
.folder:active { transform: translateY(-2px) scale(.96); }

.folder-icon { position: relative; width: clamp(56px, 6vw, 76px); }
.folder-icon svg { width: 100%; display: block; overflow: visible; }

.f-back {
  fill: rgba(90, 245, 255, .1);
  stroke: rgba(90, 245, 255, .55);
  stroke-width: 1.4;
}
.f-front {
  fill: rgba(13, 20, 42, .92);
  stroke: var(--cyan);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 6px rgba(90, 245, 255, .35));
  transition: filter .5s var(--ease);
}
.folder:hover .f-front { filter: drop-shadow(0 0 14px rgba(90, 245, 255, .7)); }

/* ярлык pulse.app */
.a-body {
  fill: rgba(255, 61, 138, .12);
  stroke: var(--mag);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 6px rgba(255, 61, 138, .4));
  transition: filter .5s var(--ease);
}
.app-shortcut:hover .a-body { filter: drop-shadow(0 0 14px rgba(255, 61, 138, .75)); }
.a-glyph { fill: #ffd9ec; }

.folder-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  background: var(--mag);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 61, 138, .7);
}

.folder-label {
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--txt);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .95);
}

.desk-hint {
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--mut);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .9);
}

/* ── затемнение под окном ─────────────────────────────────── */

#shade {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(2, 3, 8, .5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .55s var(--ease);
}
#shade.show { opacity: 1; }

/* ── окна приложений ──────────────────────────────────────── */

.app-window {
  position: fixed;
  z-index: 50;
  left: 50%;
  top: calc(46px + 3vh);
  width: min(1020px, 94vw);
  height: min(74vh, 700px);
  margin-left: max(-510px, -47vw);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  box-shadow:
    0 60px 120px rgba(0, 0, 0, .65),
    0 0 0 1px rgba(0, 0, 0, .4),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  overflow: hidden;
  opacity: 0;
  transform: scale(.05) translateY(30px);
  pointer-events: none;
  transition:
    transform .55s var(--spring),
    opacity .4s var(--ease);
  will-change: transform;
}
.app-window.open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.app-window.closing {
  opacity: 0;
  transform: scale(.05) translateY(30px);
  transition:
    transform .45s var(--ease),
    opacity .3s var(--ease) .1s;
  pointer-events: none;
}

.titlebar {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
}

.lights { display: flex; align-items: center; gap: 8px; }
.lights i,
.light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, .45);
  border: none;
  padding: 0;
}
.light.close { background: #ff5f57; position: relative; }
.light.close::after {
  content: '×';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  line-height: 1;
  color: rgba(0, 0, 0, 0);
  transition: color .25s var(--ease);
}
.titlebar:hover .light.close::after { color: rgba(0, 0, 0, .55); }
.lights i:nth-of-type(1) { background: #febc2e; }
.lights i:nth-of-type(2) { background: #28c840; }

.win-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mut);
  white-space: nowrap;
}
.win-count {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--mut);
}

.win-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.win-body { padding: clamp(20px, 3.5vw, 40px); }

/* контент окна появляется каскадом при открытии */
.app-window .win-body > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.app-window.open .win-body > * { opacity: 1; transform: translateY(0); }
.app-window.open .win-body > *:nth-child(1) { transition-delay: .15s; }
.app-window.open .win-body > *:nth-child(2) { transition-delay: .25s; }
.app-window.open .win-body > *:nth-child(3) { transition-delay: .35s; }
.app-window.open .win-body > *:nth-child(4) { transition-delay: .45s; }

/* ── панель «следующая папка» ─────────────────────────────── */

.win-next {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  border: none;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--mut);
  overflow: hidden;
  transition: color .4s var(--ease), background .4s var(--ease);
}
.win-next:hover { color: var(--txt); background: rgba(90, 245, 255, .07); }
.win-next .chev {
  display: inline-block;
  animation: chev 2s var(--ease) infinite;
  color: var(--cyan);
}
@keyframes chev {
  0%, 100% { transform: translateY(-2px); opacity: .5; }
  50%      { transform: translateY(2px); opacity: 1; }
}
.win-next .np {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--vio), var(--cyan), var(--mag));
  box-shadow: 0 0 12px rgba(90, 245, 255, .5);
}

/* ── обо мне ──────────────────────────────────────────────── */

.about-body {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(22px, 3vw, 40px);
}

.term {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  font-size: 13px;
  line-height: 1.85;
  min-height: 240px;
}
.prompt { color: var(--cyan); }
#term-out p { color: var(--txt); }
#term-out .cmt { color: var(--mut); }
#term-out .hl { color: var(--mag); }
.term .caret { height: .95em; }

.side-label {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--mut);
  margin-bottom: 14px;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  font-size: 11px;
  letter-spacing: .06em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
  color: var(--txt);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity .7s var(--ease),
    transform .7s var(--ease),
    border-color .4s var(--ease),
    box-shadow .4s var(--ease);
  transition-delay: calc(.3s + var(--i, 0) * 45ms);
}
.app-window.open .chips li { opacity: 1; transform: translateY(0); }
.chips li:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(90, 245, 255, .25);
  transition-delay: 0s;
}

.stats {
  display: flex;
  gap: 26px;
  margin-top: 30px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(90, 245, 255, .5);
  font-variant-numeric: tabular-nums;
}
.stat span {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mut);
}

/* ── работы ───────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 18px;
}

.card { perspective: 900px; }

.card-shell {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  padding: 6px;
  height: 100%;
  transform-style: preserve-3d;
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease), transform .2s linear;
  will-change: transform;
}
.card:hover .card-shell {
  border-color: rgba(90, 245, 255, .45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 30px rgba(90, 245, 255, .1);
}

.card-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 11px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .05);
}

.pv-logo {
  font-size: 34px;
  font-weight: 800;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 0 26px rgba(255, 255, 255, .5);
  z-index: 1;
}

.p-pulse     { background: radial-gradient(120% 130% at 20% 0%, #1b1040, #070812 70%); }
.p-pulsesite { background: radial-gradient(120% 130% at 80% 0%, #0c2038, #06090f 70%); }
.p-coffee    { background: radial-gradient(120% 130% at 50% 0%, #3a2413, #120a05 75%); }
.p-tortani   { background: radial-gradient(120% 130% at 30% 0%, #2e2116, #14100b 75%); }
.p-forest    { background: radial-gradient(120% 130% at 60% 0%, #0c2b1c, #050f0a 75%); }

.pv-wave {
  position: absolute;
  bottom: 16px;
  display: flex;
  gap: 5px;
  align-items: flex-end;
  height: 30px;
}
.pv-wave i {
  width: 4px;
  border-radius: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--mag), var(--vio));
  transform: scaleY(.2);
  transform-origin: bottom;
  animation: eq 1.3s var(--ease) infinite;
  animation-delay: calc(var(--n, 0) * .12s);
}
.pv-wave i:nth-child(1) { --n: 0; } .pv-wave i:nth-child(2) { --n: 1; }
.pv-wave i:nth-child(3) { --n: 2; } .pv-wave i:nth-child(4) { --n: 3; }
.pv-wave i:nth-child(5) { --n: 4; } .pv-wave i:nth-child(6) { --n: 5; }
.pv-wave i:nth-child(7) { --n: 6; }
@keyframes eq {
  0%, 100% { transform: scaleY(.2); }
  50%      { transform: scaleY(1); }
}

.pv-browser {
  position: absolute;
  top: 12px;
  left: 14px;
  display: flex;
  gap: 5px;
}
.pv-browser i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
}

.pv-wave2 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  background:
    radial-gradient(14px 14px at 14px 0, transparent 13px, rgba(255, 180, 84, .35) 13px) 0 0 / 28px 26px repeat-x;
  animation: waveShift 6s linear infinite;
}
@keyframes waveShift { to { background-position-x: 28px; } }

.proj-link { cursor: pointer; }
.proj-link:focus-visible { outline: none; }
.proj-link:focus-visible .card-shell {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(90, 245, 255, .4);
}

.card-info { padding: 16px 12px 12px; }
.card-info h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  letter-spacing: .16em;
  margin-bottom: 8px;
}
.card-open {
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--cyan);
  padding: 2px 8px;
  border: 1px solid rgba(90, 245, 255, .35);
  border-radius: 999px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.proj-link:hover .card-open,
.proj-link:focus-visible .card-open {
  opacity: 1;
  transform: translateX(0);
}
.card-info p {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--mut);
  min-height: 58px;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.tags li {
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(90, 245, 255, .3);
  background: rgba(90, 245, 255, .05);
}

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

.steps { list-style: none; display: flex; flex-direction: column; }

.step {
  display: grid;
  grid-template-columns: 92px 1fr 180px;
  align-items: center;
  gap: 22px;
  padding: 22px 6px;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }

.step-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--vio);
  text-shadow: 0 0 18px rgba(139, 107, 255, .55);
  font-variant-numeric: tabular-nums;
}
.step-num i {
  display: block;
  font-style: normal;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--mut);
  text-shadow: none;
  margin-bottom: 2px;
}

.step h3 { font-size: 14px; letter-spacing: .1em; margin-bottom: 6px; }
.step p  { font-size: 12px; line-height: 1.7; color: var(--mut); }

.step-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
}
.step-bar i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--vio), var(--cyan));
  box-shadow: 0 0 12px rgba(90, 245, 255, .5);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease) .45s;
}
.app-window.open .step-bar i { transform: scaleX(1); }

/* ── контакты ─────────────────────────────────────────────── */

.contact-lead {
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  margin-bottom: 26px;
  letter-spacing: .02em;
}

.contact-list { display: flex; flex-direction: column; }

.contact {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1rem, 2.6vw, 1.45rem);
  transition: background .5s var(--ease);
}
.contact:last-child { border-bottom: none; }
.contact:hover { background: rgba(255, 255, 255, .03); }

.c-proto, .c-handle { transition: transform .5s var(--ease); }
.contact:hover .c-proto, .contact:hover .c-handle { transform: translateX(14px); }

.c-proto { font-size: .6em; color: var(--mut); letter-spacing: .1em; }
.c-handle {
  font-weight: 700;
  letter-spacing: .04em;
  transition: color .4s var(--ease), text-shadow .4s var(--ease), transform .5s var(--ease);
}
.contact:hover .c-handle {
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(90, 245, 255, .6);
}
.c-arrow {
  margin-left: auto;
  color: var(--mut);
  transition: transform .5s var(--ease), color .5s var(--ease);
}
.contact:hover .c-arrow {
  transform: translate(4px, -4px);
  color: var(--mag);
}

.cta-proposal {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 61, 138, .45);
  background: rgba(255, 61, 138, .08);
  color: var(--txt);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.cta-proposal .btn-orb {
  width: 34px;
  height: 34px;
  background: rgba(255, 61, 138, .14);
  border-color: rgba(255, 61, 138, .4);
  color: #ffd9ec;
}
.cta-proposal:hover {
  border-color: var(--mag);
  box-shadow: 0 0 30px rgba(255, 61, 138, .25);
}
.cta-proposal:active { transform: scale(.97); }

.footer-line {
  margin-top: 30px;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--mut);
}

/* ── окно предложения ─────────────────────────────────────── */

.prop-lead {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  margin-bottom: 22px;
}

.prop-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.prop-types label { cursor: pointer; }
.prop-types input { position: absolute; opacity: 0; pointer-events: none; }
.prop-types span {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .08em;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
  color: var(--mut);
  transition:
    color .4s var(--ease),
    border-color .4s var(--ease),
    box-shadow .4s var(--ease),
    background .4s var(--ease);
}
.prop-types input:checked + span {
  color: var(--txt);
  border-color: var(--mag);
  background: rgba(255, 61, 138, .1);
  box-shadow: 0 0 18px rgba(255, 61, 138, .2);
}
.prop-types input:focus-visible + span { outline: 1px solid var(--cyan); }

.prop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.field span {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mut);
}
.field input,
.field textarea {
  font-family: inherit;
  font-size: 13px;
  color: var(--txt);
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(90, 245, 255, .18);
}
.field.err input,
.field.err textarea {
  border-color: var(--mag);
  animation: shake .4s var(--ease);
}
@keyframes shake {
  25% { transform: translateX(-5px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

.prop-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.prop-send {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  border: 1px solid rgba(90, 245, 255, .45);
  background: rgba(90, 245, 255, .08);
  color: var(--txt);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease), opacity .4s var(--ease);
}
.prop-send .btn-orb { width: 34px; height: 34px; }
.prop-send:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(90, 245, 255, .25);
}
.prop-send:active { transform: scale(.97); }
.prop-send[disabled] { opacity: .5; pointer-events: none; }

.prop-note {
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--mut);
}

#prop-status {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.8;
}
#prop-status .ok-line { color: var(--cyan); }
#prop-status .err-line { color: var(--mag); }

/* ── предупреждение о ссылке ──────────────────────────────── */

#linkwarn {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 3, 8, .6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.warn-box {
  width: min(520px, 100%);
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid rgba(255, 180, 84, .4);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 40px rgba(255, 180, 84, .12);
  padding: 26px;
  animation: warnIn .45s var(--spring);
}
@keyframes warnIn {
  from { opacity: 0; transform: scale(.85) translateY(16px); }
}

.warn-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amb);
  margin-bottom: 16px;
}
.warn-icon {
  font-size: 20px;
  animation: pulseDot 1.6s var(--ease) infinite;
}

.warn-text {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--txt);
}

.warn-url {
  margin: 16px 0 22px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--cyan);
  overflow-x: auto;
  white-space: nowrap;
}

.warn-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.warn-actions button {
  flex: 1;
  min-width: 150px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease), border-color .4s var(--ease);
}
.warn-actions button:active { transform: scale(.97); }
#warn-stay {
  border: 1px solid rgba(90, 245, 255, .5);
  background: rgba(90, 245, 255, .12);
  color: var(--txt);
}
#warn-stay:hover { box-shadow: 0 0 24px rgba(90, 245, 255, .3); }
#warn-go {
  border: 1px solid var(--line-2);
  background: none;
  color: var(--mut);
}
#warn-go:hover {
  color: var(--txt);
  border-color: var(--mag);
  box-shadow: 0 0 24px rgba(255, 61, 138, .25);
}

/* ── док ──────────────────────────────────────────────────── */

#dock {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 0);
  z-index: 55;
  transition: transform .9s var(--ease) .6s;
}
body:not(.open) #dock { transform: translate(-50%, 160%); }

.dock-inner {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 20px;
  background: rgba(10, 14, 30, .55);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-2);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .09);
}

.dock-item {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  transform-origin: bottom center;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  will-change: transform;
}
.dock-item:hover { background: rgba(90, 245, 255, .1); border-color: rgba(90, 245, 255, .4); }
.dock-item svg { width: 20px; height: 20px; fill: #d7dded; }
.dock-prop svg { fill: #ffb9d5; }
.dock-prop:hover { background: rgba(255, 61, 138, .12); border-color: rgba(255, 61, 138, .45); }

.dock-item::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 4px);
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(8, 11, 22, .92);
  border: 1px solid var(--line-2);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--txt);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.dock-item:hover::after { opacity: 1; transform: translate(-50%, 0); }

.dock-sep {
  width: 1px;
  align-self: stretch;
  margin: 4px 2px;
  background: var(--line-2);
}

/* ── контекстное меню ─────────────────────────────────────── */

#ctxmenu {
  position: fixed;
  z-index: 84;
  min-width: 230px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(12, 16, 32, .85);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  transform-origin: top left;
  animation: ctxIn .3s var(--ease);
}
@keyframes ctxIn {
  from { opacity: 0; transform: scale(.92) translateY(-4px); }
}
#ctxmenu button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--txt);
  font-size: 12px;
  letter-spacing: .04em;
  text-align: left;
  transition: background .25s var(--ease);
}
#ctxmenu button:hover { background: rgba(90, 245, 255, .12); }
#ctxmenu kbd {
  font-family: inherit;
  font-size: 10px;
  color: var(--mut);
}
#ctxmenu hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 5px 8px;
}

/* ── тост ─────────────────────────────────────────────────── */

#toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 86;
  transform: translate(-50%, 20px);
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(12, 16, 32, .92);
  border: 1px solid rgba(90, 245, 255, .4);
  box-shadow: 0 0 30px rgba(90, 245, 255, .18);
  font-size: 12px;
  letter-spacing: .08em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ══════════ SPOTIFY МИНИ-ПЛЕЕР ══════════ */

#spotify-mini {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 58;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
/* появляется только на рабочем столе и прячется, когда открыто окно */
body:not(.open) #spotify-mini,
body.win-open #spotify-mini {
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
}

/* круглая кнопка-возврат (свёрнутое состояние) */
.sp-fab {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(30, 215, 96, .5);
  background: rgba(12, 16, 26, .6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5), 0 0 22px rgba(30, 215, 96, .22);
  display: grid;
  place-items: center;
  transform-origin: bottom right;
  transition: transform .45s var(--spring), opacity .35s var(--ease), box-shadow .4s var(--ease);
}
.sp-fab svg { width: 26px; height: 26px; fill: #1ed760; }
.sp-fab:hover { box-shadow: 0 12px 34px rgba(0, 0, 0, .5), 0 0 30px rgba(30, 215, 96, .45); }
.sp-fab:active { transform: scale(.94); }
.sp:not(.collapsed) .sp-fab {
  transform: scale(.2);
  opacity: 0;
  pointer-events: none;
}

/* карточка плеера */
.sp-card {
  position: relative;
  width: 360px;
  max-width: 92vw;
  padding: 16px;
  border-radius: 20px;
  background: rgba(12, 16, 26, .52);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .1);
  transform-origin: bottom right;
  transition: transform .42s var(--spring), opacity .38s var(--ease);
}
.sp.collapsed .sp-card {
  transform: scale(.15);
  opacity: 0;
  pointer-events: none;
}

.sp-collapse {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .06);
  color: var(--mut);
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.sp-collapse:hover { background: rgba(255, 255, 255, .14); color: var(--txt); }

/* --- состояние «нужно войти» --- */
.sp-auth { text-align: center; padding: 12px 6px 6px; }
.sp-mark { display: inline-flex; }
.sp-mark svg { width: 40px; height: 40px; fill: #1ed760; }
.sp-auth-text {
  margin: 10px 0 16px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--txt);
}
.sp-connect {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: none;
  background: #1ed760;
  color: #04120a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: transform .4s var(--spring), box-shadow .4s var(--ease), background .3s var(--ease);
}
.sp-connect:hover { background: #26e069; box-shadow: 0 0 28px rgba(30, 215, 96, .5); transform: translateY(-1px); }
.sp-connect:active { transform: scale(.96); }

.sp-hint {
  margin-top: 12px;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--mut);
  white-space: pre-line;
}
.sp-hint:empty { display: none; }

/* --- рабочий вид плеера --- */
.sp-body { display: flex; gap: 14px; align-items: center; }

.sp-art {
  position: relative;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .45);
}
.sp-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .5s var(--ease);
}
.sp-art-skel {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.04) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  transition: opacity .4s var(--ease);
}
@keyframes shimmer { to { background-position: -200% 0; } }

.sp-meta { min-width: 0; flex: 1; }
.sp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 5px;
}
.sp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mut);
}
.sp.playing .sp-dot {
  background: #1ed760;
  box-shadow: 0 0 8px #1ed760;
  animation: pulseDot 1.8s var(--ease) infinite;
}
.sp-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--txt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-artist, .sp-album {
  font-size: 11px;
  color: var(--mut);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-album { opacity: .7; margin-top: 1px; }

/* прогресс */
.sp-progress { margin-top: 14px; }
.sp-times {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 10px;
  color: var(--mut);
  font-variant-numeric: tabular-nums;
}

/* ползунки range (seek + volume) */
.sp input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .14);
  cursor: pointer;
}
.sp-seek {
  background:
    linear-gradient(#1ed760, #1ed760) 0 / var(--p, 0%) 100% no-repeat,
    rgba(255, 255, 255, .14) !important;
}
.sp input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, .5);
  transition: transform .2s var(--ease);
}
.sp input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.25); }
.sp input[type="range"]::-moz-range-thumb {
  width: 12px; height: 12px; border: none; border-radius: 50%; background: #fff;
}

/* контролы */
.sp-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}
.sp-transport { display: flex; align-items: center; gap: 6px; }
.sp-transport button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: none;
  display: grid;
  place-items: center;
  transition: background .3s var(--ease), transform .2s var(--ease);
}
.sp-transport button svg { width: 20px; height: 20px; fill: var(--txt); }
.sp-transport button:hover { background: rgba(255, 255, 255, .08); }
.sp-transport button:active { transform: scale(.9); }
.sp-play {
  width: 42px !important;
  height: 42px !important;
  background: #fff !important;
}
.sp-play svg { fill: #04120a !important; width: 22px !important; height: 22px !important; }
.sp-play:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 255, 255, .3); }

.sp-vol {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 130px;
}
.sp-vol-ic { width: 18px; height: 18px; fill: var(--mut); flex: none; }

.sp-playlist {
  width: 100%;
  margin-top: 14px;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid rgba(30, 215, 96, .4);
  background: rgba(30, 215, 96, .08);
  color: #1ed760;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.sp-playlist:hover { background: rgba(30, 215, 96, .16); box-shadow: 0 0 20px rgba(30, 215, 96, .25); }

.sp-live-hint { margin-top: 10px; text-align: center; }

/* ── адаптив ──────────────────────────────────────────────── */

@media (max-width: 860px) {
  .about-body { grid-template-columns: 1fr; }
  .step { grid-template-columns: 64px 1fr; }
  .step-bar { grid-column: 1 / -1; }
  .prop-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .mb-nav { display: none; }
  .mb-status span { display: none; }
  #menubar { padding: 0 14px; }

  #desktop {
    justify-content: flex-end;
    padding: 66px 16px 108px;
    gap: 4vh;
  }
  .hero-title { font-size: clamp(2rem, 11vw, 3rem); }
  .folders { gap: 4px; }
  .folder { min-width: 30%; }
  .desk-hint { display: none; }

  .app-window {
    top: 56px;
    width: calc(100vw - 16px);
    height: calc(100dvh - 148px); /* оставляем место доку */
    margin-left: calc(8px - 50vw);
  }
  .win-count { display: none; }
  .win-title {
    left: 92px;
    transform: none;
    max-width: calc(100% - 106px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .lights i, .light { width: 15px; height: 15px; }

  .dock-item { width: 40px; height: 40px; }

  #spotify-mini { right: 2.5vw; left: 2.5vw; bottom: 84px; }
  .sp-card { width: 95vw; max-width: none; }
  .sp-fab { right: 0; }
}

/* ── ограничение движения ─────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .rise { opacity: 1; transform: none; filter: none; }
  .app-window { transition-duration: .01ms; }
}
