/* Главная CSRAY: hero (текст + виджет сервера), промо-полоса, плитки, отзывы. */
.cs-home {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px 24px;
  margin: 24px 0 40px;
}
.cs-home > script { display: none; }
/* Всё, что модули выводят внутри сетки (отзывы, модалки), — на всю ширину ниже hero */
.cs-home > :not(.cs-home-hero__text):not(.cs-home-hero__server):not(.cs-promo):not(.cs-tiles) { grid-column: 1 / -1; }
.cs-home-hero__text { grid-column: 1; grid-row: 1; align-self: center; padding: 24px 0; }
.cs-home-hero__text h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.04; font-weight: 700; margin: 0 0 16px; }
.cs-home-hero__text p { color: var(--c-text-2); font-size: 17px; margin: 0 0 24px; max-width: 46ch; }
.cs-home-hero__text .cs-btn { height: 44px; padding: 0 22px; font-size: 15px; }
.cs-home-hero__server { grid-column: 2; grid-row: 1; align-self: center; display: flex; flex-direction: column; gap: 12px; }
.cs-promo { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.cs-promo--empty { display: none; }
.cs-tiles { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }

/* Виджет сервера (разметка мониторинга neo, id не трогаем) */
.cs-home .servers_wrap { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.cs-home .server_block {
  position: relative; width: auto; height: auto; margin: 0; padding: 20px;
  background: var(--c-surface); border: 0; border-radius: var(--r-card); overflow: hidden;
}
.cs-home .server_map_image { position: absolute; inset: 0; width: auto; height: auto; opacity: .14; border-radius: 0; }
.cs-home .server_map_image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; filter: none; }
.cs-home .top_server_block, .cs-home .bottom_server_block { position: relative; z-index: 1; }
.cs-home .top_server_block { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 0; }
.cs-home .server_info_block { min-width: 0; }
.cs-home .server_name_ip { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.cs-home .server_name_custom { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--c-text); }
.cs-home .btn-clipboard { display: inline-flex; background: none; padding: 0; }
.cs-home .btn-clipboard svg { width: 13px; height: 13px; fill: var(--c-text-2); }
.cs-home .server_players_mapname { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; color: var(--c-text-2); font-size: 14px; }
.cs-home .server_players_block, .cs-home .server_players_block div { font-variant-numeric: tabular-nums; color: var(--c-text); background: none; padding: 0; }
.cs-home .server_map_name { color: var(--c-text-2); background: none; padding: 0; }
.cs-home .server_button_play { flex: none; }
.cs-home .server_button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--c-accent); cursor: pointer;
}
.cs-home .server_button:hover { background: var(--c-accent-hover); }
.cs-home .server_button svg { width: 14px; height: 14px; fill: #fff; margin-left: 2px; }
.cs-home .bottom_server_block { margin-top: 18px; padding: 0; }
.cs-home .progress { height: 6px; background: var(--c-surface-3); border-radius: 3px; overflow: hidden; }
.cs-home .progress-value { height: 100%; background: var(--c-accent); border-radius: 3px; box-shadow: none; }
.cs-server-filter { background: none; padding: 0; }

/* Промо-полоса (слайды из админки) */
.cs-promo .image-slider { border-radius: var(--r-card); overflow: hidden; background: var(--c-surface); }
/* Модуль задаёт слайдеру фиксированные высоты (300–420px) — тут высота по содержимому */
.cs-promo .image-slider, .cs-promo .swiper-wrapper, .cs-promo .swiper-slide, .cs-promo .image-slider__image { height: auto !important; }
.cs-promo__slide { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 104px; padding: 22px 88px 22px 28px; }
.cs-promo__slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; border-radius: 0; }
.cs-promo__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--c-surface) 30%, rgb(20 20 20 / 40%)); }
.cs-promo__content, .cs-promo__btn { position: relative; z-index: 1; }
.cs-promo__title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.cs-promo__desc { color: var(--c-text-2); font-size: 14px; }
.cs-promo__btn { flex: none; }
.cs-promo .swiper-button-prev, .cs-promo .swiper-button-next {
  top: auto; bottom: 14px; width: 28px; height: 28px; margin: 0; border-radius: 50%;
  background: rgb(255 255 255 / 8%); color: var(--c-text);
}
.cs-promo .swiper-button-prev { left: auto; right: 48px; }
.cs-promo .swiper-button-next { right: 14px; }
.cs-promo .swiper-button-prev::after, .cs-promo .swiper-button-next::after { font-size: 11px; font-weight: 700; }
.cs-promo .swiper-pagination { bottom: 8px; left: 28px; width: auto; text-align: left; }
.cs-promo .swiper-pagination-bullet { width: 14px; height: 3px; border-radius: 2px; background: var(--c-text-2); opacity: .5; }
.cs-promo .swiper-pagination-bullet-active { width: 22px; background: var(--c-accent); opacity: 1; }

/* Плитки */
.cs-tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  min-height: 96px; padding: 16px 18px; background: var(--c-surface); border-radius: var(--r-card);
  color: var(--c-text); text-decoration: none; transition: background var(--ease);
}
a.cs-tile:hover { background: var(--c-surface-2); color: var(--c-text); }
.cs-tile__label { font-weight: 600; font-size: 16px; }
.cs-tile .cs-link { font-size: 14px; }
.cs-tile__hint { font-size: 12px; color: var(--c-text-2); }
.cs-tile__value { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }

/* Отзывы на главной (разметка модуля без изменений) */
.HomeReviewsTitle { font-size: 24px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; margin: 0 0 16px; }
.HomeReviewsTitle > div { display: flex; align-items: center; gap: 8px; }
.HomeReviewsTitle a { color: var(--c-text-2); cursor: pointer; font-size: 13px; font-weight: 500; background: none; }
.HomeReviewsTitle svg { width: 12px; height: 12px; fill: currentColor; }
.HomeReviewsContainer { display: grid; grid-template-columns: 280px 1fr; gap: 12px; }
.HomeReviewsBlock1, .HomeReviewsReview { background: var(--c-surface); border: 0; border-radius: var(--r-card); padding: 20px; }
.HomeReviewsBlock2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.HomeReviewsReview:empty { display: none; }
.HomeReviewsScore { display: flex; align-items: center; gap: 14px; }
.HomeReviewsScore h1 { font-size: 44px; font-weight: 700; margin: 0; letter-spacing: -0.03em; }
.HomeReviewsScore h3 { font-size: 16px; margin: 0; }
.HomeReviewsScore h6 { font-size: 12px; margin: 2px 0 0; color: var(--c-text-2); font-weight: 400; }
.HomeReviewsStar { margin: 12px 0 0; }
.HomeReviewsStar span { color: var(--c-accent); }
.HomeReviewsButton {
  display: inline-flex; align-items: center; height: 36px; margin-top: 14px; padding: 0 16px;
  border-radius: var(--r-pill); background: var(--c-surface-2); color: var(--c-text); font-weight: 600; font-size: 13px; text-decoration: none;
}
.HomeReviewsButton:hover { background: var(--c-surface-3); color: var(--c-text); }

@media (max-width: 960px) {
  .cs-home { grid-template-columns: 1fr; margin-top: 8px; }
  .cs-home-hero__text, .cs-home-hero__server, .cs-promo, .cs-tiles { grid-column: 1; grid-row: auto; }
  /* В DOM виджет сервера идёт после плиток (порядок модулей ядра) — поднимаем его под hero */
  .cs-home-hero__text { order: 1; } .cs-home-hero__server { order: 2; } .cs-promo { order: 3; } .cs-tiles { order: 4; }
  .cs-home-hero__text { padding: 8px 0 0; }
  .cs-tiles { grid-template-columns: repeat(2, 1fr); }
  .cs-tiles .cs-tile:first-child { grid-column: 1 / -1; }
  .HomeReviewsContainer { grid-template-columns: 1fr; }
  .cs-promo__slide { flex-direction: column; align-items: flex-start; padding: 20px 20px 52px; }
}
