/* ==========================================================================
   ComeGame App — comeapps.net
   main.css — reset, layout, shared components
   Mobile-first: base -> 768px -> 1200px
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset & base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-text-secondary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-locked {
  overflow: hidden;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--color-text-primary);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { text-wrap: pretty; }

a {
  color: var(--color-royal-purple-3);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--color-electric-blue); }

ul, ol { list-style: none; }

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

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

:focus-visible {
  outline: 3px solid var(--color-electric-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(123, 47, 247, 0.18);
  color: var(--color-text-primary);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: var(--z-overlay);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--color-royal-purple);
  color: var(--color-text-inverse);
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 12px;
  color: var(--color-text-inverse);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   2. Layout primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 900px; }
.container--wide { max-width: 1400px; }

.section {
  position: relative;
  padding-block: var(--section-pad);
}

.section--tint { background: var(--color-bg-alt); }
.section--surface { background: var(--color-surface); }

.section--soft {
  background: linear-gradient(180deg, #ffffff 0%, var(--color-bg-alt) 100%);
}

/* Angled clip-path dividers — alternate direction for scroll rhythm */
.section--slant-down {
  clip-path: polygon(0 0, 100% 3.4vw, 100% 100%, 0 100%);
  padding-top: calc(var(--section-pad) + 3.4vw);
  margin-top: -1px;
}

.section--slant-up {
  clip-path: polygon(0 3.4vw, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(var(--section-pad) + 3.4vw);
  margin-top: -1px;
}

.section--slant-both {
  clip-path: polygon(0 3.4vw, 100% 0, 100% calc(100% - 3.4vw), 0 100%);
  padding-block: calc(var(--section-pad) + 3.4vw);
}

/* Decorative background blobs, always clipped by their parent */
.blob {
  position: absolute;
  z-index: var(--z-blob);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(6px);
}

.blob--purple { background: var(--gradient-glow-purple); }
.blob--blue { background: var(--gradient-glow); }

.has-blobs {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.has-blobs > .container { position: relative; z-index: var(--z-content); }

/* Section heading block */
.section-head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  margin-top: 1rem;
  font-size: var(--fs-lead);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.75);
  color: var(--color-royal-purple-3);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-glow-purple);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-text--gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--color-text-secondary);
}

.text-center { text-align: center; }

/* Rich prose blocks (long-form SEO / legal copy) */
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.75rem; }
.prose h3 { margin-top: 2rem; }
.prose h4 { margin-top: 1.6rem; }
.prose h2:first-child,
.prose h3:first-child { margin-top: 0; }

.prose ul,
.prose ol {
  padding-left: 0;
  display: grid;
  gap: 0.7rem;
}

.prose ul li {
  position: relative;
  padding-left: 1.9rem;
}

.prose ul li::before {
  content: '';
  position: absolute;
  top: 0.68em;
  left: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--gradient-primary);
}

.prose ol {
  counter-reset: prose-ol;
}

.prose ol li {
  position: relative;
  padding-left: 2.4rem;
  counter-increment: prose-ol;
}

.prose ol li::before {
  content: counter(prose-ol);
  position: absolute;
  top: 0.2em;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--color-surface-3);
  color: var(--color-royal-purple-3);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
}

.prose strong { color: var(--color-text-primary); }

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-normal),
    background-color var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast);
}

.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--gradient-primary);
  background-size: 180% 180%;
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  color: var(--color-text-inverse);
  background-position: 100% 0;
  box-shadow: 0 16px 38px rgba(123, 47, 247, 0.46);
}

/* Sweeping shine */
.btn--primary::after,
.btn--gold::after,
.btn--tg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-sheen);
  transform: translateX(-120%);
  transition: transform 720ms ease;
}

.btn--primary:hover::after,
.btn--gold:hover::after,
.btn--tg:hover::after {
  transform: translateX(120%);
}

.btn--gold {
  background: var(--gradient-gold);
  color: #3a1e00;
  box-shadow: 0 10px 26px rgba(255, 140, 32, 0.38);
}

.btn--gold:hover { color: #3a1e00; }

.btn--ghost {
  background: var(--color-surface);
  border-color: var(--color-border-strong);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-xs);
}

.btn--ghost:hover {
  border-color: var(--color-royal-purple);
  color: var(--color-royal-purple-3);
  box-shadow: var(--shadow-card);
}

.btn--outline-light {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--color-text-inverse);
  backdrop-filter: blur(8px);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-royal-purple-3);
}

/* Telegram button — brand blue + official glyph */
.btn--tg {
  background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(34, 158, 217, 0.36);
}

.btn--tg:hover {
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(34, 158, 217, 0.46);
}

.btn--lg {
  padding: 1.15rem 2.15rem;
  font-size: 1.05rem;
}

.btn--sm {
  padding: 0.68rem 1.15rem;
  font-size: 0.85rem;
}

.btn--block { display: flex; width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-row--center { justify-content: center; }

.btn-note {
  margin-top: 0.9rem;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* Icon-only round button (header Telegram) */
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(34, 158, 217, 0.34);
  transition: transform var(--transition-fast), box-shadow var(--transition-normal);
}

.icon-btn svg { width: 22px; height: 22px; }

.icon-btn:hover {
  color: #ffffff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 26px rgba(34, 158, 217, 0.45);
}

/* --------------------------------------------------------------------------
   4. Chips, badges, pills
   -------------------------------------------------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: var(--fs-xs);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.chip svg { width: 15px; height: 15px; color: var(--color-royal-purple); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge--purple {
  background: rgba(123, 47, 247, 0.1);
  color: var(--color-royal-purple-3);
}

.badge--blue {
  background: rgba(46, 92, 255, 0.1);
  color: #1a3fc7;
}

.badge--gold {
  background: rgba(255, 176, 32, 0.18);
  color: var(--color-gold);
}

.badge--hot {
  background: var(--gradient-gold);
  color: #3a1e00;
}

/* --------------------------------------------------------------------------
   5. Cards & glass
   -------------------------------------------------------------------------- */

.card {
  position: relative;
  padding: clamp(1.35rem, 2.4vw, 2rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal),
    border-color var(--transition-normal);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card-hover);
}

.card h3 { margin-bottom: 0.6rem; }

.glass {
  border: 1px solid rgba(216, 207, 242, 0.85);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

/* Gradient icon chip used across bento/feature cards */
.icon-chip {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.15rem;
  border-radius: 18px;
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(123, 47, 247, 0.32);
}

.icon-chip svg { width: 26px; height: 26px; }

.icon-chip--blue { background: var(--gradient-primary-rev); }
.icon-chip--gold {
  background: var(--gradient-gold);
  color: #3a1e00;
  box-shadow: 0 10px 24px rgba(255, 140, 32, 0.32);
}
.icon-chip--sm { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 0.9rem; }
.icon-chip--sm svg { width: 21px; height: 21px; }

/* Generic responsive grids */
.grid { display: grid; gap: var(--grid-gap); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  width: 100%;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal),
    border-color var(--transition-normal), backdrop-filter var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--color-border);
  box-shadow: 0 6px 30px rgba(60, 20, 130, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

/* Brand lockup — app-icon badge + wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}

.brand__mark {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  overflow: hidden;
  background: #05040d;
  box-shadow: 0 6px 18px rgba(60, 20, 130, 0.28), 0 0 0 1px rgba(123, 47, 247, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* the supplied icon has transparent-black padding baked in — crop it */
  transform: scale(1.22);
}

.brand:hover .brand__mark {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 10px 26px rgba(123, 47, 247, 0.38), 0 0 0 1px rgba(123, 47, 247, 0.55);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.06;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text-primary);
}

.brand__tag {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--color-royal-purple);
}

/* Desktop nav */
.nav { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  position: relative;
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  font-size: 0.93rem;
  font-weight: 600;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
  transition: width var(--transition-normal);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-text-primary);
  background: rgba(123, 47, 247, 0.07);
}

.nav__link:hover::after { width: 18px; }

.nav__link.is-active {
  color: var(--color-royal-purple-3);
}

.nav__link.is-active::after { width: 18px; }

.header__actions {
  display: none;
  align-items: center;
  gap: 0.6rem;
}

/* Mobile toggle */
.nav-toggle {
  display: grid;
  place-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border: 1px solid var(--color-border-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-xs);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-text-primary);
  transition: transform var(--transition-normal), opacity var(--transition-fast);
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem var(--gutter) 2.5rem;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--transition-normal), transform var(--transition-normal),
    visibility var(--transition-normal);
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav__list { display: grid; gap: 0.2rem; }

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.mobile-nav__link::after {
  content: '›';
  color: var(--color-text-muted);
  font-size: 1.3rem;
  line-height: 1;
}

.mobile-nav__link:hover,
.mobile-nav__link.is-active {
  background: var(--color-surface-3);
  color: var(--color-royal-purple-3);
}

.mobile-nav__actions {
  display: grid;
  gap: 0.7rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

/* --------------------------------------------------------------------------
   7. Device (app) mockup — used in hero, download page, screenshot slider
   -------------------------------------------------------------------------- */

.device {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 19.2;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(155deg, #2c2752 0%, #131028 42%, #241d45 100%);
  box-shadow: 0 34px 80px rgba(40, 12, 90, 0.34), 0 0 0 2px rgba(255, 255, 255, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.28);
}

.device__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: #0b0918;
}

/* Single static screen (used inside the screenshot slider) */
.device__screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Looping "live app" reel — stacked screenshots scroll like a real session.
   Track holds N screens, the last one repeats the first for a seamless loop. */
.device__reel {
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: device-reel 34s linear infinite;
}

.device__reel img {
  width: 100%;
  height: auto;
  flex: none;
}

@keyframes device-reel {
  0% { transform: translateY(0); }
  100% { transform: translateY(-75%); }
}

.device:hover .device__reel { animation-play-state: paused; }

/* Notch */
.device__notch {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 3;
  width: 88px;
  height: 22px;
  border-radius: var(--radius-full);
  background: #0b0918;
  transform: translateX(-50%);
}

.device__notch::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4b7bff, #17153a);
  transform: translateY(-50%);
}

/* Glass sheen sweeping across the screen */
.device__sheen {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 255, 255, 0.3) 46%, transparent 58%);
  transform: translateX(-60%);
  animation: sheen-sweep 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sheen-sweep {
  0%, 62% { transform: translateX(-70%); }
  100% { transform: translateX(70%); }
}

/* Physical buttons */
.device::before,
.device::after {
  content: '';
  position: absolute;
  left: -3px;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(180deg, #3a3268, #1b1738);
}

.device::before { top: 108px; height: 34px; }
.device::after { top: 154px; height: 56px; }

.device__power {
  position: absolute;
  top: 128px;
  right: -3px;
  width: 3px;
  height: 62px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #3a3268, #1b1738);
}

/* Float animation wrapper */
.float-slow { animation: float-y 7.5s ease-in-out infinite; }
.float-med { animation: float-y 6s ease-in-out infinite 0.6s; }
.float-fast { animation: float-y 5s ease-in-out infinite 1.2s; }

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* --------------------------------------------------------------------------
   8. Stats / counters
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-border);
  box-shadow: var(--shadow-card);
}

.stat {
  padding: clamp(1.4rem, 3vw, 2.25rem) 1rem;
  background: var(--color-surface);
  text-align: center;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
}

.stat__sub {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   9. Accordion (FAQ)
   -------------------------------------------------------------------------- */

.accordion { display: grid; gap: 0.85rem; }

.accordion__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-normal);
}

.accordion__item.is-open {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 1.3rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-text-primary);
  transition: color var(--transition-fast);
}

.accordion__trigger:hover { color: var(--color-royal-purple-3); }

.accordion__icon {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-surface-3);
  transition: background var(--transition-normal), transform var(--transition-normal);
}

.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-royal-purple-3);
  transform: translate(-50%, -50%);
  transition: transform var(--transition-normal), background var(--transition-normal);
}

.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.accordion__item.is-open .accordion__icon {
  background: var(--gradient-primary);
  transform: rotate(90deg);
}

.accordion__item.is-open .accordion__icon::before,
.accordion__item.is-open .accordion__icon::after { background: #fff; }
.accordion__item.is-open .accordion__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-normal);
}

.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }

.accordion__panel > div { overflow: hidden; }

.accordion__panel p { padding: 0 1.3rem 1.3rem; }
.accordion__panel p + p { padding-top: 0; margin-top: -0.5rem; }

/* --------------------------------------------------------------------------
   10. Tables
   -------------------------------------------------------------------------- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.table th,
.table td {
  padding: 0.95rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.table thead th {
  background: var(--color-surface-2);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-royal-purple-3);
  white-space: nowrap;
}

.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(123, 47, 247, 0.035); }

.table td strong { color: var(--color-text-primary); }

/* --------------------------------------------------------------------------
   11. Breadcrumbs & page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  background: var(--gradient-hero);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3vw), 0 100%);
}

.page-hero__inner { position: relative; z-index: var(--z-content); max-width: 820px; }

.page-hero h1 { margin-bottom: 1rem; }

.page-hero p { font-size: var(--fs-lead); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.breadcrumb li { display: flex; align-items: center; gap: 0.45rem; }
.breadcrumb li + li::before { content: '/'; color: var(--color-border-strong); }
.breadcrumb a { color: var(--color-text-secondary); font-weight: 600; }
.breadcrumb a:hover { color: var(--color-royal-purple-3); }
.breadcrumb [aria-current] { color: var(--color-royal-purple-3); font-weight: 600; }

/* --------------------------------------------------------------------------
   12. CTA bands
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(2.25rem, 5vw, 4rem) clamp(1.35rem, 4vw, 3.5rem);
  border-radius: var(--radius-xl);
  background: var(--gradient-deep);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  box-shadow: var(--shadow-lift);
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 160%;
  background: radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.28), transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(255, 176, 32, 0.3), transparent 55%);
  z-index: -1;
}

.cta-band h2 { color: #fff; }
.cta-band p { margin: 1rem auto 0; max-width: 640px; font-size: var(--fs-lead); }
.cta-band .btn-row { margin-top: 1.9rem; }
.cta-band .btn-note { color: rgba(255, 255, 255, 0.7); }

.cta-band__legal {
  margin-top: 1.5rem;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.68);
}

/* Telegram dual cards */
.tg-cards {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: 1fr;
}

.tg-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(216, 207, 242, 0.9);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal),
    border-color var(--transition-normal);
}

.tg-card:hover {
  transform: translateY(-6px);
  border-color: rgba(42, 171, 238, 0.6);
  box-shadow: var(--shadow-card-hover);
}

.tg-card__glow {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 171, 238, 0.28), transparent 70%);
  pointer-events: none;
}

.tg-card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #2aabee, #229ed9);
  color: #fff;
  box-shadow: 0 10px 26px rgba(34, 158, 217, 0.34);
}

.tg-card__icon svg { width: 30px; height: 30px; }

.tg-card h3 { margin-bottom: 0.5rem; }
.tg-card p { margin-bottom: 1.4rem; }

.tg-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   13. Notice / alert blocks
   -------------------------------------------------------------------------- */

.notice {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface-2);
  font-size: var(--fs-sm);
}

.notice__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient-primary);
  color: #fff;
}

.notice__icon svg { width: 18px; height: 18px; }

.notice--warn {
  border-color: rgba(255, 176, 32, 0.5);
  background: rgba(255, 176, 32, 0.09);
}

.notice--warn .notice__icon { background: var(--gradient-gold); color: #3a1e00; }

.notice strong { color: var(--color-text-primary); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: clamp(3.25rem, 6vw, 5rem);
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, #efe8ff 100%);
  border-top: 1px solid var(--color-border);
}

.footer__top {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  padding-bottom: clamp(2.25rem, 4vw, 3rem);
}

.footer__brand { max-width: 420px; }

.footer__brand .brand { margin-bottom: 1.15rem; }

.footer__brand p {
  font-size: var(--fs-sm);
  margin-bottom: 1.15rem;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer__nav-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

.footer__col h4 {
  margin-bottom: 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-royal-purple-3);
}

.footer__col ul { display: grid; gap: 0.65rem; }

.footer__col a {
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer__col a:hover {
  color: var(--color-royal-purple-3);
  transform: translateX(3px);
}

.footer__disclaimer {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-strong);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.footer__disclaimer p {
  font-size: var(--fs-xs);
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.footer__disclaimer p + p { margin-top: 0.85rem; }

.footer__disclaimer strong { color: var(--color-text-primary); }

.footer__age {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  float: left;
  margin: 0 0.9rem 0.5rem 0;
  border-radius: 50%;
  border: 2px solid var(--color-error);
  color: var(--color-error);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid var(--color-border-strong);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.footer__legal-links a { color: var(--color-text-muted); }
.footer__legal-links a:hover { color: var(--color-royal-purple-3); }

.footer__keywords {
  padding-bottom: 1.75rem;
  font-size: 0.72rem;
  line-height: 1.9;
  color: var(--color-text-muted);
  text-align: center;
}

.footer__keywords span { white-space: nowrap; }
.footer__keywords span::after { content: ' • '; color: var(--color-border-strong); }
.footer__keywords span:last-child::after { content: ''; }

/* --------------------------------------------------------------------------
   15. Cookie banner & back-to-top
   -------------------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: var(--z-overlay);
  width: min(880px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-strong);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow-lift);
  transform: translate(-50%, 140%);
  transition: transform var(--transition-slow);
}

.cookie-banner.is-visible { transform: translate(-50%, 0); }

.cookie-banner p { font-size: var(--fs-xs); }

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 800;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-btn);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--transition-normal), transform var(--transition-normal),
    visibility var(--transition-normal);
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: #fff; transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   16. Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--left { transform: translateX(-32px); }
.reveal--right { transform: translateX(32px); }

/* --------------------------------------------------------------------------
   17. Forms
   -------------------------------------------------------------------------- */

.form { display: grid; gap: 1.1rem; }

.form__row { display: grid; gap: 1.1rem; }

.field { display: grid; gap: 0.45rem; }

.field label {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: 0.97rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.field textarea { min-height: 150px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: var(--color-text-muted); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-royal-purple);
  box-shadow: 0 0 0 4px rgba(123, 47, 247, 0.14);
}

.field__hint { font-size: var(--fs-xs); color: var(--color-text-muted); }

.form__status {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  display: none;
}

.form__status.is-shown { display: block; }
.form__status--ok { background: rgba(15, 158, 106, 0.1); color: var(--color-success); }
.form__status--err { background: rgba(225, 29, 72, 0.09); color: var(--color-error); }

.checkbox {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
}

.checkbox input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--color-royal-purple); }

/* --------------------------------------------------------------------------
   18. Responsive — tablet
   -------------------------------------------------------------------------- */

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

  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .tg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer__nav-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .footer__bottom { flex-direction: row; text-align: left; }

  .cookie-banner { flex-direction: row; align-items: center; justify-content: space-between; }
  .cookie-banner__actions { flex: none; }

  .to-top { right: 26px; bottom: 26px; width: 52px; height: 52px; }
}

/* --------------------------------------------------------------------------
   19. Responsive — desktop
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
  :root { --header-h: 84px; }

  .nav { display: block; }
  .header__actions { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }

  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .brand__mark { width: 52px; height: 52px; border-radius: 16px; }
  .brand__name { font-size: 1.28rem; }

  .footer__top { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr); }
}

@media (min-width: 1200px) {
  .device { max-width: 330px; }
}

/* --------------------------------------------------------------------------
   20. Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .float-slow,
  .float-med,
  .float-fast,
  .device__sheen,
  .device__reel {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   21. Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .mobile-nav,
  .cookie-banner,
  .to-top,
  .cta-band { display: none !important; }

  body { color: #000; background: #fff; }
}
