/* ==========================================================================
   sepera_okeq — публичная часть. Конструктивизм: плакат, а не лендинг.
   ========================================================================== */

.container {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}
.container--narrow {
  max-width: 780px;
}
@media (min-width: 720px) {
  .container {
    width: min(100% - 56px, 1200px);
  }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  color: var(--accent-ink);
  background: var(--accent);
  font-family: var(--font-mono);
}
.skip-link:focus {
  top: 12px;
}

main {
  display: block;
}

/* ==========================================================================
   Навбар: скошенная планка с ползунком
   ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
  width: min(100% - 32px, 1320px);
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover .logo__mark {
  transform: rotate(4deg) scale(1.05);
}
.logo__text {
  font-family: var(--font-display);
  font-size: 16px;
}
.logo__text b {
  font-weight: 400;
  color: var(--accent);
}
.logo__mark.is-stamping {
  animation: stamp 0.35s ease;
}
@keyframes stamp {
  40% {
    transform: rotate(-5deg) scale(0.8);
  }
}

.menu {
  position: relative;
  display: flex;
  align-items: stretch;
  margin-inline: auto;
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--accent);
  transform: skewX(-14deg);
}
.menu__link {
  position: relative;
  z-index: 1;
  display: block;
  padding: 12px 18px;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.menu__in {
  display: flex;
  align-items: baseline;
  gap: 7px;
  transform: skewX(14deg);
}
.menu__in i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.6;
}
.menu__link:hover,
.menu__link:focus-visible,
.menu__link.is-active {
  color: var(--accent-ink);
}
.menu__slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--w, 0px);
  background: var(--accent);
  transform: translateX(var(--x, 0px));
  opacity: 0;
  transition:
    transform 0.45s cubic-bezier(0.3, 1.3, 0.5, 1),
    width 0.45s cubic-bezier(0.3, 1.3, 0.5, 1),
    opacity 0.2s ease;
}
.menu.is-ready .menu__slider.is-visible {
  opacity: 1;
}

.topbar__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--shadow-ink);
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.icon-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--accent);
}
.icon-btn .icon {
  width: 19px;
  height: 19px;
}
.theme-toggle__moon {
  display: none;
}
:root[data-theme='dark'] .theme-toggle__sun {
  display: none;
}
:root[data-theme='dark'] .theme-toggle__moon {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle__sun {
    display: none;
  }
  :root:not([data-theme='light']) .theme-toggle__moon {
    display: block;
  }
}
.burger {
  display: none;
}
.burger__lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.burger__lines i {
  display: block;
  width: 18px;
  height: 3px;
  background: currentColor;
  transition: transform 0.25s ease;
}
.topbar.is-open .burger {
  color: var(--accent-ink);
  background: var(--accent);
}
.topbar.is-open .burger__lines i:first-child {
  transform: translateY(4px) rotate(45deg);
}
.topbar.is-open .burger__lines i:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Семь разделов: на ноутбуках без номеров и плотнее, ниже 1100px — бургер */
@media (min-width: 1101px) and (max-width: 1380px) {
  .menu__in i {
    display: none;
  }
  .menu__link {
    padding: 12px 13px;
    font-size: 12.5px;
  }
  .logo__text {
    font-size: 15px;
  }
}
@media (max-width: 1100px) {
  :root {
    --header-h: 64px;
  }
  .logo__text {
    font-size: 14px;
  }
  .topbar__tools {
    margin-left: auto;
  }
  .burger {
    display: inline-grid;
  }
  .menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    margin: 0;
    padding: 20px 20px 40px;
    overflow-y: auto;
    background: var(--paper);
    border: 0;
    box-shadow: none;
    transform: none;
  }
  /* плакатная композиция в углу меню */
  .menu::before,
  .menu::after {
    content: '';
    position: fixed;
    pointer-events: none;
  }
  .menu::before {
    right: -80px;
    bottom: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--accent);
  }
  .menu::after {
    right: -40px;
    bottom: 130px;
    width: 420px;
    height: 22px;
    background: var(--ink);
    transform: rotate(-28deg);
  }
  .topbar.is-open .menu {
    display: flex;
    animation: menu-in 0.2s ease;
  }
  @keyframes menu-in {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
  }
  .menu__slider {
    display: none;
  }
  .menu__link {
    padding: 16px 4px;
    font-size: 30px;
    color: var(--ink);
    border-bottom: 2px solid var(--ink);
  }
  .menu__in {
    gap: 14px;
    transform: none;
  }
  .menu__in i {
    padding: 2px 6px;
    font-size: 12px;
    color: var(--accent-ink);
    background: var(--accent);
    opacity: 1;
  }
  .menu__link:hover,
  .menu__link.is-active {
    color: var(--accent);
  }
}
body.menu-open {
  overflow: hidden;
}

/* ==========================================================================
   Общие блоки
   ========================================================================== */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: '';
  width: 30px;
  height: 3px;
  background: currentColor;
  flex-shrink: 0;
}

.section {
  padding: 72px 0 8px;
}
.section--tight {
  padding: 40px 0 8px;
}
.sec-lead {
  margin: -8px 0 22px;
  color: var(--muted);
}

.sec-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 28px;
}
.sec-head__num {
  padding: 5px 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  color: var(--accent-ink);
  background: var(--accent);
}
.sec-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1;
  text-transform: uppercase;
}
.sec-head__rule {
  flex: 1 1 40px;
  height: 3px;
  background: var(--ink);
}
.sec-head__link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.sec-head__link:hover {
  color: var(--accent);
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 44px 16px;
  text-align: center;
  border: 2px dashed var(--line-strong);
}
.empty__mark {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
}
.empty__mark::after {
  content: '';
  position: absolute;
  left: -14px;
  right: -14px;
  top: 50%;
  height: 6px;
  background: var(--ink);
  transform: rotate(-28deg);
}
.empty p {
  margin: 0;
  color: var(--muted);
}

.stars {
  display: inline-flex;
  gap: 1px;
  font-size: 16px;
  line-height: 1;
}
.stars i {
  font-style: normal;
  color: var(--line-strong);
}
.stars i.on {
  color: var(--accent);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.tag {
  display: inline-flex;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  transition:
    background 0.15s,
    color 0.15s;
}
.tag i {
  font-style: normal;
  opacity: 0.55;
}
.tag:hover,
.tag.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.progress {
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress__bar {
  flex: 1;
  height: 12px;
  border: 2px solid currentColor;
}
.progress__bar span {
  display: block;
  height: 100%;
  background: currentColor repeating-linear-gradient(-45deg, transparent 0 4px, rgba(0, 0, 0, 0.25) 4px 8px);
}
.progress__label {
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 44px 0 0;
}
.pager__info {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted);
}

.draft-banner {
  display: inline-block;
  margin: 12px 0 0;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #141118;
  background: repeating-linear-gradient(-45deg, var(--gold) 0 12px, #f0c24a 12px 24px);
  border: 2px solid var(--ink);
}

.back-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.back-link:hover {
  color: var(--accent);
}

/* ─── Эмблема раздела: круг, брус, клин ─────────────────────────────────── */

.emblem {
  position: relative;
  flex-shrink: 0;
  width: clamp(150px, 20vw, 240px);
  aspect-ratio: 1;
}
.emblem i {
  position: absolute;
  display: block;
}
.emblem__circle {
  inset: 8%;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 10px 10px 0 var(--shadow-ink);
}
.emblem__bar {
  left: -10%;
  right: -6%;
  top: 58%;
  height: 10%;
  background: var(--ink);
  transform: rotate(-24deg);
}
.emblem__wedge {
  left: 4%;
  top: 14%;
  width: 34%;
  height: 26%;
  background: var(--hot);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: rotate(32deg);
}
.emblem__dot {
  right: 4%;
  top: 6%;
  width: 13%;
  height: 13%;
  background: var(--ink);
}
.emblem__glyph {
  position: absolute;
  inset: 8%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  color: var(--accent-ink);
}
.emblem--blog .emblem__bar {
  top: 30%;
  transform: rotate(14deg);
}
.emblem--blog .emblem__wedge {
  top: 60%;
  left: 58%;
  transform: rotate(200deg);
}
.emblem--academy .emblem__circle {
  border-radius: 0;
  transform: rotate(10deg);
}
.emblem--academy .emblem__wedge {
  left: 60%;
  top: 4%;
  transform: rotate(120deg);
}
.emblem--services .emblem__bar {
  left: 30%;
  right: 30%;
  top: 46%;
  height: 8%;
  transform: rotate(90deg);
}
.emblem--services .emblem__dot {
  border-radius: 50%;
  background: #3cc25a;
  border: 3px solid var(--ink);
}
.emblem--search .emblem__circle {
  inset: 14% 24% 24% 14%;
  background: transparent;
  border: 14px solid var(--accent);
  box-shadow: none;
}
.emblem--search .emblem__bar {
  left: 56%;
  right: 4%;
  top: 74%;
  transform: rotate(45deg);
}
.emblem--search .emblem__wedge {
  display: none;
}
.emblem--topic .emblem__bar,
.emblem--wishlist .emblem__bar {
  transform: rotate(-38deg);
}
.emblem--projects .emblem__circle {
  inset: 16%;
  border-radius: 0;
  transform: rotate(45deg);
}
.emblem--projects .emblem__bar {
  top: 46%;
  transform: rotate(-12deg);
}
.emblem--projects .emblem__wedge {
  left: 58%;
  top: 58%;
  transform: rotate(150deg);
}
/* Радио: мачта и расходящиеся волны */
.emblem--radio .emblem__circle {
  inset: 34%;
  box-shadow:
    0 0 0 12px var(--paper),
    0 0 0 19px var(--accent),
    0 0 0 32px var(--paper),
    0 0 0 39px var(--accent);
}
.emblem--radio .emblem__bar {
  left: 46%;
  right: 46%;
  top: 48%;
  bottom: -12%;
  height: auto;
  transform: none;
}
.emblem--radio .emblem__wedge {
  left: 52%;
  top: 2%;
  width: 26%;
  transform: rotate(-30deg);
}
@media (max-width: 720px) {
  .emblem--radio .emblem__circle {
    box-shadow:
      0 0 0 5px var(--paper),
      0 0 0 8px var(--accent),
      0 0 0 13px var(--paper),
      0 0 0 16px var(--accent);
  }
}

/* ─── Шапка раздела ─────────────────────────────────────────────────────── */

.page-head {
  position: relative;
  overflow: hidden;
  padding: 56px 0 44px;
  border-bottom: 3px solid var(--ink);
  background: var(--halftone);
}
.page-head__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}
.page-head__title {
  margin: 14px 0 22px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 8.4vw, 108px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.page-head__lead {
  max-width: 60ch;
  margin: 0;
  font-size: 19px;
  color: var(--ink-2);
}
.page-head__progress {
  max-width: 420px;
  margin-top: 20px;
  color: var(--accent);
}
.page-head__counter {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.page-head__counter b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  color: var(--accent);
  vertical-align: -6px;
}
@media (max-width: 720px) {
  .page-head {
    padding: 30px 0 30px;
  }
  .page-head__inner {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 0 14px;
    align-items: center;
  }
  .page-head__text {
    display: contents;
  }
  .page-head__text > * {
    grid-column: 1 / -1;
  }
  .page-head__text > .kicker {
    grid-column: 1;
    grid-row: 1;
  }
  .page-head .emblem {
    grid-column: 2;
    grid-row: 1;
    width: 76px;
  }
  .emblem__circle {
    box-shadow: 5px 5px 0 var(--shadow-ink);
  }
  .emblem__glyph {
    font-size: 24px;
  }
  .page-head__title {
    margin-top: 12px;
    font-size: clamp(34px, 10.5vw, 60px);
  }
  .page-head__lead {
    font-size: 17px;
  }
}

/* ==========================================================================
   Главная: плакат с 3D-«Проуном»
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(580px, calc(100svh - var(--header-h)), 880px);
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
}
/* растр под композицией */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  z-index: -2;
  background: var(--halftone);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%);
  mask-image: linear-gradient(90deg, transparent, #000 35%);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero.has-webgl .hero__canvas {
  opacity: 1;
}
/* Без WebGL — плоская композиция из тех же форм */
.hero__fallback {
  position: absolute;
  right: 6%;
  top: 50%;
  z-index: -1;
  width: min(44vw, 520px);
  aspect-ratio: 1;
  transform: translateY(-50%);
}
.hero__fallback i {
  position: absolute;
  display: block;
}
.hero__fallback i:nth-child(1) {
  inset: 10%;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 14px 14px 0 var(--shadow-ink);
}
.hero__fallback i:nth-child(2) {
  left: -14%;
  right: -8%;
  top: 56%;
  height: 7%;
  background: var(--ink);
  transform: rotate(-24deg);
}
.hero__fallback i:nth-child(3) {
  left: 0;
  top: 62%;
  width: 46%;
  height: 22%;
  background: var(--hot);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: rotate(-20deg);
}
.hero.has-webgl .hero__fallback {
  display: none;
}
.hero__inner {
  position: relative;
  padding: 56px 0 96px;
}
.hero .kicker {
  padding: 7px 12px;
  color: var(--paper);
  background: var(--ink);
}
.hero .kicker::before {
  width: 12px;
  height: 12px;
  background: var(--accent);
}
.hero__title {
  margin: 22px 0 26px;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.88;
  text-transform: uppercase;
}
.hero__title-main {
  display: block;
  font-size: clamp(56px, 10vw, 150px);
  letter-spacing: -0.02em;
}
/* вторая строка — плашка, приклеенная наискосок */
.hero__title-sub {
  display: inline-block;
  margin-top: 14px;
  text-transform: none;
  padding: 0.06em 0.2em 0.1em;
  font-size: clamp(42px, 7.4vw, 110px);
  letter-spacing: 0.02em;
  color: var(--accent-ink);
  background: var(--accent);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--shadow-ink);
  transform: rotate(-3deg);
  transform-origin: left center;
}
.hero__lead {
  max-width: 44ch;
  margin: 0;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-2);
}
.hero__socials {
  max-width: 660px;
  margin-top: 34px;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--shadow-ink);
}
.hero__scroll span {
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border-right: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: rotate(45deg);
  animation: scroll-hint 1.6s ease-in-out infinite;
}
@keyframes scroll-hint {
  50% {
    transform: translateY(4px) rotate(45deg);
  }
}
@media (max-width: 860px) {
  .hero {
    align-items: flex-end;
  }
  .hero::before {
    width: 100%;
    height: 50%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero__inner {
    padding: 40vh 0 84px;
  }
  .hero__fallback {
    top: 5%;
    right: 50%;
    width: 72vw;
    transform: translateX(50%);
  }
}

/* ─── Соцсети: плитки с тенью ───────────────────────────────────────────── */

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social {
  --brand: var(--accent);
  --brand-ink: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px 10px 12px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--shadow-ink);
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease,
    color 0.12s ease;
}
.social .icon {
  width: 20px;
  height: 20px;
  color: var(--brand);
}
.social:hover,
.social:focus-visible {
  color: var(--brand-ink);
  background: var(--brand);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--shadow-ink);
}
.social:hover .icon,
.social:focus-visible .icon {
  color: currentColor;
}
.socials--compact {
  gap: 8px;
}
.socials--compact .social {
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  box-shadow: 3px 3px 0 var(--shadow-ink);
}
.socials--compact .social__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.socials--compact .social .icon {
  width: 19px;
  height: 19px;
}

/* ─── О себе ────────────────────────────────────────────────────────────── */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: start;
}
.about__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 30px 24px 26px;
  overflow: hidden;
  text-align: center;
  background: var(--card);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--shadow-ink);
}
.about__card::before {
  content: '';
  position: absolute;
  left: -20%;
  right: -20%;
  top: 22px;
  height: 46px;
  background: var(--accent);
  transform: rotate(-8deg);
}
.about__mark {
  position: relative;
  width: 100px;
  height: 100px;
  transform: rotate(-7deg);
}
.about__mark .logo__svg {
  width: 100%;
  height: 100%;
}
.about__mark .logo__bg {
  stroke: var(--ink);
  stroke-width: 3;
}
.about__name {
  position: relative;
  margin: 6px 0 4px;
  font-family: var(--font-display);
  font-size: 20px;
}
.about__card .socials {
  position: relative;
  justify-content: center;
}
@media (max-width: 860px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ─── Радио, сервисы и желания в один ряд ──────────────────────────────── */

.triple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
@media (max-width: 1100px) {
  .triple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .triple > :last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  .triple {
    grid-template-columns: 1fr;
  }
}

/* «В эфире» — маленький приёмник на главной */
.onair {
  display: grid;
  gap: 6px;
  padding: 18px 20px 16px;
  color: #ece6f6;
  text-decoration: none;
  background: #221b30;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--shadow-ink);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.onair:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--accent);
}
.onair__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.onair__lamp {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #0d0b10;
  background: #ff4a3a;
  box-shadow: 0 0 10px 1px rgba(255, 74, 58, 0.75);
  animation: lamp-blink 2.4s steps(2, jump-none) infinite;
}
.onair--off .onair__lamp {
  background: #6b6476;
  box-shadow: none;
  animation: none;
}
.onair__freq {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0;
  color: #b39cff;
}
.onair__station {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #a59cb8;
}
.onair__title {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.onair__artist {
  font-size: 15px;
  color: #c9c0dc;
}
.onair__bar {
  height: 8px;
  margin-top: 8px;
  border: 2px solid #ece6f6;
}
.onair__bar i {
  display: block;
  height: 100%;
  background: #8c66ff;
}
.onair__foot {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}
.onair__go {
  color: #b39cff;
}

/* ─── Две колонки: сервисы и желания ───────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
}
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}
.panel {
  padding: 6px 0;
  color: #ece6f6;
  background: #221b30;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--shadow-ink);
}
.panel .empty {
  border: 0;
}
.panel .empty p {
  color: #a59cb8;
}
.lamp-row {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lamp-row li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  font-family: var(--font-mono);
  font-size: 14px;
}
.lamp-row li + li {
  border-top: 1px dashed rgba(236, 230, 246, 0.2);
}
.lamp-row__status {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a59cb8;
}

.wish-mini {
  margin: 0;
  padding: 0;
  list-style: none;
}
.wish-mini li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 2px dotted var(--line-strong);
}
.wish-mini__glyph {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--accent-ink);
  background: var(--accent);
}
.wish-mini a {
  font-weight: 700;
  text-decoration: none;
}
.wish-mini a:hover {
  color: var(--accent);
}
.wish-mini__stars {
  margin-left: auto;
  color: var(--accent);
  letter-spacing: 1px;
}

/* ==========================================================================
   Карточки записей
   ========================================================================== */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 28px;
}
.post-card {
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--shadow-ink);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.post-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--accent);
}
.post-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.post-card__cover,
.post-card__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-bottom: 2px solid var(--ink);
}
.post-card__cover {
  object-fit: cover;
}
.post-card__placeholder {
  position: relative;
  overflow: hidden;
  background: var(--halftone), var(--paper-2);
}
.post-card__placeholder i {
  position: absolute;
  display: block;
}
.post-card__placeholder i:nth-child(1) {
  right: 14%;
  top: 14%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
}
.post-card__placeholder i:nth-child(2) {
  left: -10%;
  right: -10%;
  top: 58%;
  height: 8%;
  background: var(--ink);
  transform: rotate(-16deg);
}
.post-card__placeholder i:nth-child(3) {
  left: 12%;
  top: 20%;
  width: 22%;
  height: 24%;
  background: var(--hot);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: rotate(24deg);
}
.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 18px 20px 22px;
}
.post-card__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-card__title {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.2;
}
.post-card__excerpt {
  font-size: 15.5px;
  color: var(--ink-2);
}
.post-card--lead {
  grid-column: 1 / -1;
}
.post-card--lead .post-card__link {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.post-card--lead .post-card__cover,
.post-card--lead .post-card__placeholder {
  height: 100%;
  min-height: 290px;
  border-bottom: 0;
  border-right: 2px solid var(--ink);
}
.post-card--lead .post-card__body {
  justify-content: center;
  padding: 30px 34px;
}
.post-card--lead .post-card__title {
  font-size: clamp(26px, 3.4vw, 38px);
}
.post-card--lead .post-card__excerpt {
  font-size: 17px;
}
@media (max-width: 760px) {
  .post-card--lead .post-card__link {
    grid-template-columns: 1fr;
  }
  .post-card--lead .post-card__cover,
  .post-card--lead .post-card__placeholder {
    min-height: 0;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }
  .post-card--lead .post-card__body {
    padding: 20px;
  }
}

/* ==========================================================================
   Блог: газетный разворот
   ========================================================================== */

.masthead {
  padding: 36px 0 0;
}
.masthead__top,
.masthead__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.masthead__top {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.masthead__bottom {
  border-top: 1px solid var(--ink);
  border-bottom: 6px double var(--ink);
}
.masthead__bottom a {
  text-decoration: none;
}
.masthead__bottom a:hover {
  color: var(--accent);
}
.masthead__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.masthead__title {
  margin: 10px 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(72px, 15vw, 200px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.masthead .emblem {
  width: clamp(90px, 14vw, 170px);
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 8px;
}
.post-lead {
  margin: 24px 0 28px;
}

/* Статья */
.article__head {
  padding-top: 40px;
}
.article__title {
  margin: 18px 0 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.article__cover {
  margin: 28px auto 8px;
}
.article__cover img {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--accent);
}
.article .container--narrow {
  margin-top: 32px;
}
.article__head.container--narrow {
  margin-top: 0;
}
.prose--article > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.1em 0 0;
  font-family: var(--font-display);
  font-size: 3.3em;
  line-height: 0.9;
  color: var(--accent);
}
.toc-inline {
  margin: 0 0 30px;
  padding: 12px 18px;
  background: var(--card);
  border: 2px solid var(--ink);
}
.toc-inline summary {
  font-family: var(--font-display);
  text-transform: uppercase;
  cursor: pointer;
}
.toc-inline ol {
  margin: 10px 0 4px;
  padding-left: 22px;
}
.toc-inline .toc-d3 {
  margin-left: 18px;
  font-size: 15px;
}
.article__foot {
  margin: 56px 0 0;
}
.article__end {
  display: block;
  margin-bottom: 30px;
  text-align: center;
  letter-spacing: 0.6em;
  color: var(--accent);
}

.prev-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.prev-next__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.25;
  text-decoration: none;
  background: var(--card);
  border: 2px solid var(--ink);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.prev-next__item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--accent);
}
.prev-next__item small {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.prev-next__item--next {
  text-align: right;
}
@media (max-width: 600px) {
  .prev-next {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Желания: талоны
   ========================================================================== */

.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 16px;
}
.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--card);
  border: 2px solid var(--ink);
  transition:
    background 0.15s,
    color 0.15s;
}
.cat-tab i {
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  color: var(--paper);
  background: var(--ink);
}
.cat-tab:hover,
.cat-tab.is-active {
  color: var(--paper);
  background: var(--ink);
}
.cat-tab.is-active i,
.cat-tab:hover i {
  color: var(--accent-ink);
  background: var(--accent);
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 10px;
}
.filter-bar__note {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}
.filter-bar__note a {
  color: var(--accent);
}
.segmented {
  display: inline-flex;
  border: 2px solid var(--ink);
}
.segmented a {
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.segmented a + a {
  border-left: 2px solid var(--ink);
}
.segmented a.is-active {
  color: var(--accent-ink);
  background: var(--accent);
}

.coupon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 26px;
  padding-bottom: 12px;
}
.coupon {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--shadow-ink);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.coupon:target {
  box-shadow:
    0 0 0 4px var(--accent),
    5px 5px 0 var(--shadow-ink);
}
.coupon__stub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 6px;
  color: var(--accent-ink);
  background: var(--accent);
  border-right: 2px dashed var(--ink);
}
/* перфорация: полукруглые вырезы */
.coupon__stub::before,
.coupon__stub::after {
  content: '';
  position: absolute;
  right: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.coupon__stub::before {
  top: -11px;
}
.coupon__stub::after {
  bottom: -11px;
}
.coupon__no {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.coupon__glyph {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
}
.coupon__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.coupon__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 16px 18px 14px;
}
.coupon__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 2px solid var(--ink);
}
.coupon__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.25;
}
.coupon__desc {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
}
.coupon__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
}
.coupon__price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
}
.coupon__link {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.coupon__link:hover {
  text-decoration: underline;
}
.coupon--got .coupon__stub {
  background: var(--muted);
}
.coupon--got .coupon__body {
  opacity: 0.6;
}
.coupon--reserved .coupon__stub {
  color: var(--paper);
  background: var(--ink);
}
.coupon--got .coupon__foot,
.coupon--reserved .coupon__foot {
  padding-right: 148px;
}
.stamp {
  --c: var(--accent);
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 3px 8px;
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--c);
  border: 3px double var(--c);
  transform: rotate(-9deg);
  pointer-events: none;
  background: var(--card);
}
.stamp--got {
  --c: var(--ok);
}

/* ==========================================================================
   Академия
   ========================================================================== */

.search-form {
  display: flex;
  margin: 30px 0 8px;
  background: var(--card);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--shadow-ink);
  transition: box-shadow 0.15s;
}
.search-form:focus-within {
  box-shadow: 6px 6px 0 var(--accent);
}
.search-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  font-size: 18px;
  background: transparent;
  border: 0;
  outline: none;
}
.search-form .btn {
  border: 0;
  border-left: 3px solid var(--ink);
  box-shadow: none;
  transform: none;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 26px;
}
.topic-card {
  --c: var(--accent);
  --c-ink: var(--accent-ink);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 290px;
  padding: 22px 22px 20px 36px;
  overflow: hidden;
  color: var(--c-ink);
  text-decoration: none;
  background: var(--c);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--shadow-ink);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.topic-card:hover {
  transform: translate(-3px, -3px) rotate(-0.5deg);
  box-shadow: 11px 11px 0 var(--shadow-ink);
}
/* корешок книги */
.topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 16px;
  background: rgba(0, 0, 0, 0.3);
  border-right: 2px solid rgba(0, 0, 0, 0.4);
}
.topic-card--red {
  --c: #e3402b;
  --c-ink: #fff6ec;
}
.topic-card--ink {
  --c: #141118;
  --c-ink: #efe8db;
}
.topic-card--gold {
  --c: #e0a530;
  --c-ink: #141118;
}
.topic-card--sakura {
  --c: #e98bb0;
  --c-ink: #141118;
}
.topic-card--matcha {
  --c: #2e8f6e;
  --c-ink: #f4fff9;
}
.topic-card__glyph {
  position: absolute;
  right: -8px;
  bottom: -34px;
  font-family: var(--font-display);
  font-size: 150px;
  line-height: 1;
  opacity: 0.2;
  pointer-events: none;
}
.topic-card__vol {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}
.topic-card__title {
  position: relative;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.05;
}
.topic-card__desc {
  position: relative;
  font-size: 15px;
  opacity: 0.92;
}
.topic-card .progress {
  position: relative;
  margin-top: auto;
}
.topic-card__count {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  opacity: 0.85;
}

.worklog {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--ink);
}
.worklog__item {
  display: grid;
  grid-template-columns: 130px 36px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line-strong);
}
.worklog__time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.worklog__glyph {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent-ink);
  background: var(--accent);
}
.worklog__title {
  font-weight: 700;
  text-decoration: none;
}
.worklog__title:hover {
  color: var(--accent);
}
.worklog__topic {
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 720px) {
  .worklog__item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 4px 12px;
  }
  .worklog__glyph {
    grid-row: span 2;
  }
  .worklog__time,
  .worklog__topic,
  .worklog__item .badge {
    grid-column: 2;
    justify-self: start;
  }
  .worklog__time {
    order: 5;
  }
}

/* Документация: оглавление тома · текст · «на странице» */
.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 210px;
  gap: 44px;
  align-items: start;
  padding: 40px 0 24px;
}
.docs-layout:not(:has(.docs-layout__toc)),
.docs-layout--topic {
  grid-template-columns: 250px minmax(0, 1fr);
}
.docs-layout__side,
.docs-layout__toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.doc-nav-toggle > summary {
  display: none;
}
.doc-nav__topic {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 12px;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.15;
  text-decoration: none;
  border-bottom: 3px solid var(--ink);
}
.doc-nav__topic span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  font-size: 13px;
  color: var(--accent-ink);
  background: var(--accent);
}
.doc-nav ol {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* страницы — станции на вертикальной ветке */
.doc-nav ol::before {
  content: '';
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 6px;
  width: 3px;
  background: var(--ink);
}
.doc-nav li a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 4px 7px 0;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none;
  color: var(--ink-2);
}
.doc-nav li a:hover {
  color: var(--accent);
}
.dot {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 50%;
}
.dot--done {
  background: var(--ink);
}
.dot--wip {
  background: linear-gradient(90deg, var(--ink) 50%, var(--paper) 50%);
}
.dot--draft {
  border-style: dashed;
}
.doc-nav li.is-active a {
  font-weight: 700;
  color: var(--accent);
}
.doc-nav li.is-active .dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px var(--paper),
    0 0 0 5px var(--accent);
}
.doc-nav__no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}
.doc-nav__planned {
  margin: 10px 0 0;
  padding-left: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.toc {
  font-size: 14px;
}
.toc__title {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line-strong);
}
.toc a {
  display: block;
  margin-left: -2px;
  padding: 4px 0 4px 12px;
  line-height: 1.35;
  text-decoration: none;
  color: var(--ink-2);
  border-left: 2px solid transparent;
}
.toc a:hover {
  color: var(--accent);
}
.toc a.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
}
.toc .toc-d3 a {
  padding-left: 24px;
  font-size: 13px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--accent);
}
.doc__head {
  margin-bottom: 30px;
}
.doc__title {
  margin: 12px 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.1;
}
.doc__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}
.doc__summary {
  margin: 18px 0 0;
  padding-left: 14px;
  font-size: 19px;
  color: var(--ink-2);
  border-left: 4px solid var(--accent);
}

.chapter-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chapter {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  text-decoration: none;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--shadow-ink);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.chapter:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--accent);
}
.chapter__no {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent);
}
.chapter__title {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
}
.chapter__summary {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: var(--ink-2);
}
.chapter__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.chapter__arrow {
  font-size: 24px;
}

@media (max-width: 1100px) {
  .docs-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .docs-layout__toc {
    display: none;
  }
}
@media (max-width: 820px) {
  .docs-layout,
  .docs-layout--topic,
  .docs-layout:not(:has(.docs-layout__toc)) {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 24px;
  }
  .docs-layout__side {
    position: static;
    max-height: none;
  }
  .docs-layout--topic .docs-layout__side {
    display: none;
  }
  .doc-nav-toggle {
    padding: 10px 14px;
    background: var(--card);
    border: 2px solid var(--ink);
  }
  .doc-nav-toggle > summary {
    display: block;
    font-family: var(--font-display);
    text-transform: uppercase;
    cursor: pointer;
  }
  .doc-nav-toggle[open] > summary {
    margin-bottom: 12px;
  }
  .chapter {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 14px 16px;
    gap: 12px;
  }
  .chapter__no {
    font-size: 22px;
  }
  .chapter__arrow {
    display: none;
  }
}

/* Поиск */
.search-results {
  margin: 0;
  padding: 0;
  list-style: none;
}
.search-hit {
  padding: 18px 0;
  border-bottom: 2px dashed var(--line-strong);
}
.search-hit__kind {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.search-hit__title {
  font-family: var(--font-display);
  font-size: 21px;
  text-decoration: none;
}
.search-hit__title:hover {
  color: var(--accent);
}
.search-hit__text {
  margin: 6px 0 4px;
  font-size: 15.5px;
  color: var(--ink-2);
}
.search-hit__text mark {
  color: inherit;
  background: var(--accent-soft);
}
.search-hit__date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ==========================================================================
   Сервисы: пульт
   ========================================================================== */

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 26px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  list-style: none;
  border: 2px dashed var(--line-strong);
}
.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 26px;
}
.module {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  overflow: hidden;
  color: #ece6f6;
  background: #221b30;
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--shadow-ink);
}
.module--offline::before,
.module--maintenance::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: repeating-linear-gradient(-45deg, var(--hz, #ec3b2f) 0 10px, #0d0b10 10px 20px);
}
.module--maintenance::before {
  --hz: #f2a51f;
}
.module__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a59cb8;
}
.module__status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ece6f6;
}
.module__plate {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  color: #141118;
  background: #efe8db;
  border: 2px solid #0d0b10;
}
.module__glyph {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  font-family: var(--font-display);
  font-size: 22px;
  color: #fbf7ee;
  background: #5b2bd9;
  border: 2px solid #0d0b10;
}
.module__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.15;
}
.module__desc {
  margin: 4px 0 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: #4a4250;
}
.module__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.module__tags li {
  padding: 1px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid rgba(236, 230, 246, 0.4);
}
.module__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.module__telemetry {
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #7dff9a;
  background: #0b0f0c;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.9);
  text-shadow: 0 0 4px rgba(125, 255, 154, 0.55);
}
.launch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fbf7ee;
  background: #5b2bd9;
  border: 2px solid #0d0b10;
  box-shadow: 0 4px 0 #0d0b10;
  transition:
    transform 0.08s,
    box-shadow 0.08s;
}
.launch:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #0d0b10;
}
.launch--off {
  color: #a59cb8;
  background: #3a3248;
  cursor: default;
}

/* ==========================================================================
   404 и авария
   ========================================================================== */

.lost {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100vh - var(--header-h));
  padding: 40px 0 0;
  overflow: hidden;
  background: var(--halftone);
  border-bottom: 3px solid var(--ink);
}
.lost__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: end;
}
.lost__art {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 560px;
}
.lost__code {
  position: absolute;
  top: 4%;
  left: 50%;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(110px, 15vw, 220px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 3px var(--ink);
  transform: translateX(-50%);
  user-select: none;
  white-space: nowrap;
}
.lost__code span {
  color: var(--accent);
  -webkit-text-stroke: 0;
}
.lost__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  transition:
    opacity 1.2s ease,
    filter 1.2s ease;
}
.lost__mai {
  display: block;
  width: auto;
  height: min(80vh, 740px);
}
.lost__text {
  padding-bottom: 64px;
}
.lost__title {
  margin: 16px 0 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.05;
}
.lost__jp {
  margin: 0 0 18px;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.lost__lead {
  max-width: 52ch;
  margin: 0 0 20px;
  font-size: 18px;
  color: var(--ink-2);
}
[data-vanish] {
  transition:
    opacity 0.9s ease,
    filter 0.9s ease;
}
.ticket {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  border: 2px solid var(--ink);
}
.ticket span {
  padding: 6px 10px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--paper);
  background: var(--ink);
}
.ticket span:last-child {
  color: var(--accent-ink);
  background: var(--accent);
}
.ticket code {
  min-width: 0;
  padding: 6px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--card);
}
.memory {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 440px;
  margin: 0 0 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
}
.memory__bar {
  flex: 1;
  height: 12px;
  border: 2px solid var(--ink);
}
.memory__bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transition: width 0.3s linear;
}
.memory b {
  min-width: 4ch;
  text-align: right;
}
.lost__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.lost__hint {
  margin: 28px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.lost--error {
  align-items: center;
}
.lost--error .lost__inner {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}
.lost--error .lost__art {
  min-height: 0;
}
.lost--error .lost__code {
  position: static;
  transform: none;
}
.lost--error .lost__text {
  padding-bottom: 0;
}
@media (max-width: 860px) {
  .lost {
    padding-top: 20px;
  }
  .lost__inner,
  .lost--error .lost__inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .lost__art {
    min-height: 0;
    margin-bottom: 18px;
    border-bottom: 3px solid var(--ink);
  }
  .lost--error .lost__art {
    border-bottom: 0;
  }
  .lost__mai {
    height: 60vh;
  }
  .lost__text {
    padding-bottom: 40px;
  }
}

/* ==========================================================================
   Станция Фудзисава (секрет)
   ========================================================================== */

.fujisawa {
  position: relative;
  overflow: hidden;
  background: var(--halftone);
}
/* волны — море у Ситиригахамы */
.fujisawa::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  border-top: 3px solid var(--ink);
  background:
    radial-gradient(circle at 50% 100%, transparent 6px, var(--ink) 7px 9px, transparent 10px 14px, var(--ink) 15px 17px, transparent 18px 22px, var(--ink) 23px 25px, var(--accent) 26px) 0 0 / 52px 26px,
    var(--accent);
}
.fujisawa__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: end;
  padding: 48px 0 100px;
}
.fujisawa__art {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  display: flex;
  justify-content: center;
  border-bottom: 3px solid var(--ink);
}
.fujisawa__text {
  padding-bottom: 56px;
}
.fujisawa__mai {
  height: min(76vh, 700px);
  width: auto;
}
.fujisawa__sign {
  position: absolute;
  right: 0;
  bottom: 12%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 18px 6px;
  color: #141118;
  background: #fff;
  border: 3px solid #141118;
  border-bottom: 9px solid #2e8f6e;
  box-shadow: 5px 5px 0 #141118;
}
.fujisawa__sign b {
  font-size: 32px;
  line-height: 1.1;
}
.fujisawa__sign small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
}
.fujisawa__title {
  margin: 12px 0 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.fujisawa__lead {
  font-size: 18px;
  color: var(--ink-2);
}
.eggs {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.eggs__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--card);
  border: 2px dashed var(--ink);
}
.eggs__mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  font-weight: 800;
  color: transparent;
  border: 2px dashed var(--muted);
}
.eggs__body b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
}
.eggs__body small {
  font-size: 14px;
  color: var(--muted);
}
.eggs__item.is-found {
  border-style: solid;
}
.eggs__item.is-found .eggs__mark {
  color: var(--accent-ink);
  background: var(--accent);
  border: 2px solid var(--ink);
  transform: rotate(-8deg);
}
.eggs__count {
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.eggs__count b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  color: var(--accent);
}
@media (max-width: 860px) {
  .fujisawa__inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 24px;
  }
  .fujisawa__art {
    position: relative;
    top: 0;
    order: 2;
    border-bottom: 0;
  }
  .fujisawa__text {
    padding-bottom: 0;
  }
  .fujisawa__mai {
    height: 58vh;
  }
}

/* ==========================================================================
   Подвал: поезд на вечной дороге
   ========================================================================== */

.footer {
  position: relative;
  margin-top: 96px;
  color: var(--night-ink);
  background: var(--night);
  border-top: 3px solid var(--ink);
}
.rail {
  --rail-sky: #5b2bd9;
  position: relative;
  height: clamp(230px, 24vw, 360px);
  overflow: hidden;
  background:
    radial-gradient(rgba(13, 11, 16, 0.2) 1.2px, transparent 1.45px) 0 0 / 12px 12px,
    var(--rail-sky);
}
:root[data-theme='dark'] .rail {
  --rail-sky: #4321a6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .rail {
    --rail-sky: #4321a6;
  }
}
.rail__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}
.rail.has-webgl .rail__canvas {
  opacity: 1;
}
/* Без WebGL — плоский плакат: солнце, чёрная земля и бегущие шпалы */
.rail__fallback {
  position: absolute;
  inset: 0;
}
.rail.has-webgl .rail__fallback {
  display: none;
}
.rail__fallback i {
  position: absolute;
  display: block;
}
.rail__fallback i:nth-child(1) {
  right: 10%;
  top: 12%;
  width: min(30%, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #efe8db;
  box-shadow: 14px 14px 0 rgba(13, 11, 16, 0.35);
}
.rail__fallback i:nth-child(2) {
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  background:
    repeating-linear-gradient(90deg, #bdb2a0 0 14px, transparent 14px 46px) 0 22px / 100% 18px no-repeat,
    linear-gradient(#efe8db, #efe8db) 0 16px / 100% 4px no-repeat,
    linear-gradient(#efe8db, #efe8db) 0 42px / 100% 4px no-repeat,
    var(--night);
  animation: rail-flat 0.9s linear infinite;
}
@keyframes rail-flat {
  to {
    background-position:
      -46px 22px,
      0 16px,
      0 42px,
      0 0;
  }
}
/* Призрачная станция: табличка у путей, которую почти не видно */
.rail__sign {
  position: absolute;
  right: 4%;
  top: 22%;
  z-index: 2;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #141118;
  text-decoration: none;
  background: #fff;
  border: 2px solid #141118;
  border-bottom-width: 4px;
  opacity: 0.08;
  transition: opacity 0.6s ease;
}
.rail__sign:hover,
.rail__sign:focus-visible {
  opacity: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0 40px;
}
.footer__brand .logo {
  color: var(--night-ink);
}
.footer__brand p {
  max-width: 38ch;
  margin: 14px 0 0;
  font-size: 15px;
  color: rgba(239, 232, 219, 0.7);
}
.footer__nav {
  display: grid;
  gap: 2px;
  align-content: start;
}
.footer__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  text-decoration: none;
  color: var(--night-ink);
}
.footer__nav a i {
  padding: 1px 6px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fbf7ee;
  background: #5b2bd9;
}
.footer__nav a:hover {
  color: #b39cff;
}
.footer .social {
  --brand: #8c66ff;
  --brand-ink: #fff;
  color: var(--night-ink);
  background: transparent;
  border-color: rgba(239, 232, 219, 0.5);
  box-shadow: 3px 3px 0 #5b2bd9;
}
.footer .social .icon {
  color: currentColor;
}
.footer__extra {
  display: flex;
  gap: 18px;
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
}
.footer__extra a {
  color: rgba(239, 232, 219, 0.7);
  text-decoration: none;
}
.footer__extra a:hover {
  color: #b39cff;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 18px 0 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(239, 232, 219, 0.55);
  border-top: 1px solid rgba(239, 232, 219, 0.15);
}
.footer__bottom .accent {
  color: #b39cff;
}
@media (max-width: 860px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Плавающие элементы и пасхалки
   ========================================================================== */

.admin-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  gap: 8px;
}
.admin-fab__btn {
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
  color: #efe8db;
  background: #141118;
  border: 2px solid #5b2bd9;
  box-shadow: 3px 3px 0 #5b2bd9;
}
.admin-fab__btn--edit {
  color: #fbf7ee;
  background: #5b2bd9;
  border-color: #141118;
  box-shadow: 3px 3px 0 #141118;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 300;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #efe8db;
  background: #141118;
  border: 2px solid #8c66ff;
  box-shadow: 5px 5px 0 #5b2bd9;
  transform: translate(-50%, 160%);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.toast.is-shown {
  transform: translate(-50%, 0);
}
.toast b {
  color: #b39cff;
}

/* Маи выглядывает из-за края экрана */
.mai-peek {
  position: fixed;
  right: 4vw;
  bottom: 0;
  z-index: 150;
  width: min(240px, 46vw);
  transform: translateY(105%);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.mai-peek.is-shown {
  transform: translateY(30%);
}
.mai-peek img {
  display: block;
  width: 100%;
  height: auto;
}
.mai-peek__bubble {
  position: absolute;
  right: 78%;
  top: 4%;
  width: max-content;
  max-width: 220px;
  padding: 8px 12px;
  font-size: 14px;
  color: #141118;
  background: #fff;
  border: 2px solid #141118;
  box-shadow: 3px 3px 0 #141118;
}

.stamp-mark {
  position: fixed;
  z-index: 130;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  font-family: var(--font-jp);
  font-weight: 800;
  font-size: 40px;
  color: var(--accent);
  border: 4px solid var(--accent);
  pointer-events: none;
  opacity: 0.9;
  transform: rotate(var(--rot, -8deg));
  animation:
    stamp-in 0.25s ease-out,
    stamp-out 1.6s 1.2s ease forwards;
}
@keyframes stamp-in {
  from {
    transform: scale(1.8) rotate(var(--rot));
    opacity: 0;
  }
}
@keyframes stamp-out {
  to {
    opacity: 0;
  }
}

/* Лепестки для «старого кода» */
.petal-storm {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -24px;
  animation: petal-fall linear forwards;
}
.petal i {
  display: block;
  width: 13px;
  height: 10px;
  background: #f4b6cc;
  border-radius: 13px 1px 13px 1px;
  animation: petal-sway ease-in-out infinite alternate;
}
.petal:nth-child(3n) i {
  background: #8c66ff;
}
@keyframes petal-fall {
  to {
    transform: translateY(var(--fall, 900px));
  }
}
@keyframes petal-sway {
  from {
    transform: translateX(-24px) rotate(0deg);
  }
  to {
    transform: translateX(24px) rotate(260deg);
  }
}

/* «Режим кролика»: у печати-логотипа вырастают уши */
.bunny-mode .topbar .logo__mark {
  position: relative;
}
.bunny-mode .topbar .logo__mark::before,
.bunny-mode .topbar .logo__mark::after {
  content: '';
  position: absolute;
  bottom: 78%;
  width: 11px;
  height: 26px;
  border-radius: 50% 50% 40% 40%;
  background: var(--ink);
  box-shadow: inset 0 -6px 0 3px #f4b6cc;
}
.bunny-mode .topbar .logo__mark::before {
  left: 6px;
  transform: rotate(-12deg);
}
.bunny-mode .topbar .logo__mark::after {
  right: 6px;
  transform: rotate(14deg);
}

/* ==========================================================================
   Проекты: плакаты на стене
   ========================================================================== */

.legend--inline {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 32px;
}
.project {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--shadow-ink);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.project:hover {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 var(--accent);
}
.project__cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
}
.project__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project__placeholder {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--halftone), var(--paper-2);
}
.project__placeholder i {
  position: absolute;
  display: block;
}
.project__placeholder i:nth-child(1) {
  right: 8%;
  top: 10%;
  height: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
}
.project__placeholder i:nth-child(2) {
  left: -6%;
  right: -6%;
  bottom: 22%;
  height: 9%;
  background: var(--ink);
  transform: rotate(-9deg);
}
.project__placeholder i:nth-child(3) {
  left: 6%;
  top: 12%;
  width: 24%;
  height: 30%;
  background: var(--hot);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.project__placeholder b {
  position: absolute;
  right: 8%;
  top: 10%;
  display: grid;
  place-items: center;
  height: 78%;
  aspect-ratio: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  color: var(--accent-ink);
}
.project__status {
  position: absolute;
  top: 14px;
  left: -8px;
  padding: 5px 10px;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--shadow-ink);
  transform: rotate(-3deg);
}
.project-page .project__status {
  position: static;
  display: inline-block;
}
.project__status--done {
  background: var(--ok);
}
.project__status--paused {
  color: #141118;
  background: var(--gold);
}
.project__status--idea {
  color: var(--ink);
  background: var(--card);
  border-style: dashed;
}
.project__status--archived {
  color: var(--paper);
  background: var(--muted);
}
.project__dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  vertical-align: -1px;
  background: var(--accent);
  border: 2px solid var(--ink);
}
.project__dot--done {
  background: var(--ok);
}
.project__dot--paused {
  background: var(--gold);
}
.project__dot--idea {
  background: transparent;
  border-style: dashed;
}
.project__dot--archived {
  background: var(--muted);
}
.project__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 20px 22px 22px;
}
.project__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.project__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.12;
}
.project__title a {
  text-decoration: none;
}
.project__title a:hover {
  color: var(--accent);
}
.project__summary {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-2);
}
.project__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.project__stack li {
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1.5px solid var(--ink);
}
.project__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}
.project__link {
  padding: 6px 12px;
  font-family: var(--font-display);
  font-size: 12.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition:
    background 0.15s,
    color 0.15s;
}
.project__link:hover {
  color: var(--accent-ink);
  background: var(--ink);
}
.project__link--more {
  color: var(--accent-ink);
  background: var(--accent);
}
.project--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}
.project--lead .project__cover {
  aspect-ratio: auto;
  min-height: 320px;
  border-bottom: 0;
  border-right: 3px solid var(--ink);
}
.project--lead .project__body {
  justify-content: center;
  padding: 34px 36px;
}
.project--lead .project__title {
  font-size: clamp(28px, 3.6vw, 44px);
}
.project--lead .project__summary {
  font-size: 17.5px;
}
.project-grid--home .project--lead {
  grid-column: auto;
  display: flex;
}
@media (max-width: 860px) {
  .project--lead {
    grid-template-columns: 1fr;
  }
  .project--lead .project__cover {
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-right: 0;
    border-bottom: 3px solid var(--ink);
  }
  .project--lead .project__body {
    padding: 22px;
  }
}
.project--archived {
  filter: grayscale(0.7);
}

.project-page__head {
  padding-top: 40px;
}
.project-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: center;
  margin-top: 18px;
}
.project-page__status {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}
.project-page .project__links {
  margin-top: 18px;
}
.project-page__cover {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--accent);
}
.project-page__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-page .container--narrow {
  margin-top: 44px;
}
@media (max-width: 860px) {
  .project-page__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ==========================================================================
   Радио: приёмник РП-01
   ========================================================================== */

.receiver {
  --screen: #16121c;
  --screen-ink: #b39cff;
  --screen-dim: rgba(179, 156, 255, 0.13);
  position: relative;
  margin-bottom: 52px;
  background: var(--card);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--shadow-ink);
}
.receiver__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  color: #efe8db;
  background: #141118;
}
.receiver__brand {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.receiver__brand b {
  margin-left: 6px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #b39cff;
}
.receiver__onair {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
  color: #6b6476;
  border: 2px solid #3a3248;
}
.receiver__onair::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}
.receiver__onair.is-on {
  color: #ff4a3a;
  border-color: #ff4a3a;
  text-shadow: 0 0 10px rgba(255, 74, 58, 0.7);
}
.receiver__onair.is-on::before {
  box-shadow: 0 0 10px 2px rgba(255, 74, 58, 0.8);
  animation: lamp-blink 1.8s steps(2, jump-none) infinite;
}

/* Шкала настройки */
.receiver__scale {
  position: relative;
  height: 84px;
  margin: 0;
  overflow: hidden;
  background: var(--screen);
  border-block: 3px solid var(--ink);
}
.receiver__ticks {
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  height: 24px;
}
.receiver__ticks i {
  position: relative;
  width: 2px;
  height: 12px;
  margin-top: auto;
  background: rgba(239, 232, 219, 0.45);
}
.receiver__ticks i:nth-child(4n + 1) {
  height: 22px;
  background: #efe8db;
}
.receiver__ticks b {
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  color: rgba(239, 232, 219, 0.7);
  transform: translateX(-50%);
}
.receiver__mark {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: calc(2% + var(--pos) * 0.96);
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #b39cff;
  white-space: nowrap;
  border: 1px solid rgba(179, 156, 255, 0.5);
  transform: translateX(-50%);
}
.receiver__mark.is-active {
  color: #16121c;
  background: #b39cff;
}
.receiver__needle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(2% + var(--pos) * 0.96);
  width: 3px;
  margin-left: -1.5px;
  background: var(--hot);
  box-shadow: 0 0 12px rgba(227, 64, 43, 0.8);
  transition: left 0.7s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.receiver__needle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -6px;
  border: 7px solid transparent;
  border-top-color: var(--hot);
}

/* Динамик, дисплей, обложка */
.receiver__body {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 200px;
  gap: 24px;
  align-items: center;
  padding: 24px;
}
.receiver__speaker {
  --level: 0;
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 22%, var(--ink) 22% 25%, transparent 25%),
    repeating-radial-gradient(circle, var(--ink) 0 2px, transparent 2px 9px),
    var(--paper-2);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 10px var(--card);
}
.receiver__speaker i {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--ink);
  transform: scale(calc(0.86 + var(--level) * 0.3));
  transition: transform 0.08s linear;
}
.receiver__display {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px 18px;
  color: #ece6f6;
  background: var(--screen);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.6);
}
.receiver__spectrum {
  width: 100%;
  height: 64px;
  margin-bottom: 4px;
}
.receiver__station {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b39cff;
}
.receiver__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.receiver__artist {
  margin: 0;
  font-size: 16px;
  color: #c9c0dc;
}
.receiver__progress {
  height: 8px;
  margin-top: 6px;
  border: 2px solid #ece6f6;
}
.receiver__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #8c66ff;
}
.receiver__time {
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #a59cb8;
}
.receiver__cover {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--halftone), var(--paper-2);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--accent);
}
.receiver__cover img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.receiver__nocover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 64px;
  color: var(--accent);
}

/* Органы управления */
.receiver__controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: 'power keys volume' 'power keys popout';
  gap: 12px 24px;
  align-items: center;
  padding: 20px 24px 24px;
  border-top: 3px solid var(--ink);
  background: var(--paper-2);
}
.receiver__power {
  grid-area: power;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  padding: 0;
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
  color: #fff6ec;
  background: var(--hot);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 6px 0 var(--ink);
  cursor: pointer;
  transition:
    transform 0.08s,
    box-shadow 0.08s;
}
.receiver__power:active,
.receiver__power[aria-pressed='true'] {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--ink);
}
.receiver__power[aria-pressed='true'] {
  color: var(--accent-ink);
  background: var(--accent);
}
.receiver__power[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.receiver__keys {
  grid-area: keys;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.receiver__key {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 110px;
  padding: 10px 12px 12px;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  transition:
    transform 0.08s,
    box-shadow 0.08s,
    background 0.15s;
}
.receiver__key b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
}
.receiver__key span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
}
.receiver__key:hover {
  background: var(--paper);
}
.receiver__key.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--ink);
}
.receiver__key--red.is-active {
  background: #e3402b;
}
.receiver__key--ink.is-active {
  color: #efe8db;
  background: #141118;
}
.receiver__key--gold.is-active {
  color: #141118;
  background: #e0a530;
}
.receiver__key--sakura.is-active {
  color: #141118;
  background: #e98bb0;
}
.receiver__key--matcha.is-active {
  background: #2e8f6e;
}
.receiver__volume {
  grid-area: volume;
  display: grid;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
}
.receiver__volume input {
  width: 180px;
  height: 22px;
  margin: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.receiver__volume input::-webkit-slider-runnable-track {
  height: 6px;
  background: var(--ink);
}
.receiver__volume input::-moz-range-track {
  height: 6px;
  background: var(--ink);
}
.receiver__volume input::-webkit-slider-thumb {
  width: 18px;
  height: 26px;
  margin-top: -10px;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 0;
  -webkit-appearance: none;
}
.receiver__volume input::-moz-range-thumb {
  width: 14px;
  height: 22px;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 0;
}
.receiver__popout {
  grid-area: popout;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
}
.receiver__popout:hover {
  text-decoration: underline;
}
@media (max-width: 1000px) {
  .receiver__body {
    grid-template-columns: 140px minmax(0, 1fr);
  }
  .receiver__cover {
    display: none;
  }
}
@media (max-width: 720px) {
  .receiver__body {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .receiver__speaker {
    display: none;
  }
  .receiver__mark {
    font-size: 10px;
  }
  .receiver__controls {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: 'power volume' 'keys keys' 'popout popout';
    padding: 16px;
  }
  .receiver__power {
    width: 76px;
    height: 76px;
    font-size: 14px;
  }
  .receiver__volume input {
    width: 100%;
  }
  .receiver__key {
    flex: 1 1 120px;
  }
}

/* «Далее в эфире» и станции */
.radio__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 44px;
}
@media (max-width: 900px) {
  .radio__grid {
    grid-template-columns: 1fr;
  }
}
.air-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--ink);
}
.air-list__item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  grid-template-areas: 'time title len' 'time artist len';
  gap: 0 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-strong);
}
.air-list__time {
  grid-area: time;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.air-list__title {
  grid-area: title;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.air-list__artist {
  grid-area: artist;
  font-size: 14.5px;
  color: var(--muted);
}
.air-list__len {
  grid-area: len;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}
.air-list__item.is-now .air-list__time {
  justify-self: start;
  padding: 2px 6px;
  font-size: 11px;
  text-transform: uppercase;
  color: #fff6ec;
  background: var(--hot);
}
.station-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.station-card a {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  grid-template-areas: 'freq title' 'freq desc' 'freq meta';
  gap: 2px 16px;
  align-items: center;
  padding: 14px 16px;
  text-decoration: none;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--shadow-ink);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.station-card a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--accent);
}
.station-card.is-active a {
  box-shadow: 4px 4px 0 var(--accent);
  border-width: 3px;
}
.station-card__freq {
  grid-area: freq;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  color: var(--accent-ink);
  background: var(--accent);
}
.station-card--red .station-card__freq {
  background: #e3402b;
}
.station-card--ink .station-card__freq {
  color: #efe8db;
  background: #141118;
}
.station-card--gold .station-card__freq {
  color: #141118;
  background: #e0a530;
}
.station-card--sakura .station-card__freq {
  color: #141118;
  background: #e98bb0;
}
.station-card--matcha .station-card__freq {
  background: #2e8f6e;
}
.station-card__title {
  grid-area: title;
  font-family: var(--font-display);
  font-size: 18px;
}
.station-card__desc {
  grid-area: desc;
  font-size: 14.5px;
  color: var(--ink-2);
}
.station-card__meta {
  grid-area: meta;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.radio__total {
  margin-top: 16px;
}

/* Мини-приёмник в отдельном окне */
.page--radio-mini {
  min-height: 100vh;
}
.radio-mini {
  padding: 14px;
}
.radio-mini .receiver {
  margin: 0;
  box-shadow: 6px 6px 0 var(--shadow-ink);
}
.receiver--mini .receiver__body {
  grid-template-columns: 1fr;
  padding: 14px;
}
.receiver--mini .receiver__speaker,
.receiver--mini .receiver__cover {
  display: none;
}
.receiver--mini .receiver__controls {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: 'power volume' 'keys keys';
  padding: 14px;
}
.receiver--mini .receiver__volume input {
  width: 100%;
}
.receiver--mini .receiver__key {
  flex: 1 1 110px;
}
