/* ==========================================================================
   Казик — kazik-online.tuqo.ru (площадка 23), база #191a21 (графит),
   акценты коралловые, шрифт Manrope. Шапка = цвет подвала,
   прозрачность шапки 21%% (alpha 0.79).
   Кнопки: градиент 180deg #ffb07a/#f2703c/#b83c14, белый текст, тень,
   статичный блик ::before + бегущий диагональный ::after (btn-shine).
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #2b2724;
  background: #f7f1ec;
}
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- ШАПКА (цвет подвала, прозрачность 21%) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 12px 28px;
  background: rgba(25, 26, 33, 0.79);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 176, 122, 0.24);
}
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }

/* ---------- КНОПКИ (коралловый градиент + блик) ---------- */
.btn-reg, .btn-gold, .btn-line, .gc-btn {
  position: relative; overflow: hidden; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #ffb07a 0%, #f2703c 55%, #b83c14 100%);
  color: #ffffff; font-weight: 700; border: none; border-radius: 10px;
  box-shadow: 0 6px 18px -6px rgba(184, 60, 20, 0.55);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-reg::before, .btn-gold::before, .btn-line::before, .gc-btn::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 46%;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0));
}
.btn-reg::after, .btn-gold::after, .btn-line::after, .gc-btn::after {
  content: ""; position: absolute; top: -30%; height: 160%; width: 34%;
  left: -60%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.62), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 3.2s ease-in-out infinite;
}
@keyframes btn-shine {
  0% { left: -60%; }
  55% { left: 130%; }
  100% { left: 130%; }
}
.btn-reg:hover, .btn-gold:hover, .btn-line:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-reg { padding: .74em 1.5em; font-size: 1rem; }
.btn-gold { padding: 1.05em 2.5em; font-size: 1.18rem; border-radius: 14px; }
.btn-line { padding: .8em 1.7em; font-size: 1.05rem; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(25,26,33,0.70) 0%, rgba(25,26,33,0.48) 50%, rgba(25,26,33,0.88) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 70px 20px; text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  font-weight: 800; letter-spacing: .5px;
  background: linear-gradient(180deg, #ffffff 20%, #ffd9c2 65%, #ffb07a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 34px rgba(255, 176, 122, 0.28);
  margin-bottom: 18px;
}
.hero-sub { max-width: 820px; margin: 0 auto 30px; font-size: 1.12rem; line-height: 1.65; color: #e4dcd5; }
.err-hero { min-height: 420px; }
.err-hero h1 { font-size: clamp(1.7rem, 4.2vw, 2.8rem); }

/* ---------- СЕКЦИЯ ИГР ---------- */
.games { padding: 62px 0 46px; }
.games h2, .reviews h2 { text-align: center; margin-bottom: 30px; }
.games h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  background: linear-gradient(180deg, #2a2520, #d1551f);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 18px; }
.g-card { border-radius: 14px; overflow: hidden; }
.gc-link { position: relative; display: block; overflow: hidden; border-radius: 14px; }
.gc-img { display: block; overflow: hidden; }
.gc-img img { width: 100%; height: auto; display: block; transition: transform .3s ease; }
.gc-link:hover .gc-img img { transform: scale(1.035); }
.gc-btn {
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  padding: .72em 1em; font-size: .96rem;
  opacity: 0; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.gc-link:hover .gc-btn { opacity: 1; transform: translateY(0); }
.gc-btn { opacity: 1; transform: translateY(0); }

/* ---------- ЛЕНТА ПОСЛЕДНИХ ВЫИГРЫШЕЙ (бесшовное кольцо) ---------- */
.lwins { padding: 6px 0 34px; overflow: hidden; }
.lw-viewport { overflow: hidden; padding: 5px 0 13px; }
.lw-track { display: flex; width: max-content; will-change: transform; animation: ring-scroll 60s linear infinite; }
.lw-track:hover { animation-play-state: paused; }
.lw-half { display: flex; }
@keyframes ring-scroll { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
.lw-card {
  flex: 0 0 300px; margin: 0 8px 0 0;
  display: flex; align-items: center; gap: 12px;
  background: #ffffff; border: 1px solid rgba(209,85,31,.24);
  border-left: 4px solid #d1551f; border-radius: 14px; padding: 10px 13px;
  box-shadow: 0 4px 14px rgba(60,40,28,.12); color: #2b2724;
}
.lw-card:hover { transform: translateY(-2px); }
.lw-img { flex: 0 0 54px; width: 54px; height: 72px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: #fdebe4; overflow: hidden; }
.lw-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lw-info { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.lw-win { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: linear-gradient(180deg, #ffb07a 0%, #f2703c 55%, #b83c14 100%); color: #ffffff; font-size: .88rem; font-weight: 700; white-space: nowrap; }
.lw-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lw-user { font-size: .8rem; color: #7c6f66; }
@media (max-width: 720px) { .lw-card { flex-basis: calc(72vw - 8px); margin-right: 10px; padding: 8px 10px; gap: 9px; } .lw-img { flex-basis: 46px; width: 46px; height: 62px; } .lw-win { font-size: .8rem; padding: 2px 7px; } .lw-title { font-size: .88rem; } .lw-user { font-size: .75rem; } }

/* ---------- ОТЗЫВЫ ---------- */
.reviews { padding: 40px 0 30px; background: #f0e4da; border-top: 1px solid rgba(209,85,31,.22); border-bottom: 1px solid rgba(209,85,31,.22); overflow: hidden; }
.reviews h2 { color: #2a2520; font-size: clamp(1.4rem, 2.8vw, 2rem); }
.rev-viewport { overflow: hidden; padding: 4px 0 10px; }
.rev-track { display: flex; width: max-content; will-change: transform; }
.rev-half { display: flex; }
.rev-card {
  flex: 0 0 340px; margin: 0 18px 0 0;
  background: #ffffff; border: 1px solid rgba(209,85,31,.24);
  border-left: 3px solid #d1551f; border-radius: 14px; padding: 16px 18px 14px;
  box-shadow: 0 4px 14px rgba(60,40,28,.12);
}
.rev-stars { color: #e2a400; font-size: 17px; letter-spacing: 3px; margin-bottom: 8px; line-height: 1; text-shadow: 0 1px 2px rgba(180,128,0,.25); }
.rev-text { font-size: .95rem; line-height: 1.5; font-style: italic; color: #3b322c; margin-bottom: 10px; }
.rev-author { font-size: .88rem; color: #b8441a; font-weight: 600; }
@keyframes rev-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rev-anim { animation: rev-scroll 74s linear infinite; }
.rev-anim:hover { animation-play-state: paused; }
@media (max-width: 720px) { .rev-card { flex: 0 0 300px; padding: 14px 16px 12px; } }
@media (max-width: 480px) { .rev-card { flex: 0 0 calc(72vw - 8px); margin-right: 12px; padding: 13px 14px 11px; } }

/* ---------- КОНТЕНТ / АККОРДЕОНЫ ---------- */
.prose { padding: 40px 0 26px; }
.intro { max-width: 900px; margin: 0 auto 26px; font-size: 1.08rem; text-align: center; color: #5c5049; }
.acc {
  --acc-max: 300px;
  max-width: 900px; margin: 0 auto 12px;
  background: #ffffff; border: 1px solid rgba(209,85,31,.24);
  border-radius: 14px; overflow: hidden;
}
.acc summary {
  list-style: none; cursor: pointer;
  padding: 10px 20px 10px 22px; font-size: 1.04rem; font-weight: 700; line-height: 1.3;
  color: #2a2520;
}
.acc summary h2 { display: inline; margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; text-align: left; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "\25BE"; float: right; transition: transform .25s ease; color: #d1551f; }
.acc[open] summary::after { transform: rotate(180deg); }
.acc-body {
  max-height: var(--acc-max); overflow-y: auto; overscroll-behavior: contain;
  padding: 0 22px 18px 24px; font-size: .97rem; line-height: 1.5;
}
.acc-body::-webkit-scrollbar { width: 8px; }
.acc-body::-webkit-scrollbar-track { background: rgba(209,85,31,.10); border-radius: 8px; }
.acc-body::-webkit-scrollbar-thumb { background: rgba(209,85,31,.45); border-radius: 8px; }
.acc-body { scrollbar-width: thin; scrollbar-color: rgba(209,85,31,.45) rgba(209,85,31,.10); }
.acc-body h3 { margin: 14px 0 5px; color: #b8441a; font-size: 1.02rem; }
.acc-body h4 { margin: 12px 0 4px; color: #8a4a2a; font-size: .97rem; }
.acc-body h5 { margin: 11px 0 4px; color: #a3805f; font-size: .92rem; }
.acc-body p { margin-bottom: 8px; color: #38302b; }

/* ---------- ПОДВАЛ (без ссылок: только способы оплаты) ---------- */
.site-footer { background: #191a21; color: #bdb3ab; padding: 46px 20px 28px; margin-top: 30px; }
.pay-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; margin: 0 auto 26px; max-width: 860px; }
.pay-row img {
  box-sizing: border-box;
  width: 132px; height: 44px;
  flex: 0 0 auto;
  object-fit: contain; object-position: center;
  padding: 4px; border-radius: 9px;
  background: rgba(255, 255, 255, .07);
  display: block; opacity: .95;
}
.pay-row img:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.footer-counters { text-align: center; margin-bottom: 16px; color: #bdb3ab; }
.footer-counters strong { color: #ffb07a; }
.footer-about { max-width: 740px; margin: 0 auto 16px; text-align: center; color: #bdb3ab; font-size: .92rem; }
.copyright { text-align: center; color: #6f6a72; font-size: .85rem; }

/* ---------- БЕЙДЖ TUQO (инъекция платформы в конец body) ----------
   Tuqo дописывает <a class="tqf" href="https://tuqo.ru/?utm_source=badge…"> с
   CSS .tqf.tqf{…display:inline-flex!important}. Прячем нашим правилом с
   СПЕЦИФИЧНОСТЬЮ ВЫШЕ (.tqf.tqf = 0,2,0), иначе !important платформы побеждает.
   Правило обратимо: убрать блок, если платформа попросит. */
a.tqf.tqf, div.tqf.tqf { display: none !important; }

/* ---------- АДАПТИВ ---------- */
@media (max-width: 820px) { .g-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .pay-row { gap: 10px; }
  .pay-row img { width: 104px; height: 38px; padding: 3px; border-radius: 8px; }
  .g-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .site-header { padding: 10px 14px; }
  .btn-reg { padding: .6em 1em; font-size: .92rem; }
  .hero { min-height: 440px; }
  .hero-inner { padding: 50px 16px; }
  .btn-gold { width: 100%; padding: 1em 1.4em; font-size: 1.08rem; }
  .acc { --acc-max: 220px; }
  .acc summary { font-size: 1.06rem; }
}
