/* ==========================================================================
   Cactus Casino — mobile-first theme on top of Bootstrap 5
   ========================================================================== */

:root {
  /* Brand */
  --cc-green: #1FA84D;
  --cc-green-600: #17913F;
  --cc-green-300: #46D07A;
  --cc-gold: #FFC93C;
  --cc-gold-600: #F5A623;
  --cc-orange: #E8792B;

  /* Surfaces */
  --cc-bg: #0C1310;
  --cc-surface: #141F1A;
  --cc-surface-2: #1B2A22;
  --cc-line: rgba(255, 255, 255, .09);

  /* Text */
  --cc-text: #EAF3ED;
  --cc-muted: #9BAFA3;

  --cc-radius: 0.375rem;
  --cc-radius-sm: 0.375rem;

  /* --------------------------------------------------------------------
     HERO BANNER
     Подставьте сюда прямой URL вашего баннера (555FS + 555%), например:
     --cc-hero-img: url("https://cactus7.site/banner-555.webp");
     Пока URL не задан — используется CSS-реконструкция баннера ниже.
     -------------------------------------------------------------------- */
  --cc-hero-img: none;
}

/* ---------- Base ---------- */
* { -webkit-tap-highlight-color: transparent; }

body {
  background: var(--cc-bg);
  color: var(--cc-text);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, .cc-display {
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.15;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }

@media (min-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.25rem; }
}

a { color: var(--cc-green-300); text-decoration: none; }
a:hover { color: var(--cc-gold); }

.cc-muted { color: var(--cc-muted); }
.cc-gold { color: var(--cc-gold); }
.cc-green { color: var(--cc-green-300); }

.cc-section { padding: 40px 0; }
@media (min-width: 992px) { .cc-section { padding: 64px 0; } }

.cc-section-title {
  position: relative;
  padding-left: 14px;
  margin-bottom: 20px;
}
.cc-section-title::before {
  content: "";
  position: absolute;
  left: 0; top: .15em; bottom: .15em;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cc-gold), var(--cc-green));
}

/* ---------- Buttons ---------- */
.btn { font-weight: 700; border-radius: var(--cc-radius); padding: .7rem 1.4rem; border: 0; }

.btn-cc {
  background: var(--cc-green);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31, 168, 77, .35);
}
.btn-cc:hover, .btn-cc:focus { background: var(--cc-green-600); color: #fff; }

.btn-cc-gold {
  background: linear-gradient(135deg, var(--cc-gold), var(--cc-gold-600));
  color: #1A1206;
  box-shadow: 0 6px 18px rgba(245, 166, 35, .3);
}
.btn-cc-gold:hover, .btn-cc-gold:focus { filter: brightness(1.06); color: #1A1206; }

.btn-cc-ghost {
  background: transparent;
  color: var(--cc-text);
  border: 1px solid var(--cc-line);
}
.btn-cc-ghost:hover { background: var(--cc-surface-2); color: #fff; }

.btn-lg { padding: .9rem 1.9rem; font-size: 1rem; }

/* ---------- Header ---------- */
.cc-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(12, 19, 16, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cc-line);
}

.cc-logo { display: flex; align-items: center; gap: 9px; color: var(--cc-text); }
.cc-logo:hover { color: var(--cc-text); }
/* kaktuz.svg — широкий знак 108x24, поэтому фиксируем высоту, ширину тянем по пропорции */
.cc-logo img { width: auto; height: 28px; max-width: 150px; object-fit: contain; }
.cc-logo-fallback {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center;
  border-radius: var(--cc-radius);
  background: linear-gradient(135deg, var(--cc-green), var(--cc-green-600));
  font-size: 19px; line-height: 1;
}
.cc-logo-text { font-weight: 900; font-size: 1rem; letter-spacing: -.02em; white-space: nowrap; }
.cc-logo-text span { color: var(--cc-green-300); }
@media (min-width: 992px) {
  .cc-logo img { height: 32px; max-width: 180px; }
  .cc-logo-fallback { width: 40px; height: 40px; flex-basis: 40px; }
  .cc-logo-text { font-size: 1.15rem; }
}

.cc-nav-link {
  display: block;
  padding: .65rem 0;
  color: var(--cc-text);
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid var(--cc-line);
}
.cc-nav-link:hover, .cc-nav-link.active { color: var(--cc-gold); }

@media (min-width: 992px) {
  .cc-nav-link {
    padding: .35rem .85rem;
    border-bottom: 0;
    font-size: .95rem;
  }
}

.cc-burger {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: var(--cc-radius);
  background: var(--cc-surface-2);
  border: 1px solid var(--cc-line);
  color: var(--cc-text);
}

.offcanvas.cc-offcanvas {
  background: var(--cc-surface);
  color: var(--cc-text);
  border-left: 1px solid var(--cc-line);
}

/* ---------- Hero ---------- */
.cc-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background-color: #E9922E;
  background-image:
    radial-gradient(120% 90% at 78% 40%, rgba(255, 226, 150, .95) 0%, rgba(233, 146, 46, 0) 60%),
    linear-gradient(160deg, #F6B347 0%, #E8792B 55%, #B9531C 100%);
}
.cc-hero.has-img {
  background-image: var(--cc-hero-img);
  background-size: cover;
  background-position: center right;
}
.cc-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 14, 11, .8) 0%, rgba(10, 14, 11, .35) 55%, rgba(10, 14, 11, 0) 100%);
}
@media (min-width: 992px) { .cc-hero { border-radius: var(--cc-radius); } }

.cc-hero-inner {
  position: relative;
  z-index: 2;
  padding: 34px 20px 38px;
}
@media (min-width: 768px) { .cc-hero-inner { padding: 56px 40px 60px; max-width: 640px; } }
@media (min-width: 1200px) { .cc-hero-inner { padding: 76px 56px 80px; } }

.cc-hero-kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #FFE9B0;
  background: rgba(0, 0, 0, .38);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: .35rem .8rem;
  border-radius: var(--cc-radius);
  margin-bottom: 14px;
}

.cc-hero-title {
  font-size: 1.9rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .5);
  margin-bottom: 6px;
}
.cc-hero-amount {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.05;
  background: linear-gradient(180deg, #FFE07A 0%, #FFB629 55%, #F08A1E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .45));
}
@media (min-width: 768px) {
  .cc-hero-title { font-size: 2.6rem; }
  .cc-hero-amount { font-size: 3.6rem; }
}
@media (min-width: 1200px) {
  .cc-hero-title { font-size: 3rem; }
  .cc-hero-amount { font-size: 4.4rem; }
}

.cc-hero-note { color: rgba(255, 255, 255, .82); font-size: .85rem; margin-top: 12px; }

/* ---------- Cards / surfaces ---------- */
.cc-card {
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  padding: 20px;
  height: 100%;
}
.cc-card-hover { transition: transform .2s ease, border-color .2s ease; }
.cc-card-hover:hover { transform: translateY(-3px); border-color: rgba(70, 208, 122, .45); }

.cc-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--cc-radius);
  font-size: 22px;
  background: var(--cc-surface-2);
  margin-bottom: 12px;
}

/* ---------- Stats strip ---------- */
.cc-stat {
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius-sm);
  padding: 14px 12px;
  text-align: center;
  height: 100%;
}
.cc-stat b { display: block; font-size: 1.25rem; font-weight: 900; color: var(--cc-gold); }
.cc-stat span { font-size: .78rem; color: var(--cc-muted); }
@media (min-width: 768px) { .cc-stat b { font-size: 1.6rem; } .cc-stat span { font-size: .85rem; } }

/* ---------- Info table ---------- */
.cc-table-wrap {
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  overflow: hidden;
}
/* Bootstrap красит ячейки через --bs-table-color правилом с более высокой
   специфичностью, чем `.cc-table td`, поэтому переопределяем сами переменные. */
.cc-table {
  --bs-table-color: #FFFFFF;
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--cc-line);
  --bs-table-striped-color: #FFFFFF;
  --bs-table-hover-color: #FFFFFF;
  margin: 0;
  color: #FFFFFF;
}
.cc-table td, .cc-table th {
  background: var(--cc-surface);
  border-color: var(--cc-line);
  padding: 12px 14px;
  vertical-align: top;
  font-size: .9rem;
  color: #FFFFFF;
}
.cc-table tr:nth-child(even) td { background: var(--cc-surface-2); }
.cc-table td:first-child { font-weight: 700; width: 42%; }
.cc-table a { color: var(--cc-green-300); }
@media (min-width: 768px) {
  .cc-table td, .cc-table th { padding: 14px 18px; font-size: .95rem; }
  .cc-table td:first-child { width: 32%; }
}

/* ---------- Bonus cards ---------- */
.cc-bonus {
  position: relative;
  background: linear-gradient(160deg, var(--cc-surface-2), var(--cc-surface));
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  padding: 22px 20px;
  height: 100%;
  overflow: hidden;
}
.cc-bonus::before {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 201, 60, .16), transparent 70%);
}
.cc-bonus-step {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cc-green-300);
  margin-bottom: 8px;
}
.cc-bonus-value {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--cc-gold);
  line-height: 1.1;
  margin-bottom: 6px;
}
.cc-bonus.is-featured { border-color: rgba(255, 201, 60, .5); }

/* ---------- Game tiles ---------- */
.cc-game {
  display: block;
  border-radius: var(--cc-radius-sm);
  overflow: hidden;
  border: 1px solid var(--cc-line);
  background: var(--cc-surface);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cc-game:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0, 0, 0, .45); }
.cc-game-art {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  font-size: 2rem;
  position: relative;
}
.cc-game-art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .55) 100%);
}
.cc-game-body { padding: 9px 10px 11px; }
.cc-game-name {
  font-weight: 700;
  font-size: .82rem;
  color: var(--cc-text);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cc-game-prov { font-size: .7rem; color: var(--cc-muted); }

/* ---------- Chips (providers / payments / currencies) ---------- */
.cc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-chip {
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius);
  padding: .4rem .85rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--cc-text);
}
.cc-chip:hover { border-color: rgba(70, 208, 122, .5); color: var(--cc-text); }
@media (min-width: 768px) { .cc-chip { font-size: .875rem; } }

button.cc-chip { font-family: inherit; cursor: pointer; line-height: inherit; }
.cc-chip.active {
  background: var(--cc-green);
  border-color: var(--cc-green);
  color: #fff;
}

/* ---------- Forms ---------- */
.form-control, .form-select {
  background: var(--cc-surface-2);
  border: 1px solid var(--cc-line);
  color: var(--cc-text);
  border-radius: var(--cc-radius-sm);
  padding: .65rem .85rem;
  font-size: .92rem;
}
.form-control:focus, .form-select:focus {
  background: var(--cc-surface-2);
  color: var(--cc-text);
  border-color: var(--cc-green);
  box-shadow: 0 0 0 .2rem rgba(31, 168, 77, .2);
}
.form-control::placeholder { color: var(--cc-muted); }
.form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239BAFA3' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.form-label { color: var(--cc-muted); font-weight: 600; }
#ccThanks { color: var(--cc-green-300); font-weight: 600; }

/* ---------- Steps ---------- */
.cc-step { display: flex; gap: 14px; align-items: flex-start; }
.cc-step-num {
  flex: 0 0 38px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--cc-radius);
  font-weight: 900;
  background: var(--cc-green);
  color: #fff;
}

/* ---------- Accordion (FAQ) ---------- */
.accordion.cc-accordion { --bs-accordion-border-color: var(--cc-line); }
.cc-accordion .accordion-item {
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius-sm) !important;
  margin-bottom: 10px;
  overflow: hidden;
}
.cc-accordion .accordion-button {
  background: var(--cc-surface);
  color: var(--cc-text);
  font-weight: 700;
  font-size: .95rem;
  padding: 15px 16px;
  box-shadow: none;
}
.cc-accordion .accordion-button:not(.collapsed) { background: var(--cc-surface-2); color: var(--cc-gold); }
.cc-accordion .accordion-button::after {
  filter: invert(1) brightness(1.6);
}
.cc-accordion .accordion-body { color: var(--cc-muted); font-size: .9rem; padding: 0 16px 16px; }

/* ---------- Reviews ---------- */
.cc-review { background: var(--cc-surface); border: 1px solid var(--cc-line); border-radius: var(--cc-radius); padding: 18px; height: 100%; }
.cc-review-head { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.cc-avatar {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: var(--cc-radius);
  display: grid; place-items: center;
  font-weight: 800;
  color: #0C1310;
  background: linear-gradient(135deg, var(--cc-green-300), var(--cc-gold));
}
.cc-stars { color: var(--cc-gold); font-size: .85rem; letter-spacing: 1px; }

.cc-rating-big {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--cc-gold);
}

.cc-bar { height: 8px; border-radius: var(--cc-radius); background: var(--cc-surface-2); overflow: hidden; }
.cc-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--cc-green), var(--cc-gold)); }

/* ---------- CTA band ---------- */
.cc-cta {
  border-radius: var(--cc-radius);
  padding: 28px 20px;
  text-align: center;
  background:
    radial-gradient(120% 130% at 50% 0%, rgba(255, 201, 60, .18), transparent 60%),
    linear-gradient(160deg, var(--cc-surface-2), var(--cc-surface));
  border: 1px solid var(--cc-line);
}
@media (min-width: 768px) { .cc-cta { padding: 44px 40px; } }

/* ---------- Footer ---------- */
.cc-footer {
  background: #0A100D;
  border-top: 1px solid var(--cc-line);
  padding: 34px 0 0;
  margin-top: 8px;
}
.cc-footer h6 { font-weight: 800; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--cc-text); margin-bottom: 12px; }
.cc-footer a { display: block; color: var(--cc-muted); font-size: .88rem; padding: 4px 0; }
.cc-footer a:hover { color: var(--cc-gold); }
.cc-footer-bottom {
  border-top: 1px solid var(--cc-line);
  margin-top: 24px;
  padding: 16px 0;
  font-size: .78rem;
  color: var(--cc-muted);
}
.cc-18 {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: var(--cc-radius);
  border: 2px solid #E5484D;
  color: #E5484D;
  font-weight: 900;
  font-size: .72rem;
}

/* ---------- Sticky mobile CTA ---------- */
.cc-sticky-cta {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 1035;
  display: flex;
  gap: 8px;
  padding: 9px;
  border-radius: var(--cc-radius);
  background: rgba(20, 31, 26, .95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--cc-line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.cc-sticky-cta .btn { flex: 1; padding: .65rem .5rem; font-size: .875rem; }
body { padding-bottom: 84px; }
@media (min-width: 992px) {
  .cc-sticky-cta { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Utilities ---------- */
.cc-divider { height: 1px; background: var(--cc-line); border: 0; opacity: 1; }
.cc-prose p { color: var(--cc-muted); }
.cc-prose ul { color: var(--cc-muted); padding-left: 1.15rem; }
.cc-prose li { margin-bottom: 6px; }
.cc-prose strong { color: var(--cc-text); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
