/* Страница «Популярные кооп-игры» — современный лендинг */

.cl-landing {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ==== Hero ==== */
.cl-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 38%, #991b1b 100%);
  color: #ecfeff;
  padding: clamp(30px, 5vw, 52px) clamp(22px, 4vw, 48px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.26);
}

.cl-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(ellipse 55% 45% at 12% 30%, rgba(239, 68, 68, 0.28), transparent 55%),
    radial-gradient(ellipse 40% 38% at 90% 70%, rgba(251, 191, 36, 0.1), transparent 50%);
  pointer-events: none;
}

.cl-hero__glow {
  display: none;
}

.cl-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.cl-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fecaca;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 12px;
}

.cl-hero__title {
  font-size: clamp(1.55rem, 3.8vw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #fff !important;
}

.ps-genre-page #content h1.cl-hero__title {
  color: #fff !important;
}

.cl-hero__lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #fee2e2;
  margin: 0 0 24px;
  max-width: 700px;
}

.cl-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cl-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 700;
  color: #fff !important;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none !important;
  transition: background .18s ease, border-color .18s ease;
}

.cl-hero__chip:hover,
.cl-hero__chip:focus {
  background: rgba(255, 255, 255, .28);
  border-color: rgba(255, 255, 255, .45);
  color: #ffffff !important;
  text-decoration: none !important;
}

.cl-hero__chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ==== Секции ==== */
.cl-sections {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.cl-section__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.cl-section__badge {
  display: inline-flex;
  align-items: center;
  font-size: .78rem;
  font-weight: 800;
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 12px;
  letter-spacing: .02em;
}

.cl-section__title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  flex: 1;
}

.cl-section__all {
  font-size: .85rem;
  font-weight: 700;
  color: #c73e3e;
  text-decoration: none;
}

.cl-section__all:hover,
.cl-section__all:focus {
  color: #a92e2e;
  text-decoration: underline;
}

.cl-section__lead {
  font-size: .92rem;
  line-height: 1.55;
  color: #64748b;
  margin: -6px 0 16px;
  max-width: 720px;
}

/* ==== Фильтр по приставкам ==== */
.cl-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 38%, #991b1b 100%);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.cl-filter__label {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fecaca;
  margin-right: 4px;
  white-space: nowrap;
}

.cl-filter__chip {
  font-size: .82rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.cl-filter__chip:hover,
.cl-filter__chip:focus {
  background: rgba(255, 255, 255, .26);
  border-color: rgba(255, 255, 255, .45);
  color: #ffffff;
}

.cl-filter__chip.is-active {
  background: #ffffff;
  border-color: #ffffff;
  color: #b91c1c;
}

.cl-card__plats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.cl-card__plat {
  font-size: .66rem;
  font-weight: 700;
  color: #475569;
  background: #eef2f6;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2px 7px;
}

/* ==== Сетка карточек ==== */
.cl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.cl-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.cl-card:hover,
.cl-card:focus-within {
  border-color: rgba(199, 62, 62, .4);
  box-shadow: 0 16px 38px rgba(15, 23, 42, .14);
  transform: translateY(-4px);
}

.cl-card__media {
  position: relative;
  display: block;
  height: 200px;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cl-card__media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform .3s ease;
}

.cl-card:hover .cl-card__media img {
  transform: scale(1.03);
}

.cl-card__sales {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 700;
  color: #ffffff;
  background: rgba(15, 23, 42, .8);
  border-radius: 999px;
  padding: 4px 10px;
  backdrop-filter: blur(3px);
}

.cl-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px;
}

.cl-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cl-card__title {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.cl-card__title a {
  color: #0f172a;
  text-decoration: none;
}

.cl-card__title a:hover,
.cl-card__title a:focus {
  color: #c73e3e;
}

.cl-card__platform {
  flex-shrink: 0;
  font-size: .68rem;
  font-weight: 700;
  color: #ffffff;
  background: #334155;
  border-radius: 999px;
  padding: 3px 9px;
}

.cl-card__short {
  font-size: .8rem;
  color: #64748b;
  line-height: 1.4;
  margin: 8px 0 0;
  flex: 1;
}

.cl-card__source {
  font-size: .7rem;
  color: #94a3b8;
  margin: 8px 0 0;
}

.cl-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

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

.cl-card__now {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.cl-card__old {
  font-size: .76rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: line-through;
}

.cl-card__no {
  font-size: .82rem;
  font-weight: 600;
  color: #64748b;
}

.cl-card__stock {
  font-size: .72rem;
  font-weight: 600;
}

.cl-card__stock.is-ok { color: #15803d; }
.cl-card__stock.is-za { color: #b45309; }

.cl-card__btn {
  display: inline-block;
  flex-shrink: 0;
  font-size: .86rem;
  font-weight: 700;
  color: #ffffff !important;
  background: #c73e3e !important;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .18s ease, transform .18s ease;
}

.cl-card__btn:hover,
.cl-card__btn:focus {
  background: #a92e2e !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

/* ==== Модалка заказа ==== */
.ps-coop-modal .modal-content {
  border-radius: 16px;
  border: 0;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .2);
}

.ps-coop-modal .modal-header {
  border-bottom: 1px solid #eef2f6;
  padding: 18px 22px 14px;
}

.ps-coop-modal .modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.ps-coop-modal .modal-body {
  padding: 16px 22px 22px;
}

.ps-coop-modal__game {
  font-size: .9rem;
  font-weight: 600;
  color: #475569;
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.ps-coop-modal .form-control {
  border-radius: 10px;
  border-color: #cbd5e1;
  padding: 9px 12px;
}

.ps-coop-modal select.form-control {
  height: 44px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3e%3cpath fill='%2364748b' d='M6 8L0 0h12z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  cursor: pointer;
}

.ps-coop-modal .form-control.has-error {
  border-color: #dc2626;
}

.ps-coop-modal .ps-coop-order-submit {
  border-radius: 999px;
  background: #c73e3e;
  border: 0;
  font-weight: 700;
  padding: 11px 16px;
}

/* Модалка выбора платформы (Купить) */
.ps-coop-modal.modal-md .modal-dialog {
  width: 480px;
  max-width: 94vw;
}

.ps-buy__hint {
  font-size: .88rem;
  color: #64748b;
  margin: 0 0 14px;
}

.ps-buy__grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ps-buy__tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}

.ps-buy__tile:hover,
.ps-buy__tile:focus {
  border-color: #cbd5e1;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .10);
  transform: translateY(-1px);
  text-decoration: none;
}

.ps-buy__tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ps-buy__tile-plat {
  font-size: .85rem;
  font-weight: 800;
  color: #ffffff;
  border-radius: 8px;
  padding: 5px 12px;
  letter-spacing: .02em;
}

.ps-buy__tile-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .76rem;
  font-weight: 600;
  color: #15803d;
}

.ps-buy__tile-stock .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.ps-buy__tile-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ps-buy__tile-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.ps-buy__tile-go {
  font-size: .82rem;
  font-weight: 700;
  color: #c73e3e;
}

.ps-buy__note {
  font-size: .76rem;
  color: #94a3b8;
  margin: 12px 2px 0;
  line-height: 1.4;
}

/* Нет нужной платформы — оформить заказ */
.ps-buy__no-plat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  background: #fff7ed;
  border: 1px dashed #fdba74;
  border-radius: 12px;
}

.ps-buy__no-plat-text {
  font-size: .85rem;
  font-weight: 600;
  color: #7c2d12;
}

.ps-buy__no-plat-btn {
  font-size: .82rem;
  font-weight: 700;
  color: #ffffff;
  background: #c73e3e;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease;
}

.ps-buy__no-plat-btn:hover,
.ps-buy__no-plat-btn:focus {
  background: #a92e2e;
}

.ps-coop-modal .form-group.ps-coop-captcha {
  display: block;
}

.ps-coop-modal .ps-coop-captcha .g-recaptcha {
  transform: scale(1);
}

.ps-coop-modal .ps-coop-order-submit:hover,
.ps-coop-modal .ps-coop-order-submit:focus {
  background: #a92e2e;
}

.ps-coop-modal__note {
  font-size: .78rem;
  color: #64748b;
  text-align: center;
  margin: 10px 0 0;
}

.ps-coop-captcha {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ps-coop-captcha img {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  height: 40px;
  width: auto;
}

.ps-coop-captcha .form-control {
  flex: 1;
  min-width: 120px;
}

/* ==== CTA блок ==== */
.ps-genre-note {
  margin: 14px 2px 0;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}

.ps-genre-cta {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: clamp(26px, 4vw, 44px);
  text-align: center;
  background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 38%, #991b1b 100%);
  color: #ecfeff;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
}

.ps-genre-cta__title {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  color: #fff !important;
}

.ps-genre-cta__text {
  margin: 0 auto 20px;
  max-width: 660px;
  font-size: 1rem;
  line-height: 1.6;
  color: #fee2e2;
}

.ps-genre-cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.ps-genre-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
  background: #fff;
  color: #b91c1c !important;
}

.ps-genre-cta__btn:hover {
  background: #fdf0f0;
  color: #b91c1c !important;
}

.ps-genre-cta__btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
}

.ps-genre-cta__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff !important;
}

/* ==== Адаптив ==== */
@media (max-width: 767px) {
  .cl-hero {
    padding: 30px 22px;
    border-radius: 16px;
  }
  .cl-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
  .cl-card__body {
    padding: 11px;
  }
  .cl-card__foot {
    flex-direction: column;
    align-items: stretch;
  }
  .cl-card__btn {
    text-align: center;
  }
}
