/* Кастомный скроллбар для WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f1623; /* тёмный фон под скроллом */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4E91FF 0%, #9333EA 100%);
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6CA2FF 0%, #B469F7 100%);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #4E91FF #0f1623;
}

html {
  scroll-behavior: smooth;
}

/* === Базовые стили === */
body {
    font-family: "Roboto", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #020c22;
    color: white;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  button {
    font-family: inherit;
    cursor: pointer;
    border: none;
  }

  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* по желанию */
  }
  


  
  /* === Контейнер === */
  .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* === Хедер === */
  .site-header {
    background-color: #1c2539;
    height: 64px;
    width: 100%;
    display: flex;
    align-items: center;
  }
  
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    width: 100%;
  }
  
  /* Левая часть хедера */
  .header-left {
    display: flex;
    align-items: center;
    gap: 30px;
  }
  
  .logo {
    width: 100px;
  }
  
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .nav-menu a {
    font-size: 16px;
    font-weight: 600;
    color: #79849b;
    transition: color 1s ease;
  }
  
  .nav-menu a:hover {
    color: #fff;
  }
  
  /* Активная ссылка */
  .nav-menu a.active {
    color: #ff7c1e;
  }
  
  
  /* Правая часть хедера */
  .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
  }
  
  .bonus-icon {
    margin-top: 4px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.5s ease;
}
  .bonus-icon:hover {
    transform: scale(1.05);
  }
  
  .lang-select {
    background-color: #333b4c;
    color: white;
    font-weight: 600;
    padding: 0 12px;
    height: 40px;
    display: flex;
    align-items: center;
    border-radius: 6px;
    font-size: 14px;
  }  
  
  /* Кнопки */
  .btn-login {
    background-color: #333b4c;
    color: white;
    font-weight: 600;
    height: 24px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    transition: background-color 0.5s ease;
  
    /* Дополнительно для ссылок */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
  }
  
  .btn-login:hover {
    background-color: #444e65;
  }
  
  .btn-login:active {
    background-color: #283041;
  }
  

  .btn-register {
    background-color: #FF7C1E;
    color: white;
    font-weight: 600;
    height: 24px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    transition: background-color 0.3s ease;
  
    /* Чтобы <a> выглядел как кнопка */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
  }
  
  .btn-register:hover {
    background-color: #ff9050;
  }
  
  .btn-register:active {
    background-color: #f85a00;
  }
  
  
  .main-banner {
    margin-top: 90px;
  }
  
  /* === Баннер === */
  .main-banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 20px;
  }
  /* Answer text */
  

/* === Контентный блок после баннера === */
.content-section {
    margin-top: 40px;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
  }

  /* H2 внутри контента — как H1 */
 .content-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #fff;
   }
  
  
  .content-section h1 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
  }
  
  .content-section p {
    margin-bottom: 16px;
    color: #fff;
  }

  .content-section p span {
    color: #fff;
    font-weight: bold;
    font-size: 18px;
  }
  


  .article-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
  }
  
  .author-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  }
  
  
  .author-info {
    display: flex;
    flex-direction: column;
  }
  
  .author-role {
    font-size: 14px;
    color: #79849B;
  }
  
  .author-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
  }

  
  .styled-list {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    padding-left: 20px; /* отступ слева для маркеров/цифр */
  }
  
  .styled-list li {
    margin-bottom: 10px;
  }
  
  
  /* === Простая таблица === */
  .simple-table-wrapper {
    overflow-x: auto;
    margin-top: 30px;
  }
  
  .simple-table {
    border-collapse: collapse;
    background-color: #1c2539;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .simple-table thead {
    background-color: #333b4c;
  }
  
  .simple-table th,
  .simple-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #2a3240;
    border-right: 1px solid #2a3240;
    min-width: 220px;
    color: #f5f5f5;
  }
  
  .simple-table th {
    font-weight: 600;
    color: #ff7c1e;
  }

  /* === Простая таблица 2 === */
  .simple-tab2 {
    display: flex;
    justify-content: center;
    margin-top: -20px;
}
  .simple-table-wrapper2 {
    display: flex;
    overflow-x: auto;
    margin-top: 30px;
}
  
  .simple-table2 {
    width: 80%;
    border-collapse: collapse;
    background-color: #1c2539;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .simple-table2 thead {
    background-color: #333b4c;
  }
  
  .simple-table2 th,
  .simple-table2 td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    min-width: 200px;
    border-bottom: 1px solid #2a3240;
    border-right: 1px solid #2a3240;
    color: #f5f5f5;
  }
  
  .simple-table2 th {
    font-weight: 600;
    color: #ff7c1e;
  }

  .simple-table3 {
    width: 80%;
    border-collapse: collapse;
    background-color: #1c2539;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .simple-table3 thead {
    background-color: #333b4c;
  }

  .simple-table3 th,
  .simple-table3 td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    min-width: 150px;
    border-bottom: 1px solid #2a3240;
    border-right: 1px solid #2a3240;
    color: #f5f5f5;
  }
  
  .simple-table3 th {
    font-weight: 600;
    color: #ff7c1e;
  }

 .popular-games {
  margin-top: 60px;
  overflow: hidden;
}

.popular-games h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 30px;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
  }

.carousel-track {
  display: flex;
  gap: 20px;
  animation: scroll 30s linear infinite;
}

.carousel-wrapper:hover .carousel-track {
  animation-play-state: paused;
}

.carousel-container {
  position: relative;
  overflow: hidden;
}

/* Затенение по краям – теперь на .carousel-container */
.carousel-container::before,
.carousel-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.carousel-container::before {
  left: 0;
  background: linear-gradient(to right, #020c22, rgba(2, 12, 34, 0));
}

.carousel-container::after {
  right: 0;
  background: linear-gradient(to left, #020c22, rgba(2, 12, 34, 0));
}

/* carousel-wrapper теперь просто прокручиваемый блок */
.carousel-wrapper {
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Анимация и трек */
.carousel-track {
  display: flex;
  gap: 20px;
  animation: scroll 30s linear infinite;
}

.carousel-wrapper:hover .carousel-track {
  animation-play-state: paused;
}


.game-item {
  flex: 0 0 auto;
  width: 210px;
  height: 272px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.game-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.game-item:hover img {
  transform: scale(1.05);
}

/* Анимация */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


  .providers {
    margin-top: 60px;
  }
  
  .providers h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
  }
  
  .providers .carousel-wrapper {
    position: relative;
    overflow: hidden;
  }
  
  .providers .carousel-track {
    display: flex;
    gap: 20px;
    animation: scroll 25s linear infinite;
    align-items: center;
  }
  
  .providers .carousel-wrapper:hover .carousel-track {
    animation-play-state: paused;
  }
  
  .provider-item {
    flex: 0 0 auto;
    width: 258px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .provider-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }


  
  .event-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
  }
  
  .event-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #ccc;
    margin-bottom: 12px;
    gap: 10px;
  }
  
  .event-icon {
    width: 20px;
    height: 20px;
  }
  
  .event-league {
    flex-grow: 1;
    color: #f5f5f5;
    font-size: 14px;
  }
  
  .event-fav {
    width: 20px;
    height: 20px;
    cursor: pointer;
  }

  
  .sport-events {
    margin-top: 60px;
  }
  
  .sport-events h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
  }
  
  .event-card {
    background: linear-gradient(180deg, #1C2539 0%, #020C22 100%), #1C2539;
    border-radius: 12px;
    padding: 12px;
    color: #fff;
    width: 100%;
    min-width: 416px;
    margin-bottom: 30px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  }
  
  
  .event-icon {
    width: 16px;
    height: 14px;
  }
  
  .event-league {
    flex-grow: 1;
    color: #f5f5f5;
    font-size: 14px;
  }
  
  .event-fav {
    width: 20px;
    height: 20px;
    cursor: pointer;
  }
  
  
  .event-body {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
  }
  
  .team {
    text-align: center;
    width: 160px;
  }
  
  .team img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 6px;
  }
  
  .team-name {
    font-size: 14px;
    color: #f5f5f5;
  }
  
  .event-time {
    text-align: center;
  }
  
  .event-day {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #6d778c;
  }
  
  .event-hour {
    font-size: 18px;
    font-weight: bold;
    margin-top: 4px;
  }
  
  .event-divider {
    border-top: 1px solid #333b4c;
    margin: 12px 0;
  }
  
  .event-footer {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #aaa;
  }
  
  .event-bets {
    display: flex;
    gap: 10px;
    margin-top: 15px;
  }
  
  .bet-option {
    flex: 1;
    background-color: #1C2539;
    border-radius: 4px;
    padding: 0 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    height: 40px;
    max-width: 200px;
  }
  .bet-option:hover {
    background-color: #333b4c;
    cursor: pointer;
  }
  
  
  .bet-option strong {
    font-size: 16px;
    color: #fff;
  }
  

  .sport-events .carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 30px;
  }
  
  
  #carousel-events {
    display: flex;
    gap: 20px;
    animation: scroll-events 40s linear infinite;
  }
  
  .sport-events .carousel-wrapper:hover #carousel-events {
    animation-play-state: paused;
  }
  
  @keyframes scroll-events {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  

  .reviews-section {
    margin-top: 60px;
  }
  
  .reviews-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
  }
  
  .quote-icon {
    width: 58px;
    height: auto;
    margin-bottom: 10px;
  }
  
  .review-card {
    flex: 0 0 auto;
    width: 320px;
    background: linear-gradient(180deg, #1C2539 0%, #020C22 100%), #1C2539;
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
    font-size: 14px;
  }

  .reviews-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 20px;
    color: #fff;
   }

  .review-card p {
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    color: #fff;
    margin: 10px 0;
  }
  
  
  .rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
  }
  
  .rating-number {
    color: #fff;
  }
  
  .stars {
    position: relative;
    font-size: 18px;
    line-height: 1;
  }
  
  .stars-back {
    color: #eeeeee;
  }
  
  .stars-front {
    color: #FFC107; /* жёлтые звезды */
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
  }
  
  .review-divider {
    border-top: 1px solid #333b4c;
    margin: 12px 0;
  }
  
  .review-footer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .review-footer strong {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
  }
  
  .review-footer span {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
  }
  
  
  #carousel-reviews {
    display: flex;
    gap: 20px;
    animation: scroll-reviews 40s linear infinite;
  }
  
  .reviews-section .carousel-wrapper {
    position: relative;
    overflow: hidden;
  }
  
  .reviews-section .carousel-wrapper:hover #carousel-reviews {
    animation-play-state: paused;
  }
  
  @keyframes scroll-reviews {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  

  .site-footer {
    background-color: #1C2539;
    padding: 40px 20px 20px;
    color: #79849B;
    font-size: 14px;
  }
  
  .footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  
  /* Верхняя часть */
  .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .footer-left {
    display: flex;
    align-items: center;
    gap: 50px;
  }
  
  .footer-logo {
    width: 88px;
    height: auto;
  }
  
  .footer-nav {
    display: flex;
    gap: 20px;
  }
  
  .footer-nav a {
    font-weight: 500;
    color: #79849B;
    text-decoration: none;
    font-size: 16px;
    transition: color 1s ease;
  }
  
  .footer-nav a:hover {
    color: #ffffff;
  }

  .footer-nav a.active {
    color: #ff7c1e;
  }
  

  .footer-right {
    display: flex;
    gap: 12px;
  }
  
  .footer-right .social-icon {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 40px;
  }
  
  .footer-right .social-icon img {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    transition: opacity 0.5s ease;
  }
  
  .footer-right .social-icon img.hover {
    opacity: 0;
    pointer-events: none;
  }
  
  .footer-right .social-icon:hover img.hover {
    opacity: 1;
  }
  
  .footer-right .social-icon:hover img.default {
    opacity: 0;
  }
  
  
  
  /* Разделительная линия */
  .footer-divider {
    border-top: 1px solid #2A3240;
  }

  .footer-text {
    color: #cdd5e0;
    line-height: 1.6;
    font-size: 14px;
  }
  
  /* Нижняя часть */
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
  }
  
  .footer-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #79849B;
  }
  
  .footer-warning img {
    width: 36px;
    height: 36px;
  }
  
  .footer-copy {
    font-size: 13px;
    color: #79849B;
  }

/* По умолчанию скрываем мобильный хедер и меню */
.mobile-header,
.mobile-menu {
  display: none;
}


@media (max-width: 768px) {
    .site-header, .nav-menu, .lang-select {
      display: none;
    }
  
    .mobile-header {
      display: flex;
      background: #1c2539;
      padding: 10px 10px;
      justify-content: space-between;
      align-items: center;
    }
    .main-banner {
      margin-top: 80px;
  }

  .container {
    padding: 0 12px;
}

  .content-section h1 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

.content-section p {
  margin-bottom: 16px;
  margin-top: 0px;
  color: #fff;
}

  .content-section {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.popular-games {
  margin-top: 10px;
  overflow: hidden;
}
.popular-games h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.providers {
  margin-top: 20px;
}

.content-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 10px 0 20px;
  color: #fff;
}

.sport-events {
  margin-top: 30px;
}

  
    .mobile-header .logo {
      width: 75px;
    }
  
    .logo {
      width: 75px;
      margin-top: -6px;
    }

    .burger {
      font-size: 24px;
      color: #fff;
      cursor: pointer;
      padding-left: 5px;
    }
  
    .mobile-menu {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100%;
      background: #111a2b;
      z-index: 1000;
      padding: 10px 20px;
      display: none;
      flex-direction: column;
      gap: 20px;
      overflow-y: auto;
      box-sizing: border-box;
  }
  
    .mobile-menu-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
  
    .mobile-menu .btn-login,
    .mobile-menu .btn-register {
      height: 24px;
    }
  
    .close-menu {
      font-size: 28px;
      color: #fff;
      cursor: pointer;
      padding-left: 5px;
    }
  
    .lang-select-mobile {
      background: #2b3447;
      padding: 10px;
      border-radius: 8px;
      color: #fff;
      cursor: pointer;
    }
  
    .lang-options {
      display: none;
      background: #1c2539;
      padding: 10px;
      border-radius: 8px;
      list-style: none;
    }
  
    .lang-options li {
      padding: 10px;
      color: #fff;
      cursor: pointer;
    }
  
    .lang-options li.active {
      background: #FF7C1E;
      color: white;
      border-radius: 6px;
    }
  
    .mobile-nav a {
      padding: 12px 0;
      display: block;
      color: #fff;
      border-bottom: 1px solid #2a3240;
    }

    .mobile-nav a.active {
      color: #ff7c1e;
    }
  
    .bonus-btn {
      background: #a855f7;
      color: white;
      text-align: center;
      padding: 12px;
      border-radius: 10px;
      display: flex;
      gap: 8px;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      margin-top: auto;
    }
    .mobile-right {
      display: flex;
      align-items: center;
      gap: 6px;
      padding-left: 16px;
    }

  .btn-register {
    padding: 8px 12px;
   }

   .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    flex-direction: column;
}
   .footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-direction: column;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 0px;
}

.footer-inner {
  padding: 0 0px;
  gap: 20px;
}
    
.footer-text {
  color: #cdd5e0;
  line-height: 1.6;
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 0;
}

.carousel-track {
  gap: 10px;
}

.game-item {
  flex: 0 0 auto;
  width: 154px;
  height: 204px;

}

.provider-item {
  width: 158px;
  height: 60px;
}

.providers .carousel-track {
  gap: 10px;
}

.event-card {
  min-width: 311px;
  max-height: 228px;
}

.event-list {
  gap: 10px;
}



.carousel-wrapper {
  overflow-x: auto; /* ручной скролл */
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.carousel-track {
  flex-wrap: nowrap;
  animation: scroll 30s linear infinite; /* оставляем автоскролл */
  will-change: transform;
}

.carousel-wrapper:hover .carousel-track {
  animation-play-state: paused;
}

.game-item, .provider-item, .review-card {
  scroll-snap-align: start;
}

.sport-events .carousel-wrapper {
  overflow: auto;
}

.carousel-container::before, .carousel-container::after {
  width: 40px;
}
}

  