.featured {
  overflow: hidden;
}

.featured .featured-groups {
  width: min(1600px, calc(100vw - 80px));
  margin-left: auto;
  margin-right: auto;
}

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

.free-featured-slot-old {
  position: relative !important;
  min-height: 250px !important;
  height: 250px !important;
  overflow: hidden !important;
  padding: 0 !important;
  border-radius: 18px !important;
  box-sizing: border-box !important;
  background:
    radial-gradient(circle at 20% 5%, rgba(255,255,255,.07), transparent 34%),
    linear-gradient(180deg, rgba(8, 18, 31, .96), rgba(2, 7, 13, .98)) !important;
}

.free-featured-slot-old::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.045), transparent 42%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 12px);
  opacity: .75;
  pointer-events: none;
}

.free-featured-slot-old.gold {
  border: 1px solid rgba(255, 204, 83, .78) !important;
  box-shadow: 0 0 24px rgba(255, 190, 64, .18) !important;
}

.free-featured-slot-old.blue {
  border: 1px solid rgba(75, 168, 255, .78) !important;
  box-shadow: 0 0 24px rgba(75, 168, 255, .18) !important;
}

.free-featured-slot-old.purple {
  border: 1px solid rgba(180, 82, 255, .78) !important;
  box-shadow: 0 0 24px rgba(180, 82, 255, .18) !important;
}

.free-featured-slot-old .featured-rank {
  position: absolute !important;
  left: 14px !important;
  top: 14px !important;
  z-index: 3 !important;
  width: 62px !important;
  height: 62px !important;
  border-radius: 50% !important;
  background: #02070d !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 26px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.free-featured-slot-old.gold .featured-rank {
  color: #ffd45a !important;
  border: 3px solid #ffd45a !important;
  box-shadow: 0 0 22px rgba(255, 204, 83, .34) !important;
}

.free-featured-slot-old.blue .featured-rank {
  color: #55b7ff !important;
  border: 3px solid #55b7ff !important;
  box-shadow: 0 0 22px rgba(75, 168, 255, .34) !important;
}

.free-featured-slot-old.purple .featured-rank {
  color: #c46bff !important;
  border: 3px solid #c46bff !important;
  box-shadow: 0 0 22px rgba(180, 82, 255, .34) !important;
}

.free-featured-slot-old .featured-label {
  position: absolute !important;
  right: 14px !important;
  top: 18px !important;
  z-index: 3 !important;
  min-width: 132px !important;
  height: 48px !important;
  padding: 0 18px !important;
  border-radius: 13px !important;
  background: #02070d !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
}

.free-featured-slot-old.gold .featured-label {
  color: #ffd45a !important;
  border: 3px solid #ffd45a !important;
}

.free-featured-slot-old.blue .featured-label {
  color: #55b7ff !important;
  border: 3px solid #55b7ff !important;
}

.free-featured-slot-old.purple .featured-label {
  color: #c46bff !important;
  border: 3px solid #c46bff !important;
}

.free-slot-old-body {
  position: relative;
  z-index: 2;
  height: 174px;
  padding: 96px 18px 8px;
  box-sizing: border-box;
}

.free-featured-slot-old h3 {
  margin: 0 0 10px !important;
  color: #fff !important;
  font-size: 21px !important;
  line-height: 1.05 !important;
  font-weight: 950 !important;
  letter-spacing: .04em !important;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}

.free-featured-slot-old .featured-ip {
  margin: 0 0 13px !important;
  color: rgba(225,236,255,.72) !important;
  font-size: 14px !important;
}

.free-featured-slot-old .featured-meta {
  display: flex !important;
  gap: 11px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  color: rgba(225,236,255,.70) !important;
  font-size: 13px !important;
}

.free-featured-slot-old .featured-meta span {
  white-space: nowrap !important;
}

.free-featured-slot-old .featured-meta .ping {
  font-weight: 950 !important;
}

.free-featured-slot-old .connect-btn {
  position: absolute !important;
  left: 16px !important;
  right: 16px !important;
  bottom: 16px !important;
  z-index: 3 !important;
  width: auto !important;
  margin: 0 !important;
  text-align: center !important;
}

@media (max-width: 1200px) {
  .featured .featured-grid.compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .featured .featured-groups {
    width: min(100%, calc(100vw - 24px));
  }

  .featured .featured-grid.compact-grid {
    grid-template-columns: 1fr;
  }
}


/* CS2_SLOT_BUTTON_ALIGN_FIX_START */
/* Выравнивание занятых/свободных верхних слотов по высоте и кнопке */
.featured-section .featured-card,
.featured-section .featured-slot,
.featured-section .promo-card,
.featured-section .server-card,
.featured-grid .featured-card,
.featured-grid .featured-slot,
.featured-grid .promo-card,
.featured-grid .server-card,
.top-slots .featured-card,
.top-slots .featured-slot,
.top-slots .promo-card,
.top-slots .server-card,
.free-slots .featured-card,
.free-slots .featured-slot,
.free-slots .promo-card,
.free-slots .server-card {
    display: flex;
    flex-direction: column;
}

.featured-section .featured-card > *,
.featured-section .featured-slot > *,
.featured-section .promo-card > *,
.featured-grid .featured-card > *,
.featured-grid .featured-slot > *,
.featured-grid .promo-card > *,
.top-slots .featured-card > *,
.top-slots .featured-slot > *,
.top-slots .promo-card > *,
.free-slots .featured-card > *,
.free-slots .featured-slot > *,
.free-slots .promo-card > * {
    min-width: 0;
}

.featured-section a[href*="connect"],
.featured-section a[href*="pay.php"],
.featured-grid a[href*="connect"],
.featured-grid a[href*="pay.php"],
.top-slots a[href*="connect"],
.top-slots a[href*="pay.php"],
.free-slots a[href*="connect"],
.free-slots a[href*="pay.php"] {
    margin-top: auto;
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Если занятый слот вложил обычную карточку сервера — убираем лишний внутренний перекос */
.featured-section .server-card,
.featured-grid .server-card,
.top-slots .server-card,
.free-slots .server-card {
    height: 100%;
}

.featured-section .server-card .btn,
.featured-grid .server-card .btn,
.top-slots .server-card .btn,
.free-slots .server-card .btn {
    margin-top: auto;
}
/* CS2_SLOT_BUTTON_ALIGN_FIX_END */

