/* ============================================
   7K (bet7k) — page-index.css
   Hero, sidebar, promos, games, odds, content
   ============================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(230, 0, 126, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 85% 30%, rgba(176, 38, 255, 0.22) 0%, transparent 55%),
    var(--color-dark);
  padding: 2.25rem 0 2.5rem;
  border-bottom: 1px solid rgba(176, 38, 255, 0.2);
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 640px;
  color: var(--color-odds);
}

.hero-note {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 1rem;
  max-width: 560px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(230, 0, 126, 0.35);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-stat {
  background: rgba(36, 23, 48, 0.85);
  border: 1px solid rgba(176, 38, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.hero-stat .num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--color-primary);
  line-height: 1.2;
}

.hero-stat .lbl {
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* ---------- Layout: sidebar + content ---------- */
.app-layout {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 0 0;
  align-items: start;
}

.sidebar {
  display: none;
  background: var(--color-dark);
  border: 1px solid rgba(176, 38, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  position: sticky;
  top: calc(var(--header-h) + 12px);
}

.sidebar h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin: 1.15rem 0 0.55rem;
}

.sidebar h3:first-of-type {
  margin-top: 0.35rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin-bottom: 0.2rem;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--color-odds);
  font-size: 0.88rem;
  font-weight: 500;
}

.sidebar a:hover,
.sidebar a.is-active {
  background: rgba(230, 0, 126, 0.18);
  color: var(--color-primary);
}

.sidebar a .ico {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

.main-col {
  min-width: 0;
}

/* ---------- Promo carousel ---------- */
.promo-carousel {
  position: relative;
  margin-bottom: 1.5rem;
}

.promo-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.promo-track::-webkit-scrollbar {
  display: none;
}

.promo-card {
  position: relative;
  flex: 0 0 86%;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 180px;
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(230, 0, 126, 0.35);
  background: var(--color-surface);
}

.promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
}

.promo-card .promo-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.15rem;
  background: linear-gradient(180deg, transparent 20%, rgba(20, 10, 23, 0.88) 100%);
}

.promo-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.promo-card p {
  font-size: 0.86rem;
  color: var(--color-odds);
  margin-bottom: 0.75rem;
  max-width: 320px;
}

.promo-card .btn {
  align-self: flex-start;
  min-height: 40px;
  padding: 0.45rem 1.1rem;
  font-size: 0.78rem;
}

.carousel-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.65rem;
}

.carousel-dots button {
  width: 22px;
  height: 5px;
  border-radius: 4px;
  border: 0;
  background: rgba(154, 143, 166, 0.4);
  cursor: pointer;
  padding: 0;
}

.carousel-dots button.is-active {
  background: var(--color-primary);
  width: 34px;
}

/* ---------- Casino UI mock ---------- */
.ui-panel {
  background: var(--color-surface);
  border: 1px solid rgba(176, 38, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  margin-bottom: 1.5rem;
}

.ui-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.ui-panel-head h2,
.ui-panel-head h3 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.ui-search {
  position: relative;
  flex: 1 1 200px;
  min-width: 0;
}

.ui-search .input {
  min-height: 42px;
  padding-left: 2.35rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  background: var(--color-dark);
}

.ui-search svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  opacity: 0.65;
}

.cat-tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.45rem;
  margin-bottom: 1.15rem;
  scrollbar-width: thin;
}

.cat-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0.45rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(154, 143, 166, 0.3);
  background: transparent;
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cat-tab:hover {
  color: var(--color-text);
  border-color: var(--color-primary);
}

.cat-tab.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Games grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.game-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid rgba(176, 38, 255, 0.18);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.game-card .game-meta {
  padding: 0.65rem 0.75rem 0.85rem;
}

.game-card .game-name {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card .game-tag {
  font-size: 0.72rem;
  color: var(--color-muted);
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
}

.game-card .game-tag .prize {
  color: var(--color-accent);
  font-weight: 700;
}

.game-card .badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  font-size: 0.62rem;
  padding: 0.22rem 0.55rem;
}

.sample-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: var(--color-muted);
  margin-top: 0.85rem;
}

.sample-note::before {
  content: "ℹ";
  color: var(--color-accent);
  font-weight: 700;
}

/* ---------- Sports / odds ---------- */
.league-tiles {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.55rem;
  margin-bottom: 1.15rem;
}

.league-tile {
  flex: 0 0 auto;
  min-width: 118px;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--color-dark);
  border: 1px solid rgba(176, 38, 255, 0.2);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.league-tile:hover,
.league-tile.is-active {
  border-color: var(--color-primary);
  background: rgba(230, 0, 126, 0.14);
}

.league-tile .lg-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
}

.league-tile .lg-sub {
  font-size: 0.7rem;
  color: var(--color-muted);
}

.odds-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(154, 143, 166, 0.16);
}

.odds-row:last-child {
  border-bottom: 0;
}

.match-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.match-teams {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.76rem;
  color: var(--color-muted);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--color-live);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-live);
  box-shadow: 0 0 8px var(--color-live);
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.odds-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.odd-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.45rem 0.35rem;
  border-radius: var(--radius-sm);
  background: var(--color-dark);
  border: 1px solid rgba(154, 143, 166, 0.22);
  cursor: pointer;
  transition: all 0.2s ease;
}

.odd-chip:hover {
  border-color: var(--color-primary);
  background: rgba(230, 0, 126, 0.12);
}

.odd-chip .odd-label {
  font-size: 0.66rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.odd-chip .odd-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--color-odds);
}

.odd-chip.boost .odd-value {
  color: var(--color-primary);
}

.odd-chip.boost {
  border-color: rgba(230, 0, 126, 0.5);
}

/* ---------- Content sections ---------- */
.content-section {
  padding: clamp(2rem, 4.5vw, 3.5rem) 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.content-section > .container > h2 {
  margin-bottom: 1rem;
}

.content-section .intro {
  font-size: 1.05rem;
  color: var(--color-odds);
  max-width: 820px;
}

.two-col {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  grid-template-columns: minmax(0, 1fr);
}

/* Адаптив: колонки сеток могут сжиматься уже своего содержимого,
   а широкие таблицы прокручиваются внутри .table-responsive */
.hero-grid > *,
.app-layout > *,
.two-col > *,
.verdict-grid > *,
.author-box > *,
.cta-band > * {
  min-width: 0;
}

.hero-grid,
.app-layout,
.author-box,
.cta-band {
  grid-template-columns: minmax(0, 1fr);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.95rem 1.15rem 0.95rem 3.35rem;
  background: var(--color-surface);
  border: 1px solid rgba(176, 38, 255, 0.16);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.95rem;
  top: 0.95rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Verdict */
.verdict-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: minmax(0, 1fr);
  margin: 1.5rem 0;
}

.verdict-card {
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  border: 1px solid rgba(176, 38, 255, 0.2);
  background: var(--color-surface);
}

.verdict-card.pros {
  border-color: rgba(34, 197, 94, 0.35);
}

.verdict-card.cons {
  border-color: rgba(239, 68, 68, 0.35);
}

.verdict-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Author */
.author-box {
  display: grid;
  gap: 1.25rem;
  background: var(--grad-card), var(--color-surface);
  border: 1px solid rgba(230, 0, 126, 0.3);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin: 2rem 0;
}

.author-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.author-meta h3 {
  margin-bottom: 0.25rem;
}

.author-role {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
}

.author-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.55rem;
}

/* FAQ */
.faq-list {
  max-width: 860px;
}

.faq-item {
  border: 1px solid rgba(176, 38, 255, 0.2);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 1rem 1.15rem;
  background: transparent;
  border: 0;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}

.faq-q:hover {
  color: var(--color-primary);
}

.faq-q .chev {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(230, 0, 126, 0.2);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-q .chev {
  transform: rotate(180deg);
}

.faq-a {
  display: none;
  padding: 0 1.15rem 1.15rem;
  color: var(--color-odds);
}

.faq-item.is-open .faq-a {
  display: block;
}

/* Legal */
.legal-section {
  background: var(--color-dark);
  border-top: 1px solid rgba(176, 38, 255, 0.18);
  padding: 2.5rem 0;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.legal-section h2 {
  font-size: 1.35rem;
}

.legal-section h3 {
  font-size: 1.05rem;
  margin-top: 1.35rem;
}

.legal-section p,
.legal-section li {
  font-size: 0.92rem;
  color: var(--color-odds);
}

/* CTA band */
.cta-band {
  background: var(--grad-primary);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  margin: 2.5rem 0;
  display: grid;
  gap: 1.15rem;
  align-items: center;
  box-shadow: var(--shadow-glow);
}

.cta-band h2,
.cta-band h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0;
}

.cta-band .btn {
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.cta-band .btn:hover {
  background: var(--color-dark);
  color: #fff;
}

/* ---------- Breakpoints ---------- */
@media (min-width: 601px) {
  .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .promo-card {
    flex: 0 0 60%;
    min-height: 210px;
  }

  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .odds-row {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 1rem;
  }

  .verdict-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .author-box {
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 2rem;
  }

  .two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-band {
    grid-template-columns: 1.5fr auto;
  }
}

@media (min-width: 1025px) {
  .hero {
    padding: 3.25rem 0 3.5rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
  }

  .app-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 1.75rem;
  }

  .sidebar {
    display: block;
  }

  .promo-card {
    flex: 0 0 48%;
    min-height: 230px;
  }

  .games-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .game-card img {
    aspect-ratio: 1 / 1;
  }
}
