/* ============ БАЗА ============ */
:root {
  --bg: #0b0e14;
  --bg-soft: #11151f;
  --card: #161b28;
  --card-hover: #1c2333;
  --border: #232a3b;
  --text: #e8ecf4;
  --text-muted: #8b93a7;
  --accent: #f5b83d;
  --accent-dark: #d99e22;
  --accent-soft: rgba(245, 184, 61, 0.12);
  --green: #3ddc84;
  --radius: 14px;
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

section { padding: 80px 0; }

/* Якоря не должны прятаться под фиксированной шапкой */
section[id], .sub-head[id] {
  scroll-margin-top: 84px;
}

/* ============ ШАПКА ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }

nav { display: flex; gap: 28px; }

nav a {
  color: var(--text-muted);
  font-size: 15px;
  transition: color 0.2s;
}
nav a:hover { color: var(--text); }

/* ============ КНОПКИ ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #14100a;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 184, 61, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 14px;
}

/* ============ HERO ============ */
.hero {
  padding: 100px 0 90px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(245, 184, 61, 0.13), transparent),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  max-width: 820px;
  margin: 0 auto 20px;
}
.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 60px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}
.hero-stats div span {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============ СЕКЦИИ С ОБЗОРАМИ ============ */
.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head .tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.tag-sport { background: rgba(61, 220, 132, 0.12); color: var(--green); }
.tag-casino { background: rgba(245, 184, 61, 0.12); color: var(--accent); }
.tag-money { background: rgba(99, 160, 255, 0.12); color: #63a0ff; }

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0 auto;
}

.section-head p + p {
  margin-top: 14px;
}

/* Подкатегории внутри секции */
.sub-head {
  margin: 56px 0 24px;
}

.sub-head:first-of-type { margin-top: 0; }

.sub-head h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.sub-head p {
  color: var(--text-muted);
  font-size: 15px;
}

.sub-head p + p {
  margin-top: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}
.card:hover {
  background: var(--card-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.card-img {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  background: linear-gradient(135deg, #1e2637, #141a28);
  border-bottom: 1px solid var(--border);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Вариант для широких логотипов (МФО): вписать целиком, не обрезая */
.card-img.contain img {
  object-fit: contain;
  padding: 24px 40px;
}

.card-rating {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(11, 14, 20, 0.85);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-body p {
  color: var(--text-muted);
  font-size: 15px;
  flex: 1;
  margin-bottom: 18px;
}

.card-bonus {
  display: inline-block;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  background: rgba(61, 220, 132, 0.1);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.card .btn {
  width: 100%;
  padding: 12px;
  font-size: 15px;
}

/* Постраничное раскрытие карточек */
.card.is-hidden { display: none; }

.show-more-wrap {
  text-align: center;
  margin-top: 36px;
}

.btn-more {
  min-width: 240px;
}

/* ============ КРАСИВЫЕ БЛОКИ (фича) ============ */
.feature {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature.reverse .feature-img { order: 2; }

.feature-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
  background: linear-gradient(135deg, #1e2637, #141a28);
  border: 1px solid var(--border);
  overflow: hidden;
}

.feature-img svg, .feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-text .tag {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.feature-text h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.feature-text > p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  margin-bottom: 28px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 16px;
}

.feature-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ============ ДИСКЛЕЙМЕР / ОФЕРТА ============ */
.legal {
  padding: 60px 0;
}

.legal-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.legal-box h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-box h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 6px;
  color: var(--text);
}

.legal-box p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.legal-box p:last-child { margin-bottom: 0; }

/* ============ ФУТЕР ============ */
footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-about {
  max-width: 320px;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 12px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.socials a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.socials svg {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
  transition: fill 0.2s;
}
.socials a:hover svg { fill: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 13px;
}

/* ============ 18+ ============ */
.age-wrap {
  margin-top: 16px;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  color: var(--text-muted);
  font-weight: 800;
  font-size: 13px;
}

/* ============ АДАПТИВ ============ */
@media (max-width: 860px) {
  section { padding: 56px 0; }

  nav { display: none; }

  .feature-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .feature.reverse .feature-img { order: 0; }

  .hero { padding: 70px 0 60px; }
  .hero-stats { gap: 28px; }

  .legal-box { padding: 28px; }

  .footer-top { flex-direction: column; }
}