/* Описание мира x50000 (wiki50k.php, генерирует itplus/tools/gen_site50k.py).
   Иконки предметов взяты из клиента: assets/img/x50k/ico (itplus/tools/site_icons.py). */

.f5 {
  --f5-gold: #f3d7b0;
  --f5-gold2: #c9b09a;
  --f5-text: #efe8e3;
  --f5-soft: rgba(239, 232, 227, 0.84);
  --f5-mute: rgba(239, 232, 227, 0.56);
  --f5-line: rgba(239, 232, 227, 0.16);
  --f5-red: #b02114;
  --f5-red2: #d63030;
  --f5-card: linear-gradient(180deg, rgba(14, 10, 10, 0.92) 0%, rgba(10, 7, 7, 0.8) 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  min-width: 0;
  margin-top: 22px;
  color: var(--f5-text);
}

.f5 *,
.f5 *::before,
.f5 *::after {
  box-sizing: border-box;
}

.f5 img {
  max-width: none;
}

/* style.css: ".about_content img" = width 798px, а до 1280px display:none; иконки описания должны быть видны всегда */
.about_content .f5 img {
  display: block;
}

.f5-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201, 176, 154, 0.8);
}

.f5-title {
  margin: 4px 0 0;
  font-family: "Crimson", serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.05;
  background: linear-gradient(180deg, #d6c399, #e4e2d8 50%, #e9cfb9, #f7cca4 60%, #e4e2d8 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------- герой ---------- */
.f5-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(243, 215, 176, 0.32);
  border-radius: 14px;
  overflow: hidden;
  background: #0a0707 var(--bg) center 30% / cover no-repeat;
  box-shadow: 0 20px 50px rgba(3, 2, 2, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.f5-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 5, 5, 0.94) 0%, rgba(8, 5, 5, 0.72) 42%, rgba(8, 5, 5, 0.08) 75%),
    linear-gradient(0deg, rgba(8, 5, 5, 0.9) 0%, rgba(8, 5, 5, 0) 46%);
}

.f5-hero__in {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  padding: 34px 34px 30px;
}

.f5-hero__title {
  margin: 6px 0 10px;
  font-family: "Crimson", serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fff3d8 0%, #f3d7b0 45%, #c99a62 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
}

.f5-hero__lead {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--f5-soft);
}

.f5-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.f5-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid rgba(243, 215, 176, 0.34);
  border-radius: 999px;
  background: rgba(10, 7, 7, 0.78);
  font-size: 14px;
  line-height: 1.2;
  color: var(--f5-text);
  white-space: nowrap;
}

.f5-chip img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(243, 215, 176, 0.35);
}

.f5-hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.f5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  border: 1px solid rgba(243, 215, 176, 0.5);
  background: rgba(10, 7, 7, 0.82);
  color: var(--f5-gold);
  font-family: "Crimson", serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: filter 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.f5-btn:hover {
  color: #fff6e8;
  border-color: var(--f5-gold);
}

.f5-btn--red {
  border-color: rgba(214, 48, 48, 0.8);
  color: var(--f5-text);
  background: linear-gradient(0deg, #b02114 50%, rgba(3, 2, 2, 0.1)), linear-gradient(0deg, rgba(3, 2, 2, 0.1), rgba(176, 33, 20, 0.8));
  box-shadow: 0 4px 14px rgba(176, 33, 20, 0.35);
}

.f5-btn--red:hover {
  filter: brightness(1.1);
  color: #fff;
}

/* ---------- факты ---------- */
.f5-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.f5-fact {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--f5-line);
  border-radius: 10px;
  background: var(--f5-card);
}

.f5-fact b {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(201, 176, 154, 0.85);
}

.f5-fact span {
  display: block;
  margin-top: 2px;
  font-family: "Crimson", serif;
  font-size: 18px;
  line-height: 1.2;
  color: var(--f5-text);
}

/* ---------- рамка иконки как в игре ---------- */
.f5-ico {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 7px;
  border: 1px solid rgba(243, 215, 176, 0.42);
  background: radial-gradient(circle at 50% 35%, #2a1c16 0%, #0d0909 72%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.7), 0 6px 14px rgba(0, 0, 0, 0.5);
}

.f5-ico img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 3px;
}

.f5-ico--s {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.f5-ico--s img {
  width: 30px;
  height: 30px;
}

.f5-ico--xs {
  width: 28px;
  height: 28px;
  border-radius: 5px;
}

.f5-ico--xs img {
  width: 24px;
  height: 24px;
}

.f5-ico--l {
  width: 60px;
  height: 60px;
  border-radius: 9px;
}

.f5-ico--l img {
  width: 52px;
  height: 52px;
}

/* ---------- старт ---------- */
.f5-start {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(239, 232, 227, 0.22);
  border-radius: 12px;
  background: var(--f5-card);
  box-shadow: 0 16px 40px rgba(3, 2, 2, 0.45);
}

.f5-start .f5-title {
  margin-bottom: 14px;
}

.f5-start figure {
  margin: 0;
  align-self: center;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(239, 232, 227, 0.28);
  box-shadow: 0 12px 30px rgba(3, 2, 2, 0.6);
}

.f5-start figure img {
  display: block;
  width: 100%;
  height: auto;
}

.f5-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.f5-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--f5-soft);
}

.f5-list li .f5-ico {
  margin-top: 1px;
}

.f5-list b,
.f5-body b {
  font-weight: 600;
  color: var(--f5-text);
}

/* ---------- навигация ---------- */
.f5-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(239, 232, 227, 0.2);
  border-radius: 12px;
  background: rgba(10, 7, 7, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(3, 2, 2, 0.5);
}

.f5-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 4px 10px 4px 4px;
  border: 1px solid rgba(239, 232, 227, 0.18);
  border-radius: 8px;
  background: rgba(20, 13, 12, 0.8);
  color: var(--f5-text);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.f5-nav a img {
  width: 26px;
  height: 26px;
  border-radius: 4px;
}

.f5-nav a:hover,
.f5-nav a.is-on {
  color: var(--f5-gold);
  border-color: rgba(214, 48, 48, 0.7);
  box-shadow: inset 0 -2px 0 var(--f5-red2);
}

/* ---------- блоки разделов ---------- */
.f5-block {
  border: 1px solid rgba(239, 232, 227, 0.22);
  border-radius: 12px;
  background: var(--f5-card);
  box-shadow: 0 16px 40px rgba(3, 2, 2, 0.45);
  overflow: hidden;
  scroll-margin-top: 70px;
}

.f5-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  min-height: 128px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(243, 215, 176, 0.2);
  background: #120c0b var(--bg) center 40% / cover no-repeat;
}

.f5-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 7, 7, 0.96) 0%, rgba(10, 7, 7, 0.7) 45%, rgba(10, 7, 7, 0.25) 100%),
    linear-gradient(0deg, rgba(10, 7, 7, 0.85) 0%, rgba(10, 7, 7, 0) 70%);
}

.f5-head > * {
  position: relative;
}

.f5-head .f5-ico {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.7), 0 0 18px rgba(176, 33, 20, 0.45);
}

.f5-body {
  padding: 20px 22px 18px;
}

.f5-body > p,
.f5-body > ul > li,
.f5-note {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--f5-soft);
}

.f5-body > ul {
  margin: 4px 0 8px;
  padding-left: 20px;
}

.f5-body > ul > li::marker {
  color: var(--f5-red2);
}

.f5-body a {
  color: var(--f5-gold);
}

.f5-body code,
.f5-list code,
.f5-cmd code {
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid rgba(243, 215, 176, 0.28);
  background: rgba(243, 215, 176, 0.08);
  font-family: Consolas, "Courier New", monospace;
  font-size: 14px;
  color: var(--f5-gold);
  white-space: nowrap;
}

.f5-h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 10px;
  font-family: "Crimson", serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  color: var(--f5-text);
}

.f5-h4::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(243, 215, 176, 0.35), rgba(243, 215, 176, 0));
}

.f5-note {
  font-size: 14px;
  color: var(--f5-mute);
}

/* ---------- сетки карточек с иконками ---------- */
.f5-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(var(--min, 150px), 100%), 1fr));
  gap: 10px;
  margin: 8px 0 6px;
}

.f5-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 14px 8px 12px;
  border: 1px solid rgba(243, 215, 176, 0.14);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 22%, rgba(176, 33, 20, 0.2), rgba(176, 33, 20, 0) 62%),
    rgba(10, 7, 7, 0.6);
  text-align: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.f5-card:hover {
  border-color: rgba(243, 215, 176, 0.5);
  box-shadow: 0 0 20px rgba(176, 33, 20, 0.28);
}

.f5-card b {
  display: block;
  font-family: "Crimson", serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--f5-text);
}

.f5-card small {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--f5-mute);
}

.f5-card .f5-trio {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.f5-card--row {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-align: left;
}

.f5-card--row > div {
  min-width: 0;
}

.f5-card--row b {
  margin-bottom: 3px;
  font-size: 18px;
}

.f5-card--row small {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--f5-soft);
}

.f5-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid rgba(214, 48, 48, 0.6);
  background: rgba(120, 14, 14, 0.55);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--f5-gold);
}

/* 3D-наклон карточек (assets: f5 tilt script) */
.f5-tilt {
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
}

.f5-tilt .f5-ico {
  transform: translateZ(26px);
}

/* ---------- путь стадий ---------- */
.f5-stbar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0 4px;
}

.f5-stbar::before {
  content: "";
  position: absolute;
  left: 3%;
  right: 3%;
  top: 31px;
  height: 2px;
  background: linear-gradient(90deg, rgba(214, 48, 48, 0.1), rgba(214, 48, 48, 0.7), rgba(243, 215, 176, 0.6), rgba(214, 48, 48, 0.7), rgba(214, 48, 48, 0.1));
}

.f5-st {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding: 6px 2px 8px;
  border: 1px solid rgba(239, 232, 227, 0.16);
  border-radius: 10px;
  background: rgba(14, 10, 10, 0.94);
  color: var(--f5-soft);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.f5-st img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(243, 215, 176, 0.35), 0 4px 10px rgba(0, 0, 0, 0.6);
}

.f5-st b {
  font-family: "Crimson", serif;
  font-size: 20px;
  line-height: 1;
  color: var(--f5-text);
}

.f5-st small {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--f5-mute);
  white-space: nowrap;
}

.f5-st:hover {
  border-color: rgba(243, 215, 176, 0.5);
  transform: translateY(-2px);
}

.f5-st.is-on {
  border-color: rgba(214, 48, 48, 0.85);
  background: linear-gradient(180deg, rgba(150, 24, 24, 0.6) 0%, rgba(60, 10, 10, 0.75) 100%);
  box-shadow: inset 0 -3px 0 var(--f5-red2), 0 0 18px rgba(176, 33, 20, 0.35);
}

.f5-st.is-on b {
  color: var(--f5-gold);
}

.f5-stp {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.f5-stp[hidden] {
  display: none;
}

.f5-stp.is-on {
  animation: f5-in 0.3s ease both;
}

@keyframes f5-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.f5-box {
  min-width: 0;
  padding: 14px 14px 12px;
  border: 1px solid rgba(243, 215, 176, 0.16);
  border-radius: 10px;
  background: rgba(10, 7, 7, 0.62);
}

.f5-box h5 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(201, 176, 154, 0.9);
}

.f5-box--wide {
  grid-column: span 3;
}

.f5-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--f5-soft);
}

.f5-row:last-child {
  margin-bottom: 0;
}

.f5-row .f5-icos {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
}

.f5-row span b {
  color: var(--f5-text);
  font-weight: 600;
}

.f5-unlocks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.f5-unlocks li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  color: var(--f5-soft);
}

/* ---------- ленты маленьких иконок (тату по стадиям) ---------- */
.f5-strip {
  display: grid;
  grid-template-columns: 92px repeat(15, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
  margin: 6px 0;
}

.f5-strip > .f5-lbl {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--f5-gold2);
}

.f5-strip .f5-ico {
  width: 100%;
  max-width: 44px;
  height: auto;
  aspect-ratio: 1;
  justify-self: center;
}

.f5-strip .f5-ico img {
  width: 82%;
  height: auto;
}

.f5-strip .f5-num {
  text-align: center;
  font-size: 11px;
  color: var(--f5-mute);
}

/* ---------- 3D-кольцо крыльев ---------- */
.f5-ring {
  --n: 15;
  --w: 110px;
  --r: 300px;
  position: relative;
  height: 240px;
  margin: 6px 0 4px;
  perspective: 1100px;
  perspective-origin: 50% 20%;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(ellipse 60% 26% at 50% 92%, rgba(176, 33, 20, 0.35), rgba(176, 33, 20, 0) 70%),
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(243, 215, 176, 0.06), rgba(0, 0, 0, 0) 70%);
}

.f5-ring__spin {
  position: absolute;
  left: 50%;
  top: 34px;
  width: var(--w);
  height: 150px;
  margin-left: calc(var(--w) / -2);
  transform-style: preserve-3d;
  animation: f5-spin 48s linear infinite;
}

.f5-ring:hover .f5-ring__spin {
  animation-play-state: paused;
}

.f5-ring__it {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(var(--r));
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  text-align: center;
}

.f5-ring__it b {
  font-family: "Crimson", serif;
  font-size: 15px;
  line-height: 1.1;
  color: var(--f5-text);
}

.f5-ring__it small {
  font-size: 11px;
  color: var(--f5-mute);
}

.f5-ring__it .f5-ico {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.7), 0 10px 24px rgba(0, 0, 0, 0.7), 0 0 22px rgba(243, 215, 176, 0.18);
}

@keyframes f5-spin {
  from { transform: rotateX(-7deg) rotateY(0deg); }
  to { transform: rotateX(-7deg) rotateY(-360deg); }
}

/* ---------- таблицы ---------- */
.f5-table {
  overflow-x: auto;
  max-width: 100%;
  margin: 8px 0 6px;
}

.f5-table table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.f5-table th,
.f5-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--f5-line);
  text-align: left;
  vertical-align: middle;
}

.f5-table th {
  font-family: "Crimson", serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--f5-gold2);
}

.f5-table td {
  font-size: 15px;
  line-height: 1.4;
  color: var(--f5-soft);
}

.f5-table td:first-child {
  color: var(--f5-text);
}

.f5-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- команды ---------- */
.f5-cmds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 8px;
  margin: 8px 0 6px;
}

.f5-cmd {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(243, 215, 176, 0.14);
  border-radius: 9px;
  background: rgba(10, 7, 7, 0.6);
  font-size: 14px;
  line-height: 1.35;
  color: var(--f5-soft);
}

.f5-cmd > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* ---------- обновления ---------- */
.f5-upd {
  margin: 0 0 10px;
  border: 1px solid rgba(243, 215, 176, 0.18);
  border-radius: 10px;
  background: rgba(10, 7, 7, 0.6);
}

.f5-upd summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-family: "Crimson", serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--f5-text);
}

.f5-upd summary::-webkit-details-marker {
  display: none;
}

.f5-upd summary::after {
  content: "+";
  margin-left: auto;
  font-size: 22px;
  line-height: 1;
  color: var(--f5-gold);
}

.f5-upd[open] summary::after {
  content: "\2212";
}

.f5-upd summary small {
  font-family: "Gill Sans Nova", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--f5-mute);
}

.f5-upd > div {
  padding: 0 16px 14px;
}

.f5-upd h6 {
  margin: 10px 0 4px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--f5-gold2);
}

.f5-upd ul {
  margin: 0;
  padding-left: 20px;
}

.f5-upd li {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--f5-soft);
}

.f5-upd li::marker {
  color: var(--f5-red2);
}

/* ---------- адаптив ---------- */
@media (max-width: 980px) {
  .f5-start {
    grid-template-columns: 1fr;
  }

  .f5-stbar {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .f5-stbar::before {
    display: none;
  }

  .f5-st {
    flex: 0 0 64px;
  }

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

  .f5-box--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .f5-stp {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .f5-hero {
    min-height: 0;
  }

  .f5-hero::before {
    background: linear-gradient(0deg, rgba(8, 5, 5, 0.96) 0%, rgba(8, 5, 5, 0.75) 55%, rgba(8, 5, 5, 0.35) 100%);
  }

  .f5-hero__in {
    padding: 120px 18px 20px;
  }

  .f5-hero__title {
    font-size: 40px;
  }

  .f5-hero__lead {
    font-size: 15px;
  }

  .f5-head {
    min-height: 100px;
    padding: 14px 16px;
  }

  .f5-title {
    font-size: 26px;
  }

  .f5-body {
    padding: 16px 14px 14px;
  }

  .f5-start {
    padding: 16px 14px;
  }

  .f5-nav {
    position: static;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .f5-strip {
    grid-template-columns: 64px repeat(15, minmax(0, 1fr));
    gap: 2px;
  }

  .f5-strip > .f5-lbl {
    font-size: 11px;
  }

  .f5-ring {
    --w: 76px;
    --r: 190px;
    height: 220px;
  }

  .f5-ring__it .f5-ico {
    width: 44px;
    height: 44px;
  }

  .f5-ring__it .f5-ico img {
    width: 36px;
    height: 36px;
  }

  .f5-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(var(--min, 150px), 132px, 100%), 1fr));
  }

  .f5-grid:has(> .f5-card--row) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .f5-strip {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .f5-strip > .f5-lbl {
    grid-column: 1 / -1;
  }

  .f5-strip--num {
    display: none;
  }

  .f5-fact span {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .f5-ring {
    height: auto;
    perspective: none;
    overflow: visible;
  }

  .f5-ring__spin {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    padding: 12px 0;
    animation: none;
    transform: none;
  }

  .f5-ring__it {
    position: static;
    width: 90px;
    transform: none;
  }

  .f5-tilt {
    transform: none;
  }

  .f5-stp.is-on {
    animation: none;
  }
}
