/* ============================================================
   REGENT ONLINE — стили по макету Figma (1920px)
   ============================================================ */

:root {
  --bg-dark: #212121;
  --bg-darker: #191919;
  --accent-from: #ffb800;
  --accent-to: #ff7a00;
  --accent-mid: #ff9a00;
  --accent-grad: linear-gradient(115deg, var(--accent-from) 0%, var(--accent-to) 100%);
  --accent-glow: rgba(255, 136, 0, 0.35);
  --text-muted: #7b7b7b;
  --text-grey: #6d6d6d;
  --font-main: "Montserrat", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: #131313;
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: #fff;
  min-width: 320px;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1814px;
  margin: 0 auto;
  padding: 0 52px;
}

/* ---------- Появление при скролле (минималистичное) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--delay {
  transition-delay: 0.15s;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* ============================================================
   Прелоадер — «биение» логотипа при загрузке сайта
   ============================================================ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #131313;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

html.no-preloader .preloader {
  display: none !important;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__logo {
  width: 110px;
  height: 110px;
  animation: logo-pulse 2.8s ease-in-out infinite;
  will-change: transform;
}

@keyframes logo-pulse {
  0%, 100% { transform: scale(1); opacity: 0.88; }
  50% { transform: scale(1.14); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .preloader__logo,
  .page-transition__logo {
    animation: none;
  }
}

/* Тихий fade при переходах между страницами + логотип по центру */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #131313;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.page-transition__logo {
  width: 96px;
  height: 96px;
  animation: logo-pulse 2.8s ease-in-out infinite;
  will-change: transform, opacity;
}

html.page-enter .page-transition,
html.is-leaving .page-transition {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}

html.page-enter body > *:not(.page-transition):not(.preloader),
html.is-leaving body > *:not(.page-transition):not(.preloader) {
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
}

html.page-ready body > *:not(.page-transition):not(.preloader) {
  opacity: 1;
  transition: opacity 0.22s ease;
}

html.page-ready:not(.is-leaving):not(.page-enter) .page-transition {
  opacity: 0;
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html.page-enter body > *:not(.page-transition):not(.preloader),
  html.page-ready body > *:not(.page-transition):not(.preloader),
  html.is-leaving body > *:not(.page-transition):not(.preloader),
  .page-transition {
    opacity: 1;
    transition: none;
    visibility: visible;
  }
  html.page-ready:not(.is-leaving):not(.page-enter) .page-transition {
    opacity: 0;
    visibility: hidden;
  }
}

/* ============================================================
   Кнопки
   ============================================================ */

button.btn {
  cursor: pointer;
  border: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(0);
}

.btn--gradient {
  background: var(--accent-grad);
  color: #fff;
}

.btn--gradient:hover {
  box-shadow: 0 8px 28px rgba(255, 136, 0, 0.35);
}

.btn--white {
  background: #f0f0f0;
  color: #131313;
}

.btn--hero {
  min-width: 200px;
  height: 58px;
  border-radius: 14px;
  font-size: 16px;
  font-style: italic;
  text-transform: uppercase;
  padding: 0 22px;
}

.btn__arrow {
  flex-shrink: 0;
}

/* ============================================================
   Шапка
   ============================================================ */

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 56px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo__icon {
  width: 48px;
  height: 48px;
}

.logo__text {
  font-family: "Montserrat", sans-serif;
  font-size: 26px;
  font-style: italic;
  font-synthesis: none;
  white-space: nowrap;
  color: #fff;
}

.logo__brand {
  font-weight: 800;
  font-style: italic;
}

.logo__online {
  font-weight: 400;
  font-style: italic;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__mobile-top {
  display: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav__link {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: #d9d9d9;
  transition: color 0.25s ease;
}

.nav__link:hover,
.nav__link.is-active {
  color: #fff;
}

.nav__cabinet {
  width: 189px;
  height: 50px;
  border-radius: 9px;
  font-size: 14.2px;
  color: #282828;
}

.btn--cabinet {
  flex-shrink: 0;
  min-width: 168px;
  height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 13px;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 22px rgba(255, 136, 0, 0.28);
}

.btn--cabinet:hover {
  box-shadow: 0 10px 28px rgba(255, 136, 0, 0.4);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 30;
}

.burger span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ============================================================
   Герой
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.18) saturate(1.28);
  background: #131313;
}

.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__overlay--index,
.hero__overlay--shop {
  background: rgba(44, 44, 44, 0.62);
}

.hero__content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 160px 20px 60px;
}

.hero__title {
  font-size: clamp(36px, 4vw, 72px);
  font-style: italic;
  line-height: 1.15;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.45),
    0 8px 28px rgba(0, 0, 0, 0.55);
}

.hero__title b {
  font-weight: 800;
}

.hero__title i {
  font-weight: 300;
}

.hero__subtitle {
  max-width: 520px;
  margin: 20px auto 0;
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
  user-select: none;
  -webkit-user-select: none;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  z-index: 5;
  opacity: 0.85;
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Герой магазина ---------- */

.shop-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
}

.shop-hero__title {
  font-size: clamp(36px, 4.2vw, 78px);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.05;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.shop-hero__promo {
  display: block;
  margin: 12px 0 0;
  font-size: clamp(18px, 1.9vw, 34px);
  font-weight: 800;
  text-transform: uppercase;
  background-image: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.shop-hero__promo--sale {
  position: static;
  margin-top: 14px;
  padding: 0;
  background-image: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: none;
  filter: none;
}

.btn--buy-rub {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  min-width: 230px;
  height: 68px;
  margin-top: 28px;
  padding: 0 36px;
  border: none;
  border-radius: 11px;
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  background-image: var(--accent-grad);
  background-color: var(--accent-to);
  box-shadow: 0 8px 28px rgba(255, 136, 0, 0.35);
  animation: buy-rub-pulse 2.8s ease-in-out infinite;
  transition: filter 0.25s ease;
  will-change: transform, box-shadow;
}

.btn--buy-rub::before {
  content: "";
  position: absolute;
  inset: -10% -40%;
  z-index: 0;
  background: linear-gradient(
    110deg,
    transparent 32%,
    rgba(255, 255, 255, 0.22) 48%,
    rgba(255, 230, 160, 0.28) 52%,
    transparent 68%
  );
  transform: translateX(-130%) skewX(-16deg);
  animation: buy-rub-shimmer 3.8s ease-in-out infinite;
  pointer-events: none;
}

.btn--buy-rub:hover {
  filter: brightness(1.06);
  color: #fff;
}

@keyframes buy-rub-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 28px rgba(255, 136, 0, 0.35);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 10px 34px rgba(255, 136, 0, 0.42);
  }
}

@keyframes buy-rub-shimmer {
  0%, 45% { transform: translateX(-130%) skewX(-16deg); }
  70%, 100% { transform: translateX(130%) skewX(-16deg); }
}

@media (prefers-reduced-motion: reduce) {
  .btn--buy-rub,
  .btn--buy-rub::before {
    animation: none;
  }
}

.hero__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 56px;
  z-index: 5;
  text-align: center;
}

.hero__note {
  font-size: clamp(15px, 1.16vw, 22.4px);
  line-height: 1.2;
  color: var(--text-muted);
}

.hero__scroll--static {
  position: static;
  display: inline-block;
  margin-top: 34px;
  transform: none;
  animation-name: bob-static;
}

@keyframes bob-static {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ============================================================
   Секция «Начинай игру» (index)
   ============================================================ */

.play {
  position: relative;
  background: var(--bg-darker);
  overflow: hidden;
}

.play__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.06;
}

.play__circle {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  background: var(--accent-grad);
  pointer-events: none;
}

.play__circle--sm {
  width: 42px;
  height: 42px;
  top: 150px;
  left: 48.4%;
}

.play__circle--lg {
  width: 72px;
  height: 72px;
  top: 34px;
  left: 72.7%;
}

.play__inner {
  position: relative;
  z-index: 2;
  padding-top: 100px;
}

.play__grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.play__info {
  position: relative;
  z-index: 3;
}

.play__title {
  font-size: clamp(28px, 2.4vw, 46px);
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
}

.play__title .line {
  display: block;
  font-weight: 300;
}

.play__title b {
  font-weight: 800;
}

.play__title .line:first-child b {
  font-weight: 900;
}

.play__desc {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-grey);
}

.play__buttons {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 360px;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 68px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn-download:hover {
  transform: scale(1.04);
}

.btn-download--primary {
  background: var(--accent-grad);
}

.btn-download--primary:hover {
  box-shadow: 0 8px 28px rgba(255, 136, 0, 0.3);
  filter: brightness(1.06);
}

.btn-download--ghost {
  border: 1.85px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.01);
}

.btn-download--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

.btn-download__icon {
  flex-shrink: 0;
}

.btn-download__icon--grey {
  color: #767676;
}

.btn-download__badge {
  margin-left: 5px;
  padding: 8px 18px;
  border-radius: 3.7px;
  background: rgba(255, 0, 0, 0.13);
  font-size: 10.9px;
  font-weight: 700;
  color: #ff0000;
}

/* ---------- Скриншот игры ---------- */

.play__media {
  flex-shrink: 0;
  width: 560px;
  max-width: 100%;
}

.play__screenshot {
  position: relative;
}

.play__screenshot::before {
  content: "";
  position: absolute;
  left: -85px;
  top: 50%;
  transform: translateY(-50%);
  width: 501px;
  height: 66%;
  border-radius: 4.6px;
  background: var(--accent-grad);
}

.play__screenshot img {
  position: relative;
  width: 100%;
  border-radius: 4px;
}

/* ---------- Социальные сети ---------- */

.socials {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 96px;
  padding-bottom: 150px;
}

.socials__title {
  font-size: clamp(26px, 2.2vw, 40px);
  text-transform: uppercase;
  line-height: 1.16;
  font-weight: 600;
  color: #fff;
}

.socials__title b {
  font-weight: 800;
}

.socials__list {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 17px;
  background: linear-gradient(115deg, rgba(25, 25, 25, 0.18), rgba(51, 51, 51, 0.18));
}

.socials__item {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: #fff;
  border: none;
  outline: none;
  box-shadow: none;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.socials__item svg {
  width: 46px;
  height: 46px;
  display: block;
}

.socials__item:hover {
  transform: translateY(-4px) scale(1.03);
  filter: brightness(1.06);
}

.socials__item--zen {
  background: #fff;
  color: #2c3036;
}

.socials__item--discord {
  background: #5865f2;
}

.socials__item--vk {
  background: #0077ff;
}

.socials__item--telegram {
  background: #27a6e5;
}

/* ============================================================
   Футер
   ============================================================ */

.footer {
  position: relative;
  z-index: 2;
  background: linear-gradient(0deg, #131313 0%, rgba(20, 20, 20, 0) 100%);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  min-height: 174px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 17px;
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  color: #c7c7c7;
}

.footer__brand img {
  width: 48px;
  height: 48px;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 62px;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 15px;
  font-weight: 500;
  color: #c7c7c7;
  transition: color 0.25s ease;
}

.footer__links a:hover {
  color: #fff;
}

/* ============================================================
   Страница магазина
   ============================================================ */

.shop {
  position: relative;
  background: #131313;
  overflow: hidden;
}

.shop__inner {
  position: relative;
  z-index: 2;
  padding-top: 86px;
}

.shop__head {
  text-align: center;
}

.section-title {
  font-size: clamp(26px, 2.4vw, 44px);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}

.section-title b {
  font-weight: 800;
}

.section-title--gradient {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-subtitle {
  margin-top: 22px;
  font-size: clamp(15px, 1.16vw, 22.4px);
  line-height: 1.2;
  color: var(--text-muted);
}

/* ---------- Донат-наборы ---------- */

.packs {
  display: flex;
  justify-content: center;
  gap: 70px;
  flex-wrap: wrap;
  margin-top: 82px;
}

.pack {
  position: relative;
  width: 255px;
  text-align: center;
}

.pack__info {
  position: absolute;
  top: -20px;
  right: -20px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border-radius: 4.4px;
  background: #494949;
  transition: background-color 0.25s ease;
}

.pack__info:hover {
  background: #5a5a5a;
}

.pack__card {
  position: relative;
  height: 323px;
  border-radius: 8.7px;
  background: #2f2f2f;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.pack:hover .pack__card {
  transform: translateY(-4px);
}

.pack__num {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 110px;
  font-weight: 700;
  line-height: 1.3;
  background: linear-gradient(180deg, rgba(177, 177, 177, 0.26), rgba(153, 153, 153, 0));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

.pack__num--md {
  font-size: 92px;
  line-height: 1.55;
}

.pack__name {
  position: absolute;
  top: 17px;
  left: 0;
  right: 0;
  z-index: 2;
  font-size: 25.6px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
}

/* Позиции денег взяты из геометрии Figma (карточка 255x323) */
.pack__img {
  position: absolute;
  left: 0;
  bottom: -5px;
  z-index: 1;
  width: 255px;
  max-width: none;
  pointer-events: none;
}

.pack__img--wide {
  left: -173px;
  bottom: auto;
  top: -71px;
  width: 600px;
}

.pack__img--baron {
  left: -80px;
  bottom: auto;
  top: 195px;
  width: 452px;
}

.pack__buy {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-top: 26px;
  font-size: 18.8px;
  font-weight: 700;
  color: #3bc734;
  transition: filter 0.25s ease;
}

.pack__buy:hover {
  filter: brightness(1.25);
}

/* ---------- Автомобили ---------- */

.shop__head + .shop__head,
.packs + .shop__head {
  margin-top: 118px;
}

.cars {
  display: flex;
  justify-content: center;
  gap: 82px;
  flex-wrap: wrap;
  margin-top: 128px;
  padding-bottom: 190px;
}

.car {
  position: relative;
  width: 396px;
  border-radius: 32px;
  background: #2f2f2f;
  transition: transform 0.25s ease;
}

.car:hover {
  transform: translateY(-5px);
}

.car__ribbon {
  position: absolute;
  top: -11px;
  left: -35px;
  z-index: 3;
  padding: 7px 14px;
  background: #ff2f2f;
  font-family: "Open Sans Condensed", "Open Sans", sans-serif;
  font-size: 18.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

.car__ribbon::before,
.car__ribbon::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 9px;
  height: 27px;
  background: #ff2f2f;
  z-index: -1;
}

.car__ribbon::before {
  left: -5px;
  transform: skewY(-24deg);
}

.car__ribbon::after {
  right: -5px;
  transform: skewY(24deg);
}

.car__img {
  height: 284px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 32px 32px 0 0;
  overflow: hidden;
}

.car__img img {
  width: 350px;
  transition: transform 0.3s ease;
}

.car:hover .car__img img {
  transform: scale(1.04);
}

.car__panel {
  min-height: 160px;
  height: auto;
  padding: 18px 22px 22px;
  background: #262626;
  border-radius: 0 0 32px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-sizing: border-box;
}

.car__name {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-size: clamp(17px, 1.55vw, 24px);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.car__buy {
  width: 100%;
  max-width: 329px;
  height: 55px;
  margin-top: 0;
  border-radius: 12.3px;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 1500px) {
  .header {
    padding-top: 40px;
  }

  .logo__icon {
    width: 44px;
    height: 44px;
  }

  .logo__text {
    font-size: 22px;
  }

  .nav,
  .nav__links {
    gap: 28px;
  }

  .nav__link {
    font-size: 14px;
  }

  .play__media {
    width: 480px;
  }

  .play__screenshot::before {
    left: -48px;
    width: 360px;
  }

  .socials {
    padding-bottom: 120px;
  }

  .cars {
    gap: 40px;
  }
}

@media (max-width: 1200px) {
  .container {
    padding: 0 36px;
  }

  .play__grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .play__info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .play__media {
    width: 620px;
  }

  .play__screenshot::before {
    display: none;
  }

  .socials {
    justify-content: center;
    text-align: center;
    margin-top: 90px;
  }

  .packs {
    gap: 48px;
  }
}

@media (max-width: 992px) {
  .burger {
    display: flex;
    position: relative;
    z-index: 40;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 35;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 28px 24px 48px;
    background: rgba(10, 10, 10, 0.68);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .nav::before {
    display: none;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__mobile-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 48px;
    padding-right: 48px;
  }

  .nav__links {
    position: relative;
    z-index: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex: 1;
  }

  .nav__link {
    position: relative;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
  }

  .nav__link.is-active {
    color: #fff;
    font-weight: 700;
  }

  .nav__link.is-active::after {
    display: none;
  }

  .nav .online-badge {
    position: relative;
    z-index: 1;
    align-self: center;
    margin-top: auto;
    font-weight: 500;
  }

  .nav .online-badge b {
    font-weight: 500;
  }

  .nav .btn--cabinet {
    position: relative;
    z-index: 1;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    height: 54px;
    margin-top: auto;
    font-size: 15px;
  }

  .hero__actions {
    gap: 16px;
  }

  .btn--hero {
    min-width: 180px;
    height: 52px;
    font-size: 14px;
  }

  .hero__scroll {
    bottom: 48px;
  }

  .play__inner {
    padding-top: 72px;
  }

  .play__circle--sm {
    width: 22px;
    height: 22px;
    top: auto;
    bottom: 18%;
    left: 12%;
    opacity: 0.55;
  }

  .play__circle--lg {
    width: 34px;
    height: 34px;
    top: auto;
    bottom: 8%;
    left: auto;
    right: 10%;
    opacity: 0.45;
  }

  .socials__item {
    width: 72px;
    height: 72px;
  }

  .socials__list {
    gap: 16px;
  }

  .footer__inner {
    justify-content: center;
    text-align: center;
  }

  .footer__links {
    gap: 28px;
    justify-content: center;
  }

  .btn--buy-rub {
    height: 60px;
    min-width: 210px;
    margin-top: 24px;
    font-size: 15px;
  }

  .cars {
    margin-top: 72px;
    padding-bottom: 110px;
  }

  .packs + .shop__head {
    margin-top: 72px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .header {
    padding-top: 24px;
  }

  .logo__icon {
    width: 42px;
    height: 42px;
  }

  .logo__text {
    font-size: 20px;
  }

  .hero__content {
    padding-top: 120px;
  }

  .hero__subtitle {
    margin-top: 18px;
  }

  .hero__actions {
    margin-top: 40px;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .btn--hero {
    width: 100%;
    max-width: 320px;
  }

  .hero__scroll img {
    width: 38px;
    height: 38px;
  }

  .play__media {
    width: 100%;
  }

  .play__buttons {
    max-width: 100%;
    width: 100%;
  }

  .btn-download {
    height: 60px;
    font-size: 14px;
  }

  .play__desc {
    font-size: 15px;
  }

  .play__info {
    padding-top: 36px;
  }

  .play__title {
    font-size: 28px;
  }

  .play__circle--sm {
    width: 18px;
    height: 18px;
    top: auto;
    bottom: 22%;
    left: 8%;
    opacity: 0.5;
  }

  .play__circle--lg {
    width: 28px;
    height: 28px;
    top: auto;
    bottom: 10%;
    left: auto;
    right: 8%;
    opacity: 0.4;
  }

  .socials {
    margin-top: 64px;
    padding-bottom: 110px;
  }

  .socials__item {
    width: 64px;
    height: 64px;
  }

  .socials__list {
    padding: 14px 16px;
    gap: 14px;
  }

  .footer__links {
    flex-direction: column;
    gap: 12px;
  }

  .footer__links a {
    font-size: 15px;
  }

  .shop__inner {
    padding-top: 64px;
  }

  .packs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
    margin-top: 40px;
    justify-content: stretch;
  }

  .pack {
    width: auto;
    min-width: 0;
  }

  .pack__info {
    top: -8px;
    right: -2px;
    width: 22px;
    height: 22px;
    border-radius: 3px;
  }

  .pack__info img {
    width: 12px;
    height: 12px;
  }

  .pack__card {
    height: auto;
    aspect-ratio: 255 / 323;
    border-radius: 6px;
  }

  .pack__num {
    top: 6px;
    font-size: clamp(28px, 11vw, 42px);
  }

  .pack__num--md {
    font-size: clamp(24px, 9.5vw, 36px);
    line-height: 1.35;
  }

  .pack__name {
    top: 8px;
    font-size: clamp(9px, 2.8vw, 11px);
    line-height: 1.05;
    padding: 0 4px;
  }

  .pack__img {
    width: 100%;
    left: 0;
    bottom: -2px;
  }

  .pack__buy {
    margin-top: 10px;
    font-size: clamp(10px, 2.9vw, 12px);
    line-height: 1.2;
  }

  .cars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 8px;
    margin-top: 48px;
    padding-bottom: 80px;
    justify-content: stretch;
  }

  .car {
    width: auto;
    max-width: none;
    min-width: 0;
    border-radius: 10px;
  }

  .car__ribbon {
    top: -6px;
    left: -4px;
    padding: 3px 6px;
    font-size: 8px;
  }

  .car__ribbon::before,
  .car__ribbon::after {
    display: none;
  }

  .car__img {
    height: auto;
    aspect-ratio: 396 / 220;
    border-radius: 10px 10px 0 0;
  }

  .car__img img {
    width: 88%;
    max-width: 100%;
  }

  .car__panel {
    height: auto;
    min-height: 0;
    padding: 8px 6px 10px;
    border-radius: 0 0 10px 10px;
    gap: 8px;
  }

  .car__name {
    font-size: clamp(9px, 2.6vw, 12px);
    white-space: normal;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
  }

  .car__buy {
    width: 100%;
    height: 28px;
    margin-top: 0;
    border-radius: 6px;
    font-size: clamp(7px, 2.2vw, 9px);
    padding: 0 4px;
  }

  .packs + .shop__head {
    margin-top: 72px;
  }

  .btn--buy-rub {
    margin-top: 22px;
  }

  .hero__bottom {
    bottom: 32px;
    padding: 0 20px;
  }
}


.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 142px;
  padding: 10px 16px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

.online-badge b,
#online-count {
  display: inline-block;
  min-width: 4ch;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  text-align: left;
}

.online-badge__dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #3bc734;
  box-shadow: 0 0 0 0 rgba(59, 199, 52, 0.5);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(59, 199, 52, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(59, 199, 52, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 199, 52, 0); }
}

/* Фиксированный онлайн — справа снизу на всех страницах */
.online-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.online-float__dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #3bc734;
  box-shadow: 0 0 0 0 rgba(59, 199, 52, 0.5);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.online-float__text b,
.online-float #online-count {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  min-width: 3ch;
  display: inline-block;
}

@media (max-width: 560px) {
  .online-float {
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    font-size: 12px;
  }
}

.modal[hidden] { display: none !important; }
.modal {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); }
.modal__card {
  position: relative; z-index: 2; width: 100%; max-width: 440px;
  padding: 32px 28px 28px; border-radius: 16px; background: #262626;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.modal__close { position: absolute; top: 10px; right: 14px; font-size: 28px; line-height: 1; color: #999; }
.modal__close:hover { color: #fff; }
.modal__title { margin-bottom: 22px; font-size: 22px; font-weight: 800; text-transform: uppercase; }
.modal__field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; font-size: 13px; font-weight: 600; color: #aaa; }
.modal__field input {
  height: 48px; padding: 0 14px; border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; background: #1b1b1b; color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 600; outline: none;
}
.modal__field input:focus { border-color: var(--accent-mid); }
.modal__error { min-height: 20px; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: #ff4d4d; }
.modal__submit { width: 100%; height: 54px; border-radius: 12px; font-size: 15px; font-weight: 800; text-transform: uppercase; }
.modal__submit:disabled { opacity: .6; cursor: wait; }
.modal__desc { font-size: 15px; line-height: 1.55; color: #cfcfcf; }
.pack-desc-line { margin-bottom: 6px; }
.pack-sale-note { color: var(--accent-mid); font-size: 12px; }

/* ---------- Pay modal — как на старом donate.php ---------- */

.pay-modal[hidden] { display: none !important; }

.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pay-modal__card {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 40px 36px 36px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  color: #1e1d1d;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

.pay-modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f8f8f8;
  color: #888;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pay-modal__close:hover {
  background: #ececec;
  color: #444;
  transform: scale(1.05);
}

.pay-modal__logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(208deg, rgba(252, 204, 1, 0.15), rgba(255, 53, 0, 0.15));
}

.pay-modal__logo img {
  width: 60%;
  height: auto;
  display: block;
  object-fit: contain;
}

.pay-modal__title {
  margin: 0 0 1.6rem;
  font-size: 1.9rem;
  font-weight: 700;
  color: #1e1d1d;
  letter-spacing: 0.01em;
}

.pay-modal__input {
  width: 100%;
  display: block;
  box-sizing: border-box;
  margin: 0 0 12px;
  padding: 1rem;
  border: 0.0625rem solid transparent;
  border-radius: 0.25rem;
  background: #f8f8f8;
  color: #1e1d1d;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.1875rem;
  outline: none;
  text-align: left;
  appearance: none;
  -moz-appearance: textfield;
}

.pay-modal__input::-webkit-outer-spin-button,
.pay-modal__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pay-modal__input::placeholder {
  color: #a0a0a0;
  font-weight: 400;
}

.pay-modal__input:focus {
  border-color: rgba(249, 105, 24, 0.35);
  background: #f5f5f5;
}

.pay-modal__purchase {
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 12px;
  background: #fff9e6;
  border: 1px solid rgba(249, 105, 24, 0.18);
  font-weight: 600;
  color: #f96918;
  text-align: center;
}

.pay-modal__purchase[hidden] { display: none !important; }

.pay-modal__error {
  min-height: 18px;
  margin: 4px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e74c3c;
  text-align: center;
}

.pay-modal__submit {
  width: 100%;
  height: 60px;
  margin: 16px 0 0;
  padding: 0 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(257.5deg, #f96918 -7.46%, #ffb800 74.36%);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: matrix(1, -0.01, -0.08, 1, 0, 0);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.pay-modal__submit:hover {
  filter: brightness(1.03);
  transform: matrix(1, -0.01, -0.08, 1, 0, 0) translateY(-3px);
}

.pay-modal__submit:disabled {
  opacity: 0.65;
  cursor: wait;
  filter: none;
  transform: matrix(1, -0.01, -0.08, 1, 0, 0);
}

.pay-modal__notice {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #8a8a8a;
  text-align: left;
}

.pay-modal__shield {
  flex-shrink: 0;
  margin-top: 1px;
}

@media (max-width: 520px) {
  .pay-modal__card {
    width: 94%;
    max-width: 520px;
    padding: 32px 20px 28px;
  }

  .pay-modal__title {
    font-size: 1.45rem;
    margin-bottom: 1.25rem;
  }

  .pay-modal__close {
    top: 1rem;
    right: 1rem;
  }
}

/* body.menu-open — прячем декоративные круги, чтобы не светили сквозь меню */
body.menu-open .play__circle,
body.menu-open .play__screenshot::before {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}

/* ============================================================
   Welcome popup (магазин)
   ============================================================ */

.welcome-offer {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.welcome-offer.is-open {
  display: flex;
}

.welcome-card {
  position: relative;
  width: 520px;
  max-width: 92%;
  padding: 40px 36px 32px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  color: #1e1d1d;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: popup-in 0.28s ease;
}

@keyframes popup-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.welcome-close {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 24px;
  color: #333;
  line-height: 1;
}

.welcome-card h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  color: #1e1d1d;
}

.welcome-card p {
  margin: 18px 0 30px;
  font-size: 15px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.65;
  text-transform: uppercase;
  color: #777;
}

.welcome-card p b {
  font-weight: 800;
  color: #2a2a2a;
}

.welcome-buttons {
  display: flex;
  gap: 14px;
}

.welcome-buttons button {
  flex: 1;
  height: 54px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  white-space: nowrap;
  transform: skew(-8deg);
  border-radius: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.welcome-buttons button span {
  display: block;
  transform: skew(8deg);
}

.btn-orange {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 8px 20px var(--accent-glow);
}

.btn-orange:hover {
  transform: skew(-8deg) translateY(-2px);
}

.btn-gray {
  background: linear-gradient(135deg, #e8e8e8, #b8b8b8);
  color: #333;
}

.btn-gray:hover {
  transform: skew(-8deg) translateY(-2px);
}

@media (max-width: 640px) {
  .welcome-buttons {
    flex-direction: column;
  }
}

/* ============================================================
   404 — Open Sans Condensed Bold Italic (Figma 861:62)
   без заливки, острая обводка градиентом white → #404040
   ============================================================ */

.page-404 .hero__content {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.page-404 .hero-404__actions,
.page-404 .hero-404__actions a {
  user-select: auto;
  -webkit-user-select: auto;
  -moz-user-select: auto;
}

.hero-404__svg {
  width: min(92vw, 760px);
  height: auto;
  display: block;
  margin: 0 auto;
  overflow: visible;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  pointer-events: none;
}

.hero-404__svg text {
  paint-order: stroke;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.hero-404__hint {
  margin-top: 10px;
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 500;
  color: #9a9a9a;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.hero-404__actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   Видео-модалка «как скачать»
   ============================================================ */

.video-modal[hidden] {
  display: none !important;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.video-modal__close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(20, 20, 20, 0.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.video-modal__close:hover {
  background: rgba(40, 40, 40, 0.85);
  border-color: #fff;
}

.video-modal__frame {
  position: relative;
  width: min(960px, 92vw);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.video-modal__dialog .video-modal__frame {
  width: 100%;
}

.video-modal__frame.is-dimmed {
  opacity: 0.45;
}

.video-modal__fallback {
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.video-modal__fallback a {
  color: #2AABEE;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.video-modal__fallback[hidden] {
  display: none !important;
}

/* Telegram channel buttons (how-to / modal fallback) */
.tg-channels {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.tg-channel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: min(420px, 92vw);
  padding: 14px 28px 14px 16px;
  border-radius: 14px;
  background: #2AABEE;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(42, 171, 238, 0.28);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.tg-channel-btn:hover {
  background: #229ED9;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(42, 171, 238, 0.38);
}

.tg-channel-btn__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #54bcf2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
}

.tg-channel-btn__text {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-style: italic;
  font-size: clamp(14px, 2.4vw, 18px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}

/* How-to page */
body.page-howto {
  background: #131313;
  color: #fff;
  min-height: 100vh;
}

.howto-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(42, 171, 238, 0.12), transparent 55%),
    #131313;
}

.howto-topbar {
  position: relative;
  z-index: 20;
  min-height: 140px;
}

.howto-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 20px 64px;
}

.howto-inner {
  width: min(920px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.howto-title {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 400;
  line-height: 1.05;
  text-transform: lowercase;
}

.howto-title b {
  font-weight: 800;
}

.howto-desc {
  margin: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.72);
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.howto-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  transition: opacity 0.25s ease;
}

.howto-player.is-dimmed {
  opacity: 0.4;
}

.howto-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.howto-fallback {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

.howto-fallback[hidden] {
  display: none !important;
}

.howto-fallback__text {
  margin: 0;
}

@media (max-width: 640px) {
  .tg-channel-btn {
    min-width: 100%;
    padding: 12px 18px 12px 12px;
    gap: 12px;
    border-radius: 12px;
  }

  .tg-channel-btn__icon {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .tg-channel-btn__text {
    white-space: normal;
    text-align: left;
  }

  .howto-topbar {
    min-height: 100px;
  }
}

/* ============================================================
   Terms — соглашение с новым header/footer
   ============================================================ */

body.page-terms {
  background: #131313;
  color: #fff;
  min-height: 100vh;
}

.terms-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #131313;
}

.terms-topbar {
  position: relative;
  z-index: 20;
  min-height: 140px;
}

.page-terms .footer {
  margin-top: auto;
  padding: 40px 0 36px;
}

.terms-main {
  flex: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 22px 48px;
}

.terms-card {
  background: #fff;
  color: #282828;
  border-radius: 16px;
  padding: 48px 50px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}

.terms-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #282828;
}

.terms-subtitle {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.terms-card h2 {
  margin: 28px 0 14px;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #282828;
}

.terms-card p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  font-weight: 400;
}

.terms-card strong {
  color: #282828;
  font-weight: 600;
}

.terms-card ul,
.terms-card ol {
  margin: 0 0 18px;
  padding-left: 20px;
}

.terms-card li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

.terms-card hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 28px 0;
}

.terms-requisites {
  margin-top: 36px;
  padding: 24px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
}

.terms-requisites h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

.terms-requisites p {
  color: #282828;
  margin-bottom: 10px;
}

.terms-requisites strong {
  min-width: 120px;
  display: inline-block;
}

.terms-copy {
  margin-top: 36px !important;
  padding-top: 22px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  font-size: 0.85rem !important;
  color: #888 !important;
}

@media (max-width: 768px) {
    .terms-main {
    padding: 16px 12px 36px;
  }
  .terms-card {
    padding: 26px 18px;
    border-radius: 14px;
  }
  .terms-card h1 {
    font-size: 22px;
  }
  .terms-requisites strong {
    display: block;
    min-width: 0;
    margin-bottom: 4px;
  }
}

/* ============================================================
   Forbes — 1:1 radmir.online/forbes (тёмная тема, без серверов)
   ============================================================ */

html:has(body.page-forbes),
body.page-forbes {
  background: #131313 !important;
  color: #fff;
  min-height: 100vh;
}

.forbes-wrap {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #131313;
}

.forbes-decor {
  position: absolute;
  top: 4.5rem;
  left: 50%;
  z-index: 0;
  width: min(94.375rem, 118vw);
  aspect-ratio: 1510 / 775;
  transform: translateX(-50%);
  background: url("/assets/img/forbes/forbes-decor.svg") center / contain no-repeat;
  pointer-events: none;
  opacity: 0.18;
}

.forbes-topbar {
  position: relative;
  z-index: 20;
  min-height: 140px;
}

.page-forbes .footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 40px 0 36px;
}

.forbes {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
}

.forbes__container {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding-top: 1.5rem;
  padding-bottom: 64px;
}

.forbes__content {
  margin-top: 2.5rem;
}

.forbes__top {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding-bottom: 12.75rem;
}

.forbes__top::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 302px;
  background: url("/assets/img/forbes/divider.svg") bottom / contain no-repeat;
  pointer-events: none;
}

.forbes__top .top-item:first-child,
.forbes__top .top-item:last-child {
  margin-top: 10.6875rem;
}

.top-item {
  max-width: 18.4375rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

.top-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12%;
  z-index: 0;
  width: 68%;
  height: 38%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(210, 210, 210, 0.2) 0%,
    rgba(140, 140, 140, 0.08) 40%,
    transparent 72%
  );
  filter: blur(32px);
  pointer-events: none;
  /* не даём прямоугольному боксу свечения обрезаться ровной полосой над ником */
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 45%, #000 25%, transparent 75%);
}

.top-item__position {
  font-size: 2.625rem;
  font-weight: 300;
  text-align: center;
  line-height: 1;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
  z-index: 2;
}

.top-item__figure {
  position: relative;
  z-index: 1;
  padding: 2rem 1.125rem 4.5rem;
  /* visible: иначе overflow режет рамку/свечение ровной тёмной полосой над ником */
  overflow: visible;
  background: transparent;
}

.top-item__figure::before,
.top-item__figure::after {
  content: "";
  position: absolute;
  left: 0;
  pointer-events: none;
}

.top-item__figure::before {
  top: 0.55rem;
  left: 0.625rem;
  width: 17.1875rem;
  height: 2rem;
  background: 50% / contain no-repeat;
  z-index: 4;
}

.top-item__figure::after {
  top: 4.35rem;
  width: 18.4375rem;
  height: 24.5rem;
  background: 50% / contain no-repeat;
  z-index: 3;
}

.top-item__rect {
  width: 16.1875rem;
  /* скин 506×800 — высокий бокс, чтобы не резать тело на бёдрах */
  height: 22rem;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, rgba(0, 0, 0, 0.55) 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, rgba(0, 0, 0, 0.55) 88%, transparent 100%);
}

.top-item__rect::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14%;
  width: 78%;
  height: 52%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(175, 175, 175, 0.22);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

.top-item__skin {
  display: block;
  margin-top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  position: relative;
  z-index: 1;
  pointer-events: none;
  filter: none;
}

.top-item__nickname {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.1em;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
  margin-top: 0.35rem;
  color: #fff;
  line-height: 1.15;
  position: relative;
  z-index: 2;
}

.top-item__nick-line {
  display: block;
  max-width: 100%;
  word-break: break-word;
}

.top-item__balance {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  text-align: center;
  margin-top: 0.55rem;
  font-size: 1.05rem;
}

.top-item--gold .top-item__position {
  background-image: var(--accent-grad);
}

.top-item--gold .top-item__figure {
  padding-top: 2.5rem;
}

.top-item--gold .top-item__figure::before {
  background-image: url("/assets/img/forbes/rail-gold.svg");
  top: 0.65rem;
  height: 2.15rem;
}

.top-item--gold .top-item__figure::after {
  background-image: url("/assets/img/forbes/frame-gold.svg");
  top: 4.65rem;
}

.top-item--gold .top-item__rect {
  background: linear-gradient(211.23deg, rgba(253, 163, 1, 0.16) -80%, rgba(253, 163, 1, 0) 55%);
}

.top-item--gold .top-item__rect::before {
  background: rgba(200, 180, 140, 0.28);
}

.top-item--silver .top-item__position {
  background-image: linear-gradient(208.78deg, #d4daef -1.13%, #9aa7d7 95.96%);
}

.top-item--silver .top-item__figure {
  padding-top: 1.85rem;
}

.top-item--silver .top-item__figure::before {
  background-image: url("/assets/img/forbes/rail-silver.svg");
}

.top-item--silver .top-item__figure::after {
  top: 4rem;
  background-image: url("/assets/img/forbes/frame-muted.svg");
}

.top-item--silver .top-item__rect {
  background: linear-gradient(211.23deg, rgba(212, 218, 239, 0.12) -80%, rgba(212, 218, 239, 0) 55%);
}

.top-item--silver .top-item__rect::before {
  background: rgba(180, 185, 205, 0.24);
}

.top-item--bronze .top-item__position {
  background-image: linear-gradient(208.78deg, #b17040 -1.13%, #8a420e 95.96%);
}

.top-item--bronze .top-item__figure {
  padding-top: 1.85rem;
}

.top-item--bronze .top-item__figure::before {
  background-image: url("/assets/img/forbes/rail-bronze.svg");
}

.top-item--bronze .top-item__figure::after {
  top: 4rem;
  background-image: url("/assets/img/forbes/frame-muted.svg");
}

.top-item--bronze .top-item__rect {
  background: linear-gradient(211.23deg, rgba(151, 107, 27, 0.14) -80%, rgba(151, 107, 27, 0) 55%);
}

.top-item--bronze .top-item__rect::before {
  background: rgba(175, 145, 110, 0.24);
}

.forbes__list {
  display: grid;
  grid-row-gap: 16px;
  margin-top: 64px;
}

.forbes-item {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1.2fr) 6.25rem 1fr;
  grid-column-gap: 1rem;
  align-items: center;
}

.forbes-item__position {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.0625rem solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  font-weight: 300;
  color: #fff;
}

.forbes-item__username {
  font-weight: 700;
  color: #fff;
  word-break: break-word;
}

.forbes-item__server {
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
}

.forbes-item__balance {
  text-align: right;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
}

.forbes-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 40px;
}

@media (max-width: 64rem) {
  .forbes__top {
    padding-bottom: 105px;
  }
  .top-item {
    max-width: 190px;
  }
  .top-item__figure {
    padding: 18px 12px 64px;
  }
  .top-item__figure::before {
    top: 6px;
    left: 6.4px;
    width: 177px;
    height: 22px;
  }
  .top-item__figure::after {
    top: 52px;
    width: 190px;
    height: 230px;
  }
  .top-item--gold .top-item__figure {
    padding-top: 22px;
  }
  .top-item--gold .top-item__figure::before {
    top: 6px;
    height: 24px;
  }
  .top-item--gold .top-item__figure::after {
    top: 56px;
  }
  .top-item__rect {
    width: 166px;
    height: 226px;
  }
  .top-item__skin {
    width: 100%;
    height: 100%;
    margin-top: 0;
  }
}

@media (max-width: 48rem) {
  .top-item__position {
    font-size: 34px;
  }
  .forbes__content {
    margin-top: 32px;
  }
}

@media (max-width: 36rem) {
  .forbes__top {
    padding-bottom: 0;
  }
  .forbes__top::after {
    display: none;
  }
  .forbes__top .top-item:first-child,
  .forbes__top .top-item:last-child {
    margin-top: 50px;
  }
  .top-item {
    max-width: 110px;
  }
  .top-item__figure {
    padding: 12px 7px 36px;
  }
  .top-item__figure::before {
    top: 4px;
    left: 6.4px;
    width: 100px;
    height: 16px;
  }
  .top-item__figure::after {
    width: 110px;
    height: 168px;
    top: 28px;
  }
  .top-item__nickname {
    font-size: 16px;
    margin-top: 4px;
  }
  .top-item__balance {
    margin-top: 8px;
    font-size: 14px;
  }
  .top-item__rect {
    width: 96px;
    height: 152px;
  }
  .top-item__skin {
    width: 100%;
    height: 100%;
    margin-top: 0;
  }
  .top-item--silver .top-item__figure,
  .top-item--bronze .top-item__figure,
  .top-item--gold .top-item__figure {
    padding-top: 14px;
  }
  .top-item--gold .top-item__figure::before {
    top: 4px;
    height: 18px;
  }
  .top-item--gold .top-item__figure::after,
  .top-item--silver .top-item__figure::after,
  .top-item--bronze .top-item__figure::after {
    top: 30px;
  }
  .forbes-item {
    grid-template-columns: 30px minmax(0, 1fr) 64px 1fr;
    grid-column-gap: 10px;
  }
  .forbes-item__position {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .forbes-item__username {
    font-size: 14px;
    font-weight: 600;
  }
  .forbes-item__server {
    font-size: 11px;
  }
  .forbes-item__balance {
    font-size: 14px;
  }
}

/* ============================================================
   Login + TG 2FA
   ============================================================ */

.page-login {
  background: #131313;
  min-height: 100vh;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 136, 0, 0.12) 0%, transparent 55%),
    #131313;
}

.login-topbar {
  position: relative;
  z-index: 5;
  padding-top: 8px;
}

.page-login .header { position: relative; }

.login {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 64px;
}

.login__card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 32px;
  border-radius: 20px;
  background: #fff;
  color: #1e1d1d;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.login__logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(208deg, rgba(252, 204, 1, 0.18), rgba(255, 53, 0, 0.16));
}

.login__logo img {
  width: 58%;
  height: auto;
  display: block;
}

.login__title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 800;
}

.login__subtitle {
  margin: 0 0 18px;
  font-size: 14px;
  color: #8a8a8a;
  font-weight: 500;
  line-height: 1.45;
}

.login__subtitle a,
.login__hint a,
.login__bot-link {
  color: #f96918;
  font-weight: 700;
}

.login__account {
  margin: 0 0 16px;
  font-size: 13px;
  color: #777;
}

.login__error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff1f0;
  color: #d93025;
  font-size: 13px;
  font-weight: 600;
}

.login__field {
  display: block;
  text-align: left;
  margin-bottom: 12px;
}

.login__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.login__input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f5f5f5;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #1e1d1d;
  outline: none;
}

.login__field--code {
  text-align: center;
}

.login__field--code .login__label {
  text-align: center;
}

.login__input--code {
  width: 11.5rem;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: block;
  text-align: center;
  letter-spacing: 0.28em;
  font-size: 22px;
  font-weight: 800;
  padding-left: 1.05rem;
  padding-right: 0.55rem;
  font-variant-numeric: tabular-nums;
}

.login__input:focus {
  border-color: rgba(249, 105, 24, 0.4);
  background: #fff;
}

.login__submit {
  width: 100%;
  height: 54px;
  margin-top: 8px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  font-style: italic;
}

.login__hint {
  margin: 14px 0 0;
  font-size: 12px;
  color: #9a9a9a;
  line-height: 1.4;
}

.login__back {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  color: #8a8a8a;
}

.login__back:hover { color: #f96918; }

.login__tg-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.login__resend,
.login__back-btn {
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #8a8a8a;
  cursor: pointer;
}

.login__resend:hover,
.login__back-btn:hover { color: #f96918; }

.page-login .footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  background: linear-gradient(0deg, #131313 0%, rgba(20, 20, 20, 0) 100%);
  color: #c7c7c7;
  border-top: none;
}

/* ============================================================
   Cabinet — тёмная тема #131313 как на остальных страницах
   ============================================================ */

html:has(body.page-cabinet),
body.page-cabinet {
  background: #131313 !important;
  color: #fff;
  min-height: 100vh;
}

.cabinet-wrap {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #131313;
}

.cabinet-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cabinet-orb {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: #ff9f00;
  will-change: transform, opacity, box-shadow;
  transform: translate3d(-9999px, -9999px, 0);
}

@keyframes cabinetBillFloat {
  0%, 100% { transform: translateY(0) rotate(var(--bill-rot, -12deg)); }
  50% { transform: translateY(-8px) rotate(calc(var(--bill-rot, -12deg) + 2deg)); }
}

@keyframes cabinetFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.cabinet-topbar {
  position: relative;
  z-index: 20;
  min-height: 140px;
  background: transparent;
}

.page-cabinet .header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.page-cabinet .footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  background: linear-gradient(0deg, #131313 0%, rgba(20, 20, 20, 0) 100%);
  color: #c7c7c7;
}

.cabinet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  padding: 12px 20px 72px;
  color: #fff;
  animation: cabinetFadeUp 0.55s ease both;
}

.cabinet__hello {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.cabinet__avatar-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.cabinet__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: #1f1f1f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.cabinet__avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 136, 0, 0.35);
  box-shadow: 0 0 18px rgba(255, 102, 0, 0.2);
  animation: cabinetGlowPulse 4.5s ease-in-out infinite;
}

.cabinet__hello-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.cabinet__name {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.cabinet__dots {
  width: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 22px auto 32px;
}

.cabinet__dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.cabinet__dots span:nth-child(5) {
  background: rgba(255, 136, 0, 0.85);
  box-shadow: 0 0 10px rgba(255, 102, 0, 0.45);
}

.cabinet-section { margin-bottom: 40px; }

.cabinet-section__title {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  position: relative;
  display: inline-block;
}

.cabinet-section__title::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, #f96918, transparent);
}

.cabinet-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 14px;
}

.cabinet-stat {
  position: relative;
  padding: 22px 18px;
  border-radius: 16px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.cabinet-stat--wide {
  background:
    radial-gradient(circle at 88% 18%, rgba(76, 175, 80, 0.18), transparent 42%),
    radial-gradient(circle at 72% 78%, rgba(76, 175, 80, 0.1), transparent 38%),
    #1a1a1a;
}

.cabinet-stat__money-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cabinet-stat__bill {
  position: absolute;
  width: 118px;
  height: auto;
  opacity: 0.42;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
  animation: cabinetBillFloat 5.5s ease-in-out infinite;
}

.cabinet-stat__bill--1 {
  --bill-rot: -18deg;
  right: -18px;
  top: -6px;
  width: 140px;
  animation-delay: 0s;
}

.cabinet-stat__bill--2 {
  --bill-rot: 14deg;
  right: 42px;
  bottom: -18px;
  width: 112px;
  opacity: 0.34;
  animation-delay: 0.8s;
}

.cabinet-stat__bill--3 {
  --bill-rot: -8deg;
  right: 96px;
  top: 28px;
  width: 96px;
  opacity: 0.28;
  animation-delay: 1.4s;
}

.cabinet-stat__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

.cabinet-stat__icon--level { color: #b39ddb; background: rgba(124, 77, 255, 0.18); }
.cabinet-stat__icon--time { color: #f48fb1; background: rgba(233, 30, 99, 0.16); }
.cabinet-stat__icon--money { color: #81c784; background: rgba(76, 175, 80, 0.16); }

.cabinet-stat__value {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.cabinet-stat__meta {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.cabinet-about {
  padding: 4px 22px;
  border-radius: 16px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cabinet-about__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cabinet-about__row:last-child { border-bottom: none; }

.cabinet-about__row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cabinet-about__cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cabinet-about__label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.cabinet-about__value {
  font-size: 14px;
  font-weight: 800;
  text-align: right;
  color: #fff;
}

.cabinet-finance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cabinet-finance__main,
.cabinet-finance__card {
  border-radius: 16px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cabinet-finance__main {
  position: relative;
  padding: 28px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  overflow: hidden;
}

.cabinet-finance__side {
  display: grid;
  gap: 14px;
}

.cabinet-finance__card { padding: 22px 20px; }

.cabinet-finance__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cabinet-finance__decor img {
  position: absolute;
  width: 130px;
  opacity: 0.28;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
  animation: cabinetBillFloat 6s ease-in-out infinite;
}

.cabinet-finance__decor img:first-child {
  --bill-rot: -16deg;
  right: -28px;
  top: 10px;
}

.cabinet-finance__decor img:last-child {
  --bill-rot: 12deg;
  left: -34px;
  bottom: 8px;
  width: 110px;
  opacity: 0.2;
  animation-delay: 1s;
}

.cabinet-finance__watermark {
  position: absolute;
  right: 18px;
  bottom: 6px;
  font-size: 7rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
}

.cabinet-finance__main--donate {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.06), transparent 40%),
    #1a1a1a;
}

.cabinet-finance__badge {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #fff;
  color: #131313;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.cabinet-finance__badge--rub {
  background: linear-gradient(145deg, #ff8a00, #f96918);
  color: #fff;
  box-shadow: 0 8px 24px rgba(249, 105, 24, 0.35);
}

.cabinet-finance__mini {
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.cabinet-finance__mini--cash { background: #43a047; }
.cabinet-finance__mini--bank { background: #f5a623; }

.cabinet-finance__amount {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.cabinet-finance__amount--sm { font-size: 1.45rem; }

.cabinet-finance__label {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.cabinet-finance__link {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.cabinet-finance__link:hover { color: #f96918; }

.cabinet-finance__sub {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.cabinet-settings {
  padding: 4px 22px;
  border-radius: 16px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cabinet-settings__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cabinet-settings__row:last-child { border-bottom: none; }

.cabinet-settings__label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.cabinet-settings__status {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.cabinet-settings__status.is-ok { color: #81c784; }
.cabinet-settings__status.is-warn { color: #f96918; }
.cabinet-settings__status.is-bad { color: #ef5350; }

.cabinet-settings__leave {
  font-size: 14px;
  font-weight: 700;
  color: #ef5350;
}

.cabinet-empty {
  margin: 0;
  padding: 20px;
  border-radius: 14px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

.cabinet-property { display: grid; gap: 14px; }

.cabinet-prop {
  padding: 18px 20px;
  border-radius: 16px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cabinet-prop__title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.cabinet-prop__title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.cabinet-prop__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cabinet-prop__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.cabinet-prop__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cabinet-prop__list li span {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.cabinet-prop__rent {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
}

.cabinet-prop__rent.is-ok { color: #81c784; }
.cabinet-prop__rent.is-late { color: #ef5350; }
.cabinet-prop__rent.is-unknown { color: rgba(255, 255, 255, 0.35); }

.cabinet-prop__list li b {
  font-weight: 800;
  white-space: nowrap;
  color: #fff;
}

@media (max-width: 800px) {
  .cabinet-stats,
  .cabinet-finance,
  .cabinet-about__row--split {
    grid-template-columns: 1fr;
  }

  .cabinet-stat__bill--3 {
    display: none;
  }
}

@media (max-width: 560px) {
  .login__card { padding: 28px 20px 24px; }
  .cabinet-about__row--split { gap: 12px; }
  .cabinet-about__cell { flex-direction: column; align-items: flex-start; }
  .cabinet-about__value { text-align: left; }
  .cabinet-stat__bill--2 { right: 8px; }
  .cabinet-finance__decor img:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cabinet-orbs {
    display: none;
  }

  .cabinet__avatar-ring,
  .cabinet-stat__bill,
  .cabinet-finance__decor img,
  .cabinet {
    animation: none !important;
  }
}
