/* ==========================================================================
   Hero без промо-карточки + вкладки-разделы
   ========================================================================== */

/* ---------- Hero: одна колонка, текст поверх фото ---------- */
.hero__grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0;
}
.hero__content { max-width: 880px; }

.eyebrow__line {
  display: inline-block;
  width: 26px;
  height: 2px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--accent);
  transform: translateY(-2px);
}
.hero__eyebrow { display: inline-flex; align-items: center; }

.hero__title {
  font-size: clamp(34px, 5.2vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero__title em { margin-top: 2px; }
.hero__lead { max-width: 34em; font-size: clamp(16px, 1.55vw, 19px); }

/* ---------- Крупные кнопки ---------- */
.btn--lg { padding: 15px 26px; font-size: 13px; }
.btn__icon--right { margin-left: 8px; }

/* ---------- Цифры под заголовком ---------- */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 38px 0 0;
  max-width: 640px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.hero__stat {
  padding: 16px 18px;
  background: rgba(8, 11, 16, 0.55);
}
.hero__stat dt {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.hero__stat dd {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}
.hero__stat p {
  margin: 6px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
}

.hero__meta { margin-top: 26px; }

/* ---------- Вкладки-разделы ---------- */
.tabs {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}
.tabs__nav {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 8px 8px 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs__nav::-webkit-scrollbar { display: none; }
.tabs__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px 15px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.22s var(--ease);
}
.tabs__btn:hover { color: var(--text); }
.tabs__btn.is-active { color: var(--text); }
.tabs__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0;
}
.tabs__btn.is-active .tabs__idx { color: var(--accent); }
.tabs__ink { display: none; }
.tabs__btn::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.tabs__btn.is-active::after { transform: scaleX(1); }
.tabs__btn:hover::after { transform: scaleX(0.45); }
.tabs__btn.is-active:hover::after { transform: scaleX(1); }

.tabs__panels { position: relative; }
.tabs__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  padding: clamp(20px, 3vw, 34px);
  animation: tab-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.tabs__panel[hidden] { display: none; }
@keyframes tab-in {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

.tabs__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(70% 70% at 50% 40%, rgba(var(--accent-rgb), 0.12), transparent 70%),
    rgba(6, 9, 13, 0.5);
  overflow: hidden;
}
.tabs__media img {
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
}
.tabs__media--rank img { width: 170px; filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.7)); }

.tabs__top { display: grid; gap: 10px; width: 100%; padding: 22px; list-style: none; margin: 0; }
.tabs__top li {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13.5px;
}
.tabs__top span { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.tabs__top b { font-weight: 600; }
.tabs__top i { font-style: normal; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

.tabs__poster {
  display: grid;
  place-items: center;
  gap: 10px;
  width: 100%;
  min-height: 220px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(60% 60% at 50% 20%, rgba(120, 170, 255, 0.18), transparent 70%),
    linear-gradient(160deg, #101722, #0a0e14);
}
.tabs__poster strong {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tabs__body h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.1;
}
.tabs__body > p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 42em;
}
.tabs__list {
  display: grid;
  gap: 8px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}
.tabs__list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.tabs__list b {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--accent);
  min-width: 62px;
}

/* ---------- Светлая тема ---------- */
[data-theme="light"] .hero__stats { background: rgba(16, 22, 30, 0.08); border-color: rgba(16, 22, 30, 0.1); }
[data-theme="light"] .hero__stat { background: rgba(255, 255, 255, 0.72); }
[data-theme="light"] .hero__stat dt { color: #5b6674; }
[data-theme="light"] .hero__stat dd { color: #8a6400; }
[data-theme="light"] .hero__stat p { color: #3c4552; }
[data-theme="light"] .tabs { background: rgba(255, 255, 255, 0.7); }
[data-theme="light"] .tabs__media { background: radial-gradient(70% 70% at 50% 40%, rgba(184, 137, 10, 0.12), transparent 70%), rgba(255, 255, 255, 0.6); }
[data-theme="light"] .tabs__top li { background: rgba(16, 22, 30, 0.035); border-color: rgba(16, 22, 30, 0.08); }
[data-theme="light"] .tabs__poster { background: radial-gradient(60% 60% at 50% 20%, rgba(90, 130, 220, 0.14), transparent 70%), linear-gradient(160deg, #eef2f8, #e4e9f1); }
[data-theme="light"] .tabs__list li { border-bottom-color: rgba(16, 22, 30, 0.1); }
[data-theme="light"] .tabs__list b { color: #8a6400; }

/* ---------- Мобильная раскладка ---------- */
@media (max-width: 900px) {
  .tabs__panel { grid-template-columns: 1fr; }
  .tabs__media { min-height: 200px; order: 2; }
  .hero__stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .tabs__panel { animation: none; }
  .tabs__ink { transition: none; }
}


/* без дублирующего тире: линию рисует .eyebrow__line */
.hero__eyebrow::before { display: none; }
.hero__eyebrow { gap: 0; }

/* ==========================================================================
   Шапка: на всю ширину, крупнее и аккуратнее
   ========================================================================== */
.site-header .container {
  max-width: none;
  width: 100%;
  padding-inline: clamp(16px, 3.2vw, 56px);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  min-height: 72px;
}
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, #0a0d12, #070a0e);
}
.site-header.is-scrolled { border-bottom-color: rgba(255, 255, 255, 0.09); }

.brand__name {
  font-size: 17px;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.brand__sub { font-size: 8.5px; letter-spacing: 0.28em; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.4vw, 18px);
  margin-inline: auto;
}
.nav__link {
  position: relative;
  padding: 10px 2px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #98a2b0;
  transition: color 0.2s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link[aria-current="page"] { color: #fff; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav__link:hover::after { transform: scaleX(0.5); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

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

/* флаги в списке языков */
.langpick__flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  flex: 0 0 auto;
}
.langpick__item { gap: 10px; justify-content: flex-start; }
.langpick__item b { margin-left: auto; }
.langpick__menu { width: 196px; }

@media (max-width: 980px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px clamp(16px, 4vw, 24px) 18px;
    background: #0a0d12;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 12px 0; font-size: 15px; }
}

/* ---------- Флаги (CSS) ---------- */
.langpick__flag {
  display: inline-block;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
}
.langpick__item { gap: 10px; }
.langpick__item b { margin-left: auto; }
.langpick__menu { left: 0; right: auto; width: 208px; }

/* ---------- Цитата ---------- */
.quote-band { padding-block: clamp(28px, 5vw, 64px); }
.quote-band__inner {
  position: relative;
  margin: 0;
  padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background:
    radial-gradient(70% 140% at 8% 0%, rgba(var(--accent-rgb), 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008));
  overflow: hidden;
}
.quote-band__mark {
  position: absolute;
  top: -34px;
  left: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(120px, 16vw, 200px);
  line-height: 1;
  color: rgba(var(--accent-rgb), 0.16);
  pointer-events: none;
}
.quote-band__text {
  position: relative;
  margin: 0;
  max-width: 26ch;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.quote-band__text em {
  font-style: normal;
  color: var(--accent);
}
.quote-band__author {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
[data-theme="light"] .quote-band__inner {
  background:
    radial-gradient(70% 140% at 8% 0%, rgba(184, 137, 10, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  border-color: rgba(16, 22, 30, 0.1);
}
[data-theme="light"] .quote-band__mark { color: rgba(184, 137, 10, 0.2); }
[data-theme="light"] .quote-band__text em { color: #8a6400; }
[data-theme="light"] .quote-band__author { color: #5b6674; }


/* ---------- Шапка: строгое центрирование меню ---------- */
.header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.header__inner > .brand { justify-self: start; }
.header__inner > .nav { justify-self: center; margin-inline: 0; }
.header__inner > .header__actions { justify-self: end; }
@media (max-width: 980px) {
  .header__inner { display: flex; }
}


/* ---------- Компактная главная ---------- */
.section { padding-block: clamp(30px, 3.6vw, 54px); }
.section--tight { padding-block: clamp(20px, 2.6vw, 36px); }
.hero { padding-block: clamp(34px, 4.4vw, 64px) clamp(26px, 3vw, 44px); }
.hero__stats { margin-top: 26px; }
.hero__meta { margin-top: 18px; }
.quote-band { padding-block: clamp(16px, 2.4vw, 30px); }
.section__head { margin-bottom: clamp(18px, 2.4vw, 32px); }
.hub + .section, .links + .section { margin-top: 0; }


/* ---------- Коллаж скриншотов ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(120px, auto);
  gap: 12px;
}
.shots__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0f14;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.shots__item--big {
  grid-column: span 2;
  grid-row: span 2;
}
.shots__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  filter: saturate(1.02) contrast(1.03);
}
.shots__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 14px 11px;
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #eef2f8;
  background: linear-gradient(180deg, rgba(4, 6, 9, 0), rgba(4, 6, 9, 0.82));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.shots__item:hover { border-color: rgba(var(--accent-rgb), 0.5); transform: translateY(-2px); }
.shots__item:hover img { transform: scale(1.05); }
.shots__item:hover figcaption { opacity: 1; transform: none; }

[data-theme="light"] .shots__item { border-color: rgba(16, 22, 30, 0.12); }
[data-theme="light"] .shots__item figcaption { background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.9)); color: #0c1015; }

@media (max-width: 900px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots__item--big { grid-column: span 2; grid-row: span 1; }
}
@media (prefers-reduced-motion: reduce) {
  .shots__item, .shots__item img { transition: none; }
}


/* ---------- О игре ---------- */
.about { max-width: 880px; }
.about .lead { max-width: 60ch; }
.about__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}
.about__facts b {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--accent);
  margin-right: 6px;
}
.about__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Рефералка ---------- */
.referral {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
}
.ticks { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.ticks li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  color: var(--muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.7);
}
.referral__form { padding: 22px; }
.form__label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.referral__row { display: flex; gap: 8px; }
.referral__row .input { flex: 1 1 auto; }
.referral__out {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed rgba(var(--accent-rgb), 0.4);
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.06);
}
.referral__out code { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }

@media (max-width: 860px) {
  .referral { grid-template-columns: 1fr; }
  .referral__row { flex-direction: column; }
}


/* цифры в hero: столько колонок, сколько элементов */
.hero__stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }


/* рефералка: поле и кнопка всегда в строку */
.referral__row { display: flex; flex-wrap: nowrap; align-items: stretch; }
.referral__row .input { flex: 1 1 auto; min-width: 0; width: auto; }
.referral__row .btn { flex: 0 0 auto; white-space: nowrap; }
.referral__form .form__note { margin-top: 10px; }








/* ---------- Фон на странице техники (как на главной) ---------- */
.page-tech .pagehero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(56px, 6vw, 88px) clamp(44px, 5vw, 68px);
  background: var(--bg);
}
.page-tech .pagehero::before {
  content: "";
  position: absolute;
  inset: -70px;
  z-index: -2;
  background: url("/assets/img/garage-bg.webp") center 46% / cover no-repeat;
  filter: blur(9px) saturate(1.08) brightness(0.84);
  transform: scale(1.05);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 44%, rgba(0, 0, 0, 0.66) 66%, rgba(0, 0, 0, 0.22) 85%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 44%, rgba(0, 0, 0, 0.66) 66%, rgba(0, 0, 0, 0.12) 90%, transparent 100%);
  pointer-events: none;
}
.page-tech .pagehero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70% 120% at 12% 40%, rgba(5, 7, 11, 0.9) 0%, rgba(5, 7, 11, 0.62) 42%, transparent 74%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.4) 0%, rgba(7, 9, 13, 0.12) 34%, rgba(7, 9, 13, 0.3) 62%, var(--bg) 92%, var(--bg) 100%);
}
.page-tech .pagehero > .container { position: relative; z-index: 1; }
.page-tech .pagehero h1 { text-shadow: 0 18px 60px rgba(0, 0, 0, 0.55); }
.page-tech .pagehero { border-bottom-color: transparent; }
.pagehero__bg { display: none; }

[data-theme="light"] .page-tech .pagehero::before {
  filter: blur(10px) saturate(1.02) brightness(1.06);
}
[data-theme="light"] .page-tech .pagehero::after {
  background:
    radial-gradient(70% 120% at 12% 40%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.6) 42%, transparent 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.08) 36%, rgba(255, 255, 255, 0.4) 66%, var(--bg) 100%);
}
[data-theme="light"] .page-tech .pagehero h1 { text-shadow: none; }

/* ---------- Фон на странице званий (как на главной) ---------- */
.page-ranks .pagehero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(56px, 6vw, 88px) clamp(44px, 5vw, 68px);
  background: var(--bg);
}
.page-ranks .pagehero::before {
  content: "";
  position: absolute;
  inset: -70px;
  z-index: -2;
  background: url("/assets/img/ranks-bg.webp") center 42% / cover no-repeat;
  filter: blur(4px) saturate(1.16) brightness(0.92);
  transform: scale(1.05);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 44%, rgba(0, 0, 0, 0.66) 66%, rgba(0, 0, 0, 0.22) 85%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 9%, #000 44%, rgba(0, 0, 0, 0.66) 66%, rgba(0, 0, 0, 0.12) 90%, transparent 100%);
  pointer-events: none;
}
.page-ranks .pagehero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(70% 120% at 12% 40%, rgba(5, 7, 11, 0.9) 0%, rgba(5, 7, 11, 0.62) 42%, transparent 74%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.4) 0%, rgba(7, 9, 13, 0.12) 34%, rgba(7, 9, 13, 0.3) 62%, var(--bg) 92%, var(--bg) 100%);
}
.page-ranks .pagehero > .container { position: relative; z-index: 1; }
.page-ranks .pagehero h1 { text-shadow: 0 18px 60px rgba(0, 0, 0, 0.55); }
.page-ranks .pagehero { border-bottom-color: transparent; }
.pagehero__bg { display: none; }

[data-theme="light"] .page-ranks .pagehero::before {
  filter: blur(6px) saturate(1.02) brightness(1.08);
}
[data-theme="light"] .page-ranks .pagehero::after {
  background:
    radial-gradient(70% 120% at 12% 40%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.6) 42%, transparent 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.08) 36%, rgba(255, 255, 255, 0.4) 66%, var(--bg) 100%);
}
[data-theme="light"] .page-ranks .pagehero h1 { text-shadow: none; }


/* ---------- Карточки техники: превью целиком ---------- */
.techcard { overflow: hidden; }
.techcard__art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 168px;
  padding: 6px 10px 0;
  overflow: hidden;
}
.techcard__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.techcard__name { position: relative; z-index: 1; }
.techcard__top { position: relative; z-index: 1; }


/* ---------- Карточки техники: аккуратные подписи ---------- */
.techcard { gap: 10px; }
.techcard__num {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 10px;
  font-size: 9px;
  letter-spacing: 0.09em;
}
.techcard__num span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.techcard__num i {
  display: block;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--dim, #7d8894);
}
.techcard__num b {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
  white-space: nowrap;
}
.techcard__num u {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--dim, #7d8894);
}
@media (max-width: 560px) {
  .techcard__num { font-size: 8.5px; gap: 4px 8px; }
  .techcard__num b { font-size: 13.5px; }
}


/* ---------- Вики ---------- */
.page-wiki .pagehero {
  background:
    radial-gradient(circle at 22% 18%, rgba(var(--accent-rgb), 0.14), transparent 55%),
    radial-gradient(circle at 82% 8%, rgba(var(--gold-rgb), 0.1), transparent 52%);
}
.wiki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.wiki-grid--two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.wiki-card {
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #14181d, #0e1114);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.wiki-card:hover { border-color: rgba(var(--accent-rgb), 0.4); transform: translateY(-3px); }
.wiki-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.wiki-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}
.wiki-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
[data-theme="light"] .wiki-card { background: #fff; }
[data-theme="light"] .wiki-card h3 { color: #14181d; }


/* карточки чуть шире, чтобы подписи «Перезарядка»/«Дальность» влезали */
.tech-grid { grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }
@media (max-width: 1024px) {
  .tech-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}


/* ---------- Типографика: узкий корпус, растянутое меню ---------- */
body {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.012em;
}
.nav__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.nav__link.nav__cta { letter-spacing: 0.16em; }
.btn, .chip, .mod { letter-spacing: 0.06em; }


/* ---------- Техника: минимализм ---------- */
.garage {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(330px, 0.9fr);
  gap: 34px;
  align-items: start;
}
.garage__stage {
  min-height: 420px;
  border: 0;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 65%, rgba(120, 140, 110, 0.06), transparent 62%);
}
.garage__caption {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: none;
  padding: 12px 4px 0;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--dim);
}
.garage__controls { padding: 0; gap: 18px; }
.garage__controls .field__label,
.garage__controls .kv__head {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--dim);
  margin-bottom: 8px;
  padding: 0;
}
.chips { gap: 6px; }
.chip {
  padding: 5px 9px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.chip:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.chip.is-active {
  color: #12161a;
  background: var(--accent);
  box-shadow: none;
}
.mods { gap: 6px; }
.mod {
  min-width: 40px;
  padding: 5px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
}
.mod.is-active { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), 0.08); }
.garage__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 26px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.garage__stats .kv { border: 0; background: none; padding: 14px 0 0; border-radius: 0; }
.kv__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 11px;
}
.kv__row span { color: var(--dim); font-size: 10.5px; letter-spacing: 0.04em; }
.kv__row b { font-family: var(--font-mono); font-size: 12.5px; color: #fff; font-weight: 500; }

/* карточки — ровная сетка без шума */
.tech-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 26px;
}
.techcard {
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: none;
  gap: 10px;
}
.techcard:hover { transform: none; }
.techcard__art {
  height: 176px;
  margin: 0;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 78%, rgba(120, 140, 110, 0.07), transparent 66%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s var(--ease);
}
.techcard:hover .techcard__art { border-color: rgba(var(--accent-rgb), 0.35); }
.techcard__top { padding: 0 2px; }
.techcard__name { font-size: 14px; letter-spacing: 0.12em; }
.techcard .tag { font-size: 8.5px; letter-spacing: 0.14em; padding: 3px 7px; border-radius: 5px; opacity: 0.75; }
.techcard__num {
  padding: 0 2px;
  border-top: 0;
  gap: 0 14px;
  font-size: 9px;
}
.techcard__num i { font-size: 8.5px; letter-spacing: 0.12em; }
.techcard__num b { font-size: 13px; font-weight: 500; }
.techcard__num u { font-size: 9px; }

@media (max-width: 980px) {
  .garage { grid-template-columns: 1fr; gap: 22px; }
  .garage__stats { grid-template-columns: 1fr; }
}


/* правки сетки карточек */
.tech-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px 22px;
}
.techcard { overflow: visible; }
.techcard__art {
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 18px 16px 10px;
  height: 190px;
}
.techcard__art img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.techcard__num { margin-top: 4px; }
.techcard .tag { border: 1px solid rgba(255, 255, 255, 0.1); background: none; }


/* ---------- Полировка: сцена, карточки, чипы ---------- */

/* сцена плавно растворяется в фоне страницы */
.garage__stage {
  background: none;
  border-radius: 0;
  min-height: 440px;
  -webkit-mask-image: radial-gradient(ellipse 96% 92% at 50% 50%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 96% 92% at 50% 50%, #000 58%, transparent 100%);
}
.garage__caption {
  border-top: 0;
  opacity: 0.75;
  padding-top: 4px;
}

/* карточки: танк меньше, воздуха больше */
.techcard__art {
  height: 200px;
  padding: 26px 30px 20px;
}
.techcard__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(0.92);
  transition: transform 0.35s var(--ease);
}
.techcard:hover .techcard__art img { transform: scale(0.98); }

/* чипы: минимализм без скруглений, с анимацией подчёркивания */
.chips { gap: 2px 4px; }
.chip {
  position: relative;
  padding: 7px 10px 8px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s var(--ease);
}
.chip::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.chip:hover { color: #fff; background: none; }
.chip:hover::after { transform: scaleX(0.55); }
.chip.is-active {
  color: var(--accent);
  background: none;
  box-shadow: none;
}
.chip.is-active::after { transform: scaleX(1); }

/* модификации: строгие квадраты */
.mod {
  min-width: 38px;
  padding: 6px 0;
  border-radius: 0;
  border: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  background: none;
  color: var(--dim);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.mod:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.mod.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: none;
}

/* строки характеристик — тонкие и ровные */
.kv__row {
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.kv__row span { font-size: 10px; letter-spacing: 0.06em; }
.kv__row b { font-size: 12px; }


/* сцена: не обрезаем модель */
.garage__stage canvas { display: block; }


/* ---------- Единый минимализм по сайту ---------- */
.panel,
.linkcard,
.wiki-card,
.rank,
.news__meta,
.shots__item,
.profile__xp-row,
.referral__row {
  border-radius: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: none;
  box-shadow: none;
}
.panel { border-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.07); padding-left: 18px; }
.linkcard { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.linkcard:hover { transform: none; background: none; }
.linkcard:hover .linkcard__title { color: var(--accent); }
.wiki-card { padding: 16px 0 18px; }
.wiki-card:hover { transform: none; border-color: rgba(255, 255, 255, 0.07); }
.wiki-card h3 { font-size: 15px; }
.rank { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.rank:hover { background: none; }
.techcard { border-radius: 0; }
.techcard__art { border-radius: 0; }
.chips, .mods { border-radius: 0; }
.btn { border-radius: 0; }
.btn--primary { border-radius: 0; }
.tag { border-radius: 0; }

/* карточки техники: танк ещё меньше в рамке */
.techcard__art {
  height: 210px;
  padding: 34px 40px 26px;
}
.techcard__art img { transform: scale(0.82); }
.techcard:hover .techcard__art img { transform: scale(0.88); }

/* характеристики — крупнее и заметнее */
.kv__head {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 6px;
}
.kv__row {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.kv__row span {
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: #9aa4ae;
}
.kv__row b {
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
}
.garage__controls .field__label {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--muted);
}


/* ---------- Заголовки: крупнее, ярче, жирнее ---------- */
.section__title,
.pagehero__title,
h2, h3 {
  color: #ffffff;
  font-weight: 700;
}
.section__title { letter-spacing: 0.01em; }
.eyebrow,
.hero__eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #ffffff;
}
.eyebrow__line { background: var(--accent); }

/* панель характеристик */
.kv__head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ffffff;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.kv__row span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #b8c2cc;
}
.kv__row b {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}
.garage__controls .field__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ffffff;
}
.garage__controls .kv__head { margin-bottom: 8px; }

/* карточки и списки */
.techcard__name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.1em;
}
.techcard__num i {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #aab4be;
}
.techcard__num b { font-size: 14.5px; font-weight: 700; }
.linkcard__title { font-size: 15px; font-weight: 700; color: #fff; }
.wiki-card h3 { font-size: 16px; font-weight: 700; color: #fff; }
.rank__name { font-weight: 700; color: #fff; }
.news__meta { font-weight: 600; color: #b8c2cc; }


/* ---------- Контраст: заголовки белые, вторичное — серое ---------- */
.kv__head,
.garage__controls .field__label,
.garage__controls .kv__head {
  color: #ffffff;
  font-weight: 700;
}
.kv__row span {
  color: #8b95a0;
  font-weight: 500;
}
.kv__row b {
  color: #ffffff;
  font-weight: 700;
}
.section__title,
.pagehero__title,
.hero__title,
.wiki-card h3,
.techcard__name,
.linkcard__title,
.rank__name,
h2, h3 {
  color: #ffffff;
}
.section__lead,
.pagehero__lead,
.hero__lead,
.wiki-card p,
.linkcard__text,
.techcard__num i,
.techcard .tag,
.garage__caption,
.footer,
.footer__grid,
.news__meta {
  color: #8b95a0;
}
.techcard__num b { color: #ffffff; font-weight: 700; }
.chip { color: #8b95a0; }
.chip.is-active { color: var(--accent); }
.mod { color: #7f8994; }


/* подписи групп в гараже — белые */
.control__label,
.garage__controls .control__label {
  display: block;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}


/* карточки: картинка строго внутри плитки */
.techcard { overflow: hidden; }
.techcard__art {
  position: relative;
  overflow: hidden !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 210px;
  padding: 28px 32px 22px;
}
.techcard__art img {
  position: static !important;
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  transform: none !important;
  margin: 0 auto;
}


/* ---------- Прямоугольные плашки по всему сайту ---------- */
.hero__meta,
.hero__meta-item,
.stats,
.stat,
.panel,
.card,
.quote,
.blockquote,
.linkcard,
.wiki-card,
.rank,
.techcard__art,
.techcard,
.btn,
.tag,
.chip,
.mod,
.news__meta,
.shots__item,
.profile__xp-row,
.referral__row,
.garage__caption,
.auth,
.auth__card,
.form,
.field input,
.field textarea,
select,
input[type="text"],
input[type="email"],
input[type="password"] {
  border-radius: 0 !important;
}

.hero__meta {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: none;
}
.hero__meta-item + .hero__meta-item { border-left: 1px solid rgba(255, 255, 255, 0.08); }
.stat, .stats { background: none; border: 0; }
.quote, .blockquote {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: none;
  padding: 26px 28px;
}

/* ---------- Отражение под сценой ---------- */
.garage__stage { position: relative; }
.tank-reflection {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 62%;
  pointer-events: none;
  transform: scaleY(-1);
  opacity: 0.3;
  filter: blur(1px) saturate(0.85);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0) 8%, #000 92%);
  mask-image: linear-gradient(to top, rgba(0,0,0,0) 8%, #000 92%);
  display: block;
  width: 100%;
}


/* ---------- Финальная зачистка скруглений ---------- */
*,
*::before,
*::after,
button, input, select, textarea {
  border-radius: 0 !important;
}
/* круглыми остаются только аватарки, флаги и бейджи-иконки */
.avatar, .avatar img, .rank__badge, .rank__badge img, .userpic, .userpic img,
.langpick__flag, .flag, .brand__mark, [class*="__avatar"], [class*="__badge"]:not(.tag) {
  border-radius: 50% !important;
}
.brand__mark, .langpick__flag { border-radius: 2px !important; }

/* ---------- Плашки в стиле новостей: левая линия, без заливки ---------- */
.hero__stats,
.stats,
.stat,
.roadcard,
.road__foot,
.countdown__cell,
.quote-band__inner,
.referral__out,
.tabs__top li,
.shots__item,
.panel,
.card,
.auth,
.form,
.field input,
.field textarea,
select {
  border: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: none !important;
  padding: 14px 18px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.hero__stats,
.stats { border-left: 0 !important; padding: 0 !important; }
.hero__stats > *,
.stats > * {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 18px;
  background: none;
}
.hero__stats > *:first-child,
.stats > *:first-child { border-left: 0; padding-left: 0; }

/* теги — тонкая рамка, как «ИВЕНТ» в новостях */
.tag {
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: none !important;
  color: #ffffff !important;
  padding: 3px 8px !important;
  font-size: 9px !important;
  letter-spacing: 0.16em !important;
}

/* поиск и поля — как в новостях: линия снизу */
.field input,
.field textarea,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
select {
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: none !important;
  padding: 10px 0 !important;
}

/* новости: элемент как на референсе */
.news__item,
.news-item {
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0 22px 20px;
  background: none;
}
.news__item h3,
.news-item h3 { font-size: 20px; font-weight: 700; }


/* «Бесплатно · ПК и браузер» — тихо в углу сцены */
.hero { position: relative; }
.hero__meta {
  position: absolute;
  right: 28px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0 !important;
  border-left: 0 !important;
  background: none !important;
  padding: 0 !important;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  opacity: 0.9;
}
.hero__meta-item { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta-item svg { width: 13px; height: 13px; opacity: 0.7; }
.hero__meta-dot { width: 3px; height: 3px; background: rgba(255,255,255,0.3); border-radius: 50% !important; }
@media (max-width: 900px) {
  .hero__meta { position: static; margin-top: 14px; }
}


/* «Техника / Звания» — компактной парой, без пустоты */
.hero__stats,
dl.hero__stats {
  display: inline-flex !important;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0 !important;
  width: auto !important;
  max-width: none !important;
  margin: 22px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}
.hero__stats > * {
  display: block;
  padding: 0 26px !important;
  border: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: none !important;
  margin: 0 !important;
}
.hero__stats > *:first-child {
  padding-left: 0 !important;
  border-left: 0 !important;
}
.hero__stats dt {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.hero__stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
}
.hero__stats p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
}
@media (max-width: 560px) {
  .hero__stats > * { padding: 0 18px !important; }
  .hero__stats dd { font-size: 25px; }
}


/* ---------- Плашки статистики — как карточки техники ---------- */
.stats,
.hero__stats {
  display: grid !important;
  gap: 14px !important;
  border: 0 !important;
  background: none !important;
}
.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats > *,
.stat,
.roadcard,
.countdown__cell {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: none !important;
  padding: 20px 20px 22px !important;
  border-radius: 0 !important;
}
.stats > * dt,
.stat dt,
.stats > * .stat__label {
  font-family: var(--font-display);
  font-size: 9.5px !important;
  font-weight: 600;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: #8b95a0 !important;
  margin: 0 0 8px !important;
}
.stats > * dd,
.stat dd {
  margin: 0 !important;
  font-family: var(--font-mono);
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: var(--accent) !important;
}
.stats > * p,
.stat p {
  margin: 6px 0 0 !important;
  font-size: 11px !important;
  color: #8b95a0 !important;
  letter-spacing: 0.01em;
}
.stats > * p b { color: #ffffff; }


/* плашки-метрики на страницах званий и рейтинга */
.page-ranks .grid-2 > *,
.page-ranks .grid-3 > *,
.page-rating .grid-2 > *,
.page-rating .grid-3 > *,
.rankstools > * {
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: none !important;
  padding: 19px 20px 21px !important;
  border-radius: 0 !important;
}
.page-ranks .grid-2 > * > :first-child,
.page-rating .grid-2 > * > :first-child,
.rankstools > * > :first-child {
  font-family: var(--font-display);
  font-size: 9.5px !important;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b95a0 !important;
  display: block;
  margin-bottom: 8px;
}
.page-ranks .grid-2 > * > :nth-child(2),
.page-rating .grid-2 > * > :nth-child(2),
.rankstools > * > :nth-child(2) {
  font-family: var(--font-mono);
  font-size: 25px !important;
  font-weight: 700;
  color: var(--accent) !important;
  display: block;
  line-height: 1.15;
}
.page-ranks .grid-2 > * > :nth-child(3),
.page-rating .grid-2 > * > :nth-child(3),
.rankstools > * > :nth-child(3) {
  margin-top: 6px;
  font-size: 11px !important;
  color: #8b95a0 !important;
  display: block;
}


/* ---------- Плашки-факты (звания, рейтинг) ---------- */
.fact {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: none !important;
  border-radius: 0 !important;
  padding: 19px 20px 21px !important;
}
.fact__label {
  font-family: var(--font-display);
  font-size: 9.5px !important;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8b95a0 !important;
  margin-bottom: 8px !important;
}
.fact__val {
  font-family: var(--font-mono);
  font-size: 25px !important;
  font-weight: 700 !important;
  line-height: 1.15;
  color: var(--accent) !important;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.fact__val small,
.fact__val small span {
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  color: #8b95a0 !important;
}
.fact__val > span {
  font-size: 15px !important;
  font-weight: 600;
  color: var(--accent) !important;
  opacity: 0.85;
}




/* сцена: прозрачный вьюер, чтобы ангар просвечивал */
.garage__stage .tankview,
.garage__stage .tankview.is-3d {
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  aspect-ratio: auto !important;
  height: 100%;
}
.garage__stage .tankview canvas { background: none !important; }







/* ---------- Меню по центру, активный пункт крупнее ---------- */
.site-header .header__inner,
.site-header .header__grid {
  grid-template-columns: auto 1fr auto;
}
.nav {
  justify-content: center;
  gap: 4px 10px;
}
.nav__link {
  font-size: 13.5px;
  letter-spacing: 0.18em;
  padding: 8px 10px;
}
.nav__link[aria-current="page"] {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent) !important;
  background: none;
}
.nav__link[aria-current="page"]::after {
  left: 10px;
  right: 10px;
  height: 3px;
  background: var(--accent);
}
@media (max-width: 1100px) {
  .nav__link { font-size: 12px; letter-spacing: 0.12em; }
  .nav__link[aria-current="page"] { font-size: 14px; }
}


/* меню строго по центру шапки */
.site-header .header__inner,
.site-header .header__grid { position: relative; }
@media (min-width: 1101px) {
  .nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
  }
}


/* меню не наезжает на кнопки справа */
.nav .nav__cta { display: none; }
@media (min-width: 1101px) {
  .nav { gap: 0 2px; }
  .nav__link {
    font-size: 12px;
    letter-spacing: 0.12em;
    padding: 7px 8px;
    white-space: nowrap;
  }
  .nav__link[aria-current="page"] {
    font-size: 14px;
    letter-spacing: 0.1em;
  }
}


/* ---------- Меню: один размер, активный только жёлтый ---------- */
@media (min-width: 1101px) {
  .nav { gap: 0; }
  .nav__link,
  .nav__link[aria-current="page"] {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.13em;
    padding: 8px 9px;
  }
  .nav__link[aria-current="page"] {
    color: var(--accent) !important;
    font-weight: 700;
  }
  .nav__link[aria-current="page"]::after {
    left: 9px;
    right: 9px;
    height: 2px;
  }
}


/* активный пункт не меняет ширину: тот же вес и трекинг */
.nav__link[aria-current="page"] {
  font-weight: 600 !important;
  letter-spacing: 0.13em !important;
  font-size: 13px !important;
}
.nav__link { font-weight: 600; }


/* ---------- Убираем «коробки» у колонок характеристик ---------- */
.garage__stats .kv,
.garage__stats .kv * {
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.garage__stats .kv { border: 0 !important; padding: 0 !important; }
.garage__stats .kv__head {
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  padding: 0 0 7px !important;
  margin: 0 0 4px !important;
  display: block !important;
  text-align: left !important;
}


/* ---------- Страница лаунчера ---------- */
.download {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  align-items: center;
}
.download__title {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  margin: 8px 0 6px;
}
.download__meta { color: #8b95a0; font-size: 13px; margin: 0 0 12px; }
.download__meta strong { color: var(--accent); }
.download__text { color: #8b95a0; max-width: 46ch; margin: 0 0 20px; }
.download__btn { display: inline-block; padding: 16px 30px; font-size: 14px; letter-spacing: 0.12em; }
.download__hash { margin: 16px 0 0; color: #6b7580; font-size: 11px; word-break: break-all; }
.download__hash code, .download__text code { font-family: var(--font-mono); color: #a9b3bd; }
.download__shot { margin: 0; border: 1px solid rgba(255, 255, 255, 0.08); background: #0f1319; }
.download__shot img { display: block; width: 100%; height: auto; }
.download__reqs { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 18px; }
.download__sub { font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 10px; }
.download__list { margin: 0; padding-left: 18px; color: #8b95a0; }
.download__list li { margin-bottom: 6px; }
@media (max-width: 900px) {
  .download { grid-template-columns: 1fr; }
}


.download__alt { margin: 14px 0 0; color: #6b7580; font-size: 12px; max-width: 46ch; }
.download__alt a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(242, 179, 1, 0.35); }
.download__note { margin: 12px 0 0; color: #6b7580; font-size: 12px; max-width: 60ch; }
.download__steps { counter-reset: step; list-style: decimal; }


.dl-band__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 6px 0 10px;
  color: #fff;
}
.dl-band__lead { color: #8b95a0; max-width: 44ch; margin: 0 0 20px; }
.dl-band__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dl-band__meta { color: #7b8590; font-size: 12px; letter-spacing: 0.04em; }
.dl-band__shot { display: block; border: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; }
.dl-band__shot img { display: block; width: 100%; height: auto; transition: transform 0.5s var(--ease); }
.dl-band__shot:hover img { transform: scale(1.02); }
@media (max-width: 900px) {
  .dl-band__inner { grid-template-columns: 1fr; padding: 22px; }
}


/* ---------- Скачать лаунчер на главной ---------- */
.dl { padding-top: 4px; }
.dl__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 40px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 36px 0;
}
.dl__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 8px 0 12px;
  color: #fff;
}
.dl__lead { color: #8b95a0; max-width: 42ch; margin: 0 0 20px; }
.dl__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dl__meta { color: #7b8590; font-size: 12px; letter-spacing: 0.04em; white-space: nowrap; }
.dl__note { margin: 14px 0 0; color: #6b7580; font-size: 12px; }
.dl__note code { font-family: var(--font-mono); color: #a9b3bd; }
.dl__shot {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0e11;
  line-height: 0;
}
.dl__shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1056 / 700;
  object-fit: cover;
}
@media (max-width: 900px) {
  .dl__inner { grid-template-columns: 1fr; gap: 24px; padding: 26px 0; }
}


/* ---------- цены в гараже ---------- */
.kv__row--price {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.kv__row--price span { color: var(--accent) !important; }
.kv__row--price b { color: var(--accent); }
[data-theme="light"] .kv__row--price { border-top-color: rgba(16, 22, 30, 0.12); }

/* ---------- цитата мелким текстом на главной ---------- */
.home-quote {
  padding: 34px 0 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 10px;
}
.home-quote__text {
  margin: 0 0 6px;
  max-width: 620px;
  color: #7b8590;
  font-size: 12px;
  line-height: 1.7;
}
.home-quote__author {
  margin: 0;
  color: #5f6873;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
[data-theme="light"] .home-quote__text { color: #5d6670; }
[data-theme="light"] .home-quote__author { color: #7d8792; }
