:root {
  --bg-dark: #070312;
  --bg-dark-alt: #130624;
  --accent-pink: #ff7ad9;
  --accent-pink-soft: #ffb3ec;
  --accent-purple: #b277ff;
  --accent-purple-deep: #5d2b9f;
  --text-main: #ffffff;
  --text-muted: #d6c7ff;
  --card-bg: rgba(14, 5, 32, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 28px 80px rgba(4, 0, 17, 0.9);
  --radius-xl: 26px;
  --transition-fast: 0.18s ease-out;
}

/* Анимации */

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
  0% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.7),
      0 18px 40px rgba(255, 122, 217, 0.7);
    transform: translateY(0);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.9),
      0 22px 60px rgba(255, 122, 217, 1);
    transform: translateY(-1px);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.7),
      0 18px 40px rgba(255, 122, 217, 0.7);
    transform: translateY(0);
  }
}

@keyframes cardBreath {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-4px) scale(1.01); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes logoFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

/* Базовые стили */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 154, 232, 0.12), transparent 60%),
    radial-gradient(circle at bottom right, rgba(122, 93, 255, 0.2), transparent 65%),
    linear-gradient(135deg, #05000a 0%, #100421 40%, #1d0533 100%);
  background-size: 220% 220%;
  animation: gradientShift 18s ease-in-out infinite;
  color: var(--text-main);
  min-height: 100vh;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.page {
  width: 100%;
  max-width: 1200px;
  padding: 24px 18px 40px;
  margin: 0 auto;
}

/* Навбар */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #ffe6fb, #ff7ad9, #8e42ff);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08),
    0 0 26px rgba(255, 122, 217, 0.6);
  flex-shrink: 0;
  animation: logoFloat 6s ease-in-out infinite;
}

.logo-text-main {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--accent-pink-soft);
}

.logo-text-sub {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.9;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Статусный бейдж в шапке */

.nav-tag {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.12), transparent);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
}

/* Навигационные ссылки */

.nav-link {
  opacity: 0.85;
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-fast),
    background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast);
  text-decoration: none;
  color: var(--text-muted);
  padding: 4px 0;
}

.nav-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Пиллы на Discord/VK */

.nav-link-pill {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 3, 22, 0.85);
  backdrop-filter: blur(12px);
}

.nav-link-pill:hover {
  background: rgba(20, 7, 48, 0.95);
  color: var(--accent-pink-soft);
}

/* Уникальная кнопка профиля */

.nav-profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.18), transparent 60%),
              rgba(7, 3, 25, 0.95);
  color: var(--accent-pink-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  transition:
    transform 0.15s ease-out,
    box-shadow 0.15s ease-out,
    border-color 0.15s ease-out,
    background 0.15s ease-out;
}

.nav-profile-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #ffe5ff, #ff7ad9, #b277ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #1a021c;
}

.nav-profile-label {
  white-space: nowrap;
}

.nav-profile:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.4);
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.22), transparent 60%),
              rgba(14, 6, 40, 0.98);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
}

.nav-profile:active {
  transform: translateY(1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
}

/* Основной блок */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 26px;
  padding: 24px;
  border-radius: 32px;
  background: radial-gradient(circle at top right, rgba(255, 122, 217, 0.12), transparent 55%),
    radial-gradient(circle at bottom left, rgba(119, 76, 255, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(9, 3, 30, 0.95), rgba(15, 5, 45, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
}

/* Левая часть: текст */

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
}

.pill {
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(247, 200, 255, 0.7);
  color: var(--accent-pink-soft);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.12), transparent 55%);
}

.pill-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(7, 3, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--accent-pink-soft);
}

.hero-title {
  font-size: clamp(26px, 3.1vw, 32px);
  font-weight: 700;
  line-height: 1.08;
}

.hero-title span.main {
  color: var(--accent-pink-soft);
  text-shadow: 0 0 20px rgba(255, 122, 217, 0.7);
}

.hero-title span.ao {
  color: var(--accent-purple);
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.5;
}

.hero-subtitle strong {
  color: var(--accent-pink);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* Кнопки */

.btn-main {
  position: relative;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1a021c;
  background: radial-gradient(circle at 0 0, #ffe8ff, #ff7ad9, #ffd6ff);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6),
    0 18px 40px rgba(255, 122, 217, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.14s ease-out,
    box-shadow 0.14s.ease-out,
    filter 0.14s ease-out;
  animation: pulseGlow 2.2s ease-in-out infinite;
}

.btn-main::after {
  content: "▶";
  font-size: 13px;
  margin-left: 2px;
}

.btn-main:hover {
  transform: translateY(-1px) scale(1.01);
  filter: brightness(1.05);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8),
    0 22px 60px rgba(255, 122, 217, 0.85);
}

.btn-main:active {
  transform: translateY(1px) scale(0.99);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7),
    0 10px 30px rgba(255, 122, 217, 0.7);
}

.btn-secondary {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 3, 22, 0.8);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(16px);
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    color var(--transition-fast);
}

.btn-secondary-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-purple);
  box-shadow: 0 0 8px rgba(178, 119, 255, 0.9);
}

.btn-secondary:hover {
  background: rgba(20, 7, 48, 0.95);
  border-color: rgba(255, 179, 236, 0.7);
  transform: translateY(-1px);
  color: var(--accent-pink-soft);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.hero-meta-item {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(10, 4, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Правая часть: карточка клиента */

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-card {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  padding: 14px 14px 11px;
  box-shadow: 0 18px 60px rgba(2, 0, 14, 0.9);
  overflow: hidden;
  max-width: 510px;
  width: 100%;
  animation: cardBreath 8s ease-in-out infinite;
}

.client-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

.client-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.client-dots {
  display: flex;
  gap: 4px;
}

.client-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f97373;
}

.client-dot:nth-child(2) {
  background: #facc15;
}
.client-dot:nth-child(3) {
  background: #22c55e;
}

.client-title {
  font-weight: 600;
  color: #fef5ff;
}

.client-subtitle {
  font-size: 10px;
  opacity: 0.8;
}

.client-status {
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(33, 12, 75, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--accent-pink-soft);
}

.client-image-wrapper {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #03010a;
  position: relative;
  isolation: isolate;
}

.client-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Читаемый оверлей на скрине */

.client-overlay {
  position: absolute;
  left: 12px;
  bottom: 10px;
  right: 12px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  pointer-events: none;
}

.client-bubble {
  max-width: 70%;
  padding: 8px 11px;
  border-radius: 14px;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.18), transparent 65%),
          rgba(5, 0, 20, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
}

.client-bubble-title {
  font-size: 11px;
  font-weight: 600;
  color: #fff8ff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}

.client-bubble-sub {
  margin-top: 3px;
  font-size: 10px;
  color: #f9b7ff;
  opacity: 0.95;
}

/* Блок “как начать” */

.steps {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  font-size: 12px;
}

.step-card {
  border-radius: 20px;
  background: rgba(13, 4, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease-out, background 0.25s ease-out;
}

.step-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at top,
    rgba(255, 122, 217, 0.11),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.3s ease-out;
  pointer-events: none;
}

.step-card:hover::before {
  opacity: 1;
}

.step-card:hover {
  transform: translateY(-3px);
  background: rgba(20, 7, 48, 0.9);
}

.step-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-purple);
}

.step-title {
  font-size: 13px;
  font-weight: 600;
  color: #fef6ff;
}

.step-text {
  color: var(--text-muted);
  line-height: 1.4;
}

/* Инфо-блок (обновления) */

.info-section {
  margin-top: 32px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(10, 4, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.info-text {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.5;
}

/* Мини-игры */

.minigames {
  margin-top: 32px;
  padding: 20px 20px 22px;
  border-radius: 26px;
  background: radial-gradient(circle at top, rgba(255, 122, 217, 0.12), transparent 60%),
              rgba(9, 3, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.minigames-header {
  margin-bottom: 14px;
}

.minigames-title {
  font-size: 20px;
  margin-bottom: 4px;
}

.minigames-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 540px;
}

.minigames-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.minigame-card {
  border-radius: 18px;
  background: rgba(13, 4, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease-out, background 0.22s ease-out,
              border-color 0.22s ease-out;
}

.minigame-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(255, 122, 217, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease-out;
  pointer-events: none;
}

.minigame-card:hover::before {
  opacity: 1;
}

.minigame-card:hover {
  transform: translateY(-3px);
  background: rgba(22, 8, 55, 0.98);
  border-color: rgba(255, 179, 236, 0.8);
}

.minigame-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-pink-soft);
  text-decoration: none;
}

.minigame-title:hover {
  text-decoration: underline;
}

.minigame-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Активные игры */

.active-games {
  margin-top: 32px;
  padding: 20px 20px 22px;
  border-radius: 26px;
  background: rgba(10, 4, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.active-games-header {
  margin-bottom: 12px;
}

.active-games-title {
  font-size: 20px;
  margin-bottom: 4px;
}

.active-games-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 540px;
}

.active-games-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.active-game-card {
  border-radius: 20px;
  padding: 12px 14px;
  background: radial-gradient(circle at top left, rgba(255, 122, 217, 0.16), transparent 55%),
              rgba(13, 4, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease-out, box-shadow 0.22s ease-out, border-color 0.22s ease-out;
}

.active-game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 179, 236, 0.9);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.9);
}

.active-game-banner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.active-game-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-purple);
}

.active-game-title-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-pink-soft);
  text-decoration: none;
}

.active-game-title-link:hover {
  text-decoration: underline;
}

.active-game-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.active-game-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.status-pill {
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 2, 18, 0.9);
}

.status-live {
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.7);
}

.status-soon {
  color: #fef9c3;
  border-color: rgba(250, 204, 21, 0.7);
}

.status-ended {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.7);
}

.status-open {
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.7);
}

.status-closed {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.7);
}

/* Календарь игр/кейсов — НОВАЯ ВЕРСИЯ */

.games-calendar {
  margin-top: 32px;
  padding: 20px 20px 22px;
  border-radius: 26px;
  background: radial-gradient(circle at bottom, rgba(122, 93, 255, 0.18), transparent 60%),
              rgba(9, 3, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.calendar-title-block {
  max-width: 540px;
}

.calendar-title {
  font-size: 20px;
  margin-bottom: 4px;
}

.calendar-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.calendar-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.calendar-month-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-pink-soft);
}

.calendar-nav-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 4, 32, 0.9);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    border-color var(--transition-fast);
}

.calendar-nav-btn:hover {
  background: rgba(255, 122, 217, 0.2);
  border-color: rgba(255, 179, 236, 0.8);
  transform: translateY(-1px);
}

/* Сетка календаря */

.calendar-body {
  margin-top: 10px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.calendar-weekdays span {
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.calendar-day {
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 4, 30, 0.9);
  font-size: 11px;
  position: relative;
  padding: 4px 5px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.calendar-day-number {
  opacity: 0.9;
}

.calendar-day-other-month {
  opacity: 0.35;
}

.calendar-day:hover {
  background: rgba(22, 7, 56, 0.95);
  border-color: rgba(255, 122, 217, 0.7);
  transform: translateY(-1px);
}

.calendar-day-selected {
  border-color: rgba(255, 122, 217, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 122, 217, 0.9);
}

.calendar-day-has-games::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 4px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-pink);
  box-shadow: 0 0 10px rgba(255, 122, 217, 0.9);
}

/* Детали дня под календарём */

.calendar-day-details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.calendar-day-title {
  font-size: 14px;
  margin-bottom: 6px;
}

.calendar-games-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calendar-empty-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* Карточки игр под календарём */

.calendar-game-card {
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(7, 2, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calendar-game-header {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.calendar-game-title {
  font-weight: 700;
}

.calendar-game-meta {
  font-size: 11px;
  color: #c4b9ff;
}

.calendar-game-slots {
  font-size: 11px;
  color: #e5e7eb;
}

.calendar-game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.calendar-game-signup-form {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calendar-role-select {
  font-size: 11px;
  border-radius: 999px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 2, 22, 0.9);
  color: #e5e7eb;
}

.calendar-game-btn {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 11px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;      /* одинаковая ширина */
  white-space: nowrap;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.calendar-game-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 179, 236, 0.8);
  transform: translateY(-1px);
}

.calendar-game-btn-link {
  text-decoration: none;
}

/* Футер */

.footer {
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  font-size: 11px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 700px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.18s ease-out, color 0.18s ease-out;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-pink-soft);
}

/* Адаптив */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
    order: -1;
  }

  .page {
    padding-top: 14px;
  }

  .minigames-grid,
  .active-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 18px 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-main,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .minigames-grid,
  .active-games-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .calendar-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* NEWS GRID ON INDEX */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.news-card {
  background: rgba(13, 4, 32, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-4px);
  background: rgba(20, 7, 48, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Стиль для обновлений (чуть отличается) */
.news-card-update {
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), rgba(13, 4, 32, 0.9));
  border-color: rgba(59, 130, 246, 0.3);
}
.news-card-update:hover {
  border-color: rgba(59, 130, 246, 0.6);
}

.news-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.news-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: 0.05em;
}
.badge-news { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; }
.badge-update { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }

.news-date { font-size: 11px; color: var(--text-muted); opacity: 0.7; }

.news-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.news-card-excerpt {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

.news-card-footer {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* Блок "Обновления и новости" на главной */

.news-section {
  margin-top: 40px;
}

.news-section-inner {
  background: radial-gradient(circle at top, rgba(124, 58, 237, 0.35), rgba(15, 23, 42, 0.98));
  border-radius: 32px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 24px 22px 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.95);
}

.news-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.news-section-title {
  font-size: 20px;
  font-weight: 800;
  color: #f9fafb;
  margin: 0 0 4px;
}

.news-section-subtitle {
  font-size: 12px;
  color: #cbd5ff;
  opacity: 0.9;
  margin: 0;
}

/* Грид карточек */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* Карточка новости */
.news-card {
  position: relative;
  background: rgba(15, 23, 42, 0.95);
  border-radius: 18px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  cursor: pointer;
  transition:
      transform 0.16s ease,
      box-shadow 0.16s ease,
      border-color 0.16s ease,
      background 0.16s ease;
  display: flex;
  flex-direction: column;
  min-height: 160px;
}

.news-card-update {
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.7);
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.95);
  border-color: rgba(244, 114, 182, 0.95);
  background: radial-gradient(circle at top left,
      rgba(236, 72, 153, 0.2),
      rgba(15, 23, 42, 1));
}

.news-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* Бейджи типов */
.news-badge {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 700;
}

.badge-news {
  background: rgba(147, 51, 234, 0.25);
  color: #e9d5ff;
  border: 1px solid rgba(216, 180, 254, 0.9);
}

.badge-update {
  background: rgba(37, 99, 235, 0.26);
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.95);
}

.news-date {
  font-size: 11px;
  color: #9ca3af;
}

/* Заголовок и текст */
.news-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #f9fafb;
  margin: 0 0 6px;
  line-height: 1.3;
}

.news-card-excerpt {
  font-size: 12px;
  color: #e5e7eb;
  opacity: 0.88;
  margin: 0 0 10px;
}

/* Футер карточки */
.news-card-footer {
  margin-top: auto;
  font-size: 12px;
  color: #e5e7eb;
  display: flex;
  justify-content: flex-start;
}

.news-read-more {
  font-size: 11px;
  text-decoration: underline;
  opacity: 0.85;
}

.news-card:hover .news-read-more {
  opacity: 1;
}

/* === Блок "Обновления и новости" на главной === */

.home-news {
    margin-top: 40px;
}

.home-news-header {
    margin-bottom: 16px;
}

.home-news-title {
    font-size: 22px;
    font-weight: 800;
    color: #f9fafb;
    margin: 0 0 4px;
}

.home-news-subtitle {
    font-size: 13px;
    color: #cbd5ff;
    opacity: 0.9;
    margin: 0;
}

.home-news-empty {
    font-size: 14px;
    color: #e5e7eb;
    opacity: 0.85;
}

/* Сетка карточек */
.home-news-list {
    background: radial-gradient(circle at top, rgba(124, 58, 237, 0.25), rgba(15, 23, 42, 0.98));
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    padding: 18px 18px 14px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 1024px) {
    .home-news-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-news-list {
        grid-template-columns: 1fr;
    }
}

/* Карточка новости */
.home-news-item {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;

    background: rgba(15, 23, 42, 0.98);
    border-radius: 18px;
    padding: 14px 14px 12px;
    min-height: 170px;

    border: 1px solid rgba(148, 163, 184, 0.5);
    cursor: pointer;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
}

.home-news-item--update {
    border-color: rgba(59, 130, 246, 0.95);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5);
}

.home-news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.95);
    border-color: rgba(244, 114, 182, 0.95);
    background: radial-gradient(circle at top left,
        rgba(236, 72, 153, 0.18),
        rgba(15, 23, 42, 1));
}

/* Верх карточки */
.home-news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.home-news-tag {
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 3px 8px;
    font-weight: 700;
}

.home-news-tag--news {
    background: rgba(147, 51, 234, 0.3);
    color: #e9d5ff;
    border: 1px solid rgba(216, 180, 254, 0.9);
}

.home-news-tag--update {
    background: rgba(37, 99, 235, 0.3);
    color: #bfdbfe;
    border: 1px solid rgba(59, 130, 246, 0.95);
}

.home-news-date {
    font-size: 11px;
    color: #9ca3af;
}

/* Текст */
.home-news-item-title {
    font-size: 14px;
    font-weight: 700;
    color: #f9fafb;
    margin: 0 0 6px;
    line-height: 1.3;
}

.home-news-item-excerpt {
    font-size: 12px;
    color: #e5e7eb;
    opacity: 0.88;
    margin: 0 0 10px;
}

/* Низ карточки */
.home-news-footer {
    margin-top: auto;
}

.home-news-more {
    font-size: 11px;
    color: #e5e7eb;
    text-decoration: underline;
    opacity: 0.85;
}

.home-news-item:hover .home-news-more {
    opacity: 1;
}

/* ==== ПЕРЕОФОРМЛЕНИЕ БЛОКА "ОБНОВЛЕНИЯ И НОВОСТИ" ==== */

.info-section#updates {
  margin-top: 40px;
}

/* Заголовок и подзаголовок */
.info-section#updates .info-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.info-section#updates .info-text {
  font-size: 13px;
  color: #cbd5ff;
  opacity: 0.9;
  margin-bottom: 10px;
}

/* Контейнер с карточками */
.info-section#updates .news-grid {
  margin-top: 8px;
  background: radial-gradient(circle at top, rgba(124, 58, 237, 0.3), rgba(15, 23, 42, 0.98));
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 16px 16px 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1024px) {
  .info-section#updates .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .info-section#updates .news-grid {
    grid-template-columns: 1fr;
  }
}

/* Сама карточка новости */
.info-section#updates .news-card {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 18px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(148, 163, 184, 0.6);

  display: flex;
  flex-direction: column;
  min-height: 170px;

  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.info-section#updates .news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.95);
  border-color: rgba(244, 114, 182, 0.95);
  background: radial-gradient(circle at top left,
    rgba(236, 72, 153, 0.2),
    rgba(15, 23, 42, 1));
}

/* Верх карточки: бейдж + дата */
.info-section#updates .news-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.info-section#updates .news-badge {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 700;
}

.info-section#updates .badge-news {
  background: rgba(147, 51, 234, 0.35);
  color: #e9d5ff;
  border: 1px solid rgba(216, 180, 254, 0.9);
}

.info-section#updates .badge-update {
  background: rgba(37, 99, 235, 0.35);
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.95);
}

.info-section#updates .news-date {
  font-size: 11px;
  color: #9ca3af;
}

/* Заголовок и текст */
.info-section#updates .news-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #f9fafb;
  margin: 0 0 6px;
  line-height: 1.3;
}

.info-section#updates .news-card-excerpt {
  font-size: 12px;
  color: #e5e7eb;
  opacity: 0.88;
  margin: 0 0 10px;
}

/* Низ карточки */
.info-section#updates .news-card-footer {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.info-section#updates .news-card-footer span {
  font-size: 11px;
  color: #e5e7eb;
  text-decoration: underline;
  opacity: 0.85;
}

.info-section#updates .news-card:hover .news-card-footer span {
  opacity: 1;
}

/* === Лента новостей на главной === */
.news-section {
  margin-top: 40px;
}

.news-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.news-section-title {
  font-size: 22px;
  font-weight: 800;
  color: #f9fafb;
  margin: 0 0 4px;
}

.news-section-subtitle {
  font-size: 13px;
  color: #cbd5ff;
  opacity: 0.9;
  margin: 0;
}

.news-section-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.8);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.news-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.news-nav-btn:not(:disabled):hover {
  background: rgba(236,72,153,0.2);
  border-color: rgba(244,114,182,0.95);
  transform: translateY(-1px);
}

.news-page-indicator {
  font-size: 12px;
  color: #9ca3af;
}

/* Сетка карточек */
.news-cards {
  background: radial-gradient(circle at top, rgba(124,58,237,0.3), rgba(15,23,42,0.98));
  border-radius: 28px;
  border: 1px solid rgba(148,163,184,0.5);
  padding: 16px 16px 12px;
  box-shadow: 0 20px 50px rgba(15,23,42,0.9);
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

@media (max-width: 1024px) {
  .news-cards {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 640px) {
  .news-cards {
    grid-template-columns: 1fr;
  }
}

/* Карточка новости */
.news-card {
  background: rgba(15,23,42,0.98);
  border-radius: 18px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(148,163,184,0.6);
  display: flex;
  flex-direction: column;
  min-height: 170px;
  cursor: pointer;
  transition:
      transform 0.16s ease,
      box-shadow 0.16s ease,
      border-color 0.16s ease,
      background 0.16s ease;
}

.news-card--update {
  border-color: rgba(59,130,246,0.95);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.4);
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(15,23,42,0.95);
  border-color: rgba(244,114,182,0.95);
  background: radial-gradient(circle at top left,
    rgba(236,72,153,0.2),
    rgba(15,23,42,1));
}

/* Верх карточки */
.news-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.news-tag {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 700;
}

.news-tag--news {
  background: rgba(147,51,234,0.35);
  color: #e9d5ff;
  border: 1px solid rgba(216,180,254,0.9);
}

.news-tag--update {
  background: rgba(37,99,235,0.35);
  color: #bfdbfe;
  border: 1px solid rgba(59,130,246,0.95);
}

.news-date {
  font-size: 11px;
  color: #9ca3af;
}

/* Текст */
.news-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #f9fafb;
  margin: 0 0 6px;
  line-height: 1.3;
}

.news-card-excerpt {
  font-size: 12px;
  color: #e5e7eb;
  opacity: 0.88;
  margin: 0 0 10px;
}

/* Низ карточки */
.news-card-footer {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.news-read-more {
  font-size: 11px;
  color: #e5e7eb;
  text-decoration: underline;
  opacity: 0.85;
}

.news-card:hover .news-read-more {
  opacity: 1;
}

/* === Модалка новости === */
.news-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.news-modal-backdrop.is-open {
  display: flex;
}

.news-modal-window {
  max-width: 720px;
  width: 100%;
  margin: 0 16px;
  background: rgba(15,23,42,0.98);
  border-radius: 24px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(148,163,184,0.5);
  box-shadow: 0 24px 70px rgba(0,0,0,0.95);
  position: relative;
}

.news-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: rgba(15,23,42,1);
  color: #e5e7eb;
  font-size: 18px;
  cursor: pointer;
}

.news-modal-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}

.news-modal-tag--news {
  background: rgba(147,51,234,0.25);
  color: #e9d5ff;
  border: 1px solid rgba(216,180,254,0.9);
}

.news-modal-tag--update {
  background: rgba(37,99,235,0.25);
  color: #bfdbfe;
  border: 1px solid rgba(59,130,246,0.95);
}

.news-modal-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #f9fafb;
}

.news-modal-meta {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 14px;
}

.news-modal-content {
  font-size: 14px;
  line-height: 1.7;
  color: #e5e7eb;
}

.news-modal-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 8px 0;
}

/* Управление страницами новостей (стрелки + индикатор) */
.home-news-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.8);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.news-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.news-nav-btn:not(:disabled):hover {
  background: rgba(236,72,153,0.2);
  border-color: rgba(244,114,182,0.95);
  transform: translateY(-1px);
}

.home-news-page {
  font-size: 12px;
  color: #9ca3af;
}

/* Модалка новости */
.news-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.news-modal-backdrop.is-open {
  display: flex;
}

.news-modal-window {
  max-width: 720px;
  width: 100%;
  margin: 0 16px;
  background: rgba(15,23,42,0.98);
  border-radius: 24px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(148,163,184,0.5);
  box-shadow: 0 24px 70px rgba(0,0,0,0.95);
  position: relative;
}

.news-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: rgba(15,23,42,1);
  color: #e5e7eb;
  font-size: 18px;
  cursor: pointer;
}

.news-modal-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}

.news-modal-tag--news {
  background: rgba(147,51,234,0.25);
  color: #e9d5ff;
  border: 1px solid rgba(216,180,254,0.9);
}

.news-modal-tag--update {
  background: rgba(37,99,235,0.25);
  color: #bfdbfe;
  border: 1px solid rgba(59,130,246,0.95);
}

.news-modal-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #f9fafb;
}

.news-modal-meta {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 14px;
}

.news-modal-content {
  font-size: 14px;
  line-height: 1.7;
  color: #e5e7eb;
}

.news-modal-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 8px 0;
}

/* Обёртка блока новостей, чтобы заголовок был внутри фона */
.home-news {
  margin-top: 40px;
}

.home-news-inner {
  background: radial-gradient(circle at top, rgba(124, 58, 237, 0.25), rgba(15, 23, 42, 0.98));
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 18px 18px 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
}

/* Чтобы старый фон/рамки не висели на .home-news-list */
.home-news-inner .home-news-list {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-top: 8px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1024px) {
  .home-news-inner .home-news-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-news-inner .home-news-list {
    grid-template-columns: 1fr;
  }
}

/* Контролы снизу под карточками уже описаны, оставляем как есть */

.news-modal-download {
  margin-top: 18px;
  background: linear-gradient(135deg, rgba(30,58,138,0.45), rgba(17,24,39,0.9));
  border: 1px solid rgba(59,130,246,0.7);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.news-modal-download-text {
  max-width: 70%;
}

.news-modal-download-title {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}

.news-modal-download-sub {
  font-size: 12px;
  color: #93c5fd;
}

.news-modal-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: 13px;А
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease-out, transform 0.15s ease-out;
}

.news-modal-download-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .news-modal-download {
    flex-direction: column;
    align-items: flex-start;
  }
  .news-modal-download-text {
    max-width: 100%;
  }
}

/* Обёртка блока "Обновления и новости" */
.home-news {
  margin-top: 40px;
}

.home-news-inner {
  background: radial-gradient(circle at top, rgba(124, 58, 237, 0.25), rgba(15, 23, 42, 0.98));
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 18px 18px 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
}

.home-news-header {
  margin-bottom: 8px;
}

.home-news-title {
  font-size: 22px;
  font-weight: 800;
  color: #f9fafb;
  margin: 0 0 4px;
}

.home-news-subtitle {
  font-size: 13px;
  color: #cbd5ff;
  opacity: 0.9;
  margin: 0;
}

.home-news-empty {
  font-size: 14px;
  color: #e5e7eb;
  opacity: 0.85;
}

/* Сетка карточек внутри обёртки */
.home-news-inner .home-news-list {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-top: 8px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1024px) {
  .home-news-inner .home-news-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-news-inner .home-news-list {
    grid-template-columns: 1fr;
  }
}

/* Стрелки снизу под карточками */
.home-news-controls {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.news-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.8);
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.news-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.news-nav-btn:not(:disabled):hover {
  background: rgba(236,72,153,0.2);
  border-color: rgba(244,114,182,0.95);
  transform: translateY(-1px);
}

.home-news-page {
  font-size: 12px;
  color: #9ca3af;
}

/* Модалка (если ещё не добавлял — добавь) */
.news-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.news-modal-backdrop.is-open {
  display: flex;
}

.news-modal-window {
  max-width: 720px;
  width: 100%;
  margin: 0 16px;
  background: rgba(15,23,42,0.98);
  border-radius: 24px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(148,163,184,0.5);
  box-shadow: 0 24px 70px rgba(0,0,0,0.95);
  position: relative;
}

.news-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: rgba(15,23,42,1);
  color: #e5e7eb;
  font-size: 18px;
  cursor: pointer;
}

.news-modal-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}

.news-modal-tag--news {
  background: rgba(147,51,234,0.25);
  color: #e9d5ff;
  border: 1px solid rgba(216,180,254,0.9);
}

.news-modal-tag--update {
  background: rgba(37,99,235,0.25);
  color: #bfdbfe;
  border: 1px solid rgba(59,130,246,0.95);
}

.news-modal-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #f9fafb;
}

.news-modal-meta {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 14px;
}

.news-modal-content {
  font-size: 14px;
  line-height: 1.7;
  color: #e5e7eb;
}

.news-modal-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 8px 0;
}

/* Блок "Скачать" в модалке тех.обновы */
.news-modal-download {
  margin-top: 18px;
  background: linear-gradient(135deg, rgba(30,58,138,0.45), rgba(17,24,39,0.9));
  border: 1px solid rgba(59,130,246,0.7);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.news-modal-download-text {
  max-width: 70%;
}

.news-modal-download-title {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
}

.news-modal-download-sub {
  font-size: 12px;
  color: #93c5fd;
}

.news-modal-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease-out, transform 0.15s ease-out;
}

.news-modal-download-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .news-modal-download {
    flex-direction: column;
    align-items: flex-start;
  }
  .news-modal-download-text {
    max-width: 100%;
  }
}

/* ===== FAQ PAGE ===== */
.faq-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px 40px;
}

.faq-container {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.95);
  padding: 24px 24px 22px;
}

.faq-title {
  font-size: 26px;
  font-weight: 800;
  color: #f9fafb;
  margin: 0 0 6px;
}

.faq-subtitle {
  font-size: 14px;
  color: #cbd5ff;
  margin: 0 0 18px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  padding: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.faq-item:first-child {
  border-top: none;
}

.faq-question {
  font-size: 16px;
  font-weight: 700;
  color: #e5e7eb;
  margin: 0 0 6px;
}

.faq-answer {
  font-size: 14px;
  color: #e5e7eb;
  line-height: 1.7;
  margin: 0;
}

.faq-list-bullets {
  margin: 6px 0 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: #e5e7eb;
}

.faq-list-bullets li {
  margin-bottom: 4px;
}

.faq-back {
  margin-top: 18px;
}

/* ===== UPDATES PAGE ===== */
.updates-page {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px 40px;
}

.updates-container {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.95);
  padding: 24px 24px 22px;
}

.updates-title {
  font-size: 24px;
  font-weight: 800;
  color: #f9fafb;
  margin: 0 0 6px;
}

.updates-subtitle {
  font-size: 14px;
  color: #cbd5ff;
  margin: 0 0 16px;
}

.updates-empty {
  font-size: 14px;
  color: #e5e7eb;
}

.updates-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.update-card {
  background: rgba(15, 23, 42, 1);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 14px 16px 12px;
}

.update-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.update-card-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 700;
}

.update-card-tag--news {
  background: rgba(147, 51, 234, 0.35);
  color: #e9d5ff;
  border: 1px solid rgba(216, 180, 254, 0.9);
}

.update-card-tag--update {
  background: rgba(37, 99, 235, 0.35);
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.95);
}

.update-card-date {
  font-size: 12px;
  color: #9ca3af;
}

.update-card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}

.update-card-title a {
  color: #f9fafb;
  text-decoration: none;
}

.update-card-title a:hover {
  text-decoration: underline;
}

.update-card-excerpt {
  font-size: 14px;
  color: #e5e7eb;
  opacity: 0.9;
  margin: 0 0 8px;
}

.update-card-footer {
  display: flex;
  justify-content: flex-end;
}

.update-card-more {
  font-size: 13px;
  color: #c4b5fd;
  text-decoration: underline;
}

.updates-back {
  margin-top: 18px;
}

/* ===== RULES PAGE ===== */
.rules-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px 40px;
}

.rules-container {
  background: rgba(15, 23, 42, 0.98);
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.95);
  padding: 24px 24px 22px;
}

.rules-title {
  font-size: 24px;
  font-weight: 800;
  color: #f9fafb;
  margin: 0 0 6px;
}

.rules-subtitle {
  font-size: 14px;
  color: #cbd5ff;
  margin: 0 0 16px;
}

.rules-section {
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.rules-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #e5e7eb;
  margin: 0 0 6px;
}

.rules-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: #e5e7eb;
}

.rules-list li {
  margin-bottom: 4px;
}

.rules-back {
  margin-top: 18px;
}

/* ===== Общие оверлеи (FAQ / Обновления / Правила) ===== */

.page-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px 24px;
  z-index: 950;
}

.page-overlay.is-open {
  display: flex;
}

.page-overlay-panel {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: rgba(15, 23, 42, 0.98);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95);
  padding: 20px 20px 18px;
  color: #e5e7eb;
}

.page-overlay-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 1);
  color: #e5e7eb;
  font-size: 18px;
  cursor: pointer;
}

.overlay-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #f9fafb;
}

.overlay-subtitle {
  font-size: 13px;
  color: #cbd5ff;
  margin: 0 0 12px;
}

.overlay-content {
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  padding-right: 4px;
  font-size: 14px;
  line-height: 1.7;
}

.overlay-block {
  padding: 10px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.overlay-block:first-child {
  border-top: none;
}

.overlay-block-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #e5e7eb;
}

.overlay-block ul {
  margin: 4px 0 0 0;
  padding-left: 18px;
}

.overlay-block li {
  margin-bottom: 3px;
}

/* Список тех.обновлений в оверлее "Обновления" */

.overlay-updates-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.overlay-update-card {
  background: rgba(15, 23, 42, 1);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 10px 12px;
}

.overlay-update-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.overlay-update-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.35);
  color: #bfdbfe;
  border: 1px solid rgba(59, 130, 246, 0.95);
}

.overlay-update-date {
  font-size: 12px;
  color: #9ca3af;
}

.overlay-update-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 3px;
  color: #f9fafb;
}

.overlay-update-excerpt {
  font-size: 13px;
  color: #e5e7eb;
  opacity: 0.9;
  margin: 0 0 6px;
}

.overlay-update-footer {
  display: flex;
  justify-content: flex-end;
}

.overlay-update-open {
  border: none;
  background: transparent;
  font-size: 13px;
  color: #c4b5fd;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.overlay-empty {
  font-size: 14px;
  color: #e5e7eb;
  opacity: 0.85;
}

/* === Плавные оверлеи (FAQ / Обновления / Правила) === */

.page-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px 24px;
  /* скрытое состояние */
  opacity: 0;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.0);
  transition: opacity 0.18s ease-out, background 0.18s ease-out;
  z-index: 950;
}

.page-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.9);
}

.page-overlay-panel {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: rgba(15, 23, 42, 0.98);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95);
  padding: 20px 20px 18px;
  color: #e5e7eb;
  /* анимация появления панели */
  transform: translateY(12px) scale(0.97);
  opacity: 0;
  transition: opacity 0.22s ease-out, transform 0.22s ease-out;
}

.page-overlay.is-open .page-overlay-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* === Плавная модалка новости === */

.news-modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  /* скрытое состояние */
  opacity: 0;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.0);
  transition: opacity 0.18s ease-out, background 0.18s ease-out;
  z-index: 1000;
}

.news-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.8);
}

.news-modal-window {
  max-width: 720px;
  width: 100%;
  margin: 0 16px;
  background: rgba(15, 23, 42, 0.98);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95);
  position: relative;

  /* анимация появления окна */
  transform: translateY(12px) scale(0.97);
  opacity: 0;
  transition: opacity 0.22s ease-out, transform 0.22s ease-out;
}

.news-modal-backdrop.is-open .news-modal-window {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* === Анимация появления карточек новостей при перелистывании === */

.news-card-anim {
  opacity: 0;
  transform: translateY(8px);
  animation: newsFadeIn 0.25s ease-out forwards;
}

@keyframes newsFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.client-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.client-download-card {
  flex: 1 1 260px;
  background: rgba(15, 23, 42, 1);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 12px 14px 12px;

  display: flex;
  flex-direction: column;
}

.client-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #f9fafb;
  margin: 0 0 6px;
}

.client-card-text {
  font-size: 14px;
  color: #e5e7eb;
  opacity: 0.95;
  margin: 0 0 6px;
  line-height: 1.6;
}

.client-card-list {
  margin: 4px 0 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: #e5e7eb;
}

.client-card-list li {
  margin-bottom: 3px;
}

/* кнопка теперь всегда внизу карточки и выглядит как ghost */
.client-download-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #4f46e5;
  background: transparent;
  color: #f9fafb;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease-out, transform 0.15s ease-out;
}

.client-download-btn:hover {
  background: rgba(79, 70, 229, 0.18);
  transform: translateY(-1px);
}

/* модификатор пока можно оставить на будущее, но он уже не обязателен */
.client-download-btn--ghost {
  /* можно ничего не писать, наследует базовый стиль */
}

.client-note {
  margin-top: 10px;
  font-size: 13px;
  color: #9ca3af;
}

/* Полностью убиваем синюю рамку/тень у кнопок клиента */
.client-download-btn,
.client-download-btn:hover,
.client-download-btn:focus,
.client-download-btn:active,
.client-download-btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
