/*
 * ============================================================================
 * AGGRESSIVE CASINO — Parametrized CSS Base Template
 * ============================================================================
 *
 * High-saturation conversion machine: near-black canvas, saturated red,
 * electric yellow, neon glow, condensed display type, sticky CTA energy.
 * Built for paid-traffic landings and impulse sign-up flows.
 *
 * Use case: hard-sell casino landings, welcome-bonus pages, paid-campaign
 * funnels, urgency-driven promo pages.
 *
 * CUSTOMIZATION — Override on :root per satellite:
 *
 *   --brand-accent         Saturated red (default: #e10b1f)
 *   --brand-accent-2       Electric yellow (default: #ffce00)
 *   --brand-bg-0           Near-black (default: #141415)
 *   --brand-bg-1           Surface 1 (default: #141416)
 *   --brand-font-display   Condensed display (default: 'Roboto Condensed')
 *   --brand-font-body      Body (default: 'Inter')
 *
 * FONTS — SELF-HOSTED ONLY (origin-integrity, QA gate external_origin):
 *   copy woff2 from departments/creative/style-library/fonts/ into the
 *   satellite's assets/fonts/ + link its generated assets/css/fonts.css
 *   (tool: departments/developers/tools/fonts/apply-selfhosted-fonts.sh).
 *   NEVER load third-party font CDNs (see developers.md origin rule) — fail-deploy.
 *   Families for this style:
 *   - Roboto Condensed (700;800;900)
 *   - Inter (400;500;600;700;800)
 *   - Optional Bebas Neue for marquee
 * ============================================================================
 */

:root {
  --brand-accent: #0075ff;
  --brand-accent-hi: #4d9aff;
  --brand-accent-2: #ffc633;
  --brand-accent-2-hi: #ffd980;
  --brand-bg-0: #141415;
  --brand-bg-1: #1d1e20;
  --brand-bg-2: #232427;
  --brand-bg-3: #2b2d31;
  --brand-font-display: 'Roboto Condensed';
  --brand-font-body: 'Inter';

  /* Internal aliases */
  --bg-0: var(--brand-bg-0);
  --bg-1: var(--brand-bg-1);
  --bg-2: var(--brand-bg-2);
  --bg-3: var(--brand-bg-3);
  --accent-1: var(--brand-accent);
  --accent-2: var(--brand-accent-2);
  --accent-hover: var(--brand-accent-hi);
  --accent-2-hover: var(--brand-accent-2-hi);
  --accent-dim: rgba(0, 117, 255, 0.14);
  --accent-2-dim: rgba(255, 198, 51, 0.14);
  --accent-glow: rgba(0, 117, 255, 0.45);
  --accent-2-glow: rgba(255, 198, 51, 0.45);

  /* WCAG-AAA body text on #141415 (~9:1) */
  --text-0: #ffffff;
  --text-1: #d4d6db;   /* clears 9:1 on #141415 */
  --text-2: #8a8d96;   /* micro only */

  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 198, 51, 0.4);

  --radius: 8px;
  --radius-sm: 4px;
  --radius-pill: 100px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: var(--brand-font-display), 'Arial Narrow', sans-serif;
  --font-body: var(--brand-font-body), system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-1);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}
/* Radial neon halo on body */
body::before {
  content: ""; position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, var(--accent-dim), transparent 70%),
    radial-gradient(ellipse 50% 30% at 80% 100%, var(--accent-2-dim), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.25s var(--ease), text-shadow 0.25s var(--ease);
}
a:hover {
  color: var(--accent-2-hover);
  text-shadow: 0 0 8px var(--accent-2-glow);
}
img { display: block; max-width: 100%; height: auto; }

/* === Layout === */
.x7k-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; position: relative; z-index: 1; }

/* === TOPBAR — bold black bar with red underline === */
.x7k-hdr {
  position: sticky; top: 0; z-index: 40;
  background: rgba(20, 20, 21, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--accent-1);
  padding: 14px 0;
  box-shadow: 0 4px 28px rgba(0, 117, 255, 0.18);
}
.x7k-hdr .x7k-wrap {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.x7k-logo {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-0);
  line-height: 1;
}
.x7k-logo a { color: inherit; }
.x7k-logo .accent { color: var(--accent-1); }

.x7k-nav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.x7k-nav a {
  padding: 8px 16px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-1);
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease);
}
.x7k-nav a:hover {
  color: var(--text-0);
  background: var(--accent-dim);
  text-shadow: none;
}
.x7k-nav a[aria-current=page] {
  color: var(--bg-0);
  background: var(--accent-2);
  text-shadow: none;
}

/* === Buttons — neon pulse === */
.x7k-btn, .x7k-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.x7k-btn-primary, .x7k-cta {
  background: var(--accent-2);
  color: #141415;
  box-shadow: 0 0 0 0 var(--accent-2-glow), 0 6px 20px rgba(255, 198, 51, 0.35);
  animation: pulse-yellow 2.4s var(--ease) infinite;
}
.x7k-btn-primary:hover, .x7k-cta:hover {
  background: var(--accent-2-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 32px var(--accent-2-glow), 0 8px 28px rgba(255, 198, 51, 0.5);
  color: #141415;
}
.x7k-btn-primary:active, .x7k-cta:active { transform: scale(0.97); }

.x7k-btn-secondary {
  background: transparent;
  color: var(--accent-1);
  border-color: var(--accent-1);
}
.x7k-btn-secondary:hover {
  background: var(--accent-1);
  color: var(--text-0);
  box-shadow: 0 0 24px var(--accent-glow);
}
.x7k-btn:focus-visible, .x7k-cta:focus-visible { outline: 3px solid var(--accent-2-hover); outline-offset: 3px; }

@keyframes pulse-yellow {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-2-glow), 0 6px 20px rgba(255, 198, 51, 0.35); }
  50% { box-shadow: 0 0 0 8px transparent, 0 8px 28px rgba(255, 198, 51, 0.5); }
}

/* === HERO — full-bleed glow === */
.x7k-hero, .x7k-hero--diagonal {
  position: relative; overflow: hidden;
  padding: 96px 0 112px;
  min-height: min(560px, 72vh);
}
/* Boxed variant: hero is exactly content-block width, not full-bleed. */
.x7k-hero--boxed { max-width: var(--container-max, 1200px); margin: 24px auto; border-radius: var(--radius, 16px); }
.x7k-hero::before, .x7k-hero--diagonal::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 70% 50%, var(--accent-dim), transparent 70%),
    linear-gradient(160deg, var(--bg-0) 30%, #101a2b 100%);
  z-index: 0;
}
.x7k-hero::after, .x7k-hero--diagonal::after {
  content: ""; position: absolute;
  top: -30%; right: -10%; width: 60%; height: 160%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(70px);
  z-index: 0;
}
.x7k-hero-art {
  position: absolute; top: 0; bottom: 0; right: 0;
  width: 72%; z-index: 1;
  pointer-events: none;
}
.x7k-hero-art img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: right center;
  opacity: 1;
}
.x7k-hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right,
    var(--bg-0) 0%,
    var(--bg-0) 14%,
    rgba(20, 20, 21, 0.85) 34%,
    rgba(20, 20, 21, 0.35) 60%,
    transparent 85%);
  pointer-events: none;
}

.x7k-hero-body { position: relative; z-index: 2; max-width: 600px; }

.x7k-brow {
  display: inline-flex; align-items: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 7px 18px;
  background: var(--accent-2-dim);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}

.x7k-hero-body h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-0);
  margin-bottom: 22px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.x7k-hero-body h1 .accent { color: var(--accent-1); }
.x7k-hero-body h1 .highlight {
  color: var(--accent-2);
  text-shadow: 0 0 32px var(--accent-2-glow);
}

.x7k-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-1);
  max-width: 48ch;
  font-weight: 500;
  margin-bottom: 30px;
}

/* Big-number stat strip */
.x7k-stats { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.x7k-stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 22px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-1);
  border-radius: var(--radius-sm);
  min-width: 130px;
}
.x7k-stat strong {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--accent-2);
  line-height: 1;
}
.x7k-stat span {
  font-size: 0.68rem;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

/* === Content === */
main { padding: 50px 0 80px; position: relative; z-index: 1; }
section { margin: 40px auto; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-0);
  letter-spacing: -0.005em;
  margin: 48px 0 20px;
  line-height: 1.05;
}
h2 .accent { color: var(--accent-1); }
h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-0);
  letter-spacing: 0.01em;
  margin: 28px 0 10px;
}

p { margin-bottom: 1em; max-width: 65ch; }

/* === Cards === */
.x7k-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: all 0.3s var(--ease);
}
.x7k-card::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.x7k-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hi);
  box-shadow: 0 14px 40px rgba(0, 117, 255, 0.18);
}
.x7k-card:hover::before { opacity: 1; }
.x7k-card-image {
  width: 100%; aspect-ratio: 16/10;
  object-fit: cover;
}
.x7k-card-body { padding: 22px 24px; }
.x7k-card-body h3 { margin-top: 0; }
.x7k-card-body p { font-size: 0.92rem; color: var(--text-1); margin-bottom: 14px; }

.x7k-grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 36px 0;
}

/* === Offer cards — promo tiles === */
.x7k-offer {
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  transition: all 0.3s var(--ease);
}
.x7k-offer .x7k-badge {
  display: inline-block;
  background: var(--accent-1);
  color: var(--text-0);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.x7k-offer .x7k-amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--accent-2);
  line-height: 1;
  text-shadow: 0 0 24px var(--accent-2-glow);
}

/* === Tables === */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-1);
  color: var(--text-1);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 28px 0;
  font-size: 0.92rem;
  border: 1px solid var(--border);
}
thead { background: var(--bg-2); }
th {
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  border-bottom: 2px solid var(--accent-1);
}
td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-0);
  vertical-align: top;
}
tbody tr { transition: background 0.25s var(--ease); }
tbody tr:hover { background: var(--accent-dim); }
tbody tr:last-child td { border-bottom: none; }
table a { color: var(--accent-2); font-weight: 700; }

/* === Sticky CTA bar === */
.x7k-stickybar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: linear-gradient(90deg, var(--accent-1) 0%, #0057c2 100%);
  padding: 12px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  box-shadow: 0 -8px 28px rgba(0, 117, 255, 0.4);
}
.x7k-stickybar p {
  margin: 0; color: var(--text-0); font-weight: 700;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em;
}
.x7k-stickybar .x7k-btn-primary { animation: none; padding: 10px 22px; font-size: 0.88rem; }

/* === Footer === */
.x7k-foot, footer {
  border-top: 2px solid var(--accent-1);
  padding: 48px 0 32px;
  margin-top: 70px;
  background: #0d0d0e;
  position: relative;
  z-index: 1;
}
.x7k-foot .x7k-wrap, footer .x7k-wrap {
  display: flex; flex-wrap: wrap; gap: 18px;
  justify-content: space-between;
  font-size: 0.85rem; color: var(--text-2);
}
.x7k-foot a, footer a { color: var(--text-1); font-weight: 600; }
.x7k-foot a:hover, footer a:hover { color: var(--accent-2); }

.x7k-legal {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-1);
  text-align: center;
  padding: 14px;
  border: 2px solid var(--accent-1);
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

/* === Responsive === */
@media (max-width: 768px) {
  .x7k-wrap { padding: 0 16px; }
  .x7k-hdr .x7k-wrap { gap: 10px; }
  .x7k-nav a { padding: 6px 10px; font-size: 0.78rem; }
  .x7k-hero, .x7k-hero--diagonal { padding: 56px 0 72px; min-height: auto; overflow: hidden; }
  .x7k-hero-body h1 { font-size: 2.2rem; }
  .x7k-hero-art { width: 58%; opacity: 0.45; right: -10%; }
  /* No horizontal page scroll: wide tables scroll INSIDE themselves, never the page. */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; white-space: nowrap; }
  .x7k-grid3 { grid-template-columns: 1fr; }
  .x7k-stat { min-width: 100px; padding: 12px 14px; }
  .x7k-stat strong { font-size: 1.4rem; }
  .x7k-offer .x7k-amount { font-size: 2rem; }
  th, td { padding: 10px 12px; font-size: 0.82rem; }
}
@media (max-width: 480px) {
  .x7k-hdr { padding: 10px 0; }
  .x7k-logo { font-size: 1.3rem; }
  h2 { font-size: 1.7rem; }
  .x7k-stickybar { flex-direction: column; padding: 10px 14px; }
  .x7k-stickybar p { text-align: center; font-size: 0.85rem; }
}

/* === Motion === */
@media (prefers-reduced-motion: reduce) {
  .x7k-btn-primary, .x7k-cta { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes slam-in {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .x7k-hero-body { animation: slam-in 0.6s var(--ease) both; }
  .x7k-stat:nth-child(1) { animation: slam-in 0.5s 0.1s var(--ease) both; }
  .x7k-stat:nth-child(2) { animation: slam-in 0.5s 0.2s var(--ease) both; }
  .x7k-stat:nth-child(3) { animation: slam-in 0.5s 0.3s var(--ease) both; }
}

/* === Utilities === */
.x7k-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.x7k-t-acc { color: var(--accent-1); }
.x7k-t-hi { color: var(--accent-2); }
.x7k-t-mut { color: var(--text-2); font-size: 0.85rem; }

/* === Scroll-reveal (SSR-safe: visible by default, JS opts in) === */
/* Default (no-JS / crawler / OG snapshot / screenshot / pre-JS) = fully visible. */
.x7k-rise, .x7k-rise2 { opacity: 1; transform: none; }
/* Hidden start state applies ONLY after JS adds .js-anim to <html>. */
html.js-anim .x7k-rise, html.js-anim .x7k-rise2 {
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.4,0,.2,1);
}
html.js-anim .x7k-rise.visible, html.js-anim .x7k-rise2.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html.js-anim .x7k-rise, html.js-anim .x7k-rise2 { opacity: 1; transform: none; transition: none; }
}
/* Reveal JS MUST run `document.documentElement.classList.add('js-anim')` BEFORE
   wiring the IntersectionObserver. NEVER ship .x7k-rise defaulting to opacity:0. */

/* === Mobile burger nav (checkbox hack — works without JS) ===
 * Markup contract (site-builder emits this on EVERY page header):
 *   <input type="checkbox" id="nav-toggle" class="nav-toggle" aria-hidden="true">  (sibling BEFORE .x7k-nav)
 *   <label for="nav-toggle" class="nav-burger" aria-label="Открыть меню"><span></span><span></span><span></span></label>
 * Progressive enhancement JS unchecks #nav-toggle when a nav link is tapped. */
.x7k-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.x7k-nav-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 40px; padding: 9px 10px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm, 4px);
}
.x7k-nav-burger span {
  display: block; height: 2px; width: 100%;
  background: var(--text-0, #ffffff); border-radius: 2px;
  transition: transform 0.25s var(--ease, ease), opacity 0.25s var(--ease, ease);
}
.x7k-nav-toggle:checked ~ .x7k-nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.x7k-nav-toggle:checked ~ .x7k-nav-burger span:nth-child(2) { opacity: 0; }
.x7k-nav-toggle:checked ~ .x7k-nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Official brand logo in the header (sourced from brand assets, never generated) */
.x7k-logo img { height: 40px; width: auto; display: block; }

@media (max-width: 768px) {
  .x7k-hdr .x7k-wrap { justify-content: space-between; }
  .x7k-nav-burger { display: flex; margin-left: 4px; }
  .x7k-hdr .x7k-nav { display: none; }
  .x7k-nav-toggle:checked ~ .x7k-nav {
    display: flex; flex-direction: column;
    flex: 1 1 100%; order: 10;
    gap: 4px; padding: 12px 0 4px; margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .x7k-nav-toggle:checked ~ .x7k-nav a { padding: 12px 10px; font-size: 0.95rem; }
}

/* ============================================================================
 * BRAND OVERRIDE — 1win (official SDUI tokens) + partner CTA (Lev)
 * Base above = style-library/templates/aggressive-casino.css (merged in full).
 *
 * CANONICAL IDENTITY TOKENS — copied verbatim from
 *   GET /api/sites/1win-com-play/visual-identity
 *   → identity.brand_palette + identity.cta_palette
 * which is the same resolver (mcp-server/identity) the visual_identity QA gate
 * grades against. Never hand-pick hexes in this block: regenerate it with
 *   departments/developers/tools/identity/emit-brand-tokens.sh 1win-com-play
 * --brand-* = the identity brand this satellite wears (policy subject_brand →
 * 1win-com). --cta-* = the money recipient (partner_brand_slug → lev); swapping
 * the affiliate repaints --cta-* only, never the identity.
 * ========================================================================= */
:root {
  /* --brand-* — identity brand (1win-com) */
  --brand-primary: #0075ff;
  --brand-secondary: #1d1e20;
  --brand-accent: #00b24b;
  --brand-bg: #141415;
  --brand-text: #f0f2f5;

  /* --cta-* — money recipient (lev) */
  --cta-bg: #33c600;
  --cta-text: #eef1f6;
  --cta-accent: #ffc633;

  /* Template shades derived from the canon — tints, not identity */
  --brand-primary-soft: #4d9aff;
  --brand-primary-deep: #0057c2;
  --cta-bg-hover: #2cae00;
  /* Button label keeps dark ink: --cta-text (#eef1f6) on --cta-bg is 2.2:1,
     --cta-ink is 8.3:1 (WCAG AA large+body). */
  --cta-ink: #0c101d;

  /* Base-template aliases repointed onto the canon — identical pixels, one
     source. The base called the blue --brand-accent; under the canon blue is
     --brand-primary and --brand-accent is 1win's green. */
  --brand-bg-0: var(--brand-bg);
  --brand-bg-1: var(--brand-secondary);
  --brand-green: var(--brand-accent);
  --accent-1: var(--brand-primary);
}

/* Money-CTA: partner green with contrast-safe ink (base used yellow/near-black) */
.x7k-btn-primary, .x7k-cta {
  background: var(--cta-bg);
  color: var(--cta-ink);
  box-shadow: 0 0 0 0 rgba(51, 198, 0, 0.45), 0 6px 20px rgba(51, 198, 0, 0.32);
  animation: x7k-pulse 2.6s var(--ease) infinite;
}
.x7k-btn-primary:hover, .x7k-cta:hover {
  background: var(--cta-bg-hover);
  color: var(--cta-ink);
  box-shadow: 0 0 32px rgba(51, 198, 0, 0.5), 0 8px 28px rgba(51, 198, 0, 0.45);
}
@keyframes x7k-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(51, 198, 0, 0.45), 0 6px 20px rgba(51, 198, 0, 0.32); }
  50%      { box-shadow: 0 0 0 8px transparent, 0 8px 28px rgba(51, 198, 0, 0.5); }
}
@media (prefers-reduced-motion: reduce) { .x7k-btn-primary, .x7k-cta { animation: none; } }

/* Breadcrumbs */
.x7k-crumbs { font-size: .82rem; color: var(--text-2); padding: 14px 0 0; }
.x7k-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.x7k-crumbs li + li::before { content: "\2039"; margin-right: 8px; color: var(--text-2); }
.x7k-crumbs a { color: var(--text-1); font-weight: 600; }

/* Section rhythm + anchor offset under the sticky header */
.x7k-sec { scroll-margin-top: 92px; }
.x7k-sec h2 { margin-top: 8px; }
.x7k-figure { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; margin: 22px 0; }
.x7k-figure img { width: 100%; height: auto; }

/* In-page nav */
.x7k-toc { background: var(--bg-1); border: 1px solid var(--border); border-left: 3px solid var(--brand-primary);
  border-radius: var(--radius); padding: 20px 24px; margin: 28px 0; }
.x7k-toc ul { list-style: none; padding: 0; margin: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 20px; }
.x7k-toc a { color: var(--text-1); font-weight: 600; font-size: .92rem; }
.x7k-toc a:hover { color: var(--accent-2); }
.x7k-toc li::before { content: "\2022"; color: var(--brand-primary); font-weight: 900; margin-right: 8px; }

/* Bonus calculator */
.x7k-calc { background: linear-gradient(135deg, var(--bg-1), var(--bg-2)); border: 1px solid var(--border);
  border-left: 3px solid var(--cta-bg); border-radius: var(--radius); padding: 26px; margin: 26px 0; }
.x7k-calc label { display: block; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .1em; font-size: .78rem; font-weight: 800; color: var(--accent-2); margin-bottom: 12px; }
.x7k-calc input[type=range] { width: 100%; accent-color: var(--cta-bg); margin: 6px 0 14px; }
.x7k-calc-out { display: flex; flex-wrap: wrap; gap: 14px; }
.x7k-calc-out div { flex: 1 1 160px; background: var(--bg-0); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px; }
.x7k-calc-out strong { display: block; font-family: var(--font-display); font-size: 1.7rem;
  font-weight: 900; color: var(--cta-bg); line-height: 1.1; }
.x7k-calc-out span { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-2); font-weight: 700; }

/* Live winnings ticker */
.x7k-ticker { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-1); margin: 26px 0; position: relative; }
.x7k-ticker-track { display: flex; gap: 34px; padding: 13px 0; white-space: nowrap;
  animation: x7k-slide 34s linear infinite; width: max-content; }
.x7k-ticker-track i { font-style: normal; color: var(--text-1); font-size: .88rem; }
.x7k-ticker-track b { color: var(--brand-green); font-weight: 800; }
@keyframes x7k-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .x7k-ticker-track { animation: none; } }

/* Social proof */
.x7k-proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 26px 0; }
.x7k-proof div { background: var(--bg-1); border: 1px solid var(--border); border-top: 3px solid var(--accent-2);
  border-radius: var(--radius); padding: 20px; text-align: center; }
.x7k-proof strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 900; color: var(--accent-2); line-height: 1; }
.x7k-proof span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); font-weight: 700; }

/* Pros / cons — CSS escapes only, never HTML entities */
.x7k-pc { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin: 26px 0; }
.x7k-pc > div { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.x7k-pc ul { list-style: none; padding: 0; margin: 0; }
.x7k-pc li { padding: 7px 0 7px 28px; position: relative; color: var(--text-1); font-size: .94rem; }
.x7k-pc-plus { border-top: 3px solid var(--brand-green); }
.x7k-pc-minus { border-top: 3px solid var(--brand-primary); }
.x7k-pc-plus li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand-green); font-weight: 900; }
.x7k-pc-minus li::before { content: "\2715"; position: absolute; left: 0; color: var(--brand-primary-soft); font-weight: 900; }

/* Slot tiles */
.x7k-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 26px 0; }
.x7k-slot { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.x7k-slot img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.x7k-slot div { padding: 14px 16px; }
.x7k-slot b { display: block; font-family: var(--font-display); text-transform: uppercase; color: var(--text-0); font-size: 1rem; }
.x7k-slot span { font-size: .78rem; color: var(--text-2); }

/* Payment marks */
.x7k-pay { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0; }
.x7k-pay img { height: 46px; width: auto; background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 7px 12px; }

/* Reviews — class contract fixed by the operator content spec */
.x7k-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; margin: 26px 0; }
.x7k-review { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-header img { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); }
.review-header b { font-family: var(--font-display); text-transform: uppercase; color: var(--text-0); font-size: .98rem; }
.review-header span { display: block; font-size: .72rem; color: var(--text-2); }
.review-rating { color: var(--accent-2); font-weight: 800; letter-spacing: .12em; font-size: .9rem; margin-bottom: 8px; }
.review-text { color: var(--text-1); font-size: .93rem; margin: 0; max-width: none; }

/* FAQ */
.x7k-faq { margin: 26px 0; }
.x7k-faq details { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 10px; }
.x7k-faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  color: var(--text-0); font-size: 1rem; letter-spacing: .01em; list-style: none; position: relative; padding-right: 30px; }
.x7k-faq summary::-webkit-details-marker { display: none; }
.x7k-faq summary::after { content: "\002B"; position: absolute; right: 4px; top: -2px; color: var(--accent-2); font-size: 1.4rem; font-weight: 900; }
.x7k-faq details[open] summary::after { content: "\2212"; }
.x7k-faq p { margin: 12px 0 0; color: var(--text-1); font-size: .94rem; }

/* Responsible gaming + footer legal (the ONLY places 18+ may appear) */
.x7k-rg { background: var(--bg-1); border: 1px solid var(--border); border-left: 3px solid var(--brand-primary);
  border-radius: var(--radius); padding: 22px 24px; margin: 30px 0; }
.x7k-rg h2 { font-size: 1.5rem; margin-top: 0; }
.x7k-rg p { font-size: .9rem; color: var(--text-1); }
.x7k-note { font-size: .8rem; color: var(--text-2); line-height: 1.7; max-width: none; margin-top: 14px; }
.x7k-foot .x7k-wrap, footer .x7k-wrap { flex-direction: column; align-items: flex-start; }
.x7k-foot-nav { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 768px) {
  .x7k-calc-out div { flex: 1 1 100%; }
  .x7k-toc ul { grid-template-columns: 1fr; }
  .x7k-pay img { height: 38px; }
}

/* === Sticky mobile CTA dock (≤768px — thumb zone) ==========================
 * Canonical block, copied from
 * departments/creative/style-library/templates/aggressive-casino.css.
 *
 * ONE class name across the estate: `sticky-mobile-cta`. It is deliberately NOT
 * carrying this satellite's x7k- anti-fingerprint prefix: the prefix applies to
 * template layout selectors, while this one is a contract class the QA gate
 * `cta_coverage` (migration 120) matches literally. Do not rename it.
 *
 * Why it exists: the money-CTA has to be reachable from anywhere on a phone.
 * The header pill is neither in the thumb zone nor a money slot (navbar keeps
 * the low-commitment «Войти»), so the dock carries «Забрать бонус».
 *
 * NEVER put an "18+" marker inside this element — the age marker belongs to the
 * footer disclaimer and the responsible-gaming block only.
 */
.sticky-mobile-cta { display: none; }

@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    justify-content: center;
    align-items: center;
    gap: 10px;
    /* env() keeps the bar above the iOS home indicator; the fallback keeps it
       correct on every browser that does not implement safe-area insets. */
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--bg-1);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  /* Tap-target floor. Lighthouse's tap-targets audit fails only CROWDED small
     targets and does not enforce size on an isolated button, so the 48px floor
     is declared here and graded structurally by cta_coverage. */
  .sticky-mobile-cta .x7k-cta,
  .sticky-mobile-cta .x7k-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    min-height: 48px;
    padding: 12px 20px;
    text-align: center;
    animation: none;
  }

  /* Compensate for the fixed bar — the footer disclaimer and the
     responsible-gaming block must stay reachable. */
  /* Measured at 390x844: the bar renders 75px tall (54px button + 2x10px
     padding), so 76px cleared the footer by a single pixel. 96px keeps a real
     gap plus room for the safe-area inset. */
  body { padding-bottom: 96px; }
}

/* pf-mobile-hero v1 */
/* Портретный кадр хиро занимает ширину экрана и стоит в потоке над текстом.
   Без этого правила узкий экран получает десктопный editorial-split: арт
   ужимается в боковую полосу и гасится прозрачностью — измерено 226px при
   вьюпорте 390px. */
@media (max-width: 768px) {
  .x7k-hero-art {
    position: relative;
    inset: auto;
    width: 100%;
    right: auto;
    opacity: 1;
    margin-bottom: 20px;
  }
  .x7k-hero-art img {
    width: 100%;
    height: auto;
    max-height: 52vh;
    object-fit: cover;
    object-position: center;
  }
  /* Боковая маска рассчитана на горизонтальный кадр; вертикальному она
     закрывает половину композиции. */
  .x7k-hero-art::after {
    background: linear-gradient(to bottom, transparent 55%, rgba(0, 0, 0, 0.75) 100%);
  }
}

/* pf-figure-scale v1 */
/* Иллюстрация в тексте не растягивается шире своих пикселей и шире колонки
   чтения. Замер 1win-com-play: файлы 600×400 рисовались на 1134px — браузер
   дорисовывал три четверти изображения, и один рисунок занимал экран на
   странице, которая про текст. */
.x7k-figure {
  max-width: min(100%, 720px);
  margin-left: auto;
  margin-right: auto;
}
.x7k-figure img {
  display: block;
  width: 100%;
  height: auto;
  /* Верхняя граница по ВЫСОТЕ: широкий кадр в узкой колонке иначе всё равно
     вырастает в полотно. */
  max-height: 420px;
  object-fit: cover;
}
@media (max-width: 768px) {
  .x7k-figure img { max-height: 300px; }
}

/* pf-mobile-hero v2 */
/* Портретный кадр хиро занимает ширину экрана и стоит в потоке над текстом.
   Без этого правила узкий экран получает десктопный editorial-split: арт
   ужимается в боковую полосу и гасится прозрачностью — измерено 226px при
   вьюпорте 390px. */
@media (max-width: 768px) {
  .x7k-hero-art {
    position: relative;
    inset: auto;
    width: 100%;
    right: auto;
    opacity: 1;
    margin-bottom: 20px;
  }
  .x7k-hero-art img {
    width: 100%;
    height: auto;
    max-height: 34vh;
    object-fit: cover;
    object-position: center;
  }
  /* Боковая маска рассчитана на горизонтальный кадр; вертикальному она
     закрывает половину композиции. */
  .x7k-hero-art::after {
    background: linear-gradient(to bottom, transparent 55%, rgba(0, 0, 0, 0.75) 100%);
  }
}

/* pf-mobile-hero v3 */
/* Портретный кадр хиро занимает ширину экрана и стоит в потоке над текстом.
   Без этого правила узкий экран получает десктопный editorial-split: арт
   ужимается в боковую полосу и гасится прозрачностью — измерено 226px при
   вьюпорте 390px. */
@media (max-width: 768px) {
  .x7k-hero-art {
    position: relative;
    inset: auto;
    width: 100%;
    right: auto;
    opacity: 1;
    margin-bottom: 20px;
  }
  .x7k-hero-art img {
    width: 100%;
    height: auto;
    /* Форма задаётся явно и совпадает с аспектом слота hero-mobile (4:3).
       Иначе кадр, скомпонованный под одну форму, режется под другую: при
       портретном слоте 3:4 и полосе 1.36:1 обрезалась почти половина высоты. */
    aspect-ratio: 4 / 3;
    max-height: 34vh;
    object-fit: cover;
    object-position: center;
  }
  /* Боковая маска рассчитана на горизонтальный кадр; вертикальному она
     закрывает половину композиции. */
  .x7k-hero-art::after {
    background: linear-gradient(to bottom, transparent 55%, rgba(0, 0, 0, 0.75) 100%);
  }
}
