/* RUS.DO — «События». Жирные плитки дат, спокойные карточки. Только токены. */
.ev-page { padding-top: var(--s-4); padding-bottom: var(--s-7); }

.ev-filter .chip { white-space: nowrap; flex: none; }
.ev-filter { display: flex; gap: var(--s-3); align-items: center; justify-content: space-between; margin-bottom: var(--s-5); }
.ev-filter .chips--scroll { flex: 1; min-width: 0; margin: 0; padding: 2px 0; }
.ev-toggle { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); flex: none; }
.ev-toggle a { padding: 6px 14px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); text-decoration: none; }
.ev-toggle a.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

.ev-banner { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); margin-bottom: var(--s-4); font-size: var(--fs-sm); background: var(--amber-50); color: var(--ink); }
.ev-banner > .i { color: var(--amber); flex: none; }
.ev-banner--hidden { background: var(--coral-50); }
.ev-banner--hidden > .i { color: var(--coral-600); }

.ev-month + .ev-month { margin-top: var(--s-6); }
.ev-month__h { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; margin-bottom: var(--s-3); }
.ev-month__h::first-letter { text-transform: uppercase; }
.ev-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }

/* Плитка даты */
.ev-date { display: grid; justify-items: center; align-content: center; width: 64px; height: 72px; border-radius: 14px; background: var(--teal-50); color: var(--teal-600); flex: none; line-height: 1; }
.ev-date__m { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ev-date__d { font-size: 28px; font-weight: 800; color: var(--ink); margin: 3px 0 2px; letter-spacing: -.02em; }
.ev-date__w { font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-transform: lowercase; }
.ev-date--big { width: 84px; height: 96px; border-radius: 18px; }
.ev-date--big .ev-date__d { font-size: 38px; }
.ev-date--big .ev-date__m { font-size: 13.5px; }

/* Карточка */
.ev-card { position: relative; display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-4); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.ev-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.ev-card__body { flex: 1; min-width: 0; display: grid; gap: var(--s-2); }
.ev-card h3 { font-size: var(--fs-md); line-height: 1.3; }
.ev-card h3 a { color: var(--ink); text-decoration: none; }
.ev-card h3 a::after { content: ""; position: absolute; inset: 0; }
.ev-card h3 a:hover { color: var(--teal-600); }
.ev-card__cover { width: 88px; height: 88px; border-radius: var(--r-sm); object-fit: cover; flex: none; }
.ev-card--past { opacity: .78; }
.ev-card--past .ev-date { background: var(--surface-2); color: var(--ink-3); }
.ev-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-sm); color: var(--ink-3); }
.ev-meta li { display: inline-flex; gap: 5px; align-items: center; }
.ev-going { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.ev-going--none { font-weight: 500; color: var(--ink-3); }
.ev-faces { display: inline-flex; }
.ev-faces .ava { border: 2px solid var(--surface); box-sizing: content-box; }
.ev-faces .ava + .ava { margin-left: -9px; }

/* Детальная */
.ev-detail { margin-top: var(--s-4); }
.ev-main { display: grid; gap: var(--s-4); min-width: 0; }
.ev-cover-img { width: 100%; height: auto; aspect-ratio: 12 / 5; object-fit: cover; border-radius: var(--r); background: var(--surface-3); }
.ev-head { display: flex; gap: var(--s-5); align-items: flex-start; }
.ev-head__t { min-width: 0; display: grid; gap: var(--s-3); justify-items: start; }
.ev-head h1 { font-size: var(--fs-2xl); line-height: 1.15; }
.ev-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.ev-facts li { display: flex; gap: var(--s-2); align-items: flex-start; color: var(--ink-2); }
.ev-facts li > .i { color: var(--teal-600); margin-top: 3px; flex: none; }
.ev-facts span { display: grid; gap: 2px; }
.ev-facts small { font-size: var(--fs-xs); color: var(--ink-3); }
.ev-facts a { font-size: var(--fs-sm); color: var(--teal-600); overflow-wrap: anywhere; }
.ev-sec h2 { font-size: var(--fs-lg); margin-bottom: var(--s-3); }

.ev-people { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.ev-people a, .ev-people li > span { display: grid; justify-items: center; gap: 4px; width: 60px; font-size: 12px; color: var(--ink-2); text-decoration: none; text-align: center; }
.ev-people a span, .ev-people li > span > span { max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-people__more { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--ink-2); }

.ev-side__in { display: grid; gap: var(--s-4); }
.ev-rsvp { display: grid; gap: var(--s-3); }
.ev-gobtn.is-on { background: var(--teal); box-shadow: none; }
.ev-gobtn.is-on:hover { background: var(--teal-600); }
.ev-rsvp__n { text-align: center; font-size: var(--fs-sm); color: var(--ink-3); }
.ev-rsvp__n b { color: var(--ink); }
.ev-rsvp__tools { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.ev-rsvp__tools .btn { padding: 0 8px; }
.ev-rsvp__tools .is-on { border-color: var(--teal); color: var(--teal-600); }
.ev-org h2 { font-size: var(--fs-md); margin-bottom: var(--s-3); }
.ev-org__row { display: flex; gap: var(--s-3); align-items: center; }
.ev-org__row .ulink { font-weight: 600; }
.ev-org__meta { display: flex; gap: var(--s-2); align-items: center; margin-top: 4px; font-size: var(--fs-xs); }
.ev-org__bio { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--ink-2); }
.ev-report { justify-self: start; display: inline-flex; gap: 6px; align-items: center; font-size: var(--fs-xs); color: var(--ink-3); }

/* Форма */
.ev-form__when { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-4); }
.ev-form__when .field { margin-bottom: var(--s-2); }
.ev-form__tz { display: flex; gap: 6px; align-items: center; margin-bottom: var(--s-4); }
.ev-covers { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-2); }
.ev-cover { position: relative; display: grid; gap: 4px; cursor: pointer; font-size: 12.5px; color: var(--ink-2); text-align: center; }
.ev-cover input { position: absolute; opacity: 0; pointer-events: none; }
.ev-cover img, .ev-cover--none span { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xs); border: 2px solid transparent; }
.ev-cover--none span { display: grid; place-items: center; background: var(--surface-2); border: 2px dashed var(--line-2); }
.ev-cover:has(input:checked) img, .ev-cover--none:has(input:checked) span { border: 2px solid var(--teal); box-shadow: 0 0 0 3px var(--teal-50); }
.ev-cover:has(input:checked) { color: var(--teal-600); font-weight: 600; }
.ev-cover:has(input:focus-visible) { outline: 2.5px solid var(--focus); outline-offset: 2px; border-radius: var(--r-xs); }

@media (max-width: 1024px) {
  .ev-detail { grid-template-columns: 1fr; }
  .ev-side .sticky { position: static; }

}
@media (max-width: 860px) {
  .ev-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ev-page { padding-top: var(--s-2); }
  .ev-filter { flex-wrap: wrap; }
  .ev-filter .chips--scroll { flex-basis: calc(100% + 2 * var(--s-4)); margin: 0 calc(-1 * var(--s-4)); padding: 2px var(--s-4); }
  .ev-card { gap: var(--s-3); padding: var(--s-3); }
  .ev-date { width: 56px; height: 64px; }
  .ev-date__d { font-size: 24px; }
  .ev-card__cover { width: 64px; height: 64px; }
  .ev-head { flex-direction: column; gap: var(--s-3); padding: var(--s-4); }
  .ev-head h1 { font-size: 25px; }
  .ev-date--big { flex-direction: row; display: inline-flex; width: auto; height: auto; padding: 8px 14px; gap: 8px; align-items: baseline; }
  .ev-date--big .ev-date__d { font-size: 26px; margin: 0; }
  .ev-form__when { grid-template-columns: 1fr 1fr; }
  .ev-form__when .field:first-child { grid-column: 1 / -1; }
  .ev-covers { grid-template-columns: repeat(3, 1fr); }
  .ev-cover-img { border-radius: var(--r-sm); aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) { .ev-date--big .ev-date__d { order: -1; } }
