/* --- VARIABLES & RESET --- */
:root {
  --color-bg: #f5f5f5;
  --color-surface: #ffffff;
  --color-primary: #0255c2;
  --color-secondary: #54b146;
  --color-text: #333333;
  --color-text-light: #ffffff;
  --color-border: #e0e0e0;
  --font-main: "Roboto", sans-serif;
  --border-radius: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Header height */
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 80px;
}

body.sl-no-scroll {
  overflow: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  text-decoration: underline;
}

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

/* --- LAYOUT --- */
.sl-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.sl-main {
  flex-grow: 1;
}

.sl-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.sl-section {
  padding: 40px 0;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.sl-section:nth-child(odd) {
  background-color: var(--color-bg);
}
.sl-section:first-of-type {
  border-top: 1px solid var(--color-border);
}

.sl-section__title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 10px;
  font-weight: 700;
}

.sl-section__subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: #666;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.sl-grid {
  display: grid;
  gap: 20px;
}
.sl-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.sl-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.sl-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* --- HEADER --- */
.sl-header {
  background-color: var(--color-surface);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.sl-header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sl-header__logo img {
  height: 40px;
}

.sl-header__nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

.sl-header__nav a {
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}
.sl-header__nav a:hover {
  color: var(--color-primary);
}

.sl-header__actions {
  display: flex;
  gap: 10px;
}

.sl-header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
  z-index: 1001;
}
.sl-header__burger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-text);
  position: absolute;
  left: 0;
  transition: var(--transition);
}
.sl-header__burger span:nth-child(1) {
  top: 0;
}
.sl-header__burger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.sl-header__burger span:nth-child(3) {
  bottom: 0;
}

.sl-header__burger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.sl-header__burger.active span:nth-child(2) {
  opacity: 0;
}
.sl-header__burger.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* --- BUTTONS --- */
.sl-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  border: none;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-size: 1rem;
}
.sl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}
.sl-btn--login {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}
.sl-btn--login:hover {
  background-color: #02449a;
}
.sl-btn--signup {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
}
.sl-btn--signup:hover {
  background-color: #4aa03d;
}
.sl-btn--sm {
  padding: 5px 10px;
  font-size: 0.9rem;
}

/* --- HERO --- */
.sl-hero {
  background: url("/img/hero.jpg") no-repeat center center / cover;
  color: var(--color-text-light);
  padding: 100px 0;
  text-align: center;
  position: relative;
}
.sl-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}
.sl-hero__content {
  position: relative;
  z-index: 1;
}
.sl-hero__title {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.sl-hero__subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.sl-hero .sl-btn {
  padding: 15px 30px;
  font-size: 1.2rem;
}

/* --- BREADCRUMBS --- */
.sl-breadcrumbs {
  padding: 15px 0;
  font-size: 0.9rem;
}
.sl-breadcrumbs ol {
  list-style: none;
  display: flex;
  gap: 8px;
}
.sl-breadcrumbs li::after {
  content: "/";
  margin-left: 8px;
  color: #999;
}
.sl-breadcrumbs li:last-child::after {
  content: "";
}
.sl-breadcrumbs a {
  color: var(--color-primary);
}
.sl-breadcrumbs span {
  color: var(--color-text);
}

/* --- ADVANTAGES --- */
.sl-advantages__item {
  background: var(--color-surface);
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
}
.sl-advantages__item svg {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin-bottom: 15px;
}
.sl-advantages__item h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

/* --- PROS & CONS --- */
.sl-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.sl-pros-cons__column {
  background: var(--color-surface);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.sl-pros-cons__column h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sl-pros-cons__column--pros h3 {
  color: var(--color-secondary);
}
.sl-pros-cons__column--cons h3 {
  color: #d9534f;
}
.sl-pros-cons__column ul {
  list-style: none;
}
.sl-pros-cons__column li {
  padding-left: 25px;
  position: relative;
  margin-bottom: 10px;
}
.sl-pros-cons__column li::before {
  content: "";
  width: 16px;
  height: 16px;
  position: absolute;
  left: 0;
  top: 5px;
  background-size: contain;
}
.sl-pros-cons__column--pros li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2354b146' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.sl-pros-cons__column--cons li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d9534f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E");
}

/* --- JACKPOTS --- */
.sl-jackpots {
  background: linear-gradient(45deg, var(--color-primary), #023a81);
  color: var(--color-text-light);
}
.sl-jackpots .sl-section__title,
.sl-jackpots .sl-section__subtitle {
  color: var(--color-text-light);
}
.sl-jackpot-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
}
.sl-jackpot-card h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}
.sl-jackpot-card__amount {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--color-secondary);
}
.sl-jackpot-card .sl-btn {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
}

/* --- TABLE --- */
.sl-table-wrapper {
  overflow-x: auto;
}
.sl-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: var(--color-surface);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sl-table th,
.sl-table td {
  padding: 15px;
  border-bottom: 1px solid var(--color-border);
}
.sl-table th {
  background-color: #f9f9f9;
  font-weight: 700;
}
.sl-table tbody tr:last-child td {
  border-bottom: none;
}
.sl-table tbody tr:hover {
  background-color: #f5f5f5;
}
.sl-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
}
.sl-status--online {
  background-color: #e8f5e9;
  color: #4caf50;
}

/* --- SLIDER --- */
.sl-slider-wrapper {
  overflow: hidden;
}
.sl-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  scroll-snap-type: x mandatory;
}
.sl-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
.sl-slider > * {
  flex: 0 0 calc(33.333% - 14px);
  scroll-snap-align: start;
}
.sl-slider--screenshots img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* --- CARD --- */
.sl-card {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.sl-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.sl-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}
.sl-card__content {
  padding: 20px;
}
.sl-card__content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.sl-card__content p {
  color: #666;
  margin-bottom: 15px;
}

/* --- TOURNAMENTS --- */
.sl-tournament-card__prize {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 10px;
}
.sl-tournament-card__timer {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 15px;
}

/* --- APP INFO --- */
.sl-app-info {
  align-items: center;
}
.sl-app-info__buttons {
  text-align: center;
}
.sl-app-info__buttons p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.sl-download-btn {
  display: inline-block;
  width: 180px;
  height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: 5px;
  transition: var(--transition);
}
.sl-download-btn:hover {
  transform: scale(1.05);
}
.sl-download-btn--appstore {
  background-image: url("/img/btn-appstore.png");
}
.sl-download-btn--playmarket {
  background-image: url("/img/btn-playmarket.png");
}
.sl-download-btn--apk {
  background-image: url("/img/btn-apk.png");
}

/* --- VIDEO --- */
.sl-video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.sl-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- GAMES --- */
.sl-slider--games > * {
  flex: 0 0 calc(16.666% - 17px);
}
.sl-game-card {
  text-align: center;
  background: var(--color-surface);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  padding-bottom: 15px;
}
/*.sl-game-card img {*/
/*  height: 150px;*/
/*}*/
.sl-game-card h4 {
  margin: 10px 0;
}

/* --- DEMO GAME --- */
.sl-demo-wrapper {
  width: 100%;
  height: 600px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sl-demo-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- CONTENT SECTION --- */
.sl-content-box {
  background: var(--color-surface);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.sl-content-box h2 {
  font-size: 1.8rem;
  margin-top: 20px;
  margin-bottom: 15px;
}
.sl-content-box h3 {
  font-size: 1.5rem;
  margin-top: 15px;
  margin-bottom: 10px;
}
.sl-content-box p {
  margin-bottom: 15px;
}
.sl-content-box ul,
.sl-content-box ol {
  margin-bottom: 15px;
  padding-left: 20px;
}
.sl-content-box li {
  margin-bottom: 8px;
}
.sl-content-box a {
  text-decoration: underline;
}
.sl-content-box blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 15px;
  margin: 20px 0;
  font-style: italic;
  color: #555;
}
.sl-content-box table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.sl-content-box th,
.sl-content-box td {
  border: 1px solid var(--color-border);
  padding: 10px;
  text-align: left;
}
.sl-content-box th {
  background-color: #f9f9f9;
}

/* --- FAQ --- */
.sl-faq {
  max-width: 800px;
  margin: 0 auto;
}
.sl-faq__item {
  background: var(--color-surface);
  margin-bottom: 10px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sl-faq__question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sl-faq__question::after {
  content: "+";
  font-size: 2rem;
  font-weight: 300;
  transition: var(--transition);
}
.sl-faq__question[aria-expanded="true"]::after {
  transform: rotate(45deg);
}
.sl-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.sl-faq__answer p {
  padding: 0 20px 20px;
  margin: 0;
}
.sl-faq__question[aria-expanded="true"] + .sl-faq__answer {
  max-height: 300px;
}

/* --- REVIEWS --- */
.sl-review-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
}
.sl-review-card__header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.sl-review-card__header img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}
.sl-review-card__rating {
  color: #f9a825;
  font-size: 1.2rem;
}
.sl-review-form-wrapper {
  max-width: 700px;
  margin: 40px auto 0;
  background: var(--color-surface);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}
.sl-review-form-wrapper h3 {
  text-align: center;
  margin-bottom: 20px;
}

/* --- FORM --- */
.sl-form__group {
  margin-bottom: 15px;
}
.sl-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
}
.sl-form input,
.sl-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-main);
  font-size: 1rem;
}
.sl-form textarea {
  resize: vertical;
}
.sl-form .sl-btn {
  width: 100%;
}
.sl-form__success-msg {
  margin-top: 15px;
  text-align: center;
  color: var(--color-secondary);
  font-weight: 700;
}

/* --- AUTHOR --- */
.sl-author-box {
  display: flex;
  gap: 30px;
  align-items: center;
  background: var(--color-surface);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
}
.sl-author-box__photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.sl-author-box__info h3 {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 5px;
}
.sl-author-box__info h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.sl-author-box__social {
  margin-top: 15px;
}
.sl-author-box__social a {
  font-weight: 700;
}

/* --- FOOTER --- */
.sl-footer {
  background-color: var(--color-surface);
  color: #666;
  padding: 40px 0 20px;
  border-top: 1px solid var(--color-border);
}
.sl-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.sl-footer__logo img {
  height: 40px;
  margin-bottom: 15px;
}
.sl-footer__nav h4 {
  color: var(--color-text);
  font-size: 1.1rem;
  margin-bottom: 15px;
}
.sl-footer__nav ul {
  list-style: none;
}
.sl-footer__nav li {
  margin-bottom: 8px;
}
.sl-footer__nav a {
  color: #666;
}
.sl-footer__nav a:hover {
  color: var(--color-primary);
}
.sl-footer__middle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 20px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
}
.sl-footer__logos h4 {
  color: var(--color-text);
  margin-bottom: 15px;
}
.sl-logos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  background: #777;
  padding: 10px;
}
.sl-logos-grid img {
  height: 25px;
  opacity: 0.7;
  transition: var(--transition);
}
.sl-logos-grid img:hover {
  opacity: 1;
}
.sl-footer__bottom {
  text-align: center;
  font-size: 0.9rem;
}
.sl-footer__bottom p {
  margin-bottom: 5px;
}

/* --- STICKY WIDGET --- */
.sl-sticky-widget {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: 15px 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transform: translateY(100%);
  animation: slide-up 0.5s 1s forwards ease-out;
}
@keyframes slide-up {
  to {
    transform: translateY(0);
  }
}
.sl-sticky-widget .sl-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sl-sticky-widget span {
  font-size: 1.1rem;
}
.sl-sticky-widget a {
  text-decoration: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .sl-header__nav {
    display: none;
    position: fixed;
    top: 71px;
    left: 0;
    width: 100%;
    height: calc(100% - 71px);
    background: var(--color-surface);
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
  }
  .sl-header__nav.active {
    display: flex;
  }
  .sl-header__nav ul {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .sl-header__nav a {
    font-size: 1.5rem;
  }
  .sl-header__burger {
    display: block;
  }
  .sl-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .sl-slider > * {
    flex: 0 0 calc(50% - 10px);
  }
  .sl-slider--games > * {
    flex: 0 0 calc(33.333% - 14px);
  }
  .sl-footer__top {
    grid-template-columns: 1fr;
  }
  .sl-sticky-widget span {
    display: none;
  }
  .sl-sticky-widget .sl-container {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .sl-section__title {
    font-size: 1.8rem;
  }
  .sl-hero__title {
    font-size: 2.2rem;
  }
  .sl-hero__subtitle {
    font-size: 1.2rem;
  }
  .sl-grid--2,
  .sl-grid--3,
  .sl-grid--4 {
    grid-template-columns: 1fr;
  }
  .sl-pros-cons {
    grid-template-columns: 1fr;
  }
  .sl-app-info {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .sl-author-box {
    flex-direction: column;
    text-align: center;
  }
  .sl-footer__middle {
    grid-template-columns: 1fr;
  }
  .sl-slider > * {
    flex: 0 0 calc(80%);
  }
  .sl-slider--games > * {
    flex: 0 0 calc(45%);
  }
}

@media (max-width: 480px) {
  .sl-header__actions .sl-btn--login {
    display: none;
  }
  .sl-slider > * {
    flex: 0 0 90%;
  }
  .sl-slider--games > * {
    flex: 0 0 70%;
  }
}
