.evm-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(17,19,21,0.8); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); padding: 0.5rem; }
  @media (min-width: 768px) { .evm-overlay { padding: 1.5rem; } }
  .evm-panel { position: relative; display: flex; flex-direction: column; overflow: hidden; width: 100%; max-width: 1280px; height: 96vh; background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0) 45%), linear-gradient(160deg, #25292e, #191c20); border: 1px solid rgba(214,217,222,0.35); box-shadow: 0 24px 80px rgba(0,0,0,0.6); }
  @media (min-width: 768px) { .evm-panel { height: 88vh; } }
  .evm-close { position: absolute; right: 0.75rem; top: 0.75rem; z-index: 20; display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid rgba(214,217,222,0.4); background: rgba(17,19,21,0.8); color: #fff; cursor: pointer; transition: background-color 0.2s; }
  .evm-close:hover { background: #c8102e; }
  @media (min-width: 768px) { .evm-close { right: 1.25rem; top: 1.25rem; } }
  .evm-scroll { overflow-y: auto; overscroll-behavior: contain; }

  .evm-header { position: relative; overflow: hidden; border-bottom: 1px solid rgba(214,217,222,0.2); padding: 4rem 1.25rem 2.5rem; }
  @media (min-width: 768px) { .evm-header { padding: 3rem 2.5rem 3.5rem; } }
  .evm-watermark { position: absolute; right: -0.5rem; top: -3.5rem; font-family: var(--font-display); font-size: 13rem; font-weight: 700; line-height: 1; color: rgba(255,255,255,0.035); pointer-events: none; }
  @media (min-width: 768px) { .evm-watermark { right: 1.75rem; font-size: 19rem; } }
  .evm-accent-line { position: absolute; bottom: 0; left: 0; height: 0.25rem; width: 50%; background: #c8102e; }
  .evm-eyebrow { position: relative; font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; color: #c8102e; }
  .evm-header-grid { position: relative; margin-top: 1.25rem; display: grid; gap: 2.5rem; }
  @media (min-width: 1024px) { .evm-header-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; } }
  .evm-title { font-family: var(--font-display); font-size: 3rem; font-weight: 800; line-height: 0.92; letter-spacing: -0.035em; color: #fff; }
  @media (min-width: 768px) { .evm-title { font-size: 4.5rem; } }
  .evm-lead { margin-top: 1.5rem; max-width: 42rem; font-size: 1rem; line-height: 1.625; color: #d6d9de; }
  @media (min-width: 768px) { .evm-lead { font-size: 1.125rem; } }
  .evm-meta-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: rgba(214,217,222,0.2); }
  @media (min-width: 640px) { .evm-meta-grid { grid-template-columns: 1fr 1fr; } }
  .evm-meta-cell { background: rgba(25,28,32,0.95); padding: 1rem; }
  @media (min-width: 768px) { .evm-meta-cell { padding: 1.25rem; } }
  .evm-meta-icon { color: #214a8f; margin-bottom: 1rem; }
  .evm-meta-label { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; color: #717984; }
  .evm-meta-text { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.625; color: #fff; white-space: pre-line; }

  .evm-body { padding: 2.5rem 1.25rem; }
  @media (min-width: 768px) { .evm-body { padding: 3.5rem 2.5rem; } }
  .evm-body > * + * { margin-top: 3.5rem; }
  @media (min-width: 768px) { .evm-body > * + * { margin-top: 5rem; } }
  .evm-h { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.05; color: #fff; }
  @media (min-width: 768px) { .evm-h { font-size: 1.875rem; } }
  .evm-h .accent { color: #c8102e; }
  .evm-para { margin-top: 1.25rem; max-width: 48rem; font-size: 1rem; line-height: 1.625; color: #d6d9de; }

  .evm-tasks { margin-top: 2rem; display: grid; border-left: 1px solid rgba(214,217,222,0.2); border-top: 1px solid rgba(214,217,222,0.2); }
  @media (min-width: 640px) { .evm-tasks { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1024px) { .evm-tasks { grid-template-columns: 1fr 1fr 1fr; } }
  .evm-task { border-bottom: 1px solid rgba(214,217,222,0.2); border-right: 1px solid rgba(214,217,222,0.2); padding: 1rem; }
  @media (min-width: 768px) { .evm-task { padding: 1.25rem; } }
  .evm-task-num { font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; color: #c8102e; }
  .evm-task-text { margin-top: 1.25rem; font-size: 0.875rem; line-height: 1.625; color: #d6d9de; }

  .evm-dgrid { margin-top: 2rem; display: grid; gap: 2rem; }
  @media (min-width: 1024px) { .evm-dgrid { grid-template-columns: 1.2fr 0.8fr; } }
  .evm-dl-label { margin-bottom: 0.75rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; color: #c8102e; }
  .evm-dl { border-top: 1px solid rgba(214,217,222,0.25); }
  .evm-dl-row { display: grid; grid-template-columns: 3.5rem 1fr; border-bottom: 1px solid rgba(214,217,222,0.2); padding: 1rem 0; }
  .evm-dl-num { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: #214a8f; }
  .evm-dl-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: #fff; }
  .evm-dl-extra { margin-top: 0.25rem; font-size: 0.875rem; color: #717984; }
  .evm-note { border-left: 2px solid #c8102e; background: rgba(17,19,21,0.45); padding: 1.25rem; }
  .evm-note-blue { border-left: 2px solid #214a8f; background: rgba(17,19,21,0.45); padding: 1.25rem; }
  .evm-note-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; color: #c8102e; }
  .evm-note-label-cold { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.13em; color: #717984; }
  .evm-note-list { margin-top: 1.25rem; list-style: none; }
  .evm-note-list li { font-size: 0.875rem; line-height: 1.625; color: #d6d9de; margin-top: 0.75rem; }

  .evm-prog-grid { display: grid; gap: 2.5rem; }
  @media (min-width: 1024px) { .evm-prog-grid { grid-template-columns: 0.85fr 1.15fr; } }
  .evm-sched { border-left: 1px solid rgba(214,217,222,0.3); }
  .evm-sched-row { position: relative; display: grid; grid-template-columns: 5.25rem 1fr; gap: 1.25rem; border-bottom: 1px solid rgba(214,217,222,0.15); padding: 1rem 0 1rem 1.25rem; }
  .evm-sched-row::before { content: ''; position: absolute; left: -0.25rem; top: 1.65rem; width: 0.5rem; height: 0.5rem; background: #214a8f; }
  .evm-sched-time { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: #fff; }
  .evm-sched-time.accent { color: #c8102e; }
  .evm-sched-item { padding-top: 0.25rem; font-size: 0.875rem; color: #d6d9de; }
  .evm-sched-item.strong { color: #fff; }

  .evm-who-grid { display: grid; gap: 2rem; }
  @media (min-width: 1024px) { .evm-who-grid { grid-template-columns: 1fr 1fr; } }
  .evm-who-para { margin-top: 1.5rem; font-size: 1rem; line-height: 1.625; color: #d6d9de; }
  .evm-who-para + .evm-who-para { margin-top: 1rem; }
  .evm-team-num { margin-top: 1rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; }
  .evm-team-num.red { color: #c8102e; }
  .evm-team-sub { font-size: 0.875rem; font-weight: 500; color: #d6d9de; }
  .evm-warn { margin-top: 1rem; border: 1px solid rgba(200,16,46,0.5); padding: 1rem; font-size: 0.875rem; line-height: 1.625; color: #d6d9de; }

  .evm-apply { border: 1px solid rgba(200,16,46,0.65); background: rgba(17,19,21,0.55); padding: 1.25rem; scroll-margin-top: 1.5rem; }
  @media (min-width: 768px) { .evm-apply { padding: 2rem; } }
  .evm-apply-grid { margin-top: 1.75rem; display: grid; gap: 2rem; }
  @media (min-width: 1024px) { .evm-apply-grid { grid-template-columns: 1fr 1fr; } }
  .evm-mail { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.75rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; color: #fff; text-decoration: none; }
  .evm-mail:hover { color: #c8102e; }
  .evm-contact { margin-top: 1.25rem; font-size: 0.875rem; line-height: 1.625; color: #717984; }
  .evm-tel { margin-top: 1.25rem; display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: #d6d9de; text-decoration: none; }
  .evm-tel:hover { color: #fff; }
  .evm-req-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.13em; color: #717984; }
  .evm-req-list { margin-top: 1rem; list-style: none; }
  .evm-req-list li { font-size: 0.875rem; line-height: 1.625; color: #d6d9de; margin-top: 0.5rem; }

  .evm-org-grid { display: grid; gap: 2rem; }
  @media (min-width: 1024px) { .evm-org-grid { grid-template-columns: 1fr 1fr; } }
  .evm-org-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: #fff; }
  .evm-org-block { margin-top: 1.25rem; }
  .evm-org-block p { font-size: 0.875rem; line-height: 1.625; color: #717984; margin-top: 1rem; }
  .evm-org-block strong { font-weight: 600; color: #d6d9de; }

  .evm-cta { position: relative; overflow: hidden; border-top: 1px solid rgba(214,217,222,0.25); background: #25292e; padding: 2.5rem 1.25rem; }
  @media (min-width: 768px) { .evm-cta { padding: 2.5rem 2rem; } }
  .evm-cta-inner { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.75rem; }
  @media (min-width: 768px) { .evm-cta-inner { flex-direction: row; align-items: flex-end; } }
  .evm-cta-title { font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; line-height: 1.02; color: #fff; }
  .evm-cta-sub { margin-top: 1rem; font-size: 0.875rem; color: #d6d9de; }
  .evm-cta-btns { display: flex; flex-direction: column; gap: 0.75rem; }
  @media (min-width: 640px) { .evm-cta-btns { flex-direction: row; } }

  .evm-badge { margin-bottom: 1.25rem; display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid rgba(214,217,222,0.3); background: rgba(25,28,32,0.8); padding: 0.375rem 0.75rem; }
  .evm-badge span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; color: #717984; }
  .evm-finished-num { margin-top: 2rem; display: inline-block; border-left: 2px solid #214a8f; background: rgba(17,19,21,0.45); padding: 1.25rem 1.75rem; }
  .evm-finished-count { margin-top: 0.5rem; font-family: var(--font-display); font-size: 3rem; font-weight: 800; line-height: 1; color: #fff; }
  .evm-regions { margin-top: 1.25rem; border-top: 1px solid rgba(214,217,222,0.2); }
  .evm-region { border-bottom: 1px solid rgba(214,217,222,0.15); padding: 1rem 0 1rem 1.25rem; }
  .evm-region::before { content: '—'; margin-right: 0.75rem; color: #717984; }
  .evm-region span { font-size: 0.875rem; line-height: 1.625; color: #d6d9de; }
  .evm-gallery-track { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.75rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .evm-gallery-track::-webkit-scrollbar { height: 6px; }
  .evm-gallery-track::-webkit-scrollbar-thumb { background: rgba(214,217,222,0.25); }
  .evm-gallery-img { height: 12rem; width: auto; object-fit: cover; border: 1px solid rgba(214,217,222,0.2); scroll-snap-align: start; flex-shrink: 0; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
  @media (max-width: 640px) { .evm-gallery-img { height: 9rem; } }
  /* Просмотрщик фото (лайтбокс поверх модалки) */
  .evm-viewer { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; background: rgba(9, 11, 13, 0.92); padding: 1rem; }
  .evm-viewer-stage { position: relative; display: flex; align-items: center; gap: 1rem; }
  .evm-viewer-frame { position: relative; display: flex; align-items: center; justify-content: center; }
  .evm-viewer-img { display: block; max-width: calc(100vw - 10rem); max-height: calc(100vh - 6rem); object-fit: contain; background: #000; border: 1px solid rgba(214,217,222,0.25); }
  .evm-viewer-nav { display: flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; border: 1px solid rgba(214,217,222,0.35); background: rgba(17, 19, 21, 0.75); color: #d6d9de; font-size: 1.9rem; line-height: 1; cursor: pointer; transition: background-color 0.2s; flex-shrink: 0; }
  .evm-viewer-nav:hover:not(:disabled) { background: rgba(214, 217, 222, 0.15); }
  .evm-viewer-nav:disabled { opacity: 0.25; pointer-events: none; }
  .evm-viewer-close { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid rgba(214, 217, 222, 0.4); background: rgba(17, 19, 21, 0.8); color: #fff; cursor: pointer; transition: background-color 0.2s; }
  .evm-viewer-close:hover { background: rgba(214, 217, 222, 0.15); }
  .evm-viewer-zone { position: absolute; top: 0; bottom: 0; width: 40%; border: 0; background: transparent; cursor: pointer; opacity: 0; }
  .evm-viewer-zone.prev { left: 0; }
  .evm-viewer-zone.next { right: 0; }
  .evm-viewer-zone:not(:disabled):hover { opacity: 1; }
  .evm-viewer-zone.prev:not(:disabled):hover::after { content: '‹'; position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); font-size: 2.5rem; color: rgba(255, 255, 255, 0.6); }
  .evm-viewer-zone.next:not(:disabled):hover::after { content: '›'; position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); font-size: 2.5rem; color: rgba(255, 255, 255, 0.6); }
  .evm-viewer-zone:disabled { opacity: 0; pointer-events: none; }
  .evm-viewer-count { position: absolute; left: 0; right: 0; bottom: 1rem; text-align: center; font-size: 0.8rem; color: rgba(214, 217, 222, 0.85); pointer-events: none; }
  @media (max-width: 640px) {
    .evm-viewer-nav { display: none; }
    .evm-viewer-frame { max-width: calc(100vw - 2rem); }
    .evm-viewer-img { max-width: calc(100vw - 2rem); max-height: calc(100vh - 5rem); }
    .evm-viewer-zone { width: 50%; }
  }
  .evm-finished-cta { position: relative; overflow: hidden; border-top: 1px solid rgba(214,217,222,0.25); background: #25292e; padding: 2rem 1.25rem; }
  @media (min-width: 768px) { .evm-finished-cta { padding: 2rem; } }
  .evm-finished-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
  .evm-finished-cta-text { font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1.2; color: rgba(214,217,222,0.7); }
  .evm-finished-cta-text span { color: #717984; font-weight: 400; font-size: 0.875rem; }
  .evm-close-ghost { border: 1px solid rgba(214,217,222,0.3); padding: 0.625rem 1.5rem; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; color: #d6d9de; background: transparent; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
  .evm-close-ghost:hover { border-color: #fff; color: #fff; }
  .evm-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 1.75rem; overflow: hidden; transition: color 0.3s, background-color 0.3s, border-color 0.3s; font-family: var(--font-display); cursor: pointer; user-select: none; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; border: none; }
  .evm-btn.outline { border: 1px solid rgba(214,217,222,0.5); color: #fff; background: transparent; }
  .evm-btn.outline:hover { border-color: #fff; }
  .evm-btn.solid { background: #c8102e; color: #fff; }
  .evm-btn.solid:hover { background: #a00d24; }

/* ===== Диалог подтверждения (рисует static/calendar.js; нужен и на главной, и в админке) ===== */
  .evc-confirm { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; background: rgba(9, 11, 13, 0.9); padding: 1rem; }
  .evc-confirm-box { width: 100%; max-width: 26rem; padding: 1.75rem; background: linear-gradient(160deg, #25292e, #191c20); border: 1px solid rgba(214, 217, 222, 0.35); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); }
  .evc-confirm-title { font-family: var(--font-display, inherit); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #ffffff; }
  .evc-confirm-text { margin-top: 0.75rem; font-size: 0.9rem; line-height: 1.6; color: rgba(214, 217, 222, 0.75); }
  .evc-confirm-actions { margin-top: 1.75rem; display: flex; gap: 0.75rem; justify-content: flex-end; flex-wrap: wrap; }
  .evc-confirm-yes, .evc-confirm-no { padding: 0.8rem 1.4rem; border: none; font-family: inherit; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); transition: background-color 0.3s, color 0.3s; }
  .evc-confirm-yes { background: #C8102E; color: #ffffff; }
  .evc-confirm-yes:hover { background: #8F1327; }
  .evc-confirm-no { background: rgba(214, 217, 222, 0.14); color: #d6d9de; }
  .evc-confirm-no:hover { background: rgba(214, 217, 222, 0.24); color: #ffffff; }
  /* Необязательный выбор из списка внутри диалога (напр. дисциплина при записи на мероприятие) */
  .evc-confirm-field { margin-top: 1.25rem; }
  .evc-confirm-select { width: 100%; padding: 0.75rem 0.85rem; font-family: inherit; font-size: 0.9rem; color: #d6d9de; background: rgba(15, 17, 21, 0.7); border: 1px solid rgba(214, 217, 222, 0.25); outline: none; }
  .evc-confirm-select:focus { border-color: #C8102E; }
  /* Список с поиском внутри диалога (выбор дисциплины для рейтинга и т.п.) */
  .evc-confirm-search, .evc-confirm-note { width: 100%; padding: 0.7rem 0.85rem; font-family: inherit; font-size: 0.9rem; color: #d6d9de; background: rgba(15, 17, 21, 0.7); border: 1px solid rgba(214, 217, 222, 0.25); outline: none; }
  .evc-confirm-search:focus, .evc-confirm-note:focus { border-color: #C8102E; }
  .evc-confirm-list { max-height: 230px; margin-top: 0.5rem; overflow-y: auto; border: 1px solid rgba(214, 217, 222, 0.18); }
  .evc-confirm-item { display: block; width: 100%; padding: 0.65rem 0.85rem; text-align: left; font-family: inherit; font-size: 0.88rem; color: #d6d9de; background: transparent; border: none; border-bottom: 1px solid rgba(214, 217, 222, 0.1); cursor: pointer; }
  .evc-confirm-item:last-child { border-bottom: none; }
  .evc-confirm-item:hover { background: rgba(214, 217, 222, 0.08); color: #ffffff; }
  .evc-confirm-item.active { background: rgba(200, 16, 46, 0.2); color: #ffffff; font-weight: 600; }
  .evc-confirm-empty { padding: 0.75rem 0.85rem; font-size: 0.85rem; color: rgba(214, 217, 222, 0.6); }
