/* «Головні події» — слайдер над списком подій. Компонент: /assets/events-featured.js. Рішення Мирослава 02.12.2026. */
.evf { position: relative; margin: 0 0 44px; background: #14283d; color: #fff; overflow: hidden; touch-action: pan-y; }
.evf-slides { position: relative; height: 440px; }
.evf-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.evf-slide.is-active { opacity: 1; visibility: visible; transition: opacity .5s ease, visibility 0s; }
.evf-photo { position: absolute; inset: 0 0 0 30%; }
.evf-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.evf-photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #14283d 0%, rgba(20,40,61,.85) 22%, rgba(20,40,61,.15) 60%, rgba(20,40,61,0) 100%); }
.evf-body { position: relative; z-index: 1; max-width: 560px; padding: 54px 0 0 56px; }
.evf-kicker { margin: 0; color: #e7a49c; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.evf-title { margin: 14px 0; color: #fff; font: 400 clamp(28px, 3vw, 38px)/1.12 var(--serif); text-wrap: balance; }
.evf-meta { margin: 0; color: rgba(255,255,255,.84); font: 400 15px/1.5 var(--sans); }
.evf-more { display: inline-block; margin-top: 24px; padding: 12px 20px; border: 1px solid #fff; color: #fff; font: 700 12px/1 var(--sans);
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s; }
.evf-more:hover { background: #fff; color: #14283d; }
.evf-nav { position: absolute; z-index: 2; left: 56px; bottom: 28px; display: flex; align-items: center; gap: 10px; }
.evf-arrow, .evf-pause { width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255,255,255,.6); background: transparent; color: #fff;
  font: 400 20px/1 var(--sans); cursor: pointer; }
.evf-pause { font-size: 11px; letter-spacing: -.05em; margin-left: 4px; }
.evf-arrow:hover, .evf-pause:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.evf-dots { display: flex; gap: 4px; margin-left: 10px; }
.evf-dot { width: 30px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.evf-dot::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 3px; margin-top: -1.5px; background: rgba(255,255,255,.35); }
.evf-dot.is-active::before { background: #fff; }
.evf-count { margin-left: 6px; color: rgba(255,255,255,.72); font: 500 12px/1 var(--mono); }
.evf :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 900px) { .evf-photo { left: 20%; } .evf-body { max-width: 480px; padding-left: 36px; } .evf-nav { left: 36px; } }
@media (max-width: 640px) {
  .evf { margin-bottom: 32px; }
  .evf-slides { height: auto; display: grid; }
  .evf-slide { position: relative; grid-area: 1 / 1; }
  .evf-photo { position: relative; inset: auto; height: 56vw; }
  .evf-photo::after { background: linear-gradient(0deg, #14283d 0%, rgba(20,40,61,0) 45%); }
  .evf-body { max-width: none; padding: 4px 20px 84px; }
  .evf-title { font-size: 24px; }
  .evf-meta { font-size: 14px; }
  .evf-nav { left: 20px; right: 20px; bottom: 22px; gap: 8px; }
  .evf-arrow, .evf-pause { flex: none; }
  .evf-dots { margin-left: 4px; min-width: 0; }
  .evf-dot { width: 20px; flex: none; }
  .evf-count { display: none; }
  .evf-pause { margin-left: auto; }
}
@media (max-width: 400px) {
  .evf-nav { gap: 6px; }
  .evf-arrow, .evf-pause { width: 36px; height: 36px; }
  .evf-dots { gap: 2px; margin-left: 2px; }
  .evf-dot { width: 16px; }
  .evf-dot::before { left: 2px; right: 2px; }
}
@media (prefers-reduced-motion: reduce) { .evf-slide, .evf-slide.is-active, .evf-more { transition: none; } }
