/* ============================================================
   1win Algeria — стили сайта (ar-DZ, тёмная тема, RTL)
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Tajawal:wght@300;400;500;700;800&display=swap');

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  direction: rtl;
  font-family: 'Tajawal', 'Noto Sans Arabic', sans-serif;
  background: #0B111B;
  color: #f0f4fa;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 { font-family: 'Cairo', sans-serif; font-weight: 800; line-height: 1.3; }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); color: #fff; margin-bottom: 1rem; }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.8rem); color: #fff; margin: 2rem 0 1rem; }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 700; color: #DDA853; margin: 1.5rem 0 0.75rem; }
p { margin-bottom: 0.9rem; color: #d0d6e2; }
a { color: #018BF1; text-decoration: none; transition: color 0.2s; }
a:hover { color: #37a5ff; }

/* === Layout === */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === Header / Nav === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #0B111B;
  border-bottom: 1px solid #1e2a3d;
  padding: 0.5rem 0;
  direction: rtl;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: #fff;
  text-decoration: none;
}
.site-logo img { height: auto; width: 90px; }
.site-logo span { color: #018BF1; display: none; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.2rem;
  align-items: center;
}
.main-nav ul li a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #c8d0dc;
  font-family: 'Cairo', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  background: rgba(1, 139, 241, 0.12);
  color: #018BF1;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: 0.2s ease all;
  text-decoration: none;
  white-space: nowrap;
}
.cta-btn:active { transform: scale(0.97); }
.cta-btn-primary {
  background: linear-gradient(135deg, #018BF1, #0157C4);
  border: 2px solid #018BF1;
  color: #fff;
  box-shadow: 0 4px 14px rgba(1, 139, 241, 0.35);
}
.cta-btn-primary:hover { box-shadow: 0 6px 20px rgba(1, 139, 241, 0.5); color: #fff;border-color:#fff; }
.cta-btn-gold {
  background: linear-gradient(135deg, #DDA853, #c9943a);
  border: 2px solid #c9943a;
  color: #0B111B;
  box-shadow: 0 4px 14px rgba(221, 168, 83, 0.3);
}
.cta-btn-gold:hover { box-shadow: 0 6px 20px rgba(221, 168, 83, 0.45); color: #0B111B; }
.cta-btn-outline {
  background: transparent;
  border: 2px solid #018BF1;
  color: #018BF1;
}
.cta-btn-outline:hover { background: rgba(1, 137, 241, 0.15); color: #018BF1; }

.nav-cta { display: flex; gap: 0.5rem; align-items: center; }

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: relative;
  z-index: 999;
  background: none;
  border: none;
  padding: 8px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #c8d0dc;
  border-radius: 2px;
  transition: 0.3s;
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === Breadcrumbs === */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.82rem;
  color: #8a94a8;
}
.breadcrumbs a { color: #8a94a8; }
.breadcrumbs a:hover { color: #018BF1; }
.breadcrumbs span.sep { margin: 0 0.4rem; }

/* === Hero / Intro Section === */
.hero-section {
  position: relative;
  padding: 2rem 0 3rem;
  text-align: center;
}
.hero-section h1 { margin-bottom: 0.75rem; }
.hero-section .subtitle {
  font-size: 1.05rem;
  color: #a0aabc;
  max-width: 680px;
  margin: 0 auto 1.5rem;
}
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Hero Banner (full-width, image bg) === */
.hero-banner {
  position: relative;
  padding: 4rem 0 5rem;
  text-align: center;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.15;
  z-index: 0;
}
.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(1, 139, 241, 0.15) 0%, transparent 70%),
              linear-gradient(180deg, transparent 0%, #0B111B 100%);
  z-index: 1;
}
.hero-banner .container { position: relative; z-index: 2; }
.hero-banner .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(221, 168, 83, 0.12);
  border: 1px solid rgba(221, 168, 83, 0.25);
  border-radius: 50px;
  padding: 0.4rem 1.2rem;
  font-family: 'Cairo', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #DDA853;
  margin-bottom: 1.2rem;
}
.hero-banner .hero-badge .badge-star { color: #DDA853; }
.hero-banner h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}
.hero-banner .subtitle {
  font-size: 1.1rem;
  color: #9aa8c4;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}
.hero-banner .hero-img-wrap {
  max-width: 320px;
  margin: 2rem auto 0;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.hero-banner .hero-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
}
.hero-banner .hero-img-wrap:hover .hero-play-btn{opacity: .66;}
.hero-banner .hero-img-wrap .hero-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  transition: 0.3s ease all;
  background: rgba(1, 139, 241, 0.9);
  border: 3px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  pointer-events: none;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 24px rgba(1, 139, 241, 0.4);
}
.hero-banner .hero-cta .cta-btn {
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 800;
}
.hero-banner .hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.hero-banner .hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}
.hero-banner .hero-stat .num {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: #DDA853;
}
.hero-banner .hero-stat .label {
  font-size: 0.78rem;
  color: #6a7a98;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === Hero Banner Small (inner pages) === */
.hero-banner-sm {
  position: relative;
  padding: 2.5rem 0 2.5rem;
  text-align: center;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #1e2a3d;
}
.hero-banner-sm::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.08;
  z-index: 0;
}
.hero-banner-sm::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 139, 241, 0.06) 0%, transparent 100%);
  z-index: 1;
}
.hero-banner-sm .container { position: relative; z-index: 2; }
.hero-banner-sm h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #fff;
  margin-bottom: 0.5rem;
}
.hero-banner-sm .subtitle {
  font-size: 0.95rem;
  color: #9aa8c4;
  max-width: 600px;
  margin: 0 auto 1.2rem;
}
.hero-banner-sm .hero-cta .cta-btn {
  padding: 0.7rem 1.6rem;
  font-size: 0.92rem;
}
.hero-banner-sm .hero-img-wrap-sm {
  max-width: 500px;
  margin: 1.5rem auto 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(1, 139, 241, 0.1);
}
.hero-banner-sm .hero-img-wrap-sm img {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hero-banner { padding: 2.5rem 0 3rem; }
  .hero-banner .hero-stats { gap: 1rem; }
  .hero-banner .hero-stat .num { font-size: 1.1rem; }
  .hero-banner-sm { padding: 1.5rem 0 2rem; }
}

/* === Table of Contents === */
.toc-wrap {
  background: #141b2b;
  border: 1px solid #1e2a3d;
  border-radius: 10px;
  margin: 1.5rem 0 2rem;
  overflow: hidden;
}
.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  user-select: none;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #018BF1;
}
.toc-header .toc-toggle {
  font-size: 0.8rem;
  color: #8a94a8;
  transition: transform 0.25s;
}
.toc-header .toc-toggle.open { transform: rotate(180deg); }
.toc-body {
  padding: 0 1.2rem 1rem;
  display: none;
}
.toc-body.open { display: block; }
.toc-body ol {
  list-style: none;
  counter-reset: toc;
}
.toc-body ol li {
  counter-increment: toc;
  margin-bottom: 0.4rem;
}
.toc-body ol li::before {
  content: counter(toc) ". ";
  color: #018BF1;
  font-weight: 700;
  font-family: 'Cairo', sans-serif;
}
.toc-body ol li a {
  color: #c8d0dc;
  font-size: 0.9rem;
}
.toc-body ol li a:hover { color: #DDA853; }

/* === Content sections === */
.content-section {
  padding: 1.5rem 0;
}
.content-section img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1rem 0;
  cursor: pointer;
  display: block;
}
.content-section picture { display: block; margin: 1rem 0; }

/* === Tables === */
.table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0 1.5rem;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 600px;
}
table caption {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #8a94a8;
  text-align: right;
  padding-bottom: 0.5rem;
  caption-side: top;
}
table thead { background: #1a2438; }
table th {
  padding: 0.75rem 1rem;
  text-align: right;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: #DDA853;
  border-bottom: 2px solid #018BF1;
}
table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #1e2a3d;
  color: #c8d0dc;
}
table tr:hover td { background: rgba(1, 139, 241, 0.04); }

/* === Lists === */
.content-section ul, .content-section ol {
  padding-right: 1.5rem;
  margin-bottom: 1rem;
  color: #d0d6e2;
}
.content-section ul li, .content-section ol li { margin-bottom: 0.4rem; }
.content-section ul li::marker { color: #018BF1; }

/* === Game / Feature Cards === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 3fr);
  gap: 1rem;
  margin: 1.2rem 0;
}
.feature-card {
  background: #141b2b;
  border: 1px solid #1e2a3d;
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.15s;
}
.feature-card:hover { border-color: #018BF1; transform: translateY(-2px); }
.feature-card .icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.feature-card h4 { font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 0.3rem; color: #fff; }
.feature-card p { font-size: 0.85rem; color: #8a94a8; margin: 0; }
.feature-card .icon svg {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto;
}
/* === Info Table (brand facts) === */
.info-table table { min-width: 400px; }
.info-table table td:first-child {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: #DDA853;
  width: 40%;
}

/* === Author Block === */
.author-block {
  background: #141b2b;
  border: 1px solid #1e2a3d;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2.5rem 0;
  display: flex;
  gap: 1.2rem;
  align-items: center;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #018BF1, #0157C4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
}
.author-info h4 { font-family: 'Cairo', sans-serif; font-weight: 700; color: #fff; margin-bottom: 0.2rem; }
.author-info p { font-size: 0.85rem; color: #8a94a8; margin: 0; }
.author-info .author-date { font-size: 0.78rem; color: #5a6680; margin-top: 0.3rem; }

/* === FAQ === */
.faq-item {
  border-bottom: 1px solid #1e2a3d;
  padding: 0.8rem 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #c8d0dc;
  padding: 0.3rem 0;
  user-select: none;
}
.faq-question:hover { color: #018BF1; }
.faq-question .faq-icon {
  transition: transform 0.25s;
  color: #018BF1;
}
.faq-question.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0.4rem 0 0.6rem;
  color: #a0aabc;
  font-size: 0.9rem;
  line-height: 1.6;
}
.faq-answer.open { display: block; }

/* === Footer === */
.site-footer {
  background: #080d17;
  border-top: 1px solid #1e2a3d;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
  direction: rtl;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #DDA853;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #1e2a3d;
}
.footer-col p {
  font-size: 0.85rem;
  color: #8a94a8;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a {
  color: #8a94a8;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: #018BF1; }

/* Trust badges */
.trust-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.trust-badges img {
  height: 32px;
  width: auto;
  border-radius: 4px;
}

/* Payment icons */
.payment-icons {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.payment-icons img {
  height: 28px;
  width: auto;
  border-radius: 4px;
  background: #fff;
  padding: 2px;
}

/* Age restriction */
.age-restriction {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 71, 87, 0.08);
  border: 1px solid rgba(255, 71, 87, 0.2);
  border-radius: 8px;
  font-size: 0.82rem;
  color: #8a94a8;
}
.age-restriction .age-num {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  color: #ff4757;
}

.footer-bottom {
  border-top: 1px solid #1e2a3d;
  padding-top: 1.2rem;
  text-align: center;
  font-size: 0.78rem;
  color: #5a6680;
}

/* === Mobile CTA Bar === */
.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0B111B;
  border-top: 1px solid #1e2a3d;
  padding: 0.4rem 1rem;
  display: none;
  justify-content: space-between;
  gap: 0.5rem;
  z-index: 950;
  direction: rtl;
}
.mobile-cta-bar .cta-btn {
  flex: 1;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* === Scroll-to-top === */
.scroll-top {
  position: fixed;
  bottom: 80px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #018BF1;
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(1, 139, 241, 0.3);
  z-index: 800;
  transition: opacity 0.2s;
}
.scroll-top.show { display: flex; }

@media (max-width:1151.98px) {
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0B111B;
    z-index: 800;
    display: none;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .main-nav ul {
    flex-direction: column;
    gap: 0.3rem;
  }
  .main-nav {
    padding-bottom: 160px;
  }
  .main-nav ul li a {
    font-size: 1rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #1e2a3d;
  }

  .cta-btn {
    justify-content: center;
    padding: 6px 20px;
  }
  .site-logo img {
    width: 80px;
  }

  .burger { display: flex; margin-left: -6px; }
  .nav-cta-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  .nav-cta {
    margin-right: auto;
  }
}

/* === Responsive === */
@media (max-width: 768px) {

  

  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 60px; }

  .author-block { flex-direction: column; text-align: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }

  .site-header .container {
    gap: 10px;
  }
}

@media (min-width: 769px) {
  .nav-cta-mobile { display: none; }
}

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .cta-btn { width: 100%; justify-content: center; }
  .mobile-cta-bar { padding: 0.3rem 0.75rem; }
  .mobile-cta-bar .cta-btn { font-size: 0.6rem; padding: 0.6rem 0.5rem; }

  .nav-cta .cta-btn:last-of-type{ display: none;  }

  .hero-banner .hero-img-wrap {
    max-width: 280px;
  }
}

/* === Utility === */
/* .text-center { text-align: center; } */
.mt-1 { margin-top: 1rem;margin-bottom: 1rem; }
.mb-1 { margin-top: 1rem;margin-bottom: 1rem; }
.gap-1 { gap: 1rem; }


.payments-wrap {
  margin: 30px 0 30px;
}
.payments-wrap h4 {
  color: #fff;
  margin: 0 0 18px;
}
.payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 10px;
  justify-content: space-between;
}
.payment-item img {
  display: block;
  box-shadow: none;
  margin: 0 !important;
  border-radius: 0;
  border: none;
  max-width: 70px;
  max-height: 30px;
}
.footer-icons {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
  gap: 10px;
}
.footer-icons .pay-icon {
  display: flex;
  align-items: center;
}
.footer-icons .pay-icon span {
  width: 30px;
  height: 30px;
  margin-left: 5px;
  font-size: 12px;
  border-radius: 100%;
  border: 1px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-icons .pay-icon img {
  filter: brightness(100);
}
.main-title {
  display: flex;
  align-items: center;
}

.main-title .__right {
  margin-left: 60px;
  flex: 0 0 240px;
}
.footer-logo img {
  display: block;
  height: auto !important;
  width: 120px;
}

@media (max-width:800px) {
  .payments-grid {
    gap: 16px;
  }
  .payment-item img {
    max-width: 65px;
    max-height: 30px;
  }

  .table-wrap {
    overflow-x: scroll;
  }

      .main-title .__right {
    margin-left: 20px;
    flex: 0 0 220px;
  }
}
@media (max-width:639.98px) {
      .main-title {
    flex-direction: column;
  }

  .main-title .__right {
    margin-left: 0;
    flex: inherit;
  }
  .main-title .__right img {
    width: 300px !important;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}