/* Meowsicat — Soft & Music. Палитра «Ночная студия», вёрстка «от телефона».
   Жёлтого нет нигде — ни в тексте, ни в свечении.
   Раскладки: портрет (всё в столбик), альбом (текст слева, картинка справа), большой экран (сцены от прокрутки).
   Низкий экран (телефон боком) — max-height: 520px: шапка не липнет, всё компактнее. */
:root {
  --bg: #070913;
  --bg-2: #0b0f22;
  --panel: #12172f;            /* поверхность карточек */
  --panel-2: #1a2042;
  --cyan: #3ee8ff;
  --pink: #ff4fd8;
  --violet: #9b6bff;
  --orange: #ff8a5c;           /* как ушки Мяузика — только кнопки и мелкие акценты */
  --text: #ffffff;
  --muted: #b9b4e0;            /* мягкий сиреневый для второстепенного текста */
  --line: rgba(160, 150, 255, .2);
  --line-2: rgba(160, 150, 255, .38);
  --font-neon: "Comfortaa", "Nunito", system-ui, sans-serif;   /* только неоновая вывеска */
  --font-head: "Rubik", "Nunito", system-ui, sans-serif;        /* Rubik Black — заголовки, кнопки, названия */
  --font-body: "Nunito", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 22px; --r-sm: 14px;
  --gut: clamp(16px, 5vw, 72px);
  /* поля страницы с учётом вырезов экрана (телефон боком) */
  --gl: calc(var(--gut) + env(safe-area-inset-left, 0px));
  --gr: calc(var(--gut) + env(safe-area-inset-right, 0px));
  --wrap: 1200px;
  --nav-h: 56px;
  --tab-h: 0px;                /* высота нижней панели: есть только на узких экранах */
  --top-h: var(--nav-h);       /* шапка + подменю: в пикселях пишет layout.js */
  /* сдвиг сцены от мыши, пишет main.js */
  --mx: 0; --my: 0;
  --paw-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cellipse cx='32' cy='42' rx='14' ry='12'/%3E%3Cellipse cx='14' cy='26' rx='6' ry='8'/%3E%3Cellipse cx='25' cy='16' rx='6' ry='8'/%3E%3Cellipse cx='39' cy='16' rx='6' ry='8'/%3E%3Cellipse cx='50' cy='26' rx='6' ry='8'/%3E%3C/svg%3E");
}
@media (min-width: 640px) { :root { --nav-h: 64px; } }
@media (max-width: 639.98px) { :root { --tab-h: calc(58px + env(safe-area-inset-bottom, 0px)); } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(16px, 15px + .25vw, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overflow-x: clip;
  padding-bottom: var(--tab-h);
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
[hidden] { display: none !important; }

/* цветные слова в заголовках — чёткий градиент без размытого свечения */
.neon--pink, .neon--cyan { -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.neon--pink { background-image: linear-gradient(100deg, #ff8fe6, #c79bff); }
.neon--cyan { background-image: linear-gradient(100deg, #86f1ff, #9fb4ff); }

/* ---------- Шапка ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gr) 0 var(--gl);
  background: rgba(7, 9, 19, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s, border-color .3s;
}
/* на главной шапка лежит поверх студии и проявляется при прокрутке */
[data-page="home"] .nav { position: fixed; left: 0; right: 0; }
[data-page="home"] .nav:not(.is-solid) { background: linear-gradient(rgba(7, 9, 19, .8), rgba(7, 9, 19, 0)); border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav__logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 900 20px var(--font-head); letter-spacing: .01em; white-space: nowrap; }
.nav__logo svg { width: 26px; height: 26px; fill: var(--pink); filter: drop-shadow(0 0 6px rgba(255, 79, 216, .7)); }
.nav__links { display: none; gap: 4px; margin-left: auto; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 700 15px var(--font-head); color: var(--muted); transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav__links a[aria-current="page"] { color: var(--text); background: rgba(155, 107, 255, .22); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav__lang {
  margin-left: auto; min-width: 44px; min-height: 36px; padding: 0 10px; border-radius: 10px; cursor: pointer;
  font: 500 13px var(--font-mono); color: var(--cyan); background: rgba(62, 232, 255, .08); border: 1px solid rgba(62, 232, 255, .5);
}
.nav__lang:hover { background: rgba(62, 232, 255, .16); }
@media (min-width: 640px) {
  .nav__links { display: flex; }
  .nav__lang { margin-left: 4px; }
}
@media (min-width: 640px) and (max-width: 760px) { .nav__links a { padding: 0 9px; font-size: 14px; } .nav__logo span { display: none; } }

/* подменю ветки «Академия звука»: об игре, рейтинг, Мурмолл */
.subnav {
  position: sticky; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); z-index: 40;
  padding: 8px var(--gr) 8px var(--gl);
  background: rgba(11, 15, 34, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.subnav__in { display: flex; gap: 4px; max-width: 460px; margin: 0 auto; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); }
.subnav a {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 8px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 700 14px var(--font-head); color: var(--muted); transition: color .2s, background .2s;
}
.subnav a:hover { color: var(--text); }
.subnav a[aria-current="page"] { color: #0b0f22; background: linear-gradient(100deg, #ff8fe6, #c79bff); }

/* нижняя панель — навигация под большой палец, только на узких экранах */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none;
  height: var(--tab-h); padding: 0 calc(4px + env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) calc(4px + env(safe-area-inset-left, 0px));
  background: rgba(9, 12, 26, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
}
.tabbar a {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; color: var(--muted); font: 800 10.5px/1.1 var(--font-body); letter-spacing: .01em;
}
.tabbar svg { width: 24px; height: 24px; padding: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabbar i { display: grid; place-items: center; width: 52px; height: 28px; border-radius: 999px; transition: background .2s; }
.tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabbar a[aria-current="page"] { color: var(--text); }
.tabbar a[aria-current="page"] i { background: rgba(155, 107, 255, .3); color: var(--cyan); }
@media (max-width: 639.98px) { .tabbar { display: flex; } }
@media (max-width: 359.98px) { .tabbar a { font-size: 9.5px; letter-spacing: 0; } .tabbar span { text-overflow: clip; } }
/* телефон боком: панель ниже, подписи в строку с иконкой */
@media (max-width: 639.98px) and (max-height: 520px) {
  :root { --tab-h: calc(44px + env(safe-area-inset-bottom, 0px)); }
  .tabbar a { flex-direction: row; gap: 6px; font-size: 12px; }
  .tabbar i { width: 30px; }
  .tabbar svg { width: 20px; height: 20px; }
}
/* низкий экран: шапка и подменю уезжают вместе со страницей, место — содержимому */
@media (max-height: 520px) {
  .nav, .subnav { position: relative; top: auto; }
  [data-page="home"] .nav { position: absolute; }
  html { scroll-padding-top: 12px; }
}

/* ---------- Общие блоки ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; }
.kicker { margin: 0 0 10px; font: 700 12.5px var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.section-title { margin: 0 0 10px; font: 900 clamp(30px, 6.2vw, 60px)/1.08 var(--font-head); letter-spacing: -.01em; text-wrap: balance; }
.section-lead { margin: 0 0 24px; color: var(--muted); max-width: 40em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 52px; padding: 8px 24px; border-radius: 16px; border: 0; cursor: pointer;
  font: 700 16px/1.2 var(--font-head); text-decoration: none; letter-spacing: .01em;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn--primary { background: linear-gradient(100deg, #ff9a68, #ff7a8f); color: #1a0c06; box-shadow: 0 8px 26px rgba(255, 122, 110, .32); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255, 122, 110, .48); }
.btn--ghost { color: var(--text); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { transform: translateY(-2px); background: rgba(62, 232, 255, .1); box-shadow: inset 0 0 0 1.5px var(--cyan); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; pointer-events: none; }
.btn:active { transform: scale(.98); }

.chip {
  min-height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font: 700 14.5px var(--font-head); color: var(--muted); background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.is-on { color: #0b0f22; border-color: transparent; background: linear-gradient(100deg, #86f1ff, #9fb4ff); }
.filters { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gr)) 0 calc(-1 * var(--gl)); padding: 2px var(--gr) 2px var(--gl); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }

/* ---------- Главная: студия Мяузика ---------- */
.hero { --scene-h: clamp(340px, 62svh, 640px); position: relative; overflow: hidden; background: var(--bg); }
.hero__scene { position: relative; height: var(--scene-h); overflow: hidden; }
/* Сцена 16:9: размер и положение в пикселях пишет main.js — так, чтобы кот был в кадре при любом экране */
.stage { --su: 10px; position: absolute; left: 0; top: 0; width: 100%; height: 100%; will-change: transform; }
.layer {
  position: absolute;
  transform: translate3d(calc(var(--mx) * var(--d, 0) * -40px), calc(var(--my) * var(--d, 0) * -24px), 0);
  will-change: transform;
}
.layer img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.l-wall  { inset: -3%; }
.l-wall img { width: 100%; height: 100%; object-fit: cover; }
.l-notes { inset: 0; width: 100%; height: 100%; pointer-events: none; }
.l-amp   { left: 37%; bottom: 23.5%; width: 44%; }
.l-cat   { left: 59%; bottom: 15%; width: 22%; }
.l-front { filter: blur(1.5px) brightness(.85) drop-shadow(0 0 18px rgba(155, 107, 255, .35)); }
.l-mic     { left: -12%; top: -4%; width: 30%; }
.l-speaker { right: -4%; bottom: -10%; width: 21%; }
/* «фонарик» — мягкое неоновое пятно на стене за курсором */
.l-light {
  inset: 0; mix-blend-mode: screen; pointer-events: none;
  background:
    radial-gradient(circle at calc(50% + var(--mx) * 30%) calc(45% + var(--my) * 25%), rgba(62, 232, 255, .16), transparent 32%),
    radial-gradient(circle at 22% 38%, rgba(255, 79, 216, .14), transparent 40%);
}
/* контактная тень — чтобы кот стоял на полу, а не висел */
.l-cat::before {
  content: ""; position: absolute; left: 8%; right: 4%; bottom: -3%; height: 9%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .75), transparent 70%);
}
/* Мяузик покачивает головой в такт ~96 BPM */
.cat-bob { transform-origin: 50% 100%; animation: bob 1.25s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-.6%) scale(1.005, .995); } }
/* экранчик усилителя — бегущая строка */
.lcd {
  position: absolute; left: 28.6%; top: 33.5%; width: 15.6%; height: 18%;
  overflow: hidden; display: flex; align-items: center;
  font: 500 calc(var(--su) * 1.05) var(--font-mono); color: var(--cyan);
  text-shadow: 0 0 6px var(--cyan); letter-spacing: .06em;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.lcd__track { white-space: nowrap; padding-left: 100%; animation: marquee 14s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(7, 9, 19, .7) 0, rgba(7, 9, 19, .25) 30%, transparent 48%, transparent 66%, var(--bg) 100%);
}

.hero__copy { position: relative; z-index: 2; max-width: 680px; margin: -64px auto 0; padding: 0 var(--gr) 36px var(--gl); }
/* неоновая вывеска: в портрете висит на стене над котом */
.neon {
  position: absolute; left: 0; right: 0; top: calc(64px - var(--scene-h) + var(--nav-h) + env(safe-area-inset-top, 0px) + 14px);
  margin: 0; text-align: center; font-family: var(--font-neon); font-weight: 700; line-height: 1.12; font-size: clamp(32px, 10.4vw, 64px);
}
.neon__row { display: block; white-space: nowrap; animation: neon-on 1.6s steps(1) both; }
.neon__row:nth-child(2) { animation-delay: .35s; }
.neon .neon--pink, .neon .neon--cyan { background: none; -webkit-text-fill-color: currentColor; }
.neon .neon--pink { color: #ffd6f6; text-shadow: 0 0 4px #fff, 0 0 12px var(--pink), 0 0 28px var(--pink), 0 0 60px var(--pink); }
.neon .neon--cyan { color: #d6fbff; text-shadow: 0 0 4px #fff, 0 0 12px var(--cyan), 0 0 28px var(--cyan), 0 0 60px var(--cyan); }
/* вывеска «зажигается» при загрузке, одна буква потом иногда моргает */
/* первый кадр — горит: если браузер придержит анимацию (экономия заряда), вывеска не останется тёмной */
@keyframes neon-on { 0% { opacity: 1 } 3% { opacity: .08 } 10% { opacity: 1 } 14% { opacity: .2 } 22% { opacity: 1 } 26% { opacity: .35 } 34%, 100% { opacity: 1 } }
.flick { animation: flick 7s infinite 3s; }
@keyframes flick { 0%, 92%, 100% { opacity: 1 } 93% { opacity: .25 } 94% { opacity: 1 } 95.5% { opacity: .3 } 96.5% { opacity: 1 } }
.hero__lead { margin: 0 0 20px; text-align: center; font-size: clamp(16px, 1.5vw, 20px); text-shadow: 0 2px 12px rgba(0, 0, 0, .9); text-wrap: balance; }

/* четыре ветки сайта — карточки-«двери» */
.branches { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.branch {
  --c: var(--cyan);
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 10px 40px 10px 10px; border-radius: var(--r); text-decoration: none;
  background: linear-gradient(100deg, color-mix(in srgb, var(--c) 14%, var(--panel)), var(--panel) 70%);
  border: 1px solid color-mix(in srgb, var(--c) 38%, transparent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.branch::after { content: "›"; position: absolute; right: 16px; top: 50%; transform: translateY(-54%); font: 700 26px/1 var(--font-body); color: var(--c); }
.branch img { flex: 0 0 auto; width: 64px; height: 64px; object-fit: cover; border-radius: 16px; box-shadow: 0 0 18px color-mix(in srgb, var(--c) 35%, transparent); }
.branch b { display: block; font: 900 18px/1.15 var(--font-head); color: var(--text); }
.branch small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.3; color: var(--muted); }
.branch:hover, .branch:focus-visible { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 26px color-mix(in srgb, var(--c) 35%, transparent); }
.branch:active { transform: scale(.985); }
@media (min-width: 560px) { .branches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* плашка новостей под ветками: свежие новости сменяют друг друга */
.newsbar {
  display: flex; align-items: center; gap: 10px; min-height: 52px; margin-top: 10px; padding: 8px 14px; border-radius: 16px; text-decoration: none;
  background: rgba(18, 23, 47, .9); border: 1px solid var(--line-2); transition: border-color .25s, box-shadow .25s;
}
.newsbar:hover, .newsbar:focus-visible { border-color: var(--cyan); box-shadow: 0 0 20px rgba(62, 232, 255, .25); }
.newsbar__tag { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; font: 900 11px var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: #06080f; background: var(--cyan); }
.newsbar__text { flex: 1 1 auto; min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14.5px; line-height: 1.3; }
.newsbar__text.is-in { animation: news-in .45s ease-out; }
.newsbar__text time { margin-right: 4px; font: 500 12.5px var(--font-mono); color: var(--cyan); }
.newsbar__more { flex: 0 0 auto; font-size: 24px; line-height: 1; color: var(--cyan); }
@keyframes news-in { from { opacity: 0; transform: translateY(6px); } }
.newsbar__title { display: block; }
.newsbar__sub { display: none; }
.newsbar__side { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; }
.newsbar__dots { display: none; gap: 5px; }
.newsbar__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.newsbar__dots i.on { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.newsbar__pulse { display: none; }

@keyframes nb-pulse { 50% { transform: scale(.55); opacity: .5; } }

/* «Неоновая витрина» (25.11.2026, выбор автора): крупнее и заметнее старой полоски; data-v="b" — в разметке, чтобы перебить
   правила полоски для альбомных телефонов ниже */
.newsbar[data-v="b"] { position: relative; flex-wrap: wrap; min-height: 104px; margin-top: 16px; padding: 14px 20px; gap: 6px 14px; border-radius: 22px; border: 0;
  background: rgba(13, 17, 36, .92); isolation: isolate; }
.newsbar[data-v="b"]::before { content: ''; position: absolute; inset: 0; z-index: -1; padding: 2px; border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--cyan), var(--pink)); background-size: 200% 100%; animation: nb-flow 6s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.newsbar[data-v="b"] .newsbar__tag { order: 0; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; font-size: 12.5px; background: var(--pink); color: #fff; }
.newsbar[data-v="b"] .newsbar__pulse { display: block; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: nb-pulse 1.6s ease-in-out infinite; }
.newsbar[data-v="b"] .newsbar__side { order: 1; margin-left: auto; }
.newsbar[data-v="b"] .newsbar__text { order: 2; flex-basis: 100%; display: block; -webkit-line-clamp: unset; }
.newsbar[data-v="b"] .newsbar__title { font: 900 19px/1.25 var(--font-head); color: var(--text); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.newsbar[data-v="b"] .newsbar__sub { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.newsbar[data-v="b"] .newsbar__dots { display: flex; }
.newsbar[data-v="b"] .newsbar__dots i.on { background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.newsbar[data-v="b"] .newsbar__more { color: var(--pink); font-size: 28px; }
@keyframes nb-flow { to { background-position: 200% 0; } }
/* телефон вертикально: новости сразу под описанием, над дверями — раньше уходили ниже первого экрана */
@media (orientation: portrait) {
  .hero__copy { display: flex; flex-direction: column; }
  .hero__copy > .newsbar { order: 1; margin: 4px 0 14px; }
  .hero__copy > .branches { order: 2; }
}
@media (prefers-reduced-motion: reduce) { .newsbar[data-v="b"]::before, .newsbar__pulse { animation: none !important; } }

/* альбомная раскладка: студия во весь экран, текст слева, Мяузик справа */
@media (orientation: landscape) {
  .hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
  .hero__scene { position: absolute; inset: 0; height: auto; }
  .vignette { background:
    linear-gradient(90deg, rgba(7, 9, 19, .86) 0, rgba(7, 9, 19, .6) 34%, transparent 62%),
    linear-gradient(to bottom, rgba(7, 9, 19, .5) 0, transparent 22%, transparent 80%, rgba(7, 9, 19, .85) 100%); }
  .hero__copy { width: min(640px, 54%); max-width: none; margin: 0; padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 20px) 0 28px var(--gl); }
  .neon { position: static; margin: 0 0 16px; text-align: left; font-size: clamp(30px, 5vw, 84px); }
  .neon__row + .neon__row { padding-left: .5em; }
  .hero__lead { text-align: left; max-width: 30em; }
  .hero__copy { min-width: 0; flex: 0 0 auto; }
  .branches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branch { background: linear-gradient(100deg, color-mix(in srgb, var(--c) 14%, rgba(13, 17, 36, .86)), rgba(13, 17, 36, .86) 70%); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .newsbar { background: rgba(13, 17, 36, .86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
/* телефон боком и узкие окна: двери без пояснений, всё влезает в экран */
@media (orientation: landscape) and (max-height: 620px), (orientation: landscape) and (max-width: 1199.98px) {
  .hero__lead { margin-bottom: 14px; }
  .branches { gap: 8px; }
  .branch { min-height: 60px; gap: 10px; padding: 8px 26px 8px 8px; border-radius: 16px; }
  .branch::after { right: 10px; font-size: 20px; }
  .branch img { width: 44px; height: 44px; border-radius: 11px; }
  .branch b { font-size: 15px; }
  .branch small { display: none; }
  .newsbar { min-height: 44px; margin-top: 8px; }
  .newsbar__text { -webkit-line-clamp: 1; }
}
@media (orientation: landscape) and (max-height: 620px) { .hero__lead { font-size: 15px; } }
@media (orientation: landscape) and (max-height: 520px) {
  .hero__copy { padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 6px); padding-bottom: 14px; }
  .neon { margin-bottom: 8px; font-size: clamp(26px, 4.4vw, 40px); }
  .hero__lead { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-bottom: 10px; }
}
@media (orientation: landscape) and (max-height: 440px) { .hero__lead { display: none; } }
/* маленький телефон боком: двери без картинок, чтобы не закрывать Мяузика */
@media (orientation: landscape) and (max-width: 699.98px) {
  .branch { min-height: 48px; padding: 8px 12px; }
  .branch::after, .branch img { display: none; }
  .branch b { font-size: 13.5px; }
}
/* телефон боком: заголовки разделов скромнее — высоты мало */
@media (orientation: landscape) and (max-height: 520px) { .section-title { font-size: clamp(26px, 4.4vw, 40px); } }

/* ---------- Полка с пластинками (программы и игры) ---------- */
.shelf { position: relative; overflow: hidden; padding: clamp(28px, 6vw, 72px) var(--gr) clamp(56px, 9vw, 120px) var(--gl); background: linear-gradient(var(--bg), var(--bg-2)); }
.shelf__head { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto clamp(22px, 4vw, 44px); }
/* декоративные неоновые символы, ездят от прокрутки (data-speed) */
.deco { position: absolute; pointer-events: none; opacity: .12; transform: translate3d(0, var(--sy, 0px), 0); }
.deco--note { right: 4%; top: 2%; font-size: clamp(140px, 22vw, 340px); line-height: 1; color: var(--violet); text-shadow: 0 0 40px var(--violet); }
.deco--paw { left: -3%; bottom: 8%; width: clamp(120px, 18vw, 260px); }
.deco--paw svg { fill: var(--pink); filter: drop-shadow(0 0 30px var(--pink)); transform: rotate(-25deg); }

/* телефон: пластинки списком — обложка слева, название и описание справа */
.records { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 12px; }
.record {
  --tx: 0; --ty: 0; position: relative; cursor: pointer; perspective: 900px;
  display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; column-gap: 12px; align-items: center;
  padding: 12px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.record:hover, .record:focus-visible { border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 22%, transparent); }
.record:active { transform: scale(.985); }
.record__art { grid-row: 1 / -1; position: relative; margin-right: 16%; }
.record__sleeve, .record__disc { aspect-ratio: 1; }
.record__sleeve {
  position: relative; z-index: 2; overflow: hidden; border-radius: 10px; background: var(--panel-2);
  box-shadow: 0 14px 26px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  transform: rotateY(calc(var(--tx) * 10deg)) rotateX(calc(var(--ty) * -10deg));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .4s;
}
.record__sleeve img { width: 100%; height: 100%; object-fit: cover; }
/* блик по конверту, ездит за мышью */
.record__sleeve::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at calc(50% + var(--tx) * 60%) calc(30% + var(--ty) * 60%), rgba(255, 255, 255, .18), transparent 45%);
}
.record__disc {
  position: absolute; z-index: 1; top: 3%; left: 3%; width: 94%; border-radius: 50%;
  background:
    radial-gradient(circle, #06080f 0 2.2%, var(--accent) 2.6% 15%, #0a0a0a 15.5% 17%, transparent 17.5%),
    repeating-radial-gradient(circle, #15151b 0 2px, #24242c 2px 4px);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 20px color-mix(in srgb, var(--accent) 30%, transparent);
  transform: translateX(16%);
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}
.record__disc::after { /* отблеск неона на виниле */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 10%, rgba(255, 255, 255, .09) 14%, transparent 20% 60%, rgba(255, 255, 255, .06) 64%, transparent 70%);
}
.record__badge {
  position: absolute; z-index: 3; top: 6px; left: 6px;
  font: 900 10px var(--font-head); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  padding: 3px 8px; border-radius: 999px; color: #fff; background: rgba(6, 8, 15, .78); border: 1px solid var(--accent);
}
.record h3 { grid-row: 2; margin: 0 0 2px; font: 900 18px/1.15 var(--font-head); }
.record__tag { grid-row: 3; margin: 0 0 8px; color: var(--muted); font-size: 14.5px; line-height: 1.35; }
.platforms { grid-row: 4; align-self: start; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.platforms li { font: 500 11.5px var(--font-mono); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.platforms .platforms__players { color: var(--cyan); border-color: rgba(62, 232, 255, .5); }
/* шире — сетка карточек с большими обложками */
@media (min-width: 600px) {
  .records { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: clamp(14px, 2.4vw, 28px); }
  .record { display: block; padding: 16px 16px 18px; }
  .record__art { margin: 0 14% 16px 0; }
  .record__badge { top: 10px; left: 10px; font-size: 11px; padding: 4px 10px; }
  .record h3 { font-size: clamp(18px, 1.7vw, 22px); }
  .record__tag { font-size: 15px; }
}
@media (hover: hover) {
  .record:hover .record__disc, .record:focus-visible .record__disc { transform: translateX(46%) rotate(220deg); }
  .record:hover { transform: translateY(-4px); }
}

/* ---------- Окно программы: на телефоне выезжает снизу ---------- */
.sheet {
  position: fixed; inset: auto 0 0 0; width: 100%; max-width: 100%; max-height: 92vh; max-height: 92dvh; margin: 0; padding: 0;
  overflow: auto; overscroll-behavior: contain;
  color: var(--text); background: linear-gradient(160deg, #171d40, #0b0e20 60%);
  border: 1px solid var(--line-2); border-bottom: 0; border-radius: 26px 26px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .6), 0 0 60px color-mix(in srgb, var(--accent, #9b6bff) 22%, transparent);
}
.sheet::backdrop { background: rgba(4, 5, 10, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet[open] { animation: sheet-up .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.sheet__close {
  position: sticky; top: 10px; z-index: 3; display: block; width: 44px; height: 44px; margin: 10px calc(10px + env(safe-area-inset-right, 0px)) -54px auto; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(6, 8, 15, .8); color: var(--text); font-size: 16px; cursor: pointer;
}
.sheet__close:hover { border-color: var(--cyan); color: var(--cyan); }
.sheet__body { padding: 22px calc(18px + env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) calc(18px + env(safe-area-inset-left, 0px)); }
.sheet__body::after { content: ""; display: block; clear: both; }
.sheet__cover { float: left; width: 96px; margin: 0 14px 10px 0; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, .6), 0 0 30px color-mix(in srgb, var(--accent) 35%, transparent); }
.sheet__cover img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sheet h2 { margin: 4px 50px 4px 0; font: 900 clamp(23px, 3.2vw, 40px)/1.1 var(--font-head); }
.sheet__tag { margin: 0 0 14px; color: var(--accent); font-weight: 800; line-height: 1.3; }
.sheet__about { clear: both; margin: 0 0 16px; }
.sheet__features { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 8px; }
.sheet__features li { position: relative; padding-left: 28px; color: var(--muted); }
.sheet__features li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; background: var(--accent);
  -webkit-mask: var(--paw-mask) center / contain no-repeat;
          mask: var(--paw-mask) center / contain no-repeat;
}
.dl { display: grid; gap: 8px; }
.dl .btn { min-height: 50px; font-size: 15.5px; }
.dl .btn small { font-weight: 600; opacity: .7; }
.dl__note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.dl__note a { color: var(--cyan); }
/* плашка «Как играть» в окне игры (howto в js/data.js) */
.howto { margin: 20px 0 0; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); box-shadow: inset 3px 0 0 var(--accent, var(--cyan)); }
.howto h3 { margin: 0 0 12px; font: 800 18px var(--font-head); color: var(--accent, var(--cyan)); }
.howto ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.howto li { position: relative; padding-left: 36px; color: var(--muted); line-height: 1.5; counter-increment: step; }
.howto li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font: 800 13px var(--font-body); color: #06080f; background: var(--accent, var(--cyan)); }
/* шире — обычное окно по центру, обложка слева */
@media (min-width: 640px) {
  .sheet { inset: 0; margin: auto; width: min(960px, calc(100vw - 32px)); height: fit-content; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border: 1px solid var(--line-2); border-radius: 24px; }
  .sheet__body { display: grid; grid-template-columns: minmax(0, clamp(160px, 28vw, 380px)) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); padding: clamp(20px, 3vw, 36px); align-items: start; }
  .sheet__body::after { display: none; }
  .sheet__cover { float: none; width: auto; margin: 0; position: sticky; top: clamp(20px, 3vw, 36px); }
  .dl { display: flex; flex-wrap: wrap; }
}

/* ---------- Страница новостей ---------- */
.news { min-height: 70vh; padding: clamp(28px, 6vw, 72px) var(--gr) clamp(56px, 8vw, 100px) var(--gl); background: linear-gradient(var(--bg), var(--bg-2)); }
.news__inner { max-width: 820px; margin: 0 auto; }
.news__list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.news__item { padding: clamp(16px, 3vw, 24px); border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); scroll-margin-top: calc(var(--top-h) + 16px); }
.news__item.is-target { border-color: var(--cyan); box-shadow: 0 0 22px rgba(62, 232, 255, .25); }
.news__item time { font: 500 13px var(--font-mono); color: var(--cyan); }
.news__item h2 { margin: 4px 0 6px; font: 900 clamp(19px, 2.4vw, 22px)/1.2 var(--font-head); }
.news__item p { margin: 0; color: var(--muted); font-size: 16px; }
.news__item a { display: inline-flex; align-items: center; min-height: 40px; margin-top: 6px; font-weight: 800; color: var(--cyan); text-decoration: none; }
.news__item a:hover { color: var(--pink); }
.news__empty { padding: 22px; border-radius: 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Подвал ---------- */
.footer { position: relative; padding: clamp(32px, 6vw, 56px) var(--gr) 24px var(--gl); background: #05060d; border-top: 1px solid var(--line); }
.footer__inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.footer__brand { grid-column: 1 / -1; }
.footer__brand p { margin: 10px 0 14px; color: var(--muted); font-size: 15px; max-width: 26em; }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); transition: color .2s, border-color .2s, transform .2s; }
.footer__social a:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-2px); }
.footer__social svg { width: 20px; height: 20px; fill: currentColor; }
.footer__col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.footer__col h3 { margin: 0 0 6px; font: 900 13px var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.footer__col a { display: inline-flex; align-items: center; min-height: 34px; color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--pink); }
.footer__col p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.footer__col--wide { grid-column: 1 / -1; }
.footer__copy { max-width: var(--wrap); margin: 28px auto 0; color: var(--muted); font-size: 13px; }
.till__fine a { color: var(--cyan); }
/* незаполненные реквизиты — подсвечены, чтобы не забыть */
.ph { padding: 0 6px; border-radius: 6px; background: rgba(255, 79, 216, .18); outline: 1px dashed var(--pink); }
@media (min-width: 760px) {
  .footer__inner { grid-template-columns: 1.5fr .8fr 1.3fr 1.2fr; gap: 32px; }
  .footer__brand, .footer__col--wide { grid-column: auto; }
}
