/* Self-hosted fonts — generated by fetch_fonts.py */
/* cyrillic */
@font-face {font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-400-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-500-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-500-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-600-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-600-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {font-family: 'Onest';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/onest-300-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {font-family: 'Onest';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/onest-300-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/onest-400-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/onest-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/onest-500-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/onest-500-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/onest-600-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/onest-600-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/onest-700-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/onest-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {font-family: 'Onest';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/onest-800-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {font-family: 'Onest';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/onest-800-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/source-serif-4-500-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/source-serif-4-500-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/source-serif-4-600-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/source-serif-4-600-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ─── Афиша городов — main stylesheet ─────────────────────────────────────── */
:root {
  --ag-accent: #E94F37;
  --ag-bg: #FAF7F2;
  --ag-ink: #0E0E14;
  --ag-muted: #6B6457;
  --ag-line: rgba(14,14,20,0.08);
  --ag-surface2: #F2EEE5;
  --ag-radius: 14px;
  --ag-radius-sm: 8px;
  --ag-shadow-sm: 0 1px 0 rgba(14,14,20,.04), 0 1px 2px rgba(14,14,20,.04);
  --ag-shadow-md: 0 2px 4px rgba(14,14,20,.04), 0 12px 24px rgba(14,14,20,.06);
  --ag-shadow-lg: 0 4px 8px rgba(14,14,20,.06), 0 24px 48px rgba(14,14,20,.10);
  --ag-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--ag-bg);
  color: var(--ag-ink);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" on, "ss02" on, "cv01" on, "cv02" on;
  transition: background 280ms ease, color 280ms ease;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.ag-root {
  min-height: 100vh;
}

/* ─── Top accent bar ──────────────────────────────────────────────────────── */
.ag-root::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--ag-accent) 0%, var(--ag-accent) 30%, #0EA5A0 30%, #0EA5A0 100%);
}

/* ─── Top nav ─────────────────────────────────────────────────────────────── */
.ag-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--ag-bg) 92%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--ag-line);
}
.ag-nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.ag-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ag-accent);
}
.ag-logo-mark { display: inline-flex; }
.ag-logo-wm {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.ag-logo-l1 {
  font-weight: 700;
  font-size: 17px;
  color: var(--ag-ink);
  letter-spacing: -0.01em;
}
.ag-logo-l2 {
  font-weight: 600;
  font-size: 11px;
  color: var(--ag-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.ag-nav-links {
  display: flex;
  gap: 4px;
  justify-self: center;
}
.ag-nav-links a {
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ag-muted);
  transition: background 120ms, color 120ms;
}
.ag-nav-links a:hover { color: var(--ag-ink); background: var(--ag-surface2); }
.ag-nav-links a.is-active {
  color: var(--ag-ink);
  background: var(--ag-surface2);
}

.ag-nav-actions { display: flex; gap: 8px; align-items: center; }
.ag-city-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--ag-surface2);
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ag-ink);
}
.ag-city-pill:hover { border-color: var(--ag-line); }
.ag-city-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ag-accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ag-accent) 20%, transparent);
}
.ag-city-caret { color: var(--ag-muted); font-size: 12px; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.ag-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  color: var(--ag-ink);
  white-space: nowrap;
  transition: transform 120ms, background 120ms, color 120ms, border-color 120ms;
}
.ag-btn:hover { transform: translateY(-1px); }
.ag-btn:active { transform: translateY(0); }
.ag-btn-primary {
  background: var(--ag-accent);
  color: #fff;
}
.ag-btn-primary:hover { background: color-mix(in oklab, var(--ag-accent) 88%, black); }
.ag-btn-dark {
  background: var(--ag-ink);
  color: var(--ag-bg);
}
.ag-btn-outline {
  border-color: var(--ag-line);
  background: transparent;
}
.ag-btn-outline:hover { border-color: var(--ag-ink); }
.ag-btn-ghost {
  color: var(--ag-muted);
}
.ag-btn-ghost:hover { color: var(--ag-ink); background: var(--ag-surface2); }
.ag-btn-link {
  padding: 10px 0;
  color: var(--ag-ink);
  border-radius: 0;
  border-bottom: 1.5px solid var(--ag-ink);
  border-radius: 0;
}
.ag-btn-link:hover { color: var(--ag-accent); border-color: var(--ag-accent); }
.ag-btn-lg { padding: 14px 24px; font-size: 15px; }
.ag-btn-buy {
  padding: 8px 14px;
  font-size: 13px;
  background: var(--ag-ink);
  color: var(--ag-bg);
}
.ag-btn-buy:hover { background: var(--ag-accent); color: #fff; }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.ag-hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 32px 32px;
}
.ag-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 64px;
  align-items: end;
}
.ag-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: var(--ag-surface2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ag-muted);
  margin-bottom: 20px;
}
.ag-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #0EA5A0;
  box-shadow: 0 0 0 3px color-mix(in oklab, #0EA5A0 25%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}
.ag-h1 {
  margin: 0 0 20px;
  font-family: "Onest", sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ag-ink);
  text-wrap: balance;
}
.ag-h1 em {
  font-style: italic;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-weight: 600;
  color: var(--ag-accent);
}
.ag-sub {
  font-size: 17px;
  color: var(--ag-muted);
  max-width: 540px;
  margin: 0 0 28px;
  line-height: 1.5;
}

.ag-search {
  display: flex;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: 100px;
  padding: 6px 6px 6px 8px;
  box-shadow: var(--ag-shadow-md);
  max-width: 580px;
}
body.ag-dark .ag-search { background: var(--ag-surface2); }
.ag-search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: var(--ag-muted);
}
.ag-search-field input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ag-ink);
  padding: 12px 0;
}
.ag-search-field input::placeholder { color: var(--ag-muted); }

.ag-suggest {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.ag-suggest-lbl {
  font-size: 13px;
  color: var(--ag-muted);
  margin-right: 4px;
}

.ag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--ag-surface2);
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ag-ink);
  transition: background 120ms, border-color 120ms;
}
.ag-chip:hover { border-color: var(--ag-line); background: #fff; }
body.ag-dark .ag-chip:hover { background: #2a2a34; }
.ag-chip-ghost {
  background: transparent;
  border: 1px solid var(--ag-line);
}
.ag-chip-ghost:hover { background: var(--ag-surface2); border-color: var(--ag-ink); }
.ag-chip-pushkin {
  background: color-mix(in oklab, #F59F00 18%, var(--ag-bg));
  color: #8C5A00;
  font-weight: 600;
}
body.ag-dark .ag-chip-pushkin {
  background: color-mix(in oklab, #F59F00 25%, var(--ag-bg));
  color: #FFD27A;
}
.ag-chip.is-on { background: color-mix(in oklab, var(--ag-accent) 18%, var(--ag-bg)); color: var(--ag-accent); }

/* Hero stats */
.ag-hero-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}
.ag-hero-stat {
  padding: 18px 22px;
  background: var(--ag-surface2);
  border-radius: var(--ag-radius);
  border: 1px solid var(--ag-line);
}
.ag-hero-stat-num {
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ag-ink);
  line-height: 1.05;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.ag-hero-stat-lbl {
  font-size: 13px;
  color: var(--ag-muted);
}
.ag-hero-stat-accent {
  background: var(--ag-ink);
  border-color: var(--ag-ink);
}
.ag-hero-stat-accent .ag-hero-stat-num,
.ag-hero-stat-accent .ag-hero-stat-lbl {
  color: var(--ag-bg);
}
.ag-hero-stat-accent .ag-hero-stat-num { font-size: 17px; font-weight: 600; }

/* ─── Main container ─────────────────────────────────────────────────────── */
.ag-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 32px 80px;
}

/* ─── Toolbars ────────────────────────────────────────────────────────────── */
.ag-toolbar {
  margin: 24px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ag-toolbar-cats {
  justify-content: space-between;
  border-top: 1px solid var(--ag-line);
  border-bottom: 1px solid var(--ag-line);
  padding: 16px 0;
}
.ag-toolbar-r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Date strip */
.ag-datestrip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.ag-datestrip::-webkit-scrollbar { display: none; }
.ag-date {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 16px;
  background: var(--ag-surface2);
  border: 1px solid transparent;
  border-radius: var(--ag-radius);
  text-align: left;
  min-width: 96px;
  transition: background 120ms, border-color 120ms, transform 120ms;
  color: var(--ag-ink);
}
.ag-date:hover { border-color: var(--ag-line); transform: translateY(-1px); }
.ag-date-d {
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ag-ink);
  line-height: 1;
}
.ag-date-w {
  font-size: 12px;
  color: var(--ag-muted);
  font-weight: 500;
}
.ag-date.is-active {
  background: var(--ag-ink);
  color: var(--ag-bg);
}
.ag-date.is-active .ag-date-d,
.ag-date.is-active .ag-date-w { color: var(--ag-bg); }

/* Categories */
.ag-cats {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.ag-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ag-muted);
  transition: background 120ms, color 120ms, border-color 120ms;
}
.ag-cat:hover { color: var(--ag-ink); background: var(--ag-surface2); }
.ag-cat.is-active {
  background: var(--ag-ink);
  color: var(--ag-bg);
}
.ag-cat.is-active .ag-cat-cnt {
  background: rgba(255,255,255,0.15);
  color: var(--ag-bg);
}
.ag-cat-icon {
  font-size: 13px;
  color: var(--ag-accent);
}
.ag-cat.is-active .ag-cat-icon { color: var(--ag-accent); }
.ag-cat-cnt {
  font-family: var(--ag-mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 100px;
  background: var(--ag-surface2);
  color: var(--ag-muted);
}

/* ─── Section heads ───────────────────────────────────────────────────────── */
.ag-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 32px 0 20px;
  flex-wrap: wrap;
}
.ag-h2 {
  margin: 0 0 4px;
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ag-ink);
}
.ag-h2-cnt {
  color: var(--ag-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.ag-h2-sub {
  margin: 0;
  font-size: 15px;
  color: var(--ag-muted);
}
.ag-see-all {
  font-size: 14px;
  font-weight: 500;
  color: var(--ag-ink);
  border-bottom: 1px solid var(--ag-line);
  padding-bottom: 2px;
}
.ag-see-all:hover { border-color: var(--ag-accent); color: var(--ag-accent); }
.ag-section-sort {
  display: flex;
  gap: 4px;
}
.ag-sort-btn {
  padding: 7px 12px;
  background: transparent;
  border: 1px solid var(--ag-line);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ag-muted);
}
.ag-sort-btn.is-active {
  background: var(--ag-ink);
  color: var(--ag-bg);
  border-color: var(--ag-ink);
}
.ag-sort-btn:hover:not(.is-active) { color: var(--ag-ink); }

/* ─── Featured event ──────────────────────────────────────────────────────── */
.ag-featured {
  position: relative;
  margin: 8px 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ag-ink);
  color: var(--ag-bg);
  min-height: 460px;
}
.ag-featured-img {
  position: relative;
  min-height: 460px;
}
.ag-featured-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ag-featured-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(14,14,20,0.5) 100%),
              linear-gradient(0deg, rgba(14,14,20,0.4) 0%, transparent 50%);
}
.ag-featured-pill {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 8px 14px;
  background: var(--ag-bg);
  color: var(--ag-ink);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ag-featured-body {
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.ag-featured-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ag-featured-title {
  margin: 0;
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}
.ag-featured-where {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--ag-mono);
  font-size: 13px;
  color: rgba(248,246,240,0.65);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ag-featured-desc {
  margin: 0;
  font-size: 15px;
  color: rgba(248,246,240,0.7);
  line-height: 1.55;
  max-width: 460px;
}
.ag-featured-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.ag-featured-actions .ag-btn-outline {
  border-color: rgba(248,246,240,0.2);
  color: var(--ag-bg);
}
.ag-featured-actions .ag-btn-outline:hover {
  border-color: var(--ag-bg);
  background: rgba(248,246,240,0.08);
}
.ag-featured-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: rgba(248,246,240,0.7);
  margin-left: auto;
}
.ag-featured-rating .ag-star { color: #F59F00; }
.ag-featured-rating strong { color: var(--ag-bg); font-weight: 700; }

/* ─── Tags ────────────────────────────────────────────────────────────────── */
.ag-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ag-tag-cat {
  background: var(--ag-bg);
  color: var(--ag-ink);
}
.ag-tag-tag {
  background: var(--ag-accent);
  color: #fff;
}
.ag-tag-pushkin {
  background: #FFE4B5;
  color: #8C5A00;
}

/* ─── Event grid ──────────────────────────────────────────────────────────── */
.ag-events { margin-top: 32px; }
.ag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.ag-grid-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ag-grid-stub    { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* ─── Event card ──────────────────────────────────────────────────────────── */
.ag-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  transition: transform 200ms ease;
}
.ag-card:hover { transform: translateY(-3px); }

.ag-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  border-radius: var(--ag-radius);
  overflow: hidden;
  background: var(--ag-surface2);
}
.ag-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.ag-card:hover .ag-card-media img { transform: scale(1.04); }
.ag-card-media-grad {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,20,0.35) 0%, transparent 28%, transparent 60%, rgba(14,14,20,0.55) 100%);
  pointer-events: none;
}
.ag-card-toplabels {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ag-fav {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 0;
  color: var(--ag-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms, transform 120ms, color 120ms;
}
.ag-fav:hover { transform: scale(1.08); background: #fff; color: var(--ag-accent); }
.ag-fav.is-on { color: var(--ag-accent); background: #fff; }

.ag-card-when {
  position: absolute;
  bottom: 12px; left: 12px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(14,14,20,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
  color: #fff;
  font-family: var(--ag-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.ag-card-when-day { font-weight: 700; font-size: 14px; }
.ag-card-when-mo  { color: rgba(255,255,255,0.7); }
.ag-card-when-tm  { color: rgba(255,255,255,0.85); margin-left: 4px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,0.25); }

.ag-card-body {
  padding: 16px 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ag-card-title {
  margin: 0;
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ag-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: balance;
}
.ag-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--ag-muted);
}
.ag-card-dot { color: var(--ag-line); }
.ag-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.ag-card-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.ag-price-from {
  font-size: 12px;
  color: var(--ag-muted);
}
.ag-price-num {
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ag-ink);
  font-variant-numeric: tabular-nums;
}
.ag-price-pushkin { font-size: 14px; }

.ag-card-urgent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ag-accent);
  margin-top: 2px;
}
.ag-urgent-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ag-accent);
  animation: pulse 1.6s ease-in-out infinite;
}
.ag-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--ag-muted);
}
.ag-star { color: #F59F00; }
.ag-rating-num { font-weight: 600; color: var(--ag-ink); }

/* Compact card variant */
.ag-grid-compact .ag-card-media { aspect-ratio: 4 / 5; }
.ag-grid-compact .ag-card-title { font-size: 15px; }
.ag-grid-compact .ag-card-rating { display: none; }

/* Stub (ticket) variant */
.ag-grid-stub .ag-card {
  background: var(--ag-surface2);
  border-radius: var(--ag-radius);
  padding: 12px;
  position: relative;
}
.ag-grid-stub .ag-card::before,
.ag-grid-stub .ag-card::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  background: var(--ag-bg);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.ag-grid-stub .ag-card::before { left: -8px; }
.ag-grid-stub .ag-card::after  { right: -8px; }
.ag-grid-stub .ag-card-body { padding: 14px 8px 8px; }

/* Density variants */
.ag-density-compact .ag-card-body { gap: 4px; padding-top: 12px; }
.ag-density-compact .ag-card-title { font-size: 16px; }
.ag-density-comfy .ag-card-body { gap: 12px; padding-top: 20px; }

/* ─── Pushkin banner ──────────────────────────────────────────────────────── */
.ag-pushkin {
  margin: 64px 0;
  padding: 56px;
  background: linear-gradient(135deg, #FFE4B5 0%, #FFCB7A 100%);
  border-radius: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  color: #3D2A00;
  position: relative;
  overflow: hidden;
}
.ag-pushkin::before {
  content: "🎫";
  position: absolute;
  top: -40px; left: -20px;
  font-size: 200px;
  opacity: 0.08;
  pointer-events: none;
}
.ag-pushkin-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8C5A00;
  margin-bottom: 12px;
}
.ag-pushkin-h {
  margin: 0 0 12px;
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: #3D2A00;
}
.ag-pushkin-h em {
  font-style: italic;
  font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  font-weight: 600;
  color: #C44E0F;
}
.ag-pushkin-p {
  margin: 0 0 24px;
  font-size: 16px;
  color: #6B4500;
  max-width: 460px;
}
.ag-pushkin-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ag-pushkin .ag-btn-dark { background: #3D2A00; color: #FFE4B5; }
.ag-pushkin .ag-btn-dark:hover { background: #1F1500; }
.ag-pushkin .ag-btn-link { color: #6B4500; border-color: #6B4500; }

.ag-pushkin-r { display: flex; justify-content: flex-end; }
.ag-pushkin-card {
  width: 320px;
  aspect-ratio: 1.586 / 1;
  background: linear-gradient(135deg, #C44E0F 0%, #8C5A00 100%);
  border-radius: 18px;
  padding: 22px;
  color: #FFE4B5;
  box-shadow: 0 24px 48px rgba(60, 30, 0, 0.25);
  transform: rotate(-4deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--ag-mono);
}
.ag-pkc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.ag-pkc-chip {
  width: 36px; height: 28px;
  background: linear-gradient(135deg, #FFD27A, #C29050);
  border-radius: 4px;
}
.ag-pkc-logo { font-size: 28px; }
.ag-pkc-num { font-size: 16px; letter-spacing: 0.1em; }
.ag-pkc-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.ag-pkc-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; margin-bottom: 2px; }
.ag-pkc-val { font-size: 13px; font-weight: 600; letter-spacing: 0.05em; }

/* ─── Cities ──────────────────────────────────────────────────────────────── */
.ag-cities { margin: 64px 0 32px; }
.ag-cities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.ag-city-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: var(--ag-radius);
  overflow: hidden;
  transition: transform 200ms;
}
.ag-city-card:hover { transform: translateY(-3px); }
.ag-city-card-img {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--ag-radius);
  overflow: hidden;
  background: var(--ag-surface2);
}
.ag-city-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms;
}
.ag-city-card:hover .ag-city-card-img img { transform: scale(1.06); }
.ag-city-card-code {
  position: absolute;
  bottom: 12px; left: 12px;
  padding: 4px 9px;
  background: rgba(14,14,20,0.78);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  color: #fff;
  font-family: var(--ag-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.ag-city-card.is-active .ag-city-card-img {
  outline: 2px solid var(--ag-accent);
  outline-offset: 2px;
}
.ag-city-card-foot { padding: 12px 4px 4px; }
.ag-city-card-name {
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ag-ink);
  margin-bottom: 2px;
}
.ag-city-card-cnt {
  font-size: 13px;
  color: var(--ag-muted);
  font-variant-numeric: tabular-nums;
}

/* ─── CTA row (newsletter / submit) ───────────────────────────────────────── */
.ag-cta-row {
  margin: 64px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.ag-cta {
  padding: 40px 44px;
  border-radius: 24px;
  background: var(--ag-surface2);
  border: 1px solid var(--ag-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ag-cta-news { background: var(--ag-ink); color: var(--ag-bg); border-color: var(--ag-ink); }
.ag-cta-news .ag-cta-eyebrow { color: var(--ag-accent); }
.ag-cta-news .ag-cta-h { color: var(--ag-bg); }
.ag-cta-news .ag-cta-p { color: rgba(248,246,240,0.7); }
.ag-cta-news .ag-cta-tiny { color: rgba(248,246,240,0.5); }
.ag-cta-news input {
  background: rgba(248,246,240,0.08);
  border-color: rgba(248,246,240,0.15);
  color: var(--ag-bg);
}
.ag-cta-news input::placeholder { color: rgba(248,246,240,0.5); }

.ag-cta-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ag-accent);
}
.ag-cta-h {
  margin: 0;
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ag-ink);
  text-wrap: balance;
}
.ag-cta-p {
  margin: 0;
  font-size: 15px;
  color: var(--ag-muted);
  max-width: 460px;
}
.ag-cta-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.ag-cta-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--ag-line);
  background: var(--ag-bg);
  color: var(--ag-ink);
  border-radius: 100px;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.ag-cta-form input:focus { border-color: var(--ag-accent); }
.ag-cta-tiny { font-size: 12px; color: var(--ag-muted); margin-top: 4px; }
.ag-cta-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* ─── Empty state ─────────────────────────────────────────────────────────── */
.ag-empty {
  padding: 80px 32px;
  text-align: center;
  border: 1px dashed var(--ag-line);
  border-radius: var(--ag-radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.ag-empty-emoji {
  font-size: 48px;
  font-weight: 200;
  color: var(--ag-muted);
  margin-bottom: 8px;
}
.ag-empty h3 {
  margin: 0;
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.ag-empty p { margin: 0 0 16px; color: var(--ag-muted); font-size: 15px; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.ag-foot {
  background: var(--ag-ink);
  color: var(--ag-bg);
  margin-top: 64px;
  padding: 64px 32px 32px;
}
.ag-foot-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(248,246,240,0.1);
}
.ag-logo-foot { color: var(--ag-accent); }
.ag-logo-foot .ag-logo-l1 { color: var(--ag-bg); }
.ag-foot-tagline {
  margin: 16px 0 0;
  font-size: 14px;
  color: rgba(248,246,240,0.6);
  max-width: 260px;
}
.ag-foot-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ag-foot-col h5 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248,246,240,0.5);
}
.ag-foot-col a {
  font-size: 14px;
  color: var(--ag-bg);
  opacity: 0.85;
}
.ag-foot-col a:hover { opacity: 1; color: var(--ag-accent); }

.ag-foot-bot {
  max-width: 1320px;
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(248,246,240,0.5);
}

/* ─── Modal ───────────────────────────────────────────────────────────────── */
.ag-modal {
  position: fixed;
  inset: 0;
  background: rgba(14,14,20,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  animation: fadeIn 200ms ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.ag-modal-card {
  width: min(560px, 100%);
  background: var(--ag-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--ag-shadow-lg);
  animation: slideUp 240ms ease;
}
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ag-modal-head {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--ag-line);
}
.ag-modal-head h3 {
  margin: 0;
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.ag-modal-x {
  width: 32px; height: 32px;
  background: transparent;
  border: 0;
  font-size: 24px;
  color: var(--ag-muted);
  border-radius: 50%;
}
.ag-modal-x:hover { background: var(--ag-surface2); color: var(--ag-ink); }
.ag-modal-body {
  padding: 8px;
  max-height: 60vh;
  overflow-y: auto;
}
.ag-modal-city {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  border-radius: var(--ag-radius-sm);
  text-align: left;
  font-size: 15px;
  color: var(--ag-ink);
}
.ag-modal-city:hover { background: var(--ag-surface2); }
.ag-modal-city.is-active { background: color-mix(in oklab, var(--ag-accent) 15%, transparent); color: var(--ag-accent); }
.ag-modal-city span { font-size: 13px; color: var(--ag-muted); font-variant-numeric: tabular-nums; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ag-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .ag-featured { grid-template-columns: 1fr; }
  .ag-featured-img { min-height: 280px; }
  .ag-featured-body { padding: 32px; }
  .ag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ag-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ag-cities-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ag-pushkin { grid-template-columns: 1fr; padding: 40px; }
  .ag-foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ag-cta-row { grid-template-columns: 1fr; }
  .ag-nav-links { display: none; }
}
@media (max-width: 700px) {
  .ag-hero { padding: 32px 20px; }
  .ag-main { padding: 16px 20px 64px; }
  .ag-grid, .ag-grid-compact, .ag-grid-stub { grid-template-columns: 1fr; }
  .ag-cities-grid { grid-template-columns: 1fr 1fr; }
  .ag-foot-grid { grid-template-columns: 1fr; }
  .ag-h1 { font-size: 44px; }
  .ag-h2 { font-size: 28px; }
}

/* Card image placeholder — used when imageUrl is missing.
   Pastel category-tinted gradient + large emoji. Keeps cards visually consistent
   instead of falling back to an empty surface block. */
.ag-card-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f3eee5 0%, #e6dfd1 100%);
  overflow: hidden;
}
.ag-card-ph::before {
  content: "";
  position: absolute; inset: -20%;
  background: radial-gradient(60% 60% at 30% 30%, rgba(255,255,255,.55), transparent 60%);
  pointer-events: none;
}
.ag-card-ph > span {
  font-size: 56px; line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.15));
  opacity: .85;
  position: relative;
}
.ag-card-ph-concerts   { background: linear-gradient(135deg, #f6e1d0 0%, #e8b89c 100%); }
.ag-card-ph-theatre    { background: linear-gradient(135deg, #efd9e4 0%, #c6a3c2 100%); }
.ag-card-ph-shows      { background: linear-gradient(135deg, #fcecc2 0%, #e7c771 100%); }
.ag-card-ph-kids       { background: linear-gradient(135deg, #d8efe5 0%, #98d2bf 100%); }
.ag-card-ph-excursions { background: linear-gradient(135deg, #d9e6f4 0%, #9bb9d9 100%); }
.ag-card-ph-exhibitions{ background: linear-gradient(135deg, #ece4d3 0%, #c8b78f 100%); }
.ag-card-ph-standup    { background: linear-gradient(135deg, #efe2d6 0%, #cf9c75 100%); }
.ag-card-ph-sports     { background: linear-gradient(135deg, #d6eede 0%, #84c79b 100%); }
.ag-card-ph-events     { background: linear-gradient(135deg, #ede6dd 0%, #c0b29c 100%); }

/* Same placeholder logic for the big featured-card hero */
.ag-featured-img .ag-card-ph > span { font-size: 96px; }

/* === Carousel (homepage strips) === */
.ag-carousel { position: relative; margin: 0 -16px; }
.ag-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 6px 16px 18px;
}
.ag-carousel-track::-webkit-scrollbar { height: 8px; }
.ag-carousel-track::-webkit-scrollbar-thumb {
  background: rgba(21,26,34,.18);
  border-radius: 4px;
}
.ag-carousel-card-w {
  flex: 0 0 280px;
  scroll-snap-align: start;
  display: flex;
}
.ag-carousel-card-w > .ag-card { width: 100%; }
.ag-carousel-cta {
  font-size: 13px;
  color: var(--ag-accent, #c47b3a);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 4px;
}
.ag-carousel-cta:hover { text-decoration: underline; }
@media (min-width: 768px) {
  .ag-carousel-card-w { flex: 0 0 320px; }
}

/* === Hot badge === */
.ag-tag-hot {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: #fff !important;
  font-weight: 700;
  border: 0 !important;
  padding: 4px 9px;
  font-size: 11px;
  letter-spacing: .02em;
  box-shadow: 0 2px 8px rgba(255, 107, 53, .25);
}

/* === Search button in nav === */
.ag-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ag-surface2);
  border: 1px solid var(--ag-line);
  color: var(--ag-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}
.ag-search-btn:hover { background: rgba(255,255,255,.6); border-color: var(--ag-ink); }
.ag-search-btn svg { display: block; }
@media (max-width: 600px) {
  .ag-search-btn-label { display: none; }
  .ag-search-btn { padding: 7px; }
}

/* === Search overlay === */
.ag-search-overlay {
  position: fixed; inset: 0;
  background: rgba(15,18,24,.5);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  padding: 60px 16px 16px;
  align-items: flex-start; justify-content: center;
}
body.ag-search-open .ag-search-overlay { display: flex; }
body.ag-search-open { overflow: hidden; }
.ag-search-panel {
  background: var(--ag-bg, #FAF7F2);
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.ag-search-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ag-line);
}
.ag-search-input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 18px;
  color: var(--ag-ink);
  outline: 0;
  padding: 4px 0;
}
.ag-search-input::placeholder { color: var(--ag-muted); }
.ag-search-close {
  border: 0; background: transparent; font-size: 28px;
  line-height: 1; color: var(--ag-muted); cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.ag-search-close:hover { background: var(--ag-surface2); color: var(--ag-ink); }
.ag-search-results { overflow-y: auto; padding: 6px 0 12px; }
.ag-search-section-h {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ag-muted);
  padding: 10px 18px 4px;
}
.ag-search-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  text-decoration: none; color: var(--ag-ink);
  transition: background 100ms ease;
}
.ag-search-item:hover { background: var(--ag-surface2); }
.ag-search-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--ag-surface2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.ag-search-img {
  width: 56px; height: 40px;
  border-radius: 6px; overflow: hidden;
  background: var(--ag-surface2);
  flex-shrink: 0;
}
.ag-search-img img { width: 100%; height: 100%; object-fit: cover; }
.ag-search-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ag-search-title {
  font-weight: 600; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ag-search-meta { color: var(--ag-muted); font-size: 12px; }
.ag-search-count { color: var(--ag-muted); font-size: 12px; margin-left: auto; }
.ag-search-empty { color: var(--ag-muted); font-size: 14px; padding: 24px 18px; text-align: center; }

/* === Mobile bottom-nav === */
.ag-tabbar { display: none; }
@media (max-width: 700px) {
  body { padding-bottom: 64px; }
  .ag-tabbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: rgba(250,247,242,.97);
    border-top: 1px solid var(--ag-line);
    backdrop-filter: blur(10px);
    z-index: 90;
    padding: 6px 4px env(safe-area-inset-bottom);
  }
  .ag-tabbar a {
    flex: 1;
    display: flex; flex-direction: column; align-items: center;
    gap: 3px;
    padding: 6px 2px;
    color: var(--ag-ink);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
  }
  .ag-tabbar a:active { transform: scale(.95); }
  .ag-tabbar-emoji { font-size: 20px; line-height: 1; }
}
