/* Мероприятия (11.11.2026): список-карточки, большая карточка мероприятия, форма модератора.
   Отдельный файл, чтобы не задевать общий site.css. Подключается только на страницах мероприятий. */

.ev-band { padding-bottom: 24px; }
.cab-band > .wrap.ev-band-wrap { padding-bottom: 0; }
.ev-head { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: flex-end; justify-content: space-between; }
.ev-head h1 { font-size: clamp(28px, 3.4vw, 40px); }
.ev-head .cab-sub { max-width: 640px; margin-top: 8px; }
.ev-head-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* полоса: подписка + модератор */
.ev-strip { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.ev-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 20px 22px; border-radius: 16px;
  background: linear-gradient(120deg, #0E6B38 0%, #138A48 60%, #2FA466 100%); color: #E6F5EC; }
.ev-sub h2 { color: #fff; font-size: 19px; }
.ev-sub p { font-size: 14px; color: #CFEBD9; margin-top: 4px; line-height: 1.45; }
.ev-sub .grow { flex: 1 1 260px; }
.ev-sub form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ev-sub .segc { background: rgba(255,255,255,.14); }
.ev-sub .segc span { color: #E6F5EC; padding: 0 14px; }
.ev-sub .segc input:checked + span { background: #fff; color: var(--green-d); }
.ev-sub .btn-light:hover { background: var(--green-t); }
.ev-sub .on-line { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.ev-mod { display: flex; flex-direction: column; gap: 10px; justify-content: center; padding: 20px 22px; border-radius: 16px;
  background: var(--orange-t); border: 1px solid #F3D3BD; color: var(--orange-ink); }
.ev-mod h2 { font-size: 17px; color: var(--orange-ink); }
.ev-mod p { font-size: 14px; line-height: 1.45; }
.ev-mod .row { gap: 8px; }

/* фильтры */
.ev-filters { display: flex; flex-wrap: wrap; gap: 8px 8px; align-items: center; }
.ev-filters .sep { width: 1px; height: 24px; background: var(--line); margin: 0 6px; }
.ev-filters .chip { height: 34px; font-size: 14px; }
.ev-filters .chip-on { color: var(--green-d); font-weight: 600; border-color: var(--green); }

/* сетка карточек */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.ev-card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; color: var(--ink); transition: box-shadow .15s, transform .15s, border-color .15s; }
.ev-card:hover { box-shadow: var(--shadow); border-color: #C6E6D1; transform: translateY(-2px); color: var(--ink); }
.ev-card .ev-cover { aspect-ratio: 16 / 9; }
.ev-card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1 1 auto; }
.ev-card h3 { font-size: 18px; line-height: 1.3; }
.ev-card .ev-lead { font-size: 14px; color: var(--ink2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev-card-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ev-card-foot .more { font-weight: 700; color: var(--green-d); font-size: 14px; }
.ev-where { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink2); }

/* обложка: картинка или цветная заглушка по типу мероприятия */
.ev-cover { position: relative; display: block; width: 100%; overflow: hidden; background: #0E6B38; }
.ev-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ev-cover .ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 18px;
  color: rgba(255,255,255,.95); font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.ev-cover .ph svg { position: absolute; right: -14px; top: -14px; opacity: .16; }
.ev-k-conf .ph { background: linear-gradient(135deg, #0C1F15 0%, #0E6B38 70%, #2FA466 100%); }
.ev-k-webinar .ph { background: linear-gradient(135deg, #0E5E33 0%, #138A48 55%, #4FD488 100%); }
.ev-k-training .ph { background: linear-gradient(135deg, #9A4210 0%, #E8833F 65%, #F3B07F 100%); }
.ev-k-course .ph { background: linear-gradient(135deg, #1D3A5C 0%, #2E6FA3 60%, #74B3E0 100%); }
.ev-k-meetup .ph { background: linear-gradient(135deg, #4B2A6B 0%, #7E4FB0 60%, #B892E0 100%); }
.ev-date { position: absolute; left: 14px; top: 14px; display: flex; flex-direction: column; align-items: center; min-width: 58px;
  padding: 6px 8px 7px; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 6px 16px rgba(15,31,23,.18); line-height: 1; }
.ev-date b { font-family: var(--display); font-size: 24px; font-weight: 800; }
.ev-date span { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--orange-d); margin-top: 3px; letter-spacing: .04em; }
.ev-date i { font-style: normal; font-size: 11px; color: var(--muted); margin-top: 3px; }

/* метки */
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-tag { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 3px 9px; border-radius: 12px; font-size: 12px;
  font-weight: 700; line-height: 1.35; background: var(--grey-t); color: var(--grey-d); max-width: 100%; }   /* длинная цена переносится, а не уходит за край (12.11.2026) */
.ev-tag.kind { background: var(--green-t); color: var(--green-d); }
.ev-tag.free { background: #E3F3E8; color: #0E6B38; }
.ev-tag.paid { background: var(--orange-t); color: var(--orange-d); }
.ev-tag.going { background: var(--green-d); color: #fff; }
.ev-tag.cancel { background: #F7E9E4; color: #A3341B; }
.ev-tag.draft { background: #FFF4CC; color: #6B5300; }
.ev-tag.applied { background: #FFE8CC; color: #7A3E00; }
.ev-wait-n { color: var(--orange-d); font-weight: 700; }
.ev-tag.hidden { background: var(--dark); color: #fff; }

/* большая карточка */
.ev-hero { position: relative; border-radius: 22px; overflow: hidden; background: var(--dark); color: #fff; min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end; margin-top: 24px; }
.ev-hero .ev-cover { position: absolute; inset: 0; height: 100%; }
.ev-hero .ev-cover .ph { font-size: 0; }
.ev-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,31,21,0) 25%, rgba(12,31,21,.86) 100%); }
.ev-hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; padding: 28px 32px 30px; max-width: 900px; }
.ev-hero h1 { color: #fff; font-size: clamp(28px, 3.6vw, 46px); text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.ev-hero .sub { font-size: 17px; color: #E6F5EC; line-height: 1.5; }
.ev-hero .ev-tag { background: rgba(255,255,255,.92); }
.ev-hero .ev-tag.going { background: var(--green); color: #fff; }
.ev-hero .ev-tag.cancel { background: #F7E9E4; }
.ev-hero.has-cover { min-height: clamp(320px, 38vw, 480px); }

/* ПК: слева карточка, справа запись и под ней подписка. Телефон: запись, карточка, подписка — по порядку в коде. */
.ev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto 1fr;
  grid-template-areas: "main book" "main extra"; gap: 24px; align-items: start; margin-top: 24px; }
.ev-main { grid-area: main; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ev-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ev-side-book { grid-area: book; }
.ev-side-extra { grid-area: extra; }
.ev-section { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.ev-section > h2 { font-size: 22px; }
.ev-section .prose { gap: 12px; font-size: 16px; }
.ev-section .prose h3 { font-size: 18px; margin-top: 6px; }
.ev-invite { border-top: 5px solid var(--orange); }
.ev-invite .prose p:first-child { font-size: 18px; line-height: 1.6; color: var(--ink); }
.ev-lead-big { font-size: 18px; line-height: 1.6; color: var(--ink2); }

.ev-book { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.ev-price { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.ev-price.free { color: var(--green-d); }
.ev-facts { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ev-facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.ev-facts li > svg { flex-shrink: 0; color: var(--green-d); margin-top: 1px; }
.ev-facts small { display: block; font-size: 13px; color: var(--muted); }
.ev-book .btn-block { width: 100%; }
.ev-going-box { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--green-t); color: var(--green-d); font-size: 14px; }
.ev-going-box b { font-size: 15px; }
/* 11.11.2026: запись — заявка. Ждёт решения / отклонена */
.ev-wait-box { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #FFF4E5; color: #6B3A0E; font-size: 14px; }
.ev-wait-box b { font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.ev-no-box { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 12px; background: #F4F4F2; color: var(--ink2); font-size: 14px; }
.ev-no-box b { font-size: 15px; color: var(--ink); }
.ev-join { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 12px; background: var(--dark); color: #D5E6DB; font-size: 14px; }
.ev-join a.btn { white-space: normal; height: auto; min-height: 44px; }
.ev-pay { padding: 14px 16px; border-radius: 12px; background: var(--orange-t); color: var(--orange-ink); font-size: 14px; line-height: 1.5; display: flex; flex-direction: column; gap: 8px; }
.ev-pay .prose { gap: 8px; line-height: 1.5; }

.ev-files { display: flex; flex-direction: column; gap: 10px; }
.ev-file { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.ev-file .ext { flex-shrink: 0; width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--green-t); color: var(--green-d); font-size: 12px; font-weight: 800; }
.ev-file .ext.pdf { background: #F7E9E4; color: #A3341B; }
.ev-file .ext.pptx, .ev-file .ext.ppt, .ev-file .ext.odp { background: var(--orange-t); color: var(--orange-d); }
.ev-file .nm { flex: 1 1 auto; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.ev-file .nm small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }

.ev-owner { border: 2px dashed #C6E6D1; background: #FAFDFB; }
.ev-people { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; max-height: 360px; overflow: auto; }
.ev-people li { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ev-people li:last-child { border-bottom: 0; }
/* команда мероприятия (совладельцы и модераторы, 11.11.2026): почта и кнопка в одну строку, на телефоне — друг под другом */
.ev-team-add .inp { flex: 1 1 240px; width: auto; }
.ev-people li > form { display: flex; flex-wrap: wrap; gap: 8px; }
/* «Добавить владельца во все мероприятия»: список с галочками */
.ev-bulk { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ev-bulk li { border-bottom: 1px solid var(--line); padding: 8px 0; }
.ev-bulk .check { align-items: flex-start; }
.ev-bulk .check input { margin-top: 3px; flex: none; }
.ev-bulk .check span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev-bulk .check small { color: var(--muted); font-size: 13px; }
/* заявки у организатора и собственная ссылка мероприятия */
.ev-reqs { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ev-req { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: 14px; }
.ev-req-msg { margin: 0; padding: 8px 12px; border-left: 3px solid var(--orange); background: var(--bg); border-radius: 0 8px 8px 0; }
.ev-req-note { flex: 1 1 200px; min-width: 0; height: 36px; }
.ev-link { padding: 14px 16px; border-radius: 12px; background: var(--green-t); }
.ev-link .inp { height: 38px; flex: 1 1 240px; min-width: 0; font-size: 14px; }
.ev-link b { display: inline-flex; align-items: center; gap: 6px; }
.ev-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; font-size: 15px; line-height: 1.45; }
.ev-banner.cancel { background: #F7E9E4; color: #8A3B22; }
.ev-banner.draft { background: #FFF4CC; color: #4D3C00; }
.ev-banner > svg { flex-shrink: 0; margin-top: 2px; }
.ev-banner .grow { display: flex; flex-direction: column; gap: 8px; }

/* боковые списки на странице списка */
.ev-mini { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ev-mini li { display: flex; gap: 12px; align-items: center; }
.ev-mini .d { flex-shrink: 0; width: 46px; text-align: center; line-height: 1.05; padding: 6px 0; border-radius: 10px; background: var(--grey-t); }
.ev-mini .d b { display: block; font-family: var(--display); font-size: 18px; }
.ev-mini .d span { font-size: 11px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ev-mini a { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.ev-mini small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }

/* форма модератора */
.ev-form .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.ev-form .three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.ev-form textarea.inp.tall { height: 220px; }
.ev-form .tip { padding: 12px 14px; border-radius: 12px; background: var(--grey-t); font-size: 13px; line-height: 1.55; color: var(--ink2); }
.ev-form .tip code { font-family: var(--mono); background: #fff; padding: 1px 5px; border-radius: 5px; font-size: 12px; }
.ev-form .cover-now { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ev-form .cover-now img { width: 200px; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.ev-form .file-edit { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.ev-form .file-edit .nm { flex: 1 1 220px; font-weight: 600; overflow-wrap: anywhere; }
.ev-form .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ev-paid-only { display: none; }
.ev-form:has(#is_paid:checked) .ev-paid-only { display: flex; }
.ev-online-only { display: flex; }
.ev-form:has(#fmt-offline:checked) .ev-online-only { display: none; }

/* цвет карточки (11.11.2026): фон заглушки обложки и шапки, акцент приглашения. Позже правил по типу — перекрывает их */
.ev-t-emerald .ph, .ev-theme.ev-t-emerald .sw { background: linear-gradient(135deg, #062B19 0%, #0E6B38 55%, #3BBE76 100%); }
.ev-t-ocean .ph, .ev-theme.ev-t-ocean .sw { background: linear-gradient(135deg, #062A45 0%, #0F5C8C 55%, #35A3D8 100%); }
.ev-t-sky .ph, .ev-theme.ev-t-sky .sw { background: linear-gradient(135deg, #1E4E8C 0%, #3A86D6 55%, #8CC8F5 100%); }
.ev-t-sunset .ph, .ev-theme.ev-t-sunset .sw { background: linear-gradient(135deg, #5A1A3C 0%, #C2452F 50%, #F2A541 100%); }
.ev-t-coral .ph, .ev-theme.ev-t-coral .sw { background: linear-gradient(135deg, #8A2B1F 0%, #E2603F 55%, #F7A88C 100%); }
.ev-t-berry .ph, .ev-theme.ev-t-berry .sw { background: linear-gradient(135deg, #4A0E33 0%, #A3245F 55%, #E7709F 100%); }
.ev-t-violet .ph, .ev-theme.ev-t-violet .sw { background: linear-gradient(135deg, #24124F 0%, #5B3AB0 55%, #A68BF0 100%); }
.ev-t-gold .ph, .ev-theme.ev-t-gold .sw { background: linear-gradient(135deg, #5A3A00 0%, #B9821A 55%, #F0CB6A 100%); }
.ev-t-graphite .ph, .ev-theme.ev-t-graphite .sw { background: linear-gradient(135deg, #111417 0%, #343C44 55%, #6E7A86 100%); }
.ev-theme.ev-t-kind .sw { background: conic-gradient(#0E6B38 0 25%, #E8833F 0 50%, #2E6FA3 0 75%, #7E4FB0 0); }
.ev-t-emerald { --ev-accent: #0E6B38; } .ev-t-ocean { --ev-accent: #0F5C8C; } .ev-t-sky { --ev-accent: #3A86D6; }
.ev-t-sunset { --ev-accent: #C2452F; } .ev-t-coral { --ev-accent: #E2603F; } .ev-t-berry { --ev-accent: #A3245F; }
.ev-t-violet { --ev-accent: #5B3AB0; } .ev-t-gold { --ev-accent: #B9821A; } .ev-t-graphite { --ev-accent: #343C44; }
.ev-invite { border-top-color: var(--ev-accent, var(--orange)); }
.ev-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.ev-theme { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px; border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer; font-size: 12px; text-align: center; line-height: 1.2; background: #fff; }
.ev-theme input { position: absolute; opacity: 0; pointer-events: none; }
.ev-theme .sw { width: 100%; height: 34px; border-radius: 8px; }
.ev-theme:has(input:checked) { border-color: var(--green-d); box-shadow: 0 0 0 2px var(--green-d) inset; font-weight: 700; }
.ev-theme:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }

/* HTML в приглашении и программе: своё оформление организатора, ничего не вылезает за карточку */
.ev-html { font-size: 16px; line-height: 1.6; color: var(--ink); overflow-x: auto; contain: paint; overflow-wrap: anywhere; }
.ev-html > div, .ev-html > section, .ev-html > figure, .ev-html > table { margin-bottom: 14px; }
.ev-html > :first-child { margin-top: 0; }
.ev-html > :last-child { margin-bottom: 0; }
.ev-html p { margin: 0 0 12px; }
.ev-html h2 { font-size: 22px; margin: 18px 0 10px; }
.ev-html h3 { font-size: 18px; margin: 16px 0 8px; }
.ev-html h4 { font-size: 16px; margin: 14px 0 6px; }
.ev-html ul, .ev-html ol { margin: 0 0 12px; padding-left: 22px; }
.ev-html li { margin: 4px 0; }
.ev-html img { max-width: 100%; height: auto; border-radius: 12px; }
.ev-html figure { margin: 0 0 12px; }
.ev-html figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.ev-html blockquote { margin: 0 0 12px; padding: 10px 16px; border-left: 4px solid var(--ev-accent, var(--green)); background: var(--bg); border-radius: 0 10px 10px 0; }
.ev-html table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 15px; }
.ev-html th, .ev-html td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.ev-html hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.ev-html mark { background: #FFF1B8; padding: 0 3px; border-radius: 3px; }

/* фото мероприятия */
.ev-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.ev-gallery.one { grid-template-columns: minmax(0, 1fr); }
.ev-gallery a { display: block; border-radius: 12px; overflow: hidden; background: var(--grey-t); }
.ev-gallery img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s; }
.ev-gallery.one img { aspect-ratio: auto; max-height: 560px; object-fit: contain; }
.ev-gallery a:hover img { transform: scale(1.03); }

/* чужое мероприятие: только анонс */
.ev-tag.ext { background: #EAF2FB; color: #1D4F86; }
.ev-ext-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #EAF2FB; color: #1D3A5C; font-size: 14px; line-height: 1.5; }
.ev-ext-note > svg { flex-shrink: 0; margin-top: 2px; }
.ev-price.unknown { font-size: 20px; color: var(--ink2); }

/* «Заполнить с помощью нейросети» */
.ev-ai { display: block; padding: 0; overflow: hidden; border-color: #CFE0F5; background: linear-gradient(135deg, #F4F8FE 0%, #FFFFFF 60%); }
.ev-ai > summary { display: flex; gap: 14px; align-items: center; padding: 18px 22px; cursor: pointer; list-style: none; }
.ev-ai > summary::-webkit-details-marker { display: none; }
.ev-ai > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .2s; }
.ev-ai[open] > summary::after { transform: rotate(180deg); }
.ev-ai > summary b { display: block; font-size: 17px; }
.ev-ai > summary small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.ev-ai-ic { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #5B3AB0, #3A86D6); }
.ev-ai-body { display: flex; flex-direction: column; gap: 14px; padding: 0 22px 20px; }
.ev-ai-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.5; }
.ev-ai-steps .btn { margin-left: 8px; vertical-align: middle; }
.ev-ai-form { display: flex; flex-direction: column; gap: 10px; }
.ev-ai-done { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; background: #EAF2FB; color: #1D3A5C; font-size: 14px; line-height: 1.5; }
.ev-ai-done > svg { flex-shrink: 0; color: #1D4F86; margin-top: 2px; }
.ev-ai-done ul { margin: 0; padding-left: 20px; }
.ev-img-edit { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.ev-img-edit img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.ev-img-edit .ev-code { height: 34px; font-family: var(--mono); font-size: 12px; min-width: 0; }

@media (max-width: 1024px) {
  .ev-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "book" "main" "extra"; }
}
@media (max-width: 900px) {
  .ev-strip { grid-template-columns: minmax(0, 1fr); }
  .ev-hero { border-radius: 16px; margin-top: 16px; min-height: 240px; }
  .ev-hero.has-cover { min-height: 300px; }
  .ev-hero-in { padding: 20px 18px 22px; }
  .ev-section { padding: 20px 18px; }
  .ev-form .two, .ev-form .three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ev-grid { grid-template-columns: minmax(0, 1fr); }
  .ev-sub form, .ev-sub .segc { width: 100%; }
  .ev-sub .segc label { flex: 1 1 0; }
  .ev-sub .btn { width: 100%; }
  /* все фильтры видны сразу: перенос на следующую строку вместо скрытой прокрутки вбок (Тим 12.11.2026: «не влезло») */
  .ev-filters { gap: 6px; }
  .ev-filters .chip { height: 32px; padding: 0 12px; font-size: 13.5px; }
  .ev-filters .sep { display: none; }
}

/* календарь (11.11.2026): переключатель «Карточки / Календарь», месяц сеткой и по дням (network/event_calendar.py) */
.ev-bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; }
.ev-bar .ev-filters { flex: 1 1 520px; min-width: 0; }
.ev-views { display: inline-flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.ev-views a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--ink2); }
.ev-views a:hover { background: var(--green-t); color: var(--green-d); }
.ev-views a.on { background: var(--green-d); color: #fff; }

.ev-cal { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.ev-cal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 22px 24px 20px;
  background: radial-gradient(120% 160% at 100% 0%, rgba(79, 212, 136, .45) 0%, rgba(79, 212, 136, 0) 55%),
              linear-gradient(120deg, #072A18 0%, #0E6B38 60%, #1E9356 100%); color: #E6F5EC; }
.ev-cal-head h2 { color: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.02em; line-height: 1.1; }
.ev-cal-head p { color: #CFEBD9; font-size: 14px; margin-top: 6px; }
.ev-cal-head p b { color: #fff; }
.ev-cal-nav { display: flex; gap: 8px; align-items: center; }
.ev-cal-nav .btn-light { background: rgba(255, 255, 255, .92); }
.ev-cal-arrow { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14);
  color: #fff; border: 1px solid rgba(255, 255, 255, .22); transition: background .15s; }
.ev-cal-arrow:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.ev-cal-strip { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #F7FBF8; }   /* месяцы переносятся, ни один не прячется */
.ev-cal-strip a { flex: 1 0 76px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 8px; border-radius: 12px;
  color: var(--ink2); font-size: 13px; }
.ev-cal-strip a b { font-weight: 600; text-transform: capitalize; white-space: nowrap; }
.ev-cal-strip a span { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.1; color: var(--green-d); }
.ev-cal-strip a:hover { background: var(--green-t); color: var(--ink); }
.ev-cal-strip a.on { background: var(--green-d); color: #CFEBD9; }
.ev-cal-strip a.on span { color: #fff; }

.ev-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ev-cal-grid > :nth-child(7n) { border-right: 0; }
.ev-cal-wd { padding: 10px 10px 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  border-bottom: 1px solid var(--line); border-right: 1px solid transparent; }
.ev-cal-wd.we { color: var(--orange-d); }
.ev-cal-day { position: relative; min-width: 0; min-height: 122px; display: flex; flex-direction: column; gap: 3px; padding: 6px 0 8px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ev-cal-grid > .ev-cal-day:nth-last-child(-n+7) { border-bottom: 0; }
.ev-cal-day.we { background: #FCFAF7; }
.ev-cal-day.out { background: #F5F8F6; }
.ev-cal-num { align-self: flex-start; display: inline-grid; place-items: center; min-width: 28px; height: 28px; margin: 0 6px 2px; padding: 0 6px;
  border-radius: 14px; font-size: 14px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
a.ev-cal-num:hover { background: var(--green-t); color: var(--green-d); }
.ev-cal-day.out .ev-cal-num { color: #A3B2A9; }
.ev-cal-day.today .ev-cal-num { background: var(--orange); color: #fff; box-shadow: 0 4px 12px rgba(232, 131, 63, .35); }
.ev-cal-day.today { background: #FFF8F2; }
.ev-cal-pill { --l: 6px; --r: 6px; position: relative; z-index: 1; display: block; height: 24px; margin-left: var(--l);
  width: calc(var(--span, 1) * (100% + 1px) - 1px - var(--l) - var(--r));   /* полоса на --span дней недели */
  padding: 0 8px; border-radius: 7px; font-size: 12.5px; font-weight: 600; line-height: 24px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; background: var(--c); transition: filter .15s; }
.ev-cal-pill span { display: block; overflow: hidden; text-overflow: ellipsis; }
.ev-cal-pill i { font-style: normal; opacity: .75; font-variant-numeric: tabular-nums; }
.ev-cal-pill.bar { background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 78%, #fff)); box-shadow: 0 2px 6px rgba(15, 31, 23, .12); }
.ev-cal-pill.one { background: #EEF4F0; background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--ink);
  color: color-mix(in srgb, var(--c) 62%, #0F1F17); box-shadow: inset 3px 0 0 var(--c); }
.ev-cal-pill:hover { filter: brightness(1.07) saturate(1.1); color: #fff; }
.ev-cal-pill.one:hover { filter: none; background: color-mix(in srgb, var(--c) 22%, #fff); color: color-mix(in srgb, var(--c) 62%, #0F1F17); }
.ev-cal-pill.cut-l { --l: 0px; border-top-left-radius: 0; border-bottom-left-radius: 0; }    /* началось на прошлой неделе */
.ev-cal-pill.cut-r { --r: -1px; border-top-right-radius: 0; border-bottom-right-radius: 0; }  /* продолжится на следующей */
.ev-cal-pill.going { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75); }
.ev-cal-pill.one.going { box-shadow: inset 3px 0 0 var(--c), inset 0 0 0 1px var(--c); }
.ev-cal-cont { display: block; height: 24px; flex: 0 0 auto; }
.ev-cal-day.past:not(.today) .ev-cal-pill { opacity: .55; }
.ev-cal-gap { display: block; height: 24px; flex: 0 0 auto; }
.ev-cal-more { margin: 1px 8px 0; font-size: 12px; font-weight: 700; color: var(--green-d); }
.ev-cal-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 18px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.ev-cal-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px;
  background: var(--c); vertical-align: -1px; }
.ev-cal-legend .own::before { border-radius: 50%; background: conic-gradient(#C2452F 0 25%, #3A86D6 0 50%, #B9821A 0 75%, #A3245F 0); }

.ev-days { display: flex; flex-direction: column; gap: 14px; }
.ev-days-title { font-size: 20px; }
.ev-day { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; scroll-margin-top: 96px; }
.ev-day-date { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0; border-radius: 14px; background: var(--card);
  border: 1px solid var(--line); color: var(--green-d); transition: box-shadow .2s, border-color .2s; }
.ev-day-date b { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1; color: var(--ink); }
.ev-day-date span { font-size: 13px; font-weight: 600; color: var(--ink2); }
.ev-day-date i { font-style: normal; font-size: 12px; color: var(--muted); }
.ev-day.today .ev-day-date { background: var(--orange); border-color: var(--orange); }
.ev-day.today .ev-day-date b, .ev-day.today .ev-day-date span, .ev-day.today .ev-day-date i { color: #fff; }
.ev-day:target .ev-day-date { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-t); }
.ev-day.past .ev-row { opacity: .72; }
.ev-day-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ev-day-note { font-size: 13px; color: var(--muted); }
.ev-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 12px 16px 12px 18px;
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 14px; color: var(--ink);
  transition: box-shadow .15s, transform .15s; }
.ev-row:hover { box-shadow: var(--shadow); transform: translateY(-1px); color: var(--ink); }
.ev-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 300px; }
.ev-row-main b { font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.ev-row-meta { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.ev-row-tags { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 720px) {
  .ev-views { width: 100%; }
  .ev-views a { flex: 1 1 0; justify-content: center; }
  .ev-cal { border-radius: 18px; }
  .ev-cal-head { padding: 18px 16px 16px; }
  .ev-cal-wd { padding: 8px 0 6px; text-align: center; font-size: 11px; letter-spacing: .02em; }
  .ev-cal-day { min-height: 60px; display: grid; grid-template-columns: repeat(3, 7px); justify-content: center; align-content: start;
    gap: 3px; padding: 5px 0 6px; }
  .ev-cal-num { grid-column: 1 / -1; justify-self: center; margin: 0 0 3px; min-width: 30px; height: 30px; font-size: 14px; }
  a.ev-cal-num::after { content: ""; position: absolute; inset: 0; }   /* на телефоне жмётся вся клетка */
  .ev-cal-day.has:not(.out) .ev-cal-num { background: var(--green-t); color: var(--green-d); }
  .ev-cal-day.today .ev-cal-num { background: var(--orange); color: #fff; }
  .ev-cal-pill, .ev-cal-pill.bar, .ev-cal-pill.one, .ev-cal-cont { width: 7px; height: 7px; margin: 0; padding: 0;
    border-radius: 50%; background: var(--c); box-shadow: none; pointer-events: none; }
  .ev-cal-pill span, .ev-cal-more, .ev-cal-gap { display: none; }
  .ev-cal-legend { padding: 10px 14px; gap: 6px 12px; font-size: 12px; }
  .ev-cal-legend .own { display: none; }
  .ev-day { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
  .ev-day-date b { font-size: 22px; }
  .ev-row { padding: 12px 14px; }
}

/* тематика (11.11.2026, Тим: «БАД отдельно от других категорий»): строка над фильтрами, метка на карточке */
/* все темы видны на любой ширине: перенос на вторую строку, без скрытой прокрутки (Тим 12.11.2026: «Другое» обрезалось на ПК) */
.ev-topics { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 5px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.ev-topics a { flex: 0 0 auto; display: inline-flex; align-items: center; height: 38px; padding: 0 12px; border-radius: 10px; font-size: 14px;   /* компактнее: на ПК все 8 тем в одну строку */
  font-weight: 600; color: var(--ink2); white-space: nowrap; }
.ev-topics a:hover { background: var(--green-t); color: var(--green-d); }
.ev-topics a.on { background: linear-gradient(120deg, #0E6B38 0%, #1E9356 100%); color: #fff; box-shadow: 0 4px 12px rgba(14, 107, 56, .25); }
.ev-tag.topic { background: #F1ECFA; color: #4B2A6B; }
.ev-tag.topic-supplements { background: #FFF1D6; color: #6B4300; }
.ev-tag.topic-cosmetics { background: #FCE4EE; color: #7A1E46; }
.ev-tag.topic-medtech { background: #E1EEF9; color: #1D3A5C; }
.ev-tag.topic-pharma { background: #E3F3E8; color: #0E5E33; }
.ev-tag.topic-vet { background: #EAF2DA; color: #3F5A12; }
@media (max-width: 720px) {
  .ev-topics a { height: 34px; padding: 0 11px; font-size: 13.5px; }
}

/* «В календарь»: прислать приглашение на почту или скачать файл (11.11.2026) */
.ev-cal { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; }
.ev-cal-h { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--green-d); }
.ev-cal-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-cal-btns form { margin: 0; }
.ev-cal-hint { font-size: 12px; line-height: 1.45; color: var(--muted, #5B6B62); overflow-wrap: anywhere; }
