/*
  3180 components/ui.css

  Единый файл повторяемых UI-компонентов сайта.

  Здесь живут:
  - смысловые секции;
  - карточки;
  - ссылки и CTA;
  - хронология;
  - бумажная система;
  - блок "Форматы вселенной";
  - будущие декоративные углы бумажных плашек.

  Страница/макет/админка не должны плодить свои версии этих компонентов.
*/

/* ============================================================
   Sections
   Source before merge: sections.css
   ============================================================ */

/*
  3180 components/sections.css
  Общие смысловые контейнеры.
*/

.home-section--factions,
.home-section--materials {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.014)),
    radial-gradient(circle at 50% 0%, rgba(77,183,232,0.07), transparent 28%),
    var(--3180-section-surface, rgba(20,23,26,0.86)) !important;
  border-color: var(--3180-section-line, rgba(184,173,151,0.20)) !important;
}/* ============================================================
   Cards
   Source before merge: cards.css
   ============================================================ */

/*
  3180 components/cards.css
  Единая логика контентных карточек.

  Принцип:
  - карточка не прыгает;
  - карточка не вспыхивает;
  - внутренняя картинка не меняет яркость;
  - hover = только рамка,
фон и мягкий контур.
*/

.ds-content-card,
.home-section--materials .info-panel {
  position: relative;
  overflow: hidden;
  transform: none !important;
  filter: none !important;
  border: 1px solid rgba(214,199,175,0.14) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.040), rgba(255,255,255,0.012)),
    rgba(8,10,12,0.50) !important;
  box-shadow:
    0 18px 36px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.025) !important;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease !important;
  will-change: auto !important;
}.ds-content-card:hover,
.home-section--materials .info-panel:hover {
  transform: none !important;
  filter: none !important;
  border-color: rgba(77,183,232,0.22) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.050), rgba(255,255,255,0.016)),
    rgba(8,10,12,0.56) !important;
  box-shadow:
    0 18px 36px rgba(0,0,0,0.24),
    0 0 22px rgba(77,183,232,0.045),
    inset 0 1px 0 rgba(255,255,255,0.035) !important;
}.ds-content-card:hover *,
.home-section--materials .info-panel:hover * {
  backface-visibility: hidden;
}.ds-content-card .large-thumb,
.ds-content-card .map-placeholder,
.ds-content-card .mini-thumb,
.home-section--materials .large-thumb,
.home-section--materials .map-placeholder,
.home-section--materials .mini-thumb,
.ds-content-card:hover .large-thumb,
.ds-content-card:hover .map-placeholder,
.ds-content-card:hover .mini-thumb,
.home-section--materials .info-panel:hover .large-thumb,
.home-section--materials .info-panel:hover .map-placeholder,
.home-section--materials .info-panel:hover .mini-thumb {
  transform: none !important;
  filter: none !important;
  transition: none !important;
}.panel-head a {
  position: relative;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--3180-text-main);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 13px;
  transition:
    transform 0.18s ease,
    color 0.18s ease,
    text-shadow 0.18s ease;
}.panel-head a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      var(--3180-rift-depth),
      var(--3180-rift-glow-2),
      var(--3180-old-gold-2)
    );
  box-shadow: 0 0 12px rgba(77,183,232,0.30);
  opacity: 0;
  transition:
    right 0.18s ease,
    opacity 0.18s ease;
}.panel-head a:hover {
  color: #F1E3C8;
  transform: translateY(-2px);
  text-shadow:
    0 0 12px rgba(77,183,232,0.16),
    0 2px 10px rgba(0,0,0,0.62);
}.panel-head a:hover::after {
  right: 0;
  opacity: 1;
}/* Hero CTA */
.hero-actions .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}.hero-actions .btn::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 100%;
  bottom: 6px;
  height: 1px;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--3180-rift-glow-2),
      var(--3180-old-gold-2),
      transparent
    );
  opacity: 0;
  box-shadow: 0 0 12px rgba(77,183,232,0.30);
  transition:
    right 0.18s ease,
    opacity 0.18s ease;
}.hero-actions .btn:hover::after {
  right: 14px;
  opacity: 1;
}/* ============================================================
   Paper system
   Source before merge: paper.css
   ============================================================ */

/*
  3180 components/paper.css

  Единая система светлых элементов.
  Всё светлое в 3180 — архивная бумага {
  --3180-paper-bg: #d8cfbd;
  --3180-paper-ink: #2a2117;
  --3180-paper-title: #4b3a27;
  --3180-paper-muted: rgba(45,35,23,0.78);
  --3180-paper-line: rgba(57,45,30,0.17);
  --3180-paper-frame: rgba(42,34,24,0.42);
  --3180-paper-frame-soft: rgba(42,34,24,0.22);

  /* Управляемые ширины */
  --3180-width-content: min(90vw, 1680px);
  --3180-width-wide: var(--3180-width-content);

  /* Размер повторения текстуры */
  --3180-paper-tile-size: 560px;
}.paper-panel,
.paper-card {
  color: var(--3180-paper-ink);
  background-color: var(--3180-paper-bg);
  background-image:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.26), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(90,73,48,0.10)),
    url("/static/img/textures/light-paper-tile.webp");
  background-repeat: no-repeat, no-repeat, repeat;
  background-size:
    100% 100%,
    100% 100%,
    var(--3180-paper-tile-size) var(--3180-paper-tile-size);
  border: 1px solid var(--3180-paper-frame);
  box-shadow:
    0 18px 42px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.42),
    inset 0 -1px 0 rgba(54,43,30,0.28);
}.paper-panel,
.paper-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}.paper-panel::before,
.paper-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(42,34,24,0.16), transparent 9%, transparent 91%, rgba(42,34,24,0.16)),
    linear-gradient(180deg, rgba(42,34,24,0.14), transparent 18%, transparent 82%, rgba(42,34,24,0.16));
  mix-blend-mode: multiply;
}.paper-panel::after,
.paper-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  pointer-events: none;
  border: 1px solid var(--3180-paper-frame-soft);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(42,34,24,0.10);
}

/* ============================================================
   Width modifiers
   ============================================================ */

.paper-panel {
  width: var(--3180-width-content);
  margin-left: auto;
  margin-right: auto;
}.paper-panel--formats {
  width: var(--3180-width-wide);
}.paper-panel h1,
.paper-panel h2,
.paper-panel h3,
.paper-panel h4,
.paper-card h1,
.paper-card h2,
.paper-card h3,
.paper-card h4 {
  color: var(--3180-paper-title);
  -webkit-text-fill-color: var(--3180-paper-title);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.42),
    0 2px 4px rgba(63,47,31,0.13);
}.paper-panel p,
.paper-panel em,
.paper-panel small,
.paper-card p,
.paper-card em,
.paper-card small {
  color: var(--3180-paper-muted);
}

/* ============================================================
   Paper heading
   ============================================================ */

.paper-panel__head {
  margin: 0 0 clamp(20px, 2vw, 30px);
  padding: 0;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.paper-panel__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.4vw, 24px);

  width: 100%;
  margin: 0;
  padding: 0;

  color: var(--3180-paper-title);
  -webkit-text-fill-color: var(--3180-paper-title);

  font-family: var(--3180-font-section, "Unbounded", "Manrope", system-ui, sans-serif);
  font-size: clamp(18px, 1.45vw, 28px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  text-shadow:
    0 1px 0 rgba(255,255,255,0.42),
    0 2px 4px rgba(63,47,31,0.13);

  background: transparent;
  border: 0;
  box-shadow: none;
}

.paper-panel__title::before,
.paper-panel__title::after {
  content: "";
  display: block;
  width: min(120px, 12vw);
  height: 1px;
  flex: 0 1 min(120px, 12vw);
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(76,58,37,0.38),
      transparent
    );
}/* ============================================================
   Paper buttons
   ============================================================ */

.paper-button,
.btn-light {
  color: var(--3180-paper-ink) !important;
  background-color: var(--3180-paper-bg) !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,255,255,0.08)),
    url("/static/img/textures/light-paper-tile.webp") !important;
  background-repeat: no-repeat, repeat !important;
  background-size: 100% 100%, 360px 360px !important;
  border: 1px solid rgba(42,34,24,0.34) !important;
  box-shadow:
    0 12px 22px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.44),
    inset 0 -1px 0 rgba(54,43,30,0.18) !important;
}.paper-button:hover,
.btn-light:hover {
  filter: brightness(1.03);
  box-shadow:
    0 16px 28px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.48),
    inset 0 -1px 0 rgba(54,43,30,0.22) !important;
}

/* ============================================================
   Paper cards and lists
   ============================================================ */

.paper-card {
  padding: clamp(18px, 2vw, 28px);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 760px) {
  :root {
    --3180-width-content: calc(100% - 24px);
    --3180-width-wide: var(--3180-width-content);
    --3180-paper-tile-size: 460px;
  }

  .paper-panel__title {
    letter-spacing: 0.10em;
  }

  .paper-panel__title::before,
  .paper-panel__title::after {
    display: none;
  }
}

/* ============================================================
   Formats universe
   Source before merge: formats.css
   ============================================================ */

/*
  3180 components/formats.css

  Только сетка "Форматы вселенной".
  База бумажной поверхности живёт в components/paper.css.
*/

.paper-panel--formats {
  margin-top: clamp(20px, 2.8vw, 54px);
  margin-bottom: clamp(20px, 2.8vw, 54px);
  padding:
    clamp(24px, 2.5vw, 38px)
    clamp(18px, 2.5vw, 44px)
    clamp(24px, 2.5vw, 38px);
}

.formats-universe__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
}

.formats-universe__item {
  position: relative;
  min-height: 178px;

  display: grid;
  grid-template-rows: auto auto 1fr auto;
  justify-items: center;
  align-content: start;
  gap: 8px;

  padding: 20px 18px 16px;
  text-align: center;

  color: var(--3180-paper-ink);
  text-decoration: none;
  border-right: 1px solid var(--3180-paper-line);

  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    color 0.18s ease;
}

.formats-universe__item:last-child {
  border-right: 0;
}

.formats-universe__icon {
  min-height: 38px;
  display: grid;
  place-items: center;
  color: #3a2d1c;
  font-size: 30px;
  line-height: 1;
  opacity: 0.92;
  text-shadow: 0 1px 0 rgba(255,255,255,0.34);
}

.formats-universe__item strong {
  display: block;
  color: #332719;
  -webkit-text-fill-color: #332719;
  font-family: var(--3180-font-heading, "Manrope", system-ui, sans-serif);
  font-size: clamp(16px, 1vw, 22px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.36),
    0 1px 3px rgba(63,47,31,0.12);
}

.formats-universe__item em {
  max-width: 210px;
  color: var(--3180-paper-muted);
  font-style: normal;
  font-size: clamp(13px, 0.82vw, 16px);
  line-height: 1.25;
}

.formats-universe__item small {
  position: relative;
  display: inline-flex;
  margin-top: 4px;
  color: #392b1b;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.formats-universe__item small::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(76,58,37,0.62), transparent);
  transition: right 0.18s ease;
}

.formats-universe__item:hover {
  transform: translateY(-4px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
  box-shadow:
    0 14px 24px rgba(33,29,23,0.14),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.formats-universe__item:hover small::after {
  right: 0;
}

@media (max-width: 1320px) {
  .formats-universe__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .formats-universe__item:nth-child(3n) {
    border-right: 0;
  }

  .formats-universe__item:nth-child(n + 4) {
    border-top: 1px solid var(--3180-paper-line);
  }
}

@media (max-width: 760px) {
  .paper-panel--formats {
    padding: 24px 16px;
  }

  .formats-universe__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .formats-universe__item {
    min-height: 160px;
    border-right: 0;
    border-top: 1px solid var(--3180-paper-line);
  }

  .formats-universe__item:nth-child(1),
  .formats-universe__item:nth-child(2) {
    border-top: 0;
  }

  .formats-universe__item:nth-child(odd) {
    border-right: 1px solid var(--3180-paper-line);
  }
}

@media (max-width: 460px) {
  .formats-universe__grid {
    grid-template-columns: 1fr;
  }

  .formats-universe__item:nth-child(odd) {
    border-right: 0;
  }

  .formats-universe__item:nth-child(2) {
    border-top: 1px solid var(--3180-paper-line);
  }
}

/* ============================================================
   Paper button final
   ============================================================ */

.paper-button {
  position: relative;
  overflow: hidden;

  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding: 14px 20px;

  color: var(--3180-paper-ink) !important;
  text-decoration: none !important;
  font-family: var(--3180-font-heading, "Manrope", system-ui, sans-serif);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  background-color: var(--3180-paper-bg) !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.30), rgba(255,255,255,0.08)),
    url("/static/img/textures/light-paper-tile.webp") !important;
  background-repeat: no-repeat, repeat !important;
  background-size: 100% 100%, 360px 360px !important;

  border: 1px solid rgba(42,34,24,0.34) !important;
  box-shadow:
    0 12px 22px rgba(33,29,23,0.16),
    inset 0 1px 0 rgba(255,255,255,0.44),
    inset 0 -1px 0 rgba(54,43,30,0.18) !important;

  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

/* У бумажной кнопки не должно быть грязной нижней линии от обычных ссылок */
.paper-button::before,
.paper-button::after {
  display: none !important;
  content: none !important;
}

.paper-button:hover {
  transform: translateY(-4px);
  filter: brightness(1.04);
  color: var(--3180-paper-ink) !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.12)),
    url("/static/img/textures/light-paper-tile.webp") !important;
  box-shadow:
    0 16px 30px rgba(33,29,23,0.22),
    inset 0 1px 0 rgba(255,255,255,0.52),
    inset 0 -1px 0 rgba(54,43,30,0.22) !important;
}/* ============================================================
   Hero CTA final sync
   ============================================================ */

.hero-actions .btn {
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease !important;
}.hero-actions .btn:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.06);
}

/* ============================================================
   Support spacing cleanup v4.9
   ============================================================ */

/*
  Финальная логика поддержки:
  - внешний контейнер такой же, как у Фракций / Материалов;
  - нормальные внутренние отступы;
  - внутри 4 блока: левый бумажный, 3 правых тёмные;
  - мокап и главная используют тот же компонент.
*/

:root {
  --3180-section-pad-x: clamp(42px, 3.4vw, 74px);
  --3180-section-pad-y: clamp(42px, 3.2vw, 70px);
  --3180-section-head-gap: clamp(24px, 2vw, 36px);
}

/* Внешний контейнер поддержки */
.home-section--support.support-shell {
  width: var(--3180-site-section-width) !important;
  max-width: var(--3180-site-section-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;

  padding:
    var(--3180-section-pad-y)
    var(--3180-section-pad-x) !important;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.014)),
    radial-gradient(circle at 50% 0%, rgba(77,183,232,0.07), transparent 28%),
    var(--3180-section-surface, rgba(20,23,26,0.86)) !important;

  border: 1px solid var(--3180-section-line, rgba(184,173,151,0.20)) !important;

  box-shadow:
    0 18px 42px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.035) !important;

  box-sizing: border-box !important;
}

/* Заголовок поддержки — такие же отступы, как у крупных секций */
.home-section--support .home-section-head {
  margin: 0 0 var(--3180-section-head-gap) !important;
  padding: 0 !important;
  max-width: 1120px;
}

.home-section--support .home-section-kicker {
  margin-bottom: 12px;
}

.home-section--support .home-section-head h2 {
  margin-top: 0 !important;
}

.home-section--support .home-section-head p {
  margin-bottom: 0 !important;
}

/* Сетка 4 блоков */
.home-section--support .support-mosaic {
  width: 100%;
  margin: 0;

  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) repeat(3, minmax(220px, 0.65fr));
  align-items: stretch;

  border: 1px solid rgba(214,199,175,0.14);

  background:
    linear-gradient(180deg, rgba(255,255,255,0.026), rgba(255,255,255,0.008)),
    rgba(8,10,12,0.46);

  box-shadow:
    0 18px 36px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.025);
}

/* Общие карточки внутри поддержки */
.support-mosaic__paper,
.support-mosaic__card {
  min-height: clamp(220px, 15vw, 280px);
  padding: clamp(24px, 2.2vw, 40px);
}

/* Левый бумажный блок */
.support-mosaic__paper {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  color: var(--3180-paper-ink);

  background-color: var(--3180-paper-bg);
  background-image:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.26), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(90,73,48,0.10)),
    url("/static/img/textures/light-paper-tile.webp");
  background-repeat: no-repeat, no-repeat, repeat;
  background-size:
    100% 100%,
    100% 100%,
    var(--3180-paper-tile-size) var(--3180-paper-tile-size);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.42),
    inset 0 -1px 0 rgba(54,43,30,0.18);
}

.support-mosaic__paper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(42,34,24,0.12), transparent 12%, transparent 88%, rgba(42,34,24,0.10)),
    linear-gradient(180deg, rgba(42,34,24,0.10), transparent 20%, transparent 84%, rgba(42,34,24,0.12));
  mix-blend-mode: multiply;
}

.support-mosaic__paper h3 {
  margin: 0 0 16px;

  color: var(--3180-paper-title) !important;
  -webkit-text-fill-color: var(--3180-paper-title) !important;

  font-family: var(--3180-font-heading, "Manrope", system-ui, sans-serif);
  font-size: clamp(24px, 1.9vw, 40px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;

  text-shadow:
    0 1px 0 rgba(255,255,255,0.42),
    0 2px 4px rgba(63,47,31,0.13) !important;

  background: transparent !important;
  box-shadow: none !important;
}

.support-mosaic__paper p {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--3180-paper-muted) !important;
  font-size: clamp(15px, 0.95vw, 18px);
  line-height: 1.5;
}

.support-mosaic__button {
  min-width: 260px;
}

/* Тёмные блоки */
.support-mosaic__card {
  border-left: 1px solid rgba(214,199,175,0.12);

  background:
    radial-gradient(circle at 72% 0%, rgba(77,183,232,0.045), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.026), rgba(255,255,255,0.008)),
    rgba(8,10,12,0.38);
}

.support-mosaic__card h3 {
  margin: 0 0 12px;

  color: var(--3180-old-gold-2);
  -webkit-text-fill-color: var(--3180-old-gold-2);

  font-family: var(--3180-font-heading, "Manrope", system-ui, sans-serif);
  font-size: clamp(16px, 1.05vw, 22px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;

  text-shadow: none;
  background: transparent !important;
  box-shadow: none !important;
}

.support-mosaic__card p {
  margin: 0;
  color: var(--3180-text-muted);
  font-size: clamp(14px, 0.86vw, 16px);
  line-height: 1.5;
}/* В мокапе тот же компонент {
  width: 100% !important;
  max-width: 100% !important;
}

/* Планшет */
@media (max-width: 1180px) {
  .home-section--support .support-mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .support-mosaic__card:nth-child(3) {
    border-left: 0;
  }

  .support-mosaic__card:nth-child(n + 3) {
    border-top: 1px solid rgba(214,199,175,0.12);
  }
}

/* Телефон */
@media (max-width: 720px) {
  :root {
    --3180-section-pad-x: 20px;
    --3180-section-pad-y: 28px;
  }

  .home-section--support .support-mosaic {
    grid-template-columns: 1fr;
  }

  .support-mosaic__card {
    min-height: 0;
    border-left: 0;
    border-top: 1px solid rgba(214,199,175,0.12);
  }

  .support-mosaic__button {
    width: 100%;
    min-width: 0;
  }
}/* ============================================================
   Faction card real images v5.0
   ============================================================ */

/*
  Реальные картинки фракций.
  Используются и на главной {
  background:
    linear-gradient(180deg, rgba(8,10,12,0.08), rgba(8,10,12,0.56)),
    url("/static/img/factions/faction-sr.webp") center center / cover no-repeat !important;
}/* Знак/иконка поверх картинки {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Shared primary paper buttons v5.2
   ============================================================ */

/*
  Primary-кнопка — это бумажная кнопка.
  Админка и служебные страницы используют общий UI-компонент,
  а не отдельную копию в admin.css.
*/

.btn.primary,
button.btn.primary,
input[type="submit"].primary,
input[type="submit"].btn.primary {
  position: relative;
  overflow: hidden;

  color: var(--3180-paper-ink) !important;
  background-color: var(--3180-paper-bg) !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.30), rgba(255,255,255,0.08)),
    url("/static/img/textures/light-paper-tile.webp") !important;
  background-repeat: no-repeat, repeat !important;
  background-size: 100% 100%, 360px 360px !important;

  border-color: rgba(42,34,24,0.34) !important;

  box-shadow:
    0 12px 22px rgba(33,29,23,0.16),
    inset 0 1px 0 rgba(255,255,255,0.44),
    inset 0 -1px 0 rgba(54,43,30,0.18) !important;
}

.btn.primary::before,
.btn.primary::after,
button.btn.primary::before,
button.btn.primary::after,
input[type="submit"].primary::before,
input[type="submit"].primary::after,
input[type="submit"].btn.primary::before,
input[type="submit"].btn.primary::after {
  display: none !important;
  content: none !important;
}

.btn.primary:hover,
button.btn.primary:hover,
input[type="submit"].primary:hover,
input[type="submit"].btn.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);

  color: var(--3180-paper-ink) !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.12)),
    url("/static/img/textures/light-paper-tile.webp") !important;

  box-shadow:
    0 16px 30px rgba(33,29,23,0.22),
    inset 0 1px 0 rgba(255,255,255,0.52),
    inset 0 -1px 0 rgba(54,43,30,0.22) !important;
}

/* ============================================================
   News archive layout v5.9
   ============================================================ */

/*
  Новости — это не копия hero с главной.
  /news: компактный архивный список.
  /news/{slug}: статья + правая колонка со статусом и компактной обложкой.
*/

.public-main {
  width: var(--3180-site-section-width, min(96vw, 2260px));
  margin: clamp(20px, 2vw, 34px) auto;
}

.news-page {
  width: var(--3180-site-section-width, min(96vw, 2260px));
}

.news-index,
.news-detail-page {
  width: 100%;
}

/* ---------- News list ---------- */

.news-index--compact {
  padding-bottom: clamp(34px, 3vw, 58px) !important;
}

.news-archive-list {
  display: grid;
  gap: 0;
  margin-top: clamp(24px, 2vw, 36px);
  border: 1px solid rgba(214,199,175,0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.026), rgba(255,255,255,0.008)),
    rgba(8,10,12,0.44);
}

.news-archive-item {
  display: grid;
  grid-template-columns: minmax(150px, 0.18fr) minmax(0, 1fr) auto;
  gap: clamp(18px, 2vw, 34px);
  align-items: center;

  padding: clamp(20px, 1.8vw, 34px);

  border-bottom: 1px solid rgba(214,199,175,0.10);

  transition:
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.news-archive-item:last-child {
  border-bottom: 0;
}

.news-archive-item:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.040), rgba(255,255,255,0.012)),
    rgba(8,10,12,0.54);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.025);
}

.news-archive-item__date {
  color: var(--3180-text-steel-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
}

.news-archive-item__body h2 {
  margin: 0 0 8px;

  font-family: var(--3180-font-heading, "Manrope", system-ui, sans-serif);
  font-size: clamp(22px, 1.5vw, 34px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.045em;

  background-image: var(--3180-grad-title-on-dark), var(--3180-grad-wear);
  background-blend-mode: normal, overlay;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.news-archive-item__body h2 a {
  color: inherit;
  text-decoration: none;
}

.news-archive-item__body p {
  max-width: 980px;
  margin: 0;
  color: var(--3180-text-muted);
  line-height: 1.55;
}

.news-empty {
  color: var(--3180-text-muted);
}

/* ---------- News detail ---------- */

.news-detail-page {
  padding: clamp(34px, 3vw, 64px) !important;
}

.news-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.38fr);
  gap: clamp(28px, 3vw, 62px);
  align-items: start;
}

.news-detail-main h1 {
  max-width: 1180px;
  margin: 12px 0 18px;

  font-family: var(--3180-font-heading, "Manrope", system-ui, sans-serif);
  font-size: clamp(42px, 4.2vw, 88px);
  line-height: 0.96;
  text-transform: uppercase;
  letter-spacing: 0.035em;

  background-image: var(--3180-grad-title-on-dark), var(--3180-grad-wear);
  background-blend-mode: normal, overlay;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  text-shadow: var(--3180-shadow-title-on-dark);
}

.news-lead {
  max-width: 980px;
  margin: 0 0 clamp(24px, 2vw, 36px);
  color: var(--3180-text-muted);
  font-size: clamp(16px, 1vw, 20px);
  line-height: 1.6;
}

.news-body {
  max-width: 980px;
  color: var(--3180-text-muted);
  font-size: clamp(16px, 0.95vw, 19px);
  line-height: 1.75;
}

.news-body p {
  margin: 0 0 1.15em;
}

.news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 2vw, 44px);
}

/* Right column */

.news-detail-aside {
  display: grid;
  gap: clamp(16px, 1.4vw, 24px);
}

.news-status-card {
  padding: clamp(20px, 1.8vw, 30px);
}

.news-status-card__label {
  margin-bottom: 12px;

  color: #5f4a2c;
  font-family: var(--3180-font-section, "Unbounded", "Manrope", system-ui, sans-serif);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.news-status-card h2 {
  margin: 0 0 12px;

  color: var(--3180-paper-title) !important;
  -webkit-text-fill-color: var(--3180-paper-title) !important;
  font-family: var(--3180-font-heading, "Manrope", system-ui, sans-serif);
  font-size: clamp(22px, 1.6vw, 34px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-status-card p {
  margin: 0;
  color: var(--3180-paper-muted) !important;
  line-height: 1.55;
}

.news-side-cover {
  min-height: clamp(220px, 17vw, 360px);
  display: grid;
  place-items: end start;

  padding: 18px;

  border: 1px solid rgba(214,199,175,0.14);

  background-size: cover;
  background-position: center center;

  box-shadow:
    0 18px 36px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.025);
}

.news-side-cover span {
  padding: 7px 10px;
  border: 1px solid rgba(214,199,175,0.22);
  background: rgba(8,10,12,0.62);
  color: var(--3180-text-main);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-size: 12px;
}

.news-next-card {
  padding: clamp(20px, 1.8vw, 30px);
}

.news-next-card h3 {
  margin: 0 0 10px;
  color: var(--3180-old-gold-2);
  -webkit-text-fill-color: var(--3180-old-gold-2);
  font-family: var(--3180-font-heading, "Manrope", system-ui, sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.055em;
  font-size: clamp(18px, 1.1vw, 24px);
}

.news-next-card p {
  color: var(--3180-text-muted);
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .news-archive-item {
    grid-template-columns: 1fr;
  }

  .news-archive-item__action {
    justify-self: start;
  }

  .news-detail-layout {
    grid-template-columns: 1fr;
  }

  .news-detail-aside {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Public shell and components class system v8.3
   ============================================================ */

/*
  Финальная рабочая публичная система:
  - главная, мокап, новости используют один CSS-набор;
  - ширина через --3180-site-section-width;
  - крупные заголовки через .section-title-main;
  - описания крупных контейнеров через .section-lead;
  - не используем жёсткие ID-селекторы для типографики.
*/

/* ---------- Width and rhythm ---------- */

:where(
  .site-header.public-site-header,
  .public-site-header,
  .hero-layout,
  .home-section,
  .paper-panel--formats,
  .support-shell,
  .public-main,
  .news-page,
  .site-footer.public-site-footer,
  .public-site-footer
) {
  width: var(--3180-site-section-width) !important;
  max-width: var(--3180-site-section-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

:where(
  .hero-layout,
  .home-section,
  .paper-panel--formats,
  .support-shell,
  .public-main,
  .news-page
) {
  margin-top: var(--3180-section-gap-y) !important;
  margin-bottom: var(--3180-section-gap-y) !important;
}

:where(.public-site-footer, .site-footer.public-site-footer) {
  margin-top: var(--3180-section-gap-y) !important;
  margin-bottom: var(--3180-section-gap-y) !important;
}

:where(.public-site-header, .site-header.public-site-header) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ---------- Shared typography classes ---------- */

.section-title-main {
  display: block !important;
  width: 100% !important;
  max-width: none !important;

  margin-top: 0 !important;
  margin-bottom: clamp(22px, 2vw, 36px) !important;

  font-size: clamp(30px, 2.65vw, 56px) !important;
  line-height: 1.04 !important;
  letter-spacing: 0.035em !important;

  text-align: left !important;
  hyphens: none !important;
  box-sizing: border-box !important;
}

.section-lead {
  display: block !important;
  width: 100% !important;
  max-width: none !important;

  margin-left: 0 !important;
  margin-right: 0 !important;

  text-align: justify !important;
  text-wrap: pretty;
  hyphens: auto;

  color: var(--3180-text-muted);
  line-height: 1.78;
}

/* ---------- Header ---------- */

.public-site-header {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 2vw, 38px);
  padding: clamp(16px, 1.6vw, 26px) 0;
  border-bottom: 1px solid rgba(214,199,175,0.10);
}

.public-site-logo {
  display: inline-flex;
  align-items: center;
  width: clamp(170px, 14vw, 260px);
}

.public-site-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.public-site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 1.15vw, 22px);
  color: var(--3180-text-muted);
  font-family: var(--3180-font-heading, "Manrope", system-ui, sans-serif);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-site-nav a {
  position: relative;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: var(--3180-metal-edge-2);
  text-decoration: none;
  isolation: isolate;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}

.public-site-nav a::before {
  content: "";
  position: absolute;
  inset: 2px 0;
  z-index: -1;
  border: 1px solid transparent;
  background: transparent;
  opacity: 0;
  transform: translateY(4px) scale(0.92);
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.public-site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 3px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214,199,175,0.62), transparent);
  opacity: 0;
  transition: left 0.18s ease, right 0.18s ease, opacity 0.18s ease;
}

.public-site-nav a:hover {
  color: var(--3180-text-main);
  text-shadow: 0 0 12px rgba(77,183,232,0.12), 0 2px 10px rgba(0,0,0,0.62);
}

.public-site-nav a:hover::before {
  opacity: 1;
  transform: translateY(0) scale(1);
  border-color: var(--3180-line-bronze);
  background: linear-gradient(180deg, rgba(95,91,82,0.24), rgba(20,23,26,0.18));
}

.public-site-nav a:hover::after {
  left: 12px;
  right: 12px;
  opacity: 1;
}

.site-search-trigger {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(214,199,175,0.16);
  background: rgba(8,10,12,0.42);
  text-decoration: none;
}

.site-search-trigger__icon {
  width: 15px;
  height: 15px;
  display: block;
  border: 2px solid var(--3180-text-muted);
  border-radius: 999px;
  box-shadow: 9px 9px 0 -6px var(--3180-text-muted);
}

/* ---------- Footer ---------- */

.public-site-footer {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(360px, 1.35fr) minmax(260px, 0.75fr);
  gap: clamp(26px, 3.2vw, 72px);
  align-items: start;
  padding: clamp(32px, 3vw, 56px) clamp(34px, 3.2vw, 72px);
  border: 1px solid rgba(214,199,175,0.14);
  background:
    radial-gradient(circle at 10% 0%, rgba(77,183,232,0.045), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.030), rgba(255,255,255,0.008)),
    rgba(8,10,12,0.56);
  color: var(--3180-text-dust);
  box-shadow:
    0 18px 36px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.025);
}

.public-footer-brand img {
  width: clamp(170px, 12vw, 260px);
  height: auto;
  display: block;
  margin-bottom: 18px;
}

.public-footer-brand p {
  margin: 0;
  color: var(--3180-text-dust);
  font-size: 13px;
  line-height: 1.45;
}

.public-footer-nav--main {
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  font-family: var(--3180-font-heading, "Manrope", system-ui, sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.public-footer-nav--main a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 0;
  color: var(--3180-text-muted);
  text-decoration: none;
}

.public-footer-nav--main a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214,199,175,0.64), transparent);
  opacity: 0;
  transition: left 0.18s ease, right 0.18s ease, opacity 0.18s ease;
}

.public-footer-nav--main a:hover {
  color: var(--3180-text-main);
}

.public-footer-nav--main a:hover::after {
  left: 0;
  right: 0;
  opacity: 1;
}

.public-footer-social h3 {
  margin: 0 0 18px;
  color: var(--3180-old-gold-2);
  font-family: var(--3180-font-heading, "Manrope", system-ui, sans-serif);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-footer-social__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.public-footer-social__links a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(214,199,175,0.16);
  color: var(--3180-text-muted);
  text-decoration: none;
  font-family: var(--3180-font-heading, "Manrope", system-ui, sans-serif);
  font-size: 12px;
  letter-spacing: 0.06em;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.030), rgba(255,255,255,0.008)),
    rgba(8,10,12,0.42);
}/* ---------- Buttons ---------- */

.btn,
.paper-button,
.hero-actions a,
.hero-actions .btn {
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease !important;
}.btn:hover,
.paper-button:hover,
.hero-actions a:hover,
.hero-actions .btn:hover {
  transform: none !important;
}

/* ---------- Universe shell ---------- */

.universe-shell {
  padding: var(--3180-site-section-padding) !important;
  border: 1px solid rgba(184,173,151,0.20) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.014)),
    radial-gradient(circle at 50% 0%, rgba(77,183,232,0.07), transparent 28%),
    rgba(20,23,26,0.86) !important;
  box-shadow:
    0 18px 42px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.035) !important;
  box-sizing: border-box !important;
  overflow: hidden;
}

/* ---------- Factions ---------- */

.faction-choice-shell {
  width: 100%;
  box-sizing: border-box;
}

.faction-choice-section > .home-section-head {
  display: none !important;
}

.faction-choice-shell > .faction-choice-head {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 clamp(24px, 2vw, 36px) !important;
  padding: 0 !important;
}

.faction-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 1.6vw, 30px);
  width: 100%;
  margin: 0 !important;
}

.faction-choice-card {
  min-height: clamp(500px, 30vw, 700px);
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: end;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(214,199,175,0.14);
  background: rgba(8,10,12,0.48);
  box-shadow:
    0 20px 46px rgba(0,0,0,0.26),
    inset 0 1px 0 rgba(255,255,255,0.025);
}

.faction-choice-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.72;
  transform: scale(1);
  transform-origin: center center;
  will-change: transform, opacity, filter;
  transition: transform 0.34s ease, opacity 0.28s ease, filter 0.28s ease !important;
}

.faction-choice-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8,10,12,0.12), rgba(8,10,12,0.88)),
    radial-gradient(circle at 50% 0%, rgba(77,183,232,0.10), transparent 38%);
}

.faction-choice-card:hover img {
  transform: scale(1.04);
  opacity: 0.88;
  filter: contrast(1.04) brightness(1.04);
}

.faction-choice-card__body {
  position: relative;
  z-index: 1;
  padding: clamp(22px, 2vw, 38px);
}

.faction-choice-card__body span:not(.faction-choice-card__link) {
  color: var(--3180-text-dust);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.faction-choice-card__body h3 {
  margin: 12px 0 14px;
  color: var(--3180-old-gold-2);
  font-family: var(--3180-font-heading, "Manrope", system-ui, sans-serif);
  font-size: clamp(26px, 2vw, 48px);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.faction-choice-card__body p {
  max-width: 620px;
  margin: 0 0 22px;
  color: var(--3180-text-muted);
  line-height: 1.58;
}

.faction-choice-card__link {
  position: relative;
  display: inline-flex;
  width: fit-content;
  color: var(--3180-text-main);
  font-family: var(--3180-font-heading, "Manrope", system-ui, sans-serif);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.faction-choice-card__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      rgba(77,183,232,0.0),
      rgba(77,183,232,0.70),
      rgba(214,199,175,0.38)
    );
  opacity: 0;
  transition: right 0.22s ease, opacity 0.18s ease;
}

.faction-choice-card:hover .faction-choice-card__link {
  color: var(--3180-old-gold-2);
}

.faction-choice-card:hover .faction-choice-card__link::after {
  right: 0;
  opacity: 1;
}

/* ---------- Object card ---------- */

.object-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(214,199,175,0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.030), rgba(255,255,255,0.008)),
    rgba(8,10,12,0.46);
  box-shadow:
    0 20px 46px rgba(0,0,0,0.26),
    inset 0 1px 0 rgba(255,255,255,0.025);
}

.object-card__media {
  min-height: clamp(340px, 24vw, 520px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(77,183,232,0.18), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.040), rgba(255,255,255,0.010));
}

.object-card__placeholder {
  color: rgba(214,199,175,0.44);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.object-card__body {
  padding: clamp(28px, 3vw, 58px);
}

.object-card__body h3 {
  margin: 12px 0 18px;
  color: var(--3180-old-gold-2);
  font-family: var(--3180-font-heading, "Manrope", system-ui, sans-serif);
  font-size: clamp(34px, 3vw, 74px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.object-card__body p {
  max-width: 880px;
  color: var(--3180-text-muted);
  line-height: 1.65;
}

.object-stat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.object-stat-list span {
  padding: 8px 10px;
  border: 1px solid rgba(214,199,175,0.13);
  color: var(--3180-text-dust);
  background: rgba(0,0,0,0.18);
  font-size: 13px;
}

/* ---------- Mobile ---------- */

@media (max-width: 1080px) {
  .public-site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .public-footer-social {
    grid-column: 1 / -1;
  }

  .faction-choice-grid,
  .object-card {
    grid-template-columns: 1fr;
  }

  .faction-choice-card {
    min-height: clamp(380px, 78vw, 560px);
  }
}

@media (max-width: 760px) {
  .section-title-main {
    font-size: clamp(24px, 7.2vw, 34px) !important;
    line-height: 1.08 !important;
  }

  .section-lead {
    text-align: justify !important;
    hyphens: auto;
  }

  .public-site-header {
    position: relative;
    grid-template-columns: 1fr !important;
    justify-items: center;
    gap: 12px;
    padding-top: 18px;
  }

  .public-site-logo {
    justify-self: center;
    width: clamp(176px, 54vw, 248px);
  }

  .public-site-header .site-search-trigger {
    position: absolute;
    top: 18px;
    right: 0;
    z-index: 5;
  }

  .public-site-nav {
    width: 100%;
    justify-content: center;
    padding-top: 6px;
  }

  .public-site-footer {
    grid-template-columns: 1fr;
  }

  .public-footer-nav--main {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .universe-shell {
    padding: 20px !important;
  }

  .faction-choice-card {
    min-height: 390px;
  }

  .faction-choice-card__body {
    padding: 20px !important;
  }
}

/* ============================================================
   Text shell about v8.7
   ============================================================ */

/*
  Текстовый контейнер.
  Используется для блоков, где главное — длинный текст, а не карточки.

  Сейчас применён к:
  03. about-3180

  Правила:
  - контейнер чуть темнее, чем universe-shell, но видимый;
  - заголовок использует общий .section-title-main с градиентом;
  - основной текст без градиента;
  - цитата без градиента, но с отдельным характером.
*/

.text-shell {
  padding: var(--3180-site-section-padding) !important;

  border: 1px solid rgba(184,173,151,0.18) !important;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.034), rgba(255,255,255,0.010)),
    radial-gradient(circle at 12% 0%, rgba(77,183,232,0.050), transparent 30%),
    rgba(14,17,20,0.90) !important;

  box-shadow:
    0 18px 42px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.026) !important;

  box-sizing: border-box !important;
  overflow: hidden;
}

.text-shell__head,
.text-shell .home-section-head {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* На всякий случай фиксируем заголовок внутри текстового блока:
   он должен быть таким же, как у 04/05/06. */
.text-shell .section-title-main {
  display: block !important;
  width: 100% !important;
  max-width: none !important;

  background-image: var(--3180-grad-title-on-dark), var(--3180-grad-wear) !important;
  background-blend-mode: normal, overlay !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;

  text-shadow: var(--3180-shadow-title-on-dark) !important;
}

/* Основной текст: без градиента */
.text-shell__text {
  display: block !important;
  width: 100% !important;
  max-width: none !important;

  margin-left: 0 !important;
  margin-right: 0 !important;

  text-align: justify !important;
  text-wrap: pretty;
  hyphens: auto;

  background: none !important;
  background-image: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: var(--3180-text-muted) !important;
  color: var(--3180-text-muted) !important;

  line-height: 1.78;
}

/* Цитата: тоже без градиента */
.text-shell__quote {
  display: block !important;
  width: 100% !important;
  max-width: none !important;

  margin-top: clamp(22px, 1.8vw, 36px) !important;
  padding: 0 0 0 clamp(16px, 1.4vw, 28px) !important;

  border-left: 1px solid rgba(77,183,232,0.46) !important;

  text-align: justify !important;
  text-wrap: pretty;
  hyphens: auto;

  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: var(--3180-text-main) !important;
  color: var(--3180-text-main) !important;

  font-style: italic !important;
  font-size: clamp(15px, 0.95vw, 18px);
  line-height: 1.75;
}

@media (max-width: 760px) {
  .text-shell {
    padding: clamp(20px, 5.8vw, 30px) !important;
  }

  .text-shell__text,
  .text-shell__quote {
    text-align: justify !important;
    hyphens: auto;
  }
}

/* ============================================================
   Text shell darker no-gradient v8.8
   ============================================================ */

/*
  03. about-3180

  Заголовок остаётся с градиентом через .section-title-main.
  Текст и цитата — обычный цвет, без градиента и без text-fill transparent.
  Контейнер чуть темнее, но остаётся видимым.
*/

.text-shell--about {
  border: 1px solid rgba(184,173,151,0.18) !important;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.026), rgba(255,255,255,0.006)),
    radial-gradient(circle at 12% 0%, rgba(77,183,232,0.040), transparent 28%),
    rgba(8,10,12,0.94) !important;

  box-shadow:
    0 18px 42px rgba(0,0,0,0.30),
    inset 0 1px 0 rgba(255,255,255,0.022) !important;
}

/* Внутри текстового блока заголовок сохраняет общий градиент */
.text-shell--about .section-title-main {
  background-image: var(--3180-grad-title-on-dark), var(--3180-grad-wear) !important;
  background-blend-mode: normal, overlay !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  text-shadow: var(--3180-shadow-title-on-dark) !important;
}

/* Основной текст: без градиента, без прозрачного text-fill */
.text-shell--about .text-shell__text,
.text-shell--about .text-shell__text * {
  background: none !important;
  background-image: none !important;
  background-color: transparent !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: var(--3180-text-muted) !important;
  color: var(--3180-text-muted) !important;
  text-shadow: none !important;
}

/* Цитата: тоже без градиента */
.text-shell--about .text-shell__quote,
.text-shell--about .text-shell__quote * {
  background: none !important;
  background-image: none !important;
  background-color: transparent !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: var(--3180-text-main) !important;
  color: var(--3180-text-main) !important;
  text-shadow: none !important;
}

/* Возвращаем текстовую логику после сброса */
.text-shell--about .text-shell__text {
  display: block !important;
  width: 100% !important;
  max-width: none !important;

  margin-left: 0 !important;
  margin-right: 0 !important;

  text-align: justify !important;
  text-wrap: pretty;
  hyphens: auto;

  line-height: 1.78;
}

.text-shell--about .text-shell__quote {
  display: block !important;
  width: 100% !important;
  max-width: none !important;

  margin-top: clamp(22px, 1.8vw, 36px) !important;
  padding: 0 0 0 clamp(16px, 1.4vw, 28px) !important;

  border-left: 1px solid rgba(77,183,232,0.46) !important;

  text-align: justify !important;
  text-wrap: pretty;
  hyphens: auto;

  font-style: italic !important;
  font-size: clamp(15px, 0.95vw, 18px);
  line-height: 1.75;
}

@media (max-width: 760px) {
  .text-shell--about .text-shell__text,
  .text-shell--about .text-shell__quote {
    text-align: justify !important;
    hyphens: auto;
  }
}

/* ============================================================
   About text uses faction copy style v8.9
   ============================================================ */

/*
  03. about-3180

  Текстовый стиль берём из описаний карточек фракций:
  тот же спокойный цвет, та же читаемая line-height-логика,
  без градиента и без отдельной тяжёлой плашки.

  Заголовок 03 остаётся .section-title-main с градиентом.
*/

.text-shell--about {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.024), rgba(255,255,255,0.006)),
    radial-gradient(circle at 12% 0%, rgba(77,183,232,0.036), transparent 28%),
    rgba(8,10,12,0.95) !important;
}

/* Один стиль основного текста для карточек фракций и 03 */
.faction-choice-card__body p,
.text-shell__text {
  font-family: var(--3180-font-body, var(--3180-font-main, "Manrope", system-ui, sans-serif)) !important;
  font-size: clamp(15px, 0.92vw, 17px) !important;
  font-weight: 400 !important;
  line-height: 1.58 !important;

  color: var(--3180-text-muted) !important;
  -webkit-text-fill-color: var(--3180-text-muted) !important;

  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;

  text-shadow: none !important;
}

.text-shell__text {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;

  text-align: justify !important;
  text-wrap: pretty;
  hyphens: auto;
}

/* Цитата — тот же текстовый стиль, но светлее и курсивом */
.text-shell__quote {
  width: 100% !important;
  max-width: none !important;

  margin-top: clamp(22px, 1.8vw, 36px) !important;
  padding: 0 0 0 clamp(16px, 1.4vw, 28px) !important;

  border-left: 1px solid rgba(77,183,232,0.46) !important;

  font-family: var(--3180-font-body, var(--3180-font-main, "Manrope", system-ui, sans-serif)) !important;
  font-size: clamp(15px, 0.92vw, 17px) !important;
  font-weight: 400 !important;
  font-style: italic !important;
  line-height: 1.58 !important;

  color: var(--3180-text-main) !important;
  -webkit-text-fill-color: var(--3180-text-main) !important;

  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;

  box-shadow: none !important;
  text-shadow: none !important;

  text-align: justify !important;
  text-wrap: pretty;
  hyphens: auto;
}

@media (max-width: 760px) {
  .text-shell__text,
  .text-shell__quote {
    text-align: justify !important;
    hyphens: auto;
  }
}

/* ============================================================
   Unified section head classes v9.1
   ============================================================ */

/*
  Единая система шапок крупных блоков.

  .section-head-main
  — родитель заголовка и описания. Всегда занимает 100% ширины контейнера.

  .section-title-main
  — общий крупный заголовок. Использует 100% ширины родителя,
    чтобы не было разрывов вроде “Технологии, новости и карта” в 2 строки.

  .section-lead
  — описание блока. Использует всю ширину и выравнивание по ширине.
*/

.section-head-main {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

.section-head-main .section-title-main {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: clamp(22px, 2vw, 36px) !important;

  text-align: left !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;

  font-size: clamp(30px, 2.65vw, 56px) !important;
  line-height: 1.04 !important;
  letter-spacing: 0.035em !important;

  box-sizing: border-box !important;
}

.section-head-main .section-lead {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  margin-left: 0 !important;
  margin-right: 0 !important;

  text-align: justify !important;
  text-wrap: pretty;
  hyphens: auto;

  color: var(--3180-text-muted);
  line-height: 1.78;
}

/* На совсем узких экранах оставляем ту же логику, но уменьшаем заголовок */
@media (max-width: 760px) {
  .section-head-main .section-title-main {
    font-size: clamp(24px, 7.2vw, 34px) !important;
    line-height: 1.08 !important;
  }

  .section-head-main .section-lead {
    text-align: justify !important;
    hyphens: auto;
  }
}

/* ============================================================
   Card title split hierarchy v9.6
   ============================================================ */

/*
  Иерархия заголовков:

  .section-title-main
  — большой заголовок контейнера.

  .card-title
  — заголовок карточки внутри большого контейнера.
    Верхний регистр, градиент, примерно в 2 раза меньше section-title-main.

  .card-subtitle
  — внутренний заголовок/подзаголовок внутри карточки:
    новость, технология, локация и т.д.
    Оставляем спокойнее и меньше, без принудительных заглавных.
*/

.card-title {
  display: block !important;
  width: 100% !important;
  max-width: none !important;

  margin: 0 0 10px !important;

  font-family: var(--3180-font-heading, "Manrope", system-ui, sans-serif) !important;
  font-size: clamp(15px, 1.18vw, 28px) !important;
  line-height: 1.07 !important;
  font-weight: 800 !important;

  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;

  text-align: left !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;

  background-image: var(--3180-grad-title-on-dark), var(--3180-grad-wear) !important;
  background-blend-mode: normal, overlay !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;

  text-shadow: var(--3180-shadow-title-on-dark) !important;
}

.card-subtitle {
  display: block !important;
  width: 100% !important;
  max-width: none !important;

  margin: 0 0 8px !important;

  font-family: var(--3180-font-heading, "Manrope", system-ui, sans-serif) !important;
  font-size: clamp(11px, 0.72vw, 17px) !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;

  text-transform: none !important;
  letter-spacing: 0.04em !important;

  text-align: left !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;

  background-image: var(--3180-grad-title-on-dark), var(--3180-grad-wear) !important;
  background-blend-mode: normal, overlay !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;

  text-shadow: var(--3180-shadow-title-on-dark) !important;
}

@media (max-width: 760px) {
  .card-title {
    font-size: clamp(15px, 4.4vw, 22px) !important;
    line-height: 1.08 !important;
  }

  .card-subtitle {
    font-size: clamp(12px, 3.4vw, 16px) !important;
    line-height: 1.14 !important;
  }
}

/* ============================================================
   Unified text link class v9.7
   ============================================================ */

/*
  .text-link

  Единый класс текстовых ссылок в карточках, новостях и архивных элементах.
  Старое имя .ds-text-link больше не используется.
*/

.text-link {
  position: relative;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;

  color: var(--3180-text-main);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--3180-font-heading, "Manrope", system-ui, sans-serif);
  font-weight: 800;
  font-size: 13px;

  text-decoration: none;

  transition:
    transform 0.18s ease,
    color 0.18s ease,
    text-shadow 0.18s ease;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      var(--3180-rift-depth),
      var(--3180-rift-glow-2),
      var(--3180-old-gold-2)
    );

  box-shadow: 0 0 12px rgba(77,183,232,0.30);
  opacity: 0;

  transition:
    right 0.18s ease,
    opacity 0.18s ease;
}

.text-link:hover,
.text-link.is-hovered {
  color: #F1E3C8;
  transform: translateY(-2px);

  text-shadow:
    0 0 12px rgba(77,183,232,0.16),
    0 2px 10px rgba(0,0,0,0.62);
}

.text-link:hover::after,
.text-link.is-hovered::after {
  right: 0;
  opacity: 1;
}

.text-link--rift {
  color: var(--3180-text-main);
}

/* ============================================================
   Restore formats from archive v10.0
   ============================================================ */

/*
  Восстановление блока "Форматы вселенной" к хорошей версии:
  - без новых paper-surface/paper-card классов;
  - бумажная плашка как единый бумажный блок;
  - карточки внутри разделены линиями;
  - hover слегка поднимает и светлит карточку;
  - ширина не ломается.
*/

.paper-panel--formats {
  width: var(--3180-site-section-width, var(--3180-width-wide, min(96vw, 2260px))) !important;
  max-width: var(--3180-site-section-width, var(--3180-width-wide, min(96vw, 2260px))) !important;

  margin:
    clamp(20px, 2.8vw, 54px)
    auto
    clamp(20px, 2.8vw, 54px) !important;

  padding:
    clamp(24px, 2.5vw, 38px)
    clamp(18px, 2.5vw, 44px)
    clamp(24px, 2.5vw, 38px) !important;

  color: var(--3180-paper-ink, #2a2117) !important;

  background-color: var(--3180-paper-bg, #d8cfbd) !important;
  background-image:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.26), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(90,73,48,0.10)),
    url("/static/img/textures/light-paper-tile.webp") !important;
  background-repeat: no-repeat, no-repeat, repeat !important;
  background-size:
    100% 100%,
    100% 100%,
    var(--3180-paper-tile-size, 560px) var(--3180-paper-tile-size, 560px) !important;

  border: 1px solid var(--3180-paper-frame, rgba(42,34,24,0.42)) !important;

  box-shadow:
    0 18px 42px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.42),
    inset 0 -1px 0 rgba(54,43,30,0.28) !important;

  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

.paper-panel--formats::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;

  background:
    linear-gradient(90deg, rgba(42,34,24,0.16), transparent 9%, transparent 91%, rgba(42,34,24,0.16)),
    linear-gradient(180deg, rgba(42,34,24,0.14), transparent 18%, transparent 82%, rgba(42,34,24,0.16)) !important;

  mix-blend-mode: multiply !important;
}

.paper-panel--formats::after {
  content: "" !important;
  position: absolute !important;
  inset: 10px !important;
  z-index: -1 !important;
  pointer-events: none !important;

  border: 1px solid var(--3180-paper-frame-soft, rgba(42,34,24,0.22)) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(42,34,24,0.10) !important;
}

.paper-panel--formats .paper-panel__head {
  margin: 0 0 clamp(20px, 2vw, 30px) !important;
  padding: 0 !important;

  text-align: center !important;

  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.paper-panel--formats .paper-panel__title {
  display: flex !important;
  width: 100% !important;

  align-items: center !important;
  justify-content: center !important;
  gap: clamp(12px, 1.4vw, 24px) !important;

  margin: 0 !important;
  padding: 0 !important;

  color: var(--3180-paper-title, #4b3a27) !important;
  -webkit-text-fill-color: var(--3180-paper-title, #4b3a27) !important;

  font-family: var(--3180-font-section, "Unbounded", "Manrope", system-ui, sans-serif) !important;
  font-size: clamp(18px, 1.45vw, 28px) !important;
  line-height: 1.15 !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;

  text-align: center !important;

  background: transparent !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;

  border: 0 !important;
  box-shadow: none !important;

  text-shadow:
    0 1px 0 rgba(255,255,255,0.42),
    0 2px 4px rgba(63,47,31,0.13) !important;
}

.paper-panel--formats .paper-panel__title::before,
.paper-panel--formats .paper-panel__title::after {
  content: "" !important;
  display: block !important;
  width: min(120px, 12vw) !important;
  height: 1px !important;
  flex: 0 1 min(120px, 12vw) !important;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(76,58,37,0.38),
      transparent
    ) !important;
}

.formats-universe__grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  align-items: stretch !important;

  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.formats-universe__item {
  position: relative !important;

  min-height: 178px !important;

  display: grid !important;
  grid-template-rows: auto auto 1fr auto !important;
  justify-items: center !important;
  align-content: start !important;
  gap: 8px !important;

  padding: 20px 18px 16px !important;

  text-align: center !important;
  text-decoration: none !important;

  color: var(--3180-paper-ink, #2a2117) !important;
  -webkit-text-fill-color: var(--3180-paper-ink, #2a2117) !important;

  background: transparent !important;
  background-image: none !important;

  border-right: 1px solid var(--3180-paper-line, rgba(57,45,30,0.17)) !important;
  box-shadow: none !important;

  transform: translateY(0) !important;

  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    color 0.18s ease !important;
}

.formats-universe__item:last-child {
  border-right: 0 !important;
}

.formats-universe__icon {
  min-height: 38px !important;

  display: grid !important;
  place-items: center !important;

  color: #3a2d1c !important;
  -webkit-text-fill-color: #3a2d1c !important;

  font-size: 30px !important;
  line-height: 1 !important;

  opacity: 0.92 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,0.34) !important;
}

.formats-universe__item strong {
  display: block !important;

  color: #332719 !important;
  -webkit-text-fill-color: #332719 !important;

  font-family: var(--3180-font-heading, "Manrope", system-ui, sans-serif) !important;
  font-size: clamp(16px, 1vw, 22px) !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;

  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;

  text-shadow:
    0 1px 0 rgba(255,255,255,0.36),
    0 1px 3px rgba(63,47,31,0.12) !important;
}

.formats-universe__item em {
  max-width: 210px !important;

  color: var(--3180-paper-muted, rgba(45,35,23,0.78)) !important;
  -webkit-text-fill-color: var(--3180-paper-muted, rgba(45,35,23,0.78)) !important;

  font-style: normal !important;
  font-size: clamp(13px, 0.82vw, 16px) !important;
  line-height: 1.25 !important;

  background: none !important;
  background-image: none !important;
}

.formats-universe__item small {
  position: relative !important;

  display: inline-flex !important;
  margin-top: 4px !important;

  color: #392b1b !important;
  -webkit-text-fill-color: #392b1b !important;

  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;

  background: none !important;
  background-image: none !important;
}

.formats-universe__item small::after {
  content: "" !important;
  position: absolute !important;

  left: 0 !important;
  right: 100% !important;
  bottom: -5px !important;

  height: 1px !important;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(76,58,37,0.62),
      transparent
    ) !important;

  transition: right 0.18s ease !important;
}

.formats-universe__item:hover {
  transform: translateY(-4px) !important;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.18),
      rgba(255,255,255,0.04)
    ) !important;

  box-shadow:
    0 14px 24px rgba(33,29,23,0.14),
    inset 0 1px 0 rgba(255,255,255,0.18) !important;
}

.formats-universe__item:hover small::after {
  right: 0 !important;
}

@media (max-width: 1320px) {
  .formats-universe__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .formats-universe__item:nth-child(3n) {
    border-right: 0 !important;
  }

  .formats-universe__item:nth-child(n + 4) {
    border-top: 1px solid var(--3180-paper-line, rgba(57,45,30,0.17)) !important;
  }
}

@media (max-width: 760px) {
  .paper-panel--formats {
    padding: 24px 16px !important;
  }

  .paper-panel--formats .paper-panel__title::before,
  .paper-panel--formats .paper-panel__title::after {
    display: none !important;
  }

  .formats-universe__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .formats-universe__item {
    min-height: 160px !important;
    border-right: 0 !important;
    border-top: 1px solid var(--3180-paper-line, rgba(57,45,30,0.17)) !important;
  }

  .formats-universe__item:nth-child(1),
  .formats-universe__item:nth-child(2) {
    border-top: 0 !important;
  }

  .formats-universe__item:nth-child(odd) {
    border-right: 1px solid var(--3180-paper-line, rgba(57,45,30,0.17)) !important;
  }
}

@media (max-width: 460px) {
  .formats-universe__grid {
    grid-template-columns: 1fr !important;
  }

  .formats-universe__item:nth-child(odd) {
    border-right: 0 !important;
  }

  .formats-universe__item:nth-child(2) {
    border-top: 1px solid var(--3180-paper-line, rgba(57,45,30,0.17)) !important;
  }
}

/* ============================================================
   Formats vertical rhythm v10.1
   ============================================================ */

/*
  Только вертикальный отступ блока "Форматы вселенной".
  Саму бумагу, карточки, ширину и hover не трогаем.
*/

:root {
  --3180-home-block-gap: clamp(18px, 2.1vw, 38px);
}

.paper-panel--formats {
  margin-top: var(--3180-home-block-gap) !important;
  margin-bottom: var(--3180-home-block-gap) !important;
}

/* ============================================================
   Formats no lift hover v10.2
   ============================================================ */

/*
  Форматы вселенной:
  - карточка не поднимается при наведении;
  - подсветка остаётся;
  - нижняя ссылка/линия заполняется;
  - вертикальный отступ держится через общий токен.
*/

:root {
  --3180-home-block-gap: clamp(18px, 2.1vw, 38px);
}

.paper-panel--formats {
  margin-top: var(--3180-home-block-gap) !important;
  margin-bottom: var(--3180-home-block-gap) !important;
}

/* Базово карточка стоит на месте */
.formats-universe__item {
  transform: none !important;
}

/* При hover не поднимаем карточку */
.formats-universe__item:hover {
  transform: none !important;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.22),
      rgba(255,255,255,0.06)
    ) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(45,35,23,0.08) !important;
}

/* Нижняя линия ссылки заполняется */
.formats-universe__item small::after {
  right: 100% !important;
}

.formats-universe__item:hover small::after {
  right: 0 !important;
}

/* Небольшое визуальное выделение текста при наведении */
.formats-universe__item:hover strong,
.formats-universe__item:hover small {
  color: #24180d !important;
  -webkit-text-fill-color: #24180d !important;
}

.formats-universe__item:hover .formats-universe__icon {
  opacity: 1 !important;
}

/* ============================================================
   Unified fill underline links v10.3
   ============================================================ */

/*
  Единая логика текстовых ссылок:
  линия не появляется готовой, а заполняется слева направо.

  Применяется к:
  - верхнему меню;
  - футеру;
  - .text-link;
  - ссылкам карточек;
  - ссылкам новостей;
  - нижней строке форматов.
*/

:root {
  --3180-link-line-height: 1px;
  --3180-link-line-bottom: -5px;
  --3180-link-line-gradient:
    linear-gradient(
      90deg,
      var(--3180-rift-depth, #1a5f8a),
      var(--3180-rift-glow-2, #4db7e8),
      var(--3180-old-gold-2, #c9a65a)
    );
}

/* Текстовые ссылки сайта */
:where(
  .public-site-nav a,
  .public-footer-nav a,
  .public-footer-social__links a,
  .text-link,
  .faction-choice-card__link,
  .news-archive-item__action,
  .news-actions a,
  .news-next-card a
) {
  position: relative !important;
  text-decoration: none !important;
}

/* Единая линия: изначально схлопнута слева */
:where(
  .public-site-nav a,
  .public-footer-nav a,
  .public-footer-social__links a,
  .text-link,
  .faction-choice-card__link,
  .news-archive-item__action,
  .news-actions a,
  .news-next-card a
)::after {
  content: "" !important;

  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  bottom: var(--3180-link-line-bottom) !important;

  display: block !important;
  width: 100% !important;
  height: var(--3180-link-line-height) !important;

  background: var(--3180-link-line-gradient) !important;
  box-shadow: 0 0 12px rgba(77,183,232,0.28) !important;

  opacity: 0.9 !important;

  transform: scaleX(0) !important;
  transform-origin: left center !important;

  transition:
    transform 0.22s ease,
    opacity 0.22s ease !important;
}

/* Hover/focus: линия заполняется слева направо */
:where(
  .public-site-nav a,
  .public-footer-nav a,
  .public-footer-social__links a,
  .text-link,
  .faction-choice-card__link,
  .news-archive-item__action,
  .news-actions a,
  .news-next-card a
):hover::after,
:where(
  .public-site-nav a,
  .public-footer-nav a,
  .public-footer-social__links a,
  .text-link,
  .faction-choice-card__link,
  .news-archive-item__action,
  .news-actions a,
  .news-next-card a
):focus-visible::after {
  transform: scaleX(1) !important;
}

/* Активное состояние тоже можно показывать заполненной линией */
:where(
  .public-site-nav a,
  .public-footer-nav a,
  .public-footer-social__links a,
  .text-link,
  .faction-choice-card__link,
  .news-archive-item__action,
  .news-actions a,
  .news-next-card a
).is-active::after,
:where(
  .public-site-nav a,
  .public-footer-nav a,
  .public-footer-social__links a,
  .text-link,
  .faction-choice-card__link,
  .news-archive-item__action,
  .news-actions a,
  .news-next-card a
)[aria-current="page"]::after {
  transform: scaleX(1) !important;
}

/* Форматы: нижняя строка внутри бумажной карточки тоже заполняется слева направо */
.formats-universe__item small {
  position: relative !important;
}

.formats-universe__item small::after {
  content: "" !important;

  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  bottom: -5px !important;

  width: 100% !important;
  height: 1px !important;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(76,58,37,0.68),
      transparent
    ) !important;

  transform: scaleX(0) !important;
  transform-origin: left center !important;

  transition: transform 0.22s ease !important;
}

.formats-universe__item:hover small::after,
.formats-universe__item:focus-visible small::after {
  transform: scaleX(1) !important;
}

/* ============================================================
   Faction card link hover fill v10.4
   ============================================================ */

/*
  Карточки выбора фракции:
  - линия под ссылкой берёт цвет текста ссылки;
  - линия заполняется при наведении на всю карточку;
  - сама ссылка не должна жить отдельной hover-логикой.
*/

.faction-choice-card__link {
  position: relative !important;
  text-decoration: none !important;
}

.faction-choice-card__link::after {
  content: "" !important;

  position: absolute !important;
  left: 0 !important;
  right: auto !important;
  bottom: -5px !important;

  display: block !important;
  width: 100% !important;
  height: 1px !important;

  background: currentColor !important;
  box-shadow: none !important;

  opacity: 0.95 !important;

  transform: scaleX(0) !important;
  transform-origin: left center !important;

  transition:
    transform 0.22s ease,
    opacity 0.22s ease !important;
}

/* Заполнение запускает вся карточка */
.faction-choice-card:hover .faction-choice-card__link::after,
.faction-choice-card:focus-within .faction-choice-card__link::after {
  transform: scaleX(1) !important;
}

/* Цвет линии равен текущему цвету текста ссылки */
.faction-choice-card:hover .faction-choice-card__link,
.faction-choice-card:focus-within .faction-choice-card__link {
  color: inherit;
}

/* ============================================================
   Hero button classes v10.6
   ============================================================ */

/*
  .hero-button
  — общая hero-кнопка.

  .hero-button--light
  — светлая кнопка. Цвет текста как у заголовка "Форматы вселенной".

  .hero-button--trailer
  — кнопка "Смотреть трейлер". Полоска как в верхнем меню.
*/

.hero-button {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;

  text-decoration: none !important;
  transform: none !important;

  transition:
    background 0.18s ease,
    background-image 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease !important;
}

.hero-button:hover,
.hero-button:focus-visible {
  transform: none !important;
}

/* Светлая кнопка: цвет текста как у "Форматы вселенной" */
.hero-button--light,
.hero-actions .hero-button--light,
.hero-actions a.hero-button--light {
  color: var(--3180-paper-title, #4b3a27) !important;
  -webkit-text-fill-color: var(--3180-paper-title, #4b3a27) !important;
}

.hero-button--light *,
.hero-actions .hero-button--light * {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

/* При наведении светлая кнопка чуть светлее, текст остаётся читаемым */
.hero-button--light:hover,
.hero-actions .hero-button--light:hover,
.hero-actions a.hero-button--light:hover {
  color: var(--3180-paper-title, #4b3a27) !important;
  -webkit-text-fill-color: var(--3180-paper-title, #4b3a27) !important;

  filter: brightness(1.06) !important;

  box-shadow:
    0 14px 26px rgba(33,29,23,0.18),
    inset 0 1px 0 rgba(255,255,255,0.52),
    inset 0 -1px 0 rgba(54,43,30,0.18) !important;
}

/* Общая линия hero-кнопки: заполняется слева направо */
.hero-button::after {
  content: "" !important;

  position: absolute !important;
  left: 18px !important;
  right: auto !important;
  bottom: 7px !important;

  display: block !important;
  width: calc(100% - 36px) !important;
  height: 1px !important;

  z-index: 3 !important;

  opacity: 1 !important;

  transform: scaleX(0) !important;
  transform-origin: left center !important;

  transition: transform 0.22s ease !important;
}

/* Светлая кнопка: полоска цветом текста */
.hero-button--light::after {
  background: currentColor !important;
  box-shadow: none !important;
}

/* Смотреть трейлер: полоска как в верхнем меню */
.hero-button--trailer::after {
  background: var(
    --3180-link-line-gradient,
    linear-gradient(
      90deg,
      var(--3180-rift-depth, #1a5f8a),
      var(--3180-rift-glow-2, #4db7e8),
      var(--3180-old-gold-2, #c9a65a)
    )
  ) !important;

  box-shadow: 0 0 12px rgba(77,183,232,0.28) !important;
}

.hero-button:hover::after,
.hero-button:focus-visible::after {
  transform: scaleX(1) !important;
}

/* ============================================================
   Support light surface and button v10.7
   ============================================================ */

/*
  Светлая поверхность:
  - тёмный читаемый текст;
  - подходит для бумажных/светлых CTA-плашек.

  site-button--light:
  - общий вариант светлой кнопки;
  - визуально как hero-button--light;
  - линия заполняется цветом текста.
*/

.light-surface,
.support-mosaic__paper.light-surface {
  color: var(--3180-paper-title, #4b3a27) !important;
  -webkit-text-fill-color: var(--3180-paper-title, #4b3a27) !important;
}

.light-surface-title,
.light-surface .light-surface-title,
.light-surface h2,
.light-surface h3,
.light-surface h4 {
  color: var(--3180-paper-title, #4b3a27) !important;
  -webkit-text-fill-color: var(--3180-paper-title, #4b3a27) !important;

  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;

  text-shadow:
    0 1px 0 rgba(255,255,255,0.36),
    0 2px 4px rgba(63,47,31,0.12) !important;
}

.light-surface-text,
.light-surface .light-surface-text,
.light-surface p,
.light-surface li,
.light-surface small {
  color: #3A2A1B !important;
  -webkit-text-fill-color: #3A2A1B !important;

  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;

  text-shadow: 0 1px 0 rgba(255,255,255,0.22) !important;
}

/* Общая светлая кнопка, совпадает с логикой hero */
.site-button--light,
.hero-actions .site-button--light,
.support-mosaic__button.site-button--light {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;

  color: var(--3180-paper-title, #4b3a27) !important;
  -webkit-text-fill-color: var(--3180-paper-title, #4b3a27) !important;

  text-decoration: none !important;
  transform: none !important;

  transition:
    background 0.18s ease,
    background-image 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease !important;
}

.site-button--light *,
.support-mosaic__button.site-button--light * {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

.site-button--light:hover,
.support-mosaic__button.site-button--light:hover,
.site-button--light:focus-visible,
.support-mosaic__button.site-button--light:focus-visible {
  transform: none !important;
  filter: brightness(1.06) !important;

  color: var(--3180-paper-title, #4b3a27) !important;
  -webkit-text-fill-color: var(--3180-paper-title, #4b3a27) !important;

  box-shadow:
    0 14px 26px rgba(33,29,23,0.18),
    inset 0 1px 0 rgba(255,255,255,0.52),
    inset 0 -1px 0 rgba(54,43,30,0.18) !important;
}

/* Линия светлой кнопки: цветом текста, слева направо */
.site-button--light::after,
.support-mosaic__button.site-button--light::after {
  content: "" !important;

  position: absolute !important;
  left: 18px !important;
  right: auto !important;
  bottom: 7px !important;

  display: block !important;
  width: calc(100% - 36px) !important;
  height: 1px !important;

  z-index: 3 !important;

  background: currentColor !important;
  box-shadow: none !important;

  opacity: 1 !important;

  transform: scaleX(0) !important;
  transform-origin: left center !important;

  transition: transform 0.22s ease !important;
}

.site-button--light:hover::after,
.support-mosaic__button.site-button--light:hover::after,
.site-button--light:focus-visible::after,
.support-mosaic__button.site-button--light:focus-visible::after {
  transform: scaleX(1) !important;
}

/* ============================================================
   Typography roles and font inventory v10.9
   ============================================================ */

/*
  Типографическая система 3180.

  font-* — только выбор семейства/роли шрифта.
  *-text — готовые текстовые роли для живого сайта.

  Важно:
  .body-text, .card-text, .section-lead и .text-shell__text
  имеют один и тот же базовый стиль. Не "похоже", а один стиль.
*/

:root {
  --3180-type-body-size: clamp(15px, 0.92vw, 17px);
  --3180-type-body-line: 1.58;
  --3180-type-body-weight: 400;

  --3180-type-small-size: 12px;
  --3180-type-link-size: 13px;

  --3180-type-card-title-size: clamp(15px, 1.18vw, 28px);
  --3180-type-card-subtitle-size: clamp(11px, 0.72vw, 17px);
}

/* Только семейства / роли шрифтов */
.font-body {
  font-family: var(--3180-font-body, "Manrope", system-ui, sans-serif) !important;
}

.font-heading {
  font-family: var(--3180-font-heading, "Manrope", system-ui, sans-serif) !important;
  font-weight: 800 !important;
}

.font-section {
  font-family: var(--3180-font-section, "Unbounded", "Manrope", system-ui, sans-serif) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.font-display {
  font-family: var(--3180-font-display, "Unbounded", "Manrope", system-ui, sans-serif) !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
}

/* Единый обычный текст: ровно как text-shell__text */
.body-text,
.card-text,
.section-lead,
.text-shell__text,
.home-section-head p.section-lead,
.section-head-main p.section-lead,
.faction-choice-card__body p,
.info-panel p,
.list-row p,
.object-card__body p,
.news-lead,
.news-body p,
.news-archive-item__body p,
.support-mosaic__card p,
.hero-text {
  display: block !important;
  width: 100% !important;
  max-width: none !important;

  margin-left: 0 !important;
  margin-right: 0 !important;

  font-family: var(--3180-font-body, "Manrope", system-ui, sans-serif) !important;
  font-size: var(--3180-type-body-size) !important;
  font-weight: var(--3180-type-body-weight) !important;
  line-height: var(--3180-type-body-line) !important;

  text-align: justify !important;
  text-wrap: pretty;
  hyphens: auto;

  color: var(--3180-text-muted) !important;
  -webkit-text-fill-color: var(--3180-text-muted) !important;

  background: none !important;
  background-image: none !important;
  background-color: transparent !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;

  text-shadow: none !important;
}

/* Цитата использует ту же базу, но отличается смысловой интонацией */
.text-shell__quote {
  font-family: var(--3180-font-body, "Manrope", system-ui, sans-serif) !important;
  font-size: var(--3180-type-body-size) !important;
  font-weight: var(--3180-type-body-weight) !important;
  font-style: italic !important;
  line-height: var(--3180-type-body-line) !important;

  color: var(--3180-text-main) !important;
  -webkit-text-fill-color: var(--3180-text-main) !important;

  background: none !important;
  background-image: none !important;
  background-color: transparent !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;

  text-shadow: none !important;
}

/* Светлая поверхность: тот же текстовый стиль, но другой цвет */
.light-surface .body-text,
.light-surface .card-text,
.light-surface .section-lead,
.light-surface .text-shell__text,
.light-surface .light-surface-text,
.light-surface p,
.light-surface li {
  color: #3A2A1B !important;
  -webkit-text-fill-color: #3A2A1B !important;

  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;

  text-shadow: 0 1px 0 rgba(255,255,255,0.22) !important;
}

/* Бумага: обычный текст не градиентный */
.paper-panel p,
.paper-panel em,
.paper-panel small,
.formats-universe__item em,
.formats-universe__item small {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
}

/* Техническая мелочь / бейджи */
.type-meta,
.home-section-kicker,
.faction-choice-card__body span:not(.faction-choice-card__link),
.news-archive-item__date,
.news-status-card__label,
.news-side-cover span {
  font-family: var(--3180-font-heading, "Manrope", system-ui, sans-serif) !important;
  font-size: var(--3180-type-small-size) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}
