/* ============================================
   STYLE.CSS — основные стили страницы
   ============================================ */

:root {
  --white:        #ffffff;
  --bg:           #f5f6f8;
  --bg-alt:       #eef0f4;
  --surface:      #ffffff;
  --border:       #e2e5ea;
  --text:         #1a1d23;
  --text-muted:   #6b7280;
  --accent:       #3b6ef5;
  --accent-hover: #2a5de0;
  --accent-light: #edf1ff;
  --red:          #ef4444;
  --green:        #22c55e;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 2px 12px rgba(0,0,0,.07);
  --shadow-md:    0 4px 24px rgba(0,0,0,.10);
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Container ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Кнопки ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .18s, color .18s, border-color .18s, transform .15s, box-shadow .18s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59,110,245,.25);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}
.btn-outline:active { transform: translateY(0); }

.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: var(--radius-sm); }

/* ── Section header ── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.section-header p {
  font-size: 16px;
  color: var(--text-muted);
}

/* ── HERO ── */
.hero {
  background: var(--white);
  padding: 80px 24px 64px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Текстовая часть */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 22px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 13px; color: var(--text-muted); }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* HERO — приветственное окно */
.hero-section {
  position: relative;
  background: var(--white);
  padding: 80px 24px 100px;
  overflow: hidden;
}

.hero-inner-wrap {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Приветственное окно */
.hero-welcome {
  flex: 1;
  max-width: 560px;
  text-align: center;
}

.hero-welcome-inner {
  padding: 20px 0;
}

.hero-welcome-inner h1 {
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 32px;
  letter-spacing: -.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-pickaxe {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.hero-welcome .btn { gap: 8px; }

.hero-description {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 20px 0 16px;
  max-width: 480px;
}

.hero-status {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hero-status i {
  font-size: 16px;
}

/* Мыльный пузырь — плавающая анимация */
.hero-bubble-wrap {
  position: relative;
  width: 200px;
  height: 200px;
}

.hero-bubble {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(255,255,255,.95) 0%,
    rgba(255,255,255,.6) 25%,
    rgba(100,180,255,.25) 50%,
    rgba(59,110,245,.12) 70%,
    rgba(100,180,255,.08) 100%
  );
  box-shadow:
    inset -8px -8px 20px rgba(255,255,255,.7),
    inset 8px 8px 20px rgba(150,200,255,.25),
    0 12px 40px rgba(59,110,245,.2);
  animation: bubbleFloat 6s ease-in-out infinite;
}

@keyframes bubbleFloat {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(2%, -3%); }
  50%      { transform: translate(-1%, 2%); }
  75%      { transform: translate(3%, 1%); }
}

/* ── КАК РАБОТАЕТ — шаги + тарифы ── */
.how-section {
  padding: 80px 0;
  background: var(--bg);
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
  margin-bottom: 64px;
}
.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.step-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.step-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 16px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p  { font-size: 14px; color: var(--text-muted); }
.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  font-size: 22px;
  padding: 0 16px;
  flex-shrink: 0;
  align-self: center;
}

/* Тарифы — flat, прозрачные, минимализм */
.tariffs-block {
  padding-top: 24px;
}
.tariffs-title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 40px;
}
.tariff-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tariff-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 425px;
}
.tariff-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.tariff-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .65;
  display: block;
}
.tariff-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
}
.tariff-card-free .tariff-card-bg::after {
  background: linear-gradient(160deg, rgba(59,130,246,.35) 0%, rgba(37,99,235,.45) 100%);
}
.tariff-card-pro .tariff-card-bg::after {
  background: linear-gradient(160deg, rgba(139,92,246,.35) 0%, rgba(124,58,237,.45) 100%);
}
.tariff-card-max .tariff-card-bg::after {
  background: linear-gradient(160deg, rgba(239,68,68,.35) 0%, rgba(220,38,38,.45) 100%);
}
.tariff-card-content {
  position: relative;
  z-index: 1;
  padding: 36px 28px;
  color: #fff;
  min-height: 425px;
  display: flex;
  flex-direction: column;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 500;
}
.tariff-card-content h4 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
  letter-spacing: -.02em;
}
.tariff-size {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 16px;
}
.tariff-desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,.88);
  margin-top: auto;
  font-weight: 500;
}
.tariff-desc strong { color: #fff; font-weight: 600; }

/* Способы оплаты */
.payment-methods {
  padding-top: 64px;
  text-align: center;
}

.payment-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 40px;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.payment-method {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}

.payment-method:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.payment-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}

.payment-method h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.payment-method p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Legal pages */
.legal-section {
  padding: 80px 0;
  background: var(--white);
  min-height: calc(100vh - 64px - 160px);
}

.legal-header {
  text-align: center;
  margin-bottom: 48px;
}

.legal-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.legal-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-block {
  margin-bottom: 48px;
}

.legal-block h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.legal-block h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 12px 0;
}

.legal-block p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 16px;
}

.legal-block ul {
  margin: 16px 0 16px 24px;
}

.legal-block li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 8px;
}

.legal-block a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-block a:hover {
  text-decoration: none;
}

/* ── КАТАЛОГ ── */
/* ── КАТАЛОГ — вертикальный слайдер ── */
.catalog-section {
  padding: 80px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Обёртка слайдера: стрелки + лента */
.catalog-slider-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Кнопки-стрелки */
.catalog-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, border-color .18s, color .18s;
  z-index: 2;
}
.catalog-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.catalog-arrow:active { transform: scale(.96); }
.catalog-arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Контейнер с overflow hidden */
.catalog-track-outer {
  flex: 1;
  overflow: hidden;
}

/* Лента карточек */
.catalog-track {
  display: flex;
  gap: 16px;
  transition: transform .38s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}

/* Одна карточка — высота к ширине 3:1 */
.cat-card-v {
  flex-shrink: 0;
  width: 180px;
  aspect-ratio: 1 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  object-fit: cover;
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.cat-card-v:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

/* Картинка — основная часть карточки 3:1 */
.cat-card-img {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-alt);
}
.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}
.cat-card-v:hover .cat-card-img img {
  transform: scale(1.06);
}

/* Оверлей с количеством файлов */
.cat-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.cat-card-count {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .3px;
}

/* Нижняя часть карточки */
.cat-card-body {
  flex-shrink: 0;
  padding: 12px 10px;
}
.cat-card-body h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-card-body p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Точки-индикаторы */
.catalog-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

/* Кнопка просмотра полного каталога */
.catalog-view-all {
  text-align: center;
  margin-top: 32px;
}

.catalog-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s, width .2s;
}
.catalog-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* Плейсхолдер если картинка не загрузилась */
.cat-card-img img[src=""],
.cat-card-img img:not([src]) {
  display: none;
}
.cat-card-img:not(:has(img[src])) {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  padding: 20px;
}

.game-card-img:not(:has(img[src]))::before {
  content: attr(data-game);
  font-size: 18px;
  font-weight: bold;
  color: white;
  text-align: center;
}

/* Страница игры с модами */
.game-mods-section {
  padding: 40px 0 80px;
  background: var(--white);
  min-height: calc(100vh - 64px - 160px);
}

.game-header {
  margin-bottom: 48px;
}

.game-header-content {
  display: flex;
  gap: 32px;
  align-items: center;
}

.game-cover {
  width: 200px;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.game-info h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.game-info p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.game-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

.game-stats span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--text);
}

.game-stats i {
  color: var(--accent);
}

/* Фильтры модов */
.mods-filter {
  margin-bottom: 32px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: var(--bg);
  border-radius: var(--radius);
  width: fit-content;
}

.filter-tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  border-radius: calc(var(--radius) - 4px);
  cursor: pointer;
  transition: all .2s;
}

.filter-tab:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.filter-tab.active {
  background: var(--white);
  color: var(--accent);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Сетка модов */
.mods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.mod-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .2s ease;
  display: flex;
  flex-direction: column;
}

.mod-card:hover {
  border-color: var(--text-muted);
}

.mod-card-img {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: var(--bg-alt);
}

.cat-card-img img,
.game-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.cat-card-v:hover .game-poster-img {
  transform: scale(1.06);
}

.game-placeholder {
  transition: all 0.3s ease;
}

.cat-card-v:hover .game-placeholder {
  filter: brightness(1.1);
}

.mod-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 12px 8px;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.mod-category {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: .3px;
}

.mod-views {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .3px;
}

.mod-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mod-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.mod-author {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px;
}

.mod-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
}

.mod-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.mod-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mod-stats i {
  color: var(--accent);
}

/* Модальное окно */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-header i {
  color: #f59e0b;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background .2s, color .2s;
}

.modal-close:hover {
  background: var(--bg);
  color: var(--text);
}

.modal-body {
  padding: 24px;
}

.modal-body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 12px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

/* ── ПОПУЛЯРНОЕ ── */
.popular-section {
  padding: 80px 0;
  background: var(--bg);
}
.file-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
}
.file-row:hover { box-shadow: var(--shadow-md); }

.file-rank {
  font-size: 20px;
  font-weight: 800;
  color: var(--border);
  min-width: 28px;
  text-align: center;
}
.file-row:nth-child(1) .file-rank { color: #f59e0b; }
.file-row:nth-child(2) .file-rank { color: #9ca3af; }
.file-row:nth-child(3) .file-rank { color: #b45309; }

.file-icon,
.file-thumb {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-alt);
  flex-shrink: 0;
}
.file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
  background: var(--accent-light);
}
.file-meta { flex: 1; min-width: 0; }
.file-name {
  display: block;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-tags {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.file-tags em { font-style: normal; color: var(--accent); }
.file-size {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 60px;
  text-align: right;
}
.file-dl {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 80px;
  text-align: right;
}

/* ── CTA ── */
.cta-section {
  padding: 80px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.cta-box {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 56px 40px;
  text-align: center;
  color: #fff;
}
.cta-box h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.cta-box p  { font-size: 16px; opacity: .88; margin-bottom: 28px; }
.cta-box .btn-primary {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}
.cta-box .btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

/* ── INFO SECTION ── */
.info-section {
  padding: 80px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.info-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }
.info-card:nth-child(4) { animation-delay: 0.4s; }

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.info-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.info-card:hover .info-icon {
  transform: scale(1.1);
  background: var(--accent);
  color: white;
}

.info-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.info-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── FOOTER ── */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding-top: 48px;
}
.footer-inner {
  display: flex;
  gap: 64px;
  padding-bottom: 48px;
}
.footer-brand { flex: 1; }
.footer-brand .logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  display: block;
  margin-bottom: 10px;
}
.footer-brand p { font-size: 14px; color: var(--text-muted); max-width: 280px; margin-bottom: 16px; }

/* Footer social inside brand section */
.footer-brand .footer-social {
  justify-content: flex-start;
  margin: 0;
  margin-top: 8px;
}

.footer-links { display: flex; gap: 48px; }
.footer-col h5 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text); transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg);
  border-radius: 50%;
  color: var(--text);
  font-size: 16px;
  text-decoration: none;
  transition: all .2s;
}

.social-link:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.social-link span {
  display: none;
}

.footer-legal {
  margin-top: 8px;
  font-size: 12px;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: underline;
}

.footer-legal a:hover {
  color: var(--accent);
}

/* ── Responsive ── */
/* User balance display in header */
.user-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 8px;
}

.user-balance i {
    font-size: 14px;
}

/* Disable text selection on main page */
.hero-section,
.catalog-section,
.how-section,
.reviews-section,
.tariff-section {
    user-select: none;
}

@media (max-width: 1024px) {
  .hero h1 { font-size: 38px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .mods-grid { grid-template-columns: repeat(2, 1fr); }
  .game-header-content { gap: 24px; }
  .game-cover { width: 160px; height: 224px; }
  .game-info h1 { font-size: 28px; }
  .game-stats { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 768px) {
  .hero-inner-wrap { flex-direction: column; gap: 32px; }
  .hero-section { padding: 36px 20px 48px; }
  .hero-welcome-inner { padding: 28px 24px; }
  .hero-welcome-inner h1 { font-size: 28px; }
  .hero-bubble-wrap { width: 140px; height: 140px; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { display: none; }
  .tariff-cards { grid-template-columns: 1fr; }
  .tariff-card { min-height: 350px; }
  .tariff-card-content { min-height: 350px; padding: 28px 20px; }
  .cat-card-v { width: 140px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .mods-grid { grid-template-columns: 1fr; }
  .game-header-content { flex-direction: column; text-align: center; gap: 20px; }
  .game-cover { width: 140px; height: 196px; }
  .game-info h1 { font-size: 24px; }
  .game-stats { justify-content: center; }
  .filter-tabs { flex-wrap: wrap; justify-content: center; }
  .payment-grid { grid-template-columns: repeat(2, 1fr); }
  .file-size, .file-dl { display: none; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { flex-direction: column; gap: 24px; }
}

@media (max-width: 480px) {
  .catalog-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 28px; }
}