/* ============================================================
   LOVARKEN: стили
   Минимализм. Чернота. Красно-оранжевый акцент.
   Только transform/opacity в анимациях: никаких лагов.
   ============================================================ */

:root {
  --bg:        #050505;
  --bg-2:      #0a0a0b;
  --surface:   #0e0e10;
  --line:      #1d1d20;
  --text:      #e8e6e2;
  --muted:     #837f79;
  --accent:    #ff4d00;
  --accent-soft: rgba(255, 77, 0, 0.12);
  /* приглушённый акцент для сплошных заливок: крупная площадь
     того же цвета кажется ярче тонкого текста */
  --accent-mark: #d64100;

  --font-main: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: Consolas, "SF Mono", "Cascadia Code", Menlo, monospace;

  --container: 1120px;
  --pad: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #000; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.muted  { color: var(--muted); }
.accent { color: var(--accent); }

a { color: inherit; text-decoration: none; }

/* видимая рамка при переходе по клавише Tab: для тех, кто
   пользуется сайтом без мыши */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img { max-width: 100%; display: block; }

/* ---------- появление при скролле ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }}

/* ============================================================
   ШАПКА
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.header.is-scrolled {
  background: rgba(5, 5, 5, 0.92);
  border-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__list li { display: flex; align-items: center; }

/* навигация по складу на внутренних страницах */
.nav__list--store { gap: 28px; }
.nav__list--store .store-back {
  padding-right: 28px;
  border-right: 1px solid var(--line);
}
.nav__list--store .store-back::before {
  content: "← ";
  color: var(--accent);
}
/* на странице новости рядом с «Архивом» соседей нет, черта была бы висячей */
.nav__list--post .store-back {
  padding-right: 0;
  border-right: 0;
}
@media (max-width: 640px) {
  .nav__list--store { gap: 16px; font-size: 10px; }
  .nav__list--store .store-back { padding-right: 16px; }}

.nav__logo {
  display: flex;
  align-items: baseline;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.32em;
  line-height: 1;
}

/* квадрат из логотипа: раскрывается только на главной */
.logo-mark {
  display: inline-block;
  position: relative;
  top: 1px; /* сажаем ножку ровно на основание буквы */
  width: 0;
  height: 3px;
  margin-left: -3px;
  margin-right: 0;
  background: var(--accent-mark);
  opacity: 0;
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              margin-right 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease 0.1s;
}
body.is-home .logo-mark {
  width: 3px;
  margin-right: 4px;
  opacity: 1;
}

.nav__list {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav__list a {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav__list a:hover { color: var(--text); }
}
/* подсветка раздела, на котором сейчас находимся */
.nav__list a.is-current { color: var(--accent); }

.nav__burger {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  align-items: flex-end;
}
.nav__burger span {
  display: block;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s ease, width 0.3s ease;
}
.nav__burger span:nth-child(1) { width: 26px; }
.nav__burger span:nth-child(2) { width: 18px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { width: 26px; transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 767px) {
  .nav__burger { display: flex; }
  .nav__list {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(5, 5, 5, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 24px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }
  .nav__list.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__list li { border-top: 1px solid var(--line); }
  .nav__list a { display: block; padding: 16px var(--pad); font-size: 13px; }

  /* На телефоне навигация склада уходит в то же выпадающее меню,
     что и на главной: в строку шесть надписей не помещаются и слипаются.
     Сначала три раздела склада, затем черта, затем весь остальной сайт. */
  .nav__list--store .store-back {
    padding-right: 0;
    border-right: 0;
  }
  .nav__list li.nav__sep {
    display: block;
    height: 1px;
    margin: 10px var(--pad);
    padding: 0;
    background: var(--line);
    border-top: 0;
  }
  .nav__list li.nav__sep + li { border-top: 0; }}

/* На широких экранах строка помещается целиком, поэтому разделы сайта
   и черта из неё убраны: там их роль играет обычная шапка. */
@media (min-width: 768px) {
  .nav__list--store .nav__sep,
  .nav__list--store .nav__site { display: none; }
}

/* ============================================================
   ГЛАВНЫЙ ЭКРАН
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(5,5,5,0.55) 0%, rgba(5,5,5,0.35) 45%, var(--bg) 100%),
    url("../assets/hero.jpg");
  background-size: cover;
  background-position: center 30%;
}
@media (max-width: 767px) {
  .hero__bg {
    background-image:
      linear-gradient(to bottom, rgba(5,5,5,0.6) 0%, rgba(5,5,5,0.4) 45%, var(--bg) 100%),
      url("../assets/hero-mobile.jpg");
  }}

/* лёгкое зерно поверх фото: только на герое, дёшево для GPU */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background: radial-gradient(ellipse at 50% 120%, rgba(255, 77, 0, 0.07), transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 88px;
  padding-bottom: 40px;
}


.hero__title {
  font-size: clamp(52px, 11vw, 150px);
  font-weight: 200;
  letter-spacing: 0.16em;
  line-height: 1;
  margin-left: -4px;
  transition-delay: 0.1s;
}

/* квадрат из логотипа в большой надписи:
   тоньше штриха шрифта и прижат вплотную к ножке L */
/* сторона квадрата. Шаг подгонки: 0.007em ≈ 1 пиксель при текущем кегле.
   Толщина штриха шрифта для сравнения = 0.05em */
.title-mark {
  display: inline-block;
  position: relative;
  top: 0.003em;
  width: 0.057em;
  height: 0.057em;
  margin-left: -0.147em;
  margin-right: 0.033em;
  background: var(--accent-mark);
  vertical-align: baseline;
}

.hero__actions {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  transition-delay: 0.45s;
}

.btn {
  display: inline-block;
  padding: 15px 34px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.btn--accent {
  border-color: var(--accent);
  color: var(--accent);
}
@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover { background: var(--accent); color: #000; }
}

/* вторая кнопка подсвечивается так же {
  border-color: var(--accent);
  color: var(--text);
  background-color: rgba(255, 77, 0, 0.08);
}


@media (hover: hover) and (pointer: fine) {
  как кнопки в терминале */
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  background-color: rgba(255, 77, 0, 0.08);
}
}

/* ============================================================
   СЕКЦИИ
   ============================================================ */
.section { padding: 120px 0; }

.section__num {
  color: var(--accent);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 200;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 56px;
}

.link-arrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.link-arrow::after { content: " →"; color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover { color: var(--text); border-color: var(--accent); }
}

/* ============================================================
   ТЕРМИНАЛ ПРОИЗВОДСТВА
   ============================================================ */
.terminal {
  border: 1px solid var(--line);
  background: var(--surface);
  max-width: 720px;
}

.terminal__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.terminal__head-title { flex: 1; }

/* низ терминала: дата слева, действия справа */
.terminal__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}
/* обе кнопки одной ширины: по самой длинной */
.terminal__actions {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

/* значок «?» слева от ускорителя: вынесен из потока,
   чтобы не менять ширину кнопок */
.hint {
  position: absolute;
  left: -30px;
  top: 8px;
  width: 17px;
  height: 17px;
  cursor: help;
}
.hint[hidden] { display: none; }
.hint__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.hint:focus .hint__mark { border-color: var(--accent); color: var(--accent); }

@media (hover: hover) and (pointer: fine) {
  .hint:hover .hint__mark { border-color: var(--accent); color: var(--accent); }
}

.hint__bubble {
  position: absolute;
  right: calc(100% + 12px);
  top: -8px;
  width: 260px;
  padding: 14px 16px;
  background: #0b0b0d;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-main);
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  z-index: 20;
}
.hint:focus .hint__bubble,
.hint.is-open .hint__bubble {
  opacity: 1;
  visibility: visible;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .hint:hover .hint__bubble {
  opacity: 1;
  visibility: visible;
  transform: none;
}
}

/* на узких экранах подсказка уходит вниз и прижимается к правому краю
   блока кнопок, иначе вылезает за пределы экрана */
@media (max-width: 900px) {
  .hint {
    position: relative;
    left: auto;
    top: auto;
    align-self: flex-end;
    margin-bottom: 8px;
  }
  .hint__bubble {
    left: auto;
    right: 0;
    top: calc(100% + 8px);
    width: min(280px, 74vw);
  }
}
.terminal__action {
  display: block;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 7px 12px;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .terminal__action:hover {
  border-color: var(--accent);
  color: var(--text);
  background-color: rgba(255, 77, 0, 0.08);
}
}
.terminal__action[hidden] { display: none; }

/* ускоритель: промышленная штриховка.
   Два готовых слоя, переключаем прозрачность: картинку фона
   анимировать нельзя, разные браузеры делают это по-своему. */
.terminal__action--accent {
  position: relative;
  overflow: hidden;
}
/* штриховка: настоящие элементы, а не псевдослои:
   так она рисуется одинаково во всех браузерах */
.hatch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
/* полоски заданы картинкой, а не расчётным градиентом:
   Opera рисует градиенты заметно тусклее, картинку: одинаково везде */
.hatch--grey {
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M-3 3 L3 -3 M0 12 L12 0 M9 15 L15 9' stroke='%23ffffff' stroke-opacity='.08' stroke-width='5'/%3E%3C/svg%3E");
}
.hatch--accent {
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M-3 3 L3 -3 M0 12 L12 0 M9 15 L15 9' stroke='%23ff4d00' stroke-opacity='.21' stroke-width='5'/%3E%3C/svg%3E");
}
@media (hover: hover) and (pointer: fine) {
  .terminal__action--accent:hover .hatch--grey { opacity: 0; }
}
@media (hover: hover) and (pointer: fine) {
  .terminal__action--accent:hover .hatch--accent { opacity: 1; }
}

/* текст поверх штриховки: надпись слева, значок прижат вправо 
   так у обеих кнопок совпадают и начала строк, и значки */
.terminal__action-text {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
/* надпись целиком: иначе промежуток разрывает её на части */
.terminal__action-label { white-space: nowrap; }


/* тонкая подгонка длинной надписи под ширину остальных.
   Меньше значение: плотнее текст. Шаг 0.005em ≈ 1px. */
#plusLink .terminal__action-label { letter-spacing: 0.092em; }

/* плюс: отделён от слова волоском и приподнят к середине строки */
#plusLink .terminal__action-label .accent {
  position: relative;
  top: -1px;
  margin-left: 1px;
}

/* значок внешней ссылки */
.ext-icon {
  width: 11px;
  height: 11px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
  transition: transform 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .terminal__action:hover .ext-icon { transform: translate(1px, -1px); }
}

/* стрелка для перехода внутри сайта */
.ext-icon--arrow {
  width: auto;
  height: auto;
  stroke: none;
  font-size: 12px;
  line-height: 1;
  opacity: 0.85;
}
@media (hover: hover) and (pointer: fine) {
  .terminal__action:hover .ext-icon--arrow { transform: translateX(3px); }
}

@media (max-width: 640px) {
  .terminal__foot { flex-direction: column; align-items: flex-start; }
  .terminal__actions { align-items: flex-start; width: 100%; }}
.terminal__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

.terminal__body { padding: 28px 24px 24px; }

.terminal__row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 7px 0;
}
.terminal__row .mono { min-width: 92px; font-size: 11px; }
.terminal__value {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


.progress {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px 0 24px;
}
.progress__track {
  position: relative;
  flex: 1;
  height: 2px;
  background: var(--line);
}
.progress__fill {
  position: relative;
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 77, 0, 0.7);
  transition: width 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
/* Бегущий блик. Это настоящий элемент, а не дорисованный браузером:
   у Safari на телефоне такая дорисовка местами замирает.
   Прозрачность задана прозрачным белым, а не словом transparent:
   оно означает прозрачный ЧЁРНЫЙ, и часть браузеров подмешивает
   в переход черноту, отчего блик выглядит грязью, а не светом. */
.progress__sheen,
.pulse-bar__sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  animation: sheen 2.8s ease-in-out infinite;
}

/* засечки на границах этапов */
.progress__ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.progress__tick {
  position: absolute;
  top: -3px;
  width: 1px;
  height: 8px;
  background: #3a3a40;
}
.progress__tick.is-passed { background: rgba(255, 77, 0, 0.65); }
.progress__pct {
  color: var(--accent);
  font-size: 13px;
  min-width: 44px;
  text-align: right;
}

.terminal__note { font-size: 10px; }

/* ============================================================
   НАПРАВЛЕНИЯ
   ============================================================ */
.dir-list { border-top: 1px solid var(--line); }

.dir {
  display: grid;
  grid-template-columns: 60px 1fr auto 40px;
  align-items: center;
  gap: 24px;
  padding: 36px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease, padding 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .dir:hover { background: rgba(10, 10, 11, 0.8); padding-left: 20px; }
}

.dir__num { color: var(--muted); font-size: 12px; }

.dir__title {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.06em;
}

.dir__tag {
  font-size: 10px;
  color: var(--accent);
  border: 1px solid rgba(255, 77, 0, 0.35);
  padding: 6px 12px;
  white-space: nowrap;
}

.dir__arrow {
  color: var(--muted);
  font-size: 20px;
  transition: transform 0.35s ease, color 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .dir:hover .dir__arrow { transform: translateX(6px); color: var(--accent); }
}

@media (max-width: 640px) {
  .dir { grid-template-columns: 1fr auto; }
  .dir__num, .dir__arrow { display: none; }}

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0;
  background: var(--bg);
}
.footer__grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__grid { align-items: center; }
.footer__logo {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.32em;
}
.footer__socials {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__socials a {
  font-size: 10px;
  color: var(--muted);
  transition: color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .footer__socials a:hover { color: var(--accent); }
}
.footer__nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer__nav a {
  font-size: 11px;
  color: var(--muted);
  transition: color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .footer__nav a:hover { color: var(--text); }
}
.footer__copy { font-size: 11px; }

/* ============================================================
   ВНУТРЕННИЕ СТРАНИЦЫ (курсы / мерч / hardware / юридические)
   ============================================================ */
.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.page main {
  flex: 1;
  padding: 160px 0 120px;
  /* обрезаем вылет анимации появления, иначе на телефонах
     на полсекунды появляется прокрутка вбок */
  overflow-x: clip;
}

/* страницы склада приезжают справа, продолжая движение со слайда */
@media (prefers-reduced-motion: no-preference) {
  .page main > .container {
    animation: slideInRight 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
/* сдвиг намеренно небольшой: если анимация почему-то не отработает,
   застрявшее состояние останется почти незаметным */
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(22px); }
  to   { opacity: 1; transform: none; }
}
.page__label { color: var(--accent); margin-bottom: 16px; }
.page__title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 200;
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-bottom: 32px;
}
.page__lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 48px;
}
.page__body {
  max-width: 720px;
  color: var(--muted);
  font-size: 15px;
}
.page__body h2 {
  color: var(--text);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin: 40px 0 12px;
}
.page__body p { margin-bottom: 14px; }
.page__body ul { margin: 0 0 14px 20px; }
.page__back { display: inline-block; margin-bottom: 48px; }
.page__back::after { content: none; }
.page__back::before { content: "← "; color: var(--accent); }

.soon {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 48px 40px;
  max-width: 640px;
}
.soon__status {
  color: var(--accent);
  font-size: 11px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.soon__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
.soon p { color: var(--muted); margin-bottom: 24px; }
.soon p:last-of-type { margin-bottom: 32px; }

@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .soon { padding: 32px 24px; }}

/* ============================================================
   ЖИВАЯ СТРОКА СТАТУСА НА ГЛАВНОЙ
   ============================================================ */
.pulse-bar {
  position: relative;
  z-index: 3;
  flex: none;
  display: block;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.55);
  transition: background 0.4s ease, border-color 0.4s ease;
}
@media (hover: hover) and (pointer: fine) {
  .pulse-bar:hover { background: rgba(5, 5, 5, 0.8); border-color: #2c2c31; }
}

/* уходим с главной: гаснет сразу; возвращаемся: проявляется в самом конце */
.pulse-bar {
  opacity: 1;
  transition: opacity 0.3s ease 0.62s, background 0.4s ease, border-color 0.4s ease;
}
.pulse-bar.is-gone {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease 0s;
}

.pulse-bar__label {
  flex: none;
  color: var(--muted);
  font-size: 10px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}

.pulse-bar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pulse-bar__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 77, 0, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}

.pulse-bar__code  { color: var(--text); font-size: 11px; white-space: nowrap; }
.pulse-bar__sep   { color: var(--muted); }
.pulse-bar__phase { color: var(--accent); font-size: 11px; white-space: nowrap; }

.pulse-bar__track {
  flex: 1;
  min-width: 60px;
  max-width: 340px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
  position: relative;
}
.pulse-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255, 77, 0, 0.6);
  transition: width 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  /* маска: блик живёт только внутри залитой части и уезжает за её край
     в невидимое, а не выползает на серый остаток шкалы */
  overflow: hidden;
}
@keyframes sheen {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.pulse-bar__pct  { color: var(--accent); font-size: 11px; }
.pulse-bar__more {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  transition: color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .pulse-bar:hover .pulse-bar__more { color: var(--text); }
}

@media (max-width: 720px) {
  .pulse-bar__sep, .pulse-bar__more { display: none; }
  .pulse-bar__track { max-width: none; }}
/* на узких экранах убираем метку и поджимаем промежутки,
   иначе процент не помещается в строку */
@media (max-width: 520px) {
  .pulse-bar__label { display: none; }
  .pulse-bar__inner { gap: 9px; }
  .pulse-bar__track { min-width: 40px; }
  .pulse-bar__code { font-size: 10px; }
  .pulse-bar__phase { font-size: 10px; }
}

/* ============================================================
   РАЗДЕЛ «СТАТУС»
   ============================================================ */
.status-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .status-grid { grid-template-columns: 1fr; gap: 32px; }}
/* в режиме слайдов колонки не разворачиваем: вертикально места нет,
   иначе содержимое перестаёт помещаться в экран */
@media (min-width: 768px) and (max-width: 900px) {
  body.is-paged .status-grid { grid-template-columns: 250px 1fr; gap: 24px; }
}

.status-cap { margin-bottom: 14px; font-size: 10px; }

/* компактная карточка вышедшего видео */
.mini-video { display: block; }
.mini-video__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at 30% 110%, #10151c 0%, #05060a 55%, #030304 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.4s ease;
}
/* настоящая обложка с YouTube: рисованную планету прячем */
.mini-video__screen.has-cover .mini-video__planet { display: none; }
@media (hover: hover) and (pointer: fine) {
  .mini-video:hover .mini-video__screen { border-color: var(--accent); }
}

.mini-video__planet {
  position: absolute;
  left: -18%;
  bottom: -55%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 68% 22%, #2a323d 0%, #12161c 34%, #05070a 62%);
  box-shadow: 0 0 60px rgba(120, 150, 190, 0.14), inset -18px 12px 50px rgba(0, 0, 0, 0.85);
}
.mini-video__caption {
  position: relative;
  z-index: 2;
  font-size: 20px;
  font-weight: 200;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: #dfe3e8;
}
.mini-video__dur {
  position: absolute;
  right: 8px;
  bottom: 7px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.75);
  padding: 3px 6px;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.mini-video__line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 14px;
}
.mini-video__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .mini-video:hover .mini-video__name { color: var(--accent); }
}

/* тихая метка «уйдёшь на другой сайт»: слово и знак внешней ссылки */
.mini-video__ext {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  /* почти на базовой линии названия, на волос выше */
  position: relative;
  top: -2px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.mini-video__ext-label {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: #a29d96;
  white-space: nowrap;
}
.mini-video__ext .ext-icon { stroke: var(--accent); }
.mini-video:focus-visible .mini-video__ext { opacity: 1; transform: none; }

@media (hover: hover) and (pointer: fine) {
  .mini-video:hover .mini-video__ext { opacity: 1; transform: none; }
}
/* на сенсорных экранах наведения нет, поэтому метка видна всегда */
@media (hover: none) {
  .mini-video__ext { opacity: 1; transform: none; }
}

.mini-video__meta { margin-top: 5px; font-size: 10px; }

/* этапы: столбиком, с пояснениями */
.phases {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 4px;
}
.phases li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 12px;
  border-left: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.phases li .phase__note {
  font-family: var(--font-main);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: #7d7a75; /* контраст 4.6 на чёрном: читаемо */
}
/* диапазон этапа: прижат к правому краю */
.phases li .phase__range {
  margin-left: auto;
  padding-left: 14px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #7d7a75;
  white-space: nowrap;
}
.phases li.current .phase__range { color: var(--accent); }
.phases li.done { border-left-color: #35342f; opacity: 0.5; }
.phases li.done .phase__name { text-decoration: line-through; }
.phases li.current {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.phases li.current .phase__note { color: var(--muted); }

@media (max-width: 560px) {
  .phases li { flex-direction: column; gap: 3px; }}

/* ============================================================
   РАЗДЕЛ «НОВОСТИ»
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: start;
}
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr; gap: 32px; }}

/* дата и метка */
.news__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  margin-bottom: 12px;
}
.news__date { color: var(--muted); }
.news__tag {
  color: var(--accent);
  border: 1px solid rgba(255, 77, 0, 0.32);
  padding: 3px 8px;
}

.news__title {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.25;
  margin-bottom: 14px;
}
.news__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 46ch;
  margin-bottom: 18px;
}

/* последняя новость слева */
.news-lead {
  border-left: 2px solid var(--accent);
  padding-left: 26px;
}

/* список предыдущих справа */
.news-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.news-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.news-item .news__meta { margin-bottom: 6px; }
.news-item__title {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--text);
}
.news-all { display: inline-block; margin-top: 22px; }

/* ============================================================
   КАРТОЧКА НОВОСТИ
   Картинка, рядом заголовок и короткое пояснение. Вся карточка 
   одна ссылка на отдельную страницу новости.
   ============================================================ */
.news-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  align-items: start;
}
.news-card__cover {
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.news-card__cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
/* картинка не загрузилась: рамку не показываем */
.news-card__cover.is-empty { display: none; }
.news-card__body .news__title { font-size: 20px; margin-bottom: 8px; }
.news-card__body .news__text { font-size: 14px; margin-bottom: 10px; max-width: 54ch; }
.news-card__more {
  font-size: 10px;
  color: var(--muted);
  transition: color 0.3s ease;
}
.news-card__more::after { content: " →"; }
@media (hover: hover) and (pointer: fine) {
  .news-card:hover .news__title { color: var(--accent); }
  .news-card:hover .news-card__more { color: var(--accent); }
  .news-card:hover .news-card__cover img { transform: scale(1.05); }
}

/* карточка на главной: крупнее, картинка сверху */
.news-card--lead { grid-template-columns: 1fr; gap: 16px; }
.news-card--lead .news-card__cover { max-width: 420px; }
.news-card--lead .news__title { font-size: 26px; }
.news-card--lead .news__text { font-size: 15px; }

/* список предыдущих справа */
.news-list {
  list-style: none;
  border-top: 1px solid var(--line);
}
.news-item { border-bottom: 1px solid var(--line); }
.news-item__link { display: block; padding: 16px 0; }
.news-item .news__meta { margin-bottom: 6px; }
.news-item__title {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .news-item__link:hover .news-item__title { color: var(--accent); }
}
.news-all { display: inline-block; margin-top: 22px; }

/* ============================================================
   АРХИВ НОВОСТЕЙ (отдельная страница)
   Обычная прокрутка страницы: с листанием разделов на главной
   она не встречается и потому ничему не мешает.
   ============================================================ */
.news-archive {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.news-archive .news-card { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.news-archive .news-card:last-of-type { border-bottom: 0; padding-bottom: 0; }
.news-card--first .news-card__body .news__title { font-size: 24px; }
.news-end { font-size: 10px; }

/* ============================================================
   ОТДЕЛЬНАЯ СТРАНИЦА НОВОСТИ
   ============================================================ */
.post { max-width: 720px; }
.post .news__meta { margin-bottom: 16px; }
.post__title {
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 200;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 26px;
}
.post__cover {
  margin-bottom: 30px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.post__cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.post__cover.is-empty { display: none; }
.post__text {
  color: #a7a29b; /* светлее общего серого: длинный текст надо читать */
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 64ch;
}
.post__go { margin-top: 10px; }

/* ссылки внутри текста новости */
.news-link {
  color: var(--accent);
  border-bottom: 1px solid rgba(255, 77, 0, 0.35);
  transition: border-color 0.3s ease, color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .news-link:hover { border-bottom-color: var(--accent); color: #ff6a26; }
}

/* переход к соседним новостям */
.post__nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.post__nav-link {
  display: block;
  max-width: 46%;
}
.post__nav-link--next { margin-left: auto; text-align: right; }
.post__nav-cap {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}
.post__nav-cap::before { content: "← "; color: var(--accent); }
.post__nav-link--next .post__nav-cap::before { content: ""; }
.post__nav-link--next .post__nav-cap::after { content: " →"; color: var(--accent); }
.post__nav-title {
  font-size: 15px;
  font-weight: 300;
  transition: color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .post__nav-link:hover .post__nav-title { color: var(--accent); }
}

@media (max-width: 640px) {
  .news-card { grid-template-columns: 1fr; gap: 12px; }
  .news-card__body .news__title { font-size: 18px; }
  .news-archive { gap: 26px; }
  .news-archive .news-card { padding-bottom: 26px; }
  .post__text { font-size: 16px; }
  .post__nav { flex-direction: column; gap: 22px; }
  .post__nav-link { max-width: 100%; }
  .post__nav-link--next { text-align: left; margin-left: 0; }
}

/* ============================================================
   РАЗДЕЛ «ПОДДЕРЖКА»
   ============================================================ */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  max-width: 1000px;
}

.support-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s ease;
}
@media (hover: hover) and (pointer: fine) {
  .support-card:hover {
  border-color: var(--accent);
  background: #121214;
  transform: translateY(-2px);
}
}

/* способ без ссылки: виден, но пока не кликается */
.support-card--soon { pointer-events: none; background: rgba(14, 14, 16, 0.72); }
.support-card--soon .support-card__go { opacity: 0.35; }

.support-card__title {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.support-card__desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}
.support-card__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.support-card__price { color: var(--accent); font-size: 12px; }
.support-card__go {
  color: var(--muted);
  font-size: 16px;
  margin-left: auto;
  transition: transform 0.35s ease, color 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .support-card:hover .support-card__go { transform: translateX(5px); color: var(--accent); }
}
.support-card__go .ext-icon { width: 13px; height: 13px; display: block; }
@media (hover: hover) and (pointer: fine) {
  .support-card:hover .support-card__go .ext-icon { transform: none; }
}

/* кнопка копирования крипто-адреса */
.support-card__go--copy {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (hover: hover) and (pointer: fine) {
  .support-card:hover .support-card__go--copy { transform: none; }
}
.support-card__go--copy.is-copied { color: var(--accent); }

/* ============================================================
   РАЗДЕЛ «СВЯЗЬ»
   ============================================================ */
.contact-block { max-width: 520px; }
.contact-line {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-line:first-child { border-top: 1px solid var(--line); }
.contact-line__cap {
  flex: none;
  min-width: 92px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-line__val {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--text);
  transition: color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  a.contact-line__val:hover { color: var(--accent); }
}

/* ============================================================
   КИНОРЕЖИМ: постраничный скролл + летящий фон
   Включается скриптом (body.is-paged) только на десктопе.
   Всё на transform/opacity: GPU, без лагов.
   ============================================================ */

/* --- сцена фона --- */
.bg-stage { display: none; }
body.is-paged .bg-stage { display: block; }

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: 50% 40%;
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 1.4s ease,
    transform 2.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.bg-dim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* слева: плотная тень под текст, сверху и снизу: под шапку и подвал */
  background:
    linear-gradient(to right,
      rgba(5, 5, 5, 0.95) 0%,
      rgba(5, 5, 5, 0.88) 30%,
      rgba(5, 5, 5, 0.58) 55%,
      rgba(5, 5, 5, 0.18) 80%,
      rgba(5, 5, 5, 0.05) 100%),
    linear-gradient(to bottom,
      rgba(5, 5, 5, 0.75) 0%,
      rgba(5, 5, 5, 0.30) 24%,
      rgba(5, 5, 5, 0.45) 64%,
      rgba(5, 5, 5, 0.85) 100%);
  opacity: 0.6;
  transition: opacity 1.4s ease;
}

/* --- колода слайдов --- */
html.is-paged,
body.is-paged {
  overflow: hidden;
  height: 100svh;
}
body.is-paged .deck {
  position: relative;
  z-index: 2;
  transform: translateY(calc(var(--slide, 0) * -100svh));
  transition: transform 1.05s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
body.is-paged .slide {
  height: 100svh;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  /* Обычное центрирование при переполнении режет содержимое сверху,
     и до первой строки нельзя докрутить: прокрутка не уходит в минус.
     «safe» отключает центрирование, когда места не хватает. Браузеры,
     которые этого не понимают, оставят строку выше. */
  justify-content: center;
  justify-content: safe center;
  padding: 80px 0 26px;
  background: transparent;
  border: none;
}
body.is-paged .slide::-webkit-scrollbar { display: none; }
body.is-paged .slide .container { width: 100%; }

/* свои фоны секций в кинорежиме не нужны: их заменяет сцена */
body.is-paged .hero__bg { display: none; }
body.is-paged .hero::after { display: none; }

/* текст поверх фотофона: мягкая тень для читаемости */
body.is-paged .section__title,
body.is-paged .section__num,
body.is-paged .dir__title,
body.is-paged .status-cap,
body.is-paged .contact-line__cap,
body.is-paged .contact-line__val,
body.is-paged .hero__title {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.85);
}

/* мелкие подписи поверх фото: своя, более плотная тень,
   иначе они теряются на светлых участках фона */
body.is-paged .status-cap,
body.is-paged .contact-line__cap,
body.is-paged .terminal__note,
body.is-paged .news__meta,
body.is-paged .footer__nav a,
body.is-paged .footer__socials a,
body.is-paged .footer__copy {
  color: #97928b;
  text-shadow: 0 0 4px rgba(5, 5, 5, 0.95), 0 1px 10px rgba(5, 5, 5, 0.85);
}
/* у квадрата тени букв не наследуются, задаём ему свою.
   Плотность чуть выше, чем у букв: 0.96 против 0.85 */
body.is-paged .title-mark {
  box-shadow: 0 1px 14px rgba(0, 0, 0, 0.96);
}

/* компактнее, чтобы каждый слайд влезал в экран */
body.is-paged .section__title { margin-bottom: 26px; }
body.is-paged .section__num { margin-bottom: 12px; }
body.is-paged .dir { padding: 24px 8px; }
@media (hover: hover) and (pointer: fine) {
  body.is-paged .dir:hover { padding-left: 20px; }
}
body.is-paged .support-card { padding: 26px 22px; }
body.is-paged .terminal__body { padding: 22px 24px 20px; }
body.is-paged .terminal__foot { margin-top: 18px; }
body.is-paged .phases li { padding: 8px 12px; }

/* первый слайд: контент по центру, строка статуса прижата к низу */
body.is-paged .hero { padding: 0; justify-content: flex-start; }
body.is-paged .hero .hero__content { padding-bottom: 24px; }

/* ------------------------------------------------------------
   Невысокие экраны (ноутбуки 720p и подобные): уплотняем всё,
   иначе содержимое разделов не помещается в экран целиком.
   ------------------------------------------------------------ */
@media (max-height: 820px) {
  body.is-paged .slide { padding: 72px 0 20px; }
  body.is-paged .section__title { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 18px; }
  body.is-paged .section__num { margin-bottom: 8px; }

  body.is-paged .terminal__head { padding: 10px 20px; }
  body.is-paged .terminal__body { padding: 16px 22px 16px; }
  body.is-paged .terminal__row { padding: 4px 0; }
  body.is-paged .terminal__value { font-size: 15px; }
  body.is-paged .progress { margin: 18px 0 16px; }
  body.is-paged .phases li { padding: 6px 12px; }
  body.is-paged .phases li .phase__note { font-size: 11px; }
  body.is-paged .terminal__foot { margin-top: 12px; }
  body.is-paged .terminal__action { padding: 6px 12px; }
  body.is-paged .status-cap { margin-bottom: 10px; }
  body.is-paged .status-grid { gap: 32px; }
  body.is-paged .mini-video__caption { font-size: 16px; }

  body.is-paged .support-card { padding: 20px 18px; }
  body.is-paged .support-card__title { font-size: 19px; margin-bottom: 8px; }
  body.is-paged .support-card__desc { font-size: 13px; margin-bottom: 14px; }

  body.is-paged .dir { padding: 18px 8px; }
  body.is-paged .dir__title { font-size: 22px; }

  body.is-paged .news__title { font-size: 22px; }
  body.is-paged .news__text { font-size: 14px; margin-bottom: 12px; }
  body.is-paged .news-item { padding: 12px 0; }
}

/* Совсем низкие окна: ещё плотнее. Содержимое всё равно остаётся
   доступным прокруткой внутри слайда, но лучше обойтись без неё. */
@media (max-height: 680px) {
  body.is-paged .slide { padding: 60px 0 14px; }
  body.is-paged .section__title { font-size: 24px; margin-bottom: 14px; }
  body.is-paged .section__num { font-size: 10px; margin-bottom: 6px; }
  body.is-paged .terminal__head { padding: 8px 18px; }
  body.is-paged .terminal__body { padding: 12px 18px 12px; }
  body.is-paged .terminal__row { padding: 2px 0; }
  body.is-paged .terminal__value { font-size: 14px; }
  body.is-paged .progress { margin: 12px 0 12px; }
  body.is-paged .phases li { padding: 4px 10px; font-size: 10px; }
  body.is-paged .phases li .phase__note { display: none; }
  body.is-paged .terminal__foot { margin-top: 10px; }
  body.is-paged .status-cap { display: none; }
  body.is-paged .mini-video__name { font-size: 13px; }
  body.is-paged .mini-video__line { margin-top: 8px; }
  body.is-paged .mini-video__meta { display: none; }
  body.is-paged .mini-video__caption { font-size: 14px; }
  body.is-paged .status-grid { gap: 22px; }
  body.is-paged .hint { margin-bottom: 4px; }
  body.is-paged .phases { margin-top: 0; }
  body.is-paged .terminal__action { padding: 5px 10px; }
  body.is-paged .terminal__actions { gap: 6px; }
  body.is-paged .dir { padding: 12px 8px; }
  body.is-paged .dir__title { font-size: 19px; }
  body.is-paged .support-card { padding: 16px 14px; }
  body.is-paged .support-card__desc { font-size: 12px; }
}

/* последний слайд: контент по центру, подвал прижат вниз */
body.is-paged .slide--last { justify-content: flex-end; justify-content: safe flex-end; }
body.is-paged .slide--last .slide__center { margin-block: auto; padding-top: 24px; }
body.is-paged .slide--last .footer { padding: 32px 0; background: transparent; }

/* шапка в кинорежиме: полупрозрачная тёмная плашка, разделы всегда читаемы */
body.is-paged .header {
  background: rgba(5, 5, 5, 0.72);
  border-bottom: 1px solid var(--line);
}

/* уход слайда влево при переходе на страницу склада */
.slide.is-leaving .container {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.34s ease, transform 0.34s cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- точки-индикатор --- */
.deck-dots {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 14px;
}
body.is-paged .deck-dots { display: flex; }
.deck-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .deck-dots button:hover { border-color: var(--text); }
}
.deck-dots button.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}

/* ============================================================
   ЛИСТАНИЕ ПАЛЬЦЕМ (телефоны и планшеты)
   Тот же кинорежим, но колоду двигает не скрипт, а сама система:
   родная прокрутка с «щелчком» по разделам. Жесты не перехватываются,
   поэтому пальцу привычно и нет рывков. Раздел выше экрана спокойно
   прокручивается внутри себя, а на его краю свайп уводит дальше.
   ============================================================ */
body.is-snap .deck {
  transform: none;
  transition: none;
  will-change: auto;
  height: 100svh;
  overflow-y: auto;
  /* Жёсткая привязка: каждый свайп кладёт раздел ровно к верху экрана.
     Раздел выше экрана она не запирает: по правилам привязки, если
     раздел больше окна, окно может стоять в любом месте внутри него. */
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
body.is-snap .deck::-webkit-scrollbar { display: none; }
/* Прокрутка должна быть ровно одна: у колоды. Если раздел сделать
   отдельным окошком с собственной прокруткой, палец на телефоне
   отдаёт свайпы ему и наружу они не доходят: листание встаёт намертво.
   Поэтому раздел просто тянется вниз, а «щелчок» ставит его к верху. */
body.is-snap .slide {
  height: auto;
  min-height: 100svh;
  overflow: visible;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* На компьютере текст жмётся к левому краю, поэтому и тень плотная слева.
   На телефоне текст идёт во всю ширину, значит и вуаль нужна ровная. */
body.is-snap .bg-dim {
  background: linear-gradient(to bottom,
    rgba(5, 5, 5, 0.90) 0%,
    rgba(5, 5, 5, 0.62) 20%,
    rgba(5, 5, 5, 0.66) 62%,
    rgba(5, 5, 5, 0.93) 100%);
}

/* на телефоне точки мельче и ближе к краю, чтобы не лезть на текст */
@media (max-width: 767px) {
  body.is-snap .deck-dots { right: 12px; gap: 10px; }
  body.is-snap .deck-dots button { width: 8px; height: 8px; }
  body.is-snap .deck-dots button.active { transform: scale(1.4); }
}

/* Телефоны в режиме листания: раздел «Статус» самый плотный из всех,
   поджимаем его, чтобы он занимал как можно меньше сверх экрана.
   Пояснения к этапам на телефоне и так скрывались на низких экранах 
   теперь скрываются на всех, чтобы поведение было одинаковым. */
@media (max-width: 767px) {
  body.is-snap .status-now .status-cap { display: none; }
  body.is-snap .mini-video__meta { display: none; }
  body.is-snap .phases li .phase__note { display: none; }
  /* Этапы в одну строку. На узких экранах общее правило ставит название
     и проценты друг под друга: это нужно, когда рядом есть пояснение.
     В режиме листания пояснения скрыты, и строка спокойно помещается
     целиком, а высота ряда падает вдвое. */
  body.is-snap .phases li {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    padding: 4px 10px;
    font-size: 10px;
  }
  body.is-snap .phases { margin-top: 0; }
  body.is-snap .terminal__head { padding: 8px 16px; }
  body.is-snap .terminal__body { padding: 12px 16px; }
  body.is-snap .terminal__row { padding: 2px 0; }
  body.is-snap .terminal__foot { margin-top: 10px; }
  /* Кнопки в строку: три столбика по трети ширины вместо трёх полос
     друг под другом. Надписи длинные, поэтому переносим их по словам
     и ставим по центру. Высота втрое меньше прежней. */
  body.is-snap .terminal__actions {
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    gap: 6px;
  }
  body.is-snap .terminal__action {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 4px;
    line-height: 1.3;
    white-space: normal;
    text-align: center;
  }
  body.is-snap .terminal__action-text {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }
  body.is-snap .terminal__action-label { white-space: normal; }
  /* знак вопроса уходит в промежуток над кнопками, к правому краю */
  body.is-snap .hint {
    position: absolute;
    right: 0;
    bottom: calc(100% + 3px);
    align-self: auto;
    margin: 0;
  }
  body.is-snap .status-grid { gap: 16px; }
  body.is-snap .section__title { margin-bottom: 14px; }
  /* Карточка последнего видео уходит под терминал и ложится в строку:
     маленький кадр слева, название справа. Столбиком она занимала треть
     экрана, строкой: семьдесят пикселей. */
  body.is-snap .status-past { display: none; order: 2; }
  body.is-snap .status-now { order: 1; }
}

/* Показываем карточку только там, где под терминалом реально есть место.
   На экранах ниже 660 пикселей его не остаётся. */
@media (max-width: 767px) and (min-height: 660px) {
  body.is-snap .status-past { display: block; }
  body.is-snap .mini-video {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  body.is-snap .mini-video__screen { flex: 0 0 112px; max-width: 112px; }
  body.is-snap .mini-video__caption { font-size: 11px; letter-spacing: 0.2em; }
  body.is-snap .mini-video__dur { font-size: 8px; padding: 1px 4px; right: 4px; bottom: 4px; }
  body.is-snap .mini-video__line {
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin-top: 0;
  }
  body.is-snap .mini-video__name { font-size: 13px; }
  body.is-snap .mini-video__ext { top: 0; }
}

/* ============================================================
   ОТКЛИК НА НАЖАТИЕ
   Кнопка коротко вспыхивает, чтобы человек видел: нажатие принято.
   Яркость выбрана вместо смены цвета намеренно: у кнопок на сайте
   разные цвета, а вспышка яркостью одинаково идёт всем.
   ============================================================ */
/* Моргание: вспышка, затем кнопка гаснет и спокойно возвращается
   в исходный вид. Гашение в середине и делает движение похожим
   на моргание, а не на простую подсветку. */
.is-tapped { animation: tapBlink 0.5s ease-out; }
@keyframes tapBlink {
  0%   { filter: brightness(1); }
  12%  { filter: brightness(2.3); }
  38%  { filter: brightness(0.5); }
  100% { filter: brightness(1); }
}
/* ============================================================
   НОВОСТИ НА ТЕЛЕФОНЕ
   В разделе остаётся только свежая новость и кнопка в архив.
   Список «Раньше» убран намеренно: листать ленту внутри раздела
   нельзя, палец в таком месте отдаёт свайпы вложенной прокрутке
   и перелистывание разделов встаёт. Архив живёт отдельной
   страницей с обычной прокруткой, там ничто ни с чем не спорит.
   ============================================================ */
.news-all-btn { display: none; }
@media (max-width: 767px) {
  .news-rest .status-cap,
  .news-list,
  .news-all { display: none; }
  .news-all-btn {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    padding: 12px 22px;
  }
  .news-grid { gap: 22px; }
  .news-lead { padding-left: 16px; }
  .news__text { font-size: 14px; margin-bottom: 14px; }

  /* На телефоне карточка ложится в строку: картинка слева, заголовок
     и пояснение справа. Столбиком она съедала бы пол-экрана, а раздел
     обязан помещаться целиком. */
  .news-card--lead {
    grid-template-columns: 118px 1fr;
    gap: 12px;
    align-items: start;
  }
  .news-card--lead .news-card__cover { max-width: none; }
  .news-card--lead .news__title { font-size: 17px; margin-bottom: 6px; }
  .news-card--lead .news__text { font-size: 13px; margin-bottom: 8px; }
  .news-card--lead .news__meta { margin-bottom: 7px; }
}

/* ============================================================
   ФОН ВНУТРЕННИХ СТРАНИЦ
   Размытие и затемнение впечены в саму картинку, а не наложены
   стилями. Так телефону не приходится размывать её на каждом кадре:
   он просто рисует готовое изображение. Плюс файл весит впятеро
   меньше: размытое сжимается куда лучше резкого.
   ============================================================ */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
/* ещё немного черноты сверху вниз, чтобы текст лежал спокойно */
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(5, 5, 5, 0.55) 0%,
    rgba(5, 5, 5, 0.72) 45%,
    rgba(5, 5, 5, 0.9) 100%);
}
.page-bg--news  { background-image: url("../assets/page-news.jpg"); }
.page-bg--store { background-image: url("../assets/page-store.jpg"); }

/* содержимое поверх фона */
/* Шапку тут не трогаем: у неё своё закрепление и свой слой поверх всего.
   Если задать ей relative и слой 1, она перестанет держаться наверху,
   а выпадающее меню окажется под содержимым страницы. */
body.page main,
body.page .footer { position: relative; z-index: 1; }
/* подвал на фоне не должен выглядеть заплаткой */
body.has-bg .footer { background: transparent; }

/* Карточка без картинки: колонка под неё не резервируется.
   Иначе текст ужимался бы в узкий столбик рядом с пустотой. */
.news-card--plain { grid-template-columns: 1fr; }
