:root {
  --bg-primary: #070b10;
  --bg-dark: #0b1119;
  --bg-card-dark: #0e1620;
  --bg-card-darker: #111b27;
  --bg-element: #152130;
  --bg-element-hover: #1c2c3f;
  --card-bg: #0b1119;
  --card-bg-hover: #101925;
  --input-bg: #121c29;
  --input-bg-hover: #192738;
  --border-light: #1e2e42;
  --border-subtle: rgba(148, 179, 206, 0.13);
  --text-primary: #e8f1f5;
  --text-secondary: #9ab0c4;
  --text-muted: #6c8299;
  --text-darker: #4f647a;
  --accent: #27a8a2;
  --accent-bright: #5ce1e6;
  --accent-hover: #2ebdb6;
  --accent-text: #f3fafb;
  --accent-soft: rgba(39, 168, 162, 0.16);
  --nori: #84cc36;
  --nori-bg: rgba(132, 204, 54, 0.15);
  --danger: #b92b49;
  --discord-bg: rgba(88, 101, 242, 0.14);
  --discord-color: #8891f2;
  --telegram-bg: rgba(39, 168, 162, 0.16);
  --telegram-color: #5ce1e6;
  --vk-bg: rgba(77, 163, 255, 0.14);
  --vk-color: #60a5fa;
  --cart-bg: #0d1520;
  --cart-row: #121c2a;
  --cart-ring: #203146;
  --cart-input: #091018;
  --cart-text: #e8f1f5;
  --cart-muted: #8299b0;
  --content-width: 1480px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-primary);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Pixelify Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #203247 var(--bg-primary);
}

body.modal-open {
  overflow: hidden;
}

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

button,
input {
  font-family: 'Pixelify Sans', system-ui, sans-serif;
  color: inherit;
}

button {
  cursor: pointer;
}

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

code {
  font-family: 'Pixelify Sans', monospace;
}

[hidden] {
  display: none !important;
}

/* Спокойный зимний снегопад без лишней яркости */
.tr-weather-winter {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 12;
  pointer-events: none;
  opacity: 0.45;
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== ФИКСИРОВАННАЯ ШАПКА ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  padding: 18px 20px 10px;
  pointer-events: none;
}

.header-inner {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  pointer-events: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(14, 22, 32, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55));
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-primary);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
}

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

.nav-link {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--bg-element);
  color: var(--accent-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: var(--bg-element);
  color: var(--text-primary);
}

.mobile-menu-btn {
  display: none;
}

.login-btn {
  height: 40px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 600;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.28);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.login-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.login-avatar {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  image-rendering: pixelated;
}

/* ==================== ОСНОВНОЙ КОНТЕНТ ==================== */
.main {
  padding-top: 102px;
  position: relative;
  z-index: 2;
}

/* ==================== HERO BENTO ==================== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 296px;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-banner {
  position: relative;
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 1.1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(7, 11, 16, 0.92) 0%, rgba(7, 11, 16, 0.68) 54%, rgba(7, 11, 16, 0.28) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  padding: 42px;
  max-width: 680px;
}

.slide-title {
  margin: 0 0 12px;
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.3px;
  color: #f3fafb;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.85);
}

.slide-desc {
  margin: 0 0 26px;
  font-size: 17px;
  font-weight: 400;
  color: #b8ccd9;
  max-width: 540px;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.75);
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  min-width: 190px;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 16px;
  font-weight: 600;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.28);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  background: var(--bg-element);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
}

.btn-secondary:hover {
  background: var(--bg-element-hover);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-dot {
  width: 10px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.26);
  transition: width 0.2s ease, background-color 0.2s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--accent-bright);
}

/* Правая колонка Hero */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-sidebar .social-card {
  flex: 1;
}

.social-card,
.server-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 15px 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-card:hover {
  transform: translateY(-2px);
  background: var(--card-bg-hover);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-icon.is-discord,
.social-sq.is-discord {
  background: var(--discord-bg);
  color: var(--discord-color);
}

.social-icon.is-telegram,
.social-sq.is-telegram {
  background: var(--telegram-bg);
  color: var(--telegram-color);
}

.social-icon.is-vk,
.social-sq.is-vk {
  background: var(--vk-bg);
  color: var(--vk-color);
}

.social-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.social-meta strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.social-meta small {
  font-size: 13px;
  color: var(--text-muted);
}

.server-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.server-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--nori-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--nori);
}

.status-dot.is-offline {
  background: var(--accent-bright);
}

.copy-ip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: none;
  border-radius: 10px;
  background: var(--input-bg);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-bright);
  transition: background-color 0.15s ease;
}

.copy-ip:hover {
  background: var(--input-bg-hover);
}

/* ==================== БАННЕР ПЕРЕНОСА ==================== */
.transfer-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--bg-dark);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.transfer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.transfer-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.transfer-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.transfer-text strong {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.transfer-text span {
  font-size: 14px;
  color: var(--text-muted);
}

.transfer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: none;
  border-radius: 8px;
  background: var(--bg-element);
  color: var(--accent-bright);
  font-size: 15px;
  font-weight: 500;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.transfer-link:hover {
  background: var(--bg-element-hover);
}

/* ==================== КАЛЬКУЛЯТОРЫ (50/50) ==================== */
.calculators-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 42px;
}

.calc-card {
  background: var(--bg-dark);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.calc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.calc-head h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.7);
}

.card-info-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: var(--bg-element);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-info-btn:hover {
  background: var(--bg-element-hover);
  color: var(--accent-bright);
}

.segmented-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-element);
}

.segmented-bar.is-single {
  grid-template-columns: 1fr;
}

.seg-btn {
  padding: 9px 12px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.seg-btn:hover {
  color: var(--text-primary);
}

.seg-btn.is-active {
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

.calc-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.calc-rate-text {
  font-size: 14px;
  color: var(--text-secondary);
}

.discount-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--nori-bg);
  color: var(--nori);
  font-size: 13px;
  font-weight: 600;
}

.calc-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.calc-input-label {
  font-size: 14px;
  color: var(--text-muted);
}

.stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: var(--bg-element);
  overflow: hidden;
  transition: box-shadow 0.15s ease;
}

.stepper:focus-within {
  box-shadow: 0 0 0 1.5px rgba(39, 168, 162, 0.65);
}

.step-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.step-btn:hover {
  background: var(--bg-element-hover);
  color: var(--accent-bright);
}

.stepper input {
  width: 96px;
  height: 36px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  -moz-appearance: textfield;
}

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

.calc-max-hint {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
}

/* Слайдер в пиксельной эстетике без засвета */
.slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tr-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--pct, 10%), var(--border-light) var(--pct, 10%), var(--border-light) 100%);
  outline: none;
  cursor: pointer;
}

.tr-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 18px;
  border-radius: 2px;
  background: var(--accent-bright);
  border: 1px solid #041316;
  cursor: pointer;
}

.tr-slider::-moz-range-thumb {
  width: 14px;
  height: 18px;
  border-radius: 2px;
  background: var(--accent-bright);
  border: 1px solid #041316;
  cursor: pointer;
}

.slider-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.tier-chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.tier-chip {
  padding: 7px 6px;
  border: none;
  border-radius: 7px;
  background: var(--bg-element);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tier-chip:hover {
  background: var(--bg-element-hover);
  color: var(--text-primary);
}

.tier-chip.is-reached {
  background: var(--nori-bg);
  color: var(--nori);
  font-weight: 600;
}

.calc-next-hint {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.calc-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 4px;
}

.calc-add-btn {
  min-width: 148px;
  padding: 13px 20px;
}

.calc-exchange {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.exchange-box {
  flex: 1;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--bg-card-darker);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.exchange-box span {
  font-size: 12px;
  color: var(--text-muted);
}

.exchange-box strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.exchange-box strong.is-green {
  color: var(--nori);
}

.exchange-arrow {
  color: var(--accent-bright);
  font-size: 16px;
  flex-shrink: 0;
}

/* ==================== МАГАЗИН ==================== */
.shop-section {
  scroll-margin-top: 104px;
  margin-bottom: 36px;
}

.shop-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.shop-title {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
}

.period-switcher {
  display: inline-flex;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-dark);
  gap: 4px;
}

.period-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.period-btn.is-active {
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

.shop-layout {
  display: grid;
  grid-template-columns: 296px 1fr;
  gap: 20px;
  align-items: start;
}

.shop-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-card {
  background: var(--bg-dark);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.server-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  background: var(--bg-element);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
}

.server-select-btn.is-active {
  background: var(--accent);
  color: var(--accent-text);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.28);
}

.server-cube {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 16px 0;
}

.cat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cat-btn:hover {
  background: var(--bg-element);
  color: var(--text-primary);
}

.cat-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-weight: 600;
}

.cat-ico {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.cat-ico.is-ranks { background: rgba(92, 225, 230, 0.14); color: #5ce1e6; }
.cat-ico.is-crates { background: rgba(167, 139, 250, 0.14); color: #a78bfa; }
.cat-ico.is-titles { background: rgba(132, 204, 54, 0.14); color: #84cc36; }
.cat-ico.is-other { background: rgba(96, 165, 250, 0.14); color: #60a5fa; }

/* ==================== СЕТКА КАРТОЧЕК ТОВАРОВ (БЕЗ ЗАСВЕТОВ) ==================== */
.titles-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--bg-dark);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.titles-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill-filter {
  padding: 7px 14px;
  border: none;
  border-radius: 6px;
  background: var(--bg-element);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.pill-filter.is-active {
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

.chat-preview-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #06090d;
  font-size: 15px;
  flex-wrap: wrap;
}

.chat-preview-label {
  font-size: 13px;
  color: var(--text-muted);
}

.mc-chat-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.95);
}

.mc-rank { color: #8c9fb0; }
.mc-nick { color: #ffffff; font-weight: 600; }
.mc-title { font-weight: 700; }
.mc-sep { color: #64748b; }
.mc-msg { color: #dce7ef; }

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

.product-card {
  background: var(--bg-dark);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  background: var(--card-bg-hover);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
}

.product-card.is-popular {
  background: linear-gradient(180deg, #10202b 0%, var(--bg-dark) 45%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32), inset 0 2px 0 rgba(39, 168, 162, 0.7);
}

/* Строгий матовый пиксельный слот без рамки и лишнего шума */
.product-image {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 12px;
  overflow: hidden;
  background-color: #0e1621;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.product-image img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55));
  transition: transform 0.2s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: rgba(10, 16, 24, 0.78);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-info-btn:hover {
  background: var(--accent);
  color: var(--accent-text);
}

.product-ribbon {
  position: absolute;
  top: 16px;
  right: -34px;
  z-index: 2;
  width: 132px;
  padding: 4px 0;
  text-align: center;
  transform: rotate(40deg);
  background: var(--accent);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 600;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.product-name {
  margin: 0 2px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}

.product-sub {
  margin: -5px 2px 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.38;
}

.product-footer {
  margin-top: auto;
  padding: 4px 2px 2px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.product-price-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.old-price {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.current-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.buy-btn {
  padding: 9px 14px;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 600;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.28);
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.buy-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.buy-btn:disabled,
.calc-add-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.buy-btn.is-free {
  background: var(--bg-element);
  color: var(--nori);
  text-shadow: none;
  box-shadow: none;
}

.buy-btn.is-free:hover {
  background: var(--bg-element-hover);
}

/* Пиксельный бейдж титула в стиле инвентаря Minecraft */
.title-badge-visual {
  padding: 10px 18px;
  border-radius: 6px;
  background: #070b10;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-align: center;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.95);
}

/* ==================== СТРАНИЦА ВИКИ ==================== */
.wiki-hero {
  position: relative;
  min-height: 260px;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  margin-bottom: 18px;
}

.wiki-hero-content {
  position: relative;
  z-index: 2;
  padding: 36px;
  max-width: 620px;
}

.wiki-hero-content h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  color: #f3fafb;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.85);
}

.wiki-hero-content p {
  margin: 0;
  font-size: 16px;
  color: #b8ccd9;
}

.wiki-mode-row {
  margin-bottom: 22px;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--bg-dark);
  font-size: 15px;
  font-weight: 500;
}

.mode-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--nori);
}

.wiki-heading {
  margin: 0 0 16px;
  font-size: 30px;
  font-weight: 700;
}

.wiki-topics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.wiki-topic-card {
  text-align: left;
  padding: 20px;
  border-radius: 16px;
  border: none;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.wiki-topic-card:hover,
.wiki-topic-card.is-active {
  transform: translateY(-2px);
  background: var(--card-bg-hover);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34), inset 0 2px 0 rgba(39, 168, 162, 0.7);
}

.wiki-topic-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wiki-topic-ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-element);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wiki-topic-arrow {
  color: var(--text-muted);
  font-size: 18px;
}

.wiki-topic-card strong {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.wiki-topic-card span {
  font-size: 14px;
  color: var(--text-muted);
}

.wiki-detail-panel {
  background: var(--bg-dark);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 36px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.wiki-detail-panel h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
}

.wiki-detail-panel p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 15px;
}

.wiki-items-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.wiki-item-box {
  padding: 15px;
  border-radius: 10px;
  background: var(--bg-card-darker);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wiki-item-box strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.wiki-item-box small {
  font-size: 13px;
  color: var(--accent-bright);
}

.wiki-item-box p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.wiki-cmd-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wiki-cmd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-card-darker);
}

.wiki-cmd-row code {
  color: var(--accent-bright);
  font-size: 15px;
  font-weight: 600;
}

.wiki-cmd-row span {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: right;
}

/* ==================== СТРАНИЦА ПРАВИЛ ==================== */
.rules-container {
  max-width: 1040px;
}

.rules-head {
  margin-bottom: 20px;
}

.rules-head h1 {
  margin: 0 0 6px;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 700;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
}

.rules-head p {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
}

.rules-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-dark);
  border: 1px solid transparent;
  margin-bottom: 16px;
  color: var(--accent-bright);
  transition: border-color 0.15s ease;
}

.rules-search-wrap:focus-within {
  border-color: rgba(39, 168, 162, 0.55);
}

.rules-search-wrap input {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
}

.rules-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.rule-pill {
  padding: 9px 15px;
  border-radius: 8px;
  border: none;
  background: var(--bg-dark);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.rule-pill:hover,
.rule-pill.is-active {
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.rule-section-card {
  background: var(--bg-dark);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.rule-section-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-bright);
}

.rule-entries {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-entry {
  padding: 13px 15px;
  border-radius: 10px;
  background: var(--bg-card-darker);
}

.rule-entry-head {
  margin-bottom: 4px;
}

.rule-code {
  color: var(--nori);
  font-size: 15px;
  font-weight: 600;
}

.rule-entry p {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--text-primary);
}

.rule-punish {
  font-size: 13px;
  color: #f08a9a;
}

/* ==================== ФУТЕР ==================== */
.footer {
  background: var(--bg-card-dark);
  padding: 44px 0 24px;
  margin-top: 44px;
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr 0.9fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.footer-disclaimer {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h4 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-col a,
.footer-col button {
  text-align: left;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-col a:hover,
.footer-col button:hover {
  color: var(--accent-bright);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-sq {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.social-sq:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
}

.footer-mid {
  padding: 16px 0 10px;
  font-size: 13px;
  color: var(--text-darker);
}

.footer-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-contacts button {
  padding: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-contacts a:hover,
.footer-contacts button:hover {
  color: var(--accent-bright);
}

/* ==================== ПЛАВАЮЩАЯ КОРЗИНА ==================== */
.tr-cart-toggle {
  position: fixed;
  right: 16px;
  bottom: 22px;
  z-index: 115;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), inset 0 -3px 0 rgba(0, 0, 0, 0.28);
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.tr-cart-toggle:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.cart-toggle-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.cart-toggle-text strong {
  font-size: 15px;
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

.cart-toggle-text small {
  font-size: 13px;
  opacity: 0.9;
}

/* ==================== МОДАЛКИ ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 6, 10, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.stars-dialog {
  position: relative;
  width: min(500px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: 16px;
  background: var(--bg-card-dark);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
}

.tr-cart-dialog {
  position: relative;
  width: min(672px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: 16px;
  background: var(--cart-bg);
  color: var(--cart-text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
  scrollbar-width: thin;
  scrollbar-color: #253a52 transparent;
}

.cart-dialog-head,
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.cart-dialog-head h3,
.dialog-head h3 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
}

.cart-dialog-head p,
.dialog-muted {
  margin: 0;
  font-size: 14px;
  color: var(--cart-muted);
}

.modal-close {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: var(--bg-element);
  color: var(--text-primary);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--bg-element-hover);
  color: var(--accent-bright);
}

.modal-close.is-float {
  position: absolute;
  top: 16px;
  right: 16px;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.cart-empty {
  padding: 22px;
  border-radius: 10px;
  background: var(--cart-row);
  text-align: center;
  font-size: 14px;
  color: var(--cart-muted);
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--cart-row);
}

.cart-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cart-item-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #0a1018;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 18px;
}

.cart-item-thumb img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.cart-item-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.cart-item-meta strong {
  font-size: 15px;
  font-weight: 600;
}

.cart-item-meta small {
  font-size: 13px;
  color: var(--cart-muted);
}

.cart-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cart-item-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--nori);
}

.cart-remove-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: rgba(185, 43, 73, 0.16);
  color: #f08a9a;
  font-size: 14px;
}

.cart-controls-row {
  margin-bottom: 12px;
}

.cart-clear-btn {
  padding: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--cart-muted);
}

.cart-clear-btn:hover {
  color: #f08a9a;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 16px;
  font-weight: 600;
}

.cart-total-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.cart-total-prices s {
  font-size: 14px;
  color: var(--cart-muted);
}

.cart-total-prices strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-bright);
}

.cart-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.cart-form input[type="text"],
.cart-form input[type="email"],
.login-preview-row input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--cart-input);
  color: var(--cart-text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease;
}

.cart-form input:focus,
.login-preview-row input:focus {
  border-color: rgba(39, 168, 162, 0.55);
}

.cart-promo-wrap {
  display: flex;
  gap: 8px;
}

.cart-promo-wrap button {
  padding: 0 18px;
  border: none;
  border-radius: 8px;
  background: var(--bg-element);
  color: var(--cart-text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.cart-promo-wrap button:hover {
  background: var(--bg-element-hover);
  color: var(--accent-bright);
}

.cart-promo-msg {
  margin: -4px 0 0;
  font-size: 13px;
  color: var(--nori);
}

.cart-promo-msg.is-err {
  color: #f08a9a;
}

.pay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

.pay-card {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 8px;
  border: none;
  background: var(--cart-row);
  color: var(--cart-text);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.pay-card:hover {
  background: var(--bg-element-hover);
}

.pay-card.is-active {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1.5px rgba(92, 225, 230, 0.55);
}

.pay-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.pay-card small {
  font-size: 12px;
  color: var(--cart-muted);
}

.pay-ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.pay-ico.is-sbp { background: rgba(92, 225, 230, 0.16); color: #5ce1e6; }
.pay-ico.is-card { background: rgba(96, 165, 250, 0.16); color: #60a5fa; }
.pay-ico.is-yoo { background: rgba(167, 139, 250, 0.18); color: #a78bfa; }
.pay-ico.is-sber { background: rgba(132, 204, 54, 0.16); color: #84cc36; }
.pay-ico.is-tpay { background: rgba(39, 168, 162, 0.18); color: #27a8a2; }
.pay-ico.is-crypto { background: rgba(56, 189, 248, 0.18); color: #38bdf8; }

.cart-agree {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--cart-muted);
  cursor: pointer;
}

.cart-agree input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.cart-submit-btn {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 17px;
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.28);
}

.cart-submit-btn:hover {
  background: var(--accent-hover);
}

.cart-result {
  margin-top: 12px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(132, 204, 54, 0.14);
  font-size: 14px;
  line-height: 1.5;
}

.cart-result.is-err {
  background: rgba(185, 43, 73, 0.14);
}

.product-dialog {
  text-align: center;
}

.pm-media {
  width: 112px;
  height: 112px;
  margin: 4px auto 14px;
  border-radius: 12px;
  background: #0e1621;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.pm-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pm-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}

.pm-sub {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.pm-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pm-perks li {
  padding: 9px 13px;
  border-radius: 8px;
  background: var(--bg-card-darker);
  font-size: 14px;
  color: var(--text-primary);
}

.pm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pm-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-bright);
}

.login-preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.login-preview-row img {
  border-radius: 8px;
  image-rendering: pixelated;
  flex-shrink: 0;
}

.login-actions {
  display: flex;
  gap: 10px;
}

.login-actions .btn-primary {
  flex: 1;
}

.info-dialog-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.info-dialog-body p {
  margin: 0 0 12px;
}

.info-dialog-body code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-element);
  color: var(--accent-bright);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 1200;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--bg-card-dark);
  color: var(--text-primary);
  font-size: 15px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(39, 168, 162, 0.45);
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1060px) {
  .hero-grid,
  .calculators-grid,
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .hero-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-sidebar .server-card {
    grid-column: 1 / -1;
  }

  .shop-sidebar {
    position: static;
  }

  .wiki-topics-grid,
  .wiki-items-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 768px) {
  .header {
    padding: 12px 12px 8px;
  }

  .nav-links {
    position: fixed;
    top: 82px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 14px;
    background: var(--bg-card-dark);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero-banner {
    min-height: 320px;
  }

  .slide-content {
    padding: 26px;
  }

  .hero-sidebar,
  .products-grid,
  .wiki-topics-grid,
  .wiki-items-grid,
  .wiki-cmd-list,
  .pay-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .calc-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .transfer-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
