/* ===== Mostbet APK — улучшенные стили ===== */
:root {
  --c-header: #013B77;
  --c-body: #09519E;
  --c-body-2: #0A4488;
  --c-accent: #FA5B01;
  --c-accent-hover: #ff6f1f;
  --c-blue-btn: #448EDE;
  --c-blue-btn-hover: #5a9ee8;
  --c-panel: #03407F;
  --c-panel-light: #0D5AA8;
  --c-gold: #FDCD2D;
  --c-text: #EAF2FB;
  --c-text-muted: #B9CFE8;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 20, 50, .35);
  --font: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: linear-gradient(180deg, var(--c-body) 0%, var(--c-body-2) 100%);
  color: var(--c-text);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: all .2s ease; }
ul, ol { padding-left: 24px; }

/* ===== Header ===== */
.site-header {
  background: var(--c-header);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.home-link img { width: 180px; height: auto; display: block; }

.header-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.header-nav a { color: var(--c-text-muted); font-weight: 600; font-size: 14px; }
.header-nav a:hover { color: var(--c-gold); }

.header-buttons { display: flex; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn-download { background: var(--c-accent); box-shadow: 0 4px 14px rgba(250, 91, 1, .4); }
.btn-download:hover { background: var(--c-accent-hover); transform: translateY(-2px); }
.btn-register { background: var(--c-blue-btn); }
.btn-register:hover { background: var(--c-blue-btn-hover); transform: translateY(-2px); }
.btn-lg { height: 54px; padding: 0 34px; font-size: 17px; }

/* ===== Hero / бонусный баннер ===== */
.hero-banner {
  max-width: 1180px;
  margin: 20px auto;
  padding: 40px 20px;
  background: radial-gradient(ellipse at 30% 20%, #0D5AA8 0%, var(--c-panel) 65%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.hero-banner .bonus-amount {
  display: inline-block;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  background: rgba(0, 0, 0, .28);
  padding: 10px 24px;
  border-radius: 12px;
  margin-bottom: 14px;
  color: var(--c-gold);
}

.hero-banner .hero-sub {
  display: block;
  font-size: 17px;
  color: var(--c-text-muted);
  margin-bottom: 8px;
}

.promocode {
  display: inline-block;
  font-size: 16px;
  margin-bottom: 18px;
}

.promocode b {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--c-gold);
  background: rgba(0,0,0,.25);
  padding: 4px 12px;
  border-radius: 8px;
  letter-spacing: 1px;
}
.promocode b:hover { background: rgba(0,0,0,.4); }
.promocode b::after { content: '⧉'; font-size: 14px; }

.hero-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; }

.hero-features {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 14px;
  color: var(--c-text-muted);
}
.hero-features li { list-style: none; display: flex; align-items: center; gap: 8px; }
.hero-features li::before { content: '✔'; color: #4CD964; font-weight: 700; }

/* ===== Слоты ===== */
.games-section { max-width: 1200px; margin: 0 auto; padding: 20px 16px; }

.section-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  margin: 10px 0 18px;
  text-align: center;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.game-card {
  background: var(--c-panel);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.game-card img { width: 100%; aspect-ratio: 35/24; object-fit: cover; display: block; }

.game-card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-card-body h3 { font-size: 17px; font-weight: 700; }
.game-card-body p { font-size: 13.5px; color: var(--c-text-muted); flex: 1; }

.game-card-body .btn { height: 40px; font-size: 14px; }

/* ===== Контент статьи ===== */
.main-article {
  max-width: 900px;
  margin: 30px auto;
  padding: 30px 22px;
  background: rgba(1, 45, 92, .55);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
}

.main-article h1 {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.3;
  margin-bottom: 18px;
  font-weight: 800;
}

.main-article h2 {
  font-size: clamp(20px, 3vw, 26px);
  margin: 34px 0 14px;
  font-weight: 700;
  padding-left: 14px;
  border-left: 4px solid var(--c-accent);
}

.main-article h3 { font-size: 19px; margin: 26px 0 12px; font-weight: 700; color: var(--c-gold); }
.main-article h4 { font-size: 16.5px; margin: 20px 0 8px; font-weight: 700; }

.main-article p { margin-bottom: 14px; color: var(--c-text); }
.main-article ul, .main-article ol { margin: 0 0 16px 6px; }
.main-article li { margin-bottom: 8px; }
.main-article strong { color: var(--c-gold); }

.main-article figure {
  margin: 22px 0;
  text-align: center;
}
.main-article figure img {
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.1);
}
.main-article figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--c-text-muted);
  font-style: italic;
}

.main-article blockquote {
  border: 1px solid var(--c-panel-light);
  border-left: 8px solid var(--c-accent);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  background: rgba(0,0,0,.18);
  color: var(--c-text);
}

/* Таблицы */
.table-wrap { overflow-x: auto; margin: 20px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: rgba(0,0,0,.15);
  border-radius: 10px;
  overflow: hidden;
}
th, td { padding: 12px 14px; text-align: left; border: 1px solid var(--c-panel); }
thead th, table tr:first-child td { background: var(--c-panel); font-weight: 700; }
tbody tr:hover { background: rgba(255,255,255,.04); }

/* CTA-блок внутри статьи */
.inline-cta {
  margin: 26px 0;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--c-panel) 0%, #0A4E97 100%);
  border: 1px solid rgba(255,255,255,.1);
  text-align: center;
}
.inline-cta p { font-size: 17px; font-weight: 700; margin-bottom: 14px; }

/* Шаги установки */
.steps-list { counter-reset: step; list-style: none; margin: 18px 0; padding: 0; }
.steps-list li {
  position: relative;
  padding: 14px 16px 14px 62px;
  margin-bottom: 12px;
  background: rgba(0,0,0,.18);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06);
}
.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== FAQ ===== */
.faq-section { max-width: 900px; margin: 0 auto 30px; padding: 0 22px; }

.faq__block {
  background: var(--c-panel);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq__question {
  display: block;
  padding: 16px 48px 16px 18px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.faq__question::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--c-gold);
  transition: transform .25s ease;
}

.fag-checkbox { display: none; }

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq__answer p { padding: 0 18px 16px; color: var(--c-text-muted); }

.fag-checkbox:checked ~ .faq__answer { max-height: 400px; }
.fag-checkbox:checked ~ .faq__question::after { transform: translateY(-50%) rotate(45deg); }

/* ===== Footer ===== */
.footer-container {
  background: var(--c-header);
  margin-top: 40px;
  padding: 30px 16px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left_copy { font-weight: 700; margin-bottom: 8px; }
.footer-note { font-size: 13px; color: var(--c-text-muted); max-width: 480px; }

.footer-left_buttons { display: flex; gap: 10px; margin-top: 14px; }

.footer-right { text-align: right; }
.footer-right_text {
  display: inline-block;
  font-weight: 800;
  border: 2px solid var(--c-accent);
  color: var(--c-accent);
  border-radius: 8px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.footer-right_icons { display: flex; align-items: center; gap: 16px; justify-content: flex-end; }
.footer_logo img { width: 160px; }

@media (max-width: 860px) {
  .footer-inner { flex-direction: column; }
  .footer-right { text-align: left; }
  .footer-right_icons { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .header-inner { justify-content: center; }
  .header-nav { display: none; }
  .btn { height: 42px; padding: 0 16px; font-size: 14px; }
  .main-article { padding: 22px 14px; }
}

/* Тост при копировании промокода */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0c3;
  color: #04310f;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  z-index: 999;
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Хлебные крошки ===== */
.breadcrumbs {
  max-width: 1200px;
  margin: 14px auto 0;
  padding: 0 16px;
  font-size: 13px;
  color: var(--c-text-muted);
}
.breadcrumbs a:hover { color: var(--c-gold); }
.breadcrumbs .sep { margin: 0 6px; opacity: .5; }

/* ===== Карточка приложения ===== */
.app-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 20px 0 26px;
}
.app-card > div {
  background: var(--c-panel);
  padding: 14px 16px;
}
.app-card dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--c-text-muted);
  margin-bottom: 4px;
}
.app-card dd { font-weight: 800; font-size: 16px; margin: 0; }
.app-card .stars { color: var(--c-gold); letter-spacing: 2px; font-size: 15px; }
.app-card .rating-num { color: var(--c-gold); }

/* ===== Оглавление ===== */
.toc {
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 22px 0;
}
.toc-title { font-weight: 800; margin-bottom: 10px; font-size: 15px; text-transform: uppercase; letter-spacing: .8px; color: var(--c-gold); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { color: var(--c-text); border-bottom: 1px dashed rgba(255,255,255,.25); }
.toc a:hover { color: var(--c-gold); border-color: var(--c-gold); }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* Сравнительная таблица — маркеры да/нет */
td.yes { color: #4CD964; font-weight: 700; }
td.no { color: #ff7a7a; font-weight: 700; }

/* ===== Changelog ===== */
.changelog {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 20px 0;
  background: rgba(0,0,0,.15);
}
.changelog-header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.version-badge {
  background: var(--c-accent);
  color: #fff;
  font-weight: 800;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 14px;
}
.changelog-date { font-size: 13px; color: var(--c-text-muted); }
.changelog ul { margin: 0; }
.changelog li { margin-bottom: 6px; }

/* ===== Кнопка «наверх» ===== */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  z-index: 200;
  border: none;
  cursor: pointer;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--c-accent-hover); transform: translateY(-3px); }

/* ===== Страница 404 ===== */
.error-page { text-align: center; padding: 80px 20px; }
.error-page h1 { font-size: 68px; margin-bottom: 10px; }
.error-page p { color: var(--c-text-muted); margin-bottom: 24px; }
