﻿/* шапка для Новостей, Статей и Кейсов */

.entity-card-header {
  display: flex;
  padding: var(--Standart-m, 16px) var(--Standart-l, 24px);
  flex-direction: column;
  align-items: flex-start;
  gap: var(--Standart-l, 24px);
}

/* подвал для Новостей, Статей и Кейсов */

.entity-card-footer {
  display: flex;
  padding: var(--Standart-m, 16px) var(--Standart-l, 24px);
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
}

.entity-card-btns {
  display: flex;
  align-items: center;
  gap: 15px;
}

.en-card-btm {
  display: flex;
  justify-content: space-between;
}

/* Обложка для Новостей, Статей и Кейсов */
.entity-img-container {
  position: relative;
}

.entity-cover {
  width: 100%;
  /*height: 320px;*/
  object-fit: cover;
  display: block;
}

.entity-cover.image-empty {
  width: 100%;
  /*height: 320px;*/
  object-fit: cover;
  display: block;
  filter: unset !important;
}

.case-cover {
  height: unset;
  object-fit: cover;
}

.case-cover-stub {
  aspect-ratio: 16/9;
}

/* Обложка для мероприятий */

.entity-img-container-for-event {
  position: relative;
}

.entity-img-container-for-event::after {
  content: "";
  width: 100%;
  height: 450px;
  background: url(/images/media/cover-filter.png) no-repeat center center / cover;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 5;
  border-radius: 6px;
}

.entity-cover-event {
  width: 100% !important;
  border-radius: 6px 6px 0 0;
}

.entity-card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--Standart-s, 8px);
  align-self: stretch;
  color: var(--Default-black-1000, #0B0B0B);

  overflow-wrap: anywhere;
}

.entity-card-title-thematic-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--Standart-xxs, 4px);
  align-self: stretch;
}

.entity-card-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: break-word;
  /* hyphens: auto; */
  font-family: Onest;
  font-size: var(--Body-Small, 14px);
  line-height: 20px;
}

/* entity type */

.entity-type {
  display: flex;
  padding: var(--Standart-xxs, 4px) var(--Standart-s, 8px);
  align-items: center;
  gap: var(--Standart-xxs, 4px);
  width: fit-content;
}

.entity-type-on-cover {
  border-radius: var(--Standart-xxs, 4px);
  background: #F6F6F6;
  backdrop-filter: blur(2px);
  color: #a3a3a3;
}

.online-ev-type {
  color: #4075D6;
}

.entity-type-on-cover:has(.survey-chip) {
  color: #172CA2;
}

.entity-type-simple {
  border-radius: var(--Standart-xxs, 4px);
  background: var(--Default-black-40, rgba(0, 0, 0, 0.04));
  backdrop-filter: blur(2px);
  color: var(--Default-black-400, rgba(0, 0, 0, 0.40));
}

.entity-type.entity-type-simple .small-icon {
  filter: brightness(0) saturate(100%) invert(55%) sepia(4%) saturate(11%) hue-rotate(11deg) brightness(92%) contrast(100%);
}

/* логотип и информация о компании */

.entity-organization-info {
  display: flex;
  min-width: 200px;
  align-items: center;
  gap: var(--Standart-s, 8px);
}

.entity-organization-info .lk-corp-logo-40 {
  align-self: flex-start;
}

.entity-organization-info-simple {
}

.entity-organization-info-on-cover {
  position: absolute;
  top: 16px;
  left: 24px;
  right: 8px;

  z-index: 10;
}

.entity-organization-info-title-subs {
  display: flex;
  flex-direction: column;
}

.entity-organization-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  hyphens: auto;
}

.entity-organization-info > .entity-organization-info-title-subs > a {
  width: fit-content;
}

/*.entity-organization-info-title-subs > a:hover {
  text-decoration: underline;
}*/

/* Тип для Новостей, Статей и Кейсов, у которых есть обложка */

.entity-chips-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Тип для Новостей, Статей и Кейсов, у которых нет обложки */

.entity-chips-container-simple.entity-chips-container {
  position: unset;
  width: fit-content;

  margin-left: 24px;
}

.entity-chips-container-simple.ev-chips {
  position: unset;

  margin-left: 24px;
  margin-top: 12px;
}

/* event */

.entity-event-chips-container {
  flex-wrap: wrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  bottom: 16px;
  left: 16px;
  right: 10px;
}

/* event type */

.entity-event-chip {
  display: flex;
  height: 28px;
  padding: 3px 9px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 4px;

  width: fit-content;
}

/* статус */

.entity-event-chip-status {
  color: var(--Default-black-1000, #0B0B0B);
  background: var(--Prime-primary, #D8E800);
}

/* требуется регистрация */

.entity-event-chip-reg-only {
  color: var(--Default-black-1000, #0B0B0B);
  background: var(--Prime-primary, #D8E800);
}

/* свободный вход */

.entity-event-chip-free-entry {
  color: var(--Default-black-1000, #0B0B0B);
  background: #D8E800;
}

/* завершено */

.entity-event-chip-completed {
  color: var(--Default-black-1000, #0B0B0B);
  background: #D8E800;
}

/* Карточки в мероприятиях */

.m-events .infinite-scroll-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.m-events .infinite-scroll-list-item:nth-child(5n) {
  grid-column: 1 / -1;
}

.m-events .infinite-scroll-list-item .if-card-big {
  display: none;
}

.m-events .infinite-scroll-list-item:nth-child(5n) .if-card-small,
.coming-events-big .if-card-small {
  display: none;
}

.m-events .infinite-scroll-list-item:nth-child(5n) .if-card-big {
  display: flex;
}

.m-events .infinite-scroll-list-item:not(:nth-child(5n)) .entity-event-chips-container {
  flex-wrap: wrap;
  display: flex;
  align-items: unset;
}

.m-events .infinite-scroll-list-item:not(:nth-child(5n)) .entity-cover-event {
  height: unset;
}

.entity-event-btm {
  justify-content: space-between;
  min-height: 175px;
}

.entity-event-btm .ev-place {
  gap: 6px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.entity-event-btm .ev-place .body-small {
  line-height: 110%;
}
.entity-event-btm .ev-place span:first-child {
  width: 145px;
  flex-shrink: 0;
}

.entity-event-btm .ev-place span.small-icon:first-child {
  width: 20px;
  flex-shrink: 0;
}

.entity-event-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Заголовок у крупных карточек */

.m-events .infinite-scroll-list-item:nth-child(5n) .entity-event-title {
  font-family: Onest;
  font-size: var(--Heading-H4, 20px);
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
}

/* Заголовок у маленьких карточек */

.m-events .infinite-scroll-list-item:not(:nth-child(5n)) .entity-event-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

.m-events .entity-cover-event.image-empty {
  aspect-ratio: 16 / 9;
}

/* Карточки Опросы. Запросы */

.mediacenter-container .survey-items .k-listview-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mediacenter-container .survey-media-items-grid .k-listview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mediacenter-container .survey-media-items-grid .k-listview-content .k-listview-item:nth-child(6n) {
  grid-column: 1 / -1;
}

.mediacenter-container .survey-media-items-grid:has(.survey-media-card) .k-loader-container {
  display: none;
  grid-column: none;
  grid-row: none;
}

/* 
  Сначала показываем иконку верификации как псевдоэлемент, если эта иконка есть в блоке. 
  Иначе если делать это обычным flex, то иконка не находится на одном уровне с текстом
*/

/*.survey-media-items-grid .survey-media-card .creator-info-verify:has(.verified-icon) .custom-user-name::after,
.surveys-request-fresh-container .creator-info-verify:has(.verified-icon) .custom-user-name::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("/../images/account/verified-icon.svg");
  margin-right: 5px;
  vertical-align: middle;
  margin-left: 5px;
  margin-bottom: 3px;
  background-size: 16px;
}*/

/* Потом показываем иконку объединения на одном уровне с текстом, если есть иконка объединения в блоке */

/*.survey-media-items-grid .survey-media-card .creator-info-verify:has(.association-icon-2) .company-name::after,
.surveys-request-fresh-container .survey-media-card .creator-info-verify:has(.association-icon-2) .company-name::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("/../images/account/association-icon-2.svg");
  margin-right: 5px;
  vertical-align: middle;
  background-size: 16px;
  margin-bottom: 3px;
  margin-left: 5px;
}

.survey-media-items-grid .survey-media-card .creator-info-verify:has(.verified-icon) .company-name::after,
.surveys-request-fresh-container .survey-media-card .creator-info-verify:has(.verified-icon) .company-name::after {
  margin-left: 0;
}*/

/* И прячем дефолтные иконки */

/*.survey-media-items-grid .survey-media-card .creator-info-verify:has(.verified-icon) .verified-icon,
.survey-media-items-grid .survey-media-card .creator-info-verify:has(.association-icon-2) .association-icon-2,

.surveys-request-fresh-container .creator-info-verify:has(.verified-icon) .verified-icon,
.surveys-request-fresh-container .creator-info-verify:has(.association-icon-2) .association-icon-2 {
  opacity: 0;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  display: none;
}*/

.survey-media-card .survey-complete-chip {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: white;
  height: 100%;
  height: 28px;
  border-radius: 4px;
  padding: 4px 0px;
  margin-top: 0;
}

.survey-complete-chip .body-small {
  line-height: 20px;
}

.survey-complete-chip .check-icon {
  width: 18px;
  height: 18px;
}

.survey-media-card .survey-date-create {
  height: auto;
}

.survey-date-create-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-start;
}

.survey-date-flex {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.survey-media-card .cover {
  aspect-ratio: 16 / 9;
  border-radius: 6px 6px 0 0;
}

.survey-media-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 24px 16px 24px;
  border-radius: 0 0 6px 6px;
  background: white;
  height: 100%;

  justify-content: space-between;
}

.surv-fresh-inf {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.survey-item-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--Standart-s, 8px);
  align-self: stretch;
  overflow-wrap: anywhere;
}

.survey-statistics-content .entity-img-container {
  width: 100%;
}

.survey-media-card .entity-img-container::after {
  content: "";
  width: 100%;
  height: 450px;
  background: url(/images/media/cover-filter.png) no-repeat center center / cover;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 5;
  border-radius: 6px;
}

.survey-media-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.survey-media-card  a.entity-organization-info {
  color: white;
}

.survey-media-card  a.entity-organization-info:hover {
  text-decoration: unset;
}

.survey-media-card .entity-organization-info {
  color: white;
}

.survey-date-create-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-start;
}

@media (min-width: 2860px) {
  .case-cover {
    max-height: 650px;
  }
}

@media (min-width: 3200px) {
  .case-cover {
    max-height: 850px;
  }
}

@media (max-width: 1870px) {
  .entity-event-chip {
    padding: 3px 5px;
  }
}

@media (max-width: 1811px) {
  .entity-event-chip {
    padding: 3px 5px;
  }
}

@media (max-width: 1440px) {
  .m-events .infinite-scroll-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .m-events .infinite-scroll-list-item .if-card-small {
    display: none;
  }

  .m-events .infinite-scroll-list-item .if-card-big {
    display: flex;
  }

  .m-events .infinite-scroll-list-item:nth-child(5n) {
    grid-column: 1 / -1;
  }

  .m-events .infinite-scroll-list-item:not(:nth-child(5n)) .entity-event-chips-container {
    flex-wrap: wrap;
    display: flex;
    align-items: unset;
  }

  /* Заголовок у крупных карточек */

  .m-events .infinite-scroll-list-item:nth-child(5n) .entity-event-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
  }

  /* Заголовок у маленьких карточек */

  .m-events .infinite-scroll-list-item:not(:nth-child(5n)) .entity-event-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
  }
}

@media (max-width: 1200px) {
  .m-events .infinite-scroll-list,
  .mediacenter-container .survey-items .k-listview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .m-events .infinite-scroll-list-item .if-card-big {
    display: none;
  }

  .m-events .infinite-scroll-list-item .if-card-small {
    display: flex;
  }

  .m-events .infinite-scroll-list-item:nth-child(5n) .if-card-big {
    display: flex;
  }

  .m-events .infinite-scroll-list-item:nth-child(5n) {
    grid-column: 1 / -1;
  }

  .m-events .infinite-scroll-list-item:not(:nth-child(5n)) .entity-event-chips-container {
    flex-wrap: wrap;
    display: flex;
    align-items: unset;
  }

  /* Заголовок у крупных карточек */

  .m-events .infinite-scroll-list-item:nth-child(5n) .entity-event-title {
    font-family: Onest;
    font-size: var(--Heading-H4, 20px);
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
  }

  /* Заголовок у маленьких карточек */

  .m-events .infinite-scroll-list-item:not(:nth-child(5n)) .entity-event-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
  }
}

@media (max-width: 600px) {
  .m-events .infinite-scroll-list,
  .mediacenter-container .survey-items .k-listview-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .m-events .infinite-scroll-list-item .if-card-big {
    display: none;
  }

  .m-events .infinite-scroll-list-item .if-card-small {
    display: flex;
  }

  .m-events .infinite-scroll-list-item:nth-child(5n) .if-card-big {
    display: none;
  }

  .m-events .infinite-scroll-list-item:nth-child(5n) .if-card-small {
    display: flex;
  }
}

@media (max-width: 480px) {
  .entity-card-description {
    font-family: Onest;
    font-size: var(--Body-Regular, 16px);
    font-style: normal;
    font-weight: 400;
    line-height: 22px; 
  }

  .m-events .infinite-scroll-list-item:nth-child(5n) {
    grid-column: 1 / -1;
  }

  .m-events .infinite-scroll-list-item:not(:nth-child(5n)) .entity-event-chips-container {
    flex-wrap: wrap;
    display: flex;
    align-items: unset;
  }

  /* Заголовок у крупных карточек */

  .m-events .infinite-scroll-list-item:nth-child(5n) .entity-event-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
  }

  /* Заголовок у маленьких карточек */

  .m-events .infinite-scroll-list-item:not(:nth-child(5n)) .entity-event-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
  }

  .entity-event-chips-container {
    display: flex;
    flex-direction: column;
    align-items: baseline;
  }
}
