/* =========================================================
   Страница мероприятия: шапка с крошками, текст, видео, галерея
   ========================================================= */

/* ---------- Хлебные крошки ---------- */
.crumbs {
  margin-bottom: 22px;
}
.crumbs ol, .crumbs ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  list-style: none;
}
.crumbs li {
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 120%;
  color: #8A7F78;
}
.crumbs li:not(:last-child)::after {
  content: '';
  width: 5px;
  height: 5px;
  margin-left: 10px;
  border-right: 1px solid #B3A79E;
  border-bottom: 1px solid #B3A79E;
  transform: rotate(-45deg);
}
.crumbs a {
  color: #8A7F78;
  transition: 0.3s;
}
.crumbs a:hover {
  color: #4C5837;
}
.crumbs li:last-child span,
.crumbs_current span {
  color: #3E3535;
}

/* ---------- Шапка страницы ---------- */
.ev_head {
  padding-top: 35px;
}
.ev_head h1 {
  max-width: 1050px;
}
.ev_lead {
  max-width: 920px;
  margin-top: 20px;
  font-size: 22px;
  line-height: 140%;
  color: #4E4343;
}

/* ---------- Сетка: текст + карточка ---------- */
.event {
  margin-top: 40px;
}
.ev_layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 50px;
}
.ev_main {
  min-width: 0;
}

/* ---------- Текст ---------- */
.ev_text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 18px;
  line-height: 155%;
  color: #4E4343;
}
.ev_text h2 {
  margin-top: 14px;
  font-size: 28px;
  line-height: 120%;
  color: #1E1E1E;
  text-transform: none;
}
.ev_text h3 {
  margin-top: 8px;
  text-transform: none;
}
.ev_text a {
  color: #4C5837;
  text-decoration: underline;
}
.ev_text a:hover {
  text-decoration: none;
}
.ev_text b, .ev_text strong {
  font-weight: 600;
  color: #3E3535;
}
.ev_text img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.ev_text ul, .ev_text ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none; /* нумерацию рисуем сами, иначе браузер добавит вторую */
}
.ev_text ul li {
  position: relative;
  padding-left: 26px;
}
.ev_text ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4C5837;
}
.ev_text ol {
  counter-reset: ev_ol;
}
.ev_text ol li {
  position: relative;
  padding-left: 32px;
  counter-increment: ev_ol;
}
.ev_text ol li::before {
  content: counter(ev_ol) '.';
  position: absolute;
  left: 2px;
  top: 0;
  font-weight: 600;
  color: #4C5837;
}
.ev_text blockquote {
  padding: 4px 0 4px 22px;
  border-left: 3px solid #4C5837;
  font-size: 20px;
  line-height: 145%;
  color: #3E3535;
}
.ev_text table {
  width: 100%;
  border-collapse: collapse;
}
.ev_text th, .ev_text td {
  padding: 12px 14px;
  border-bottom: 1px solid #D7D2CD;
  text-align: left;
}
.ev_text th {
  font-weight: 600;
  color: #3E3535;
}

/* ---------- Видео ---------- */
.ev_videos {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 38px;
}
.evv_head {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 500;
  color: #3E3535;
}
.evv_frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #2A2622;
}
.evv_frame iframe,
.evv_frame video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Галерея ---------- */
.ev_gallery {
  margin-top: 45px;
}
.ev_gallery h2 {
  margin-bottom: 20px;
  font-size: 28px;
  color: #1E1E1E;
  text-transform: none;
}
.ev_grid {
  column-count: 4;
  column-gap: 20px;
}
.ev_img {
  display: block;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  break-inside: avoid;
}
.ev_img:hover {
  opacity: 0.75;
}
.ev_img > img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Карточка справа ---------- */
.ev_aside {
  position: sticky;
  top: 20px;
}
.eva_card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 28px;
  background: #F2ECE6;
  border-radius: 12px;
}
.eva_row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.eva_label {
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8A7F78;
}
.eva_value {
  font-size: 20px;
  font-weight: 500;
  line-height: 130%;
  color: #3E3535;
}
.eva_btn {
  max-width: unset;
  margin-top: 4px;
  cursor: pointer;
}
.eva_link {
  font-size: 16px;
  color: #4C5837;
  text-decoration: underline;
  text-align: center;
}
.eva_link:hover {
  text-decoration: none;
}

/* Карточка без единого заполненного поля не показывается,
   текст в этом случае занимает всю ширину */
.ev_aside:not(:has(.eva_row, .eva_btn, .eva_link)) {
  display: none;
}
.ev_layout:not(:has(.eva_row, .eva_btn, .eva_link)) {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- Адаптив ---------- */
@media only screen and (max-width: 1250px) {
  .ev_layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
  }
  .eva_card {
    padding: 25px 20px;
  }
}

@media only screen and (max-width: 1024px) {
  .ev_head {
    padding-top: 20px;
  }
  .ev_lead {
    font-size: 18px;
  }
  .event {
    margin-top: 25px;
  }
  .ev_layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .ev_aside {
    position: static;
    order: -1;
  }
  .ev_text {
    font-size: 16px;
  }
  .ev_text h2, .ev_gallery h2 {
    font-size: 22px;
  }
  .ev_videos {
    margin-top: 28px;
  }
  .ev_gallery {
    margin-top: 30px;
  }
  .ev_grid {
    column-count: 3;
    column-gap: 12px;
  }
  .ev_img {
    margin-bottom: 12px;
  }
}

@media only screen and (max-width: 540px) {
  .crumbs li {
    font-size: 14px;
  }
  .ev_grid {
    column-count: 2;
    column-gap: 10px;
  }
  .ev_img {
    margin-bottom: 10px;
  }
  .ev_text blockquote {
    font-size: 17px;
  }
  .eva_value {
    font-size: 18px;
  }
}