/* =============================================
   RAXI WIN – raxiapp.in – Global Stylesheet
   Simple, Fast, Mobile-First, SEO-Ready
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --red:      #B22222;
  --red-dark: #8B0000;
  --gold:     #F5B014;
  --white:    #ffffff;
  --gray-bg:  #f5f5f5;
  --gray-lt:  #eeeeee;
  --border:   #dddddd;
  --text:     #333333;
  --text-lt:  #666666;
  --font:     'Inter', Arial, sans-serif;
  --radius:   6px;
  --max:      1100px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: #fff; line-height: 1.7; overflow-x: hidden; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 4px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 14px; }

/* ── HEADER ── */
#site-header {
  background: var(--red-dark);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 200;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 10px 14px;
  position: relative;
}
.logo-link {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}
.logo-link img { height: 38px; width: auto; }

/* ── HAMBURGER ── */
#nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: auto; flex-shrink: 0;
  border-radius: 4px;
}
#nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
/* hamburger → X when open */
#nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop nav */
#main-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
}
#main-nav ul li a {
  color: rgba(255,255,255,0.88); font-size: 0.82rem; font-weight: 500;
  padding: 6px 9px; border-radius: var(--radius);
  display: block; white-space: nowrap; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
#main-nav ul li a:hover,
#main-nav ul li a.active { background: rgba(255,255,255,0.15); color: var(--gold); }
.nav-cta a {
  background: var(--gold) !important;
  color: var(--red-dark) !important;
  font-weight: 700 !important;
  border-radius: var(--radius) !important;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--gray-bg); border-bottom: 1px solid var(--border);
  font-size: 0.78rem; padding: 7px 14px;
}
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb ol li + li::before { content: '›'; margin-right: 4px; color: #aaa; }
.breadcrumb ol li a { color: var(--red); }
.breadcrumb ol li span { color: #999; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--red-dark) 0%, #5a0000 100%);
  color: #fff; padding: 28px 14px 24px; text-align: center;
}
.hero .hero-img {
  max-width: 420px; width: 100%; margin: 0 auto 16px; border-radius: var(--radius);
}
.hero h1 {
  font-size: clamp(1.25rem, 5vw, 1.9rem);
  font-weight: 700; line-height: 1.25; color: #fff; margin-bottom: 10px;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: 0.9rem; color: rgba(255,255,255,0.88);
  max-width: 560px; margin: 0 auto 18px; line-height: 1.55;
}
.hero-btns {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.88rem; text-decoration: none;
  border: none; cursor: pointer; font-family: var(--font);
  transition: opacity 0.2s; line-height: 1;
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn-primary { background: var(--gold);  color: var(--red-dark); }
.btn-outline  { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.55); }
.btn-red      { background: var(--red);  color: #fff; }
.btn-full     { width: 100%; text-align: center; display: block; }

/* ── STATS BAR ── */
.stats-bar { background: var(--gold); padding: 10px 14px; overflow-x: auto; }
.stats-inner {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 12px 24px; max-width: var(--max); margin: 0 auto;
}
.stat-item { text-align: center; min-width: 60px; }
.stat-item .num { font-size: 1.15rem; font-weight: 700; color: var(--red-dark); display: block; }
.stat-item .lbl { font-size: 0.65rem; font-weight: 600; color: var(--red-dark); text-transform: uppercase; letter-spacing: 0.4px; }

/* ── QUICK LINKS ── */
.quicklinks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px; padding: 14px 14px;
  max-width: var(--max); margin: 0 auto;
}
.ql-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 6px; text-align: center;
  font-size: 0.75rem; font-weight: 600; color: var(--text);
  text-decoration: none; background: #fff; display: block;
  transition: border-color 0.2s, color 0.2s;
}
.ql-card:hover { border-color: var(--red); color: var(--red-dark); text-decoration: none; }
.ql-card .ico { font-size: 1.4rem; display: block; margin-bottom: 4px; }

/* ── MAIN LAYOUT ── */
.site-body { padding: 20px 0 36px; }
.layout {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 20px; max-width: var(--max); margin: 0 auto; padding: 0 14px;
  align-items: start;
}
.layout-single { max-width: var(--max); margin: 0 auto; padding: 20px 14px; }

/* ── CONTENT TEXT ── */
.content h2 {
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  font-weight: 700; color: var(--red-dark);
  margin: 1.7em 0 0.5em; padding-bottom: 5px;
  border-bottom: 2px solid var(--gray-lt);
}
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 1rem; font-weight: 700; color: #222; margin: 1.3em 0 0.4em; }
.content h4 { font-size: 0.93rem; font-weight: 700; margin: 1em 0 0.3em; }
.content p  { margin-bottom: 0.9em; font-size: 0.93rem; }
.content ul, .content ol { margin-bottom: 0.9em; font-size: 0.93rem; }
.content strong { color: #111; }
.content li { margin-bottom: 5px; line-height: 1.6; }

/* TOC */
.toc {
  background: var(--gray-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 20px;
}
.toc strong {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--red-dark); display: block; margin-bottom: 8px;
}
.toc ol { margin: 0; padding-left: 1.2em; }
.toc ol li { font-size: 0.83rem; margin-bottom: 3px; }
.toc ol li a { color: var(--text); }
.toc ol li a:hover { color: var(--red); }

/* Info box */
.box {
  border-left: 4px solid var(--gold); background: #fffde7;
  padding: 11px 13px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.1em 0; font-size: 0.87rem; line-height: 1.55;
}
.box.green { border-color: #27AE60; background: #f0fff4; }
.box.red   { border-color: var(--red); background: #fff0f0; }

/* Steps */
.steps { list-style: none; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s; display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 13px; padding-bottom: 13px;
  border-bottom: 1px solid var(--gray-lt); font-size: 0.9rem;
}
.steps li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.steps li::before {
  content: counter(s); background: var(--red-dark); color: #fff;
  font-weight: 700; font-size: 0.78rem;
  min-width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}

/* Table – self-scrolling on mobile, no wrapper needed */
.tbl {
  width: 100%; border-collapse: collapse; display: block;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  font-size: 0.85rem; margin: 1em 0;
}
.tbl thead, .tbl tbody, .tbl tr { display: table; width: 100%; table-layout: fixed; }
.tbl th { background: var(--red-dark); color: #fff; padding: 9px 12px; text-align: left; white-space: nowrap; }
.tbl td { padding: 8px 12px; border-bottom: 1px solid var(--border); word-break: break-word; }
.tbl tr:nth-child(even) td { background: var(--gray-bg); }

/* Feature grid */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px; margin: 1em 0;
}
.feat-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px; background: var(--gray-bg);
}
.feat-card .ico { font-size: 1.3rem; margin-bottom: 5px; }
.feat-card h4   { font-size: 0.88rem; color: var(--red-dark); margin: 0 0 4px; }
.feat-card p    { font-size: 0.8rem; color: var(--text-lt); margin: 0; line-height: 1.5; }

/* Game cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin: 1em 0;
}
.game-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.game-card-head {
  background: var(--red-dark); color: #fff;
  padding: 14px 10px 10px; text-align: center;
}
.game-card-head .g-ico { font-size: 1.8rem; display: block; margin-bottom: 4px; }
.game-card-head h4 { font-size: 0.82rem; color: #fff; margin: 0; }
.game-card-body { padding: 9px 11px; font-size: 0.77rem; color: var(--text-lt); line-height: 1.5; }

/* Bonus highlight */
.bonus-box {
  background: var(--red-dark); color: #fff;
  border-radius: var(--radius); padding: 18px 14px;
  text-align: center; margin: 1em 0;
}
.bonus-box .amt { font-size: 2.2rem; font-weight: 700; color: var(--gold); display: block; }
.bonus-box p { color: rgba(255,255,255,0.85); margin: 5px 0 0; font-size: 0.88rem; }

/* FAQ */
.faq { margin: 1.1em 0; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 6px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: var(--gray-bg);
  border: none; padding: 12px 13px; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start;
  gap: 8px;
  color: var(--text); font-family: var(--font); transition: background 0.2s; line-height: 1.4;
}
.faq-q:hover { background: #ebebeb; }
.faq-q .ico { color: var(--red); font-size: 1.1rem; flex-shrink: 0; transition: transform 0.25s; margin-top: 1px; }
.faq-q.open { background: #fff0f0; }
.faq-q.open .ico { transform: rotate(45deg); }
.faq-a {
  display: none; padding: 11px 13px; font-size: 0.86rem;
  color: var(--text-lt); border-top: 1px solid var(--border); line-height: 1.65;
}
.faq-a.open { display: block; }

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 65px; }
.sw {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 14px;
}
.sw h3 {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--red-dark); margin-bottom: 9px;
  padding-bottom: 6px; border-bottom: 1px solid var(--gray-lt);
}
.sw ul { list-style: none; padding: 0; margin: 0; }
.sw ul li { border-bottom: 1px solid var(--gray-lt); }
.sw ul li:last-child { border-bottom: none; }
.sw ul li a {
  display: block; padding: 7px 4px; font-size: 0.84rem;
  color: var(--text); text-decoration: none; transition: color 0.2s;
}
.sw ul li a:hover { color: var(--red); }
.sw-cta {
  background: var(--red-dark); border-radius: var(--radius);
  padding: 16px; text-align: center; margin-bottom: 14px;
}
.sw-cta h3 { color: #fff; border-bottom-color: rgba(255,255,255,0.2); }
.sw-cta p  { font-size: 0.81rem; color: rgba(255,255,255,0.8); margin-bottom: 11px; }
.sw-cta img { width: 100%; border-radius: 4px; margin-bottom: 10px; }
.disclaimer-box {
  background: #fffde7; border: 1px solid #f5b014;
  border-radius: var(--radius); padding: 11px; margin-bottom: 14px;
  font-size: 0.74rem; color: #666; line-height: 1.5;
}

/* ── FOOTER ── */
#site-footer { background: var(--red-dark); color: rgba(255,255,255,0.75); padding: 32px 0 0; margin-top: 28px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px; max-width: var(--max); margin: 0 auto; padding: 0 14px 24px;
}
.footer-col h4 {
  color: var(--gold); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}
.footer-col p  { font-size: 0.8rem; line-height: 1.65; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 5px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.8rem; text-decoration: none; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-col img { height: 34px; width: auto; margin-bottom: 10px; }
.footer-disc {
  font-size: 0.72rem; color: rgba(255,255,255,0.42); line-height: 1.6;
  max-width: var(--max); margin: 0 auto; padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom {
  background: rgba(0,0,0,0.25); text-align: center;
  padding: 11px 14px; font-size: 0.74rem; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: var(--gold); }

/* ── TELEGRAM BANNER ── */
.tg-banner {
  background: #229ED9; color: #fff; border-radius: var(--radius);
  padding: 13px; text-align: center; margin-bottom: 14px;
}
.tg-banner img { width: 100%; border-radius: 4px; margin-bottom: 8px; }
.tg-banner p { font-size: 0.81rem; margin-bottom: 9px; }
.tg-banner a {
  background: #fff; color: #229ED9; font-weight: 700;
  font-size: 0.83rem; padding: 7px 16px;
  border-radius: var(--radius); display: inline-block; text-decoration: none;
}

/* ══════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════ */

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .sidebar .sw-cta,
  .sidebar .disclaimer-box { margin-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}

/* ── Mobile (≤ 600px) ── */
@media (max-width: 600px) {
  /* Show hamburger, hide inline nav */
  #nav-toggle { display: flex; }
  #main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--red-dark); border-top: 2px solid var(--gold);
    padding: 8px 10px; z-index: 199;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  }
  #main-nav.open { display: block; }
  #main-nav ul { flex-direction: column; gap: 0; }
  #main-nav ul li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  #main-nav ul li:last-child { border-bottom: none; }
  #main-nav ul li a { padding: 11px 12px; font-size: 0.9rem; }
  .nav-cta { margin-top: 4px; }

  /* Hero tighter on mobile */
  .hero { padding: 20px 14px 18px; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { text-align: center; }

  /* Stats – smaller gap */
  .stats-inner { gap: 8px 16px; }
  .stat-item .num { font-size: 1rem; }

  /* Quick links: 4-col but very compact */
  .quicklinks { grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 10px 10px; }
  .ql-card { padding: 9px 3px; font-size: 0.68rem; }
  .ql-card .ico { font-size: 1.2rem; margin-bottom: 3px; }

  /* Layout single col */
  .layout { padding: 0 10px; }
  .layout-single { padding: 14px 10px; }

  /* Content text slightly tighter */
  .content p, .content ul, .content ol { font-size: 0.9rem; }

  /* Sidebar: single col on phone */
  .sidebar { grid-template-columns: 1fr; }

  /* Feature grid: 2 col */
  .feat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .feat-card { padding: 10px; }

  /* Game grid: 2 col */
  .game-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  /* Footer: 1 col */
  .footer-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Buttons full width on mobile in hero */
  .btn-outline, .btn-primary { font-size: 0.85rem; padding: 10px 16px; }
}

/* ── Very small (≤ 380px) ── */
@media (max-width: 380px) {
  .quicklinks { grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px; }
  .ql-card { padding: 7px 2px; font-size: 0.62rem; }
  .ql-card .ico { font-size: 1rem; }
  .feat-grid { grid-template-columns: 1fr; }
  .game-grid  { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.15rem; }
}
