/* ============================================
   Aviator — cтили сайта
   Цвета: фон #F8F2E9, меню #0B0D1C, шапка #2493AF, кнопка #C27427
   ============================================ */
:root {
  --bg: #F8F2E9;
  --menu: #0B0D1C;
  --header: #2493AF;
  --btn: #C27427;
  --btn-hover: #a85f1b;
  --header-dark: #1c7185;
  --text: #1d2330;
  --text-soft: #5a6373;
  --card: #ffffff;
  --border: #e6ddd0;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(11,13,28,.08);
  --shadow-lg: 0 14px 44px rgba(11,13,28,.14);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--header-dark); text-decoration: none; transition: .2s; }
a:hover { color: var(--btn); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; line-height: 1.25; color: var(--text); }

/* ============ HEADER ============ */
.site-header {
  background: var(--header);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 4px 20px rgba(36,147,175,.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; gap: 16px; }
.logo-img { height: 48px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.2)); }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { color: #fff; font-weight: 600; font-size: 16px; font-family: 'Montserrat',sans-serif; position: relative; }
.main-nav a:hover, .main-nav a.is-active { color: #fff; }
.main-nav a:not(.nav-cta).is-active::after,
.main-nav a:not(.nav-cta):hover::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 3px; background: #fff; border-radius: 3px;
}
.nav-cta {
  background: var(--btn); padding: 10px 22px; border-radius: 30px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(194,116,39,.4);
}
.nav-cta:hover { background: var(--btn-hover); color:#fff; transform: translateY(-2px); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 17px;
  padding: 15px 34px; border-radius: 40px; cursor: pointer; border: 0; transition: .25s; text-align: center;
}
.btn-primary { background: var(--btn); color: #fff; box-shadow: 0 8px 22px rgba(194,116,39,.4); }
.btn-primary:hover { background: var(--btn-hover); color: #fff; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(194,116,39,.5); }
.btn-hero { font-size: 19px; padding: 17px 40px; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.8); }
.btn-outline:hover { background: #fff; color: var(--header-dark); }
.btn-casino { background: var(--btn); color: #fff; width: 100%; box-shadow: 0 6px 18px rgba(194,116,39,.35); }
.btn-casino:hover { background: var(--btn-hover); color: #fff; transform: translateY(-2px); }
.cta-row { margin: 28px 0 8px; }
.cta-row--center { text-align: center; }

/* ============ HERO ============ */
.hero { background: linear-gradient(135deg, var(--header) 0%, var(--header-dark) 100%); color: #fff; padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12), transparent 50%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.18); padding: 7px 18px; border-radius: 30px; font-size: 14px; font-weight: 600; margin-bottom: 18px; backdrop-filter: blur(4px); }
.hero h1 { font-size: 44px; font-weight: 900; color: #fff; margin-bottom: 18px; letter-spacing: -.5px; }
.hero-sub { font-size: 19px; color: rgba(255,255,255,.92); margin-bottom: 30px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { list-style: none; display: flex; gap: 36px; margin-top: 38px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-size: 30px; font-family: 'Montserrat',sans-serif; font-weight: 800; color: #fff; }
.hero-stats span { font-size: 14px; color: rgba(255,255,255,.8); }
.hero-img { border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 3px solid rgba(255,255,255,.2); }

/* page hero (внутренние страницы) */
.page-hero { background: linear-gradient(135deg, var(--header) 0%, var(--header-dark) 100%); color: #fff; padding: 56px 0; text-align: center; }
.page-hero h1 { font-size: 38px; font-weight: 900; color: #fff; margin-bottom: 16px; max-width: 860px; margin-inline: auto; }
.page-hero-sub { font-size: 18px; color: rgba(255,255,255,.92); max-width: 720px; margin: 0 auto; }

/* ============ CASINO TOP ============ */
.casino-top { padding: 60px 0; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.section-title { font-size: 32px; font-weight: 800; text-align: center; margin-bottom: 14px; }
.section-lead { text-align: center; color: var(--text-soft); max-width: 760px; margin: 0 auto 40px; }
.casino-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.casino-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; position: relative; border: 1px solid var(--border);
  transition: .3s; display: flex; flex-direction: column;
}
.casino-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.casino-card:first-child { border: 2px solid var(--btn); }
.casino-rank { position: absolute; top: 14px; left: 14px; background: var(--accent,var(--btn)); color: #fff; font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: 15px; padding: 4px 14px; border-radius: 20px; z-index: 2; }
.casino-logo-wrap { height: 110px; display: flex; align-items: center; justify-content: center; padding: 20px; }
.casino-logo { max-height: 60px; width: auto; object-fit: contain; }
.casino-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.casino-rating { font-size: 15px; color: var(--text-soft); margin-bottom: 8px; }
.casino-rating .stars { color: #f5a623; letter-spacing: 2px; font-size: 17px; }
.casino-rating b { color: var(--text); font-size: 17px; }
.casino-tagline { font-weight: 700; font-family: 'Montserrat',sans-serif; margin-bottom: 14px; font-size: 17px; }
.casino-features { list-style: none; margin-bottom: 20px; flex: 1; }
.casino-features li { font-size: 14.5px; padding: 6px 0; border-bottom: 1px dashed var(--border); color: var(--text-soft); }
.casino-features li span { color: var(--text); font-weight: 600; }
.casino-note { text-align: center; color: var(--text-soft); font-size: 14px; margin-top: 30px; max-width: 760px; margin-inline: auto; }
.casino-note b { color: var(--btn); }

/* ============ CONTENT ============ */
.content { padding: 50px 20px 30px; }
.text-block { margin-bottom: 48px; max-width: 880px; }
.content > .text-block, .content > .toc, .content > .final-cta { margin-left: auto; margin-right: auto; }
.text-block h2 { font-size: 28px; font-weight: 800; margin-bottom: 18px; padding-left: 16px; border-left: 5px solid var(--header); }
.text-block h3 { font-size: 21px; font-weight: 700; margin: 26px 0 12px; color: var(--header-dark); }
.text-block p { margin-bottom: 16px; color: var(--text); }
.content-img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 8px 0 26px; width: 100%; }

.steps { list-style: none; counter-reset: step; margin: 18px 0; }
.steps li { position: relative; padding: 14px 18px 14px 58px; margin-bottom: 12px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; background: var(--btn); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: 'Montserrat',sans-serif; }

.check-list { list-style: none; margin: 16px 0; }
.check-list li { position: relative; padding: 9px 0 9px 34px; border-bottom: 1px solid var(--border); }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; background: var(--header); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }

.adv-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 22px; }
.adv-card { background: var(--card); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: .25s; }
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.adv-ico { font-size: 34px; display: block; margin-bottom: 10px; }
.adv-card h3 { font-size: 19px; margin-bottom: 8px; color: var(--text); }
.adv-card p { font-size: 15px; color: var(--text-soft); margin: 0; }

.compare-table { overflow-x: auto; margin: 18px 0; }
.compare-table table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare-table th { background: var(--header); color: #fff; padding: 14px 16px; text-align: left; font-family: 'Montserrat',sans-serif; }
.compare-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 15.5px; }
.compare-table tr:nth-child(even) td { background: #faf6ef; }

.screenshots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 18px; }
.screenshots-grid figure { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.screenshots-grid img { width: 100%; }
.screenshots-grid figcaption { padding: 12px 16px; font-size: 14px; color: var(--text-soft); text-align: center; }

/* TOC */
.toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 30px; margin-bottom: 44px; box-shadow: var(--shadow); max-width: 880px; }
.toc-title { font-size: 20px; margin-bottom: 14px; }
.toc-list { columns: 2; column-gap: 36px; padding-left: 20px; }
.toc-list li { margin-bottom: 9px; break-inside: avoid; }
.toc-list a { color: var(--header-dark); font-weight: 500; }
.toc-list a:hover { color: var(--btn); }

/* FAQ */
.faq-item { background: var(--card); border-radius: 12px; padding: 18px 22px; margin-bottom: 12px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.faq-item h3 { font-size: 18px; margin: 0 0 8px; color: var(--text); }
.faq-item p { margin: 0; color: var(--text-soft); }

/* Final CTA */
.final-cta { background: linear-gradient(135deg, var(--header), var(--header-dark)); color: #fff; border-radius: var(--radius); padding: 44px 30px; text-align: center; max-width: 880px; margin: 10px auto 40px; box-shadow: var(--shadow-lg); }
.final-cta h2 { color: #fff; font-size: 28px; border: 0; padding: 0; margin-bottom: 12px; }
.final-cta p { color: rgba(255,255,255,.92); margin-bottom: 24px; }
.final-cta b { color: #ffd9a8; }

/* ============ GAME ============ */
.game-section { padding: 50px 0; background: var(--bg); }
.game-shell { display: grid; grid-template-columns: 150px 1fr 280px; gap: 18px; background: var(--menu); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-lg); max-width: 1100px; margin: 0 auto; }
.game-history { display: flex; flex-direction: column; gap: 8px; max-height: 460px; overflow-y: auto; }
.game-history .h-item { background: #161a2e; color: #fff; text-align: center; padding: 8px; border-radius: 8px; font-weight: 700; font-size: 14px; font-family: 'Montserrat',sans-serif; }
.game-history .h-low { color: #6fa8ff; }
.game-history .h-mid { color: #c08bff; }
.game-history .h-high { color: #ff5d6c; }
.game-canvas-wrap { position: relative; background: radial-gradient(circle at center, #1a1f38 0%, #0b0d1c 100%); border-radius: 12px; overflow: hidden; min-height: 420px; display: flex; align-items: center; justify-content: center; }
#game-canvas { width: 100%; height: 100%; display: block; }
.game-multiplier { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-family: 'Montserrat',sans-serif; font-size: 64px; font-weight: 900; color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,.5); pointer-events: none; }
.game-multiplier span { font-size: 36px; }
.game-multiplier.crashed { color: #ff3b4e; }
.game-status { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font-size: 14px; }
.game-controls { display: flex; flex-direction: column; gap: 12px; }
.game-balance { background: #161a2e; color: #fff; border-radius: 10px; padding: 12px; text-align: center; font-size: 14px; }
.game-balance b { color: #4ade80; font-size: 20px; font-family: 'Montserrat',sans-serif; }
.game-balance span { font-size: 12px; color: rgba(255,255,255,.5); }
.bet-row { display: flex; gap: 6px; }
.bet-step { width: 44px; background: #161a2e; color: #fff; border: 0; border-radius: 10px; font-size: 22px; cursor: pointer; transition: .2s; }
.bet-step:hover { background: #232a47; }
#bet-input { flex: 1; background: #fff; border: 0; border-radius: 10px; text-align: center; font-size: 18px; font-weight: 700; padding: 10px; -moz-appearance: textfield; }
#bet-input::-webkit-outer-spin-button, #bet-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.bet-quick { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.bet-quick button { background: #161a2e; color: #fff; border: 0; border-radius: 8px; padding: 9px 0; cursor: pointer; font-size: 14px; transition: .2s; }
.bet-quick button:hover { background: #232a47; }
.btn-bet { background: #4ade80; color: #06301a; font-weight: 800; padding: 18px; border-radius: 12px; font-size: 19px; }
.btn-bet:hover { background: #3bc46d; }
.btn-bet.cashout { background: var(--btn); color: #fff; }
.btn-bet.cashout:hover { background: var(--btn-hover); }
.btn-bet:disabled { opacity: .6; cursor: not-allowed; }
.btn-reset { background: transparent; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.2); padding: 10px; font-size: 13px; border-radius: 10px; }
.btn-reset:hover { background: rgba(255,255,255,.1); color: #fff; }
.game-disclaimer { text-align: center; color: var(--text-soft); font-size: 14px; max-width: 760px; margin: 24px auto 0; }

/* ============ FOOTER ============ */
.site-footer { background: var(--menu); color: rgba(255,255,255,.7); padding: 50px 0 24px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 36px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo { height: 46px; margin-bottom: 16px; }
.footer-about { font-size: 14.5px; color: rgba(255,255,255,.6); }
.footer-title { color: #fff; font-size: 18px; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.7); margin-bottom: 10px; font-size: 15px; }
.footer-col a:hover { color: var(--btn); }
.age-badge { display: inline-block; background: var(--btn); color: #fff; font-weight: 800; padding: 4px 14px; border-radius: 8px; margin-top: 10px; }
.footer-bottom { padding-top: 22px; text-align: center; font-size: 14px; color: rgba(255,255,255,.5); }
.footer-bottom b { color: var(--btn); }
.footer-disclaimer { margin-top: 10px; font-size: 12.5px; color: rgba(255,255,255,.4); max-width: 760px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* meta строка (дата обновления / автор) */
.page-meta { font-size: 13.5px; color: rgba(11,13,28,.55); margin: 4px 0 14px; }
.page-meta time { font-weight: 600; }

/* блок "О проекте" */
.about-block { background: rgba(36,147,175,.06); border: 1px solid rgba(36,147,175,.18); border-radius: 14px; padding: 26px 28px; }

/* sticky mobile CTA */
.mobile-sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--btn); color: #fff; text-align: center; padding: 15px; font-weight: 800; font-family: 'Montserrat',sans-serif; z-index: 200; box-shadow: 0 -4px 20px rgba(0,0,0,.2); }
.mobile-sticky-cta:hover { color: #fff; background: var(--btn-hover); }

/* error page */
.error-page { text-align: center; padding: 80px 20px; }
.error-page h1 { font-size: 40px; margin-bottom: 16px; }
.error-page p { color: var(--text-soft); margin-bottom: 28px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .casino-list { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .adv-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .game-shell { grid-template-columns: 1fr; }
  .game-history { flex-direction: row; max-height: none; overflow-x: auto; order: 3; }
  .game-history .h-item { min-width: 60px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .burger { display: flex; }
  .main-nav {
    position: fixed; top: 72px; right: 0; bottom: 0; width: 78%; max-width: 320px;
    background: var(--header-dark); flex-direction: column; align-items: flex-start;
    padding: 30px 26px; gap: 22px; transform: translateX(110%); transition: .3s; z-index: 99;
    box-shadow: -10px 0 40px rgba(0,0,0,.3);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 18px; width: 100%; }
  .nav-cta { text-align: center; }
  .hero { padding: 40px 0 50px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 24px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .page-hero h1 { font-size: 27px; }
  .page-hero-sub { font-size: 16px; }
  .section-title { font-size: 25px; }
  .text-block h2 { font-size: 23px; }
  .adv-grid { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; }
  .toc-list { columns: 1; }
  .game-multiplier { font-size: 44px; }
  .game-multiplier span { font-size: 26px; }
  .mobile-sticky-cta { display: block; }
  body { padding-bottom: 60px; }
  .final-cta h2 { font-size: 23px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 26px; }
  .btn { font-size: 15px; padding: 13px 24px; }
}
