/* ===== NOCAP · Раздел «Моды» (острые стеклянные карточки, монохром) ===== */

.mods-body {
  margin: 0;
  min-height: 100vh;
  color: #fff;
  background: #000;
  font-family: "proxima-nova", "Proxima Nova", "Inter", "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Шапка: используется .header лендинга (см. styles.css) ---------- */
/* Мобильное выпадающее меню под бургером (на /mods нет script.js лендинга) */
.mods-mmenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(6, 7, 12, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.mods-mmenu ul { list-style: none; margin: 0; padding: 10px 20px 18px; display: flex; flex-direction: column; gap: 2px; }
.mods-mmenu a {
  display: block;
  padding: 12px 4px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mods-mmenu a:hover { color: #fff; }
.mods-mmenu__auth { margin-top: 12px; }

/* Контент уходит под фиксированную шапку лендинга */
.mods-page { min-height: 100vh; padding: calc(var(--header-h) + 28px) 0 64px; }

/* ---------- modsmain: сайдбар + контент ---------- */
.modsx__inner {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 28px;
  align-items: start;
}
.modsx__sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.modsx__sidebar-title {
  margin: 0 0 14px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}
.modsx__cats { display: flex; flex-direction: column; gap: 4px; }
.modsx__cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.modsx__cat:hover { color: #fff; background: rgba(255, 255, 255, 0.05); transform: translateX(3px); }
.modsx__cat.is-active { color: #000; background: #fff; }
.modsx__cat-count {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}
.modsx__cat.is-active .modsx__cat-count { background: rgba(0, 0, 0, 0.14); color: #000; }

.modsx__empty { color: rgba(255, 255, 255, 0.5); padding: 40px 0; }

/* ---------- Карточки модов (широкие, фото целиком) ---------- */
.modsx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
}
.modsx-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: #fff;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.modsx-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.modsx-card__media {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: #000;
  overflow: hidden;
}
.modsx-card__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.modsx-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.modsx-card__name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.modsx-card__cta {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.modsx-card:hover .modsx-card__cta { color: #fff; }

/* ---------- Редукс-блок (видео слева, описание+кнопка справа, влезает в экран) ---------- */
.modsx-redux {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.9fr);
  gap: 24px;
  align-items: center;
}
.modsx-redux__player {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - var(--header-h) - 96px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
.modsx-redux__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modsx-redux__info { min-width: 0; }
.modsx-redux__title { margin: 0; font-size: 20px; font-weight: 800; }
.modsx-redux__desc { margin: 8px 0 16px; color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.modsx__open { display: inline-flex; }

/* ---------- modspage (детальная) ---------- */
.modd__back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
.modd__back:hover { color: #fff; }
.modd__layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 26px;
  align-items: start;
}
.modd__media { min-width: 0; }
.modd__player {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
.modd__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modd__photo {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
.modd__photo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.modd__panel {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.modd__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.modd__title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.modd__desc { margin: 8px 0 0; color: rgba(255, 255, 255, 0.6); font-size: 14px; }
.modd__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.modd__download, .modd__howbtn { flex: 1; justify-content: center; min-width: 140px; }

.modd__how {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}
.modd__how-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 12px; }
.modd__how-step { display: block; margin-bottom: 8px; color: #fff; font-weight: 600; }
.modd__socials { display: flex; gap: 10px; flex-wrap: wrap; }
.modd__promo {
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
}
.modd__how-head { margin: 18px 0 8px; color: #fff; font-weight: 700; }
.modd__benefits { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.modd__how-outro { margin: 16px 0 0; }
.modd__how-contact { margin: 14px 0 0; }
.modd__link { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.modd__link:hover { opacity: 0.8; }

/* ---------- Футер ---------- */
.mods-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .modsx__inner { grid-template-columns: 1fr; }
  .modsx__sidebar { position: static; }
  .modsx__cats { flex-direction: row; flex-wrap: wrap; }
  .modsx__cat { width: auto; }
  .modd__layout { grid-template-columns: 1fr; }
  .modd__panel { position: static; }
}
@media (max-width: 560px) {
  .modsx-grid { grid-template-columns: 1fr; }
  .mods-nav { display: none; }
}
