/* ===== FONBET APK – Global Styles ===== */
:root {
  --dark:    #17263D;
  --white:   #FFFFFF;
  --red-dk:  #37050C;
  --btn-red: #D42B27;
  --btn-gray:#334055;
  --bg:      #0f1c2d;
  --card-bg: #1a2e45;
  --border:  #253a55;
  --text:    #c9d8e8;
  --accent:  #e63f3b;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(1.8rem,4vw,2.8rem); color: var(--white); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.4rem,3vw,2rem);   color: var(--white); font-weight: 700; margin-bottom: .6rem; }
h3 { font-size: clamp(1.1rem,2.5vw,1.4rem); color: var(--white); font-weight: 600; margin-bottom: .4rem; }
h4 { font-size: 1.05rem; color: var(--white); font-weight: 600; }
p  { margin-bottom: 1rem; }

/* ===== HEADER ===== */
.site-header {
  background: var(--dark);
  border-bottom: 2px solid var(--red-dk);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 1rem;
}
.header-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
.header-logo { display: flex; align-items: center; gap: 10px; }
.header-logo img { height: 38px; width: auto; }

.header-nav { display: flex; gap: .5rem; align-items: center; }
.header-nav a {
  color: var(--text);
  font-size: .85rem;
  padding: .35rem .7rem;
  border-radius: 6px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.header-nav a:hover, .header-nav a.active { color: var(--white); background: #253a55; }

.btn { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem;
  border-radius: 8px; padding: .55rem 1.2rem; cursor: pointer; border: none; transition: filter .2s, transform .15s;
  white-space: nowrap; }
.btn:hover   { filter: brightness(1.12); transform: translateY(-1px); }
.btn:active  { transform: translateY(0); }
.btn-red     { background: var(--btn-red); color: var(--white); }
.btn-gray    { background: var(--btn-gray); color: var(--white); }
.btn-lg      { font-size: 1.05rem; padding: .75rem 2rem; border-radius: 10px; }
.btn-xl      { font-size: 1.15rem; padding: .9rem 2.4rem; border-radius: 12px; }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #0a111c 50%, var(--red-dk) 100%);
  padding: 70px 1rem 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(212,43,39,.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { max-width: 900px; margin: auto; position: relative; }
.hero-banner-img img { border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,.5); }

/* Article / section banner images */
.section img[src*="banner-"] {
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
  transition: transform .3s ease;
}
.section img[src*="banner-"]:hover { transform: scale(1.01); }
.hero-badge {
  display: inline-block;
  background: rgba(212,43,39,.18);
  border: 1px solid rgba(212,43,39,.4);
  color: #ff7a76;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero-sub { font-size: 1.15rem; color: #a0b8d0; margin-bottom: 2rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-bottom: 2.5rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.6rem; color: var(--white); font-weight: 800; }
.hero-stat span { font-size: .8rem; color: #7a9ab8; text-transform: uppercase; letter-spacing: .06em; }

/* ===== SECTION ===== */
.section { padding: 60px 1rem; }
.section-alt { background: #111e2d; }
.section-inner { max-width: 1200px; margin: auto; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header p { color: #a0b8d0; font-size: 1.05rem; max-width: 700px; margin: .5rem auto 0; }

/* ===== CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; }
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card-icon { width: 48px; height: 48px; background: rgba(212,43,39,.15); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1rem; }

/* ===== STEPS ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; counter-reset: step; }
.step { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem; text-align: center; }
.step-num { width: 44px; height: 44px; background: var(--btn-red); color: var(--white); font-weight: 800; font-size: 1.1rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }

/* ===== TABLE ===== */
.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.compare-table th { background: var(--dark); color: var(--white); padding: .75rem 1rem; text-align: left; }
.compare-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); }
.compare-table tr:hover td { background: #1e3048; }
.check { color: #4ade80; }
.cross { color: #f87171; }

/* ===== DOWNLOAD BOX ===== */
.dl-box {
  background: linear-gradient(135deg, var(--card-bg), #0f1c2d);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.dl-box-info { flex: 1; min-width: 240px; }
.dl-box-logo { height: 60px; }
.version-badge { display: inline-block; background: #253a55; color: #7abde8; font-size: .75rem;
  padding: .25rem .6rem; border-radius: 999px; margin-bottom: .5rem; }
.file-meta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.file-meta span { font-size: .8rem; color: #7a9ab8; }
.file-meta strong { color: var(--white); }

/* ===== CRYPTO BLOCK ===== */
.crypto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.crypto-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem; text-align: center; }
.crypto-sym { font-size: 1.8rem; margin-bottom: .4rem; }
.crypto-name { font-size: .85rem; color: var(--white); font-weight: 600; }
.crypto-desc { font-size: .75rem; color: #7a9ab8; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-q {
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
  font-weight: 600;
  user-select: none;
}
.faq-q .icon { font-size: 1.2rem; transition: transform .25s; color: var(--btn-red); flex-shrink: 0; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { padding: 0 1.3rem; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; }
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 1.1rem; }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; gap: .4rem; align-items: center; font-size: .82rem; color: #7a9ab8; padding: 1rem 0; flex-wrap: wrap; }
.breadcrumb a { color: #7a9ab8; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: #4a6a88; }

/* ===== REGISTER ===== */
.reg-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1rem; }
.reg-step { background: var(--card-bg); border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem; display: flex; gap: 1rem; }
.reg-num { width: 36px; height: 36px; flex-shrink: 0; background: var(--btn-red); color: var(--white);
  font-weight: 800; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  border-top: 2px solid var(--red-dk);
  padding: 3rem 1rem 2rem;
  font-size: .85rem;
  color: #7a9ab8;
}
.footer-inner { max-width: 1200px; margin: auto; }
.footer-top { display: flex; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; }
.footer-col { flex: 1; min-width: 200px; }
.footer-col h4 { color: var(--white); margin-bottom: .8rem; font-size: .95rem; }
.footer-col ul li + li { margin-top: .4rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer-logo img { height: 28px; }
.age-badge { display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--btn-red); color: var(--white); font-weight: 800; font-size: .85rem; }

/* ===== NOTICE ===== */
.notice {
  background: rgba(55,5,12,.6);
  border: 1px solid rgba(212,43,39,.3);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-size: .82rem;
  color: #a0b8d0;
  margin-top: 1rem;
}

/* ===== OS TABS ===== */
.os-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.os-tab { padding: .5rem 1.1rem; border-radius: 8px; background: var(--card-bg); border: 1px solid var(--border);
  cursor: pointer; font-size: .88rem; color: var(--text); transition: .2s; }
.os-tab.active, .os-tab:hover { background: var(--btn-red); border-color: var(--btn-red); color: var(--white); }

/* ===== HIGHLIGHT ===== */
.hl { color: var(--btn-red); }
.hl-green { color: #4ade80; }
.tag { display: inline-block; background: rgba(212,43,39,.15); border: 1px solid rgba(212,43,39,.3);
  color: #ff7a76; font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 4px; }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 1rem;
  gap: .4rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: .6rem .8rem; border-radius: 8px; color: var(--text); font-size: .92rem; }
.mobile-nav a:hover { background: #253a55; color: var(--white); }

/* ===== APP SCREENSHOT ===== */
.app-screen { border-radius: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }

/* ===== PROGRESS BARS ===== */
.progress-row { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.progress-label { min-width: 80px; font-size: .82rem; color: var(--white); }
.progress-bar { flex: 1; background: #1e3048; height: 8px; border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--btn-red); border-radius: 99px; }
.progress-val { min-width: 40px; text-align: right; font-size: .82rem; color: #a0b8d0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .burger { display: flex; }
}
@media (max-width: 600px) {
  .hero { padding: 50px 1rem 40px; }
  .hero-btns .btn-xl { width: 100%; justify-content: center; }
  .dl-box { flex-direction: column; }
  .footer-top { flex-direction: column; gap: 1.2rem; }
}
