.toc-list a {
  font-weight: bold;
  display: inline-block;
  transition: filter .25s, box-shadow .25s, background .25s, color .25s;
  padding: 4px 15px 4px 10px;
  border-radius: 20px;
}

/* Промокоды: общий мятный */
.toc-promo a {
  background: linear-gradient(90deg, #a8ffeb 0%, #34e89e 100%);
  color: #212121 !important;
  font-weight: 900;
  box-shadow: 0 1px 7px 0 rgba(52, 232, 158, .13);
  letter-spacing: 0.01em;
}
/* Первый заказ — жёлто-золотой */
.promo-first a {
  background: linear-gradient(90deg, #fff7ae 0%, #ffe259 100%);
  color: #924c08 !important;
}
/* Индивидуальные подборки — сиреневый */
.promo-personal a {
  background: linear-gradient(90deg, #e0c3fc 0%, #8ec5fc 100%);
  color: #363267 !important;
}

.toc-promo a:hover,
.toc-promo a:focus {
  filter: brightness(1.08) drop-shadow(0 0 7px #b5ffe3);
  box-shadow: 0 0 12px 0 #99ffc3bb;
  text-decoration: underline;
}
/* Ховер для первого */
.promo-first a:hover, .promo-first a:focus {
  box-shadow: 0 0 12px 0 #fff5aecc;
  filter: brightness(1.09) drop-shadow(0 0 7px #ffe259bb);
}

/* Ховер для персональных */
.promo-personal a:hover, .promo-personal a:focus {
  box-shadow: 0 0 12px 0 #e0c3fccc;
  filter: brightness(1.09) drop-shadow(0 0 7px #bca1e4bb);
}

/* Голубой для обычных остальных пунктов */
.toc-other a {
  background: linear-gradient(90deg, #cbeafe 0%, #7fd7ff 100%);
  color: #185278 !important;
  font-weight: bold;
  letter-spacing: 0.01em;
}
.toc-other a:hover,
.toc-other a:focus {
  filter: brightness(1.07) drop-shadow(0 0 7px #b6e5ff);
  box-shadow: 0 0 12px 0 #aee4fdcc;
  text-decoration: underline;
}
/* Стили для модалки */
.modal-overlay {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35, 28, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
}

.modal-content {
  background: #fffbe6;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5em;
  box-shadow: 0 6px 32px rgba(255, 219, 77, 0.6);
  position: relative;
  border: 2px solid #ffda48;
  font-size: 1em;
  box-sizing: border-box;
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
  font-size: 2em;
  color: #876900;
  font-weight: bold;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #ea8400;
}

/* Кнопки выбора */
.choices {
  list-style: none;
  padding: 0;
  margin-top: 1em;
}

.choices li {
  margin-bottom: 0.6em;
}

.game-choice {
  width: 100%;
  background: #fff;
  border: 2px solid #ffe06a;
  color: #934900;
  border-radius: 6px;
  padding: 0.7em;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.2s;
}

.game-choice:hover {
  background-color: #ffeb99;
}

.game-inline-result {
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* Адаптивность для смартфонов и планшетов */
@media (max-width: 600px) {
  .modal-content {
    padding: 1em;
    max-width: 96%;
  }

  .modal-close {
    right: 5px;
    top: 5px;
    font-size: 1.7em;
  }

  .game-choice {
    font-size: 0.95em;
  }

  .modal-content h2 {
    font-size: 1.15em;
    line-height: 1.3;
  }
}



/* СТИЛИ ОБЁРТКИ */
.toc {
  border: 1.5px solid var(--main-color-dark);
  border-radius: 12px;
  margin: 28px auto 22px;
  background: var(--main-bg);
  max-width: 430px;
  font-size: 16.5px;
  box-shadow: 0 2px 12px rgba(50, 180, 160, .06);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.toc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--main-color);
  border: none;
  font-size: 1.08em;
  font-weight: 600;
  color: #222;
  padding: 13px 16px 13px 14px;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  transition: background 0.2s;
}

.toc-toggle:after {
  content: "▼";
  margin-left: 8px;
  font-size: 1.25em;
  color: var(--main-link);
  transition: transform 0.2s;
}

.toc-toggle[aria-expanded="true"]:after {
  content: "▲";
}

/* МЕНЮ */
.toc-list {
  margin: 0 0 17px 0;
  padding: 0 17px;
  list-style: none;
  background: transparent;
  width: 100%;
  transition: max-height 0.3s;
}

.toc-list.collapsed {
  display: none;
}

.toc-list li {
  margin: 7px 0;
  font-size: 1em;
}

.toc-list a {
  display: flex;
  align-items: center;
  color: var(--main-link);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
  padding: 2px 8px;
  border-radius: 4px;
  text-align: left;
}

.toc-list a:hover {
  color: var(--main-link-hover);
  background: rgba(31,185,165,.11);
}

.toc-list a span {
  font-size: 1.17em;
  margin-right: 0.49em;
  line-height: 1;
  display: inline-block;
}

#bth24-promo-popup {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(16,9,0,0.53);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.19s;
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.bth24-popup-inner {
  background: #fffbe6;
  border: 2.4px solid #ffd500;
  box-shadow: 0 10px 36px #ffd83d55;
  border-radius: 19px;
  max-width: 380px;
  width: 94vw;
  padding: 2.2em 1.1em 2.4em 1.1em;
  position: relative;
  text-align: center;
  animation: popupPop .24s cubic-bezier(.45,.04,.52,1);
}
@keyframes popupPop { from {transform: scale(.85);} to {transform: scale(1);} }

.bth24-popup-close {
  position: absolute;
  right: 18px;
  top: 12px;
  cursor: pointer;
  font-size: 2.2em;
  color: #e9b80a;
  font-weight: 900;
  user-select: none;
  transition: color 0.13s;
}
.bth24-popup-close:hover { color:#986700; }

.bth24-popup-gif {
  width: 115px;
  height: 115px;
  margin-bottom: 1.3em;
  border-radius: 14px;
  border: 2.3px solid #ffe486;
  box-shadow: 0 2px 12px #ffd45e82;
  background: #fff2b4;
}

.bth24-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: linear-gradient(90deg, #ffe373, #ffd64f 93%);
  border: none;
  color: #946700;
  font-size: 1.12em;
  font-weight: 900;
  border-radius: 16px;
  padding: 0.69em 2em 0.69em 1.1em;
  box-shadow: 0 3px 18px #fff3aa3a, 0 1px 0 #ffe98c;
  cursor: pointer;
  transition: box-shadow .18s, background .17s;
  margin-top: 10px;
  margin-bottom: 0.7em;
}
.bth24-promo-btn:hover, .bth24-promo-btn:focus {
  background: linear-gradient(90deg, #ffca3c 60%, #ffd507 100%);
  color: #7a4e00;
  box-shadow: 0 6px 30px #ffeb4a34;
  outline: 0;
}

#bth24PromoPopupTitle {
  margin-top: 0;
  font-weight: 800;
  font-size: 1.2em;
  letter-spacing: .01em;
}
#bth24PromoPopupMessage {
  margin: 1.2em 0 1.7em;
  font-size: 1.05em;
  color: #845200;
  font-weight: 500;
  min-height: 3.5em;
}
@media (max-width:570px){
  .bth24-popup-inner { padding:1.4em 0.2em 1.4em 0.2em;}
  .bth24-popup-gif {width:70px;height:70px;}
}