:root {
  --fr-bg: #060b08;
  --fr-bg-elevated: #0b130f;
  --fr-panel: rgba(12, 20, 15, 0.9);
  --fr-panel-strong: rgba(16, 24, 19, 0.96);
  --fr-panel-soft: rgba(22, 31, 25, 0.8);
  --fr-border: rgba(88, 116, 97, 0.28);
  --fr-border-strong: rgba(58, 240, 70, 0.42);
  --fr-text: #eef6ef;
  --fr-text-muted: rgba(216, 229, 219, 0.72);
  --fr-accent: #3af046;
  --fr-accent-strong: #79ff83;
  --fr-accent-deep: #1f8e2d;
  --fr-danger: #d85252;
  --fr-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  --fr-radius-lg: 28px;
  --fr-radius-md: 20px;
  --fr-radius-sm: 14px;
  --fr-grid-width: min(1320px, calc(100vw - 48px));
}

.factoryrust-store,
.factoryrust-store body {
  color: var(--fr-text);
  background:
    radial-gradient(circle at top, rgba(58, 240, 70, 0.14), transparent 28%),
    radial-gradient(circle at 20% 20%, rgba(111, 255, 160, 0.06), transparent 22%),
    linear-gradient(180deg, #06110a 0%, #050705 100%);
}

.factoryrust-store body,
.factoryrust-store #app,
.factoryrust-store [class*="app"],
.factoryrust-store [class*="page"],
.factoryrust-store [class*="layout"] {
  color: var(--fr-text);
}

.factoryrust-store body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 80%);
  z-index: 0;
}

.factoryrust-store * {
  scrollbar-width: thin;
  scrollbar-color: var(--fr-accent) rgba(255, 255, 255, 0.08);
}

.factoryrust-store *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.factoryrust-store *::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--fr-accent), #1fb92e);
  border-radius: 999px;
}

.factoryrust-store *::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

/* Летающая панель: фиксирована сверху, появляется при прокрутке */
.factoryrust-store .factory-topbar,
.factoryrust-store #factoryrust-topbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  pointer-events: none;
}
.factoryrust-store .factory-topbar--visible,
.factoryrust-store #factoryrust-topbar.factory-topbar--visible {
  transform: translateY(0);
  pointer-events: auto;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 2px 12px rgba(58, 240, 70, 0.08);
}

/* Летающая плашка — по центру экрана, чуть шире остальных панелей */
.factoryrust-store header.factoryrust-header-fly,
.factoryrust-store [class*="navbar"].factoryrust-header-fly,
.factoryrust-store [class*="site-header"].factoryrust-header-fly {
  position: fixed !important;
  top: 12px !important;
  left: 0 !important;
  right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: min(1400px, calc(100vw - 24px)) !important;
  max-width: calc(100vw - 24px) !important;
  transform: translateY(calc(-100% - 24px));
  z-index: 9999 !important;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease;
  pointer-events: none;
  box-sizing: border-box;
  border-radius: var(--fr-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(10, 18, 12, 0.82), rgba(4, 10, 6, 0.78));
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transform-origin: 50% 0;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 20px !important;
}
.factoryrust-store header.factoryrust-header-fly > *,
.factoryrust-store [class*="navbar"].factoryrust-header-fly > *,
.factoryrust-store [class*="site-header"].factoryrust-header-fly > * {
  flex-shrink: 0;
}
/* При первом появлении отключаем transition, чтобы не было выезда «справа» */
.factoryrust-store header.factoryrust-header-fly-no-transition,
.factoryrust-store [class*="navbar"].factoryrust-header-fly-no-transition,
.factoryrust-store [class*="site-header"].factoryrust-header-fly-no-transition {
  transition: none !important;
}
.factoryrust-store header.factoryrust-header-fly.factoryrust-header-fly-visible,
.factoryrust-store [class*="navbar"].factoryrust-header-fly.factoryrust-header-fly-visible,
.factoryrust-store [class*="site-header"].factoryrust-header-fly.factoryrust-header-fly-visible {
  transform: translateY(0) !important;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease !important;
  pointer-events: auto;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 1px 0 0 rgba(255, 255, 255, 0.06) inset,
    0 2px 12px rgba(58, 240, 70, 0.06);
}

/* Логотип перед названием в летающей плашке */
.factoryrust-store .factoryrust-fly-logo {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
  flex-shrink: 0;
}
.factoryrust-store .factoryrust-fly-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.factoryrust-store .factoryrust-header-spacer {
  display: block;
  width: 100%;
  flex-shrink: 0;
}

.factoryrust-store .factory-topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: var(--fr-grid-width);
  max-width: 100%;
  margin: 0 auto;
  padding: 12px 24px;
  box-sizing: border-box;
}

.factoryrust-store .factory-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fr-text);
  flex-shrink: 0;
}

.factoryrust-store .factory-topbar__brand:hover {
  color: var(--fr-accent-strong);
}

.factoryrust-store .factory-topbar__logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.factoryrust-store .factory-topbar__logo--placeholder {
  background: linear-gradient(135deg, rgba(58, 240, 70, 0.25), rgba(31, 142, 45, 0.35));
  border: 1px solid var(--fr-border);
}

.factoryrust-store .factory-topbar__name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.factoryrust-store .factory-topbar__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  margin: 0 16px;
}

.factoryrust-store .factory-topbar__nav-link {
  padding: 8px 14px;
  border-radius: var(--fr-radius-sm);
  text-decoration: none;
  color: var(--fr-text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.factoryrust-store .factory-topbar__nav-link:hover {
  color: var(--fr-accent-strong);
  background: rgba(58, 240, 70, 0.08);
}

.factoryrust-store .factory-topbar__user-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.factoryrust-store .factory-topbar__login-slot {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.factoryrust-store .factory-topbar__balance {
  color: var(--fr-accent);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.factoryrust-store .factory-topbar__profile {
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: 0.95rem;
  text-decoration: none;
}

.factoryrust-store .factory-topbar__login-slot .factory-btn,
.factoryrust-store .factory-topbar__login {
  flex-shrink: 0;
  padding: 10px 20px;
  font-size: 0.95rem;
}

/* Правые кнопки виджета (user-slot): белый текст, обводка, при наведении — зелёная заливка */
.factoryrust-store .factory-topbar__user-slot .factory-btn,
.factoryrust-store .factory-topbar__user-slot .factory-topbar__login,
.factoryrust-store .factory-topbar__user-slot .factory-topbar__profile,
.factoryrust-store .factory-topbar__user-slot .factory-topbar__balance,
.factoryrust-store .factory-topbar__user-slot > a {
  color: #fff !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 0 0 1px rgba(58, 240, 70, 0.15) inset !important;
  text-decoration: none !important;
  padding: 8px 16px !important;
  border-radius: var(--fr-radius-sm) !important;
  font-weight: 700 !important;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease !important;
}
.factoryrust-store .factory-topbar__user-slot .factory-btn:hover,
.factoryrust-store .factory-topbar__user-slot .factory-topbar__login:hover,
.factoryrust-store .factory-topbar__user-slot .factory-topbar__profile:hover,
.factoryrust-store .factory-topbar__user-slot .factory-topbar__balance:hover,
.factoryrust-store .factory-topbar__user-slot > a:hover {
  background: linear-gradient(135deg, var(--fr-accent), #1ebd30) !important;
  border-color: rgba(58, 240, 70, 0.6) !important;
  box-shadow: 0 4px 20px rgba(58, 240, 70, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
  color: #041107 !important;
}

@media (max-width: 768px) {
  .factoryrust-store .factory-topbar__inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 16px;
  }

  .factoryrust-store .factory-topbar__name {
    font-size: 1rem;
  }

  .factoryrust-store .factory-topbar__nav {
    order: 3;
    width: 100%;
    margin: 0;
  }

  .factoryrust-store .factory-topbar__login {
    margin-left: auto;
  }
}

.factoryrust-store a {
  color: var(--fr-text);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.factoryrust-store a:hover {
  color: var(--fr-accent-strong);
}

.factoryrust-store img {
  max-width: 100%;
}

.factoryrust-store .factoryrust-shell {
  position: relative;
  z-index: 1;
}

.factoryrust-store .factoryrust-content {
  width: var(--fr-grid-width);
  margin: 0 auto 56px;
}

.factoryrust-store .factory-hero {
  position: relative;
  overflow: hidden;
  width: var(--fr-grid-width);
  margin: 28px auto 32px;
  padding: 42px;
  border: 1px solid var(--fr-border);
  border-radius: calc(var(--fr-radius-lg) + 6px);
  background:
    linear-gradient(135deg, rgba(9, 16, 12, 0.96), rgba(7, 10, 8, 0.92)),
    radial-gradient(circle at top right, rgba(58, 240, 70, 0.18), transparent 30%);
  box-shadow: var(--fr-shadow);
}

.factoryrust-store .factory-hero::before,
.factoryrust-store .factory-hero::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.factoryrust-store .factory-hero::before {
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 240, 70, 0.34), transparent 68%);
  filter: blur(8px);
}

.factoryrust-store .factory-hero::after {
  left: 42px;
  right: 42px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(58, 240, 70, 0.5), transparent);
}

.factoryrust-store .factory-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.factoryrust-store .factory-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(58, 240, 70, 0.2);
  border-radius: 999px;
  background: rgba(58, 240, 70, 0.08);
  color: var(--fr-accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.factoryrust-store .factory-hero__title {
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.factoryrust-store .factory-hero__title-accent {
  color: var(--fr-accent);
  text-shadow: 0 0 30px rgba(58, 240, 70, 0.22);
}

.factoryrust-store .factory-hero__text {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--fr-text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.factoryrust-store .factory-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.factoryrust-store .factory-hero__actions .factory-btn,
.factoryrust-store .factory-hero-panel__actions .factory-btn {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  z-index: 3;
  width: auto !important;
  flex: 0 0 auto !important;
  align-self: flex-start;
}

.factoryrust-store .factory-btn,
.factoryrust-store button,
.factoryrust-store [role="button"],
.factoryrust-store a[class*="btn"],
.factoryrust-store a[class*="button"],
.factoryrust-store [class*="btn"],
.factoryrust-store [class*="button"] {
  border-radius: 16px;
  transition:
    transform 0.18s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.factoryrust-store .factory-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.factoryrust-store .factory-btn:hover,
.factoryrust-store button:hover,
.factoryrust-store [role="button"]:hover,
.factoryrust-store a[class*="btn"]:hover,
.factoryrust-store a[class*="button"]:hover,
.factoryrust-store [class*="btn"]:hover,
.factoryrust-store [class*="button"]:hover {
  transform: translateY(-1px);
}

.factoryrust-store .factory-btn--primary,
.factoryrust-store button:not(.factory-btn--ghost),
.factoryrust-store a[class*="btn"]:not(.factory-btn--ghost),
.factoryrust-store a[class*="button"]:not(.factory-btn--ghost) {
  background: linear-gradient(135deg, var(--fr-accent), #1ebd30);
  color: #041107;
  box-shadow: 0 16px 34px rgba(58, 240, 70, 0.18);
}

.factoryrust-store .factory-btn--ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fr-text);
}

.factoryrust-store .factory-btn--steam {
  gap: 10px;
}

.factoryrust-store .factory-btn__steam-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.factoryrust-store .factory-btn__steam-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.factoryrust-store .factory-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.factoryrust-store .factory-hero__badge,
.factoryrust-store .factory-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fr-text-muted);
  font-size: 13px;
}

.factoryrust-store .factory-hero__side {
  display: grid;
  gap: 16px;
}

.factoryrust-store .factory-stat-card,
.factoryrust-store .factory-note,
.factoryrust-store .factory-benefits__item,
.factoryrust-store .factory-surface,
.factoryrust-store .factoryrust-panel,
.factoryrust-store .factoryrust-card,
.factoryrust-store .factory-highlight-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--fr-border);
  border-radius: var(--fr-radius-md);
  background: linear-gradient(180deg, rgba(19, 28, 22, 0.94), rgba(11, 16, 13, 0.94));
  box-shadow: var(--fr-shadow);
}

.factoryrust-store .factory-stat-card {
  padding: 20px 22px;
}

.factoryrust-store .factory-stat-card__label {
  color: var(--fr-text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.factoryrust-store .factory-stat-card__value {
  margin-top: 12px;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  line-height: 1;
}

.factoryrust-store .factory-stat-card__value strong {
  color: var(--fr-accent);
}

.factoryrust-store .factory-note {
  padding: 18px 22px;
}

.factoryrust-store .factory-note__title {
  display: block;
  margin-bottom: 8px;
  color: var(--fr-text);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.factoryrust-store .factory-note__text {
  color: var(--fr-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.factoryrust-store .factory-hero-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(58, 240, 70, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(58, 240, 70, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(15, 24, 18, 0.98), rgba(8, 12, 10, 0.96));
  box-shadow: var(--fr-shadow);
}

.factoryrust-store .factory-hero-panel::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(58, 240, 70, 0.65), transparent);
}

.factoryrust-store .factory-hero-panel__eyebrow {
  color: var(--fr-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.factoryrust-store .factory-hero-panel__title {
  margin-top: 10px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.factoryrust-store .factory-hero-panel__address {
  margin-top: 14px;
  color: var(--fr-text);
  font-size: 18px;
  font-weight: 700;
  word-break: break-word;
}

.factoryrust-store .factory-hero-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.factoryrust-store .factory-hero-panel__chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fr-text-muted);
  font-size: 13px;
}

.factoryrust-store .factory-hero-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  align-items: flex-start;
}

.factoryrust-store .factory-hero-social-widget {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  min-height: 106px;
  padding: 18px 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(135deg, rgba(42, 65, 104, 0.95), rgba(87, 93, 231, 0.95));
  box-shadow: var(--fr-shadow);
  text-decoration: none;
}

.factoryrust-store .factory-hero-social-widget::before,
.factoryrust-store .factory-hero-social-widget::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.factoryrust-store .factory-hero-social-widget::before {
  width: 140px;
  height: 140px;
  left: -30px;
  bottom: -74px;
}

.factoryrust-store .factory-hero-social-widget::after {
  width: 120px;
  height: 120px;
  right: -24px;
  top: -60px;
}

.factoryrust-store .factory-hero-social-widget--discord {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(135deg, rgba(28, 34, 66, 0.98), rgba(62, 72, 138, 0.96));
}

.factoryrust-store .factory-hero-social-widget__content,
.factoryrust-store .factory-hero-social-widget__side {
  position: relative;
  z-index: 1;
}

.factoryrust-store .factory-hero-social-widget__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.factoryrust-store .factory-hero-social-widget__label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.factoryrust-store .factory-hero-social-widget__title {
  margin-top: 4px;
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.factoryrust-store .factory-hero-social-widget__side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  min-width: 132px;
}

.factoryrust-store .factory-hero-social-widget__metric,
.factoryrust-store .factory-hero-social-widget__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 800;
}

.factoryrust-store .factory-hero-social-widget__metric {
  gap: 10px;
  flex-direction: column;
  min-height: 54px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.factoryrust-store .factory-hero-social-widget__metric-icon {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.factoryrust-store .factory-hero-social-widget__button {
  letter-spacing: 0.05em;
}

.factoryrust-store .factory-benefits {
  width: var(--fr-grid-width);
  margin: 0 auto 28px;
}

.factoryrust-store .factory-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.factoryrust-store .factory-section-head__title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 34px);
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.factoryrust-store .factory-section-head__text {
  max-width: 640px;
  margin: 0;
  color: var(--fr-text-muted);
  line-height: 1.65;
}

.factoryrust-store .factory-benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.factoryrust-store .factory-benefits__item {
  min-height: 190px;
  padding: 22px;
}

.factoryrust-store .factory-benefits__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(58, 240, 70, 0.1);
  color: var(--fr-accent);
  font-size: 20px;
}

.factoryrust-store .factory-benefits__title {
  margin: 18px 0 10px;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.factoryrust-store .factory-benefits__text {
  margin: 0;
  color: var(--fr-text-muted);
  line-height: 1.6;
}

.factoryrust-store .factory-widgets {
  width: var(--fr-grid-width);
  margin: 0 auto 28px;
}

.factoryrust-store .factory-widgets__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.factoryrust-store .factory-widget-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid rgba(58, 240, 70, 0.16);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(58, 240, 70, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(6, 12, 9, 0.96), rgba(4, 8, 6, 0.98));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.9),
    0 20px 46px rgba(0, 0, 0, 0.85);
}

.factoryrust-store .factory-widget-card--wide {
  grid-column: auto;
}

.factoryrust-store .factory-widget-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(58, 240, 70, 0.65), transparent);
}

.factoryrust-store .factory-widget-card__head {
  padding: 22px 22px 16px;
}

.factoryrust-store .factory-widget-card__eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--fr-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.factoryrust-store .factory-widget-card__title {
  margin: 0;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.factoryrust-store .factory-widget-card__text {
  margin: 10px 0 0;
  color: var(--fr-text-muted);
  line-height: 1.65;
}

.factoryrust-store .factory-widget-card__body {
  flex: 1;
  display: flex;
  align-items: stretch;
  padding: 0 22px 22px;
}

.factoryrust-store .factory-widget-embed {
  width: 100%;
}

.factoryrust-store .factory-widget-embed > * {
  width: 100%;
}

/* Виджет мониторинга серверов — акцентная рамка, скругление, лёгкое свечение */
.factoryrust-store .factory-widget-embed--monitoring,
.factoryrust-store .factory-widget-embed:has(iframe) {
  padding: 1px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(58, 240, 70, 0.22), transparent 55%),
    radial-gradient(circle at bottom right, rgba(58, 240, 70, 0.1), transparent 55%);
  box-shadow:
    0 0 0 1px rgba(58, 240, 70, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.factoryrust-store .factory-widget-embed--monitoring iframe,
.factoryrust-store .factory-widget-embed:has(iframe) iframe {
  min-height: 260px;
  border-radius: 18px;
  display: block;
  background: #050806;
}

/* Если виджет мониторинга вставлен без обёртки factory-widget-embed--monitoring — тоже красиво оформляем */
.factoryrust-store [class*="monitor"] iframe,
.factoryrust-store [class*="monitoring"] iframe,
.factoryrust-store iframe[src*="battlemetrics"],
.factoryrust-store iframe[src*="gamemonitoring"],
.factoryrust-store iframe[src*="rust-servers"],
.factoryrust-store iframe[src*="servers-rust"],
.factoryrust-store .server-monitoring-widget {
  width: 100%;
  max-width: 100%;
  min-height: 260px;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #050806;
  box-shadow:
    0 0 0 1px rgba(58, 240, 70, 0.28),
    0 16px 32px rgba(0, 0, 0, 0.75);
}

/* Карточка с виджетом мониторинга — чуть выделяем заголовок */
.factoryrust-store .factory-widget-card:first-child .factory-widget-card__eyebrow {
  color: var(--fr-accent);
}

.factoryrust-store .factory-widget-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  min-height: 220px;
  width: 100%;
  padding: 22px;
  border: 1px dashed rgba(58, 240, 70, 0.28);
  border-radius: var(--fr-radius-sm);
  background:
    linear-gradient(180deg, rgba(58, 240, 70, 0.05), rgba(255, 255, 255, 0.02));
}

.factoryrust-store .factory-widget-placeholder strong {
  color: var(--fr-text);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.factoryrust-store .factory-widget-placeholder span {
  color: var(--fr-text-muted);
  line-height: 1.6;
}

.factoryrust-store .factory-widget-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.factoryrust-store .factory-widget-data {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.factoryrust-store .factory-widget-data__label {
  color: var(--fr-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.factoryrust-store .factory-widget-data__value {
  color: var(--fr-text);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.1;
  word-break: break-word;
}

.factoryrust-store .factory-widget-data__desc {
  color: var(--fr-text-muted);
  line-height: 1.65;
}

.factoryrust-store .factory-widget-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.factoryrust-store .factory-widget-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(58, 240, 70, 0.16);
  border-radius: 999px;
  background: rgba(58, 240, 70, 0.08);
  color: var(--fr-text);
  font-size: 13px;
  line-height: 1;
}

.factoryrust-store .factory-widget-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.factoryrust-store .factory-widget-meta__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.factoryrust-store .factory-widget-meta__item span {
  color: var(--fr-text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.factoryrust-store .factory-widget-meta__item strong {
  color: var(--fr-text);
  font-size: 16px;
  word-break: break-word;
}

.factoryrust-store .factory-widget-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.factoryrust-store .factory-widget-actions .factory-btn {
  min-width: 160px;
}

.factoryrust-store .factory-widget-embed iframe,
.factoryrust-store .factory-widget-embed widgetbot,
.factoryrust-store .factory-widget-embed .discord-widget,
.factoryrust-store .factory-widget-embed .server-monitoring-widget {
  width: 100%;
  min-height: 250px;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}

.factoryrust-store .factory-widget-embed table,
.factoryrust-store .factory-widget-embed div,
.factoryrust-store .factory-widget-embed section {
  max-width: 100%;
}

.factoryrust-store .factory-divider-title {
  width: var(--fr-grid-width);
  margin: 28px auto 12px;
  padding: 0 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.factoryrust-store .factory-divider-title__eyebrow {
  color: var(--fr-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.factoryrust-store .factory-divider-title__heading {
  margin: 6px 0 0;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.factoryrust-store .factory-divider-title__desc {
  margin: 10px 0 0;
  color: var(--fr-text-muted);
  line-height: 1.7;
}

/* Верхнее меню GameStores не переопределяем — оставляем как у платформы, иначе пропадает */
/* Только подправляем цвета ссылок/кнопок в шапке, не трогая layout */
.factoryrust-store body > header a,
.factoryrust-store body > [class*="navbar"] a,
.factoryrust-store #app > header a,
.factoryrust-store [class*="site-header"] a {
  color: var(--fr-text-muted);
  text-decoration: none;
}
.factoryrust-store body > header a:hover,
.factoryrust-store body > [class*="navbar"] a:hover,
.factoryrust-store #app > header a:hover,
.factoryrust-store [class*="site-header"] a:hover {
  color: var(--fr-accent-strong);
}
.factoryrust-store body > header [class*="btn"],
.factoryrust-store body > [class*="navbar"] [class*="btn"],
.factoryrust-store #app > header [class*="btn"] {
  background: linear-gradient(135deg, var(--fr-accent), #1ebd30);
  color: #041107;
  border: none;
}

/* Кнопка «Профиль» и др. в правом блоке — стиль задаётся общим блоком «Правые кнопки» ниже (белый текст, при наведении зелёный) */

/* Правый блок меню — помечается скриптом классом .factoryrust-header-right */
.factoryrust-store .factoryrust-header-right {
  display: flex !important;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* На ПК кнопка модального меню не нужна — скрываем по классу из JS */
@media (min-width: 768px) {
  .factoryrust-store .factoryrust-header-panel-btn {
    display: none !important;
  }
}

/* Кнопка RU (язык) — помечается скриптом классом .factoryrust-header-ru-btn; стили задаём ниже после общих правил */

/* Кнопка «Профиль» — всегда зелёная */
.factoryrust-store .factoryrust-header-right a[href*="profile"],
.factoryrust-store .factoryrust-header-right a[href*="cabinet"],
.factoryrust-store .factoryrust-header-right a[href*="account"],
.factoryrust-store .factoryrust-header-right [class*="profile"] {
  background: linear-gradient(135deg, var(--fr-accent), #1ebd30) !important;
  color: #041107 !important;
  border-color: rgba(58, 240, 70, 0.5) !important;
  box-shadow: 0 2px 12px rgba(58, 240, 70, 0.25) !important;
}
.factoryrust-store .factoryrust-header-right a[href*="profile"]:hover,
.factoryrust-store .factoryrust-header-right a[href*="cabinet"]:hover,
.factoryrust-store .factoryrust-header-right a[href*="account"]:hover,
.factoryrust-store .factoryrust-header-right [class*="profile"]:hover {
  background: linear-gradient(135deg, #4aff56, #25c932) !important;
  color: #041107 !important;
  box-shadow: 0 4px 20px rgba(58, 240, 70, 0.4) !important;
}

/* Остальные кнопки в правом блоке: белый текст, обводка, при наведении — зелёная заливка */
.factoryrust-store .factoryrust-header-right a,
.factoryrust-store .factoryrust-header-right button,
.factoryrust-store .factoryrust-header-right [class*="btn"],
.factoryrust-store .factoryrust-header-right [role="button"],
.factoryrust-store .factoryrust-header-right > span {
  display: inline-flex !important;
  align-items: center;
  padding: 8px 16px !important;
  border-radius: var(--fr-radius-sm) !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  background: transparent !important;
  box-shadow: 0 0 0 1px rgba(58, 240, 70, 0.15) inset !important;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease !important;
}
.factoryrust-store .factoryrust-header-right a:hover,
.factoryrust-store .factoryrust-header-right button:hover,
.factoryrust-store .factoryrust-header-right [class*="btn"]:hover,
.factoryrust-store .factoryrust-header-right [role="button"]:hover,
.factoryrust-store .factoryrust-header-right > span:hover {
  background: linear-gradient(135deg, var(--fr-accent), #1ebd30) !important;
  border-color: rgba(58, 240, 70, 0.6) !important;
  box-shadow: 0 4px 20px rgba(58, 240, 70, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
  color: #041107 !important;
}

/* Вложенные кнопки (на 2 уровня глубже) */
.factoryrust-store .factoryrust-header-right a a,
.factoryrust-store .factoryrust-header-right a button,
.factoryrust-store .factoryrust-header-right div a,
.factoryrust-store .factoryrust-header-right div button,
.factoryrust-store .factoryrust-header-right span a {
  color: #fff !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 0 0 1px rgba(58, 240, 70, 0.15) inset !important;
}
.factoryrust-store .factoryrust-header-right a a:hover,
.factoryrust-store .factoryrust-header-right a button:hover,
.factoryrust-store .factoryrust-header-right div a:hover,
.factoryrust-store .factoryrust-header-right div button:hover,
.factoryrust-store .factoryrust-header-right span a:hover {
  background: linear-gradient(135deg, var(--fr-accent), #1ebd30) !important;
  color: #041107 !important;
}

/* Кнопка RU (язык) — как у остальных по высоте и ширине, компактная */
.factoryrust-store .factoryrust-header-ru-btn,
.factoryrust-store .factoryrust-header-ru-btn * {
  border: none !important;
  box-shadow: none !important;
}
.factoryrust-store .factoryrust-header-ru-btn {
  min-width: 0 !important;
  width: auto !important;
  padding: 2px 8px !important;
  min-height: 0 !important;
  height: auto !important;
  line-height: 1.2 !important;
  font-size: 0.8rem !important;
}
.factoryrust-store .factoryrust-header-ru-btn * {
  min-height: 0 !important;
  padding: 2px 8px !important;
  line-height: 1.2 !important;
}

/* Отступ сверху: расстояние между панелью управления и контентом */
.factoryrust-store body {
  padding-top: 24px;
}

/* Не скрываем плашки и полосы — иначе ломается панель товара GameStores */

.factoryrust-store footer,
.factoryrust-store [class*="footer"],
.factoryrust-store [class*="sidebar"] {
  background-color: transparent;
}

/* Не задаём z-index контенту — иначе модалка панели товара может оказаться под ним */
.factoryrust-store .factoryrust-content > *,
.factoryrust-store .factoryrust-content [class*="catalog"],
.factoryrust-store .factoryrust-content [class*="shop"],
.factoryrust-store .factoryrust-content [class*="category"],
.factoryrust-store .factoryrust-content [class*="goods"],
.factoryrust-store .factoryrust-content [class*="products"] {
  position: relative;
}

/* Не скрываем футер, категории, фильтры — иначе ломается работа магазина и панель товара */

/* Только ссылка с лого GameStores — display none, картинки товаров не трогаем */
.factoryrust-store a[href*="gamestores.app"]:has(img),
.factoryrust-store a[href*="gamestores.io"]:has(img) {
  display: none !important;
}

.factoryrust-store .Banner-module__img {
  display: none;
  margin: 0 auto;
}

.factoryrust-store .factoryrust-catalog-shell {
  width: var(--fr-grid-width);
  margin: 12px auto 40px;
  padding: 20px 20px 22px;
  border: 1px solid rgba(58, 240, 70, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(58, 240, 70, 0.16), transparent 55%),
    radial-gradient(circle at bottom right, rgba(6, 12, 9, 0.96), rgba(4, 8, 6, 0.99));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.95),
    0 24px 60px rgba(0, 0, 0, 0.9);
  display: block !important;
  min-height: 0 !important;
  height: auto !important;
}

.factoryrust-store .factoryrust-catalog-shell > * {
  min-height: 0 !important;
  height: auto !important;
}

.factoryrust-store .factoryrust-catalog-shell [class*="search"],
.factoryrust-store .factoryrust-catalog-shell [class*="header"],
.factoryrust-store .factoryrust-catalog-shell [class*="top"],
.factoryrust-store .factoryrust-catalog-shell [class*="nav"] {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

.factoryrust-store .factoryrust-products-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.factoryrust-store [class*="catalog"],
.factoryrust-store [class*="goods"],
.factoryrust-store [class*="products"],
.factoryrust-store [class*="shop-list"],
.factoryrust-store [class*="product-list"] {
  gap: 18px;
}

.factoryrust-store .factoryrust-catalog-shell input,
.factoryrust-store .factoryrust-catalog-shell input[type="search"],
.factoryrust-store .factoryrust-catalog-shell input[placeholder] {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.factoryrust-store aside,
.factoryrust-store [class*="sidebar"],
.factoryrust-store [class*="monitor"],
.factoryrust-store [class*="widget"],
.factoryrust-store [class*="server-widget"] {
  border-radius: var(--fr-radius-md);
}

.factoryrust-store aside,
.factoryrust-store [class*="sidebar"] {
  padding: 14px;
  border: 1px solid rgba(58, 240, 70, 0.16);
  background: transparent;
  box-shadow: none;
}

.factoryrust-store aside > *,
.factoryrust-store [class*="sidebar"] > *,
.factoryrust-store [class*="sidebar"] [class*="widget"],
.factoryrust-store [class*="sidebar"] [class*="monitor"],
.factoryrust-store [class*="sidebar"] article,
.factoryrust-store [class*="sidebar"] section {
  border-radius: 18px;
}

.factoryrust-store [class*="sidebar"] [class*="widget"],
.factoryrust-store [class*="sidebar"] [class*="monitor"],
.factoryrust-store [class*="sidebar"] article,
.factoryrust-store [class*="sidebar"] section,
.factoryrust-store aside article,
.factoryrust-store aside section {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(58, 240, 70, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(6, 12, 9, 0.9), rgba(4, 7, 5, 0.95));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
}

.factoryrust-store [class*="sidebar"] h2,
.factoryrust-store [class*="sidebar"] h3,
.factoryrust-store [class*="sidebar"] h4,
.factoryrust-store aside h2,
.factoryrust-store aside h3,
.factoryrust-store aside h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.factoryrust-store [class*="sidebar"] [class*="online"],
.factoryrust-store [class*="sidebar"] [class*="status"],
.factoryrust-store [class*="sidebar"] [class*="count"],
.factoryrust-store aside [class*="online"],
.factoryrust-store aside [class*="status"],
.factoryrust-store aside [class*="count"] {
  color: var(--fr-accent);
  font-weight: 800;
}

.factoryrust-store [class*="category"] a,
.factoryrust-store [class*="category"] button,
.factoryrust-store [class*="sidebar"] a,
.factoryrust-store [class*="sidebar"] button,
.factoryrust-store aside a,
.factoryrust-store aside button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.factoryrust-store [class*="category"] a:hover,
.factoryrust-store [class*="category"] button:hover,
.factoryrust-store [class*="sidebar"] a:hover,
.factoryrust-store [class*="sidebar"] button:hover,
.factoryrust-store aside a:hover,
.factoryrust-store aside button:hover {
  border-color: rgba(58, 240, 70, 0.2);
  background: rgba(58, 240, 70, 0.08);
}

.factoryrust-store [class*="category"] [aria-current="page"],
.factoryrust-store [class*="category"] .active,
.factoryrust-store [class*="sidebar"] .active,
.factoryrust-store aside .active {
  border-color: rgba(58, 240, 70, 0.24);
  background: rgba(58, 240, 70, 0.12);
  color: var(--fr-text);
}

/* Кастомизация стандартного MonitoringWidget: делаем его в общем стиле FACTORY RUST */
/* (стили MonitoringWidget по умолчанию удалены — используется дефолт GameStores) */

/* Стили карточек только в каталоге; панель/страница товара — дефолтная от платформы */
.factoryrust-store .factoryrust-catalog-shell [class*="card"],
.factoryrust-store .factoryrust-catalog-shell [class*="product"],
.factoryrust-store .factoryrust-catalog-shell [class*="goods-item"],
.factoryrust-store .factoryrust-catalog-shell [class*="product-item"],
.factoryrust-store .factoryrust-catalog-shell [class*="package"],
.factoryrust-store .factoryrust-catalog-shell [class*="item-card"],
.factoryrust-store .factoryrust-catalog-shell article {
  border: 1px solid rgba(58, 240, 70, 0.28);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(58, 240, 70, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.98));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.85),
    0 18px 40px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

.factoryrust-store .factoryrust-catalog-shell [class*="card"]:hover,
.factoryrust-store .factoryrust-catalog-shell [class*="product"]:hover,
.factoryrust-store .factoryrust-catalog-shell [class*="goods-item"]:hover,
.factoryrust-store .factoryrust-catalog-shell [class*="product-item"]:hover,
.factoryrust-store .factoryrust-catalog-shell [class*="package"]:hover,
.factoryrust-store .factoryrust-catalog-shell [class*="item-card"]:hover,
.factoryrust-store .factoryrust-catalog-shell article:hover {
  border-color: rgba(58, 240, 70, 0.24);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.46);
}

.factoryrust-store .factoryrust-catalog-shell [class*="product"] img,
.factoryrust-store .factoryrust-catalog-shell [class*="goods-item"] img,
.factoryrust-store .factoryrust-catalog-shell [class*="product-item"] img,
.factoryrust-store .factoryrust-catalog-shell [class*="package"] img,
.factoryrust-store .factoryrust-catalog-shell [class*="item-card"] img,
.factoryrust-store .factoryrust-catalog-shell article img {
  border-radius: 16px;
}

.factoryrust-store .factoryrust-catalog-shell [class*="product"] [class*="image"],
.factoryrust-store .factoryrust-catalog-shell [class*="goods-item"] [class*="image"],
.factoryrust-store .factoryrust-catalog-shell [class*="product-item"] [class*="image"],
.factoryrust-store .factoryrust-catalog-shell [class*="package"] [class*="image"],
.factoryrust-store .factoryrust-catalog-shell [class*="item-card"] [class*="image"] {
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(58, 240, 70, 0.03));
}

.factoryrust-store .factoryrust-catalog-shell [class*="product"] h3,
.factoryrust-store .factoryrust-catalog-shell [class*="goods-item"] h3,
.factoryrust-store .factoryrust-catalog-shell [class*="product-item"] h3,
.factoryrust-store .factoryrust-catalog-shell [class*="package"] h3,
.factoryrust-store .factoryrust-catalog-shell [class*="item-card"] h3,
.factoryrust-store .factoryrust-catalog-shell article h3 {
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.factoryrust-store .factoryrust-catalog-shell [class*="product"] [class*="description"],
.factoryrust-store .factoryrust-catalog-shell [class*="goods-item"] [class*="description"],
.factoryrust-store .factoryrust-catalog-shell [class*="product-item"] [class*="description"],
.factoryrust-store .factoryrust-catalog-shell [class*="package"] [class*="description"],
.factoryrust-store .factoryrust-catalog-shell [class*="item-card"] [class*="description"] {
  color: var(--fr-text-muted);
  line-height: 1.65;
}

.factoryrust-store .factoryrust-catalog-shell [class*="product"] [class*="footer"],
.factoryrust-store .factoryrust-catalog-shell [class*="product"] [class*="actions"],
.factoryrust-store .factoryrust-catalog-shell [class*="goods-item"] [class*="footer"],
.factoryrust-store .factoryrust-catalog-shell [class*="goods-item"] [class*="actions"],
.factoryrust-store .factoryrust-catalog-shell [class*="product-item"] [class*="footer"],
.factoryrust-store .factoryrust-catalog-shell [class*="product-item"] [class*="actions"],
.factoryrust-store .factoryrust-catalog-shell [class*="package"] [class*="footer"],
.factoryrust-store .factoryrust-catalog-shell [class*="package"] [class*="actions"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
}

.factoryrust-store .factoryrust-catalog-shell [class*="product"] [class*="price"],
.factoryrust-store .factoryrust-catalog-shell [class*="goods-item"] [class*="price"],
.factoryrust-store .factoryrust-catalog-shell [class*="product-item"] [class*="price"],
.factoryrust-store .factoryrust-catalog-shell [class*="package"] [class*="price"],
.factoryrust-store .factoryrust-catalog-shell [class*="item-card"] [class*="price"] {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 900;
}

.factoryrust-store .factoryrust-catalog-shell [class*="product"] button,
.factoryrust-store .factoryrust-catalog-shell [class*="product"] a[class*="btn"],
.factoryrust-store .factoryrust-catalog-shell [class*="goods-item"] button,
.factoryrust-store .factoryrust-catalog-shell [class*="goods-item"] a[class*="btn"],
.factoryrust-store .factoryrust-catalog-shell [class*="product-item"] button,
.factoryrust-store .factoryrust-catalog-shell [class*="product-item"] a[class*="btn"],
.factoryrust-store .factoryrust-catalog-shell [class*="package"] button,
.factoryrust-store .factoryrust-catalog-shell [class*="package"] a[class*="btn"] {
  min-height: 46px;
  padding-inline: 18px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.factoryrust-store .factoryrust-catalog-shell [class*="product"] [class*="badge"],
.factoryrust-store .factoryrust-catalog-shell [class*="goods-item"] [class*="badge"],
.factoryrust-store .factoryrust-catalog-shell [class*="product-item"] [class*="badge"],
.factoryrust-store .factoryrust-catalog-shell [class*="package"] [class*="badge"] {
  border: 1px solid rgba(58, 240, 70, 0.16);
  background: rgba(58, 240, 70, 0.1);
  color: var(--fr-accent-strong);
}

.factoryrust-store .factoryrust-featured-card {
  border-color: var(--fr-border-strong) !important;
  box-shadow:
    0 0 0 1px rgba(58, 240, 70, 0.14),
    0 22px 54px rgba(0, 0, 0, 0.48);
}

/* === Кастомизация нативного блока магазина GameStores (Shop-module__*) под стиль мониторинга === */

/* (стили Index-module__wrapper / нижнего контейнера удалены — используется дефолт GameStores) */

/* (кастомизация Shop-module__* удалена — используется дефолт GameStores) */

.factoryrust-store .factoryrust-featured-card::before {
  content: "TOP";
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  padding: 8px 10px;
  border: 1px solid rgba(58, 240, 70, 0.28);
  border-radius: 999px;
  background: rgba(58, 240, 70, 0.14);
  color: var(--fr-accent-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.factoryrust-store h1,
.factoryrust-store h2,
.factoryrust-store h3,
.factoryrust-store h4,
.factoryrust-store h5,
.factoryrust-store h6 {
  color: var(--fr-text);
}

.factoryrust-store p,
.factoryrust-store span,
.factoryrust-store li,
.factoryrust-store small,
.factoryrust-store label,
.factoryrust-store [class*="description"],
.factoryrust-store [class*="subtitle"],
.factoryrust-store [class*="caption"] {
  color: inherit;
}

.factoryrust-store [class*="price"],
.factoryrust-store [data-price],
.factoryrust-store .factoryrust-price {
  color: var(--fr-accent);
  font-weight: 800;
  text-shadow: 0 0 24px rgba(58, 240, 70, 0.12);
}

.factoryrust-store [class*="badge"],
.factoryrust-store [class*="tag"],
.factoryrust-store [class*="label"] {
  border-radius: 999px;
}

.factoryrust-store input,
.factoryrust-store select,
.factoryrust-store textarea {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fr-text);
  box-shadow: none;
}

.factoryrust-store input:focus,
.factoryrust-store select:focus,
.factoryrust-store textarea:focus {
  border-color: rgba(58, 240, 70, 0.3);
  outline: none;
  box-shadow: 0 0 0 4px rgba(58, 240, 70, 0.1);
}

/* Доп. окна (пополнение, профиль, панель товара) — поверх всего, всегда видимы */
.factoryrust-store [class*="modal"],
.factoryrust-store [class*="popup"],
.factoryrust-store [class*="dialog"],
.factoryrust-store [class*="overlay"],
.factoryrust-store [class*="backdrop"],
.factoryrust-store [role="dialog"] {
  z-index: 10002 !important;
}

.factoryrust-store [class*="overlay"],
.factoryrust-store [class*="backdrop"] {
  z-index: 10001 !important;
}

/* Только поднимаем модалки поверх остального, не меняем display/visibility — чтобы не сломать панель товара */
.factoryrust-store [class*="portal"],
.factoryrust-store [class*="root-modal"],
.factoryrust-store body > [class*="modal"] {
  overflow: visible !important;
}

.factoryrust-store table,
.factoryrust-store [class*="table"] {
  background: transparent;
  color: var(--fr-text);
}

.factoryrust-store tr,
.factoryrust-store [class*="row"] {
  border-color: rgba(255, 255, 255, 0.06);
}

.factoryrust-store .factoryrust-inline-note {
  margin: 10px 0 0;
  color: var(--fr-text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.factoryrust-store .factoryrust-hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .factoryrust-store .factory-hero__grid {
    grid-template-columns: 1fr;
  }

  .factoryrust-store .factory-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .factoryrust-store .factory-widget-meta {
    grid-template-columns: 1fr;
  }

  .factoryrust-store .factoryrust-catalog-shell {
    padding: 20px;
  }
}

@media (max-width: 780px) {
  :root {
    --fr-grid-width: min(100vw - 24px, 100%);
  }

  .factoryrust-store .factory-hero {
    margin-top: 16px;
    padding: 24px 18px;
    border-radius: 24px;
  }

  .factoryrust-store .factory-hero__title {
    font-size: clamp(28px, 10vw, 44px);
  }

  .factoryrust-store .factory-hero__actions {
    flex-direction: column;
  }

  .factoryrust-store .factory-btn {
    width: 100%;
  }

  .factoryrust-store .factory-hero-panel__actions {
    flex-direction: column;
  }

  .factoryrust-store .factory-section-head {
    flex-direction: column;
    align-items: start;
  }

  .factoryrust-store .factory-benefits__grid {
    grid-template-columns: 1fr;
  }

  .factoryrust-store .factoryrust-catalog-shell {
    padding: 18px;
    border-radius: 24px;
  }

  .factoryrust-store .factory-widget-card__head,
  .factoryrust-store .factory-widget-card__body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .factoryrust-store .factory-hero-panel {
    padding: 20px 18px;
  }

  .factoryrust-store .factory-hero-panel__title {
    font-size: 22px;
  }

}