/* SUP События — публичный сайт. Бренд: чёрный / белый / жёлтый. Mobile-first. */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F7F7F5;
  --ink: #111111;
  --yellow: #FFD426;
  --muted: #6B6B6B;
  --green: #16A34A;
  --border: #ECEAE4;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .logo, .month-title {
  font-family: 'Unbounded', 'Inter', sans-serif;
}
a { color: inherit; }
img { max-width: 100%; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- Шапка ---------- */
.site-header {
  background: var(--ink);
  color: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: .5px;
}
.logo span { color: var(--yellow); }
.tg-btn {
  background: var(--yellow);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.tg-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,212,38,.45); }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: #fff;
  padding: 34px 0 42px;
}
.hero h1 {
  font-size: clamp(28px, 5.5vw, 44px);
  line-height: 1.15;
  margin: 0 0 12px;
  max-width: 720px;
}
.hero p { color: #B9B9B9; margin: 0; max-width: 560px; font-size: 15px; }

/* ---------- Календарная лента ---------- */
.month-strip-wrap {
  background: var(--ink);
  padding-bottom: 26px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.month-strip-wrap .container { display: flex; gap: 28px; min-width: max-content; }
.month-title { color: #fff; font-size: 12px; margin-bottom: 8px; letter-spacing: .5px; }
.month-days { display: flex; gap: 3px; }
.day-cell {
  width: 26px; height: 34px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #888; font-size: 11px; text-decoration: none;
  border-radius: 8px; position: relative;
}
.day-cell .num { line-height: 1; }
.day-cell.past { color: #444; }
.day-cell.today .num { color: #fff; font-weight: 700; }
.day-cell.has-events { color: #fff; font-weight: 600; }
.day-cell.has-events .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--yellow); margin-top: 3px;
}
.day-cell.has-events:hover { background: rgba(255,212,38,.18); }
.day-cell.selected { background: var(--yellow); color: var(--ink); }
.day-cell.selected .dot { background: var(--ink); }

/* ---------- Фильтры ---------- */
.filters-bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.filters-inner { display: flex; flex-direction: column; gap: 8px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  padding: 7px 15px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  text-decoration: none;
  background: #fff;
  transition: background .15s ease;
}
.chip:hover { background: var(--bg-alt); }
.chip.active { background: var(--yellow); border-color: var(--ink); font-weight: 600; }
@media (min-width: 720px) {
  .filters-inner { flex-direction: row; justify-content: space-between; }
}

/* ---------- Лента событий ---------- */
.feed { padding: 26px 16px 60px; }
.feed-group { margin-bottom: 38px; }
.feed-group h2 { font-size: 20px; margin: 0 0 18px; }
.reset-filter { margin: 0 0 14px; font-size: 14px; }

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(17,17,17,.10); }
.card-media { position: relative; aspect-ratio: 3 / 2; background: var(--bg-alt); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.date-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 12px;
  width: 52px; height: 52px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.date-badge .day { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 19px; line-height: 1; }
.date-badge .month { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.date-badge-lg { width: 68px; height: 68px; border-radius: 14px; }
.date-badge-lg .day { font-size: 26px; }
.date-badge-lg .month { font-size: 12px; }

.cancel-ribbon {
  position: absolute; right: 0; top: 14px;
  background: #DC2626; color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .5px;
  padding: 4px 12px; border-radius: 8px 0 0 8px;
}

.card-body { padding: 14px 16px 18px; }
.card-tags { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.tag {
  font-size: 11px; font-weight: 600;
  background: var(--bg-alt);
  border-radius: 6px; padding: 3px 8px;
  letter-spacing: .3px;
}
.tag-free { background: #E7F6EC; color: var(--green); }
.tag-price { background: var(--yellow); }
.skill-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.skill-beginner { background: var(--green); }
.skill-intermediate { background: #F59E0B; }
.skill-advanced { background: #DC2626; }
.skill-any { background: #9CA3AF; }

.card-title { font-size: 15px; margin: 0 0 6px; line-height: 1.35; }
.card-place { font-size: 13px; color: var(--muted); margin: 0; }
.card-past { opacity: .65; }
.card-past:hover { opacity: 1; }

.empty-state {
  text-align: center; padding: 60px 20px; color: var(--muted);
  background: var(--bg-alt); border-radius: var(--radius);
}
.empty-state a { color: var(--ink); font-weight: 600; }

.past-block { margin-top: 20px; }
.past-block summary {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; list-style: none; margin-bottom: 18px;
}
.past-block summary::-webkit-details-marker { display: none; }
.past-block summary h2 { font-size: 20px; margin: 0; color: var(--muted); }
.past-block summary .count {
  background: var(--bg-alt); border-radius: 999px;
  font-size: 12px; padding: 2px 10px; color: var(--muted);
}
.past-block summary::after { content: '▾'; color: var(--muted); }
.past-block[open] summary::after { content: '▴'; }

/* ---------- Страница события ---------- */
.event-page { padding: 26px 16px 60px; max-width: 760px; }
.cancelled-banner {
  background: #FEE2E2; color: #991B1B;
  border-radius: 12px; padding: 12px 18px;
  font-weight: 600; margin-bottom: 18px; text-align: center;
}
.event-hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.event-hero img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; display: block; }
.event-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.event-page h1 { font-size: clamp(24px, 4.5vw, 36px); line-height: 1.2; margin: 0 0 22px; }

.event-facts {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 20px; margin-bottom: 26px;
}
@media (min-width: 560px) { .event-facts { grid-template-columns: 1fr 1fr; } }
.fact-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 2px; }
.fact-value { font-size: 15px; font-weight: 500; }
.fact-value a { font-weight: 600; }
.free-text { color: var(--green); font-weight: 700; }
.muted { color: var(--muted); font-weight: 400; }

.event-section { margin-bottom: 24px; }
.event-section h2 { font-size: 17px; margin: 0 0 10px; }
.event-description { font-size: 16px; margin: 0; }
.distance { font-weight: 600; margin: 0 0 6px; }
.notes p { margin: 4px 0; }

.included-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.inc-chip {
  background: var(--yellow); border-radius: 999px;
  font-size: 13px; font-weight: 500; padding: 6px 14px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0; }
.btn {
  display: inline-block; text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: 999px;
  padding: 12px 22px; font-weight: 600; font-size: 14px;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--bg-alt); transform: translateY(-1px); }
.btn-primary { background: var(--yellow); }
.btn-primary:hover { background: #ffdf59; }

.shop-block {
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 16px 20px; margin: 30px 0 10px; font-size: 14px;
}
.shop-block p { margin: 0; }
.shop-block a { font-weight: 700; }
.back-link { margin-top: 26px; font-size: 14px; }
.back-link a { color: var(--muted); text-decoration: none; }
.back-link a:hover { color: var(--ink); }

/* ---------- Подвал ---------- */
.site-footer {
  background: var(--ink); color: #B9B9B9;
  padding: 36px 0; margin-top: 20px; font-size: 14px;
}
.footer-inner { display: flex; flex-direction: column; gap: 20px; }
.site-footer .logo { color: #fff; }
.footer-note { max-width: 420px; margin: 10px 0 0; font-size: 13px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--yellow); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
@media (min-width: 720px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
