:root {
  color-scheme: dark;

  /* Палитра onex01.ru: почти чёрный + медь, циан, фиолет.
     Значения взяты из их :root один-в-один (--bg/--cu/--cy/--vi/--tx/--dim/--ln). */
  --bg: #07080c;
  --bg-card: #0e0f14;
  --bg-soft: #14151b;
  --bg-glow-1: #0a0b11;
  --bg-glow-2: #090a10;

  --ink-rgb: 236, 234, 245;
  --text: #eceaf5;
  --muted: #8d8aa8;

  --accent: #ffb15c;
  --accent-rgb: 255, 177, 92;
  --accent-hover: #ffc484;
  --on-accent: #1a1005;
  /* второй акцент — циан, как у них --cy */
  --accent-2: #52e3ff;
  --accent-2-rgb: 82, 227, 255;

  /* --ln у onex01: rgba(255,255,255,.12) */
  --line: rgba(255, 255, 255, .12);
  --line-hover: rgba(82, 227, 255, .50);
  /* Границы настоящих контролов: 3:1 к карточке */
  --line-control: #62636f;

  /* их навигационная плашка */
  --nav-bg: rgba(12, 13, 20, .78);
  --nav-chip-bg: rgba(20, 21, 28, .82);

  /* активное состояние — цианом, как у них интерактив */
  --ok: #52e3ff;
  --ok-rgb: 82, 227, 255;

  --record-a: #0b0c11;
  --record-b: #16171d;
  --record-shadow: 0 30px 100px rgba(0, 0, 0, .55);

  --elev-1: inset 0 1px 0 rgba(255, 255, 255, .04), 0 12px 40px rgba(0, 0, 0, .45);
  --elev-2: inset 0 1px 0 rgba(255, 255, 255, .05), 0 30px 100px rgba(0, 0, 0, .55);
  --ring: 0 0 0 1px rgba(var(--accent-rgb), .25);

  --glow: 0 0 18px rgba(var(--accent-rgb), .30);
  --glow-strong: 0 0 26px rgba(var(--accent-rgb), .45);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  min-height: 100%;
  padding-top: 80px;
  background: radial-gradient(ellipse at 15% 10%, var(--bg-glow-1) 0%, transparent 50%), radial-gradient(ellipse at 85% 90%, var(--bg-glow-2) 0%, transparent 45%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* clip, а не hidden: hidden делает body отдельным скролл-контейнером
     и на телефоне перехватывает touch-скролл. hidden оставлен фолбэком. */
  overflow-x: hidden;
  overflow-x: clip;
  /* clip и по вертикали: иначе translate у ещё не появившихся блоков
     раздувает scrollHeight на высоту сдвига, и якорный переход в конце
     дёргается назад. clip (в отличие от hidden) не создаёт скролл-контейнер
     и не ломает touch-скролл. */
  overflow-y: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ===== НАВИГАЦИЯ ===== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: var(--nav-bg);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.main-nav.hidden {
  transform: translateY(-100%);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.3s ease;
}
.nav-logo:hover { transform: scale(1.03); }
.nav-logo .logo-m {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--text);
  transition: text-shadow 0.3s ease;
}
.nav-logo .logo-m:hover { text-shadow: var(--glow-strong); }
.nav-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo .logo-text b {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  transition: text-shadow 0.3s ease;
}
.nav-logo:hover .logo-text b { text-shadow: var(--glow); }
.nav-logo .logo-text small {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-link {
  font-family: "Unbounded", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s, text-shadow 0.3s;
  white-space: nowrap;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-link:hover {
  color: var(--text);
  text-shadow: var(--glow);
}
.nav-link:hover::after {
  width: 100%;
}

/* ===== КНОПКА ЯЗЫКА (ВНУТРИ НАВИГАЦИИ) ===== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--nav-chip-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "Unbounded", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.lang-switch:hover {
  border-color: var(--line-hover);
  color: var(--text);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.25);
  transform: scale(1.05);
}
.lang-current { color: var(--text); font-weight: 700; }
.lang-divider { opacity: .4; margin: 0 2px; }
.lang-alt { opacity: .6; transition: opacity 0.3s; }
.lang-switch:hover .lang-alt { opacity: 1; }

#gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--bg);
  width: 100%; height: 100%;
  transition: opacity 0.8s ease, visibility 0.8s;
}
#gate.gone { opacity: 0; visibility: hidden; pointer-events: none; }
#gate .gate-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  animation: breathe 2.4s ease-in-out infinite;
}
#gate .gate-inner .m { display: block; }
#gate .gate-inner .m {
  font-family: "Unbounded", sans-serif;
  font-size: 3rem; font-weight: 700;
  margin-bottom: 8px;
  text-shadow: var(--glow);
}
#gate .gate-inner span {
  font-family: "Unbounded", sans-serif;
  font-weight: 500; font-size: clamp(1rem, 3vw, 1.2rem);
  letter-spacing: .04em; color: var(--muted);
}
@keyframes breathe { 0%,100% { opacity: .4 } 50% { opacity: 1 } }

.hero {
  max-width: 1100px; margin: 0 auto;
  padding: 40px 40px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  position: relative; z-index: 2;
}
.hero-left .section-label {
  display: flex; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .2em;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 32px;
}
.profile-line {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}
.profile-line:hover { transform: translateX(4px); }
.profile-avatar-sm {
  width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; background: var(--bg-soft);
  transition: transform 0.3s ease;
}
.profile-line:hover .profile-avatar-sm { transform: scale(1.1); }
.profile-avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.profile-line .info { display: flex; flex-direction: column; line-height: 1.2; }
.profile-line .info small { font-size: .7rem; color: var(--muted); }
.profile-line .info b {
  font-family: "UnifrakturMaguntia", cursive;
  font-size: 1.1rem; font-weight: 400;
  transition: text-shadow 0.3s ease;
}
.profile-line:hover .info b { text-shadow: var(--glow); }

.gothic-title {
  font-family: "UnifrakturMaguntia", cursive;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 32px;
  color: var(--text);
  text-shadow: none;
  position: relative;
  transition: text-shadow 0.4s ease, transform 0.4s ease;
  cursor: default;
  white-space: nowrap;
  max-width: 100%;
  padding-right: 20px;
}
.gothic-title:hover {
  text-shadow: none;
  transform: scale(1.02);
}
.gothic-title::after {
  content: '';
  display: block;
  width: 60px; height: 2px;
  background: var(--muted);
  margin-top: 16px;
  opacity: .4;
  transition: width 0.4s ease, opacity 0.4s ease;
}
.gothic-title:hover::after { width: 100px; opacity: .7; }

.hero-heading {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 1.3;
  margin-bottom: 20px;
  transition: text-shadow 0.3s ease;
}
.hero-heading:hover { text-shadow: var(--glow); }
.hero-heading span { display: block; color: var(--muted); font-weight: 500; }
.hero-bio { color: var(--muted); font-size: .95rem; max-width: 42ch; margin-bottom: 28px; line-height: 1.7; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag {
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  cursor: default;
}
.tag:hover {
  border-color: var(--line-hover);
  color: var(--text);
  box-shadow: 0 2px 10px rgba(var(--accent-rgb), .16);
  text-shadow: none;
  transform: scale(1.05);
}

.vibe-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  margin-bottom: 20px;
  width: fit-content;
  max-width: 100%;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .12), rgba(var(--accent-rgb), .04));
  border: 1px solid rgba(var(--accent-rgb), .25);
  border-radius: 999px;
  color: var(--text);
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: .92rem;
  letter-spacing: .02em;
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.vibe-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .25), rgba(var(--accent-rgb), .08));
  opacity: 0;
  transition: opacity 0.35s ease;
}
.vibe-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), .4), 0 0 48px rgba(var(--accent-rgb), .2), inset 0 0 20px rgba(var(--accent-rgb), .08);
  transform: translateY(-2px) scale(1.02);
}
.vibe-btn:hover::before { opacity: 1; }
.vibe-btn:hover .vibe-icon { transform: scale(1.15) rotate(-8deg); filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), .8)); }
.vibe-btn:hover .vibe-arrow { transform: translateX(4px); opacity: 1; }
.vibe-btn .vibe-icon, .vibe-btn .vibe-text, .vibe-btn .vibe-arrow { position: relative; z-index: 1; }
.vibe-btn .vibe-icon { width: 20px; height: 20px; transition: transform 0.35s ease, filter 0.35s ease; }
.vibe-btn .vibe-arrow { width: 18px; height: 18px; opacity: .6; transition: transform 0.35s ease, opacity 0.35s ease; }

body.playing .vibe-btn {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), .2), rgba(var(--accent-rgb), .08));
  box-shadow: 0 0 20px rgba(var(--accent-rgb), .3);
}
body.playing .vibe-btn .vibe-icon { animation: vibePulse 1.6s ease-in-out infinite; }
@keyframes vibePulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(var(--accent-rgb), .6)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 1)); }
}

.player-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.player-card:hover {
  border-color: var(--line-hover);
  box-shadow: 0 0 40px rgba(var(--accent-rgb), .1);
  transform: translateY(-2px);
}
.player-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 30%, rgba(var(--accent-rgb),.04) 0%, transparent 50%);
  pointer-events: none;
}
.player-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; position: relative; z-index: 1; }
.player-header .label {
  display: flex; align-items: center; gap: 8px;
  font-size: .72rem; letter-spacing: .15em;
  color: var(--muted); text-transform: uppercase;
  transition: color 0.3s, text-shadow 0.3s;
}
.player-header:hover .label { color: var(--text); text-shadow: var(--glow); }
.player-header .label svg { width: 16px; height: 16px; }
.player-header .status { font-size: .75rem; color: var(--muted); display: flex; align-items: center; gap: 6px; transition: color 0.3s; }
.player-header .status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); transition: background 0.3s, box-shadow 0.3s; }
body.playing .player-header .status .dot {
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: dotPulse 1.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 4px var(--ok); }
  50% { box-shadow: 0 0 12px var(--ok), 0 0 20px rgba(var(--ok-rgb), .4); }
}
body.playing .player-header .status { color: var(--accent); text-shadow: none; }

.vinyl-wrap { position: relative; width: 100%; aspect-ratio: 1; max-width: 320px; margin: 0 auto 20px; display: grid; place-items: center; }
.vinyl {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--record-a) 0%, var(--record-a) 18%, var(--record-b) 18.5%, var(--record-a) 19%, var(--record-b) 22%, var(--record-a) 22.5%, var(--record-b) 26%, var(--record-a) 26.5%, var(--record-b) 30%, var(--record-a) 30.5%, var(--record-b) 34%, var(--record-a) 34.5%, var(--record-b) 38%, var(--record-a) 38.5%, var(--record-b) 42%, var(--record-a) 42.5%, var(--record-b) 46%, var(--record-a) 46.5%, var(--record-b) 50%, var(--record-a) 50.5%, var(--record-b) 54%, var(--record-a) 54.5%, var(--record-b) 58%, var(--record-a) 58.5%, var(--record-b) 62%, var(--record-a) 62.5%, var(--record-b) 66%, var(--record-a) 66.5%, var(--record-b) 70%, var(--record-a) 70.5%, var(--record-b) 74%, var(--record-a) 74.5%, var(--record-b) 78%, var(--record-a) 78.5%, var(--record-b) 82%, var(--record-a) 82.5%, var(--record-b) 86%, var(--record-a) 86.5%, var(--record-b) 90%, var(--record-a) 90.5%, var(--record-b) 94%, var(--record-a) 94.5%, var(--record-a) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), var(--record-shadow);
  animation: spin 8s linear infinite;
  animation-play-state: paused;
  position: relative;
}
body.playing .vinyl { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg) } }
.vinyl-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 28%; height: 28%; border-radius: 50%; overflow: hidden; background: var(--bg-soft); border: 2px solid rgba(255,255,255,.05); }
.vinyl-center img { width: 100%; height: 100%; object-fit: cover; }
.vinyl-hole { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 8px; height: 8px; border-radius: 50%; background: var(--bg); z-index: 2; }

.sticker {
  position: absolute; bottom: 10%; right: 5%;
  background: var(--accent); color: var(--on-accent);
  padding: 8px 14px; border-radius: 6px;
  font-family: "Unbounded", sans-serif; font-weight: 700; font-size: .85rem;
  transform: rotate(-8deg);
  box-shadow: 0 4px 20px rgba(var(--accent-rgb),.3);
  z-index: 3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sticker:hover { transform: rotate(-8deg) scale(1.05); box-shadow: 0 4px 28px rgba(var(--accent-rgb),.5); }
.sticker small { display: block; font-size: .6rem; font-weight: 500; margin-bottom: 2px; }

.side-label, .now-playing-label {
  text-align: center; font-size: .75rem; letter-spacing: .14em;
  color: var(--muted); text-transform: uppercase;
  margin-bottom: 20px; transition: color 0.3s, text-shadow 0.3s;
}
.now-playing-label { margin-bottom: 8px; }
.side-label:hover, .now-playing-label:hover { color: var(--text); text-shadow: var(--glow); }

.track-info { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.track-info .name { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 1.5rem; transition: text-shadow 0.3s ease; }
.track-info .name:hover { text-shadow: var(--glow-strong); }
.track-info .artist { font-size: .85rem; color: var(--muted); margin-top: 2px; transition: color 0.3s; }
.track-info:hover .artist { color: var(--text); }

.eq-bars { display: flex; align-items: flex-end; gap: 3px; height: 24px; }
.eq-bars span { width: 3px; background: var(--muted); border-radius: 2px; animation: eq 1s ease-in-out infinite; animation-play-state: paused; }
body.playing .eq-bars span { animation-play-state: running; }
.eq-bars span:nth-child(1) { height: 8px; animation-delay: 0s; }
.eq-bars span:nth-child(2) { height: 16px; animation-delay: .15s; }
.eq-bars span:nth-child(3) { height: 10px; animation-delay: .3s; }
.eq-bars span:nth-child(4) { height: 20px; animation-delay: .1s; }
.eq-bars span:nth-child(5) { height: 6px; animation-delay: .25s; }
@keyframes eq { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }

.progress-wrap { margin-bottom: 16px; }
.progress-bar { width: 100%; height: 6px; background: var(--line-control); border-radius: 3px; cursor: pointer; position: relative; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--accent); border-radius: 3px; transition: width 0.1s linear; box-shadow: 0 0 8px rgba(var(--accent-rgb), .4); }
.progress-times { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }

.controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; }
.ctrl-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-control); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.ctrl-btn:hover { border-color: var(--line-hover); background: var(--bg-soft); box-shadow: 0 0 16px rgba(var(--accent-rgb), .2); transform: scale(1.1); }
.ctrl-btn svg { width: 16px; height: 16px; fill: var(--text); }
.ctrl-btn.play-btn { width: 52px; height: 52px; background: var(--accent); border-color: var(--accent); }
.ctrl-btn.play-btn svg { fill: var(--on-accent); width: 20px; height: 20px; }
.ctrl-btn.play-btn:hover { background: var(--accent-hover); box-shadow: 0 0 24px rgba(var(--accent-rgb), .5); }

.volume-wrap { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.volume-wrap svg { width: 18px; height: 18px; fill: var(--muted); transition: fill 0.3s; flex-shrink: 0; }
.volume-wrap:hover svg { fill: var(--text); }
input[type=range] {
  -webkit-appearance: none; appearance: none;
  /* Хват 24px по высоте (WCAG 2.5.8), а видимая дорожка остаётся 4px.
     background-color обязателен: без него браузер рисует свою серую плашку. */
  width: 120px; height: 24px;
  background-color: transparent;
  background-image: linear-gradient(to right, var(--accent) var(--vol, 50%), var(--line-control) var(--vol, 50%));
  background-repeat: no-repeat;
  background-size: 100% 4px;
  background-position: center;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}
input[type=range]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
input[type=range]::-moz-range-track { background: transparent; height: 4px; }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 14px; height: 14px;
  border-radius: 50%; background: var(--accent); cursor: pointer;
  box-shadow: 0 0 8px rgba(var(--accent-rgb), .6); transition: transform 0.2s;
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.3); }
input[type=range]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
  cursor: pointer; border: 0; box-shadow: 0 0 8px rgba(var(--accent-rgb), .6);
}
.player-note { text-align: center; font-size: .78rem; color: var(--muted); }

/* ===== СЕКЦИЯ ДЕВАЙСОВ ===== */
.devices-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
  position: relative;
  z-index: 2;
}
.devices-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.devices-header h2 {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  transition: text-shadow 0.3s ease;
}
.devices-header h2:hover { text-shadow: var(--glow-strong); }

.devices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.device-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
  overflow: visible;
}
.device-card:hover {
  border-color: var(--line-hover);
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.1);
  transform: translateY(-2px);
}
.device-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.device-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), .05));
  border: 1px solid rgba(var(--accent-rgb), .22);
  display: grid;
  place-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.device-icon svg { width: 24px; height: 24px; stroke: var(--accent-hover); }
.device-card:hover .device-icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3);
}
.device-title-wrap h3 {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.device-title-wrap p { font-size: 0.82rem; color: var(--muted); }

.device-specs { display: flex; flex-direction: column; gap: 0; }
.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  border-bottom: 1px dotted var(--line);
  border-radius: 8px;
  transition: background 0.3s ease;
}
.spec-row:last-child { border-bottom: none; }
.spec-row:hover { background: rgba(var(--accent-rgb), 0.05); }
.spec-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}
.spec-row:hover .spec-label { color: var(--text); }
.spec-value {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  text-align: right;
  transition: text-shadow 0.4s ease, color 0.3s ease;
}
.spec-row:hover .spec-value {
  text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.25), 0 0 24px rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
}

/* ===== КОНТАКТЫ ===== */
.contacts-section { max-width: 1100px; margin: 0 auto; padding: 0 40px 60px; position: relative; z-index: 2; }
.contacts-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.contacts-header h2 {
  font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 1.4rem;
  display: flex; align-items: center; gap: 10px; transition: text-shadow 0.3s ease;
}
.contacts-header h2:hover { text-shadow: var(--glow-strong); }
.contacts-header .sub {
  font-size: 0.85rem; letter-spacing: .1em; color: var(--muted);
  transition: color 0.3s, text-shadow 0.3s;
}
.contacts-header:hover .sub { color: var(--text); text-shadow: var(--glow); }

.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.contact-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 16px; cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.contact-card:hover {
  border-color: var(--line-hover);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 30px rgba(var(--accent-rgb), .15);
}
.contact-left { display: flex; align-items: center; gap: 16px; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid transparent;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.contact-card:hover .contact-icon { transform: scale(1.1); }
/* Брендовые заливки заменены на палитру onex01: медь, циан, фиолет.
   Иконки различимы по цвету, но не выпадают из общей цветопередачи. */
.contact-icon.discord {
  background: rgba(255, 177, 92, .12);
  border-color: rgba(255, 177, 92, .34);
}
.contact-icon.discord svg { fill: var(--accent); }
.contact-card:hover .contact-icon.discord {
  background: rgba(255, 177, 92, .18);
  border-color: rgba(255, 177, 92, .55);
}
.contact-icon.telegram {
  background: rgba(82, 227, 255, .10);
  border-color: rgba(82, 227, 255, .32);
}
.contact-icon.telegram svg { fill: var(--accent-2); }
.contact-card:hover .contact-icon.telegram {
  background: rgba(82, 227, 255, .16);
  border-color: rgba(82, 227, 255, .52);
}
.contact-icon.steam {
  background: rgba(167, 139, 250, .12);
  border-color: rgba(167, 139, 250, .34);
}
.contact-icon.steam svg { fill: #a78bfa; }
.contact-card:hover .contact-icon.steam {
  background: rgba(167, 139, 250, .18);
  border-color: rgba(167, 139, 250, .55);
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-info b {
  display: block; font-family: "Unbounded", sans-serif; font-weight: 600;
  font-size: 1rem; margin-bottom: 2px; transition: text-shadow 0.3s;
}
.contact-card:hover .contact-info b { text-shadow: var(--glow); }
.contact-info small { font-size: .82rem; color: var(--muted); }
.contact-action { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); transition: color 0.3s; }
.contact-card:hover .contact-action { color: var(--text); }
.contact-action svg { width: 14px; height: 14px; fill: var(--muted); }

.contacts-note { text-align: center; font-size: .82rem; color: var(--muted); }

footer {
  max-width: 1100px; margin: 0 auto; padding: 24px 40px 40px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted);
  position: relative; z-index: 2;
}
footer a { display: flex; align-items: center; gap: 6px; min-height: 24px; transition: color 0.3s, text-shadow 0.3s, transform 0.3s; }
footer a:hover { color: var(--text); text-shadow: var(--glow); transform: translateY(-2px); }
footer svg { width: 14px; height: 14px; }

/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
  .main-nav { padding: 12px 20px; }
  .nav-links { gap: 16px; }
  .nav-link { font-size: 0.7rem; }
  .nav-logo .logo-m { font-size: 1.5rem; }
  .lang-switch { padding: 6px 10px; font-size: 0.65rem; }
  .devices-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 700px) {
  body { padding-top: calc(var(--nav-h, 138px) + 24px); }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 16px;
    gap: 8px;
  }

  .nav-logo {
    width: 100%;
    justify-content: center;
    margin-bottom: 4px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .nav-link { font-size: 0.75rem; }
  .lang-switch { padding: 7px 12px; font-size: 0.7rem; }

  .hero { grid-template-columns: 1fr; gap: 40px; padding: 24px 20px 40px; }
  header { padding: 20px; }

  .devices-section { padding: 40px 20px; }
  .devices-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .device-card { padding: 20px; }
  .device-card-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .spec-row { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 0; }
  .spec-value { text-align: left; font-size: 0.85rem; }

  .spec-row:hover { background: rgba(var(--accent-rgb), 0.03); }
  .spec-row:hover .spec-value {
    text-shadow: 0 0 6px rgba(var(--accent-rgb), 0.2);
    color: var(--text);
  }

  .contacts-section { padding: 0 20px 40px; }
  .contacts-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .contacts-header .sub {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .contacts-grid { grid-template-columns: 1fr; gap: 12px; }
  .contact-card { padding: 16px; }
  .contact-info b { font-size: 0.95rem; }
  .contact-action { font-size: 0.75rem; }

  footer { padding: 20px; flex-wrap: wrap; gap: 12px; justify-content: center; }
  .gothic-title { font-size: clamp(2rem, 10vw, 3rem); }
  .vibe-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  /* Всё, что крутится и пульсирует, включая состояние play */
  .vinyl, .eq-bars span, #gate .gate-inner,
  .player-header .status .dot, .vibe-btn .vibe-icon,
  body.playing .player-header .status .dot,
  body.playing .vibe-btn .vibe-icon { animation: none !important; }
  .contact-card, .tag, .ctrl-btn, .logo, .vibe-btn { transition: none !important; }
}

.nav-link, .lang-switch, .contact-card, .ctrl-btn, .vibe-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
/* ===== ДОСТУПНОСТЬ: ПЕРЕХОД К СОДЕРЖИМОМУ ===== */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 10px;
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: .85rem;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Якоря не должны заезжать под фиксированную навигацию */
section[id], main[id] { scroll-margin-top: calc(var(--nav-h, 80px) + 20px); }

/* ===== КОНТАКТНАЯ КАРТОЧКА КАК КНОПКА ===== */
button.contact-card { width: 100%; text-align: left; font: inherit; color: inherit; }
.contact-left { display: flex; align-items: center; gap: 16px; text-align: left; }
.contact-info { display: flex; flex-direction: column; }

/* ===== ПРОГРЕСС-БАР: ФОКУС И ХВАТ ===== */
.progress-bar { min-height: 24px; display: flex; align-items: center; padding-block: 9px; background-clip: content-box; }
.progress-bar::after { content: ''; }
.progress-bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.progress-fill { height: 6px; }

/* ===== СЕКЦИЯ ПРОЕКТОВ ===== */
.projects-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
  position: relative;
  z-index: 2;
}
.projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.projects-header h2 {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  transition: text-shadow 0.3s ease;
}
.projects-header h2:hover { text-shadow: var(--glow-strong); }
.projects-header .sub {
  font-size: 0.85rem;
  letter-spacing: .1em;
  color: var(--muted);
  transition: color 0.3s, text-shadow 0.3s;
}
.projects-header:hover .sub { color: var(--text); text-shadow: var(--glow); }

.project-card {
  position: relative;
  background:
    radial-gradient(circle at 12% 0%, rgba(var(--accent-rgb), .10), transparent 55%),
    var(--bg-card);
  border: 1px solid rgba(var(--accent-rgb), .18);
  border-radius: 22px;
  padding: 28px;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.project-card:hover {
  border-color: var(--line-hover);
  box-shadow: 0 0 44px rgba(var(--accent-rgb), .12);
  transform: translateY(-2px);
}
.project-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.project-badge {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), .05));
  border: 1px solid rgba(var(--accent-rgb), .25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.project-badge svg { width: 26px; height: 26px; stroke: var(--accent); }
.project-card:hover .project-badge {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), .3);
}
.project-head { flex: 1 1 auto; min-width: 0; }
.project-name {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.2;
  transition: text-shadow 0.3s ease;
}
.project-card:hover .project-name { text-shadow: var(--glow); }
.project-tagline { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.project-version {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "Unbounded", sans-serif;
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.project-desc {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 20px;
}
.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 24px;
}
.project-features li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--muted);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.project-card:hover .project-features li { color: var(--text); border-color: rgba(var(--accent-rgb), .2); }
.project-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.project-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: .88rem;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.project-download:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 26px rgba(var(--accent-rgb), .5);
  transform: translateY(-2px);
}
.project-download svg { width: 17px; height: 17px; flex: 0 0 17px; }
.project-meta {
  display: inline-flex;
  align-items: center;
  font-size: .78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}


@media (max-width: 700px) {
  .projects-section { padding: 40px 20px; }
  .projects-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .project-card { padding: 20px; }
  .project-top { position: relative; padding-right: 84px; }
  .project-version { position: absolute; top: 2px; right: 0; }
  .project-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .project-download { width: 100%; }
  .project-meta { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .project-card, .project-card:hover, .project-badge, .project-download { transition: none !important; transform: none !important; }
  .skip-link { transition: none !important; }
}
/* ===== НАЖАТИЕ И ТАЧ-УСТРОЙСТВА (better-ui) ===== */
.vibe-btn, .project-download, .ctrl-btn, .contact-card, .social-card, .lang-switch, .project-ghost {
  transition-property: color, background-color, border-color, box-shadow, transform, scale;
  transition-duration: 0.25s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.vibe-btn:active, .project-download:active, .ctrl-btn:active, .contact-card:active, .lang-switch:active {
  scale: 0.96;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

/* На тач-экранах :hover залипает после тапа — отключаем «подъёмы» */
@media (hover: none) {
  .contact-card:hover,
  .tag:hover,
  .ctrl-btn:hover,
  .device-card:hover,
  .project-card:hover,
  .player-card:hover,
  .vibe-btn:hover,
  .nav-logo:hover,
  .profile-line:hover,
  .project-download:hover,
  .project-ghost:hover {
    transform: none;
    box-shadow: none;
  }
  .tag:hover { text-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vibe-btn:active, .project-download:active, .ctrl-btn:active, .contact-card:active, .lang-switch:active { scale: 1; }
}

/* Контур у контентных картинок (better-ui): 1px, без тона акцента */
.profile-avatar-sm img,
.vinyl-center img,
.avatar img {
  outline: 1px solid rgba(var(--ink-rgb), .10);
  outline-offset: -1px;
}
/* ==========================================================================
   REDESIGN — "tidal editorial"
   Слой поверх базовых стилей: воздушная сетка, номера секций, моно-подписи,
   карточки-панели. Всё через токены, чтобы тема менялась в одном месте.
   ========================================================================== */

:root {
  --container: 1160px;
  --radius-card: 18px;
  --radius-pill: 999px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --rule: 1px solid var(--line);
  --display-tracking: -0.015em;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Высота шапки приходит из JS (--nav-h), на мобиле она выше 104px */
  scroll-padding-block-start: calc(var(--nav-h, 80px) + 20px);
}

body { padding-top: 96px; }

::selection {
  background: rgba(var(--accent-rgb), .22);
  color: var(--text);
}

/* ---------- Навигация: плавающая капсула ---------- */
.main-nav {
  top: 12px;
  left: 16px;
  right: 16px;
  z-index: 40;
  padding: 10px 18px;
  border: var(--rule);
  border-radius: var(--radius-pill);
  background: var(--nav-bg);
  box-shadow: var(--elev-1);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.main-nav.hidden { transform: translateY(-160%); }

.nav-link {
  font-size: .71rem;
  letter-spacing: .1em;
  padding-block: 4px;
}
.nav-link::after { bottom: -2px; height: 1.5px; }

.lang-switch { min-height: 34px; }

/* ---------- Контейнеры и ритм ---------- */
.hero,
.devices-section,
.projects-section,
.contacts-section,
footer {
  max-width: var(--container);
}

.hero {
  padding: 28px 40px 72px;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 64px);
}

.devices-section,
.projects-section { padding-block: 72px; }
.contacts-section { padding: 0 40px 72px; }
footer { padding: 24px 40px 40px; }

/* ---------- Заголовки секций ---------- */
.devices-header,
.projects-header,
.contacts-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: var(--rule);
}

.devices-header h2,
.projects-header h2,
.contacts-header h2 {
  /* Держим выше карточного h3, но без перебора: 36px давили карточки */
  font-size: clamp(1.5rem, 2.4vw, 1.8rem);
  line-height: 1.15;
  letter-spacing: var(--display-tracking);
  text-wrap: balance;
}

.devices-header .sub,
.projects-header .sub,
.contacts-header .sub {
  margin-inline-start: auto;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--muted);
}

/* ---------- Хиро: типографика и воздух ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .68rem;
  letter-spacing: .18em;
  margin-bottom: 28px;
}

.gothic-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 26px;
  padding-right: 0;
}

.hero-heading {
  font-size: clamp(1.4rem, 3.2vw, 1.95rem);
  line-height: 1.28;
  letter-spacing: var(--display-tracking);
  margin-bottom: 18px;
  text-wrap: balance;
}

.hero-bio {
  font-size: 1rem;
  line-height: 1.65;
  max-width: 56ch;
  margin-bottom: 26px;
  text-wrap: pretty;
}

.tags { gap: 10px; margin-bottom: 26px; }
.tag { padding: 7px 15px; font-size: .8rem; }
.vibe-btn { min-height: 46px; padding: 0 24px; }

/* ---------- Карточки ---------- */
.player-card,
.device-card,
.project-card,
.contact-card {
  border: var(--rule);
  border-radius: var(--radius-card);
  background: var(--bg-card);
  box-shadow: var(--elev-1);
}

.player-card { padding: 24px; }
.player-card:hover { box-shadow: var(--elev-2); }

.devices-grid,
.contacts-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.device-card { padding: 24px; }

.device-specs { margin: 0; }
.spec-row {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  border-radius: 0;
}
.spec-row:last-child { border-bottom: none; }
.spec-label { font-size: .8rem; letter-spacing: .04em; }
.spec-value { font-size: .88rem; font-variant-numeric: tabular-nums; }

/* ---------- Проект: акцентная панель ---------- */
.project-card {
  padding: clamp(20px, 3vw, 32px);
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--accent-rgb), .12), transparent 58%),
    var(--bg-card);
  border-color: rgba(var(--accent-rgb), .28);
}
.project-card:hover {
  border-color: rgba(var(--accent-rgb), .45);
  /* box-shadow не трогаем: им управляет анимация дыхания */
  transform: translateY(-2px);
}
.project-name {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  letter-spacing: var(--display-tracking);
  line-height: 1.15;
}
.project-desc {
  font-size: .97rem;
  line-height: 1.65;
  max-width: 60ch;
  text-wrap: pretty;
}
.project-features li {
  background: rgba(var(--accent-rgb), .07);
  border-color: rgba(var(--accent-rgb), .18);
  padding: 7px 14px;
}
.project-actions { gap: 14px; align-items: center; }
.project-download { min-height: 46px; padding: 0 26px; }
.project-meta {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Контакты ---------- */
.contact-card { padding: 20px 22px; min-height: 76px; }
.contact-info b { font-size: .98rem; letter-spacing: -0.005em; }
.contact-info small { font-size: .8rem; }
.contact-action { font-size: .76rem; }

/* ---------- Футер ---------- */
footer { font-size: .76rem; letter-spacing: .02em; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .main-nav { padding: 10px 14px; }
  body { padding-top: 92px; }
  .hero { padding: 20px 24px 56px; gap: 40px; }
  .devices-section, .projects-section { padding-block: 56px; }
  .contacts-section { padding: 0 24px 56px; }
  footer { padding: 20px 24px 32px; }
}

@media (max-width: 700px) {
  .main-nav {
    top: 8px;
    left: 10px;
    right: 10px;
    border-radius: 22px;
    padding: 10px 12px;
    gap: 6px;
  }
  body { padding-top: calc(var(--nav-h, 132px) + 20px); }
  .hero { padding: 16px 18px 48px; }
  .devices-section, .projects-section { padding-block: 48px; padding-inline: 18px; }
  .contacts-section { padding: 0 18px 48px; }
  .devices-header, .projects-header, .contacts-header { flex-wrap: wrap; row-gap: 6px; }
  .devices-header .sub, .projects-header .sub, .contacts-header .sub { margin-inline-start: 0; width: 100%; }
  .gothic-title { font-size: clamp(2.1rem, 11vw, 3rem); }
  .player-card { padding: 20px; }
  .device-card { padding: 20px; }
  .contact-card { padding: 16px; }
  footer { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .main-nav.hidden { transform: translateY(-160%); }
}

/* --- правки после первого рендера редизайна --- */
.devices-header,
.projects-header,
.contacts-header {
  justify-content: flex-start;
}
.projects-header .sub,
.contacts-header .sub { margin-inline-start: auto; }

/* заголовок-подзаголовок в хиро: первая строка — чернила, вторая — тише */
.hero-heading { color: var(--text); }
.hero-heading > span:first-child { color: var(--text); font-weight: 600; }
.hero-heading > span:last-child { color: var(--muted); font-weight: 500; }

/* чуть плотнее вертикальный ритм */
.hero { padding-bottom: 56px; }
.devices-section, .projects-section { padding-block: 64px; }

/* --- мобильная раскладка редизайна (перебиваем двуколоночность слоя) --- */
@media (max-width: 700px) {
  /* minmax(0, 1fr): иначе трек растягивает nowrap-кнопка и колонка
     вылезает за экран на 320px */
  .hero { grid-template-columns: minmax(0, 1fr); }
  .vibe-btn { white-space: normal; text-align: center; }
  .devices-grid,
  .contacts-grid { grid-template-columns: minmax(0, 1fr); }
  .player-card { max-width: 520px; margin-inline: auto; }
  .hero-heading { font-size: clamp(1.3rem, 6.4vw, 1.7rem); }
  .gothic-title { font-size: clamp(1.9rem, 10.5vw, 2.8rem); white-space: normal; }
  .section-label { font-size: .64rem; letter-spacing: .14em; }
  .spec-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .spec-value { text-align: start; }
  .project-meta { justify-content: flex-start; }
}

/* Узкие экраны: пилюля версии уходит из абсолютного позиционирования,
   иначе она отбирает у названия проекта почти всю ширину */
@media (max-width: 430px) {
  .project-top { padding-right: 0; flex-wrap: wrap; row-gap: 10px; }
  .project-version { position: static; align-self: center; }
  .project-name { overflow-wrap: anywhere; }
}

@media (max-width: 360px) {
  .nav-links { gap: 8px; }
  .nav-link { font-size: .66rem; letter-spacing: .06em; }
}
/* --- палитра onex01: плоский почти чёрный фон --- */

/* У onex01 фон практически ровный (#07080c), цвет живёт в акцентах,
   а не в заливке. Поэтому никаких широких цветных пятен — только
   еле заметные тёплый и холодный подтоны по краям. */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 90% at 8% -10%, rgba(255, 177, 92, .05) 0%, rgba(255, 177, 92, 0) 62%),
    radial-gradient(110% 85% at 96% 108%, rgba(82, 227, 255, .045) 0%, rgba(82, 227, 255, 0) 66%),
    linear-gradient(180deg, #08090e 0%, #07080c 50%, #08090e 100%);
  background-attachment: scroll;
  background-repeat: no-repeat;
}

/* Тонкий шум поверх фона: убирает полосы на градиенте */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .03;
  mix-blend-mode: soft-light;
  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.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}

/* Панели: у onex01 это просто rgba(255,255,255,.03) поверх фона —
   без верхнего блика и без цветной заливки. */
.player-card,
.device-card,
.project-card,
.contact-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .02)),
    var(--bg-card);
  border-color: var(--line);
}

.project-card {
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--accent-rgb), .06), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .02)),
    var(--bg-card);
  border-color: rgba(var(--accent-rgb), .28);
}

.device-icon {
  background: linear-gradient(140deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), .04));
  border: 1px solid rgba(var(--accent-rgb), .30);
}
.device-icon svg { stroke: var(--accent); }

.project-features li {
  background: rgba(var(--accent-rgb), .08);
  border-color: rgba(var(--accent-rgb), .24);
}

.tag { background: rgba(255, 255, 255, .03); }
.tag:hover { background: rgba(255, 255, 255, .06); }

/* Здесь раньше висел белый градиент от светлой темы (rgba(255,255,255,.85)):
   он и давал белую полосу сверху каждой карточки контактов. Убран. */

.vinyl { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), var(--record-shadow); }
.sticker { box-shadow: 0 8px 22px rgba(var(--accent-rgb), .28); }

/* ===== СЛУЖЕБНОЕ ===== */

/* Текст только для скринридера (живые объявления, подписи) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   СДЕРЖАННЫЕ ЭФФЕКТЫ
   Текстовое свечение на зелёной теме даёт грязный ореол вокруг букв,
   поэтому подсветка — сменой цвета, а тени — нейтральные, не цветные.
   ========================================================================== */

.nav-link:hover,
.nav-logo:hover .logo-text b,
.profile-line:hover .info b,
.hero-heading:hover,
.player-header:hover .label,
.side-label:hover,
.now-playing-label:hover,
.contacts-header:hover .sub,
.projects-header:hover .sub,
.contact-card:hover .contact-info b,
footer a:hover,
.track-info .name:hover,
.devices-header h2:hover,
.projects-header h2:hover,
.contacts-header h2:hover,
.project-card:hover .project-name,
.nav-logo .logo-m:hover {
  text-shadow: none;
}

.lang-switch:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.vibe-btn:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, .40), inset 0 0 0 1px rgba(var(--accent-rgb), .18);
}

body.playing .vibe-btn {
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

.player-card:hover,
.device-card:hover,
.contact-card:hover,
.project-card:hover {
  box-shadow: var(--elev-2);
}

/* У акцентной карточки тень занята анимацией — ховер поднимает её и красит контур */
.project-card:hover {
  box-shadow: none;
}

.device-card:hover .device-icon,
.project-card:hover .project-badge {
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45);
}

.ctrl-btn:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.ctrl-btn.play-btn:hover,
.project-download:hover {
  box-shadow: 0 6px 18px rgba(var(--accent-rgb), .28);
}

.progress-fill {
  box-shadow: none;
}

.sticker {
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
}

/* ==========================================================================
   ПЕРЕХОДЫ — движение в духе onex01, но со своим характером
   Короткий отклик на ховер, мягкий выбег на появлении, терминальный курсор.
   Все кривые держатся в [0,1] — без перелётов за цель.
   ========================================================================== */

/* ---------- Терминальный курсор у заголовка ---------- */
/* Блэклеттер + каретка: контраст «готика против терминала».
   Чисто декоративный, поэтому aria-hidden и не влияет на текст. */
.gothic-title .caret {
  display: inline-block;
  width: 3px;
  height: .58em;
  margin-inline-start: .09em;
  translate: 0 .05em;
  border-radius: 1px;
  background: var(--accent);
  animation: caret 1.1s linear infinite;
}

@keyframes caret {
  0%, 49.9% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ---------- Экран входа: уходит в размытие, а не просто гаснет ---------- */
#gate {
  transition:
    opacity .45s cubic-bezier(.2, .8, .2, 1),
    visibility .45s,
    filter .45s cubic-bezier(.2, .8, .2, 1),
    scale .45s cubic-bezier(.2, .8, .2, 1);
}
#gate.gone {
  filter: blur(8px);
  scale: 1.02;
}

/* ---------- Play/pause: кросс-фейд вместо мгновенной подмены ---------- */
.ctrl-btn.play-btn { position: relative; }

.ctrl-btn.play-btn .pict {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  fill: var(--on-accent);
  transition:
    opacity .28s cubic-bezier(.2, 0, 0, 1),
    scale .28s cubic-bezier(.2, 0, 0, 1),
    filter .28s cubic-bezier(.2, 0, 0, 1);
}

.play-btn .pict-play { opacity: 1; scale: 1; filter: blur(0); }
.play-btn .pict-pause { opacity: 0; scale: .25; filter: blur(4px); }

body.playing .play-btn .pict-play { opacity: 0; scale: .25; filter: blur(4px); }
body.playing .play-btn .pict-pause { opacity: 1; scale: 1; filter: blur(0); }

/* ---------- Ховеры: быстрый отклик, цвет уходит в акцент ---------- */
@media (hover: hover) {
  .nav-link {
    transition: color .2s ease, text-shadow .2s ease;
  }
  .nav-link:hover { color: var(--accent); }

  .contact-card .contact-info b { transition: color .2s ease; }
  .contact-card:hover .contact-info b { color: var(--accent); }

  .contact-action { transition: color .2s ease; }
  .contact-card:hover .contact-action { color: var(--accent-2); }

  .tag {
    transition:
      color .2s ease,
      border-color .2s ease,
      background .2s ease,
      transform .2s ease;
  }

  .project-features li { transition: color .2s ease, border-color .2s ease; }
  .project-card:hover .project-features li {
    color: var(--text);
    border-color: rgba(var(--accent-rgb), .34);
  }

  .spec-row { transition: background .2s ease; }
  .spec-row:hover { background: rgba(var(--accent-rgb), .06); }

  .device-icon,
  .project-badge {
    transition: transform .2s cubic-bezier(.2, .8, .2, 1), border-color .2s ease;
  }
}

/* ---------- Уважение к настройке «меньше движения» ---------- */
@media (prefers-reduced-motion: reduce) {
  .gothic-title .caret { animation: none; opacity: 1; }

  #gate {
    transition: opacity .01s, visibility .01s;
  }
  #gate.gone { filter: none; scale: 1; }

  .ctrl-btn.play-btn .pict {
    transition: none;
    filter: none;
    scale: 1;
  }
  .play-btn .pict-play { opacity: 1; }
  .play-btn .pict-pause { opacity: 0; }
  body.playing .play-btn .pict-play { opacity: 0; }
  body.playing .play-btn .pict-pause { opacity: 1; }
}

/* ==========================================================================
   ДЫХАНИЕ — постоянное свечение акцентной панели (вариант «1»)
   Ведёт глаз к главному действию страницы — кнопке скачивания.
   Остальные панели остаются спокойными, чтобы не рябило.
   ========================================================================== */

/* Дышит только после того, как блок появился. Иначе это правило
   перебило бы анимацию вылета (fx-in) — она тоже висит на этом элементе. */
.project-card:not(.rv-pending):not(.rv-revealing) {
  animation: breathe-glow 4.2s ease-in-out infinite;
}

@keyframes breathe-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0), var(--elev-1);
  }
  50% {
    box-shadow: 0 0 30px 0 rgba(var(--accent-rgb), .20), var(--elev-1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card:not(.rv-pending):not(.rv-revealing) { animation: none; }
}

/* ==========================================================================
   ПЛЕЕР — РЕАЛЬНЫЙ АНАЛИЗАТОР (js/player.js)
   Только режим body.eq-live: высоту полосок ведёт WebAudio-анализатор,
   поэтому CSS-анимация из базового блока .eq-bars выключается.
   Без eq-live (WebAudio недоступен) работает базовая анимация.
   ========================================================================== */

.eq-bars span {
  /* Полоски растут вверх от нижнего края, а не от центра. */
  transform-origin: bottom center;
}

body.eq-live .eq-bars span {
  animation: none;
}