/* =========================================================================
   MINEAPK — оформление в стиле Minecraft
   Пиксельные панели, GUI-кнопки с фаской, блочные текстуры.
   Без внешних запросов: шрифты и иконки лежат на своём домене.
   ========================================================================= */

/* ------------------------------------------------------------- шрифты */
/* Tiny5 — блочный пиксельный шрифт, ближайший к игровому.
   Взят вместо Pixelify Sans: там кириллическая «С» неотличима от «О»,
   и «Скачать» читалось как «Окачать» — критично для главного запроса сайта. */
@font-face {
  font-family: 'Tiny5';
  src: url('/assets/fonts/Tiny5-cyrillic.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Tiny5';
  src: url('/assets/fonts/Tiny5-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2190-21BB;
}
@font-face {
  font-family: 'Rubik';
  src: url('/assets/fonts/Rubik-cyrillic.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Rubik';
  src: url('/assets/fonts/Rubik-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122;
}

/* ------------------------------------------------------------- токены */
:root {
  /* блоки Minecraft */
  --grass:        #6aa746;
  --grass-light:  #86c95f;
  --grass-dark:   #3f7a26;
  --dirt:         #8b6b45;
  --dirt-light:   #a5824f;
  --dirt-dark:    #5e472d;
  --stone:        #7d7d7d;
  --stone-light:  #a3a3a3;
  --stone-dark:   #4f4f4f;
  --gold:         #f0b429;
  --gold-light:   #ffd45e;
  --gold-dark:    #a9760d;
  --diamond:      #3ce0d8;
  --diamond-dark: #1a8e8a;
  --redstone:     #d8452f;
  --redstone-dark:#8f2418;
  --emerald:      #17c15b;
  --lapis:        #3b5bd8;
  --sky:          #58a5f0;
  --water:        #2f7fd8;
  --netherbrick:  #4a2529;

  /* интерфейс */
  --bg:        #0d0f11;
  --bg-2:      #14171a;
  --panel:     #1c2024;
  --panel-2:   #23282d;
  --line:      #33393f;
  --text:      #e8edf1;
  --text-dim:  #a3adb6;
  --text-mute: #79848d;

  --px: 4px;                 /* базовый «пиксель» фаски */
  --wrap: 1140px;
  --radius: 0;               /* Minecraft — без скруглений */

  --font-pixel: 'Tiny5', 'Courier New', monospace;
  --font-body: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* --------------------------------------------------------------- база */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  background-color: var(--bg);
  /* Фон — тёмный «камень»: два наложенных пиксельных паттерна.
     Держим его именно на html, а не на body: при pinch-zoom мобильный браузер
     показывает область шире layout viewport, и фон body туда не достаёт —
     справа от контента появлялась голая чёрная полоса. Фон html растягивается
     на весь холст, поэтому шва не видно. */
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.014) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.014) 75%),
    linear-gradient(45deg, rgba(0,0,0,.22) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.22) 75%);
  background-size: 16px 16px, 16px 16px;
  background-position: 0 0, 8px 8px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  /* Фон живёт на html — см. комментарий там. Здесь он не задаётся намеренно,
     иначе при отдалении страницы виден стык двух разных фонов. */
  overflow-x: hidden;
  padding-bottom: 78px;               /* место под мобильный хотбар */
}

img { max-width: 100%; height: auto; display: block; }
.mc-icon { image-rendering: pixelated; display: inline-block; vertical-align: middle; flex: none; }

a { color: var(--grass-light); text-decoration: none; }
a:hover { color: var(--gold-light); text-decoration: underline; }

code {
  font-family: var(--font-pixel);
  font-size: 1.05em;
  background: #0b0d0f;
  border: 2px solid var(--line);
  padding: 1px 7px;
  color: var(--gold-light);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

.visually-hidden, .skip:not(:focus) {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed; z-index: 100; top: 8px; left: 8px;
  background: var(--gold); color: #1a1a1a; padding: 10px 16px;
  font-family: var(--font-pixel); font-weight: 700;
}

/* ------------------------------------------------------- типографика */
h1, h2, h3, h4 {
  font-family: var(--font-pixel);
  font-weight: 700;
  /* Не опускать ниже 1.3. У Tiny5 заглавные высотой 0.625em, а бреве у «Й»
     доходит до 1.0em и вылезает за ascender шрифта (0.875em). На 1.18 галка
     над «Й» в словах «Майнкрафт», «шейдеры» налезала на строку выше и читалась
     как оторванный от буквы штрих. */
  line-height: 1.3;
  letter-spacing: .3px;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(23px, 4.2vw, 32px);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-shadow: 0 3px 0 rgba(0,0,0,.55);
}
.h2::after {
  /* короткое золотое подчёркивание — как полоска опыта */
  content: '';
  flex: none;
  display: block;
}
.h3 {
  font-size: clamp(19px, 3.2vw, 23px);
  margin: 26px 0 10px;
  color: var(--gold-light);
}

.prose p { margin-bottom: 14px; color: var(--text-dim); }
.prose p:last-child { margin-bottom: 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------------------------------- панели Minecraft */
/* Панель = блок с «фаской»: светлая грань сверху-слева, тёмная снизу-справа */
.mc-panel {
  position: relative;
  background: var(--panel);
  border: 2px solid #0a0c0e;
  box-shadow:
    inset var(--px) var(--px) 0 rgba(255,255,255,.07),
    inset calc(var(--px) * -1) calc(var(--px) * -1) 0 rgba(0,0,0,.45),
    0 6px 0 rgba(0,0,0,.35);
  padding: 22px;
  margin-bottom: 22px;
}

.mc-panel--dirt {
  background-color: #5e472d;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.05) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.05) 75%),
    linear-gradient(45deg, rgba(0,0,0,.16) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.16) 75%);
  background-size: 12px 12px;
  background-position: 0 0, 6px 6px;
}
.mc-panel--dirt .prose p,
.mc-panel--dirt p { color: #f0e6da; }

.mc-panel--glow { border-color: var(--grass-dark); }
.mc-panel--glow::before {
  content: '';
  position: absolute; inset: -2px;
  border: 2px solid var(--grass);
  opacity: .5;
  pointer-events: none;
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .22; } 50% { opacity: .7; } }

.mc-panel--grass    { border-left: 6px solid var(--grass); }
.mc-panel--sky      { border-left: 6px solid var(--sky); }
.mc-panel--water    { border-left: 6px solid var(--water); }
.mc-panel--gold     { border-left: 6px solid var(--gold); }
.mc-panel--redstone { border-left: 6px solid var(--redstone); }

/* ------------------------------------------------------ GUI-кнопки */
.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 18px;
  /* Без uppercase: в пиксельном шрифте прописная «С» почти неотличима от «О»
     («СКАЧАТЬ» читается как «ОКАЧАТЬ»). В самой игре кнопки тоже в обычном регистре. */
  letter-spacing: .4px;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0,0,0,.5);
  background: var(--stone);
  border: 2px solid #0a0c0e;
  padding: 13px 22px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  box-shadow:
    inset var(--px) var(--px) 0 rgba(255,255,255,.28),
    inset calc(var(--px) * -1) calc(var(--px) * -1) 0 rgba(0,0,0,.4),
    0 5px 0 rgba(0,0,0,.4);
  transition: transform .06s linear, filter .12s linear;
}
.mc-btn:hover { filter: brightness(1.12); color: #fff; text-decoration: none; }
.mc-btn:active {
  transform: translateY(4px);
  box-shadow:
    inset calc(var(--px) * -1) calc(var(--px) * -1) 0 rgba(255,255,255,.2),
    inset var(--px) var(--px) 0 rgba(0,0,0,.4),
    0 1px 0 rgba(0,0,0,.4);
}

.mc-btn--grass { background: var(--grass); }
.mc-btn--gold  { background: var(--gold); color: #2a1d02; text-shadow: 0 2px 0 rgba(255,255,255,.25); }
.mc-btn--stone { background: var(--stone); }
.mc-btn--sm    { font-size: 14px; padding: 9px 14px; }
.mc-btn--lg    { font-size: clamp(17px, 3.4vw, 21px); padding: 17px 30px; }
.mc-btn--block { display: flex; width: 100%; }

/* ------------------------------------------------------------ шапка */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #16191c;
  border-bottom: 4px solid var(--grass-dark);
  box-shadow: 0 4px 0 rgba(0,0,0,.4);
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__cube { image-rendering: pixelated; }
.logo:hover { text-decoration: none; }
.logo__text {
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 3px 0 rgba(0,0,0,.6);
}
.logo__text b { color: var(--grass-light); font-weight: 700; }

.mainnav {
  background: #101315;
  border-top: 2px solid #0a0c0e;
  position: relative;
}
.mainnav::after {
  /* подсказка, что полоса разделов прокручивается вбок */
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0; width: 34px;
  background: linear-gradient(90deg, rgba(16,19,21,0), #101315);
  pointer-events: none;
}
@media (min-width: 1000px) { .mainnav::after { display: none; } }
.mainnav__in {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 7px;
  padding-bottom: 7px;
}
.mainnav__in::-webkit-scrollbar { display: none; }

.navpill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 7px 13px;
  font-family: var(--font-pixel);
  font-size: 15px;
  color: var(--text-dim);
  background: #1a1e21;
  border: 2px solid #0a0c0e;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.06), inset -2px -2px 0 rgba(0,0,0,.4);
  white-space: nowrap;
}
.navpill:hover { color: #fff; background: var(--stone-dark); text-decoration: none; }
.navpill.is-active { color: #fff; background: var(--grass-dark); border-color: var(--grass); }

/* ------------------------------------------------------ хлебные крошки */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 12px 0 2px;
  font-size: 14px;
  color: var(--text-mute);
}
.crumbs a { color: var(--text-dim); }
.crumbs__sep { color: var(--text-mute); }
.crumbs__cur { color: var(--gold-light); }

/* ------------------------------------------------------------- герой */
.hero {
  background:
    linear-gradient(180deg, rgba(106,167,70,.16), rgba(0,0,0,0) 70%),
    linear-gradient(180deg, #171b1e, #0f1214);
  border-bottom: 4px solid #0a0c0e;
  padding: 26px 0 34px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* тонкая «травяная» полоса по низу секции */
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: repeating-linear-gradient(90deg, var(--grass) 0 8px, var(--grass-dark) 8px 16px);
}
.hero__in { display: grid; gap: 26px; grid-template-columns: 1fr; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-pixel); font-size: 15px;
  color: var(--gold-light);
  background: rgba(240,180,41,.1);
  border: 2px solid rgba(240,180,41,.32);
  padding: 5px 11px;
  margin-bottom: 14px;
}
.hero__h1 {
  font-size: clamp(30px, 7.4vw, 55px);
  color: #fff;
  text-shadow: 0 4px 0 rgba(0,0,0,.6), 0 0 26px rgba(106,167,70,.28);
  margin-bottom: 14px;
}
.hero__lead { color: var(--text-dim); font-size: clamp(15px, 3.4vw, 18px); margin-bottom: 20px; }
.hero__lead b { color: var(--gold-light); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__chips li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; color: var(--text-dim);
  background: #1a1e21; border: 2px solid #0a0c0e;
  padding: 6px 11px;
}

.hero__panel { margin-bottom: 0; }
.apkcard__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.apkcard__name { font-family: var(--font-pixel); font-size: 17px; color: #f0e6da; }
.apkcard__ver  { font-family: var(--font-pixel); font-size: 30px; color: var(--gold-light); line-height: 1.1; }
.apkcard__specs { margin-bottom: 16px; }
.apkcard__specs > div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0;
  border-bottom: 2px dashed rgba(0,0,0,.28);
  font-size: 15px;
}
.apkcard__specs dt { color: #d9cdbd; }
.apkcard__specs dd { color: #fff; font-weight: 700; }

/* ------------------------------------------------------------ поиск */
.searchbar { display: flex; gap: 10px; margin: 22px 0; }
.searchbar__input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: #0b0d0f;
  border: 2px solid #0a0c0e;
  box-shadow: inset 3px 3px 0 rgba(0,0,0,.6);
  padding: 14px 16px;
}
.searchbar__input::placeholder { color: var(--text-mute); }
.searchbar__btn { flex: none; }

/* ------------------------------------------------------------ плитки */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 30px;
}
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px;
  padding: 18px 10px;
  background: var(--panel);
  border: 2px solid #0a0c0e;
  box-shadow:
    inset var(--px) var(--px) 0 rgba(255,255,255,.07),
    inset calc(var(--px) * -1) calc(var(--px) * -1) 0 rgba(0,0,0,.45),
    0 5px 0 rgba(0,0,0,.35);
  font-family: var(--font-pixel);
  font-size: 15px;
  color: var(--text);
  text-align: center;
  transition: transform .1s linear, filter .12s linear;
}
.tile:hover { transform: translateY(-3px); color: #fff; text-decoration: none; filter: brightness(1.15); }
.tile--grass    { border-bottom: 6px solid var(--grass); }
.tile--creeper  { border-bottom: 6px solid var(--emerald); }
.tile--sky      { border-bottom: 6px solid var(--sky); }
.tile--water    { border-bottom: 6px solid var(--water); }
.tile--gold     { border-bottom: 6px solid var(--gold); }
.tile--redstone { border-bottom: 6px solid var(--redstone); }

/* ----------------------------------------------------------- секции */
.sect { margin: 34px 0; }
.sect__lead { color: var(--text-dim); margin-bottom: 16px; }

.phead { padding: 26px 0 6px; }
.phead__h1 {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: clamp(26px, 5.6vw, 42px);
  color: #fff;
  text-shadow: 0 4px 0 rgba(0,0,0,.55);
  margin-bottom: 14px;
}
.phead__lead { color: var(--text-dim); font-size: clamp(15px, 3.2vw, 18px); max-width: 800px; }
.phead__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ------------------------------------------------ последняя версия */
.latest__title { font-size: clamp(22px, 4.4vw, 30px); color: var(--gold-light); margin-bottom: 10px; }
.latest__desc { color: var(--text-dim); margin-bottom: 14px; }
.latest__list { margin-bottom: 18px; }
.latest__note { font-size: 14px; color: var(--text-mute); margin-top: 12px; }

.dl { width: 100%; }
.dl__txt { line-height: 1.25; }

/* Запасная ссылка под кнопкой: заметная, но не спорящая с основной кнопкой. */
.dl-mirror { font-size: 13.5px; color: var(--text-mute); margin-top: 10px; }
.dl-mirror a { color: var(--gold-light); text-decoration: underline; }
.dl-mirror a:hover { color: #fff; }
.dl-mirror__sep { color: var(--text-mute); padding: 0 3px; }

/* ---------------------------------------------------- список версий */
.vlist { display: grid; gap: 10px; margin-bottom: 18px; }
.vcard {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: stretch;
  background: var(--panel);
  border: 2px solid #0a0c0e;
  box-shadow:
    inset var(--px) var(--px) 0 rgba(255,255,255,.06),
    inset calc(var(--px) * -1) calc(var(--px) * -1) 0 rgba(0,0,0,.45),
    0 4px 0 rgba(0,0,0,.35);
  overflow: hidden;
  min-height: 84px;
  transition: transform .1s linear;
}
.vcard:hover { transform: translateY(-2px); }
.vcard--new { border-color: var(--grass-dark); }

.vcard__tag {
  display: flex; align-items: center; justify-content: center;
  background: var(--grass-dark);
  color: #fff;
  font-family: var(--font-pixel);
  /* Номера версий длинные (1.26.13.01) — мелкий кегль, чтобы не обрезалось */
  font-size: 12.5px;
  letter-spacing: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  padding: 6px 0;
  overflow: hidden;
  text-decoration: none;
}
.vcard--new .vcard__tag { background: var(--grass); }
.vcard__body { padding: 13px 15px; min-width: 0; }
.vcard__title { font-size: 19px; margin-bottom: 4px; }
.vcard__title a { color: #fff; }
.vcard__title a:hover { color: var(--gold-light); }
.vcard__meta { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-mute); }
.vcard__dl {
  display: flex; align-items: center; justify-content: center;
  background: var(--gold);
  color: #2a1d02;
  font-family: var(--font-pixel);
  font-size: 14px;
  letter-spacing: 1px;
  padding: 0 8px;
  writing-mode: vertical-rl;
  text-decoration: none;
}
.vcard__dl:hover { background: var(--gold-light); color: #2a1d02; text-decoration: none; }

.badge {
  font-family: var(--font-pixel);
  font-size: 12px;
  padding: 2px 8px;
  border: 2px solid #0a0c0e;
}
.badge--new { background: var(--redstone); color: #fff; }
.badge--online { background: rgba(23,193,91,.15); color: var(--emerald); border-color: var(--emerald); }

/* ------------------------------------------------- карточки каталога */
.igrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.icard {
  background: var(--panel);
  border: 2px solid #0a0c0e;
  box-shadow:
    inset var(--px) var(--px) 0 rgba(255,255,255,.06),
    inset calc(var(--px) * -1) calc(var(--px) * -1) 0 rgba(0,0,0,.45),
    0 5px 0 rgba(0,0,0,.35);
  transition: transform .1s linear;
}
.icard:hover { transform: translateY(-3px); }
.icard__link { display: block; padding: 18px; color: var(--text); text-decoration: none; height: 100%; }
.icard__link:hover { text-decoration: none; }
.icard__ico {
  display: flex; align-items: center; justify-content: center;
  width: 62px; height: 62px;
  background: #0d0f11;
  border: 2px solid #0a0c0e;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.05);
  margin-bottom: 13px;
}
.icard__title { font-size: 18px; color: #fff; margin-bottom: 8px; }
.icard__lead { font-size: 14.5px; color: var(--text-dim); line-height: 1.55; margin-bottom: 12px; }
.icard__more { font-family: var(--font-pixel); font-size: 14px; color: var(--gold-light); }

.icard--mody     { border-bottom: 5px solid var(--emerald); }
.icard--sheydery { border-bottom: 5px solid var(--sky); }
.icard--karty    { border-bottom: 5px solid var(--water); }
.icard--skiny    { border-bottom: 5px solid var(--gold); }
.icard--tekstury { border-bottom: 5px solid var(--redstone); }

/* -------------------------------------------------- карточки платформ */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pcard {
  display: block;
  padding: 20px;
  background: var(--panel);
  border: 2px solid #0a0c0e;
  border-left: 6px solid var(--grass);
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.05), 0 5px 0 rgba(0,0,0,.35);
  color: var(--text);
  text-decoration: none;
  transition: transform .1s linear;
}
.pcard:hover { transform: translateY(-3px); color: var(--text); text-decoration: none; border-left-color: var(--gold); }
.pcard h3 { font-size: 19px; color: #fff; margin: 12px 0 8px; }
.pcard p { font-size: 14.5px; color: var(--text-dim); margin-bottom: 12px; }
.pcard__more { font-family: var(--font-pixel); font-size: 14px; color: var(--gold-light); }

/* ------------------------------------------------ страница материала */
.ihero { display: grid; grid-template-columns: 1fr; gap: 18px; }
.ihero__ico {
  display: flex; align-items: center; justify-content: center;
  width: 96px; height: 96px;
  background: #0d0f11;
  border: 2px solid #0a0c0e;
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.05);
}
.ihero__kicker { font-size: 14px; color: var(--text-mute); margin-bottom: 8px; }
.ihero__h1 { font-size: clamp(24px, 5.2vw, 38px); color: #fff; margin-bottom: 12px; text-shadow: 0 4px 0 rgba(0,0,0,.5); }
.ihero__lead { color: var(--text-dim); margin-bottom: 16px; }
.ihero__note { font-size: 13.5px; color: var(--text-mute); margin-top: 12px; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.tags li {
  font-size: 13px; color: var(--text-dim);
  background: #14171a; border: 2px solid var(--line);
  padding: 3px 10px;
}

/* ------------------------------------------------- страница версии */
.vhero { display: grid; grid-template-columns: 1fr; gap: 16px; }
.vhero__badge {
  font-family: var(--font-pixel);
  font-size: clamp(26px, 6vw, 40px);
  color: #fff;
  background: var(--grass-dark);
  border: 2px solid #0a0c0e;
  box-shadow: inset 3px 3px 0 rgba(255,255,255,.16), inset -3px -3px 0 rgba(0,0,0,.4);
  padding: 10px 18px;
  justify-self: start;
}
.vhero__kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: #e2d6c6; margin-bottom: 10px; }
.vhero__h1 { font-size: clamp(24px, 5.4vw, 40px); color: #fff; margin-bottom: 12px; text-shadow: 0 4px 0 rgba(0,0,0,.5); }
.vhero__lead { margin-bottom: 18px; }
.vhero__note { font-size: 13.5px; color: #d9cdbd; margin-top: 12px; }

/* Обложка версии — та же картинка, что уходит в og:image */
/* Список нововведений версии. Маркер — золотой квадрат вместо точки: круглая
   точка в пиксельном оформлении выглядит чужеродно. */
.chlist { list-style: none; margin: 0 0 16px; padding: 0; }
.chlist li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--text-dim);
}
.chlist li::before {
  content: '';
  position: absolute; left: 4px; top: .62em;
  width: 8px; height: 8px;
  background: var(--gold);
}

/* Обложка версии. Ширину держим ограниченной: во всю колонку картинка
   отодвигает характеристики и инструкцию за первый экран, а посетитель
   пришёл за ними, а не за баннером. */
.vcover { margin: 18px auto 0; max-width: 620px; border: 3px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--panel); }
.vcover img { width: 100%; height: auto; display: block; }

.spec > div {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 11px 0;
  border-bottom: 2px solid var(--line);
  font-size: 15px;
}
.spec > div:last-child { border-bottom: 0; }
.spec dt { color: var(--text-mute); }
.spec dd { color: #fff; font-weight: 500; text-align: right; }

.notice {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px;
  background: rgba(240,180,41,.08);
  border: 2px solid rgba(240,180,41,.35);
  border-left: 6px solid var(--gold);
  margin-bottom: 22px;
}
.notice p { color: var(--text-dim); font-size: 15px; }
.notice--warn { background: rgba(216,69,47,.08); border-color: rgba(216,69,47,.35); border-left-color: var(--redstone); }

.note-inline {
  font-size: 14.5px;
  color: var(--text-mute);
  background: #14171a;
  border-left: 5px solid var(--stone);
  padding: 12px 14px;
  margin-top: 14px;
}

/* ------------------------------------------------------------ списки */
.mc-list { list-style: none; display: grid; gap: 9px; }
.mc-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-dim);
  font-size: 15.5px;
}
.mc-list li::before {
  content: '';
  position: absolute; left: 0; top: .45em;
  width: 12px; height: 12px;
  background: var(--grass);
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.35), inset -2px -2px 0 rgba(0,0,0,.4);
}

.mc-steps { list-style: none; counter-reset: step; display: grid; gap: 11px; }
.mc-steps li {
  position: relative;
  counter-increment: step;
  padding-left: 46px;
  color: var(--text-dim);
  font-size: 15.5px;
  min-height: 32px;
  /* ⛔ Не ставить flex: внутри пункта идут <b>Скачайте APK</b> и обычный текст,
     и flex раскладывает их как две колонки — на узком экране они наезжают друг
     на друга («Скачайте АРК» поверх описания). Нужен обычный поток строк. */
  padding-top: 5px;
  line-height: 1.6;
}
.mc-steps li b { color: #fff; }
.mc-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-pixel);
  font-size: 17px;
  color: #fff;
  background: var(--stone-dark);
  border: 2px solid #0a0c0e;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.2), inset -2px -2px 0 rgba(0,0,0,.4);
}
.mc-steps--big li { font-size: 16px; padding-left: 52px; min-height: 38px; }
.mc-steps--big li::before { width: 38px; height: 38px; font-size: 19px; background: var(--grass-dark); }

/* --------------------------------------------------------------- FAQ */
.faq__item {
  border-bottom: 2px solid var(--line);
}
.faq__item:last-child { border-bottom: 0; }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 34px 15px 0;
  position: relative;
  font-family: var(--font-pixel);
  font-size: 17px;
  color: #fff;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--gold);
  line-height: 1;
}
.faq__item[open] summary::after { content: '–'; }
.faq__item summary:hover { color: var(--gold-light); }
.faq__a { padding: 0 0 16px; }
.faq__a p { color: var(--text-dim); font-size: 15.5px; }

/* ------------------------------------------------------------ сервер */
.server__head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.server__name { font-size: 28px; color: var(--gold-light); }
.server__site { margin-left: auto; }
.server p { color: var(--text-dim); margin-bottom: 14px; }

.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-bottom: 18px; }
.mode {
  padding: 16px;
  background: #14171a;
  border: 2px solid #0a0c0e;
  border-top: 6px solid var(--stone);
}
.mode h4 { font-size: 18px; color: #fff; margin-bottom: 7px; }
.mode p { font-size: 14px; color: var(--text-dim); margin: 0; }
.mode--survival { border-top-color: var(--emerald); }
.mode--grief    { border-top-color: var(--gold); }
.mode--anarchy  { border-top-color: var(--redstone); }

.server__ip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 14px;
  background: #0b0d0f;
  border: 2px solid #0a0c0e;
  box-shadow: inset 3px 3px 0 rgba(0,0,0,.5);
  margin-bottom: 14px;
}
.server__ip-label { font-size: 14px; color: var(--text-mute); }
.server__ip-value { font-size: 17px; }
.server__port { font-size: 14px; color: var(--text-mute); }
.server__promo {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 13px;
  background: rgba(240,180,41,.08);
  border: 2px solid rgba(240,180,41,.3);
  font-size: 14.5px;
}
.server__how { margin-bottom: 0 !important; }

/* ------------------------------------------------------ перелинковка */
.linkcloud__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.linklist { list-style: none; display: grid; gap: 7px; }
.linklist a { font-size: 14.5px; color: var(--text-dim); }
.linklist a:hover { color: var(--gold-light); }

/* --------------------------------------------------------------- 404 */
.notfound { text-align: center; padding: 40px 22px; }
.notfound .mc-icon { margin: 0 auto 18px; }
.notfound__h1 { font-size: clamp(26px, 6vw, 42px); color: #fff; margin-bottom: 12px; }
.notfound__lead { max-width: 520px; margin: 0 auto 22px; }
.notfound__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ------------------------------------------------------------ футер */
.footer {
  background: #101315;
  border-top: 4px solid var(--grass-dark);
  margin-top: 44px;
  padding: 32px 0 20px;
}
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-pixel); font-size: 22px; color: #fff; margin-bottom: 12px; letter-spacing: 1.5px; }
.footer__brand b { color: var(--grass-light); }
.footer__about { font-size: 14.5px; color: var(--text-mute); }
.footer__h { font-family: var(--font-pixel); font-size: 17px; color: var(--gold-light); margin-bottom: 12px; }
.footer__list { list-style: none; display: grid; gap: 8px; }
.footer__list a { font-size: 14.5px; color: var(--text-dim); }
.footer__list a:hover { color: var(--gold-light); }

.footer__legal {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 2px solid var(--line);
}
.footer__legal p { font-size: 13px; color: var(--text-mute); line-height: 1.6; }
.footer__copy { margin-top: 8px; font-family: var(--font-pixel); }

/* ------------------------------------------- нижняя панель (хотбар) */
.hotbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  background: #0b0d0f;
  border-top: 3px solid #2c3237;
  padding: 5px 5px calc(5px + env(safe-area-inset-bottom));
}
.hotbar__slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  padding: 7px 2px;
  background: #1c2024;
  border: 2px solid #0a0c0e;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.09), inset -2px -2px 0 rgba(0,0,0,.5);
  font-family: var(--font-pixel);
  font-size: 11.5px;
  color: var(--text-dim);
  text-decoration: none;
  min-height: 58px;
}
.hotbar__slot:hover, .hotbar__slot.is-active { color: #fff; background: var(--stone-dark); text-decoration: none; }
.hotbar__slot.is-active { border-color: var(--grass); }
.hotbar__slot--main { background: var(--gold-dark); color: #fff; }
.hotbar__slot--main:hover { background: var(--gold); color: #2a1d02; }

/* --------------------------------------------------------- адаптив */
@media (min-width: 720px) {
  .hero__in { grid-template-columns: 1.35fr 1fr; align-items: center; }
  .ihero { grid-template-columns: auto 1fr; align-items: start; }
  .vhero { grid-template-columns: auto 1fr; align-items: start; }
  .vlist { grid-template-columns: repeat(2, 1fr); }
  .dl { width: auto; }
  .mc-panel { padding: 26px; }
}

@media (min-width: 1000px) {
  .vlist { grid-template-columns: repeat(2, 1fr); }
  body { padding-bottom: 0; }
  .hotbar { display: none; }
}

@media (max-width: 460px) {
  .topbar__cta { font-size: 12px; padding: 8px 10px; }
  .logo__text { font-size: 21px; }
  .mc-panel { padding: 18px 15px; }
  .vcard { grid-template-columns: 38px 1fr auto; }
  .vcard__title { font-size: 17px; }
}

/* ------------------------------------------- юридические документы */
/* Врезка в тексте документа: пункт, который читают чаще остального
   (бесплатность, отсутствие звонков), не должен теряться в полотне абзацев. */
.legal-note {
  border-left: 6px solid var(--gold);
  background: rgba(240, 180, 41, .08);
  padding: 12px 14px;
  margin: 16px 0;
  color: var(--text) !important;
}

/* ------------------------------------------------- уважение к настройкам */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Печать: убираем интерфейсный обвес, оставляем текст. */
@media print {
  .topbar, .hotbar, .footer, .searchbar, .tiles, .mc-btn { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .mc-panel { border: 1px solid #999; box-shadow: none; }
  h1, h2, h3 { color: #000; text-shadow: none; }
  p, li { color: #222; }
}
