/* ===== VARIABLES ===== */
:root {
  --bg-primary: #111114;
  --bg-secondary: #1a1a1f;
  --bg-card: #22222a;
  --bg-card-hover: #2c2c36;
  --yellow: #FFE600;
  --yellow-hover: #f0d900;
  --text-primary: #ffffff;
  --text-secondary: #8a8a9a;
  --text-muted: #5a5a6a;
  --border-color: #2a2a34;
  --radius: 12px;
  --radius-sm: 8px;
}

/* ===== BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn--outline:hover {
  border-color: var(--text-secondary);
}

.btn--yellow {
  background: var(--yellow);
  color: #111;
}

.btn--yellow:hover {
  background: var(--yellow-hover);
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

/* Logo */
.logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo span {
  color: var(--text-primary);
}

/* Nav */
.nav ul {
  display: flex;
  gap: 6px;
}

.nav ul li a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav ul li a:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav ul li a.active {
  color: var(--text-primary);
}

/* Header actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================
   MOBILE NAV
   ===================================================== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 99;
  padding: 20px;
  overflow-y: auto;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav ul li a {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.mobile-nav__buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.mobile-nav__buttons .btn {
  flex: 1;
  text-align: center;
}

/* =====================================================
   MAIN LAYOUT
   ===================================================== */
.main-layout {
  display: flex;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-layout__content {
  flex: 1;
  min-width: 0;
}

/* =====================================================
   PROMO STRIP — горизонтальный скролл
   ===================================================== */
.promo-strip {
  position: relative;
  margin-top: 20px;
}

.promo-strip__wrapper {
  position: relative;
  overflow: hidden;
}

.promo-strip__scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.promo-strip__scroll::-webkit-scrollbar {
  display: none;
}

/* Стрелки навигации */
.promo-strip__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
  pointer-events: none;
}

.promo-strip:hover .promo-strip__arrow {
  opacity: 1;
  pointer-events: auto;
}

.promo-strip__arrow:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-secondary);
}

.promo-strip__arrow--left {
  left: -4px;
}

.promo-strip__arrow--right {
  right: -4px;
}

.promo-strip__arrow.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Градиентные фейды по краям */
.promo-strip__wrapper::before,
.promo-strip__wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 6px;
  width: 40px;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.3s;
}

.promo-strip__wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
  opacity: 0;
}

.promo-strip__wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.promo-strip__wrapper.scroll-start::before {
  opacity: 0;
}

.promo-strip__wrapper.scroll-end::after {
  opacity: 0;
}

.promo-strip__wrapper.scroll-mid::before,
.promo-strip__wrapper.scroll-mid::after {
  opacity: 1;
}

/* Promo card — теперь <a> */
a.promo-card {
  flex-shrink: 0;
  width: 110px;
  height: 90px;
  background: var(--bg-card);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  padding: 8px;
  text-decoration: none;
  color: inherit;
}

a.promo-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color);
}

.promo-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: white;
}

.promo-card__label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
}

/* =====================================================
   SECTION — Спорт 24/7
   ===================================================== */
.section {
  margin-top: 30px;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section__title {
  font-size: 20px;
  font-weight: 700;
}

/* Кнопка «Развернуть» — теперь <a> */
a.section__more {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  transition: all 0.2s;
  text-decoration: none;
}

a.section__more:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

/* Games grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

/* Game card — теперь <a> */
a.game-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

a.game-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color);
}

.game-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #e53935;
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.game-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.game-card__info {
  flex: 1;
  min-width: 0;
}

.game-card__name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.game-card__price {
  font-size: 12px;
  color: var(--text-muted);
}

/* =====================================================
   CONTENT BLOCK
   ===================================================== */
.content-block {
  margin: 40px 0;
}

.content-block__inner {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 40px;
}

/* H1 заголовок */
h1.content-block__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--yellow);
  line-height: 1.3;
}

.content-block__text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.content-block__text p {
  margin-bottom: 14px;
}

.content-block__text p:last-child {
  margin-bottom: 0;
}

.content-block__text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== TABLE STYLES — горизонтальный скролл при переполнении ===== */
.content-block__text .table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.content-block__text .table-wrapper::-webkit-scrollbar {
  height: 6px;
}

.content-block__text .table-wrapper::-webkit-scrollbar-track {
  background: var(--bg-primary);
  border-radius: 3px;
}

.content-block__text .table-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.content-block__text .table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.content-block__text table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 13px;
}

.content-block__text table thead {
  background: var(--bg-card);
}

.content-block__text table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  border-bottom: 1px solid var(--border-color);
}

.content-block__text table td {
  padding: 10px 16px;
  color: var(--text-secondary);
  white-space: nowrap;
  border-bottom: 1px solid var(--border-color);
}

.content-block__text table tbody tr:last-child td {
  border-bottom: none;
}

.content-block__text table tbody tr:hover {
  background: var(--bg-card);
}

.content-block__text table tbody tr:hover td {
  color: var(--text-primary);
}

/* =====================================================
   COUPON SIDEBAR
   ===================================================== */
.coupon-sidebar {
  width: 300px;
  flex-shrink: 0;
  margin-top: 20px;
}

.coupon-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  position: sticky;
  top: 80px;
}

.coupon-box__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.coupon-box__icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.coupon-box__empty {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.coupon-box__empty span {
  font-size: 11px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
}

.footer__top {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer__col-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.footer__links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--text-primary);
}

/* Contact */
.footer__contact-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

/* Rating */
.rating-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.rating-badge__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.rating-badge__stars {
  color: var(--yellow);
  font-size: 14px;
  letter-spacing: 2px;
}

.rating-badge__label {
  font-size: 11px;
  color: var(--text-secondary);
}

/* App buttons — все <a> */
.app-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

a.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
  border: 1px solid var(--border-color);
  text-decoration: none;
}

a.app-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.app-btn__icon {
  font-size: 16px;
}

/* Social — все <a> */
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

a.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
  border: 1px solid var(--border-color);
  text-decoration: none;
}

a.social-link:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-secondary);
}

/* Partners — все <a> */
.footer__partners {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 30px;
}

.footer__partners-header {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

a.footer__partners-tab {
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--yellow);
  text-decoration: none;
  transition: color 0.2s;
}

a.footer__partners-tab--inactive {
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom-color: transparent;
}

a.footer__partners-tab--inactive:hover {
  color: var(--text-primary);
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

a.partner-logo {
  width: 80px;
  height: 44px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
}

a.partner-logo:hover {
  background: var(--bg-card-hover);
  color: var(--text-secondary);
}

/* Payment icons — все <a> */
.footer__bottom {
  border-top: 1px solid var(--border-color);
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.payment-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

a.payment-icon {
  width: 44px;
  height: 28px;
  background: var(--bg-card);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s;
}

a.payment-icon:hover {
  background: var(--bg-card-hover);
  color: var(--text-secondary);
}

.footer__copyright {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.6;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.promo-strip,
.section,
.content-block {
  animation: fadeInUp 0.5s ease both;
}

.content-block {
  animation-delay: 0.1s;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .coupon-sidebar {
    display: none;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .header__actions .btn--outline,
  .header__actions .btn--yellow {
    display: none;
  }

  .promo-strip {
    margin-top: 14px;
  }

  a.promo-card {
    width: 90px;
    height: 78px;
  }

  .promo-card__icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .promo-card__label {
    font-size: 10px;
  }

  .games-grid {
    grid-template-columns: 1fr 1fr;
  }

  a.game-card {
    padding: 14px;
    gap: 10px;
  }

  .game-card__icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .game-card__name {
    font-size: 13px;
  }

  .content-block__inner {
    padding: 24px 18px;
  }

  h1.content-block__title {
    font-size: 20px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 20px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__copyright {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: 1fr;
  }

  a.promo-card {
    width: 80px;
    height: 70px;
  }
}
