@charset "UTF-8";
/* Карточка события - Молекула дизайн-системы */
/* Зависимости подключаются через Drupal libraries.yml */
/* @import url('../../css/design-tokens.css'); */
/* @import url('../typography/typography.css'); */
/* @import url('../../css/components/tag.css'); */
/* ===== КОНТЕЙНЕР И СЕТКА КАРТОЧЕК ===== */
.projects-view {
  max-width: 1440px;
  margin: 0 auto;
}

.projects-view__header {
  margin-bottom: 48px;
  text-align: center;
}

.projects-view__title {
  font-family: Inter;
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  color: #333;
  margin: 0;
}

/* Стили для списка проектов в View */
@media screen and (max-width: 768px) {
  .view-projects.view-display-id-block_1 {
    padding: 0;
  }
}

.view-projects .projects-view__content .item-list ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 0;
}
@media screen and (max-width: 768px) {
  .view-projects .projects-view__content .item-list ul {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.projects-view__content .item-list li {
  margin: 0;
}

/* ===== СТИЛИ ФИЛЬТРОВ BETTER EXPOSED FILTERS ===== */
/* Контейнер фильтров */
@media screen and (max-width: 768px) {
  .view-filters {
    margin-top: 24px;
  }
}
@media screen and (max-width: 480px) {
  .view-filters {
    margin-top: 54px;
  }
}

/* Форма фильтров */
.views-exposed-form.bef-exposed-form {
  display: flex;
  justify-content: flex-end;
}

/* Fieldset для фильтров */
.fieldgroup.form-composite {
  border: none;
  margin: 0;
  padding: 0;
}

/* Fieldset wrapper с относительным позиционированием */
.view-filters .fieldset-wrapper {
  position: relative;
}

/* Псевдоэлемент для заголовка "Фильтры:" */
.view-filters .form-item-field-format-value::before {
  content: "Формат:";
  color: #000000;
  opacity: 0.4;
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  margin-right: 24px;
  position: absolute;
  top: 5px;
  left: -110px;
}
@media screen and (max-width: 480px) {
  .view-filters .form-item-field-format-value::before {
    top: -40px !important;
    left: 0;
  }
}

/* Легенда (заголовок "Фильтры") */
.fieldset-legend {
  font-family: Inter, sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
  display: block;
}

@media screen and (max-width: 480px) {
  fieldset.fieldgroup,
  .form--inline.clearfix {
    width: 100%;
  }
}

/* Контейнер радиокнопок */
.form-radios {
  display: flex;
  gap: 8px;
}
@media screen and (max-width: 480px) {
  .form-radios {
    gap: 13px;
    justify-content: space-between;
    width: 100%;
  }
}

/* Стили для радиокнопок как кнопок фильтров */
.form-type-radio.form-item-field-format-value {
  margin: 0;
}

.form-type-radio.form-item-field-format-value input[type=radio] {
  display: none;
}

.form-type-radio.form-item-field-format-value label {
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: #333;
  background: white;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  min-height: 28px;
  white-space: nowrap;
  margin: 0;
  transition: all 0.3s ease;
}

/* Точка для фильтра */
.form-type-radio.form-item-field-format-value label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  flex-shrink: 0;
}

/* Точка для "Все" (оранжевая) */
.form-type-radio.form-item-field-format-value:first-child label::before {
  background: #FF8400;
}

/* Точка для "Очно" (зеленая) */
.form-type-radio.form-item-field-format-value:nth-child(2) label::before {
  background: #4CAF50;
}

/* Точка для "Онлайн" (синяя) */
.form-type-radio.form-item-field-format-value:nth-child(3) label::before {
  background: #2196F3;
}

/* Hover эффект */
.form-type-radio.form-item-field-format-value label:hover {
  background: #fff;
  border-color: #333;
  transform: scale(1.01);
  transition: transform 0.3s ease;
}

/* Активное состояние (выбранная радиокнопка) */
.form-type-radio.form-item-field-format-value input[type=radio]:checked + label {
  background: #FFE4CC;
  border-color: #FF8400;
  font-weight: 500;
}

/* Фокус для доступности */
.form-type-radio.form-item-field-format-value label:focus {
  outline: 2px solid #FF8400;
  outline-offset: 2px;
}

/* ===== СТИЛИ КНОПКИ "ЕЩЁ" В VIEW-FOOTER ===== */
/* Кнопка "Ещё" в стиле дизайн-системы */
.view-footer a {
  background: white;
  border: 1px solid #000;
  border-radius: 8px;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 52px;
  text-decoration: none;
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #000;
}

/* Hover эффект для кнопки "Ещё" */
.view-footer a:hover {
  border-color: #333;
  transform: scale(1.05);
  transition: transform 0.3s ease;
  text-decoration: none;
  color: #000;
}

/* Стрелка для кнопки "Ещё" */
.view-footer a::after {
  content: "";
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 18L15 12L9 6' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* Анимация стрелки при hover */
.view-footer a:hover::after {
  transform: scale(1.01);
  transition: transform 0.3s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
  .view-footer a {
    padding: 12px 20px;
    min-height: 44px;
  }
  .view-footer a::after {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 480px) {
  .view-footer a {
    width: 100%;
    justify-content: center;
  }
}
/* Адаптивность для сетки */
@media (max-width: 768px) {
  .projects-view__title {
    font-size: 36px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 480px) {
  .projects-view__title {
    font-size: 28px;
  }
  .projects-grid {
    gap: 16px;
  }
}
/* ===== EVENT CARD MOLECULE ===== */
.event-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  max-height: 510px;
  width: 100%;
  max-width: 704px;
}
.event-card:focus-within {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}
.event-card__image {
  width: 100%;
  flex: 1;
  font-family: "object-fit:cover";
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 12px 12px 0 0;
}
@media (max-width: 768px) {
  .event-card__image {
    height: 180px;
  }
}
@media (max-width: 480px) {
  .event-card__image {
    height: 160px;
  }
}
.event-card__content {
  background: #e8fafd;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  height: 100%;
}
@media (max-width: 768px) {
  .event-card__content {
    padding: 16px;
    min-height: 120px;
  }
}
@media (max-width: 480px) {
  .event-card__content {
    padding: 24px;
    gap: 8px;
    min-height: 220px;
  }
}
.event-card__title {
  margin: 0 0 auto 0;
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 24px;
  line-height: 100%;
  letter-spacing: 0%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media screen and (max-width: 768px) {
  .event-card__title {
    margin-bottom: 24px;
    -webkit-line-clamp: 4;
    overflow: unset;
  }
}
.event-card__date {
  margin: 0;
  color: #FF8400;
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: 0%;
  margin-top: auto;
}
.event-card__date.text-body {
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
}
.event-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 30px;
}
.event-card__tag {
  position: static;
  margin: 0;
}
@media (max-width: 768px) {
  .event-card__tag {
    bottom: 16px;
    right: 16px;
  }
}
@media (max-width: 480px) {
  .event-card__tag {
    bottom: 12px;
    right: 12px;
  }
}
.event-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid #000;
  color: #1f2937;
  font-size: 20px;
  padding: 2px 8px;
  height: 28px;
  margin: 0;
  border-radius: 4px;
  font-family: Inter, sans-serif;
  font-weight: 400;
  line-height: 1.2;
}
.event-card .tag--green, .event-card .tag--blue {
  display: flex;
  align-items: center;
  -moz-column-gap: 8px;
       column-gap: 8px;
  border-radius: 6px;
  background: transparent;
  border-color: #000;
  color: #1f2937;
}
.event-card .tag--green:hover, .event-card .tag--blue:hover {
  opacity: 1;
}
.event-card .tag__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.event-card .tag__dot--green {
  background: #4caf50;
}
.event-card .tag__dot--blue {
  background: #2196f3;
}
.event-card .tag__text {
  white-space: nowrap;
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  color: #1f2937;
}
.event-card .field--name-field-project-image {
  height: 100%;
}
@media (max-width: 768px) {
  .event-card {
    max-width: 100%;
    max-height: none;
  }
}

.field--name-field-project-image img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  font-family: "object-fit:cover";
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 12px 12px 0 0;
}
@media screen and (max-width: 480px) {
  .field--name-field-project-image img {
    min-height: 200px;
    font-family: "object-fit:cover";
    -o-object-fit: cover;
       object-fit: cover;
  }
}

.field--name-title {
  color: var(--color-primary-orange);
  text-decoration: underline;
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-size: 24px !important;
  line-height: 100% !important;
}
.field--name-title:hover {
  text-decoration: none;
}
@media screen and (max-width: 480px) {
  .field--name-title {
    font-size: 20px !important;
    line-height: 24px !important;
  }
}

.field--name-field-date {
  font-weight: 700 !important;
  font-size: 24px !important;
  line-height: 28px !important;
  color: var(--color-gray-dark);
}
@media screen and (max-width: 480px) {
  .field--name-field-date {
    font-size: 20px !important;
    line-height: 24px !important;
  }
}

.field--name-field-format {
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 20px !important;
  line-height: 24px !important;
}

.event-time {
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 28px;
  color: var(--color-gray-dark);
  margin-left: 16px;
}
.event-time::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg opacity='0.4'%3E%3Cpath d='M12 2C6.486 2 2 6.486 2 12C2 17.514 6.486 22 12 22C17.514 22 22 17.514 22 12C22 6.486 17.514 2 12 2ZM12 20C7.589 20 4 16.411 4 12C4 7.589 7.589 4 12 4C16.411 4 20 7.589 20 12C20 16.411 16.411 20 12 20Z' fill='black'/%3E%3Cpath d='M13 7H11V12.414L14.293 15.707L15.707 14.293L13 11.586V7Z' fill='black'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
  margin-left: 5px;
  margin-bottom: -4px;
}

@media (prefers-reduced-motion: reduce) {
  .event-card {
    transition: none;
  }
  .event-card:hover {
    transform: none;
  }
}
/*# sourceMappingURL=maps/event-card.css.map */
