/* ==========================================================================
   B9 Game — Core stylesheet
   Structure: 1 Reset  2 Base type  3 Layout  4 Buttons  5 Promo strip
              6 Navbar  7 Hero  8 Phone mockup  9 Cards 10 Sections
             11 Slider 12 Accordion 13 Footer 14 Floating UI 15 Motion
             16 Responsive
   ========================================================================== */

/* ============================ 1. RESET =================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--promo-h) + 16px);
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

body.is-locked { overflow: hidden; }

img,
picture,
svg,
video { display: block; max-width: 100%; }

img { height: auto; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; cursor: pointer; }

a { color: var(--brand-strong); text-decoration: none; }

ul, ol { margin: 0; padding: 0; }

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: var(--sp-8) 0;
}

:focus-visible {
  outline: 3px solid var(--emerald-500);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--emerald-200);
  color: var(--ink-900);
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--z-top);
  background: var(--emerald-700);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ============================ 2. BASE TYPE =============================== */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 800; line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

strong, b { color: var(--ink-700); font-weight: 700; }

.lede {
  font-size: var(--fs-lg);
  line-height: var(--lh-loose);
  color: var(--ink-400);
}

.text-brand { color: var(--brand-strong); }
.text-muted { color: var(--ink-400); }
.text-center { text-align: center; }

.grad-text {
  background: linear-gradient(120deg, var(--emerald-700) 0%, var(--emerald-500) 48%, var(--gold-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Eyebrow / kicker label above headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--emerald-700);
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  padding: 7px 14px 7px 11px;
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-5);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}
.eyebrow--gold {
  color: var(--gold-600);
  background: var(--gold-50);
  border-color: var(--gold-100);
}
.eyebrow--gold::before {
  background: var(--gold-400);
  box-shadow: 0 0 0 4px rgba(217, 175, 75, 0.2);
}

/* Rich long-form copy blocks (legal + guide pages) */
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; font-size: var(--fs-h4); }
.prose h4 { margin-top: 1.2em; font-size: var(--fs-h5); }
.prose p,
.prose li { color: var(--ink-500); }
.prose ul,
.prose ol { margin: 0 0 1.3em; padding-left: 1.25em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--grad-brand-vivid);
  box-shadow: 0 0 0 4px var(--emerald-50);
}
.prose ol { list-style: decimal; }
.prose ol li { margin-bottom: 12px; padding-left: 6px; }
.prose ol li::marker { color: var(--emerald-600); font-weight: 700; }

/* ============================ 3. LAYOUT ================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { padding-block: var(--section-y); position: relative; }
/* Decorative .glow blobs use negative offsets that can bleed past the
   viewport edge — clip only the sections that actually contain one.
   .has-glow is an explicit fallback for browsers without :has() support. */
.section:has(.glow),
.section.has-glow { overflow-x: hidden; }
.section--tight { padding-block: var(--section-y-sm); }
.section--mist { background: var(--grad-mist); }
.section--mist-rev { background: var(--grad-mist-rev); }
.section--paper { background: var(--paper-2); }
.section--white { background: var(--white); }

/* Section heading block */
.sec-head {
  max-width: 760px;
  margin-bottom: clamp(34px, 4vw, 58px);
}
.sec-head--center {
  margin-inline: auto;
  text-align: center;
}
.sec-head--center .eyebrow { margin-inline: auto; }
.sec-head h2 { margin-bottom: 0.45em; }
.sec-head p { color: var(--ink-400); font-size: var(--fs-md); line-height: var(--lh-loose); }

/* Split heading: title left, supporting copy right */
.sec-head--split {
  max-width: none;
  display: grid;
  gap: clamp(14px, 3vw, 56px);
  align-items: end;
}
@media (min-width: 900px) {
  .sec-head--split { grid-template-columns: 1.05fr 0.95fr; }
}

.grid { display: grid; gap: clamp(18px, 2.2vw, 28px); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Decorative soft glow blobs */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.glow--a { background: rgba(16, 185, 129, 0.28); }
.glow--b { background: rgba(217, 175, 75, 0.2); }

.section > .container { position: relative; z-index: 1; }

/* ============================ 4. BUTTONS ================================= */
.btn {
  --btn-bg: var(--grad-brand);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: var(--sh-brand);
  transition: transform var(--t-med) var(--ease-spring),
              box-shadow var(--t-med) var(--ease-out),
              filter var(--t-fast) linear;
  overflow: hidden;
  isolation: isolate;
}
/* Sheen sweep micro-interaction */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.42) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 720ms var(--ease-out);
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--sh-brand-lg); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(-1px) scale(0.99); }

.btn svg { flex: none; }

.btn--gold {
  --btn-bg: var(--grad-gold);
  --btn-fg: #3B2A08;
  box-shadow: var(--sh-gold);
}
.btn--gold:hover { box-shadow: 0 24px 48px -18px rgba(192, 144, 47, 0.55); }

.btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.86);
  --btn-fg: var(--ink-900);
  border: 1.5px solid var(--line);
  box-shadow: var(--sh-sm);
  backdrop-filter: var(--glass-blur);
}
.btn--ghost:hover {
  border-color: var(--emerald-300);
  color: var(--emerald-700);
  box-shadow: var(--sh-md);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--emerald-700);
  border: 1.5px solid var(--emerald-300);
  box-shadow: none;
}
.btn--outline:hover {
  background: var(--emerald-50);
  box-shadow: var(--sh-sm);
}

/* Telegram brand button */
.btn--tg {
  --btn-bg: linear-gradient(135deg, #229ED9 0%, #2AABEE 55%, #6FD0F5 100%);
  --btn-fg: #fff;
  box-shadow: 0 16px 34px -14px rgba(34, 158, 217, 0.6);
}
.btn--tg:hover { box-shadow: 0 24px 50px -18px rgba(34, 158, 217, 0.6); }

.btn--lg { padding: 18px 36px; font-size: var(--fs-md); }
.btn--sm { padding: 11px 20px; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn-row--center { justify-content: center; }

/* Text link with animated arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--emerald-700);
}
.link-arrow svg { transition: transform var(--t-med) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* Small pill chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-700);
  box-shadow: var(--sh-xs);
}
.chip--brand {
  background: var(--emerald-50);
  border-color: var(--emerald-100);
  color: var(--emerald-800);
}
.chip--gold {
  background: var(--gold-50);
  border-color: var(--gold-100);
  color: var(--gold-600);
}

/* ============================ 5. PROMO STRIP ============================= */
.promo-strip {
  position: relative;
  z-index: calc(var(--z-nav) + 1);
  background: var(--grad-brand-deep);
  color: #EAFBF2;
  font-size: var(--fs-xs);
  overflow: hidden;
}
.promo-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: var(--promo-h);
  padding-block: 8px;
  text-align: center;
  flex-wrap: wrap;
}
.promo-strip strong { color: var(--gold-200); font-weight: 800; }
.promo-strip__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 800;
  border-bottom: 1.5px dashed rgba(255, 255, 255, 0.55);
  padding-bottom: 1px;
}
.promo-strip__cta:hover { color: var(--gold-200); border-color: var(--gold-200); }
.promo-strip__spark {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-300);
  animation: pulse 2.2s var(--ease-in-out) infinite;
}

/* ============================ 6. NAVBAR ================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  transition: box-shadow var(--t-med) var(--ease-out), background var(--t-med) var(--ease-out);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid transparent;
  transition: background var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out);
}
.site-header.is-scrolled::before {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 8px 30px -18px rgba(11, 31, 23, 0.34);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  height: var(--nav-h);
  transition: height var(--t-med) var(--ease-out);
}
.site-header.is-scrolled .nav { height: var(--nav-h-scrolled); }

/* --- Brand plate: dark emerald chip so the white wordmark reads clearly --- */
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  border-radius: 16px;
  padding: 8px 16px 8px 12px;
  background: var(--grad-brand-deep);
  box-shadow: 0 12px 26px -14px rgba(9, 61, 37, 0.6), var(--sh-inset);
  transition: transform var(--t-med) var(--ease-spring), box-shadow var(--t-med) var(--ease-out);
}
.brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(9, 61, 37, 0.7), var(--sh-inset);
}
.brand img {
  height: 34px;
  width: auto;
  transition: height var(--t-med) var(--ease-out);
}
.site-header.is-scrolled .brand img { height: 30px; }

/* Larger brand lockup used in footer + hero-adjacent contexts */
.brand--lg { padding: 12px 22px 12px 16px; border-radius: 20px; }
.brand--lg img { height: 46px; }

.nav__spacer { flex: 1 1 auto; }

.nav__menu {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 15px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-700);
  transition: color var(--t-fast) linear, background var(--t-fast) linear;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand-vivid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease-out);
}
.nav__link:hover { color: var(--emerald-700); background: var(--emerald-50); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--emerald-800); font-weight: 700; }
.nav__link.is-active::after { transform: scaleX(1); }

.nav__actions {
  display: none;
  align-items: center;
  gap: 10px;
}

/* Circular Telegram icon button in nav */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: #229ED9;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-med) var(--ease-spring), box-shadow var(--t-med) var(--ease-out), background var(--t-fast) linear;
}
.icon-btn:hover {
  transform: translateY(-2px);
  background: #F0FAFF;
  box-shadow: var(--sh-md);
}

/* Hamburger */
.hamburger {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  flex: none;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-900);
  transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast) linear;
}
.hamburger span + span { margin-top: 5px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(370px, 88vw);
  background: var(--white);
  z-index: var(--z-drawer);
  padding: 22px 24px calc(var(--bottombar-h) + 30px);
  box-shadow: -30px 0 70px -30px rgba(11, 31, 23, 0.4);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 420ms var(--ease-out), visibility 420ms linear;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.drawer__close {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--ink-700);
  flex: none;
}
.drawer__close:hover { background: var(--paper-2); }

.drawer__menu { list-style: none; display: grid; gap: 4px; }
.drawer__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--ink-700);
  transition: background var(--t-fast) linear, color var(--t-fast) linear, transform var(--t-fast) var(--ease-out);
}
.drawer__menu a:hover,
.drawer__menu a.is-active {
  background: var(--emerald-50);
  color: var(--emerald-800);
  transform: translateX(4px);
}
.drawer__menu a svg { opacity: 0.4; }

.drawer__note {
  margin-top: auto;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  font-size: var(--fs-xs);
  color: var(--ink-400);
  line-height: 1.6;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 27, 20, 0.42);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  z-index: calc(var(--z-drawer) - 1);
  transition: opacity var(--t-med) linear, visibility var(--t-med) linear;
}
.overlay.is-open { opacity: 1; visibility: visible; }

/* ============================ 7. HERO ==================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(38px, 5vw, 70px);
  padding-bottom: clamp(50px, 6vw, 96px);
  background:
    radial-gradient(74% 62% at 78% 8%, rgba(16, 185, 129, 0.16) 0%, rgba(16, 185, 129, 0) 62%),
    radial-gradient(58% 52% at 6% 88%, rgba(217, 175, 75, 0.14) 0%, rgba(217, 175, 75, 0) 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F3FBF6 52%, #FAFAF8 100%);
}
/* Fine grid texture */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 157, 88, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 157, 88, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(75% 62% at 50% 32%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(75% 62% at 50% 32%, #000 0%, transparent 78%);
  pointer-events: none;
}

/* Mobile: intro copy, then the app mockup, then bonus/CTA/trust/stats —
   the mockup is a grid item in its own right so it can sit visually above
   the bonus card without needing to reorder it in the source. Desktop
   restores the original two-column layout via named areas. */
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "intro" "mockup" "body";
  gap: clamp(28px, 7vw, 64px);
  align-items: center;
}
.hero__intro { grid-area: intro; }
.hero__body { grid-area: body; }
.hero .mockup { grid-area: mockup; }

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.02fr 0.98fr;
    grid-template-areas: "intro mockup" "body mockup";
    gap: clamp(30px, 4vw, 60px);
  }
}

.hero h1 { margin-bottom: 0.4em; }
.hero__sub {
  font-size: var(--fs-lg);
  line-height: var(--lh-loose);
  color: var(--ink-400);
  max-width: 56ch;
  margin-bottom: var(--sp-7);
}

/* Bonus headline block */
.hero__bonus {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 22px 12px 14px;
  margin-bottom: var(--sp-6);
  border-radius: var(--r-pill);
  background: var(--glass-bg-strong);
  border: 1px solid var(--emerald-100);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--sh-md);
}
.hero__bonus-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: #3B2A08;
  flex: none;
  box-shadow: 0 8px 18px -8px rgba(192, 144, 47, 0.7);
}
.hero__bonus-amt {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.32rem;
  line-height: 1.1;
  color: var(--ink-900);
}
.hero__bonus-label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--ink-400);
  font-weight: 600;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--sp-7);
}

/* Hero mini stat row */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
  max-width: 540px;
}
.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.6vw, 1.7rem);
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.15;
}
.hero__stat span {
  font-size: var(--fs-xs);
  color: var(--ink-400);
  font-weight: 500;
}

/* ============================ 8. PHONE MOCKUP ============================ */
.mockup {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 44px) 0;
}
/* Radial halo behind device */
.mockup::before {
  content: "";
  position: absolute;
  width: min(115%, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--grad-halo);
  z-index: 0;
}
/* Rotating conic ring */
.mockup__ring {
  position: absolute;
  width: min(94%, 470px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(16, 185, 129, 0) 0deg, rgba(16, 185, 129, 0.35) 90deg, rgba(217, 175, 75, 0.28) 180deg, rgba(16, 185, 129, 0) 300deg);
  mask-image: radial-gradient(closest-side, transparent 78%, #000 79%, #000 100%);
  -webkit-mask-image: radial-gradient(closest-side, transparent 78%, #000 79%, #000 100%);
  animation: spin 22s linear infinite;
  opacity: 0.85;
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 2;
  width: clamp(248px, 25vw, 312px);
  aspect-ratio: 497 / 947;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(160deg, #16332A 0%, #0B211A 42%, #0F9D58 100%);
  box-shadow:
    0 46px 90px -34px rgba(9, 61, 37, 0.55),
    0 10px 26px rgba(11, 31, 23, 0.14),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.16);
  animation: float-y 6.5s var(--ease-in-out) infinite;
  transition: transform var(--t-slow) var(--ease-out);
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #0C0F0E;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
/* Glass sheen across the screen */
.phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(128deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.05) 26%, transparent 52%);
  pointer-events: none;
}
/* Dynamic-island notch */
.phone__notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 22px;
  border-radius: var(--r-pill);
  background: #07100C;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.phone__notch::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2C6E5A, #0A1B14);
}
/* Side buttons */
.phone__btn {
  position: absolute;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2C4A3D, #14261E);
}
.phone__btn--pw { right: -3px; top: 27%; height: 62px; }
.phone__btn--v1 { left: -3px; top: 22%; height: 34px; }
.phone__btn--v2 { left: -3px; top: 31%; height: 34px; }

/* Floating info cards around the device */
.mockup__chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 16px;
  border-radius: var(--r-md);
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--sh-lg);
  white-space: nowrap;
}
.mockup__chip b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.2;
}
.mockup__chip span {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-400);
  font-weight: 600;
}
.mockup__chip i {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 11px;
  flex: none;
  color: #fff;
  background: var(--grad-brand);
}
.mockup__chip i.is-gold { background: var(--grad-gold); color: #3B2A08; }

.mockup__chip--tl { top: 9%; left: max(0px, 2%); animation: float-y 7.5s var(--ease-in-out) infinite; }
.mockup__chip--br { bottom: 13%; right: max(0px, 1%); animation: float-y 8.5s var(--ease-in-out) 0.8s infinite; }
.mockup__chip--ml { bottom: 34%; left: max(0px, 0%); animation: float-y 9.5s var(--ease-in-out) 1.6s infinite; }

@media (max-width: 480px) {
  .mockup__chip--ml { display: none; }
  .mockup__chip { padding: 9px 12px; }
}

/* Download-page variant: bigger device, two chips */
.mockup--download .phone { width: clamp(262px, 30vw, 342px); }

/* ============================ 9. CARDS =================================== */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 32px);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med) linear;
  height: 100%;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: var(--emerald-100);
}
.card h3 { font-size: var(--fs-h5); margin-bottom: 0.5em; }
.card p { font-size: var(--fs-sm); color: var(--ink-400); line-height: var(--lh-loose); }

.card--glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--sh-md);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  margin-bottom: var(--sp-5);
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-100);
  transition: transform var(--t-med) var(--ease-spring), background var(--t-med) linear, color var(--t-med) linear;
}
.card:hover .card__icon {
  transform: rotate(-6deg) scale(1.06);
  background: var(--grad-brand-vivid);
  color: #fff;
  border-color: transparent;
}
.card__icon--gold { background: var(--gold-50); color: var(--gold-600); border-color: var(--gold-100); }
.card:hover .card__icon--gold { background: var(--grad-gold); color: #3B2A08; }

/* Numbered step card */
.step {
  position: relative;
  padding-top: 34px;
}
.step__num {
  position: absolute;
  top: -18px;
  left: clamp(22px, 2.4vw, 32px);
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 15px;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: var(--sh-brand);
}

/* Stat card with animated counter */
.stat {
  text-align: center;
  padding: clamp(24px, 2.6vw, 34px) 18px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.stat:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.stat__val {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--ink-900);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.stat__val .suffix { color: var(--emerald-700); }
.stat__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-400);
  letter-spacing: 0.02em;
}

/* Game card */
.game-card {
  position: relative;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-fast) linear;
}
.game-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--sh-lg);
  border-color: var(--emerald-200);
}
.game-card__media {
  position: relative;
  aspect-ratio: 211 / 260;
  overflow: hidden;
  background: var(--paper-2);
}
.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 620ms var(--ease-out);
}
.game-card:hover .game-card__media img { transform: scale(1.07); }
.game-card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(7, 61, 37, 0) 35%, rgba(7, 45, 28, 0.82) 100%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease-out);
}
.game-card:hover .game-card__overlay,
.game-card:focus-visible .game-card__overlay { opacity: 1; }
.game-card__play {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--emerald-800);
  font-size: var(--fs-xs);
  font-weight: 800;
  transform: translateY(10px);
  transition: transform var(--t-med) var(--ease-spring);
  box-shadow: var(--sh-md);
}
.game-card:hover .game-card__play { transform: translateY(0); }
.game-card__tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--grad-gold);
  color: #3B2A08;
  box-shadow: var(--sh-xs);
}
.game-card__tag--hot { background: linear-gradient(135deg, #E2542F, #F58A4B); color: #fff; }
.game-card__tag--new { background: var(--grad-brand); color: #fff; }
.game-card__body {
  padding: 13px 14px 15px;
}
.game-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.3;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--ink-300);
  font-weight: 600;
}
.game-card__rtp { color: var(--emerald-700); }

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.6vw, 22px);
}
@media (min-width: 620px) { .games-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .games-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .games-grid { grid-template-columns: repeat(5, 1fr); } }

/* Testimonial */
.quote {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}
.quote__stars { display: flex; gap: 3px; color: var(--gold-400); }
.quote__text {
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
  color: var(--ink-700);
  font-weight: 500;
}
.quote__who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.quote__avatar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  flex: none;
}
.quote__name { font-weight: 700; color: var(--ink-900); font-size: var(--fs-sm); line-height: 1.3; }
.quote__meta { font-size: var(--fs-xs); color: var(--ink-300); }

/* Feature list rows (icon + copy) */
.feature-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row__icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  flex: none;
}
.feature-row h4 { font-size: var(--fs-h6); margin-bottom: 4px; }
.feature-row p { font-size: var(--fs-sm); color: var(--ink-400); margin: 0; }

/* Definition-style table */
.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--fs-sm);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--white);
}
.spec-table th,
.spec-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table th {
  font-weight: 700;
  color: var(--ink-900);
  background: var(--paper-2);
  width: 44%;
  font-family: var(--font-display);
}
.spec-table td { color: var(--ink-500); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ============================ 10. SECTIONS =============================== */

/* --- Trust marquee --- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 22px;
  background: var(--white);
  border-block: 1px solid var(--line-soft);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--ink-400);
  white-space: nowrap;
}
.marquee__item svg { color: var(--emerald-500); flex: none; }

/* --- OG banner showcase --- */
.og-showcase {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--grad-brand-deep);
  padding: clamp(10px, 1.2vw, 16px);
  box-shadow: var(--sh-xl);
}
.og-showcase__frame {
  position: relative;
  border-radius: calc(var(--r-2xl) - 10px);
  overflow: hidden;
  background: #07100C;
}
.og-showcase__frame img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.005);
  transition: transform 900ms var(--ease-out);
}
.og-showcase:hover .og-showcase__frame img { transform: scale(1.035); }
/* Slow shine sweep across the banner */
.og-showcase__frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 42%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: skewX(-18deg);
  animation: shine 6.5s var(--ease-in-out) infinite;
  pointer-events: none;
}
.og-showcase__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(10px, 1.6vw, 22px) 8px;
  color: #D8F5E6;
}
.og-showcase__caption p { font-size: var(--fs-xs); margin: 0; max-width: 62ch; line-height: 1.6; }
.og-showcase__caption strong { color: #fff; }

.og-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: var(--sp-7);
}
.og-badges .chip { background: var(--white); }

/* --- Screenshot slider --- */
.shots {
  position: relative;
}
.shots__viewport {
  overflow: hidden;
  padding-block: 26px;
  cursor: grab;
}
.shots__viewport.is-dragging { cursor: grabbing; }
.shots__track {
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
  transition: transform 620ms var(--ease-out);
  will-change: transform;
}
.shot {
  flex: 0 0 auto;
  width: clamp(196px, 22vw, 250px);
  transition: transform var(--t-slow) var(--ease-out), opacity var(--t-slow) linear;
  opacity: 0.62;
  transform: scale(0.9);
}
.shot.is-active { opacity: 1; transform: scale(1); }
.shot__device {
  position: relative;
  aspect-ratio: 497 / 947;
  padding: 8px;
  border-radius: 34px;
  background: linear-gradient(160deg, #16332A 0%, #0B211A 45%, #0F9D58 100%);
  box-shadow: 0 30px 60px -28px rgba(9, 61, 37, 0.5), inset 0 0 0 1.2px rgba(255, 255, 255, 0.15);
}
.shot__device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 27px;
  background: #0C0F0E;
}
.shot__device::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 15px;
  border-radius: var(--r-pill);
  background: #07100C;
  z-index: 2;
}
.shot__label {
  margin-top: 16px;
  text-align: center;
}
.shot__label b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  color: var(--ink-900);
  font-weight: 700;
}
.shot__label span { font-size: var(--fs-xs); color: var(--ink-300); }

.shots__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: var(--sp-6);
}
.shots__btn {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-900);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-med) var(--ease-spring), background var(--t-fast) linear, color var(--t-fast) linear, box-shadow var(--t-med) var(--ease-out);
}
.shots__btn:hover {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--sh-brand);
}
.shots__dots { display: flex; gap: 8px; align-items: center; }
.shots__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--emerald-100);
  transition: width var(--t-med) var(--ease-out), background var(--t-med) linear;
}
.shots__dot.is-active { width: 30px; border-radius: var(--r-pill); background: var(--grad-brand-vivid); }

/* --- Split media/copy block --- */
.split {
  display: grid;
  gap: clamp(32px, 4.4vw, 68px);
  align-items: center;
}
@media (min-width: 992px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}

/* --- Community (Telegram) banner --- */
.community {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  padding: clamp(30px, 4vw, 54px);
  background: linear-gradient(135deg, #E9F9FF 0%, #F4FDF8 48%, #ECFDF3 100%);
  border: 1px solid #D5EEF9;
  box-shadow: var(--sh-md);
  display: grid;
  gap: 26px;
  align-items: center;
}
@media (min-width: 900px) {
  .community { grid-template-columns: 1fr auto; }
}
.community::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 171, 238, 0.22), transparent 68%);
  pointer-events: none;
}
.community h3 { margin-bottom: 0.35em; }
.community p { color: var(--ink-400); font-size: var(--fs-sm); max-width: 62ch; margin: 0; }
.community__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #229ED9, #6FD0F5);
  color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 14px 30px -14px rgba(34, 158, 217, 0.7);
}
.community__actions { display: grid; gap: 10px; }

/* Two-channel Telegram cards */
.tg-cards { display: grid; gap: 18px; }
@media (min-width: 768px) { .tg-cards { grid-template-columns: repeat(2, 1fr); } }
.tg-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-sm);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
  height: 100%;
}
.tg-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.tg-card__top { display: flex; align-items: center; gap: 14px; }
.tg-card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 15px;
  background: linear-gradient(135deg, #229ED9, #6FD0F5);
  color: #fff;
  flex: none;
}
.tg-card h4 { margin: 0; font-size: var(--fs-h6); }
.tg-card__handle { font-size: var(--fs-xs); color: #229ED9; font-weight: 700; }
.tg-card p { font-size: var(--fs-sm); color: var(--ink-400); margin: 0; flex: 1; }

/* --- CTA band --- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  padding: clamp(34px, 5vw, 68px);
  background: var(--grad-brand-deep);
  box-shadow: var(--sh-xl);
  text-align: center;
  color: #DFF7EA;
}
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-band::before {
  width: 320px; height: 320px;
  top: -140px; left: -80px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
}
.cta-band::after {
  width: 380px; height: 380px;
  bottom: -200px; right: -100px;
  background: radial-gradient(circle, rgba(217, 175, 75, 0.25), transparent 68%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 0.4em; }
.cta-band p {
  color: rgba(226, 249, 238, 0.86);
  font-size: var(--fs-md);
  max-width: 66ch;
  margin-inline: auto;
  margin-bottom: var(--sp-7);
}
.cta-band .btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.12);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(8px);
}
.cta-band .btn--ghost:hover { background: rgba(255, 255, 255, 0.2); color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.cta-band__note {
  margin-top: var(--sp-6);
  font-size: var(--fs-xs);
  color: rgba(214, 245, 230, 0.72);
}

/* --- Page hero (inner pages) --- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(46px, 6vw, 88px);
  background:
    radial-gradient(60% 70% at 82% 10%, rgba(16, 185, 129, 0.16) 0%, transparent 60%),
    radial-gradient(50% 60% at 4% 90%, rgba(217, 175, 75, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, #F2FAF5 100%);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero__inner { position: relative; z-index: 1; max-width: 880px; }
.page-hero h1 { margin-bottom: 0.35em; }
.page-hero p { font-size: var(--fs-lg); color: var(--ink-400); line-height: var(--lh-loose); }

/* Breadcrumbs */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: var(--fs-xs);
  color: var(--ink-300);
  margin-bottom: var(--sp-5);
}
.crumbs a { color: var(--ink-400); font-weight: 600; }
.crumbs a:hover { color: var(--emerald-700); }
.crumbs li[aria-current] { color: var(--emerald-700); font-weight: 700; }

/* ============================ 11. TABS / FILTERS ========================= */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: var(--sp-8);
}
.tab {
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-500);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-fast) var(--ease-out), background var(--t-med) linear, color var(--t-fast) linear, border-color var(--t-fast) linear, box-shadow var(--t-med) var(--ease-out);
}
.tab:hover { border-color: var(--emerald-300); color: var(--emerald-700); transform: translateY(-2px); }
.tab.is-active {
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--sh-brand);
}
.tab__count {
  display: inline-block;
  margin-left: 7px;
  font-size: 0.72rem;
  opacity: 0.72;
  font-weight: 700;
}

/* ============================ 12. ACCORDION ============================== */
.accordion { display: grid; gap: 12px; }
.acc {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  overflow: hidden;
  transition: box-shadow var(--t-med) var(--ease-out), border-color var(--t-fast) linear;
}
.acc.is-open { box-shadow: var(--sh-md); border-color: var(--emerald-100); }
.acc__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 20px clamp(18px, 2vw, 26px);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-h6);
  font-weight: 600;
  color: var(--ink-900);
  transition: color var(--t-fast) linear, background var(--t-fast) linear;
}
.acc__btn:hover { color: var(--emerald-700); background: var(--emerald-50); }
.acc.is-open .acc__btn { color: var(--emerald-800); }
.acc__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--emerald-50);
  color: var(--emerald-700);
  flex: none;
  transition: transform var(--t-med) var(--ease-spring), background var(--t-med) linear, color var(--t-med) linear;
}
.acc.is-open .acc__icon { transform: rotate(135deg); background: var(--grad-brand-vivid); color: #fff; }
.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.acc__icon::before { width: 13px; height: 2px; }
.acc__icon::after { width: 2px; height: 13px; }
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 420ms var(--ease-out);
}
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__body {
  padding: 0 clamp(18px, 2vw, 26px) 22px;
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
  color: var(--ink-400);
}
.acc__body p + p { margin-top: 0.9em; }

/* ============================ 13. FOOTER ================================= */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F8F3 42%, #E9F4ED 100%);
  border-top: 1px solid var(--line);
  padding-top: clamp(50px, 6vw, 84px);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -160px; right: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12), transparent 68%);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid;
  gap: clamp(30px, 3.4vw, 46px);
  padding-bottom: var(--sp-9);
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.25fr; } }

.footer-brand p {
  font-size: var(--fs-sm);
  color: var(--ink-400);
  line-height: var(--lh-loose);
  margin-top: var(--sp-5);
  max-width: 46ch;
}
.footer-col h4 {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--ink-400);
  transition: color var(--t-fast) linear, transform var(--t-fast) var(--ease-out);
}
.footer-col a::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--emerald-200);
  transition: background var(--t-fast) linear, transform var(--t-fast) var(--ease-out);
  flex: none;
}
.footer-col a:hover { color: var(--emerald-700); transform: translateX(3px); }
.footer-col a:hover::before { background: var(--emerald-500); transform: scale(1.35); }

.footer-social { display: flex; gap: 10px; margin-top: var(--sp-5); flex-wrap: wrap; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-500);
  box-shadow: var(--sh-xs);
  transition: transform var(--t-med) var(--ease-spring), color var(--t-fast) linear, border-color var(--t-fast) linear, box-shadow var(--t-med) var(--ease-out);
}
.footer-social a::before { content: none; }
.footer-social a:hover {
  transform: translateY(-3px);
  color: #229ED9;
  border-color: #BFE7F8;
  box-shadow: var(--sh-md);
}

.footer-note {
  padding: 20px 22px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line-soft);
  font-size: var(--fs-xs);
  line-height: 1.75;
  color: var(--ink-400);
}
.footer-note strong { color: var(--ink-700); }

.footer-disclaimer {
  border-top: 1px solid var(--line);
  padding-block: var(--sp-7);
  display: grid;
  gap: 18px;
}
.footer-disclaimer__badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.badge-18 {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ink-900);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--ink-900);
  flex: none;
}
.footer-disclaimer p {
  font-size: var(--fs-xs);
  line-height: 1.8;
  color: var(--ink-400);
  margin: 0;
}
.footer-disclaimer strong { color: var(--ink-700); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 22px calc(var(--sp-6) + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--ink-300);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: var(--ink-400); }
.footer-bottom a:hover { color: var(--emerald-700); }

/* Keyword cloud in footer (semantic SEO) */
.kw-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: var(--sp-6);
  border-top: 1px solid var(--line);
}
.kw-cloud span {
  font-size: 0.72rem;
  color: var(--ink-300);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line-soft);
  padding: 5px 11px;
  border-radius: var(--r-pill);
}

/* ============================ 14. FLOATING UI ============================ */
/* Telegram support FAB */
.fab {
  position: fixed;
  right: clamp(14px, 2.4vw, 30px);
  bottom: clamp(14px, 2.4vw, 30px);
  z-index: var(--z-fab);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 13px 20px 13px 13px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #229ED9 0%, #2AABEE 50%, #57C6F2 100%);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  box-shadow: 0 20px 42px -16px rgba(34, 158, 217, 0.75);
  transition: transform var(--t-med) var(--ease-spring), box-shadow var(--t-med) var(--ease-out);
}
.fab:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 28px 56px -18px rgba(34, 158, 217, 0.8); }
.fab__icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex: none;
}
.fab__pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(42, 171, 238, 0.5);
  animation: ripple 2.6s var(--ease-out) infinite;
  pointer-events: none;
}
@media (max-width: 767px) {
  .fab {
    bottom: calc(var(--bottombar-h) + 14px + env(safe-area-inset-bottom));
    padding: 12px;
    gap: 0;
  }
  .fab__label { display: none; }
}

/* Mobile bottom action bar */
.bottombar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -18px rgba(11, 31, 23, 0.35);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottombar a {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 10px 4px;
  min-height: var(--bottombar-h);
  align-content: center;
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--ink-400);
  transition: color var(--t-fast) linear;
}
.bottombar a svg { transition: transform var(--t-med) var(--ease-spring); }
.bottombar a:hover,
.bottombar a.is-active { color: var(--emerald-700); }
.bottombar a:hover svg,
.bottombar a.is-active svg { transform: translateY(-2px); }
.bottombar a.is-cta {
  color: var(--emerald-800);
}
@media (min-width: 768px) { .bottombar { display: none; } }
@media (max-width: 767px) { body { padding-bottom: var(--bottombar-h); } }

/* Back to top */
.to-top {
  position: fixed;
  left: clamp(14px, 2.4vw, 30px);
  bottom: clamp(14px, 2.4vw, 30px);
  z-index: var(--z-fab);
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-700);
  box-shadow: var(--sh-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--t-med) linear, transform var(--t-med) var(--ease-out), visibility var(--t-med) linear;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--emerald-50); color: var(--emerald-700); }
@media (max-width: 767px) {
  .to-top { bottom: calc(var(--bottombar-h) + 14px + env(safe-area-inset-bottom)); }
}

/* ============================ 15. MOTION ================================= */
@keyframes float-y {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.28); opacity: 0; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes shine {
  0% { left: -60%; }
  55%, 100% { left: 130%; }
}
@keyframes fade-up-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="zoom"] { transform: scale(0.95); }
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Page load transition */
.page-fade {
  animation: fade-up-in 620ms var(--ease-out) both;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================ 16. RESPONSIVE ============================= */
@media (min-width: 768px) {
  .hero__stats { gap: 18px; }
}

@media (min-width: 1024px) {
  .nav__menu { display: flex; }
  .nav__actions { display: flex; }
  .hamburger { display: none; }
}

/* Utility helpers */
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: initial; } }
@media (min-width: 768px) { .only-mobile { display: none !important; } }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mt-8 { margin-top: var(--sp-8); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
