/* === CSS RESET === */
* , *::before , *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  color: #fff;
  background-color: #0a519e;
  line-height: 1.5;
  padding: 20px; /* Отступы по 20 пикселей по краям */
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}

table {
  border-collapse: collapse;
  width: 100%;
}

main, header, footer {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* === Кнопки общего назначения === */
.btn {
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  font-weight: normal;
  padding: 8px 15px;
  text-align: center;
  justify-content: center;
  border-radius: 100px;
}

/* === Кнопка "Регистрация" === */
.header__button-register {
  background-image: linear-gradient(to top, #fa4d00, #fa5e00);
    box-shadow: 0 10px 30px #fa410066;
  cursor: pointer;
  transition: all 0.1s;
}

.header__button-register:hover {
  background-image: linear-gradient(to top, #fa4d00, #fa60008c);
}

/* === Кнопка "Войти" === */
.header__button-login {
  background-image: linear-gradient(to top, #428cdc, #509aea 97% 100%);
  cursor: pointer;
  transition: all 0.1s;
}

.header__button-login:hover {
  background-image: linear-gradient(to top, #428cdc, #035ab6 97% 100%);
}

/* === Таблица === */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 1rem;
  background-color: #DDE4EC;
  max-width: 100%;
  box-sizing: border-box;
}

/* Заголовки таблицы */
thead th {
  background-color: #ccc;
  color: #000;
  font-weight: 600;
  text-align: left;
  padding: 12px 15px;
  border: 1px solid #dddddd4c;
  word-break: break-word; /* Перенос длинных слов */
  overflow-wrap: break-word;
}

/* Ячейки таблицы */
td {
  padding: 12px 15px;
  border: 1px solid #ccc;
  word-break: break-word; /* Перенос длинных слов */
  overflow-wrap: break-word;
}

/* Зебра */
tbody tr:nth-child(even) {
  background-color: #ccc;
}

/* === Адаптивность таблицы === */
@media (max-width: 600px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  thead, tbody, th, td, tr {
    /* Удаляем nowrap, чтобы текст переносился */
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

/* === Отзывы === */

.review-slider {
  position: relative;
  margin: 40px auto;
  /* background: #dddddd4c; */
  /* padding: 20px 40px; */
  border-radius: 12px;
  overflow: hidden;
}

.review-window {
  overflow: hidden;
}

.review-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  gap: 20px;
}

.review {
  flex: 0 0 calc(50% - 20px);
  background: #0A519E;
  border-radius: 12px;
  padding: 20px;
  margin-right: 20px;
  color: #fff;
  box-sizing: border-box;
}

.user {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.nav.prev { left: 10px; }
.nav.next { right: 10px; }

@media (max-width: 768px) {
  .review {
    flex: 0 0 100%;
    margin-right: 0;
  }
}


/* === faq === */

.faq-full {
  width: 100%;
  max-width: 100%;
  padding-top: 40px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.faq-item {
  border-radius: 12px;
  background: #dddddd4c;
  margin-bottom: 12px;
  overflow: hidden;
  transition: 0.3s;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  font-size: 16px;
  text-align: left;
  color: #000;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question .arrow {
  width: 20px;
  height: 20px;
  fill: #000;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.faq-item.active .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  font-size: 15px;
  color: #000;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 20px 16px;
}

/* footer */
.mostbet-footer {
  background: #00387c;
  color: #fff;
  padding: 30px 20px;
  border-radius: 12px;
  font-family: Arial, sans-serif;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 10px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.footer-nav a {
  color: #00aaff;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-subtitle {
  font-size: 12px;
  color: #77c7ff;
  margin-top: 5px;
}

.footer-payments {
  margin: 20px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.footer-payments img {
  height: 30px;
}

.footer-app {
  text-align: center;
  margin: 20px 0;
}

.app-btn {
  background: #ff4a00;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 40px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.app-btn  img {
  width: 24px;
  height: 24px;
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
}

.footer-logos img {
  height: 30px;
  opacity: 0.8;
}

/* page casino */
.promo-sidebar {
  width: 250px;
  background: #002c6d;
  border-radius: 12px;
  font-family: Arial, sans-serif;
  color: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.promo-bonus {
  background: linear-gradient(to bottom, #002c6d, #004fa4);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  position: relative;
}

.promo-crown {
  background: url("../img/kazino/crown.bec1cca93d2b82a94e14.svg") no-repeat center;
  background-size: 60px;
  height: 60px;
  margin-bottom: 10px;
}

.bonus-text {
  font-size: 12px;
  line-height: 1.4;
}

.bonus-text strong {
  font-size: 20px;
  color: #ffd000;
  display: block;
  margin-top: 4px;
}

.bonus-btn {
  display: inline-block;
  margin-top: 12px;
  background: #ff4a00;
  color: #fff;
  font-weight: bold;
  border-radius: 30px;
  padding: 8px 16px;
  text-decoration: none;
}

.promo-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffda50;
  font-weight: bold;
  text-decoration: none;
  padding: 8px;
  border-radius: 8px;
}

.nav-link.new {
  color: #7ad6ff;
}

.nav-link.fav {
  color: #ffe673;
}

.search-box {
  background: #003c7e;
  border-radius: 30px;
  padding: 6px 12px;
}

.search-box input {
  width: 100%;
  background: transparent;
  border: none;
  color: white;
  font-size: 14px;
  outline: none;
}

.category-menu {
  background: #fff;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

.category-item:last-child {
  border-bottom: none;
}

.category-item:hover {
  background: #f0f0f0;
}

.category-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}