/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-bg: #171722;
  --secondary-bg: #1e1e2e;
  --accent-color: #ff4757;
  --text-color: #ffffff;
  --text-secondary: #a0a0b0;
  --border-color: #2d2d3d;
  --gradient-primary: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
  --gradient-border: linear-gradient(135deg, #ff4757, #ffa502, #1e90ff);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style-position: inside;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-color);
  color: white;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Gradient Border */
.base-gradient-border {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.base-gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: var(--gradient-border);
  border-radius: inherit;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Header */
/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  background: #1a1a24;
  padding: 12px 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: auto;
  max-height: 70px;
  width: auto;
  max-width: 280px;
}

/* Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Login Button */
.header-login-btn {
  padding: 10px 24px;
  background: transparent;
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all 0.3s;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-login-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Register Button */
.header-register-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, #ff4757 0%, #ff1744 100%);
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.header-register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 71, 87, 0.4);
}

/* Help Button */
.header-help-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  color: #ffd700;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.3s;
}

.header-help-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffed4e;
}

.header-help-btn svg {
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 24px;
  }
  
  .header-logo img {
    max-height: 60px;
    max-width: 240px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 16px;
  }
  
  .header-actions {
    gap: 12px;
  }
  
  .header-login-btn,
  .header-register-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .header-help-btn span {
    display: none;
  }
  
  .header-help-btn {
    padding: 8px;
  }
  
  .header-logo img {
    max-height: 55px;
    max-width: 220px;
  }
}

@media (max-width: 480px) {
  .header-logo img {
    max-height: 50px;
    max-width: 200px;
  }
  
  .header-actions {
    gap: 6px;
  }
  
  .header-login-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
  
  .header-register-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
  
  .header-help-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* Main Content */
.main {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Banner Slider */
.banner-wrapper {
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.swiper-container {
  position: relative;
  width: 100%;
  height: auto;
}

.swiper-wrapper {
  display: flex;
  align-items: center;
}

.swiper-slide {
  width: 100%;
  height: auto;
  flex-shrink: 0;
  position: relative;
}

.swiper-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .banner-wrapper {
    margin: 0;
  }
}

/* Prize Fund Section */
.prize-fund-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.prize-fund-desktop-section {
  display: none;
}

.prize-fund-mobile-section {
  display: block;
}

.prize-fund {
  flex: 1;
  max-width: 800px;
}

.banner-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.banner-container-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.banner-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.banner-content .line1 {
  font-size: 20px;
  font-weight: 700;
}

.button-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

.download-button:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.download-button .text {
  flex: 1;
}

.download-button .line1 {
  font-size: 12px;
  color: var(--text-secondary);
}

.download-button .line2 {
  font-size: 16px;
  font-weight: 700;
}

/* Navigation Menu */
/* Navigation Menu */
.navigation {
  width: 100%;
  margin: 0;
  background: linear-gradient(
    135deg,
    #1a1a24 25%,
    #22222e 25%,
    #22222e 50%,
    #1a1a24 50%,
    #1a1a24 75%,
    #22222e 75%,
    #22222e
  );
  background-size: 40px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navigation-menu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  padding: 0;
}

.menu-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.menu-item:last-child {
  border-right: none;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}

.menu-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.menu-icon svg {
  width: 28px;
  height: 28px;
}

.menu-item:hover .menu-icon {
  transform: scale(1.05);
}

.menu-item-text {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: white;
  text-align: center;
}

/* Цвета для каждой категории */
.menu-item-slots .menu-icon {
  color: #00d4ff;
}

.menu-item-live .menu-icon {
  color: #ff4444;
}

.menu-item-sport .menu-icon {
  color: #aa66ff;
}

.menu-item-crash .menu-icon {
  color: #44ff88;
}

.menu-item-tournaments .menu-icon {
  color: #ffbb00;
}

/* Hover эффекты для цветов */
.menu-item-slots:hover .menu-icon {
  color: #33e0ff;
  filter: drop-shadow(0 0 8px #00d4ff);
}

.menu-item-live:hover .menu-icon {
  color: #ff6666;
  filter: drop-shadow(0 0 8px #ff4444);
}

.menu-item-sport:hover .menu-icon {
  color: #bb77ff;
  filter: drop-shadow(0 0 8px #aa66ff);
}

.menu-item-crash:hover .menu-icon {
  color: #66ffaa;
  filter: drop-shadow(0 0 8px #44ff88);
}

.menu-item-tournaments:hover .menu-icon {
  color: #ffcc33;
  filter: drop-shadow(0 0 8px #ffbb00);
}

/* Responsive */
@media (max-width: 1024px) {
  .menu-item {
    padding: 10px 8px;
    gap: 5px;
  }
  
  .menu-icon {
    width: 28px;
    height: 28px;
  }
  
  .menu-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .menu-item-text {
    font-size: 10px;
  }
}

@media (max-width: 768px) {
  .navigation-menu {
    flex-wrap: wrap;
  }
  
  .menu-item {
    flex: 1 1 33%;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 6px;
    gap: 4px;
  }
  
  .menu-item:nth-child(3n) {
    border-right: none;
  }
  
  .menu-item:last-child {
    border-bottom: none;
  }
  
  .menu-icon {
    width: 26px;
    height: 26px;
  }
  
  .menu-icon svg {
    width: 22px;
    height: 22px;
  }
  
  .menu-item-text {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .navigation {
    display: none;
  }
  
  .banner-wrapper {
    margin: 0;
    padding: 0;
  }
  
  .banner-img {
    height: auto;
    min-height: 250px;
    object-fit: cover;
  }
}

@media (min-width: 481px) and (max-width: 639px) {
  .banner-img {
    height: auto;
    min-height: 200px;
    object-fit: cover;
  }
}

/* Base Block */
.base-block {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.text-block-second {
  background: var(--secondary-bg);
  border-radius: 12px;
  padding: 30px;
  border: 1px solid var(--border-color);
}

.text-block-second-content {
  margin-bottom: 24px;
}

.h2-base-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-block-second-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 16px;
  color: var(--text-color);
}

.text-block-second-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text-color);
}

.text-block-second-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.text-block-second-content ul,
.text-block-second-content ol {
  margin-bottom: 16px;
  padding-left: 20px;
}

.text-block-second-content li {
  margin-bottom: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.custom-button {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gradient-primary);
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s;
}

.custom-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 71, 87, 0.4);
}

/* Articles Block */
.articles__block {
  background: var(--secondary-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.articles__header-wrapper {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--secondary-bg);
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.3s;
}

.articles__header-wrapper:hover {
  background: rgba(255, 255, 255, 0.02);
}

.articles-item-title {
  font-size: 20px;
  font-weight: 700;
}

.articles__items-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.articles__header-wrapper[aria-expanded="true"] + .articles__items-wrapper {
  max-height: 800px;
}

.articles-item {
  display: block;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s;
}

.articles-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.articles-item:last-child {
  border-bottom: none;
}

/* Games Section */
/* Games Section Top (under menu) */
.games-section-top {
  width: 100%;
  background: var(--primary-bg);
  padding: 40px 0;
  margin: 0;
}

.games-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .games-section-top {
    padding: 24px 0;
  }
}

.games-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Text New */
.text-new {
  background: var(--secondary-bg);
  border-radius: 12px;
  padding: 30px;
  border: 1px solid var(--border-color);
}

/* Images */
.images {
  margin: 40px 0;
}

.images-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.images-box img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
}

/* FAQ */
.faq {
  background: var(--secondary-bg);
  border-radius: 12px;
  padding: 30px;
  border: 1px solid var(--border-color);
}

.faq-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.faq-item {
  background: var(--primary-bg);
  border-radius: 8px;
  overflow: hidden;
}

.faq-item-header-wrapper {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  transition: background 0.3s;
  background: none;
  border: none;
  text-align: left;
}

.faq-item-header-wrapper:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-item-title {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
}

.highlighted-block {
  color: var(--text-color);
}

.faq-item-header-wrapper .toggle-icon {
  transition: transform 0.3s ease;
  transform: rotate(0deg);
  flex-shrink: 0;
}

.faq-item-header-wrapper[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.faq-item-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.faq-item-header-wrapper[aria-expanded="true"] + .faq-item-content {
  max-height: 1000px;
}

.faq-item-content-hidden {
  padding: 0 20px 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-pagination,
.review-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.faq-pagination-prev-button,
.faq-pagination-next-button,
.review-pagination-prev-button,
.review-pagination-next-button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-bg);
  border-radius: 8px;
  transition: all 0.3s;
}

.faq-pagination-prev-button:not(:disabled):hover,
.faq-pagination-next-button:not(:disabled):hover,
.review-pagination-prev-button:not(:disabled):hover,
.review-pagination-next-button:not(:disabled):hover {
  background: rgba(255, 71, 87, 0.2);
}

.faq-pagination-prev-button:disabled,
.faq-pagination-next-button:disabled,
.review-pagination-prev-button:disabled,
.review-pagination-next-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.faq-pagination-prev-button .toggle-icon {
  transform: rotate(90deg);
}

.faq-pagination-next-button .toggle-icon,
.review-pagination-next-button .toggle-icon {
  transform: rotate(-90deg);
}

.review-pagination-prev-button .toggle-icon {
  transform: rotate(90deg);
}

.faq-pagination-label,
.review-pagination-label {
  font-weight: 600;
}

/* Review */
.review {
  background: var(--secondary-bg);
  border-radius: 12px;
  padding: 30px;
  border: 1px solid var(--border-color);
}

.review-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.review-item {
  background: var(--primary-bg);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-color);
}

.review-item-header-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.review-item-user-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.review-item-name {
  font-weight: 600;
  font-size: 16px;
}

.review-item-rating {
  margin-left: auto;
}

.review-item-content {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Lists */
ul, ol {
  margin: 16px 0;
  padding-left: 24px;
  list-style-position: outside;
}

ul li, ol li {
  margin: 8px 0;
  line-height: 1.6;
}

ul li p, ol li p {
  margin: 0;
  display: inline;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  overflow: hidden;
}

table thead {
  background: rgba(220, 38, 38, 0.1);
}

table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #dc2626;
  border-bottom: 2px solid rgba(220, 38, 38, 0.3);
}

table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

table tbody tr {
  transition: background 0.2s ease;
}

table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

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

@media (max-width: 768px) {
  table {
    font-size: 14px;
  }
  
  table th,
  table td {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  table th,
  table td {
    padding: 10px;
    font-size: 13px;
  }
}

/* Footer */
.footer {
  margin-top: 60px;
  background: #1a1a24;
  padding: 40px 0 20px;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Navigation */
.footer-top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top-nav-link {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
  white-space: nowrap;
}

.footer-top-nav-link:hover {
  color: var(--accent-color);
}


/* Bottom Section */
.footer-bottom-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  padding: 40px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 32px;
}

.footer-info-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.footer-license-logo,
.footer-age-icon {
  flex-shrink: 0;
}

.footer-license-text,
.footer-age-text {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

.footer-license-text p,
.footer-age-text p {
  margin-bottom: 8px;
}

.footer-license-text p:last-child,
.footer-age-text p:last-child {
  margin-bottom: 0;
}

.footer-license-text strong {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}


/* Responsive */
@media (max-width: 767px) {
  .footer-top-nav {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .footer-bottom-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (min-width: 640px) {
  .banner-img {
    height: 200px;
  }
  
  .button-container {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .header-burger-button-wrapper {
    display: none;
  }
  
  .header-mobile-buttons-wrapper {
    display: none;
  }
  
  .header-buttons-wrapper {
    position: static;
    width: auto;
    height: auto;
    max-width: none;
    flex: 1;
    flex-direction: row;
    align-items: center;
    padding: 0;
    overflow: visible;
  }
  
  .header-close-btn-and-logo-wrapper {
    display: none;
  }
  
  .header-nav {
    flex-direction: row;
    flex: 1;
  }
  
  .mini-banners {
    display: none;
  }
  
  .header-register-button-wrapper {
    display: none;
  }
  
  .prize-fund-desktop-section {
    display: flex;
  }
  
  .prize-fund-mobile-section {
    display: none;
  }
  
  .apps-wrappper {
    flex-direction: row;
  }
  
  .footer-content-second-part {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .banner-img {
    height: 300px;
  }
  
  .footer-top-nav {
    justify-content: flex-start;
  }
  
  .footer-bottom-section {
    grid-template-columns: 1fr 1fr auto;
  }
}

/* Utilities */
.max-w-full {
  max-width: 100%;
}

