:root {
  --bg: #0a0a0c;
  --panel: #111215;
  --line: rgba(255, 255, 255, 0.09);
  --white: #f2f3f5;
  --muted: #8a8e96;
  --red: #ff2438;
  --red-dim: #8a1420;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
  position: relative;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: repeating-linear-gradient(
    -45deg,
    #fff 0 1px,
    transparent 1px 64px
  );
}

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

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

p {
  margin: 0;
}

/* --- FULLSCREEN PAGE LOADER --- */
.page-loader {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: #0a0a0c !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.dota-spinner {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: dotaPulseSpin 1.4s infinite cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.loader-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 36, 56, 0.8));
}

.loader-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #a0a0a8;
}

@keyframes dotaPulseSpin {
  0% {
    transform: rotate(0deg) scale(0.85);
    opacity: 0.6;
  }
  50% {
    transform: rotate(180deg) scale(1.15);
    opacity: 1;
  }
  100% {
    transform: rotate(360deg) scale(0.85);
    opacity: 0.6;
  }
}

/* HEADER */
.site-header {
  height: 72px;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(255, 36, 56, 0.5));
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  font-family: "Barlow Condensed";
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-name em {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
  margin-left: 6px;
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 26px;
  height: 100%;
  align-items: center;
}

.nav a {
  font-size: 13px;
  color: var(--muted);
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--white);
}

.nav a.active:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 36, 56, 0.7);
}

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

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

.socials a {
  font-size: 16px;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.socials a:hover {
  color: var(--red);
  transform: translateY(-2px);
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}

.menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--white);
  display: block;
  margin: 5px;
}

.mobile-menu {
  display: none;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Добавлен отступ между иконкой и текстом */
  height: 46px;
  padding: 0 24px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  cursor: pointer;
  border: 0;
}

.btn-red {
  background: var(--red);
  color: #0a0a0c;
  box-shadow: 0 0 0 rgba(255, 36, 56, 0);
}

.btn-red:hover {
  box-shadow: 0 8px 30px rgba(255, 36, 56, 0.45);
  transform: translateY(-2px);
}

.btn-line {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--white);
}

.btn-line:hover {
  border-color: var(--red);
  color: var(--red);
}

/* SHARED */
.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.tag i {
  width: 6px;
  height: 6px;
  background: var(--red);
  display: block;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 36, 56, 0.9);
}

/* SECTION HEADER & SUBS BUTTON */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: 44px;
}

.subs-wrapper {
  position: relative;
  display: inline-block;
}

.subs-btn {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--white);
  padding: 10px 18px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.subs-btn i {
  color: var(--red);
  margin-left: 2px;
}

.subs-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: #151619;
}

/* POPOVER SUBS */
.subs-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 240px;
  background: #151619;
  border: 1px solid var(--line);
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 20;
}

.subs-popover:before {
  content: "";
  position: absolute;
  top: -6px;
  right: 20px;
  width: 10px;
  height: 10px;
  background: #151619;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}

.subs-wrapper:hover .subs-popover,
.subs-wrapper.active .subs-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.popover-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.subs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subs-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 2px solid var(--red);
}

.subs-list li.sub-empty {
  border-left-color: var(--muted);
  opacity: 0.5;
}

.sub-num {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}

.sub-empty .sub-num {
  color: var(--muted);
}

.sub-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.sub-role {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* HERO */
.hero {
  padding: 130px 0 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: 
    linear-gradient(180deg, rgba(10, 10, 12, 0.45) 0%, rgba(10, 10, 12, 0.95) 80%, var(--bg) 100%),
    radial-gradient(circle at 78% 18%, rgba(255, 36, 56, 0.18), transparent 50%),
    url('assets/banner.png') center top / cover no-repeat;
}

.hero-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(255, 36, 56, 0.16);
  filter: blur(120px);
  right: -140px;
  top: -80px;
  z-index: 0;
}

.hero-mark {
  position: absolute;
  right: 6%;
  top: 16%;
  width: 280px;
  height: 280px;
  color: var(--red);
  opacity: 0.16;
  z-index: 0;
}

.hero-logo-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 36, 56, 0.3));
}

.hero-content {
  max-width: 640px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(56px, 8vw, 108px);
  line-height: 0.9;
  margin: 16px 0 22px;
  text-shadow: 0 0 40px rgba(255, 36, 56, 0.15);
}

.hero h1 span {
  color: var(--red);
}

.hero-copy {
  font-size: 16px;
  color: var(--muted);
  max-width: 440px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}

.hero-strip {
  display: flex;
  gap: 52px;
  padding: 34px 0;
  margin-top: 76px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.hero-strip div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-strip b {
  font-family: "Barlow Condensed";
  font-size: 26px;
  font-weight: 800;
}

.hero-strip span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 90px;
}

.about-copy h2 {
  font-size: 44px;
  margin: 12px 0 22px;
}

.about-copy p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 14px;
}

.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.about-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.about-list b {
  font-family: "Barlow Condensed";
  font-size: 16px;
  text-transform: uppercase;
  white-space: nowrap;
}

.about-list span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

/* ROSTER */
.players {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.player-card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #151619, #0c0d0f);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.player-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 36, 56, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Контейнер для фото */
.player-photo {
  height: 220px;
  position: relative;
  background: linear-gradient(150deg, #26282e, #101114 70%);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
  overflow: hidden;
}

/* Обязательные стили для самого тега <img> */
.player-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: relative;
  z-index: 1;
}

/* Красный неоновый градиент поверх картинки */
.player-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: 
    /* Тёмный градиент снизу для читаемости текста */
    linear-gradient(180deg, transparent 40%, rgba(10, 10, 12, 0.85) 100%),
    /* Диагональная красная неоновая подсвечивающая полоса */
    linear-gradient(120deg, transparent 50%, rgba(255, 36, 56, 0.35) 100%);
  mix-blend-mode: screen; /* Сохраняет яркость фото под градиентом */
}

/* Надпись роли ставится на самый верхний слой */
.player-photo span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  text-transform: uppercase;
}

.player-info {
  padding: 16px 14px;
}

.player-info b {
  display: block;
  font-family: "Barlow Condensed";
  font-size: 12px;
  color: var(--red);
  margin-bottom: 6px;
}

.player-info h3 {
  font-size: 21px;
}

.player-info span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* MATCH */
.match-wrap {
  max-width: 680px;
  position: relative;
}

.match-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid var(--line);
  height: 110px;
  margin-top: 16px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 36, 56, 0.08),
    transparent 70%
  );
}

.side {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 26px;
  min-width: 0;
}

.side-right {
  justify-content: flex-end;
}

.side-mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: "Barlow Condensed";
  font-size: 20px;
  font-weight: 800;
  clip-path: polygon(15% 0, 100% 0, 85% 100%, 0 100%);
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
}

.side-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.side-mark-ghost {
  border-color: #3a3d43;
  color: #5b5f66;
}

.side-name {
  font-family: "Barlow Condensed";
  font-size: 22px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 22px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  height: 100%;
  justify-content: center;
  flex-shrink: 0;
}

.vs span:first-child {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.bo {
  font-size: 9px;
  color: var(--red);
}

.match-meta {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
  margin: 22px 0 28px;
}

/* NEWS */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.news-card {
  background: var(--panel);
  padding: 26px;
  border-top: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  border-top-color: var(--red);
  background: #151619;
}

.news-date {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.news-card h3 {
  font-size: 22px;
  margin: 12px 0 8px;
  text-transform: none;
  letter-spacing: 0;
}

.news-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.news-card .read-more {
  margin-top: auto;
  padding-top: 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease;
}

.news-card:hover .read-more {
  transform: translateX(4px);
}

/* COMMUNITY */
.community {
  overflow: hidden;
}

.community-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 36, 56, 0.12);
  filter: blur(130px);
  left: 50%;
  top: -260px;
  transform: translateX(-50%);
  z-index: 0;
}

.community-inner {
  text-align: center;
  padding: 20px 0;
}

.community-inner h2 {
  font-size: 48px;
  max-width: 560px;
  margin: 0 auto 28px;
}

/* INTERIOR PAGE HERO */
.page-hero {
  padding: 150px 0 60px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    circle at 15% 20%,
    rgba(255, 36, 56, 0.1),
    transparent 40%
  );
}

.page-hero h1 {
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.92;
  margin: 14px 0 16px;
}

.page-hero p {
  color: var(--muted);
  font-size: 15px;
  max-width: 480px;
}

/* SHOP */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.product-card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #151619, #0c0d0f);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 36, 56, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.product-photo {
  height: 200px;
  position: relative;
  background: linear-gradient(150deg, #26282e, #101114 70%);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
  display: flex;
  align-items: flex-end;
}

.product-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 55%,
    rgba(255, 36, 56, 0.22)
  );
  mix-blend-mode: screen;
}

.product-photo span {
  position: relative;
  z-index: 1;
  padding: 14px;
  font-family: "Barlow Condensed";
  font-size: 15px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.product-info {
  padding: 18px 16px;
}

.product-info .cat {
  display: block;
  font-size: 10px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.product-info h3 {
  font-size: 20px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.price {
  font-family: "Barlow Condensed";
  font-size: 20px;
  color: var(--white);
}

.btn-small {
  height: 38px;
  padding: 0 16px;
  font-size: 11px;
}

/* MODALS */
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.news-modal.active {
  opacity: 1;
  visibility: visible;
}

.news-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(8px);
}

.news-modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease, filter 0.3s ease;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 15px),
    calc(100% - 15px) 100%,
    0 100%
  );
}

.news-modal.active .news-modal-content {
  transform: translateY(0) scale(1);
}

.news-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.news-modal-close:hover {
  color: var(--red);
}

.news-modal h2 {
  font-size: 28px;
  margin: 8px 0 20px;
  line-height: 1.1;
  text-transform: none;
}

.news-modal-body {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.news-modal-body p {
  margin-bottom: 12px;
}

.news-modal-body strong {
  color: var(--white);
}

/* ARCHIVE TIMELINE */
.archive-content {
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
}

.archive-sub {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.archive-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

.timeline-item {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.timeline-item:before {
  content: "";
  position: absolute;
  left: -22px;
  top: 20px;
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--red);
}

.timeline-item:hover {
  border-color: var(--red);
  transform: translateX(4px);
}

.timeline-date {
  font-size: 11px;
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
}

.timeline-item h4 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  margin: 4px 0;
  text-transform: uppercase;
}

.timeline-item p {
  font-size: 12px;
  color: var(--muted);
}

/* MODAL OVERLAP & DEPTH STYLES */
#archive-modal {
  z-index: 1000;
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

#news-modal {
  z-index: 1010;
}

#archive-modal.pushed-back .news-modal-content {
  transform: scale(0.94) translateY(10px);
  filter: brightness(0.4) blur(2px);
  pointer-events: none;
}

.btn-archive,
.subs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-archive i,
.subs-btn i {
  margin-left: 2px;
}

/* FOOTER */
footer {
  padding: 26px 0;
  position: relative;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* MEDIA QUERIES */
@media (max-width: 1000px) {
  .about-grid {
    gap: 50px;
  }
  .players {
    grid-template-columns: repeat(3, 1fr);
  }
  .player-card:nth-child(4),
  .player-card:nth-child(5) {
    display: none;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .hero-mark {
    opacity: 0.1;
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 32px, var(--max));
  }
  .site-header {
    height: 60px;
    padding: 0 16px;
  }
  .nav {
    display: none;
  }
  .socials {
    display: none;
  }
  .header-actions > .btn {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .mobile-menu {
    position: fixed;
    z-index: 89;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 12, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px;
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s;
  }
  .mobile-menu.open {
    max-height: 400px;
  }
  .mobile-menu a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-family: "Barlow Condensed";
    font-size: 20px;
    text-transform: uppercase;
  }
  .mobile-menu a:last-child {
    color: var(--red);
  }

  .hero {
    padding: 76px 0 0;
  }
  .hero-mark {
    display: none;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
  }
  .hero-strip {
    gap: 24px;
    margin-top: 48px;
  }

  .section {
    padding: 64px 0;
  }
  .about-grid {
    display: block;
  }
  .about-list {
    margin-top: 32px;
  }
  .section-head h2,
  .about-copy h2 {
    font-size: 36px;
  }

  .players {
    grid-template-columns: 1fr 1fr;
  }
  .player-card:nth-child(4),
  .player-card:nth-child(5) {
    display: block;
  }
  .player-photo {
    height: 150px;
  }

  .match-card {
    grid-template-columns: 1fr auto 1fr;
    height: auto;
    padding: 16px 0;
  }
  .side {
    padding: 0 10px;
    gap: 8px;
  }
  .side-mark {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
  .side-name {
    font-size: 15px;
  }
  .match-meta {
    gap: 14px;
    flex-wrap: wrap;
  }

  .community-inner h2 {
    font-size: 32px;
  }
  .subs-popover {
    right: auto;
    left: 0;
  }
  .subs-popover:before {
    right: auto;
    left: 20px;
  }

  .news-modal-content {
    padding: 24px 18px;
  }
  .news-modal h2 {
    font-size: 22px;
  }
 /* --- FIX GRID MERCH & CENTERED CARD --- */
.shop-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
}

/* Карточка на всю ширину сетки (4-я по счету) */
.product-card-centered {
  grid-column: 1 / -1 !important;
  max-width: 500px !important;
  margin: 0 auto !important;
  width: 100% !important;
}

/* Адаптив для планшетов и мобильных устройств */
@media (max-width: 900px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .shop-grid {
    grid-template-columns: 1fr !important;
  }
  
  .product-card-centered {
    max-width: 100% !important;
  }
}
}