/* TOC dropdown — flat, no nested cards */
.content-area nav#toc,
.content-area nav.toc,
.content-area #toc {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 4px 0 20px !important;
  box-shadow: none !important;
}

.toc-dropdown,
nav.toc .toc-dropdown,
nav#toc .toc-dropdown {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.toc-dropdown > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: #fff;
  border: 0;
  background: transparent;
}

.toc-dropdown > summary::-webkit-details-marker {
  display: none;
}

.toc-dropdown > summary::before {
  content: '';
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid #7eac2f;
  border-bottom: 2px solid #7eac2f;
  transform: rotate(-45deg);
  transition: transform 0.18s ease;
  flex-shrink: 0;
  margin-top: 1px;
}

.toc-dropdown[open] > summary::before {
  transform: rotate(45deg);
  margin-top: -2px;
}

.toc-dropdown > summary::after {
  content: none;
}

.toc-dropdown[open] > summary {
  margin-bottom: 10px;
  color: #cfe6a8;
}

.toc-dropdown > *:not(summary) {
  margin: 0;
  padding: 0 0 0 18px;
  border-left: 2px solid rgba(126, 172, 47, 0.45);
}

.toc-dropdown ul,
.toc-dropdown ol {
  margin: 0 !important;
  padding-left: 1.1rem !important;
}

.toc-dropdown li {
  margin: 0.28rem 0 !important;
}

.toc-dropdown a {
  color: #6db3ff !important;
  text-decoration: none !important;
  font-weight: 500;
}

.toc-dropdown a:hover {
  color: #9dceff !important;
  text-decoration: underline !important;
}

/* Single top banner instead of swiper */
.main-slider--static {
  position: relative;
  max-width: 920px;
  margin: 24px auto 28px;
  padding: 0 24px;
}

.hero-banner {
  display: block;
  line-height: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
  border: 2px solid rgba(126, 172, 47, .3);
  background: rgba(15, 30, 50, .5);
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 767px) {
  .main-slider--static {
    max-width: 100%;
    margin: 16px auto 20px;
    padding: 0 16px;
  }

  .hero-banner {
    border-radius: 12px;
  }
}

/* Ticker with A-zone links only — no package header/footer chrome */

.xbet-ticker {
  overflow: hidden;
  background: #0f1a2e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  line-height: 1;
}

.xbet-ticker__track {
  display: flex;
  width: max-content;
  animation: xbet-ticker-scroll 55s linear infinite;
}

.xbet-ticker:hover .xbet-ticker__track {
  animation-play-state: paused;
}

.xbet-ticker__group {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  padding: 0.55rem 0;
}

.xbet-ticker__group a,
.xbet-ticker__group .xbet-ticker__item {
  display: inline-block;
  padding: 0 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.xbet-ticker__group a:hover,
.xbet-ticker__group a:focus,
.xbet-ticker__group .xbet-ticker__item:hover,
.xbet-ticker__group .xbet-ticker__item:focus {
  color: #fff;
  text-decoration: underline;
}

@keyframes xbet-ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-25%); }
}

@media (prefers-reduced-motion: reduce) {
  .xbet-ticker__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  .xbet-ticker__group--deco {
    display: none;
  }

  .xbet-ticker__group {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    padding: 0.4rem 0.5rem;
  }

  .xbet-ticker__group a,
  .xbet-ticker__group .xbet-ticker__item {
    border-right: 0;
    padding: 0.25rem 0.65rem;
  }
}

/* Desktop header: icon stats between logo and buttons */
@media (min-width: 992px) {
  #header .header__grid {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 18px;
  }

  #header .header__brand {
    min-width: 0;
  }

  #header .header__brand .custom-logo {
    width: 150px;
  }

  #header .header__stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    min-width: 0;
    overflow: hidden;
  }

  #header .header-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding: 0 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    min-width: 0;
    flex: 0 1 auto;
  }

  #header .header-stat:first-child {
    padding-left: 0;
  }

  #header .header-stat:last-child {
    border-right: 0;
    padding-right: 0;
  }

  #header .header-stat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(126, 172, 47, 0.55);
    background: rgba(126, 172, 47, 0.08);
    color: #9fd24a;
    flex-shrink: 0;
  }

  #header .header-stat__icon svg {
    width: 18px;
    height: 18px;
  }

  #header .header-stat__icon--live {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #7eac2f;
    border-color: rgba(126, 172, 47, 0.75);
    background: rgba(126, 172, 47, 0.12);
  }

  #header .header-stat__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  #header .header-stat__value {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    text-transform: none;
    white-space: nowrap;
  }

  #header .header-stat__value--live {
    color: #7eac2f;
    animation: none;
  }

  #header .header-stat__label {
    display: block;
    font-size: 11px;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.55);
    text-transform: none;
    letter-spacing: 0;
    margin-top: 0;
    white-space: nowrap;
  }

  #header .header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  #header .header__actions .btn-header {
    padding: 9px 14px;
    font-size: .78rem;
  }

  #header .header__actions .btn-header--outline {
    border-color: rgba(109, 179, 255, 0.55);
    color: #cfe3ff;
  }

  #header .header__actions .btn-header--outline:hover {
    border-color: #6db3ff;
    color: #fff;
    background: rgba(109, 179, 255, 0.1);
  }
}

/* Mid desktop: drop outline button, tighten stats */
@media (min-width: 992px) and (max-width: 1320px) {
  #header .header__actions .btn-header--outline {
    display: none !important;
  }

  #header .header-stat {
    padding: 0 10px;
    gap: 8px;
  }

  #header .header-stat__icon {
    width: 34px;
    height: 34px;
  }

  #header .header-stat__value {
    font-size: 13px;
  }

  #header .header-stat__label {
    font-size: 10px;
  }
}

/* Narrower desktop: keep only 2 stats */
@media (min-width: 992px) and (max-width: 1180px) {
  #header .header__brand .custom-logo {
    width: 130px;
  }

  #header .header-stat:last-child {
    display: none;
  }

  #header .header-stat:nth-child(2) {
    border-right: 0;
    padding-right: 0;
  }

  #header .header__actions .btn-header--primary {
    padding: 9px 12px;
    font-size: .72rem;
  }
}

/* Compact desktop: hide stats, logo + CTA only */
@media (min-width: 992px) and (max-width: 1040px) {
  #header .header__stats {
    display: none !important;
  }

  #header .header__grid {
    grid-template-columns: auto 1fr;
  }

  #header .header__actions {
    justify-content: flex-end;
  }
}

/* Mobile: logo + green CTA in one row; hide outline button */
@media (max-width: 991px) {
  #header .header__grid {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    text-align: left;
  }

  #header .header__stats {
    display: none !important;
  }

  #header .header__brand .custom-logo {
    width: 130px;
  }

  #header .header__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0;
    min-width: 0;
  }

  #header .header__actions .btn-header--outline {
    display: none !important;
  }

  #header .header__actions .btn-header--primary {
    padding: 9px 12px;
    font-size: .72rem;
    line-height: 1.2;
    max-width: 100%;
  }
}

@media (max-width: 400px) {
  #header .header__brand .custom-logo {
    width: 110px;
  }

  #header .header__actions .btn-header--primary {
    padding: 8px 10px;
    font-size: .65rem;
  }
}

/* Footer quick cards */
.footer-quick {
  padding: 8px 0 8px;
}

.footer-quick__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.footer-quick__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 16px 18px 18px;
  border-radius: 14px;
  border: 1px solid rgba(109, 179, 255, 0.18);
  background: linear-gradient(180deg, rgba(29, 66, 104, 0.72) 0%, rgba(18, 40, 66, 0.92) 100%);
  text-decoration: none !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.footer-quick__card:hover {
  border-color: rgba(109, 179, 255, 0.45);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(36, 78, 120, 0.85) 0%, rgba(22, 48, 78, 0.96) 100%);
}

.footer-quick__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(10, 24, 42, 0.55);
  border: 1px solid rgba(109, 179, 255, 0.28);
  color: #6db3ff;
  flex-shrink: 0;
}

.footer-quick__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-right: 18px;
}

.footer-quick__body strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.footer-quick__body span {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(183, 196, 212, 0.92);
  font-weight: 400;
}

.footer-quick__arrow {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: #6db3ff;
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 1100px) {
  .footer-quick__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .footer-quick__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-quick__card {
    min-height: 76px;
    padding: 14px 14px 16px;
  }

  .footer-quick__icon {
    width: 42px;
    height: 42px;
  }

  .footer-quick__body strong {
    font-size: 14px;
  }
}

/* FAQ accordion + schema-friendly markup */
.xbet-faq {
  margin: 8px 0 24px;
}

.xbet-faq__title {
  margin-bottom: 14px !important;
}

.xbet-faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.xbet-faq__item {
  border: 1px solid rgba(109, 179, 255, 0.16);
  border-radius: 12px;
  background: rgba(10, 22, 38, 0.45);
  overflow: hidden;
}

.xbet-faq__item > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  color: #fff;
}

.xbet-faq__item > summary::-webkit-details-marker {
  display: none;
}

.xbet-faq__item > summary::after {
  content: '';
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid #7eac2f;
  border-bottom: 2px solid #7eac2f;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  flex-shrink: 0;
  margin-top: -0.15em;
}

.xbet-faq__item[open] > summary {
  color: #cfe6a8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.xbet-faq__item[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 0.15em;
}

.xbet-faq__answer {
  padding: 12px 16px 16px;
}

.xbet-faq__answer p {
  margin: 0 !important;
  color: rgba(183, 196, 212, 0.98) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

/* Popular section cards (middle of page) */
.xbet-popular {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 28px;
}

.xbet-popular__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 148px;
  padding: 16px 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(109, 179, 255, 0.16);
  background: linear-gradient(180deg, rgba(22, 42, 68, 0.95) 0%, rgba(14, 28, 48, 0.98) 100%);
  text-decoration: none !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.xbet-popular__card:hover {
  transform: translateY(-2px);
  border-color: rgba(109, 179, 255, 0.4);
  background: linear-gradient(180deg, rgba(28, 54, 86, 0.98) 0%, rgba(16, 34, 56, 1) 100%);
}

.xbet-popular__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 2px;
}

.xbet-popular__icon--blue { background: rgba(59, 130, 246, 0.18); color: #60a5fa; }
.xbet-popular__icon--green { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
.xbet-popular__icon--violet { background: rgba(139, 92, 246, 0.18); color: #a78bfa; }
.xbet-popular__icon--red { background: rgba(239, 68, 68, 0.18); color: #f87171; }
.xbet-popular__icon--orange { background: rgba(249, 115, 22, 0.18); color: #fb923c; }
.xbet-popular__icon--lime { background: rgba(126, 172, 47, 0.2); color: #9fd24a; }
.xbet-popular__icon--cyan { background: rgba(6, 182, 212, 0.18); color: #22d3ee; }
.xbet-popular__icon--purple { background: rgba(168, 85, 247, 0.18); color: #c084fc; }

.xbet-popular__card strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.xbet-popular__card > span:not(.xbet-popular__icon):not(.xbet-popular__arrow) {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(183, 196, 212, 0.95);
  font-weight: 400;
  padding-right: 12px;
}

.xbet-popular__arrow {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: rgba(109, 179, 255, 0.85);
  font-size: 15px;
  line-height: 1;
}

/* Thematic index near end */
.xbet-topics {
  margin: 22px 0 10px;
  border: 1px solid rgba(109, 179, 255, 0.16);
  border-radius: 16px;
  background: rgba(10, 22, 38, 0.55);
  overflow: hidden;
}

.xbet-topics > summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

.xbet-topics > summary::-webkit-details-marker {
  display: none;
}

.xbet-topics > summary::after {
  content: '';
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid #6db3ff;
  border-bottom: 2px solid #6db3ff;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  margin-top: -0.2em;
}

.xbet-topics[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 0.15em;
}

.xbet-topics__cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 16px;
}

.xbet-topics__cloud a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(109, 179, 255, 0.18);
  background: rgba(29, 66, 104, 0.55);
  color: #cfe3ff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.xbet-topics__cloud a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6db3ff;
  opacity: 0.85;
  flex-shrink: 0;
}

.xbet-topics__cloud a:hover {
  background: rgba(36, 84, 128, 0.85);
  border-color: rgba(109, 179, 255, 0.45);
  color: #fff !important;
}

@media (max-width: 1100px) {
  .xbet-popular {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .xbet-popular {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .xbet-popular__card {
    min-height: 0;
  }
}
