/* ───────────────────────────── Activcity — Design tokens ───────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  /* type */
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  /* radii (overridable via tweaks) */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-card: 24px;
  --r-pill: 999px;

  /* spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* default accent: emerald */
  --accent: #10B981;
  --accent-600: #059669;
  --accent-50: #ecfdf5;
  --accent-ink: #062e23;

  /* category palette — playful, warm */
  --cat-extreme: #FF5C3A;     /* экстрим */
  --cat-game: #7C5CFF;        /* игровой */
  --cat-sport: #FFB020;       /* спорт */
  --cat-family: #FF8FAB;      /* семейный */
  --cat-creative: #38BDF8;    /* творческий */
  --cat-company: #14B8A6;     /* компании */
  --cat-urban: #84CC16;       /* уличный */
  --cat-shows: #F472B6;       /* шоу */
}

/* ── LIGHT ── */
:root,
[data-theme="light"] {
  --bg: #FFFBF5;
  --bg-elev: #FFFFFF;
  --bg-soft: #FFF3E6;
  --bg-sunken: #F6EFE3;
  --surface: #FFFFFF;
  --surface-2: #FBF6EC;
  --ink: #1A1410;
  --ink-2: #4A4036;
  --ink-3: #8C8074;
  --ink-4: #B8AC9B;
  --line: #EBE0CC;
  --line-2: #D9CCB3;
  --shadow-card: 0 1px 2px rgba(40,30,15,.04), 0 10px 24px -12px rgba(40,30,15,.10);
  --shadow-pop: 0 4px 12px rgba(40,30,15,.06), 0 24px 48px -16px rgba(40,30,15,.16);
  --glass: rgba(255,251,245,.78);
}

/* ── DARK ── */
[data-theme="dark"] {
  --bg: #0E0B14;
  --bg-elev: #16121E;
  --bg-soft: #1C1727;
  --bg-sunken: #0A070F;
  --surface: #1A1525;
  --surface-2: #221C2F;
  --ink: #FBF7F1;
  --ink-2: #C9C2D4;
  --ink-3: #8B8395;
  --ink-4: #5F5868;
  --line: #2A2238;
  --line-2: #3A3048;
  --shadow-card: 0 1px 2px rgba(0,0,0,.4), 0 16px 32px -16px rgba(0,0,0,.6);
  --shadow-pop: 0 4px 12px rgba(0,0,0,.3), 0 32px 64px -16px rgba(0,0,0,.7);
  --glass: rgba(14,11,20,.7);
}

/* ── base ── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .25s ease, color .25s ease;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

.display { font-family: var(--font-display); letter-spacing: -0.02em; }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ── containers ── */
.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (max-width: 760px) {
  .container { padding-inline: 16px; }
}

/* ── section header ── */
.section { padding-block: 56px; }
@media (max-width: 760px) { .section { padding-block: 36px; } }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head .eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-600);
  background: var(--accent-50);
  padding: 6px 10px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
[data-theme="dark"] .section-head .eyebrow {
  background: color-mix(in oklab, var(--accent), transparent 78%);
  color: color-mix(in oklab, var(--accent), white 30%);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.025em;
  margin: 10px 0 0;
  line-height: 1.05;
}
.section-head p.lede {
  color: var(--ink-3);
  max-width: 56ch;
  margin: 8px 0 0;
  font-size: 16px;
}
.section-head .link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: gap .2s ease;
}
.section-head .link:hover { gap: 10px; }

/* ── buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--ink-2); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ── chip / tag ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all .15s ease;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .6;
}

/* ── card base ── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.6,.2,1), box-shadow .25s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
  border-color: var(--line-2);
}

/* ── scrollbars ── */
.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 24px;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.scroll-row > * { scroll-snap-align: start; flex: 0 0 auto; }
.scroll-row::-webkit-scrollbar { height: 8px; }
.scroll-row::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 999px;
}

/* ── utility ── */
.row { display: flex; gap: var(--space-3); align-items: center; }
.col { display: flex; flex-direction: column; gap: var(--space-3); }
.grow { flex: 1; }
.dim { color: var(--ink-3); }
.divider { height: 1px; background: var(--line); width: 100%; }

/* focus ring */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* skeleton img placeholder while loading */
.img-fallback {
  background:
    linear-gradient(135deg, color-mix(in oklab, var(--accent), transparent 70%), color-mix(in oklab, var(--ink), transparent 90%));
}

/* keep page from horizontally scrolling on tiny screens */
html, body { overflow-x: hidden; }
